@splunk/react-ui 4.34.0 → 4.36.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 (65) hide show
  1. package/Breadcrumbs.js +20 -29
  2. package/Button.js +1 -1
  3. package/CHANGELOG.md +42 -2
  4. package/Calendar.js +2 -2
  5. package/Card.js +86 -82
  6. package/Chip.js +73 -76
  7. package/CollapsiblePanel.js +2 -2
  8. package/Color.js +23 -15
  9. package/ComboBox.js +5 -4
  10. package/Concertina.js +136 -135
  11. package/ControlGroup.js +51 -48
  12. package/FormRows.js +2 -2
  13. package/JSONTree.js +295 -260
  14. package/List.js +9 -13
  15. package/MIGRATION.mdx +41 -0
  16. package/Menu.js +352 -345
  17. package/Message.js +16 -19
  18. package/Modal.js +1 -1
  19. package/Monogram.js +140 -94
  20. package/Multiselect.js +37 -20
  21. package/Paginator.js +1 -1
  22. package/RadioBar.js +157 -191
  23. package/Resize.js +133 -113
  24. package/ResultsMenu.js +124 -126
  25. package/Search.js +182 -181
  26. package/Select.js +55 -56
  27. package/Slider.js +9 -3
  28. package/StaticContent.js +48 -46
  29. package/StepBar.js +91 -87
  30. package/Switch.js +105 -97
  31. package/TabBar.js +125 -110
  32. package/Table.js +686 -687
  33. package/Text.js +78 -58
  34. package/package.json +7 -6
  35. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  36. package/types/src/Breadcrumbs/Item.d.ts +0 -1
  37. package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -0
  38. package/types/src/Card/Header.d.ts +0 -2
  39. package/types/src/Chip/Chip.d.ts +2 -4
  40. package/types/src/Color/Color.d.ts +5 -5
  41. package/types/src/ComboBox/ComboBox.d.ts +8 -4
  42. package/types/src/ComboBox/Option.d.ts +0 -1
  43. package/types/src/ControlGroup/ControlGroup.d.ts +9 -5
  44. package/types/src/JSONTree/JSONTreeItem.d.ts +2 -2
  45. package/types/src/JSONTree/renderTreeItems.d.ts +2 -2
  46. package/types/src/List/List.d.ts +2 -4
  47. package/types/src/Menu/Heading.d.ts +1 -1
  48. package/types/src/Menu/Item.d.ts +7 -5
  49. package/types/src/Menu/Menu.d.ts +13 -16
  50. package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -0
  51. package/types/src/Monogram/Monogram.d.ts +5 -6
  52. package/types/src/Multiselect/Normal.d.ts +1 -0
  53. package/types/src/Multiselect/Option.d.ts +0 -1
  54. package/types/src/Progress/Progress.d.ts +4 -1
  55. package/types/src/RadioBar/RadioBarContext.d.ts +1 -1
  56. package/types/src/Resize/Resize.d.ts +4 -2
  57. package/types/src/ResultsMenu/ResultsMenu.d.ts +11 -9
  58. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +3 -5
  59. package/types/src/Search/Option.d.ts +19 -6
  60. package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -0
  61. package/types/src/Select/Option.d.ts +0 -1
  62. package/types/src/Select/OptionBase.d.ts +2 -3
  63. package/types/src/StaticContent/StaticContent.d.ts +4 -1
  64. package/types/src/Table/DragHandle.d.ts +1 -2
  65. package/types/src/Text/Text.d.ts +2 -0
package/List.js CHANGED
@@ -62,7 +62,7 @@
62
62
  // EXPORTS
63
63
  e.d(t, {
64
64
  Item: () => /* reexport */ v,
65
- default: () => /* reexport */ P
65
+ default: () => /* reexport */ S
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const r = require("react");
@@ -194,26 +194,22 @@
194
194
  ordered: i().bool,
195
195
  type: i().oneOf([ "disc", "decimal", "lower-alpha", "upper-alpha" ])
196
196
  };
197
- var j = {
198
- type: "disc"
199
- };
200
- function S(e) {
201
- var t = e.children, r = e.elementRef, o = e.type, i = e.ordered, l = O(e, [ "children", "elementRef", "type", "ordered" ]);
197
+ function j(e) {
198
+ var t = e.children, r = e.elementRef, o = e.type, i = o === void 0 ? "disc" : o, l = e.ordered, a = O(e, [ "children", "elementRef", "type", "ordered" ]);
202
199
  // @docs-props-type ListPropsBase
203
200
  // Default prop value is "disc", we cannot determine if user or defaultProps is setting the value
204
201
  if (false) {}
205
202
 
206
203
  return n().createElement(f, b({
207
- as: i || o !== "disc" ? "ol" : "ul",
204
+ as: l || i !== "disc" ? "ol" : "ul",
208
205
  "data-test": "list",
209
206
  ref: r,
210
- $listStyleType: i ? "decimal" : o
211
- }, l), t);
207
+ $listStyleType: l ? "decimal" : i
208
+ }, a), t);
212
209
  }
213
- S.propTypes = g;
214
- S.defaultProps = j;
215
- S.Item = v;
216
- /* harmony default export */ const P = S;
210
+ j.propTypes = g;
211
+ j.Item = v;
212
+ /* harmony default export */ const S = j;
217
213
  // CONCATENATED MODULE: ./src/List/index.ts
218
214
  module.exports = t;
219
215
  /******/})();
package/MIGRATION.mdx CHANGED
@@ -5,6 +5,30 @@ import Table from '@splunk/react-ui/Table';
5
5
 
6
6
  This document lists migration guidance for new features and breaking changes.
7
7
 
8
+ ## 4.35.0
9
+
10
+ ### Deprecated `Menu`'s `retainFocus` prop
11
+
12
+ #### Change
13
+
14
+ `Menu`'s `retainFocus` prop is deprecated and will be removed in the next major version.
15
+
16
+ #### Context
17
+
18
+ To provide more control over the focus behavior of `Menu`, including the option to opt out of focus management, a new `focusMode` prop has been introduced with the following values:
19
+ - `never`: The menu will never take focus, and the active menu item will not have a focus-like appearance.
20
+ - `normal`: Opts out of focus management. The menu and its children follow the normal focus order of DOM without any interference (no loop, no arrow keys, multiple tab stops).
21
+ - `roving` (original `retainFocus={false}`): Does not retain focus inside the menu. There is one tab stop of menu. Uses up/down arrow keys to navigate and loop inside the menu.
22
+
23
+ The original `retainFocus={true}` is no longer supported due to its poor user experience and accessibility issues:
24
+ * If the Menu is used standalone, it traps the tab navigation within the Menu, preventing the user from accessing the next element via keyboard navigation.
25
+ * If the Menu is used in a `Dropdown`, it creates multiple tab stops, making navigation inefficient.
26
+
27
+ #### Migration steps
28
+
29
+ * Replace `retainFocus={false}` with `focusMode="roving"`.
30
+ * If `retainFocus={true}` was used, replace it with `focusMode="roving"`. Additionally, convert the corresponding tests with multiple tabs to use arrow key navigation.
31
+
8
32
  ## 4.34.0
9
33
 
10
34
  ### Deprecated `Select`'s `appearance` values of `"flat"`, `"pill"`, and `"toggle"`
@@ -624,3 +648,20 @@ With the new `Search` component optimized for user interaction, Text's `appearan
624
648
  #### Migration steps
625
649
 
626
650
  Replace all usage of `Text`'s `appearance="search"` value with the `Search` component. Remove all usage of `Text`'s `appearance="default"` value.
651
+
652
+ ## 4.36.0
653
+
654
+ ### Deprecated `ComboBox`, `ControlGroup`, and `StaticContent`'s `size` prop
655
+
656
+ #### Change
657
+
658
+ `ComboBox`, `ControlGroup`, and `StaticContent`'s `size` prop has been deprecated and will be removed in the next major version.
659
+
660
+ #### Context
661
+
662
+ The `size` prop currently does not do anything in `ComboBox`, `ControlGroup`, or `StaticContent`, so it will be removed in the next major version.
663
+
664
+ #### Migration steps
665
+
666
+ Remove all usage of `ComboBox`, `ControlGroup`, and `StaticContent`'s `size` prop. To change the size of components, use the `SplunkThemeProvider`'s `density` prop.
667
+