@splunk/react-ui 4.41.0 → 4.43.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 (91) hide show
  1. package/ButtonGroup.js +1 -3
  2. package/CHANGELOG.md +47 -0
  3. package/Code.js +611 -426
  4. package/ComboBox.js +25 -32
  5. package/Date.js +21 -26
  6. package/Dropdown.js +33 -32
  7. package/JSONTree.js +30 -24
  8. package/Layer.js +115 -97
  9. package/Link.js +19 -21
  10. package/MIGRATION.mdx +48 -53
  11. package/Menu.js +7 -2
  12. package/MessageBar.js +54 -56
  13. package/Multiselect.js +1051 -1035
  14. package/Number.js +424 -395
  15. package/Paginator.js +269 -251
  16. package/Popover.js +595 -526
  17. package/RadioList.js +44 -43
  18. package/Resize.js +61 -61
  19. package/ResultsMenu.d.ts +2 -0
  20. package/ResultsMenu.js +4 -4
  21. package/Scroll.js +482 -475
  22. package/Search.js +56 -65
  23. package/Select.js +532 -513
  24. package/TabBar.js +4 -0
  25. package/Table.js +1519 -1437
  26. package/Text.js +29 -17
  27. package/TextArea.js +37 -37
  28. package/Tooltip.js +300 -207
  29. package/TransitionOpen.js +16 -14
  30. package/Tree.js +20 -14
  31. package/package.json +7 -7
  32. package/types/src/Button/Button.d.ts +1 -0
  33. package/types/src/ButtonGroup/ButtonGroup.d.ts +0 -4
  34. package/types/src/Code/Code.d.ts +1 -1
  35. package/types/src/ComboBox/ComboBox.d.ts +6 -3
  36. package/types/src/Date/Date.d.ts +0 -1
  37. package/types/src/Dropdown/Dropdown.d.ts +2 -1
  38. package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -0
  39. package/types/src/Layer/Layer.d.ts +2 -1
  40. package/types/src/Link/Link.d.ts +0 -2
  41. package/types/src/Multiselect/Multiselect.d.ts +2 -0
  42. package/types/src/Number/Number.d.ts +11 -10
  43. package/types/src/Number/utils.d.ts +29 -0
  44. package/types/src/Paginator/Paginator.d.ts +15 -2
  45. package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -0
  46. package/types/src/Popover/Popover.d.ts +18 -12
  47. package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
  48. package/types/src/Popover/PopoverProvider.d.ts +23 -0
  49. package/types/src/Popover/index.d.ts +2 -1
  50. package/types/src/RadioList/RadioList.d.ts +1 -1
  51. package/types/src/Resize/Resize.d.ts +0 -11
  52. package/types/src/Scroll/Inner.d.ts +17 -19
  53. package/types/src/Select/SelectBase.d.ts +7 -5
  54. package/types/src/Select/docs/examples/Appearance.d.ts +1 -11
  55. package/types/src/Select/docs/examples/Basic.d.ts +1 -9
  56. package/types/src/Select/docs/examples/Children.d.ts +1 -9
  57. package/types/src/Select/docs/examples/Descriptions.d.ts +1 -9
  58. package/types/src/Select/docs/examples/Fetching.d.ts +1 -22
  59. package/types/src/Select/docs/examples/Filter.d.ts +1 -9
  60. package/types/src/Select/docs/examples/Headings.d.ts +1 -9
  61. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +1 -24
  62. package/types/src/Select/docs/examples/Prefix.d.ts +1 -9
  63. package/types/src/Select/docs/examples/Truncate.d.ts +1 -9
  64. package/types/src/Table/ExpandButton.d.ts +8 -0
  65. package/types/src/Table/HeadDropdownCell.d.ts +2 -0
  66. package/types/src/Table/HeadInner.d.ts +5 -1
  67. package/types/src/Table/Row.d.ts +8 -2
  68. package/types/src/Table/docs/examples/Click.d.ts +2 -16
  69. package/types/src/Table/docs/examples/ClickRows.d.ts +2 -16
  70. package/types/src/Table/docs/examples/Complex.d.ts +2 -50
  71. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +1 -13
  72. package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +1 -17
  73. package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -21
  74. package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -21
  75. package/types/src/Table/docs/examples/Resizable.d.ts +2 -23
  76. package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -23
  77. package/types/src/Table/docs/examples/RowActions.d.ts +2 -39
  78. package/types/src/Table/docs/examples/Selectable.d.ts +2 -18
  79. package/types/src/Table/docs/examples/SortableColumns.d.ts +1 -11
  80. package/types/src/Tooltip/Tooltip.d.ts +38 -5
  81. package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -0
  82. package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -0
  83. package/types/src/useControlled/useControlled.d.ts +5 -4
  84. package/useControlled.js +37 -15
  85. package/usePrevious.js +62 -30
  86. package/useResizeObserver.js +122 -90
  87. package/useRovingFocus.js +5 -4
  88. package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
  89. package/types/src/Popover/PopoverContext.d.ts +0 -6
  90. package/types/src/Table/icons/ExpansionRow.d.ts +0 -6
  91. package/types/src/Tooltip/docs/examples/CustomContent.d.ts +0 -2
package/ButtonGroup.js CHANGED
@@ -118,9 +118,7 @@
118
118
  }
119
119
  var v = {
120
120
  children: l().node,
121
- elementRef: l().oneOfType([ l().func, l().object ]),
122
- /** @private */
123
- flex: l().bool
121
+ elementRef: l().oneOfType([ l().func, l().object ])
124
122
  };
125
123
  function m(e) {
126
124
  var r = e.children, o = d(e, [ "children" ]);
package/CHANGELOG.md CHANGED
@@ -1,6 +1,53 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
+ 4.43.0 - March 4, 2025
5
+ ----------
6
+ New Features:
7
+ * `Popover` supports a new `hideArrow` prop that controls whether or not to render the arrow pointing to the anchor (SUI-7061).
8
+ * Defaults to `false` in Enterprise and `true` in Prisma themes, maintaining existing behavior.
9
+ * A new `PopoverProvider` component has been added that supports a `hideArrow` prop to control whether or not any components using `Popover` render the arrow pointing to the anchor (SUI-5262).
10
+ * This controls `Color`, `ComboBox`, `Dropdown`, `Select`, `Multiselect`, `Search`, `SplitButton`, and `Tooltip`.
11
+ * `Paginator` supports a new `generatePageProps` prop for customizing pages and Prev/Next buttons (SUI-6991).
12
+ * `Code` now supports `language` `plaintext` (including additional aliases `plain`, `text`, and `txt`) (SUI-7266).
13
+
14
+ Bug Fixes:
15
+ * `Select`'s `filter` no longer has `aria-owns` attribute when blurred (SUI-7208).
16
+ * `Number` now correctly prevents multiple decimals (SUI-7234).
17
+ * `Menu` and `TabBar` now correctly ignore keyboard navigation when command key is pressed (SUI-7115).
18
+ * `Popover`'s arrow is no longer misaligned when using `pointTo` or `align="edge"` (SUI-7191).
19
+ * `CollapsiblePanel` now correctly applies height when content includes image (SUI-7084).
20
+ * `Code` no longer applies `tabIndex=0` to static (non-scrollable) content (SUI-7325).
21
+ * `JSONTree` now expands or collapses non-root nodes when the `enter` key is pressed (SUI-7076).
22
+
23
+ Typescript:
24
+ * `MultiselectChangeHandler` type now includes optional `reason` property in callback data (SUI-7222).
25
+
26
+ Docs:
27
+ * Added missing documentation for `ComboBox`'s `inputId` prop (SUI-7090).
28
+
29
+ 4.42.0 - February 5, 2025
30
+ ----------
31
+ New Features:
32
+ * `SelectBase`'s `aria-label` attribute is omitted when the `labelledBy` prop is provided, since `aria-labelledby` takes precedence over `aria-label` in screen reader announcements (A11Y-3350).
33
+ * `Tooltip` has a new `renderAnchor` prop for rendering a `Tooltip` without a wrapper element (A11Y-3260).
34
+
35
+ Bug Fixes:
36
+ * `Text` and `TextArea`'s border has been updated to improve contrast in Enterprise dark themes (SUI-6984).
37
+ * `Table`'s dropdown cells in header are now accessible with keyboard (A11Y-3007).
38
+ * `Table`'s expandable row controls are now accessible with VoiceOver (SUI-6188).
39
+ * `Multiselect` with `compact` no longer shows an extra divider when used with `Multiselect.Heading` (SUI-7031).
40
+ * `Menu.Item` will now display a correct cursor ('not-allowed') when hovering over checkbox in disabled option in `Multiselect` with `compact` (A11Y-3397).
41
+ * `Popover` is now correctly positioned when the anchor is inside a container with `transform: scale()` (SUI-3423).
42
+ * `Layer` will now render its child components when the browser is in fullscreen mode (SUI-2741).
43
+ * This also fixes the issue for components that use `Layer`: eg.`Dropdown`, `Popover`, etc.
44
+ * `Table`'s cells content are now vertically centered when there's an action column in Enterprise themes (SUI-7093).
45
+ * `Dropdown`, `Select`, and `SelectBase` with filter will now set an additional id in `aria-labelledby` on popover, providing an additional screen reader announcement with the text `Type to filter` to indicate the presence of a filtering option (A11Y-3336).
46
+
47
+ Typescript:
48
+ * `Dropdown` does not show a TS error when passed native HTML attributes as props (A11Y-3336).
49
+ * `Link` will no longer fail to build in TypeScript projects due to an invalid `LinkStyles` export (SUI-7195).
50
+
4
51
  4.41.0 - January 7, 2025
5
52
  ----------
6
53
  New Features: