@splunk/react-ui 4.31.0 → 4.33.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/Button.js +42 -45
- package/ButtonSimple.js +533 -302
- package/CHANGELOG.md +32 -1
- package/Card.js +22 -24
- package/Clickable.js +86 -76
- package/FormRows.js +229 -207
- package/MIGRATION.mdx +23 -0
- package/Menu.js +1 -1
- package/Modal.js +156 -131
- package/Multiselect.js +47 -33
- package/Select.js +236 -220
- package/TabBar.js +18 -18
- package/Text.js +21 -32
- package/package.json +6 -6
- package/types/src/Button/Button.d.ts +4 -4
- package/types/src/ButtonSimple/ButtonSimple.d.ts +8 -6
- package/types/src/ButtonSimple/mixin.d.ts +27 -0
- package/types/src/Card/Card.d.ts +13 -5
- package/types/src/Clickable/Clickable.d.ts +7 -10
- package/types/src/Clickable/NavigationProvider.d.ts +8 -1
- package/types/src/Date/Date.d.ts +2 -2
- package/types/src/Menu/Item.d.ts +0 -1
- package/types/src/Number/Number.d.ts +2 -2
- package/types/src/Select/Select.d.ts +6 -2
- package/types/src/Select/SelectBase.d.ts +6 -2
- package/types/src/Slider/Slider.d.ts +2 -2
- package/types/src/Text/docs/examples/Basic.d.ts +1 -9
- package/types/src/Text/docs/examples/Error.d.ts +2 -10
- package/types/src/Text/docs/examples/Inline.d.ts +1 -9
- package/types/src/Text/docs/examples/Multiline.d.ts +1 -9
- package/types/src/Text/docs/examples/Password.d.ts +1 -9
- package/types/src/Text/docs/examples/Search.d.ts +1 -9
- package/types/src/Button/docs/examples/prisma/Basic.d.ts +0 -2
- package/types/src/Button/docs/examples/prisma/Block.d.ts +0 -2
- package/types/src/Button/docs/examples/prisma/Disabled.d.ts +0 -2
- package/types/src/Button/docs/examples/prisma/Icons.d.ts +0 -2
- package/types/src/Button/docs/examples/prisma/Menus.d.ts +0 -2
- package/types/src/Button/docs/examples/prisma/To.d.ts +0 -2
- package/types/src/Button/docs/examples/prisma/Truncated.d.ts +0 -2
- /package/types/src/{Button/docs/examples/prisma → Clickable/docs/examples}/Dimmed.d.ts +0 -0
package/MIGRATION.mdx
CHANGED
|
@@ -5,6 +5,29 @@ 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.33.0
|
|
9
|
+
|
|
10
|
+
### Deprecated `Button`'s `appearance` values of `"flat"`, `"pill"`, and `"toggle"`
|
|
11
|
+
|
|
12
|
+
#### Change
|
|
13
|
+
|
|
14
|
+
`Button`'s `appearance` prop's `"flat"`, `"pill"`, and `"toggle"` values are deprecated and will be removed in the next major version.
|
|
15
|
+
|
|
16
|
+
#### Context
|
|
17
|
+
|
|
18
|
+
The `"pill"` value for `appearance` was only supported in Enterprise themes, and the `"flat"` and `"toggle"` values were only supported in the Prisma themes.
|
|
19
|
+
|
|
20
|
+
As part of our effort to unify behaviors and APIs across themes, we are deprecating these appearances.
|
|
21
|
+
|
|
22
|
+
#### Migration steps
|
|
23
|
+
|
|
24
|
+
For Enterprise themes:
|
|
25
|
+
* the `"pill"` value can be replaced with `"subtle"` with no other changes.
|
|
26
|
+
|
|
27
|
+
For Prisma themes:
|
|
28
|
+
* the `"flat"` appearance can be replaced by `"secondary"` or `"subtle"` depending on the context in which it appears.
|
|
29
|
+
* the `"toggle"` appearance can be replaced with `"default"`.
|
|
30
|
+
|
|
8
31
|
## 4.30.0
|
|
9
32
|
|
|
10
33
|
### Deprecated `NavigationProvider`'s `prefix` prop
|
package/Menu.js
CHANGED
|
@@ -829,7 +829,7 @@
|
|
|
829
829
|
"aria-checked": s === "checkmark" && c ? true : undefined
|
|
830
830
|
};
|
|
831
831
|
var I = S ? "right" : "left";
|
|
832
|
-
var j = p && g === "right"
|
|
832
|
+
var j = p && g === "right";
|
|
833
833
|
var E = p && !j;
|
|
834
834
|
var _ = c && s === "checkmark" && n().createElement(ee, null, S ? n().createElement(z(), {
|
|
835
835
|
inline: true,
|