@patternfly/react-core 4.255.2 → 4.257.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 (78) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/esm/components/Banner/Banner.d.ts +7 -5
  3. package/dist/esm/components/Banner/Banner.d.ts.map +1 -1
  4. package/dist/esm/components/Banner/Banner.js +2 -2
  5. package/dist/esm/components/Banner/Banner.js.map +1 -1
  6. package/dist/esm/components/Card/Card.d.ts +2 -2
  7. package/dist/esm/components/Card/Card.d.ts.map +1 -1
  8. package/dist/esm/components/DataList/DataList.d.ts +1 -1
  9. package/dist/esm/components/DataList/DataList.d.ts.map +1 -1
  10. package/dist/esm/components/DataList/DataListItem.d.ts +1 -1
  11. package/dist/esm/components/DataList/DataListItem.d.ts.map +1 -1
  12. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts +2 -0
  13. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts.map +1 -1
  14. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.js +7 -1
  15. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.js.map +1 -1
  16. package/dist/esm/components/Popover/Popover.d.ts +3 -3
  17. package/dist/esm/components/Popover/Popover.d.ts.map +1 -1
  18. package/dist/esm/components/Wizard/Wizard.d.ts +4 -4
  19. package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
  20. package/dist/esm/components/Wizard/WizardToggle.d.ts +2 -2
  21. package/dist/esm/components/Wizard/WizardToggle.d.ts.map +1 -1
  22. package/dist/js/components/Banner/Banner.d.ts +7 -5
  23. package/dist/js/components/Banner/Banner.d.ts.map +1 -1
  24. package/dist/js/components/Banner/Banner.js +2 -2
  25. package/dist/js/components/Banner/Banner.js.map +1 -1
  26. package/dist/js/components/Card/Card.d.ts +2 -2
  27. package/dist/js/components/Card/Card.d.ts.map +1 -1
  28. package/dist/js/components/DataList/DataList.d.ts +1 -1
  29. package/dist/js/components/DataList/DataList.d.ts.map +1 -1
  30. package/dist/js/components/DataList/DataListItem.d.ts +1 -1
  31. package/dist/js/components/DataList/DataListItem.d.ts.map +1 -1
  32. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts +2 -0
  33. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts.map +1 -1
  34. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.js +7 -1
  35. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.js.map +1 -1
  36. package/dist/js/components/Popover/Popover.d.ts +3 -3
  37. package/dist/js/components/Popover/Popover.d.ts.map +1 -1
  38. package/dist/js/components/Wizard/Wizard.d.ts +4 -4
  39. package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
  40. package/dist/js/components/Wizard/WizardToggle.d.ts +2 -2
  41. package/dist/js/components/Wizard/WizardToggle.d.ts.map +1 -1
  42. package/dist/umd/react-core.min.css +1045 -1045
  43. package/dist/umd/react-core.min.js +2 -2
  44. package/package.json +2 -2
  45. package/src/components/AlertGroup/examples/AlertGroup.md +2 -2
  46. package/src/components/Banner/Banner.tsx +8 -6
  47. package/src/components/Banner/__tests__/Banner.test.tsx +3 -13
  48. package/src/components/Banner/__tests__/__snapshots__/Banner.test.tsx.snap +0 -5
  49. package/src/components/Banner/examples/Banner.md +19 -0
  50. package/src/components/Banner/examples/BannerBasic.tsx +7 -9
  51. package/src/components/Banner/examples/BannerStatus.tsx +56 -0
  52. package/src/components/CalendarMonth/examples/CalendarMonth.md +0 -1
  53. package/src/components/Card/Card.tsx +2 -2
  54. package/src/components/DataList/DataList.tsx +1 -1
  55. package/src/components/DataList/DataListItem.tsx +1 -1
  56. package/src/components/DualListSelector/examples/DualListSelector.md +0 -1
  57. package/src/components/LabelGroup/examples/LabelGroup.md +2 -3
  58. package/src/components/Masthead/examples/Masthead.md +0 -1
  59. package/src/components/Menu/examples/Menu.md +1 -1
  60. package/src/components/MenuToggle/examples/MenuToggle.md +0 -1
  61. package/src/components/MultipleFileUpload/MultipleFileUploadStatusItem.tsx +10 -0
  62. package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadStatusItem.test.tsx +33 -1
  63. package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatusItem.test.tsx.snap +269 -3
  64. package/src/components/MultipleFileUpload/examples/MultipleFileUpload.md +0 -1
  65. package/src/components/NotificationDrawer/examples/NotificationDrawer.md +0 -1
  66. package/src/components/Panel/examples/Panel.md +0 -1
  67. package/src/components/Popover/Popover.tsx +3 -3
  68. package/src/components/Popover/examples/Popover.md +2 -2
  69. package/src/components/Select/examples/Select.md +2 -2
  70. package/src/components/Slider/examples/Slider.md +0 -1
  71. package/src/components/TextArea/examples/TextArea.md +1 -1
  72. package/src/components/TextInput/examples/TextInput.md +1 -1
  73. package/src/components/TreeView/examples/TreeView.md +0 -1
  74. package/src/components/Wizard/Wizard.tsx +4 -4
  75. package/src/components/Wizard/WizardToggle.tsx +2 -2
  76. package/src/components/Wizard/examples/Wizard.md +1 -1
  77. package/src/demos/MultipleFileUploadDemos.md +0 -1
  78. package/src/demos/NotificationDrawer/NotificationDrawer.md +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.255.2",
3
+ "version": "4.257.0",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -70,5 +70,5 @@
70
70
  "react": "^16.8 || ^17 || ^18",
71
71
  "react-dom": "^16.8 || ^17 || ^18"
72
72
  },
73
- "gitHead": "16b0f452e3031ba81eda21a873e961bc6aab51fd"
73
+ "gitHead": "1a114c6117853b688671fd37d90bfd8df69bdde5"
74
74
  }
@@ -45,7 +45,7 @@ When an overflow message appears in an `AlertGroup` using the `isLiveRegion` pro
45
45
 
46
46
  Users navigating via keyboard or another assistive technology will need a way to navigate to and reveal hidden alerts before they disappear. Alternatively, there should be a place where notifications or alerts are collected to be viewed or read later.
47
47
 
48
- ```ts file="AlertGroupToastOverflowCapture.tsx" isBeta
48
+ ```ts file="AlertGroupToastOverflowCapture.tsx"
49
49
  ```
50
50
 
51
51
  ### Asynchronous alert groups
@@ -68,7 +68,7 @@ Click the buttons in the example below to add dynamic alerts to a group.
68
68
 
69
69
  In the following example, there can be a maximum of 4 alerts shown at once.
70
70
 
71
- ```ts file="AlertGroupSingularDynamicOverflow.tsx" isBeta
71
+ ```ts file="AlertGroupSingularDynamicOverflow.tsx"
72
72
  ```
73
73
 
74
74
  ### Multiple dynamic alert groups
@@ -3,16 +3,18 @@ import styles from '@patternfly/react-styles/css/components/Banner/banner';
3
3
  import { css } from '@patternfly/react-styles';
4
4
 
5
5
  export interface BannerProps extends React.HTMLProps<HTMLDivElement> {
6
- /** Content rendered inside the banner */
6
+ /** Content rendered inside the banner. */
7
7
  children?: React.ReactNode;
8
- /** Additional classes added to the banner */
8
+ /** Additional classes added to the banner. */
9
9
  className?: string;
10
- /** Variant styles for the banner */
11
- variant?: 'default' | 'info' | 'danger' | 'success' | 'warning';
12
10
  /** If set to true, the banner sticks to the top of its container */
13
11
  isSticky?: boolean;
14
- /** Text announced by screen readers to indicate the type of banner. Defaults to "${variant} banner" if this prop is not passed in */
12
+ /** Text announced by screen readers to indicate the type of banner. This prop should only
13
+ * be passed in when the banner conveys status/severity.
14
+ */
15
15
  screenReaderText?: string;
16
+ /** Variant styles for the banner. */
17
+ variant?: 'default' | 'info' | 'danger' | 'success' | 'warning';
16
18
  }
17
19
 
18
20
  export const Banner: React.FunctionComponent<BannerProps> = ({
@@ -32,8 +34,8 @@ export const Banner: React.FunctionComponent<BannerProps> = ({
32
34
  )}
33
35
  {...props}
34
36
  >
37
+ {screenReaderText && <span className="pf-u-screen-reader">{screenReaderText}</span>}
35
38
  {children}
36
- <span className="pf-u-screen-reader">{screenReaderText || `${variant} banner`}</span>
37
39
  </div>
38
40
  );
39
41
  Banner.displayName = 'Banner';
@@ -51,22 +51,12 @@ test('Renders with class name pf-m-info when "info" is passed to variant prop',
51
51
  expect(screen.getByText('Test')).toHaveClass('pf-m-info');
52
52
  });
53
53
 
54
- test('Renders pf-u-screen-reader class by default for screenReaderText', () => {
54
+ test('Does not render pf-u-screen-reader class by default', () => {
55
55
  render(<Banner>Test</Banner>);
56
- expect(screen.getByText('default banner')).toHaveClass('pf-u-screen-reader', { exact: true });
56
+ expect(screen.getByText('Test')).not.toContainHTML('<span class="pf-u-screen-reader"></span>');
57
57
  });
58
58
 
59
- test('Renders screenReaderText as "default banner" by default', () => {
60
- render(<Banner>Test</Banner>);
61
- expect(screen.getByText('default banner')).toBeInTheDocument();
62
- });
63
-
64
- test('Renders screenReaderText as "success banner" when variant="success"', () => {
65
- render(<Banner variant="success">Test</Banner>);
66
- expect(screen.getByText('success banner')).toBeInTheDocument();
67
- });
68
-
69
- test('Renders custom screenReaderText passed via prop', () => {
59
+ test('Renders screenReaderText passed via prop', () => {
70
60
  render(<Banner screenReaderText="Custom screen reader text">Test</Banner>);
71
61
  expect(screen.getByText('Custom screen reader text')).toBeInTheDocument();
72
62
  });
@@ -6,11 +6,6 @@ exports[`Matches the snapshot 1`] = `
6
6
  class="pf-c-banner"
7
7
  >
8
8
  Test
9
- <span
10
- class="pf-u-screen-reader"
11
- >
12
- default banner
13
- </span>
14
9
  </div>
15
10
  </DocumentFragment>
16
11
  `;
@@ -5,9 +5,28 @@ cssPrefix: pf-c-banner
5
5
  propComponents: ['Banner']
6
6
  ---
7
7
 
8
+ import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
9
+ import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
10
+ import ExclamationTriangleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon';
11
+ import InfoCircleIcon from '@patternfly/react-icons/dist/esm/icons/info-circle-icon';
12
+ import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
13
+
8
14
  ## Examples
9
15
 
10
16
  ### Basic
11
17
 
18
+ Banners can be styled with one of 5 different colors. A basic banner should only be used when the banner color does not represent status or severity.
19
+
12
20
  ```ts file="./BannerBasic.tsx"
21
+
22
+ ```
23
+
24
+ ### Status
25
+
26
+ When a banner is used to convey status, it is advised to pass in an icon inside the banner to convey the status in a way besides just color. The `screenReaderText` prop should also be passed in to convey the status/severity of the banner to users of certain assistive technologies such as screen readers.
27
+
28
+ In the following example, a flex layout is used inside the banner content to show one possible way to create spacing between the icons and banner text.
29
+
30
+ ```ts file="./BannerStatus.tsx"
31
+
13
32
  ```
@@ -2,17 +2,15 @@ import React from 'react';
2
2
  import { Banner } from '@patternfly/react-core';
3
3
 
4
4
  export const BannerBasic: React.FunctionComponent = () => (
5
- <React.Fragment>
6
- <Banner screenReaderText="This is a default Banner">Default banner</Banner>
5
+ <>
6
+ <Banner>Default banner</Banner>
7
7
  <br />
8
- <Banner variant="info" screenReaderText="This is an info Banner">
9
- Info banner
10
- </Banner>
8
+ <Banner variant="info">Blue banner</Banner>
11
9
  <br />
12
- <Banner variant="danger">Danger banner</Banner>
10
+ <Banner variant="danger">Red banner</Banner>
13
11
  <br />
14
- <Banner variant="success">Success banner</Banner>
12
+ <Banner variant="success">Green banner</Banner>
15
13
  <br />
16
- <Banner variant="warning">Warning banner</Banner>
17
- </React.Fragment>
14
+ <Banner variant="warning">Gold banner</Banner>
15
+ </>
18
16
  );
@@ -0,0 +1,56 @@
1
+ import React from 'react';
2
+ import { Banner, Flex, FlexItem } from '@patternfly/react-core';
3
+ import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
4
+ import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
5
+ import ExclamationTriangleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon';
6
+ import InfoCircleIcon from '@patternfly/react-icons/dist/esm/icons/info-circle-icon';
7
+ import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
8
+
9
+ export const BannerStatus: React.FunctionComponent = () => (
10
+ <>
11
+ <Banner screenReaderText="Default banner">
12
+ <Flex spaceItems={{ default: 'spaceItemsSm' }}>
13
+ <FlexItem>
14
+ <BellIcon />
15
+ </FlexItem>
16
+ <FlexItem>Default banner</FlexItem>
17
+ </Flex>
18
+ </Banner>
19
+ <br />
20
+ <Banner screenReaderText="Info banner" variant="info">
21
+ <Flex spaceItems={{ default: 'spaceItemsSm' }}>
22
+ <FlexItem>
23
+ <InfoCircleIcon />
24
+ </FlexItem>
25
+ <FlexItem>Info banner</FlexItem>
26
+ </Flex>
27
+ </Banner>
28
+ <br />
29
+ <Banner screenReaderText="Danger banner" variant="danger">
30
+ <Flex spaceItems={{ default: 'spaceItemsSm' }}>
31
+ <FlexItem>
32
+ <ExclamationCircleIcon />
33
+ </FlexItem>
34
+ <FlexItem>Danger banner</FlexItem>
35
+ </Flex>
36
+ </Banner>
37
+ <br />
38
+ <Banner screenReaderText="Success banner" variant="success">
39
+ <Flex spaceItems={{ default: 'spaceItemsSm' }}>
40
+ <FlexItem>
41
+ <CheckCircleIcon />
42
+ </FlexItem>
43
+ <FlexItem>Success banner</FlexItem>
44
+ </Flex>
45
+ </Banner>
46
+ <br />
47
+ <Banner screenReaderText="Warning banner" variant="warning">
48
+ <Flex spaceItems={{ default: 'spaceItemsSm' }}>
49
+ <FlexItem>
50
+ <ExclamationTriangleIcon />
51
+ </FlexItem>
52
+ <FlexItem>Warning banner</FlexItem>
53
+ </Flex>
54
+ </Banner>
55
+ </>
56
+ );
@@ -3,7 +3,6 @@ id: Calendar month
3
3
  section: components
4
4
  cssPrefix: pf-c-calendar-month
5
5
  propComponents: ['CalendarMonth', 'CalendarFormat']
6
- beta: true
7
6
  ---
8
7
 
9
8
  ## Examples
@@ -18,11 +18,11 @@ export interface CardProps extends React.HTMLProps<HTMLElement>, OUIAProps {
18
18
  isCompact?: boolean;
19
19
  /** Modifies the card to include selectable styling */
20
20
  isSelectable?: boolean;
21
- /** @beta Specifies the card is selectable, and applies the new raised styling on hover and select */
21
+ /** Specifies the card is selectable, and applies the new raised styling on hover and select */
22
22
  isSelectableRaised?: boolean;
23
23
  /** Modifies the card to include selected styling */
24
24
  isSelected?: boolean;
25
- /** @beta Modifies a raised selectable card to have disabled styling */
25
+ /** Modifies a raised selectable card to have disabled styling */
26
26
  isDisabledRaised?: boolean;
27
27
  /** Modifies the card to include flat styling */
28
28
  isFlat?: boolean;
@@ -52,7 +52,7 @@ export interface DataListProps extends Omit<React.HTMLProps<HTMLUListElement>, '
52
52
  wrapModifier?: DataListWrapModifier | 'nowrap' | 'truncate' | 'breakWord';
53
53
  /** @deprecated Order of items in a draggable DataList */
54
54
  itemOrder?: string[];
55
- /** @beta Object that causes the data list to render hidden inputs which improve selectable item a11y */
55
+ /** Object that causes the data list to render hidden inputs which improve selectable item a11y */
56
56
  selectableRow?: SelectableRowObject;
57
57
  }
58
58
 
@@ -16,7 +16,7 @@ export interface DataListItemProps extends Omit<React.HTMLProps<HTMLLIElement>,
16
16
  'aria-labelledby': string;
17
17
  /** Unique id for the DataList item */
18
18
  id?: string;
19
- /** @beta Aria label to apply to the selectable input if one is rendered */
19
+ /** Aria label to apply to the selectable input if one is rendered */
20
20
  selectableInputAriaLabel?: string;
21
21
  }
22
22
 
@@ -13,7 +13,6 @@ propComponents:
13
13
  'DualListSelectorTree',
14
14
  'DualListSelectorTreeItemData',
15
15
  ]
16
- beta: true
17
16
  ---
18
17
 
19
18
  import AngleDoubleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-double-left-icon';
@@ -3,7 +3,6 @@ id: Label group
3
3
  section: components
4
4
  cssPrefix: pf-c-label
5
5
  propComponents: ['LabelGroup', 'Label']
6
- beta: true
7
6
  ouia: true
8
7
  ---
9
8
 
@@ -38,12 +37,12 @@ import InfoCircleIcon from '@patternfly/react-icons/dist/esm/icons/info-circle-i
38
37
 
39
38
  ### Editable labels
40
39
 
41
- ```ts file="LabelGroupEditableLabels.tsx"
40
+ ```ts isBeta file="LabelGroupEditableLabels.tsx"
42
41
  ```
43
42
 
44
43
  ### Editable labels with add button
45
44
 
46
45
  For additional documentation that showcases adding a new label, see [label group demos](/components/label-group/react-demos).
47
46
 
48
- ```ts file="LabelGroupEditableAdd.tsx"
47
+ ```ts isBeta file="LabelGroupEditableAdd.tsx"
49
48
  ```
@@ -3,7 +3,6 @@ id: Masthead
3
3
  section: components
4
4
  cssPrefix: pf-c-masthead
5
5
  propComponents: ['Masthead', 'MastheadToggle', 'MastheadMain', 'MastheadBrand', 'MastheadContent']
6
- beta: true
7
6
  ---
8
7
 
9
8
  import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
@@ -35,7 +35,7 @@ import AngleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-left-ico
35
35
 
36
36
  ### With checkbox
37
37
 
38
- ```ts file="./MenuWithCheckbox.tsx" isBeta
38
+ ```ts file="./MenuWithCheckbox.tsx"
39
39
  ```
40
40
 
41
41
  ### Filtering with text input
@@ -3,7 +3,6 @@ id: Menu toggle
3
3
  section: components
4
4
  cssPrefix: pf-c-menu-toggle
5
5
  propComponents: ['MenuToggle', 'MenuToggleAction', 'MenuToggleCheckbox', 'SplitButtonOptions']
6
- beta: true
7
6
  ---
8
7
 
9
8
  import './MenuToggle.css'
@@ -50,6 +50,8 @@ export interface MultipleFileUploadStatusItemProps extends React.HTMLProps<HTMLL
50
50
  progressAriaLabel?: string;
51
51
  /** Associates the progress bar with it's label for accessibility purposes. Required when title not used */
52
52
  progressAriaLabelledBy?: string;
53
+ /** Modifies the text announced by assistive technologies when the progress bar updates. */
54
+ progressAriaLiveMessage?: string | ((loadPercentage: number) => string);
53
55
  /** Unique identifier for progress. Generated if not specified. */
54
56
  progressId?: string;
55
57
  }
@@ -71,6 +73,7 @@ export const MultipleFileUploadStatusItem: React.FunctionComponent<MultipleFileU
71
73
  progressAriaLabel,
72
74
  progressAriaLabelledBy,
73
75
  progressId,
76
+ progressAriaLiveMessage,
74
77
  buttonAriaLabel = 'Remove from list',
75
78
  ...props
76
79
  }: MultipleFileUploadStatusItemProps) => {
@@ -139,6 +142,13 @@ export const MultipleFileUploadStatusItem: React.FunctionComponent<MultipleFileU
139
142
  <li className={css(styles.multipleFileUploadStatusItem, className)} {...props}>
140
143
  <div className={styles.multipleFileUploadStatusItemIcon}>{fileIcon || <FileIcon />}</div>
141
144
  <div className={styles.multipleFileUploadStatusItemMain}>
145
+ <div className="pf-screen-reader" aria-live="polite">
146
+ {progressAriaLiveMessage &&
147
+ typeof progressAriaLiveMessage === 'function' &&
148
+ progressAriaLiveMessage(+loadPercentage.toFixed(2))}
149
+ {progressAriaLiveMessage && typeof progressAriaLiveMessage === 'string' && progressAriaLiveMessage}
150
+ {!progressAriaLiveMessage && `Progress value is ${progressValue || Math.floor(loadPercentage)}%.`}
151
+ </div>
142
152
  <Progress
143
153
  title={title}
144
154
  value={progressValue || loadPercentage}
@@ -23,7 +23,39 @@ describe('MultipleFileUploadStatusItem', () => {
23
23
  expect(asFragment()).toMatchSnapshot();
24
24
  });
25
25
 
26
- test('renders custom file name/size/icon when passed', () => {
26
+ test('renders custom file name/size/icon/progressAriaLiveMessage when passed', () => {
27
+ const testFile = new File(['foo'], 'testFile.txt');
28
+ const { asFragment } = render(
29
+ <MultipleFileUploadStatusItem
30
+ file={testFile}
31
+ fileIcon={<FileImageIcon />}
32
+ fileName="testCustomFileName.txt"
33
+ fileSize={42}
34
+ progressId="test-progress-id"
35
+ progressAriaLiveMessage="test message"
36
+ />
37
+ );
38
+
39
+ expect(asFragment()).toMatchSnapshot();
40
+ });
41
+
42
+ test('renders custom function progressAriaLiveMessage when passed', () => {
43
+ const testFile = new File(['foo'], 'testFile.txt');
44
+ const { asFragment } = render(
45
+ <MultipleFileUploadStatusItem
46
+ file={testFile}
47
+ fileIcon={<FileImageIcon />}
48
+ fileName="testCustomFileName.txt"
49
+ fileSize={42}
50
+ progressId="test-progress-id"
51
+ progressAriaLiveMessage={loadPercentage => `test message ${loadPercentage}`}
52
+ />
53
+ );
54
+
55
+ expect(asFragment()).toMatchSnapshot();
56
+ });
57
+
58
+ test('rendersdefault progressAriaLiveMessage when nothing is passed', () => {
27
59
  const testFile = new File(['foo'], 'testFile.txt');
28
60
  const { asFragment } = render(
29
61
  <MultipleFileUploadStatusItem