@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.
- package/Accordion.js +131 -153
- package/Anchor.js +50 -58
- package/Animation.js +64 -59
- package/AnimationToggle.js +59 -61
- package/Box.js +59 -67
- package/Breadcrumbs.js +113 -127
- package/Button.js +208 -219
- package/ButtonGroup.js +41 -49
- package/ButtonSimple.js +264 -295
- package/CHANGELOG.md +50 -1
- package/Calendar.js +353 -414
- package/Card.js +183 -243
- package/CardLayout.js +86 -83
- package/Chip.js +104 -122
- package/Clickable.js +180 -198
- package/CloseButton.js +52 -60
- package/Code.js +24 -31
- package/CollapsiblePanel.js +172 -202
- package/Color.js +1107 -980
- package/ColumnLayout.js +72 -96
- package/ComboBox.js +267 -305
- package/Concertina.js +406 -454
- package/ControlGroup.js +165 -194
- package/Date.js +116 -131
- package/DefinitionList.js +125 -149
- package/Divider.js +81 -79
- package/Dropdown.js +226 -237
- package/DualListbox.js +150 -186
- package/EventListener.js +4 -1
- package/File.js +1032 -955
- package/FormRows.js +281 -334
- package/Heading.js +27 -35
- package/Image.js +101 -116
- package/JSONTree.js +301 -344
- package/Layer.js +118 -126
- package/Link.js +141 -159
- package/List.js +61 -77
- package/MIGRATION.mdx +92 -38
- package/Markdown.js +288 -347
- package/Menu.js +512 -530
- package/Message.js +173 -196
- package/MessageBar.js +58 -66
- package/Modal.js +241 -290
- package/ModalLayer.js +130 -148
- package/Monogram.js +138 -138
- package/Multiselect.js +1600 -1923
- package/Number.js +159 -178
- package/Paginator.js +296 -335
- package/Paragraph.js +24 -32
- package/Popover.js +448 -441
- package/Progress.js +65 -75
- package/RadioBar.js +301 -303
- package/RadioList.js +77 -119
- package/Resize.js +105 -127
- package/ResultsMenu.js +373 -385
- package/ScreenReaderContent.js +130 -94
- package/Scroll.js +209 -244
- package/Search.js +375 -384
- package/Select.js +1076 -1354
- package/SidePanel.js +122 -142
- package/Slider.js +192 -222
- package/SlidingPanels.js +238 -270
- package/SplitButton.js +222 -245
- package/StaticContent.js +68 -76
- package/StepBar.js +206 -205
- package/Switch.js +211 -236
- package/TabBar.js +222 -258
- package/TabLayout.js +114 -139
- package/Table.js +2017 -2180
- package/Text.js +401 -512
- package/TextArea.js +411 -441
- package/Tooltip.js +116 -132
- package/TransitionOpen.js +160 -178
- package/Tree.js +268 -287
- package/Typography.js +48 -52
- package/WaitSpinner.js +60 -68
- package/cypress/support/commands.ts +9 -0
- package/cypress/support/index.d.ts +6 -0
- package/cypress/tsconfig.cypress.json +1 -0
- package/docker-compose.yml +0 -1
- package/package.json +17 -17
- package/types/src/Button/Button.d.ts +20 -6
- package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -2
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -1
- package/types/src/Color/Color.d.ts +5 -2
- package/types/src/Color/Palette.d.ts +6 -2
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
- package/types/src/Date/Date.d.ts +2 -3
- package/types/src/File/File.d.ts +2 -3
- package/types/src/File/Retry.d.ts +1 -2
- package/types/src/Link/Link.d.ts +3 -4
- package/types/src/Menu/Item.d.ts +24 -8
- package/types/src/Menu/Menu.d.ts +3 -3
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +2 -0
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Popover/Popover.d.ts +3 -4
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
- package/types/src/Search/Option.d.ts +16 -3
- package/types/src/Select/Option.d.ts +3 -1
- package/types/src/Select/OptionBase.d.ts +7 -5
- package/types/src/Select/Select.d.ts +2 -2
- package/types/src/Select/SelectAllOption.d.ts +4 -4
- package/types/src/Select/SelectBase.d.ts +0 -1
- package/types/src/SidePanel/SidePanel.d.ts +1 -1
- package/types/src/Slider/Slider.d.ts +2 -3
- package/types/src/Slider/docs/examples/Error.d.ts +2 -0
- package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
- package/types/src/StepBar/Step.d.ts +1 -2
- package/types/src/TabBar/Tab.d.ts +1 -1
- package/types/src/TabBar/TabBar.d.ts +3 -1
- package/types/src/TabLayout/TabLayout.d.ts +2 -0
- package/types/src/Table/HeadDropdownCell.d.ts +2 -0
- package/types/src/Table/Table.d.ts +0 -1
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
- package/types/src/Text/IconOutlinedHide.d.ts +1 -2
- package/types/src/Text/IconOutlinedView.d.ts +1 -2
- package/types/src/Text/Text.d.ts +6 -4
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -0
- package/types/src/TextArea/TextArea.d.ts +2 -2
- package/types/src/Tooltip/Tooltip.d.ts +4 -4
- package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
- package/useForceUpdate.js +30 -32
- package/useKeyPress.js +1 -1
- package/types/src/Button/docs/examples/Selected.d.ts +0 -2
- package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
- package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
- package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
- package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
- package/types/src/Slider/docs/examples/prisma/Error.d.ts +0 -2
- package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
- package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
- package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
- /package/types/src/Date/docs/examples/{prisma/WithoutCalendar.d.ts → WithoutCalendar.d.ts} +0 -0
- /package/types/src/Message/docs/examples/{prisma/Title.d.ts → Title.d.ts} +0 -0
- /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
- /package/types/src/TabBar/docs/examples/{prisma/Disabled.d.ts → Disabled.d.ts} +0 -0
package/MIGRATION.mdx
CHANGED
|
@@ -5,6 +5,60 @@ 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.39.0
|
|
9
|
+
|
|
10
|
+
### Deprecated `TabBar` and `TabLayout`'s `appearance` prop
|
|
11
|
+
|
|
12
|
+
#### Change
|
|
13
|
+
|
|
14
|
+
`TabBar` and `TabLayout`'s `appearance` prop is deprecated and will be removed in the next major version.
|
|
15
|
+
|
|
16
|
+
#### Context
|
|
17
|
+
|
|
18
|
+
The `appearance` prop exists to support the `"context"` appearance, which renders tabs without the divider separating the tab and its contents. It also does not underline the active tab.
|
|
19
|
+
|
|
20
|
+
Due to these factors, the `"context"` appearance has poor accessibility on two fronts:
|
|
21
|
+
* it makes it difficult to distinguish the tabs from the content
|
|
22
|
+
* it has poor contrast between the selected and unselected tabs
|
|
23
|
+
|
|
24
|
+
The existance of this appearance has also encouraged uses of these components where tabs are not appropriate.
|
|
25
|
+
|
|
26
|
+
Additionally, this appearance has only been supported in Prisma themes, leading to visual inconsistency with Enterprise themes.
|
|
27
|
+
|
|
28
|
+
To eliminate these issues, we have deprecated the `appearance` prop.
|
|
29
|
+
|
|
30
|
+
#### Migration steps
|
|
31
|
+
|
|
32
|
+
Remove usages of the `appearance` prop:
|
|
33
|
+
|
|
34
|
+
1) If you were using `appearance="navigation"`, that is the default appearance and removing the prop will have no effect.
|
|
35
|
+
2) If you were using `appearance="context"`, the tabs will render with the default appearance.
|
|
36
|
+
|
|
37
|
+
### Deprecated `Button`'s `selected` prop
|
|
38
|
+
|
|
39
|
+
#### Change
|
|
40
|
+
|
|
41
|
+
`Button`'s `selected` prop is deprecated and will be removed in the next major version.
|
|
42
|
+
|
|
43
|
+
#### Context
|
|
44
|
+
|
|
45
|
+
By existing on the `Button` component, the `selected` attribute had to account for prop combinations that were invalid.
|
|
46
|
+
For example, `appearance="primary"` is not a valid combination with `selected`, but both those props exist in tandem on `Button`.
|
|
47
|
+
|
|
48
|
+
Additionally, the `selected` prop in isolation is unable to provide sufficient accessibility.
|
|
49
|
+
For example, using it inside a `ButtonGroup` appears correct, but both the `ButtonGroup` and the `Button` require additional aria attributes to be accessible.
|
|
50
|
+
|
|
51
|
+
Given these issues and the usages of the `selected` prop that we've observed, we believe that one of the options outlined in the migration steps can provide the required functionality without the aforementioned visual and accessibility issues.
|
|
52
|
+
|
|
53
|
+
If these alternatives do not match your use case, please reach out to us.
|
|
54
|
+
|
|
55
|
+
#### Migration steps
|
|
56
|
+
|
|
57
|
+
There are two possible use cases for a selectable `Button`:
|
|
58
|
+
|
|
59
|
+
1) If the `Button` was used as part of a `ButtonGroup`, replace it with a `RadioBar`.
|
|
60
|
+
2) If the `Button` was used standalone, replace it with a `Switch` with `appearance="toggle"`.
|
|
61
|
+
|
|
8
62
|
## 4.35.0
|
|
9
63
|
|
|
10
64
|
### Deprecated `Menu`'s `retainFocus` prop
|
|
@@ -39,7 +93,7 @@ The original `retainFocus={true}` is no longer supported due to its poor user ex
|
|
|
39
93
|
|
|
40
94
|
#### Context
|
|
41
95
|
|
|
42
|
-
The `"pill"` value for `appearance` was only supported in Enterprise
|
|
96
|
+
The `"pill"` value for `appearance` was only supported in Enterprise themes, and the `"flat"` and `"toggle"` values were only supported in Prisma themes.
|
|
43
97
|
|
|
44
98
|
As part of our effort to unify behaviors and APIs across themes, we are deprecating these appearances.
|
|
45
99
|
|
|
@@ -118,14 +172,14 @@ For Prisma themes:
|
|
|
118
172
|
|
|
119
173
|
#### Context
|
|
120
174
|
|
|
121
|
-
Previously, `titleWithActions` prop allowed for customized interactive elements to be added directly to the `title` prop.
|
|
122
|
-
Now, a new `actions` prop is introduced to reserve the `title` prop for text only. The `actions` prop should contain all customized
|
|
123
|
-
interactive actions that were previously placed in the `title` prop. This ensures that the controls are not read as part of the label,
|
|
175
|
+
Previously, `titleWithActions` prop allowed for customized interactive elements to be added directly to the `title` prop.
|
|
176
|
+
Now, a new `actions` prop is introduced to reserve the `title` prop for text only. The `actions` prop should contain all customized
|
|
177
|
+
interactive actions that were previously placed in the `title` prop. This ensures that the controls are not read as part of the label,
|
|
124
178
|
while still providing the necessary interactivity.
|
|
125
179
|
|
|
126
180
|
#### Migration steps
|
|
127
181
|
|
|
128
|
-
Remove `CollapsiblePanel`'s `titleWithActions` prop. Extract the actions/interactive elements from the `title` prop
|
|
182
|
+
Remove `CollapsiblePanel`'s `titleWithActions` prop. Extract the actions/interactive elements from the `title` prop
|
|
129
183
|
and move them to the new `actions` prop.
|
|
130
184
|
|
|
131
185
|
## 4.30.0
|
|
@@ -189,14 +243,14 @@ Example with a sibling text element:
|
|
|
189
243
|
### New `SingleOpenPanelGroup` API for `CollapsiblePanel`
|
|
190
244
|
|
|
191
245
|
#### Change
|
|
192
|
-
A new API, `SingleOpenPanelGroup`, has been added to `CollapsiblePanel`.
|
|
246
|
+
A new API, `SingleOpenPanelGroup`, has been added to `CollapsiblePanel`.
|
|
193
247
|
|
|
194
248
|
#### Context
|
|
195
249
|
`Accordion` and `CollapsiblePanel` have similar style and behavior. Their only behavioral difference was that `Accordion` would only allow one panel to be open at a time, whereas `CollapsiblePanel` would allow multiple panels to be open at a time.
|
|
196
250
|
|
|
197
|
-
Although they looked and behaved similarly, the APIs of `Accordion` and `CollapsiblePanel` were inconsistent. `inset` was supported in `Accordion` but not `CollapsiblePanel`; while actions were supported in `CollapsiblePanel` but not `Accordion`. Lastly, the components had different numbers of event handlers with different signatures.
|
|
251
|
+
Although they looked and behaved similarly, the APIs of `Accordion` and `CollapsiblePanel` were inconsistent. `inset` was supported in `Accordion` but not `CollapsiblePanel`; while actions were supported in `CollapsiblePanel` but not `Accordion`. Lastly, the components had different numbers of event handlers with different signatures.
|
|
198
252
|
|
|
199
|
-
These differences could lead to confusion on which component to use. It could also lead to using one component for a certain feature and then adding custom code to duplicate the functionality from the other component.
|
|
253
|
+
These differences could lead to confusion on which component to use. It could also lead to using one component for a certain feature and then adding custom code to duplicate the functionality from the other component.
|
|
200
254
|
|
|
201
255
|
Given these behavioral and technical differences, `Accordion` will be deprecated in the next major version and `CollapsiblePanel` will support all the features of `Accordion` through its `SingleOpenPanelGroup` API. You will still be able to use `Accordion` in the next major version, but we recommend following the migration steps below at your earliest convenience.
|
|
202
256
|
|
|
@@ -206,10 +260,10 @@ Replace usage of `Accordion` with the `SingleOpenPanelGroup` component exported
|
|
|
206
260
|
### Deprecated `onRequestClose` and `onRequestOpen` callbacks and added new `onChange` callback for `CollapsiblePanel`
|
|
207
261
|
|
|
208
262
|
#### Change
|
|
209
|
-
`CollapsiblePanel`'s `onRequestClose` and `onRequestOpen` callbacks have been deprecated and will be removed in the next major version. A new callback `onChange` has been added to `CollapsiblePanel`.
|
|
263
|
+
`CollapsiblePanel`'s `onRequestClose` and `onRequestOpen` callbacks have been deprecated and will be removed in the next major version. A new callback `onChange` has been added to `CollapsiblePanel`.
|
|
210
264
|
|
|
211
265
|
#### Context
|
|
212
|
-
An `onChange` callback is more consistent with other components in `@splunk/react-ui`.
|
|
266
|
+
An `onChange` callback is more consistent with other components in `@splunk/react-ui`.
|
|
213
267
|
|
|
214
268
|
#### Migration steps
|
|
215
269
|
Replace `onRequestClose` and `onRequestOpen` callbacks with the new `onChange` callback when using a controlled `CollapsiblePanel`. See the Controlled example in `CollapsiblePanel`'s documentation.
|
|
@@ -219,16 +273,16 @@ Replace `onRequestClose` and `onRequestOpen` callbacks with the new `onChange` c
|
|
|
219
273
|
### New `returnFocus` prop for `Modal`
|
|
220
274
|
|
|
221
275
|
#### Change
|
|
222
|
-
A new prop, `returnFocus`, has been added to `Modal`. `returnFocus` is optional for backwards compatibility but will be required in the next major version.
|
|
276
|
+
A new prop, `returnFocus`, has been added to `Modal`. `returnFocus` is optional for backwards compatibility but will be required in the next major version.
|
|
223
277
|
|
|
224
278
|
#### Context
|
|
225
|
-
Failing to return focus back to the invoking element (or another logical place) is a WCAG violation. Currently,
|
|
279
|
+
Failing to return focus back to the invoking element (or another logical place) is a WCAG violation. Currently,
|
|
226
280
|
developers must remember to manually return focus. The `returnFocus` prop will be required in the next major version
|
|
227
|
-
and ensure focus is returned back to the invoking element.
|
|
281
|
+
and ensure focus is returned back to the invoking element.
|
|
228
282
|
|
|
229
283
|
#### Migration steps
|
|
230
|
-
Previously it was required to add code to manually return focus in `onRequestClose` for the `Modal` and `Modal.Header`.
|
|
231
|
-
This code can now be removed and replaced by passing the invoking element's ref to the new `returnFocus` prop on `Modal`.
|
|
284
|
+
Previously it was required to add code to manually return focus in `onRequestClose` for the `Modal` and `Modal.Header`.
|
|
285
|
+
This code can now be removed and replaced by passing the invoking element's ref to the new `returnFocus` prop on `Modal`.
|
|
232
286
|
|
|
233
287
|
For example, this code snippet:
|
|
234
288
|
```jsx
|
|
@@ -267,7 +321,7 @@ can be converted to this code:
|
|
|
267
321
|
### Deprecated `JSONTree`'s `expandChildren="withShiftModifier"` value
|
|
268
322
|
|
|
269
323
|
#### Change
|
|
270
|
-
`JSONTree`'s `expandChildren="withShiftModifier"` value has been deprecated and will be removed in a future major version. A new prop `expandChildrenOnShiftKey` has been added to `JSONTree` to expand all descendant nodes when using `shift + click` or `shift + enter`.
|
|
324
|
+
`JSONTree`'s `expandChildren="withShiftModifier"` value has been deprecated and will be removed in a future major version. A new prop `expandChildrenOnShiftKey` has been added to `JSONTree` to expand all descendant nodes when using `shift + click` or `shift + enter`.
|
|
271
325
|
|
|
272
326
|
#### Context
|
|
273
327
|
Separating the `shift + click` capability from `expandChildren` allows users to decide if they want to enable `shift + click` to expand all descendant nodes independently of
|
|
@@ -281,13 +335,13 @@ Replace all usage of `JSONTree`'s `expandChildren="withShiftModifier"` value wit
|
|
|
281
335
|
### Deprecated `level="s"` and `level="ss"` and added new `variant` prop for `Heading`
|
|
282
336
|
|
|
283
337
|
#### Change
|
|
284
|
-
`Heading`'s `level="s"` and `level="ss"` have been deprecated and will be removed in a future major version. A new prop `variant` has been added to `Heading` to add styles from `Typography`'s title variants.
|
|
338
|
+
`Heading`'s `level="s"` and `level="ss"` have been deprecated and will be removed in a future major version. A new prop `variant` has been added to `Heading` to add styles from `Typography`'s title variants.
|
|
285
339
|
|
|
286
340
|
#### Context
|
|
287
341
|
The values "s" and "ss" aren't as clear as numerical values at describing which `<hX>` HTML tag they correspond to. Instead, use `Heading` `level`(1 - 6) and `variant`(title1 - title6) props to achieve the desired `Heading` style. This separates the concerns of semantics from styling, which allows for better accessibility and design.
|
|
288
342
|
|
|
289
343
|
#### Migration steps
|
|
290
|
-
It is recommended to update `Heading`'s `level="s"` and `level="ss"` to `level=5` or `level=6` respectively and use the `variant` prop for styling.
|
|
344
|
+
It is recommended to update `Heading`'s `level="s"` and `level="ss"` to `level=5` or `level=6` respectively and use the `variant` prop for styling.
|
|
291
345
|
To keep the same style as `Heading`'s `level="s"` and `level="ss"` follow the below code:
|
|
292
346
|
|
|
293
347
|
*Enterprise*
|
|
@@ -330,13 +384,13 @@ const StyledSHeading = styled(Heading)`
|
|
|
330
384
|
color: ${variables.contentColorDefault};
|
|
331
385
|
`;
|
|
332
386
|
|
|
333
|
-
<StyledSHeading level={4} variant="title4"/>
|
|
387
|
+
<StyledSHeading level={4} variant="title4"/>
|
|
334
388
|
```
|
|
335
389
|
|
|
336
390
|
`level="ss"` styling:
|
|
337
391
|
|
|
338
392
|
```jsx
|
|
339
|
-
No styling is needed.
|
|
393
|
+
No styling is needed.
|
|
340
394
|
<Heading level="ss"> is equivalent to <StyledSHeading level={5} variant="title5"/>
|
|
341
395
|
```
|
|
342
396
|
|
|
@@ -351,7 +405,7 @@ Additionally, when entering text into a `TextArea` users can clear the contents
|
|
|
351
405
|
|
|
352
406
|
#### Migration Step
|
|
353
407
|
|
|
354
|
-
Remove the `canClear` prop from `TextArea`. If supporting a one-click clear action is critical, there are two possible methods to add this feature:
|
|
408
|
+
Remove the `canClear` prop from `TextArea`. If supporting a one-click clear action is critical, there are two possible methods to add this feature:
|
|
355
409
|
|
|
356
410
|
1) Use the `endAdornment` prop:
|
|
357
411
|
|
|
@@ -420,7 +474,7 @@ Themes has new variables in version 4.17.0 that support all of the weight values
|
|
|
420
474
|
This aligns with the existing API for `variant` in this component.
|
|
421
475
|
|
|
422
476
|
#### Migration steps
|
|
423
|
-
Convert any usage of a number to the keyword value using the following table based on <Link to="https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#common_weight_name_mapping" openInNewContext>MDN</Link>:
|
|
477
|
+
Convert any usage of a number to the keyword value using the following table based on <Link to="https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#common_weight_name_mapping" openInNewContext>MDN</Link>:
|
|
424
478
|
|
|
425
479
|
<Table>
|
|
426
480
|
<Table.Head>
|
|
@@ -460,7 +514,7 @@ Convert any usage of a number to the keyword value using the following table bas
|
|
|
460
514
|
</Table>
|
|
461
515
|
|
|
462
516
|
For example, convert `<Typography as="p" weight={700} />` to `<Typography as="p" weight='bold' />`.
|
|
463
|
-
|
|
517
|
+
|
|
464
518
|
## 4.13.0
|
|
465
519
|
|
|
466
520
|
### Deprecated `Button` `appearance="pill"`
|
|
@@ -474,7 +528,7 @@ The “pill” appearance is deprecated due to confusion among designers and eng
|
|
|
474
528
|
#### Migration steps
|
|
475
529
|
Replace all usage of `Button` `appearance="pill"` with `appearance="default"` or use the `Link` component instead.
|
|
476
530
|
|
|
477
|
-
### Deprecated `placeholder` prop in `Text`, `TextArea`, and `Number`
|
|
531
|
+
### Deprecated `placeholder` prop in `Text`, `TextArea`, and `Number`
|
|
478
532
|
|
|
479
533
|
#### Change
|
|
480
534
|
The `placeholder` prop in `Text`, `TextArea`, and `Number` is deprecated and will be removed from future major versions.
|
|
@@ -523,7 +577,7 @@ To keep the previous behavior, set `separateStackingContexts={false}`.
|
|
|
523
577
|
### Deprecated `RadioBar.Option`'s `icon` prop
|
|
524
578
|
|
|
525
579
|
#### Change
|
|
526
|
-
`RadioBar.Option`'s `icon` prop is deprecated and will be removed in a future major version.
|
|
580
|
+
`RadioBar.Option`'s `icon` prop is deprecated and will be removed in a future major version.
|
|
527
581
|
|
|
528
582
|
#### Context
|
|
529
583
|
The `RadioBar.Option` icon should not be used due to misalignment with `Text`.
|
|
@@ -536,13 +590,13 @@ Replace all usage of `RadioBar.Option`'s `icon` prop with `startAdornment` and/o
|
|
|
536
590
|
### Deprecated `Message` `appearance="banner"`
|
|
537
591
|
|
|
538
592
|
#### Change
|
|
539
|
-
`Message`’s `appearance="banner"` option is deprecated and will be removed in a future major version.
|
|
593
|
+
`Message`’s `appearance="banner"` option is deprecated and will be removed in a future major version.
|
|
540
594
|
|
|
541
595
|
#### Context
|
|
542
|
-
Please use `MessageBar` instead of `Message` with `appearance="banner"`.
|
|
596
|
+
Please use `MessageBar` instead of `Message` with `appearance="banner"`.
|
|
543
597
|
|
|
544
598
|
Use `MessageBar` for:
|
|
545
|
-
- System-level messages (such as expired accounts, server outages, account status, etc).
|
|
599
|
+
- System-level messages (such as expired accounts, server outages, account status, etc).
|
|
546
600
|
- Information, warning, error, or success notifications
|
|
547
601
|
|
|
548
602
|
Use `Message` or another component for:
|
|
@@ -557,7 +611,7 @@ Replace all usage of `Message`’s `appearance="banner"` option to `MessageBar`.
|
|
|
557
611
|
`Message.Link` is deprecated and will be removed in a future major version.
|
|
558
612
|
|
|
559
613
|
### Context
|
|
560
|
-
`MessageBar` now applies the necessary styles to `Link`.
|
|
614
|
+
`MessageBar` now applies the necessary styles to `Link`.
|
|
561
615
|
|
|
562
616
|
#### Migration steps
|
|
563
617
|
Replace all usage of `Message.Link` with the `Link` component as a child of the `MessageBar` component. See entries above or our docs for more information on `MessageBar`.
|
|
@@ -573,7 +627,7 @@ The `useSyntheticPlaceholder` prop in `Text` and `Number` is deprecated and will
|
|
|
573
627
|
The `useSyntheticPlaceholder` prop is not needed because we no longer support IE11.
|
|
574
628
|
|
|
575
629
|
#### Migration steps
|
|
576
|
-
Remove the `useSyntheticPlaceholder` prop.
|
|
630
|
+
Remove the `useSyntheticPlaceholder` prop.
|
|
577
631
|
|
|
578
632
|
### Deprecated `Monogram` `size="xlarge"`
|
|
579
633
|
|
|
@@ -594,7 +648,7 @@ Replace all usage of `xlarge` as the value for `Monogram`'s `size` prop with the
|
|
|
594
648
|
`Accordion` no longer supports `collapseAll` prop and all panels are allowed to collapse by default.
|
|
595
649
|
|
|
596
650
|
#### Context
|
|
597
|
-
The user needs to be able to skip over any section with `tab`, which is not possible when the first one is open. This prop is no longer supported due to accessibility issues when set to `false`.
|
|
651
|
+
The user needs to be able to skip over any section with `tab`, which is not possible when the first one is open. This prop is no longer supported due to accessibility issues when set to `false`.
|
|
598
652
|
|
|
599
653
|
#### Migration steps
|
|
600
654
|
Remove all usage of `Accordion` `collapseAll`.
|
|
@@ -602,10 +656,10 @@ Remove all usage of `Accordion` `collapseAll`.
|
|
|
602
656
|
### `File` now supports `fullscreen` prop instead of `size="large"`.
|
|
603
657
|
|
|
604
658
|
#### Change
|
|
605
|
-
`File`’s `size` prop has been removed. Instead, use the `fullscreen` prop.
|
|
659
|
+
`File`’s `size` prop has been removed. Instead, use the `fullscreen` prop.
|
|
606
660
|
|
|
607
661
|
#### Context
|
|
608
|
-
If `fullscreen` prop is set, there can only be one `File` component on the page as it will take all files dropped on the page.
|
|
662
|
+
If `fullscreen` prop is set, there can only be one `File` component on the page as it will take all files dropped on the page.
|
|
609
663
|
|
|
610
664
|
#### Migration steps
|
|
611
665
|
Replace all usage of `size="large"` with `fullscreen` prop. Remove all other usage of `File` `size`.
|
|
@@ -627,7 +681,7 @@ Ensure the toggle `ref` is an `HTMLElement`, `Clickable`, `Button`, or `Link`.
|
|
|
627
681
|
`Popover`’s `pointerEvents` prop has been removed.
|
|
628
682
|
|
|
629
683
|
#### Context
|
|
630
|
-
Previously, `Tooltip` closed as soon as a user stopped hovering over the toggle. To allow the `Tooltip` to remain open when hovering/focusing on the toggle or the content area, the `Popover`’s `pointerEvent` prop has been removed. `Tooltip` now has two props: `possibleOpenReasons` and `possibleCloseReasons`, which provide more control over when the `Tooltip` can be opened and closed.
|
|
684
|
+
Previously, `Tooltip` closed as soon as a user stopped hovering over the toggle. To allow the `Tooltip` to remain open when hovering/focusing on the toggle or the content area, the `Popover`’s `pointerEvent` prop has been removed. `Tooltip` now has two props: `possibleOpenReasons` and `possibleCloseReasons`, which provide more control over when the `Tooltip` can be opened and closed.
|
|
631
685
|
|
|
632
686
|
#### Migration steps
|
|
633
687
|
Replace all usage of `Popover`’s `pointerEvents` prop with `possibleOpenReasons` and `possibleCloseReasons`.
|
|
@@ -642,12 +696,12 @@ Replace all usage of `Popover`’s `pointerEvents` prop with `possibleOpenReason
|
|
|
642
696
|
|
|
643
697
|
#### Context
|
|
644
698
|
|
|
645
|
-
`Text`'s `appearance` prop allowed the values "default" and "search".
|
|
646
|
-
With the new `Search` component optimized for user interaction, Text's `appearance` prop has become unnecessary.
|
|
699
|
+
`Text`'s `appearance` prop allowed the values "default" and "search".
|
|
700
|
+
With the new `Search` component optimized for user interaction, Text's `appearance` prop has become unnecessary.
|
|
647
701
|
|
|
648
702
|
#### Migration steps
|
|
649
703
|
|
|
650
|
-
Replace all usage of `Text`'s `appearance="search"` value with the `Search` component. Remove all usage of `Text`'s `appearance="default"` value.
|
|
704
|
+
Replace all usage of `Text`'s `appearance="search"` value with the `Search` component. Remove all usage of `Text`'s `appearance="default"` value.
|
|
651
705
|
|
|
652
706
|
## 4.36.0
|
|
653
707
|
|
|
@@ -663,5 +717,5 @@ The `size` prop currently does not do anything in `ComboBox`, `ControlGroup`, or
|
|
|
663
717
|
|
|
664
718
|
#### Migration steps
|
|
665
719
|
|
|
666
|
-
Remove all usage of `ComboBox`, `ControlGroup`, and `StaticContent`'s `size` prop. To change the size of components, use the `SplunkThemeProvider`'s `density` prop.
|
|
720
|
+
Remove all usage of `ComboBox`, `ControlGroup`, and `StaticContent`'s `size` prop. To change the size of components, use the `SplunkThemeProvider`'s `density` prop.
|
|
667
721
|
|