@splunk/react-ui 4.40.0 → 4.42.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.
- package/ButtonGroup.js +1 -3
- package/CHANGELOG.md +43 -0
- package/Calendar.js +548 -744
- package/Date.js +158 -161
- package/Dropdown.js +33 -32
- package/FormRows.js +93 -97
- package/Layer.js +115 -97
- package/MIGRATION.mdx +24 -3
- package/Menu.js +10 -9
- package/MessageBar.js +5 -5
- package/Multiselect.js +1498 -1599
- package/Number.js +51 -48
- package/Popover.js +481 -479
- package/RadioBar.js +19 -15
- package/Resize.js +61 -61
- package/ResultsMenu.js +1208 -1028
- package/Scroll.js +482 -475
- package/Select.js +949 -1030
- package/Slider.js +346 -300
- package/SlidingPanels.js +166 -148
- package/TabBar.js +187 -172
- package/TabLayout.js +8 -8
- package/Table.js +1518 -1432
- package/Text.js +29 -17
- package/TextArea.js +37 -37
- package/Tooltip.js +300 -207
- package/TransitionOpen.js +44 -65
- package/package.json +4 -4
- package/types/src/ButtonGroup/ButtonGroup.d.ts +0 -4
- package/types/src/ButtonSimple/ButtonSimple.d.ts +1 -1
- package/types/src/Calendar/Calendar.d.ts +28 -30
- package/types/src/Calendar/MonthHeader.d.ts +12 -22
- package/types/src/Color/Color.d.ts +2 -2
- package/types/src/Date/Date.d.ts +18 -19
- package/types/src/Dropdown/Dropdown.d.ts +2 -1
- package/types/src/File/File.d.ts +1 -1
- package/types/src/FormRows/FormRows.d.ts +5 -60
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/Layer/Layer.d.ts +2 -1
- package/types/src/Link/Link.d.ts +5 -0
- package/types/src/Link/index.d.ts +1 -0
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Number/Number.d.ts +10 -2
- package/types/src/Popover/Popover.d.ts +1 -4
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/Resize/Resize.d.ts +0 -11
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +2 -0
- package/types/src/Scroll/Inner.d.ts +17 -19
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +5 -1
- package/types/src/Select/OptionBase.d.ts +41 -23
- package/types/src/Select/SelectAllOption.d.ts +6 -2
- package/types/src/Select/SelectBase.d.ts +8 -34
- package/types/src/Slider/Slider.d.ts +7 -16
- package/types/src/SlidingPanels/SlidingPanels.d.ts +4 -3
- package/types/src/TabBar/TabBar.d.ts +10 -2
- package/types/src/TabBar/TabBarContext.d.ts +1 -0
- package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -0
- package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -0
- package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -0
- package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -0
- package/types/src/TabLayout/TabLayout.d.ts +4 -2
- package/types/src/Table/ExpandButton.d.ts +8 -0
- package/types/src/Table/HeadDropdownCell.d.ts +2 -0
- package/types/src/Table/HeadInner.d.ts +5 -1
- package/types/src/Table/Row.d.ts +8 -4
- package/types/src/Table/Table.d.ts +0 -2
- package/types/src/Table/docs/examples/Complex.d.ts +14 -3
- package/types/src/Text/Text.d.ts +2 -2
- package/types/src/TextArea/TextArea.d.ts +2 -2
- package/types/src/Tooltip/Tooltip.d.ts +38 -5
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -0
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -0
- package/types/src/Typography/Typography.d.ts +4 -2
- package/types/src/useControlled/useControlled.d.ts +5 -4
- package/useControlled.js +37 -15
- package/usePrevious.js +62 -30
- package/useRovingFocus.js +5 -4
- package/types/src/TabBar/docs/examples/IconsInline.d.ts +0 -2
- package/types/src/TabBar/docs/examples/IconsSmall.d.ts +0 -2
- package/types/src/TabBar/docs/examples/VerticalSmallIcons.d.ts +0 -2
- package/types/src/Table/docs/examples/prisma/Complex.d.ts +0 -48
- package/types/src/Table/icons/ExpansionRow.d.ts +0 -6
- package/types/src/Tooltip/docs/examples/CustomContent.d.ts +0 -2
- /package/types/src/Table/docs/examples/{prisma/RowActions.d.ts → RowActions.d.ts} +0 -0
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,46 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
4.42.0 - February 5, 2025
|
|
5
|
+
----------
|
|
6
|
+
New Features:
|
|
7
|
+
* `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).
|
|
8
|
+
* `Tooltip` has a new `renderAnchor` prop for rendering a `Tooltip` without a wrapper element (A11Y-3260).
|
|
9
|
+
|
|
10
|
+
Bug Fixes:
|
|
11
|
+
* `Text` and `TextArea`'s border has been updated to improve contrast in Enterprise dark themes (SUI-6984).
|
|
12
|
+
* `Table`'s dropdown cells in header are now accessible with keyboard (A11Y-3007).
|
|
13
|
+
* `Table`'s expandable row controls are now accessible with VoiceOver (SUI-6188).
|
|
14
|
+
* `Multiselect` with `compact` no longer shows an extra divider when used with `Multiselect.Heading` (SUI-7031).
|
|
15
|
+
* `Menu.Item` will now display a correct cursor ('not-allowed') when hovering over checkbox in disabled option in `Multiselect` with `compact` (A11Y-3397).
|
|
16
|
+
* `Popover` is now correctly positioned when the anchor is inside a container with `transform: scale()` (SUI-3423).
|
|
17
|
+
* `Layer` will now render its child components when the browser is in fullscreen mode (SUI-2741).
|
|
18
|
+
* This also fixes the issue for components that use `Layer`: eg.`Dropdown`, `Popover`, etc.
|
|
19
|
+
* `Table`'s cells content are now vertically centered when there's an action column in Enterprise themes (SUI-7093).
|
|
20
|
+
* `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).
|
|
21
|
+
|
|
22
|
+
Typescript:
|
|
23
|
+
* `Dropdown` does not show a TS error when passed native HTML attributes as props (A11Y-3336).
|
|
24
|
+
* `Link` will no longer fail to build in TypeScript projects due to an invalid `LinkStyles` export (SUI-7195).
|
|
25
|
+
|
|
26
|
+
4.41.0 - January 7, 2025
|
|
27
|
+
----------
|
|
28
|
+
New Features:
|
|
29
|
+
* `Table` now supports `actions`, `actionsColumnWidth`, `actionPrimary`, and `actionsSecondary` in Enterprise themes (SUI-6885).
|
|
30
|
+
|
|
31
|
+
Bug Fixes:
|
|
32
|
+
* `Multiselect.Compact` no longer discards passed keys and generates default keys for children in lists (SUI-6977).
|
|
33
|
+
* `Menu.Heading` no longer adds `aria-hidden="false"` to the DOM incorrectly in certain scenarios (SUI-6958).
|
|
34
|
+
* `RadioBar` will no longer incorrectly have extra spacing when switching from Prisma to Enterprise themes (SUI-6906).
|
|
35
|
+
* `Select` and `Multiselect` now correctly display headings and no options message when filtering (SUI-6949).
|
|
36
|
+
* `RadioBar.Option` has the correct background color when focused in Prisma themes (SUI-6982).
|
|
37
|
+
* `CollapsiblePanel` and `TransitionOpen` will no longer get stuck at zero height when `renderChildrenWhenCollapsed` is true (SUI-6989).
|
|
38
|
+
* `MessageBar` now applies the correct styles to `Link`s without the `to` prop (SUI-7002).
|
|
39
|
+
* `RadioBar` sets `aria-disabled="true"` on the group when all child options are disabled. (SUI-7021).
|
|
40
|
+
|
|
41
|
+
Typescript:
|
|
42
|
+
* `Slider`'s error prop has been corrected to be optional (SUI-6504).
|
|
43
|
+
|
|
4
44
|
4.40.0 - December 3, 2024
|
|
5
45
|
----------
|
|
6
46
|
New Features:
|
|
@@ -8,6 +48,7 @@ New Features:
|
|
|
8
48
|
* `Chip` now supports all `appearance` values in all themes (SUI-6856).
|
|
9
49
|
* `Multiselect` now supports the `selectedAppearance` prop in Prisma themes (SUI-6856).
|
|
10
50
|
* `WaitSpinner` now supports `size="large"` in Enterprise themes (SUI-6902).
|
|
51
|
+
* `TabBar` and `TabLayout` now support a new `iconPosition` prop (SUI-6901).
|
|
11
52
|
|
|
12
53
|
Bug Fixes:
|
|
13
54
|
* `Number` now has the role of `spinbutton` and adds the associated aria attributes (A11Y-2976).
|
|
@@ -17,10 +58,12 @@ Bug Fixes:
|
|
|
17
58
|
* `Message.Title` no longer is inline with other content (SUI-6250).
|
|
18
59
|
* `TabBar.Tab` and `TabLayout.Panel` are no longer incorrectly sized if the `label` attribute is not a string (SUI-6877).
|
|
19
60
|
* `SplitButton` types are now being exported (SUI-6306).
|
|
61
|
+
* `ResultsMenu`'s no option item has now appropriate contrast (SUI-6543).
|
|
20
62
|
|
|
21
63
|
Deprecations:
|
|
22
64
|
* `Select`'s `"primary"` value of the `appearance` prop has been deprecated and will be removed in the next major version. See the migration guide for details (SUI-6866).
|
|
23
65
|
* `Card` and `Card.Footer`'s `showBorder` prop is deprecated and will be removed in the next major version (SUI-6577).
|
|
66
|
+
* `TabBar` and `TabLayout`'s `iconSize` prop has been deprecated and will be removed in the next major version. See the migration guide for details (SUI-6901).
|
|
24
67
|
|
|
25
68
|
4.39.0 - November 8, 2024
|
|
26
69
|
----------
|