@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.
- package/Breadcrumbs.js +20 -29
- package/Button.js +1 -1
- package/CHANGELOG.md +42 -2
- package/Calendar.js +2 -2
- package/Card.js +86 -82
- package/Chip.js +73 -76
- package/CollapsiblePanel.js +2 -2
- package/Color.js +23 -15
- package/ComboBox.js +5 -4
- package/Concertina.js +136 -135
- package/ControlGroup.js +51 -48
- package/FormRows.js +2 -2
- package/JSONTree.js +295 -260
- package/List.js +9 -13
- package/MIGRATION.mdx +41 -0
- package/Menu.js +352 -345
- package/Message.js +16 -19
- package/Modal.js +1 -1
- package/Monogram.js +140 -94
- package/Multiselect.js +37 -20
- package/Paginator.js +1 -1
- package/RadioBar.js +157 -191
- package/Resize.js +133 -113
- package/ResultsMenu.js +124 -126
- package/Search.js +182 -181
- package/Select.js +55 -56
- package/Slider.js +9 -3
- package/StaticContent.js +48 -46
- package/StepBar.js +91 -87
- package/Switch.js +105 -97
- package/TabBar.js +125 -110
- package/Table.js +686 -687
- package/Text.js +78 -58
- package/package.json +7 -6
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +0 -1
- package/types/src/Breadcrumbs/Item.d.ts +0 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -0
- package/types/src/Card/Header.d.ts +0 -2
- package/types/src/Chip/Chip.d.ts +2 -4
- package/types/src/Color/Color.d.ts +5 -5
- package/types/src/ComboBox/ComboBox.d.ts +8 -4
- package/types/src/ComboBox/Option.d.ts +0 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +9 -5
- package/types/src/JSONTree/JSONTreeItem.d.ts +2 -2
- package/types/src/JSONTree/renderTreeItems.d.ts +2 -2
- package/types/src/List/List.d.ts +2 -4
- package/types/src/Menu/Heading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +7 -5
- package/types/src/Menu/Menu.d.ts +13 -16
- package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -0
- package/types/src/Monogram/Monogram.d.ts +5 -6
- package/types/src/Multiselect/Normal.d.ts +1 -0
- package/types/src/Multiselect/Option.d.ts +0 -1
- package/types/src/Progress/Progress.d.ts +4 -1
- package/types/src/RadioBar/RadioBarContext.d.ts +1 -1
- package/types/src/Resize/Resize.d.ts +4 -2
- package/types/src/ResultsMenu/ResultsMenu.d.ts +11 -9
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +3 -5
- package/types/src/Search/Option.d.ts +19 -6
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -0
- package/types/src/Select/Option.d.ts +0 -1
- package/types/src/Select/OptionBase.d.ts +2 -3
- package/types/src/StaticContent/StaticContent.d.ts +4 -1
- package/types/src/Table/DragHandle.d.ts +1 -2
- 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 */
|
|
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
|
-
|
|
198
|
-
type
|
|
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:
|
|
204
|
+
as: l || i !== "disc" ? "ol" : "ul",
|
|
208
205
|
"data-test": "list",
|
|
209
206
|
ref: r,
|
|
210
|
-
$listStyleType:
|
|
211
|
-
},
|
|
207
|
+
$listStyleType: l ? "decimal" : i
|
|
208
|
+
}, a), t);
|
|
212
209
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
S
|
|
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
|
+
|