@splunk/react-ui 5.7.1 → 5.9.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 (152) hide show
  1. package/Accordion.js +6 -6
  2. package/Anchor.js +2 -1
  3. package/Box.js +83 -34
  4. package/CHANGELOG.md +51 -0
  5. package/Calendar.js +134 -134
  6. package/Clickable.js +131 -94
  7. package/CollapsiblePanel.js +175 -137
  8. package/ComboBox.js +32 -27
  9. package/ControlGroup.js +92 -91
  10. package/DefinitionList.js +9 -9
  11. package/Drawer.d.ts +2 -0
  12. package/Drawer.js +679 -0
  13. package/Dropdown.js +27 -18
  14. package/DualListbox.js +1 -1
  15. package/File.js +35 -35
  16. package/JSONTree.js +73 -72
  17. package/Link.js +2 -2
  18. package/MIGRATION.md +10 -0
  19. package/Menu.js +403 -261
  20. package/Modal.js +263 -252
  21. package/Monogram.js +2 -2
  22. package/Multiselect.js +551 -385
  23. package/Number.js +2 -1
  24. package/Paginator.js +14 -12
  25. package/Popover.js +4 -1
  26. package/README.md +11 -0
  27. package/RadioBar.js +1 -1
  28. package/Search.js +111 -95
  29. package/Select.js +42 -40
  30. package/SelectBase.js +819 -715
  31. package/SidePanel.js +346 -167
  32. package/SlidingPanels.js +11 -11
  33. package/StepBar.js +7 -7
  34. package/Switch.js +5 -5
  35. package/Table.js +116 -119
  36. package/Text.js +48 -48
  37. package/TextArea.js +7 -7
  38. package/TransitionOpen.js +188 -169
  39. package/docs-llm/Accordion.md +267 -0
  40. package/docs-llm/Anchor Menu.md +115 -0
  41. package/docs-llm/Anchor.md +54 -0
  42. package/docs-llm/AnimationToggle.md +254 -0
  43. package/docs-llm/Avatar.md +292 -0
  44. package/docs-llm/Badge.md +212 -0
  45. package/docs-llm/Breadcrumbs.md +306 -0
  46. package/docs-llm/Button Group.md +53 -0
  47. package/docs-llm/Button.md +361 -0
  48. package/docs-llm/Card Layout.md +286 -0
  49. package/docs-llm/Card.md +619 -0
  50. package/docs-llm/Checkbox.md +218 -0
  51. package/docs-llm/Chip.md +291 -0
  52. package/docs-llm/Clickable.md +160 -0
  53. package/docs-llm/Code.md +292 -0
  54. package/docs-llm/Collapsible Panel.md +744 -0
  55. package/docs-llm/Color.md +253 -0
  56. package/docs-llm/Column Layout.md +391 -0
  57. package/docs-llm/Combo Box.md +540 -0
  58. package/docs-llm/Control Group.md +594 -0
  59. package/docs-llm/Date.md +270 -0
  60. package/docs-llm/Definition List.md +278 -0
  61. package/docs-llm/Divider.md +216 -0
  62. package/docs-llm/Drawer.md +414 -0
  63. package/docs-llm/Dropdown.md +472 -0
  64. package/docs-llm/Dual Listbox.md +325 -0
  65. package/docs-llm/File.md +653 -0
  66. package/docs-llm/Form Rows.md +374 -0
  67. package/docs-llm/Heading.md +179 -0
  68. package/docs-llm/Image.md +109 -0
  69. package/docs-llm/JSON Tree.md +260 -0
  70. package/docs-llm/Layer.md +74 -0
  71. package/docs-llm/Layout.md +50 -0
  72. package/docs-llm/Link.md +318 -0
  73. package/docs-llm/List.md +189 -0
  74. package/docs-llm/Markdown.md +179 -0
  75. package/docs-llm/Menu.md +735 -0
  76. package/docs-llm/Message Bar.md +236 -0
  77. package/docs-llm/Message.md +248 -0
  78. package/docs-llm/Modal.md +443 -0
  79. package/docs-llm/Monogram.md +159 -0
  80. package/docs-llm/Multiselect.md +939 -0
  81. package/docs-llm/Notifications.md +46 -0
  82. package/docs-llm/Number.md +298 -0
  83. package/docs-llm/Paginator.md +395 -0
  84. package/docs-llm/Paragraph.md +148 -0
  85. package/docs-llm/Phone Number.md +254 -0
  86. package/docs-llm/Popover.md +166 -0
  87. package/docs-llm/Progress.md +141 -0
  88. package/docs-llm/Radio Bar.md +303 -0
  89. package/docs-llm/Radio List.md +350 -0
  90. package/docs-llm/Resize.md +362 -0
  91. package/docs-llm/Screen Reader Content.md +73 -0
  92. package/docs-llm/Scroll Container Context.md +155 -0
  93. package/docs-llm/Scroll.md +152 -0
  94. package/docs-llm/Search.md +381 -0
  95. package/docs-llm/Select.md +985 -0
  96. package/docs-llm/Side Panel.md +777 -0
  97. package/docs-llm/Slider.md +339 -0
  98. package/docs-llm/Sliding Panels.md +340 -0
  99. package/docs-llm/Split Button.md +295 -0
  100. package/docs-llm/Static Content.md +90 -0
  101. package/docs-llm/Step Bar.md +292 -0
  102. package/docs-llm/Switch.md +268 -0
  103. package/docs-llm/Tab Bar.md +439 -0
  104. package/docs-llm/Tab Layout.md +398 -0
  105. package/docs-llm/Table.md +2642 -0
  106. package/docs-llm/Text Area.md +253 -0
  107. package/docs-llm/Text.md +339 -0
  108. package/docs-llm/Tooltip.md +325 -0
  109. package/docs-llm/Transition Open.md +406 -0
  110. package/docs-llm/Tree.md +591 -0
  111. package/docs-llm/Typography.md +125 -0
  112. package/docs-llm/Wait Spinner.md +121 -0
  113. package/docs-llm/llms.txt +101 -0
  114. package/package.json +6 -5
  115. package/types/src/Box/Box.d.ts +2 -10
  116. package/types/src/Drawer/Body.d.ts +17 -0
  117. package/types/src/Drawer/Drawer.d.ts +114 -0
  118. package/types/src/Drawer/DrawerContext.d.ts +11 -0
  119. package/types/src/Drawer/Footer.d.ts +25 -0
  120. package/types/src/Drawer/Header.d.ts +41 -0
  121. package/types/src/Drawer/docs/examples/Basic.d.ts +6 -0
  122. package/types/src/Drawer/docs/examples/ContainerPosition.d.ts +7 -0
  123. package/types/src/Drawer/docs/examples/InitialFocus.d.ts +9 -0
  124. package/types/src/Drawer/docs/examples/InlinePosition.d.ts +7 -0
  125. package/types/src/Drawer/docs/examples/PagePosition.d.ts +7 -0
  126. package/types/src/Drawer/index.d.ts +2 -0
  127. package/types/src/JSONTree/JSONTree.d.ts +12 -5
  128. package/types/src/JSONTree/renderTreeItems.d.ts +2 -1
  129. package/types/src/Menu/Item.d.ts +2 -1
  130. package/types/src/Menu/docs/examples/SelectableCheckbox.d.ts +7 -0
  131. package/types/src/Modal/Modal.d.ts +1 -2
  132. package/types/src/Multiselect/Compact.d.ts +8 -3
  133. package/types/src/Multiselect/Multiselect.d.ts +8 -3
  134. package/types/src/Multiselect/Normal.d.ts +8 -3
  135. package/types/src/Multiselect/Option.d.ts +6 -3
  136. package/types/src/Multiselect/docs/examples/Disabled.d.ts +1 -0
  137. package/types/src/Select/Option.d.ts +6 -3
  138. package/types/src/Select/Select.d.ts +8 -5
  139. package/types/src/Select/docs/examples/Dimmed.d.ts +7 -0
  140. package/types/src/SelectBase/OptionBase.d.ts +6 -3
  141. package/types/src/SelectBase/SelectBase.d.ts +8 -3
  142. package/types/src/SidePanel/SidePanel.d.ts +43 -2
  143. package/types/src/SidePanel/docs/examples/DockLayout.d.ts +17 -0
  144. package/types/src/SidePanel/docs/examples/InitialFocus.d.ts +9 -0
  145. package/types/src/TransitionOpen/TransitionOpen.d.ts +29 -4
  146. package/types/src/useKeyPress/index.d.ts +9 -2
  147. package/types/src/useOnClickOutside/index.d.ts +2 -0
  148. package/types/src/useOnClickOutside/useOnClickOutside.d.ts +4 -0
  149. package/useKeyPress.js +23 -18
  150. package/useOnClickOutside.d.ts +2 -0
  151. package/useOnClickOutside.js +79 -0
  152. package/types/src/RadioList/docs/examples/Row.d.ts +0 -6
package/SlidingPanels.js CHANGED
@@ -98,7 +98,7 @@
98
98
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
99
99
  * @param current - The new value of the ref.
100
100
  */
101
- function m(e, n) {
101
+ function v(e, n) {
102
102
  if (e) {
103
103
  if (typeof e === "function") {
104
104
  e(n);
@@ -111,8 +111,8 @@
111
111
  }
112
112
  }
113
113
  // CONCATENATED MODULE: ./src/SlidingPanels/Panel.tsx
114
- function v() {
115
- return v = Object.assign ? Object.assign.bind() : function(e) {
114
+ function m() {
115
+ return m = Object.assign ? Object.assign.bind() : function(e) {
116
116
  for (var n = 1; n < arguments.length; n++) {
117
117
  var t = arguments[n];
118
118
  for (var r in t) {
@@ -120,7 +120,7 @@
120
120
  }
121
121
  }
122
122
  return e;
123
- }, v.apply(null, arguments);
123
+ }, m.apply(null, arguments);
124
124
  }
125
125
  function b(e, n) {
126
126
  return j(e) || h(e, n) || g(e, n) || O();
@@ -206,7 +206,7 @@
206
206
  var c = (0, t.useState)(null), f = b(c, 2), s = f[0], y = f[1];
207
207
  var p = (0, t.useCallback)((function(e) {
208
208
  y(e);
209
- m(o, e);
209
+ v(o, e);
210
210
  }), [ o ]);
211
211
  (0, t.useEffect)((function() {
212
212
  i === null || i === void 0 ? void 0 : i(s, u);
@@ -215,7 +215,7 @@
215
215
  };
216
216
  }), [ i, a, s, u ]);
217
217
 
218
- return r().createElement(d, v({
218
+ return r().createElement(d, m({
219
219
  "data-test": "panel",
220
220
  "data-test-panel-id": u
221
221
  }, l, {
@@ -423,7 +423,7 @@
423
423
  }, c);
424
424
  }));
425
425
  function J(e) {
426
- var n = e.activePanelId, i = e.children, a = e.elementRef, l = e.innerClassName, c = e.innerStyle, f = e.onAnimationEnd, s = e.outerClassName, y = e.outerStyle, d = e.transition, m = d === void 0 ? "forward" : d, v = U(e, [ "activePanelId", "children", "elementRef", "innerClassName", "innerStyle", "onAnimationEnd", "outerClassName", "outerStyle", "transition" ]);
426
+ var n = e.activePanelId, i = e.children, a = e.elementRef, l = e.innerClassName, c = e.innerStyle, f = e.onAnimationEnd, s = e.outerClassName, y = e.outerStyle, d = e.transition, v = d === void 0 ? "forward" : d, m = U(e, [ "activePanelId", "children", "elementRef", "innerClassName", "innerStyle", "onAnimationEnd", "outerClassName", "outerStyle", "transition" ]);
427
427
  // @docs-props-type SlidingPanelsPropsBase
428
428
  var b = (0, t.useState)(0), O = C(b, 2), g = O[0], S = O[1];
429
429
  var h = (0, t.useState)([]), j = C(h, 2), w = j[0], P = j[1];
@@ -442,8 +442,8 @@
442
442
  }), [ A ]);
443
443
  /* determines what our transform translateX will look like based on is it transitioning forward or backward */ var R = (0,
444
444
  t.useMemo)((function() {
445
- return F(q, m);
446
- }), [ q, m ]);
445
+ return F(q, v);
446
+ }), [ q, v ]);
447
447
  var k = (0, u.useAnimationTransition)(g, B(B(B({
448
448
  ref: N
449
449
  }, z), R), {}, {
@@ -495,9 +495,9 @@
495
495
  className: s,
496
496
  "data-test-active-panel-id": n,
497
497
  "data-test": "sliding-panels",
498
- elementRef: a,
498
+ ref: a,
499
499
  style: y
500
- }, v), k((function(e, n) {
500
+ }, m), k((function(e, n) {
501
501
  var t = w[n];
502
502
  return t ? r().createElement(H, {
503
503
  innerClassName: l,
package/StepBar.js CHANGED
@@ -153,16 +153,16 @@
153
153
  displayName: "StepStyles__StyledExclamationCircleIcon",
154
154
  componentId: "sc-756fxp-5"
155
155
  })([ "", ";color:", ";" ], h, b.variables.contentColorNegative);
156
- var _ = p().span.withConfig({
156
+ var k = p().span.withConfig({
157
157
  displayName: "StepStyles__StyledStepLabel",
158
158
  componentId: "sc-756fxp-6"
159
159
  })([ "", "" ], (0, b.pickVariant)("$orientation", {
160
160
  horizontal: (0, s.css)([ "padding-inline:calc(", " / 2);text-align:center;" ], b.variables.spacingXXLarge),
161
- vertical: (0, s.css)([ "grid-row:1 / -1;" ])
161
+ vertical: (0, s.css)([ "grid-row:1 / -1;overflow-wrap:break-word;word-break:break-word;" ])
162
162
  }));
163
163
  // CONCATENATED MODULE: ./src/StepBar/Step.tsx
164
- function k() {
165
- return k = Object.assign ? Object.assign.bind() : function(e) {
164
+ function _() {
165
+ return _ = Object.assign ? Object.assign.bind() : function(e) {
166
166
  for (var t = 1; t < arguments.length; t++) {
167
167
  var r = arguments[t];
168
168
  for (var n in r) {
@@ -170,7 +170,7 @@
170
170
  }
171
171
  }
172
172
  return e;
173
- }, k.apply(null, arguments);
173
+ }, _.apply(null, arguments);
174
174
  }
175
175
  function E(e, t) {
176
176
  if (null == e) return {};
@@ -228,7 +228,7 @@
228
228
  })
229
229
  };
230
230
 
231
- return n().createElement(S, k({
231
+ return n().createElement(S, _({
232
232
  $status: f,
233
233
  "data-test-status": f,
234
234
  "data-test": "step",
@@ -241,7 +241,7 @@
241
241
  $status: f
242
242
  }), n().createElement(x, {
243
243
  $orientation: v
244
- }, m[f]), n().createElement(_, {
244
+ }, m[f]), n().createElement(k, {
245
245
  $orientation: v
246
246
  }, t));
247
247
  }
package/Switch.js CHANGED
@@ -177,7 +177,7 @@
177
177
  displayName: "SwitchStyles__StyledToggleClickable",
178
178
  componentId: "sc-844ieu-5"
179
179
  })([ "", "" ], E);
180
- var R = u().label.withConfig({
180
+ var L = u().label.withConfig({
181
181
  displayName: "SwitchStyles__StyledLabel",
182
182
  componentId: "sc-844ieu-6"
183
183
  })([ "", " flex:1 1 auto;color:inherit;line-height:", ";", ";" ], k.mixins.reset("inline-block"), k.variables.lineHeight, (function(e) {
@@ -191,7 +191,7 @@
191
191
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
192
192
  * @param current - The new value of the ref.
193
193
  */
194
- function L(e, r) {
194
+ function R(e, r) {
195
195
  if (e) {
196
196
  if (typeof e === "function") {
197
197
  e(r);
@@ -380,7 +380,7 @@
380
380
  });
381
381
  }), [ p, B, m ]);
382
382
  var q = (0, a.useCallback)((function(e) {
383
- L(S, e);
383
+ R(S, e);
384
384
  }), [ S ]);
385
385
  var E = m === "some" ? "mixed" : m;
386
386
  var _ = {
@@ -413,7 +413,7 @@
413
413
  "data-test-error": u ? true : undefined,
414
414
  "data-error": u ? true : undefined,
415
415
  "data-test-disabled": n ? "disabled" : undefined,
416
- elementRef: s,
416
+ ref: s,
417
417
  $disabled: n || false
418
418
  }, O), o === "toggle" ? i().createElement(W, A({
419
419
  disabled: n || false,
@@ -422,7 +422,7 @@
422
422
  error: u || false,
423
423
  disabled: n || false,
424
424
  selected: m
425
- }, T)), j && i().createElement(c(), null, _["".concat(m)]), t && i().createElement(R, {
425
+ }, T)), j && i().createElement(c(), null, _["".concat(m)]), t && i().createElement(L, {
426
426
  $disabled: n || false,
427
427
  "data-test": "label",
428
428
  id: I,