@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.
Files changed (40) hide show
  1. package/Button.js +42 -45
  2. package/ButtonSimple.js +533 -302
  3. package/CHANGELOG.md +32 -1
  4. package/Card.js +22 -24
  5. package/Clickable.js +86 -76
  6. package/FormRows.js +229 -207
  7. package/MIGRATION.mdx +23 -0
  8. package/Menu.js +1 -1
  9. package/Modal.js +156 -131
  10. package/Multiselect.js +47 -33
  11. package/Select.js +236 -220
  12. package/TabBar.js +18 -18
  13. package/Text.js +21 -32
  14. package/package.json +6 -6
  15. package/types/src/Button/Button.d.ts +4 -4
  16. package/types/src/ButtonSimple/ButtonSimple.d.ts +8 -6
  17. package/types/src/ButtonSimple/mixin.d.ts +27 -0
  18. package/types/src/Card/Card.d.ts +13 -5
  19. package/types/src/Clickable/Clickable.d.ts +7 -10
  20. package/types/src/Clickable/NavigationProvider.d.ts +8 -1
  21. package/types/src/Date/Date.d.ts +2 -2
  22. package/types/src/Menu/Item.d.ts +0 -1
  23. package/types/src/Number/Number.d.ts +2 -2
  24. package/types/src/Select/Select.d.ts +6 -2
  25. package/types/src/Select/SelectBase.d.ts +6 -2
  26. package/types/src/Slider/Slider.d.ts +2 -2
  27. package/types/src/Text/docs/examples/Basic.d.ts +1 -9
  28. package/types/src/Text/docs/examples/Error.d.ts +2 -10
  29. package/types/src/Text/docs/examples/Inline.d.ts +1 -9
  30. package/types/src/Text/docs/examples/Multiline.d.ts +1 -9
  31. package/types/src/Text/docs/examples/Password.d.ts +1 -9
  32. package/types/src/Text/docs/examples/Search.d.ts +1 -9
  33. package/types/src/Button/docs/examples/prisma/Basic.d.ts +0 -2
  34. package/types/src/Button/docs/examples/prisma/Block.d.ts +0 -2
  35. package/types/src/Button/docs/examples/prisma/Disabled.d.ts +0 -2
  36. package/types/src/Button/docs/examples/prisma/Icons.d.ts +0 -2
  37. package/types/src/Button/docs/examples/prisma/Menus.d.ts +0 -2
  38. package/types/src/Button/docs/examples/prisma/To.d.ts +0 -2
  39. package/types/src/Button/docs/examples/prisma/Truncated.d.ts +0 -2
  40. /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" && I !== "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,