@splunk/react-ui 4.37.0 → 4.39.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 (142) hide show
  1. package/Accordion.js +131 -153
  2. package/Anchor.js +50 -58
  3. package/Animation.js +64 -59
  4. package/AnimationToggle.js +59 -61
  5. package/Box.js +59 -67
  6. package/Breadcrumbs.js +113 -127
  7. package/Button.js +208 -219
  8. package/ButtonGroup.js +41 -49
  9. package/ButtonSimple.js +264 -295
  10. package/CHANGELOG.md +50 -1
  11. package/Calendar.js +353 -414
  12. package/Card.js +183 -243
  13. package/CardLayout.js +86 -83
  14. package/Chip.js +104 -122
  15. package/Clickable.js +180 -198
  16. package/CloseButton.js +52 -60
  17. package/Code.js +24 -31
  18. package/CollapsiblePanel.js +172 -202
  19. package/Color.js +1107 -980
  20. package/ColumnLayout.js +72 -96
  21. package/ComboBox.js +267 -305
  22. package/Concertina.js +406 -454
  23. package/ControlGroup.js +165 -194
  24. package/Date.js +116 -131
  25. package/DefinitionList.js +125 -149
  26. package/Divider.js +81 -79
  27. package/Dropdown.js +226 -237
  28. package/DualListbox.js +150 -186
  29. package/EventListener.js +4 -1
  30. package/File.js +1032 -955
  31. package/FormRows.js +281 -334
  32. package/Heading.js +27 -35
  33. package/Image.js +101 -116
  34. package/JSONTree.js +301 -344
  35. package/Layer.js +118 -126
  36. package/Link.js +141 -159
  37. package/List.js +61 -77
  38. package/MIGRATION.mdx +92 -38
  39. package/Markdown.js +288 -347
  40. package/Menu.js +512 -530
  41. package/Message.js +173 -196
  42. package/MessageBar.js +58 -66
  43. package/Modal.js +241 -290
  44. package/ModalLayer.js +130 -148
  45. package/Monogram.js +138 -138
  46. package/Multiselect.js +1600 -1923
  47. package/Number.js +159 -178
  48. package/Paginator.js +296 -335
  49. package/Paragraph.js +24 -32
  50. package/Popover.js +448 -441
  51. package/Progress.js +65 -75
  52. package/RadioBar.js +301 -303
  53. package/RadioList.js +77 -119
  54. package/Resize.js +105 -127
  55. package/ResultsMenu.js +373 -385
  56. package/ScreenReaderContent.js +130 -94
  57. package/Scroll.js +209 -244
  58. package/Search.js +375 -384
  59. package/Select.js +1076 -1354
  60. package/SidePanel.js +122 -142
  61. package/Slider.js +192 -222
  62. package/SlidingPanels.js +238 -270
  63. package/SplitButton.js +222 -245
  64. package/StaticContent.js +68 -76
  65. package/StepBar.js +206 -205
  66. package/Switch.js +211 -236
  67. package/TabBar.js +222 -258
  68. package/TabLayout.js +114 -139
  69. package/Table.js +2017 -2180
  70. package/Text.js +401 -512
  71. package/TextArea.js +411 -441
  72. package/Tooltip.js +116 -132
  73. package/TransitionOpen.js +160 -178
  74. package/Tree.js +268 -287
  75. package/Typography.js +48 -52
  76. package/WaitSpinner.js +60 -68
  77. package/cypress/support/commands.ts +9 -0
  78. package/cypress/support/index.d.ts +6 -0
  79. package/cypress/tsconfig.cypress.json +1 -0
  80. package/docker-compose.yml +0 -1
  81. package/package.json +17 -17
  82. package/types/src/Button/Button.d.ts +20 -6
  83. package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -2
  84. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -1
  85. package/types/src/Color/Color.d.ts +5 -2
  86. package/types/src/Color/Palette.d.ts +6 -2
  87. package/types/src/ComboBox/Option.d.ts +1 -1
  88. package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
  89. package/types/src/Date/Date.d.ts +2 -3
  90. package/types/src/File/File.d.ts +2 -3
  91. package/types/src/File/Retry.d.ts +1 -2
  92. package/types/src/Link/Link.d.ts +3 -4
  93. package/types/src/Menu/Item.d.ts +24 -8
  94. package/types/src/Menu/Menu.d.ts +3 -3
  95. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
  96. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
  97. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  98. package/types/src/Multiselect/Option.d.ts +2 -0
  99. package/types/src/Number/Number.d.ts +3 -3
  100. package/types/src/Popover/Popover.d.ts +3 -4
  101. package/types/src/RadioBar/RadioBar.d.ts +2 -2
  102. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  103. package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
  104. package/types/src/Search/Option.d.ts +16 -3
  105. package/types/src/Select/Option.d.ts +3 -1
  106. package/types/src/Select/OptionBase.d.ts +7 -5
  107. package/types/src/Select/Select.d.ts +2 -2
  108. package/types/src/Select/SelectAllOption.d.ts +4 -4
  109. package/types/src/Select/SelectBase.d.ts +0 -1
  110. package/types/src/SidePanel/SidePanel.d.ts +1 -1
  111. package/types/src/Slider/Slider.d.ts +2 -3
  112. package/types/src/Slider/docs/examples/Error.d.ts +2 -0
  113. package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
  114. package/types/src/StepBar/Step.d.ts +1 -2
  115. package/types/src/TabBar/Tab.d.ts +1 -1
  116. package/types/src/TabBar/TabBar.d.ts +3 -1
  117. package/types/src/TabLayout/TabLayout.d.ts +2 -0
  118. package/types/src/Table/HeadDropdownCell.d.ts +2 -0
  119. package/types/src/Table/Table.d.ts +0 -1
  120. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
  121. package/types/src/Text/IconOutlinedHide.d.ts +1 -2
  122. package/types/src/Text/IconOutlinedView.d.ts +1 -2
  123. package/types/src/Text/Text.d.ts +6 -4
  124. package/types/src/Text/docs/examples/Dimmed.d.ts +2 -0
  125. package/types/src/TextArea/TextArea.d.ts +2 -2
  126. package/types/src/Tooltip/Tooltip.d.ts +4 -4
  127. package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
  128. package/useForceUpdate.js +30 -32
  129. package/useKeyPress.js +1 -1
  130. package/types/src/Button/docs/examples/Selected.d.ts +0 -2
  131. package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
  132. package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
  133. package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
  134. package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
  135. package/types/src/Slider/docs/examples/prisma/Error.d.ts +0 -2
  136. package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
  137. package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
  138. package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
  139. /package/types/src/Date/docs/examples/{prisma/WithoutCalendar.d.ts → WithoutCalendar.d.ts} +0 -0
  140. /package/types/src/Message/docs/examples/{prisma/Title.d.ts → Title.d.ts} +0 -0
  141. /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
  142. /package/types/src/TabBar/docs/examples/{prisma/Disabled.d.ts → Disabled.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,7 +1,56 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
- 4.37. 0 - September 9, 2024
4
+ 4.39.0 - November 8, 2024
5
+ ----------
6
+ New Features:
7
+ * `File` supports `onRequestRetry` in Enterprise themes (SUI-6579).
8
+ * `ControlGroup`'s `controlsLayout="fillJoin"` value is now supported in Prisma (SUI-6676).
9
+ * `StepBar` now supports the `error` prop on `Step`s in Enterprise themes (SUI-6578).
10
+ * `Table` supports `stripeRows` in Prisma themes (SUI-6574).
11
+ * `Popover` supports `appearance="inverted"` in Prisma themes (SUI-6581).
12
+ * `Menu.Item`'s `selected` prop now supports the value `'some'`, which indicates a partially selected state (SUI-6746).
13
+ * `Menu.Item` and `Search.Option` now support `startAdornment` and `endAdornment` props (SUI-6429).
14
+
15
+ Bug Fixes:
16
+ * `ControlGroup` properly announces a11y labels with `fillJoin` value for `controlsLayout` prop (SUI-6424).
17
+ * `Color`'s text input now properly becomes disabled when `disabled` prop is passed (SUI-6680).
18
+ * `Table.Row` no longer triggers its `onClick` callback or sets a pointer cursor on the actions column created by the `actionPrimary` or `actionSecondary` props (SUI-6427).
19
+ * `Switch`'s error styles for `border-color` in hover states have been corrected in Prisma and corrected for selected and hover states in Enterprise (SUI-6651).
20
+ * `Switch`'s icon color has been corrected and will default to `accentColorNegative` in Enterprise theme (SUI-6651).
21
+ * `Menu.Item` with right description has been vertically aligned for Prisma themes (SUI-6535).
22
+ * `ComboBox` now allows to set `aria-label` value and has default value removed (SUI-6533).
23
+ * `RadioBar` and `RadioList` now set `aria-invalid` when there's an error (SUI-6523).
24
+ * `List` and `Markdown` will no longer incorrectly number ordered lists in Firefox (SUI-6855).
25
+
26
+ Deprecations:
27
+ * `Button`'s `selected` prop has been deprecated and will be removed in the next major version. See the migration guide for details (SUI-6704).
28
+ * `Table.HeadDropdownCell`'s `defaultPlacement` prop has been deprecated and will be removed in the next major version (SUI-6489).
29
+ * `TabBar` and `TabLayout`'s `appearance` prop has been deprecated and will be removed in the next major version. See the migration guide for details (SUI-6834).
30
+ * `Menu.Item` and `Search.Option`'s `icon` prop has been deprecated and will be removed in the next major version. Use `startAdornment` and/or `endAdornment` instead (SUI-6429).
31
+
32
+ 4.38.0 - October 1, 2024
33
+ ----------
34
+ New Features:
35
+ * `Slider` now supports the `error` prop in Enterprise themes (SUI-6580).
36
+ * `Search.Option` now supports the `matchRanges` prop (SUI-6383).
37
+ * `Text` now supports a new `"dimmed"` value for the `disabled` prop (SUI-6648).
38
+ * `Button` and `Menu.Item` support type `string` for `openInNewContext` to customize the default message (SUI-6662).
39
+ * `Date` now supports the `inputOnly` prop in Enterprise themes (SUI-6579).
40
+
41
+ Bug Fixes:
42
+ * `Color`'s palette now renders with the correct role and has an accessible name (SUI-6635).
43
+ * `Select` with `prefixLabel` or `suffixLabel` now has correct `aria-label` when option is selected (SUI-6642).
44
+ * `Select`'s `role` has been changed from `"button"` to `"combobox"` (SUI-6441).
45
+ * Screen reader now announces the `option` selection status and number within the `listbox`.
46
+ * `Color`'s interactive elements are additionally labelled by ControlGroup (SUI-6660).
47
+ * `Button` and `Menu.Item` now correctly informs users when a link will open in a new window in Prisma themes (SUI-6662).
48
+ * `Button` and `Menu.Item` have updated screen reader text better describing the `openInNewContext` behavior to users (SUI-6662).
49
+
50
+ Docs:
51
+ * New `List`, `Paginator`, `Table`, and `TextArea` component overviews.
52
+
53
+ 4.37.0 - September 9, 2024
5
54
  ----------
6
55
  New Features:
7
56
  * `Progress` supports `success` and `error` values for the `type` prop in Enterprise themes (SUI-6492).