@patternfly/react-core 5.2.0-prerelease.27 → 5.2.0-prerelease.29
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/CHANGELOG.md +8 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/Chip/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/DragDrop/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
- package/dist/dynamic/deprecated/components/Select/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/favorites/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/esm/components/Button/Button.d.ts +1 -1
- package/dist/esm/components/Button/Button.d.ts.map +1 -1
- package/dist/esm/components/Button/Button.js +1 -1
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/js/components/Button/Button.d.ts +1 -1
- package/dist/js/components/Button/Button.d.ts.map +1 -1
- package/dist/js/components/Button/Button.js +2 -2
- package/dist/js/components/Button/Button.js.map +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +3 -3
- package/src/components/AboutModal/__tests__/AboutModalBox.test.tsx +1 -5
- package/src/components/Accordion/__tests__/AccordionItem.test.tsx +1 -3
- package/src/components/Alert/__tests__/AlertGroup.test.tsx +1 -1
- package/src/components/BackToTop/__tests__/BackToTop.test.tsx +2 -1
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/Button/__tests__/Button.test.tsx +0 -1
- package/src/components/CalendarMonth/__tests__/CalendarMonth.test.tsx +3 -1
- package/src/components/Card/__tests__/CardBody.test.tsx +1 -1
- package/src/components/Card/__tests__/CardFooter.test.tsx +1 -1
- package/src/components/Chip/__tests__/ChipGroup.test.tsx +1 -5
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyToggle.test.tsx +0 -1
- package/src/components/DatePicker/__tests__/DatePicker.test.tsx +3 -7
- package/src/components/Divider/__tests__/Divider.test.tsx +2 -13
- package/src/components/Drawer/__tests__/Drawer.test.tsx +4 -8
- package/src/components/Dropdown/__tests__/Dropdown.test.tsx +3 -3
- package/src/components/Form/__tests__/FormContext.test.tsx +39 -50
- package/src/components/Form/__tests__/FormFieldGroup.test.tsx +1 -1
- package/src/components/Form/__tests__/FormGroup.test.tsx +0 -1
- package/src/components/Form/__tests__/FormHelperText.test.tsx +0 -1
- package/src/components/HelperText/__tests__/HelperText.test.tsx +2 -2
- package/src/components/Icon/__tests__/Icon.test.tsx +2 -2
- package/src/components/InputGroup/__tests__/InputGroup.test.tsx +2 -2
- package/src/components/Masthead/__tests__/Masthead.test.tsx +1 -1
- package/src/components/Menu/__tests__/Menu.test.tsx +2 -3
- package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +18 -16
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadStatus.test.tsx +1 -1
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadStatusItem.test.tsx +1 -1
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadTitle.test.tsx +1 -1
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadTitleIcon.test.tsx +1 -1
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadTitleText.test.tsx +1 -1
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadTitleTextSeparator.test.tsx +1 -1
- package/src/components/Nav/__tests__/Nav.test.tsx +14 -14
- package/src/components/Nav/examples/NavFlyout.tsx +1 -1
- package/src/components/Nav/examples/NavHorizontalSubNav.tsx +1 -1
- package/src/components/Nav/examples/NavLegacyTertiary.tsx +1 -1
- package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerGroup.test.tsx +3 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItem.test.tsx +1 -3
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx +1 -1
- package/src/components/NumberInput/__tests__/NumberInput.test.tsx +6 -6
- package/src/components/Pagination/__tests__/Pagination.test.tsx +4 -2
- package/src/components/Pagination/examples/PaginationSticky.tsx +2 -2
- package/src/components/Panel/__tests__/Panel.test.tsx +2 -2
- package/src/components/Popover/__tests__/Popover.test.tsx +1 -1
- package/src/components/Progress/__tests__/Progress.test.tsx +5 -5
- package/src/components/ProgressStepper/__tests__/ProgressStep.test.tsx +1 -1
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +9 -12
- package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +0 -69
- package/src/components/SkipToContent/__tests__/SkipToContent.test.tsx +0 -1
- package/src/components/Spinner/__tests__/Spinner.test.tsx +1 -1
- package/src/components/Switch/__tests__/Switch.test.tsx +1 -1
- package/src/components/Tabs/__tests__/OverflowTab.test.tsx +1 -1
- package/src/components/Tabs/__tests__/Tabs.test.tsx +5 -5
- package/src/components/TextInput/__tests__/TextInput.test.tsx +6 -4
- package/src/components/TimePicker/__tests__/TimePicker.test.tsx +4 -10
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +2 -2
- package/src/components/Toolbar/__tests__/ToolbarGroup.test.tsx +5 -1
- package/src/components/Toolbar/__tests__/ToolbarItem.test.tsx +5 -1
- package/src/components/TreeView/__tests__/TreeView.test.tsx +3 -4
- package/src/components/Wizard/__tests__/WizardToggle.test.tsx +2 -2
- package/src/components/Wizard/__tests__/utils.test.tsx +1 -1
- package/src/demos/Banner.md +4 -4
- package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +3 -3
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +2 -2
- package/src/demos/examples/Nav/NavDefault.tsx +1 -1
- package/src/demos/examples/Nav/NavExpandable.tsx +1 -1
- package/src/demos/examples/Nav/NavHorizontal.tsx +1 -1
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +1 -1
- package/src/demos/examples/Nav/NavManual.tsx +1 -1
- package/src/demos/examples/Nav/NavWithSubnav.tsx +1 -1
- package/src/demos/examples/Nav/deprecated/NavLight.tsx +1 -1
- package/src/demos/examples/Nav/deprecated/NavTertiary.tsx +1 -1
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +2 -2
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +2 -2
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +2 -2
- package/src/demos/examples/Wizard/InModal.tsx +2 -2
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorToggle.test.tsx +4 -4
- package/src/deprecated/components/Dropdown/__tests__/DropdownToggle.test.tsx +1 -1
- package/src/deprecated/components/Select/__tests__/Select.test.tsx +1 -1
- package/src/deprecated/components/Wizard/__tests__/Wizard.test.tsx +3 -3
- package/src/helpers/GenerateId/__tests__/GenerateId.test.tsx +1 -1
- package/src/helpers/OUIA/__mocks__/ouia.ts +6 -0
- package/src/helpers/__mocks__/index.ts +2 -0
- package/src/helpers/__tests__/fileUtils.test.ts +6 -9
- package/src/helpers/__tests__/util.test.ts +1 -1
- package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +1 -1
- package/src/layouts/Grid/__tests__/GridItem.test.tsx +1 -1
|
@@ -70,7 +70,7 @@ test('popover can close from content (uncontrolled)', () => {
|
|
|
70
70
|
aria-label="Popover with button in the body that can close it"
|
|
71
71
|
isVisible
|
|
72
72
|
headerContent={<div>Popover header</div>}
|
|
73
|
-
bodyContent={hide => (
|
|
73
|
+
bodyContent={(hide) => (
|
|
74
74
|
<div>
|
|
75
75
|
<div>
|
|
76
76
|
All the content props (headerContent, bodyContent, footerContent) can take a function which the Popover
|
|
@@ -49,7 +49,7 @@ test('value scaled between minValue and maxValue', () => {
|
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
describe('Progress size', () => {
|
|
52
|
-
Object.keys(ProgressSize).forEach(oneSize => {
|
|
52
|
+
Object.keys(ProgressSize).forEach((oneSize) => {
|
|
53
53
|
test(oneSize, () => {
|
|
54
54
|
const { asFragment } = render(<Progress id={`${oneSize}-progress`} value={33} size={oneSize as ProgressSize} />);
|
|
55
55
|
expect(asFragment()).toMatchSnapshot();
|
|
@@ -58,7 +58,7 @@ describe('Progress size', () => {
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
describe('Progress variant', () => {
|
|
61
|
-
Object.keys(ProgressVariant).forEach(oneVariant => {
|
|
61
|
+
Object.keys(ProgressVariant).forEach((oneVariant) => {
|
|
62
62
|
test(oneVariant, () => {
|
|
63
63
|
const { asFragment } = render(
|
|
64
64
|
<Progress id={`${oneVariant}-progress`} value={33} variant={oneVariant as ProgressVariant} />
|
|
@@ -69,7 +69,7 @@ describe('Progress variant', () => {
|
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
describe('Progress measure location', () => {
|
|
72
|
-
Object.keys(ProgressMeasureLocation).forEach(oneLocation => {
|
|
72
|
+
Object.keys(ProgressMeasureLocation).forEach((oneLocation) => {
|
|
73
73
|
test(oneLocation, () => {
|
|
74
74
|
const { asFragment } = render(
|
|
75
75
|
<Progress id={`${oneLocation}-progress`} value={33} measureLocation={oneLocation as ProgressMeasureLocation} />
|
|
@@ -99,10 +99,10 @@ test('progress component generates console warning when no accessible name is pr
|
|
|
99
99
|
});
|
|
100
100
|
|
|
101
101
|
test('Does not render helper text by default', () => {
|
|
102
|
-
render(<Progress/>);
|
|
102
|
+
render(<Progress />);
|
|
103
103
|
|
|
104
104
|
expect(screen.queryByText('Test helper text')).not.toBeInTheDocument();
|
|
105
|
-
})
|
|
105
|
+
});
|
|
106
106
|
|
|
107
107
|
test('Renders passed helper text', () => {
|
|
108
108
|
render(<Progress helperText="Test helper text" />);
|
|
@@ -150,7 +150,7 @@ test('Does not renders with aria-labelledBy by default on Component element', ()
|
|
|
150
150
|
|
|
151
151
|
test('Renders with an accessible name that matches children', () => {
|
|
152
152
|
render(
|
|
153
|
-
<ProgressStep popoverRender={(
|
|
153
|
+
<ProgressStep popoverRender={(_stepRef) => <div>Popover content</div>} id="test-id" titleId="title-id">
|
|
154
154
|
Test
|
|
155
155
|
</ProgressStep>
|
|
156
156
|
);
|
|
@@ -6,10 +6,12 @@ import userEvent from '@testing-library/user-event';
|
|
|
6
6
|
import { SearchInput } from '../SearchInput';
|
|
7
7
|
import { FormGroup } from '../../Form';
|
|
8
8
|
import { Button } from '../../Button';
|
|
9
|
-
import
|
|
9
|
+
import ExternalLinkSquareAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-square-alt-icon';
|
|
10
10
|
import badgeStyles from '@patternfly/react-styles/css/components/Badge/badge';
|
|
11
11
|
import textInputGroupStyles from '@patternfly/react-styles/css/components/TextInputGroup/text-input-group';
|
|
12
12
|
|
|
13
|
+
jest.mock('../../../helpers/OUIA/ouia');
|
|
14
|
+
|
|
13
15
|
const props = {
|
|
14
16
|
onChange: jest.fn(),
|
|
15
17
|
value: 'test input',
|
|
@@ -80,9 +82,9 @@ describe('SearchInput', () => {
|
|
|
80
82
|
});
|
|
81
83
|
|
|
82
84
|
test('hide clear button', () => {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
render(
|
|
86
|
+
<SearchInput {...props} onClear={undefined} resultsCount="3" aria-label="simple text input without on clear" />
|
|
87
|
+
);
|
|
86
88
|
expect(screen.queryByRole('button', { name: 'Reset' })).not.toBeInTheDocument();
|
|
87
89
|
});
|
|
88
90
|
|
|
@@ -146,9 +148,7 @@ describe('SearchInput', () => {
|
|
|
146
148
|
test('advanced search with custom attributes and appendTo="inline', async () => {
|
|
147
149
|
const user = userEvent.setup();
|
|
148
150
|
|
|
149
|
-
|
|
150
|
-
<SearchInput data-testid="test-id" attributes={[{ attr: 'test', display: 'test' }]} appendTo="inline" />
|
|
151
|
-
);
|
|
151
|
+
render(<SearchInput data-testid="test-id" attributes={[{ attr: 'test', display: 'test' }]} appendTo="inline" />);
|
|
152
152
|
|
|
153
153
|
await user.click(screen.getByRole('button', { name: 'Open advanced search' }));
|
|
154
154
|
|
|
@@ -158,7 +158,7 @@ describe('SearchInput', () => {
|
|
|
158
158
|
test('advanced search with custom attributes and appendTo external DOM element', async () => {
|
|
159
159
|
const user = userEvent.setup();
|
|
160
160
|
|
|
161
|
-
|
|
161
|
+
render(
|
|
162
162
|
<SearchInput data-testid="test-id" attributes={[{ attr: 'test', display: 'test' }]} appendTo={document.body} />
|
|
163
163
|
);
|
|
164
164
|
|
|
@@ -252,9 +252,6 @@ test('toggleAriaLabel is applied to the expandable toggle', () => {
|
|
|
252
252
|
});
|
|
253
253
|
|
|
254
254
|
test('Utilities are rendered when areUtilitiesDisplayed is set', () => {
|
|
255
|
-
render(
|
|
256
|
-
<SearchInput {...props} areUtilitiesDisplayed resetButtonLabel='test-util-display'/>
|
|
257
|
-
);
|
|
255
|
+
render(<SearchInput {...props} areUtilitiesDisplayed resetButtonLabel="test-util-display" />);
|
|
258
256
|
expect(screen.getByLabelText('test-util-display')).toBeVisible();
|
|
259
257
|
});
|
|
260
|
-
|
|
@@ -52,9 +52,6 @@ exports[`SearchInput advanced search 1`] = `
|
|
|
52
52
|
aria-disabled="false"
|
|
53
53
|
aria-label="Reset"
|
|
54
54
|
class="pf-v5-c-button pf-m-plain"
|
|
55
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-17"
|
|
56
|
-
data-ouia-component-type="PF5/Button"
|
|
57
|
-
data-ouia-safe="true"
|
|
58
55
|
type="button"
|
|
59
56
|
>
|
|
60
57
|
<svg
|
|
@@ -82,9 +79,6 @@ exports[`SearchInput advanced search 1`] = `
|
|
|
82
79
|
aria-expanded="false"
|
|
83
80
|
aria-label="Open advanced search"
|
|
84
81
|
class="pf-v5-c-button pf-m-control"
|
|
85
|
-
data-ouia-component-id="OUIA-Generated-Button-control-10"
|
|
86
|
-
data-ouia-component-type="PF5/Button"
|
|
87
|
-
data-ouia-safe="true"
|
|
88
82
|
type="button"
|
|
89
83
|
>
|
|
90
84
|
<svg
|
|
@@ -109,9 +103,6 @@ exports[`SearchInput advanced search 1`] = `
|
|
|
109
103
|
aria-disabled="false"
|
|
110
104
|
aria-label="Search"
|
|
111
105
|
class="pf-v5-c-button pf-m-control"
|
|
112
|
-
data-ouia-component-id="OUIA-Generated-Button-control-11"
|
|
113
|
-
data-ouia-component-type="PF5/Button"
|
|
114
|
-
data-ouia-safe="true"
|
|
115
106
|
type="submit"
|
|
116
107
|
>
|
|
117
108
|
<span
|
|
@@ -202,9 +193,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
202
193
|
aria-disabled="false"
|
|
203
194
|
aria-label="Reset"
|
|
204
195
|
class="pf-v5-c-button pf-m-plain"
|
|
205
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-18"
|
|
206
|
-
data-ouia-component-type="PF5/Button"
|
|
207
|
-
data-ouia-safe="true"
|
|
208
196
|
type="button"
|
|
209
197
|
>
|
|
210
198
|
<svg
|
|
@@ -232,9 +220,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
232
220
|
aria-expanded="true"
|
|
233
221
|
aria-label="Open advanced search"
|
|
234
222
|
class="pf-v5-c-button pf-m-control pf-m-expanded"
|
|
235
|
-
data-ouia-component-id="OUIA-Generated-Button-control-12"
|
|
236
|
-
data-ouia-component-type="PF5/Button"
|
|
237
|
-
data-ouia-safe="true"
|
|
238
223
|
type="button"
|
|
239
224
|
>
|
|
240
225
|
<svg
|
|
@@ -259,9 +244,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
259
244
|
aria-disabled="false"
|
|
260
245
|
aria-label="Search"
|
|
261
246
|
class="pf-v5-c-button pf-m-control"
|
|
262
|
-
data-ouia-component-id="OUIA-Generated-Button-control-13"
|
|
263
|
-
data-ouia-component-type="PF5/Button"
|
|
264
|
-
data-ouia-safe="true"
|
|
265
247
|
type="submit"
|
|
266
248
|
>
|
|
267
249
|
<span
|
|
@@ -334,9 +316,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
334
316
|
>
|
|
335
317
|
<input
|
|
336
318
|
aria-invalid="false"
|
|
337
|
-
data-ouia-component-id="OUIA-Generated-TextInputBase-1"
|
|
338
|
-
data-ouia-component-type="PF5/TextInput"
|
|
339
|
-
data-ouia-safe="true"
|
|
340
319
|
id="username_0"
|
|
341
320
|
type="text"
|
|
342
321
|
value="player"
|
|
@@ -370,9 +349,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
370
349
|
>
|
|
371
350
|
<input
|
|
372
351
|
aria-invalid="false"
|
|
373
|
-
data-ouia-component-id="OUIA-Generated-TextInputBase-2"
|
|
374
|
-
data-ouia-component-type="PF5/TextInput"
|
|
375
|
-
data-ouia-safe="true"
|
|
376
352
|
id="firstname_1"
|
|
377
353
|
type="text"
|
|
378
354
|
value="john"
|
|
@@ -406,9 +382,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
406
382
|
>
|
|
407
383
|
<input
|
|
408
384
|
aria-invalid="false"
|
|
409
|
-
data-ouia-component-id="OUIA-Generated-TextInputBase-3"
|
|
410
|
-
data-ouia-component-type="PF5/TextInput"
|
|
411
|
-
data-ouia-safe="true"
|
|
412
385
|
id="pf-random-id-2"
|
|
413
386
|
type="text"
|
|
414
387
|
value=""
|
|
@@ -425,9 +398,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
425
398
|
<button
|
|
426
399
|
aria-disabled="false"
|
|
427
400
|
class="pf-v5-c-button pf-m-link pf-m-inline"
|
|
428
|
-
data-ouia-component-id="OUIA-Generated-Button-link-1"
|
|
429
|
-
data-ouia-component-type="PF5/Button"
|
|
430
|
-
data-ouia-safe="true"
|
|
431
401
|
type="button"
|
|
432
402
|
>
|
|
433
403
|
Link
|
|
@@ -463,9 +433,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
463
433
|
<button
|
|
464
434
|
aria-disabled="false"
|
|
465
435
|
class="pf-v5-c-button pf-m-primary"
|
|
466
|
-
data-ouia-component-id="OUIA-Generated-Button-primary-1"
|
|
467
|
-
data-ouia-component-type="PF5/Button"
|
|
468
|
-
data-ouia-safe="true"
|
|
469
436
|
type="submit"
|
|
470
437
|
>
|
|
471
438
|
Search
|
|
@@ -473,9 +440,6 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
473
440
|
<button
|
|
474
441
|
aria-disabled="false"
|
|
475
442
|
class="pf-v5-c-button pf-m-link"
|
|
476
|
-
data-ouia-component-id="OUIA-Generated-Button-link-2"
|
|
477
|
-
data-ouia-component-type="PF5/Button"
|
|
478
|
-
data-ouia-safe="true"
|
|
479
443
|
type="reset"
|
|
480
444
|
>
|
|
481
445
|
Reset
|
|
@@ -544,9 +508,6 @@ exports[`SearchInput renders search input in strict mode 1`] = `
|
|
|
544
508
|
aria-disabled="false"
|
|
545
509
|
aria-label="Reset"
|
|
546
510
|
class="pf-v5-c-button pf-m-plain"
|
|
547
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-11"
|
|
548
|
-
data-ouia-component-type="PF5/Button"
|
|
549
|
-
data-ouia-safe="true"
|
|
550
511
|
type="button"
|
|
551
512
|
>
|
|
552
513
|
<svg
|
|
@@ -574,9 +535,6 @@ exports[`SearchInput renders search input in strict mode 1`] = `
|
|
|
574
535
|
aria-expanded="false"
|
|
575
536
|
aria-label="Open advanced search"
|
|
576
537
|
class="pf-v5-c-button pf-m-control"
|
|
577
|
-
data-ouia-component-id="OUIA-Generated-Button-control-5"
|
|
578
|
-
data-ouia-component-type="PF5/Button"
|
|
579
|
-
data-ouia-safe="true"
|
|
580
538
|
type="button"
|
|
581
539
|
>
|
|
582
540
|
<svg
|
|
@@ -601,9 +559,6 @@ exports[`SearchInput renders search input in strict mode 1`] = `
|
|
|
601
559
|
aria-disabled="false"
|
|
602
560
|
aria-label="Search"
|
|
603
561
|
class="pf-v5-c-button pf-m-control"
|
|
604
|
-
data-ouia-component-id="OUIA-Generated-Button-control-7"
|
|
605
|
-
data-ouia-component-type="PF5/Button"
|
|
606
|
-
data-ouia-safe="true"
|
|
607
562
|
type="submit"
|
|
608
563
|
>
|
|
609
564
|
<span
|
|
@@ -700,9 +655,6 @@ exports[`SearchInput search input with hint 1`] = `
|
|
|
700
655
|
aria-disabled="false"
|
|
701
656
|
aria-label="Previous"
|
|
702
657
|
class="pf-v5-c-button pf-m-plain"
|
|
703
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-4"
|
|
704
|
-
data-ouia-component-type="PF5/Button"
|
|
705
|
-
data-ouia-safe="true"
|
|
706
658
|
type="button"
|
|
707
659
|
>
|
|
708
660
|
<svg
|
|
@@ -723,9 +675,6 @@ exports[`SearchInput search input with hint 1`] = `
|
|
|
723
675
|
aria-disabled="false"
|
|
724
676
|
aria-label="Next"
|
|
725
677
|
class="pf-v5-c-button pf-m-plain"
|
|
726
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-5"
|
|
727
|
-
data-ouia-component-type="PF5/Button"
|
|
728
|
-
data-ouia-safe="true"
|
|
729
678
|
type="button"
|
|
730
679
|
>
|
|
731
680
|
<svg
|
|
@@ -747,9 +696,6 @@ exports[`SearchInput search input with hint 1`] = `
|
|
|
747
696
|
aria-disabled="false"
|
|
748
697
|
aria-label="Reset"
|
|
749
698
|
class="pf-v5-c-button pf-m-plain"
|
|
750
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-6"
|
|
751
|
-
data-ouia-component-type="PF5/Button"
|
|
752
|
-
data-ouia-safe="true"
|
|
753
699
|
type="button"
|
|
754
700
|
>
|
|
755
701
|
<svg
|
|
@@ -776,9 +722,6 @@ exports[`SearchInput search input with hint 1`] = `
|
|
|
776
722
|
aria-disabled="false"
|
|
777
723
|
aria-label="Search"
|
|
778
724
|
class="pf-v5-c-button pf-m-control"
|
|
779
|
-
data-ouia-component-id="OUIA-Generated-Button-control-2"
|
|
780
|
-
data-ouia-component-type="PF5/Button"
|
|
781
|
-
data-ouia-safe="true"
|
|
782
725
|
type="submit"
|
|
783
726
|
>
|
|
784
727
|
<span
|
|
@@ -860,9 +803,6 @@ exports[`SearchInput simple search input 1`] = `
|
|
|
860
803
|
aria-disabled="false"
|
|
861
804
|
aria-label="Previous"
|
|
862
805
|
class="pf-v5-c-button pf-m-plain"
|
|
863
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-1"
|
|
864
|
-
data-ouia-component-type="PF5/Button"
|
|
865
|
-
data-ouia-safe="true"
|
|
866
806
|
type="button"
|
|
867
807
|
>
|
|
868
808
|
<svg
|
|
@@ -883,9 +823,6 @@ exports[`SearchInput simple search input 1`] = `
|
|
|
883
823
|
aria-disabled="false"
|
|
884
824
|
aria-label="Next"
|
|
885
825
|
class="pf-v5-c-button pf-m-plain"
|
|
886
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-2"
|
|
887
|
-
data-ouia-component-type="PF5/Button"
|
|
888
|
-
data-ouia-safe="true"
|
|
889
826
|
type="button"
|
|
890
827
|
>
|
|
891
828
|
<svg
|
|
@@ -907,9 +844,6 @@ exports[`SearchInput simple search input 1`] = `
|
|
|
907
844
|
aria-disabled="false"
|
|
908
845
|
aria-label="Reset"
|
|
909
846
|
class="pf-v5-c-button pf-m-plain"
|
|
910
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-3"
|
|
911
|
-
data-ouia-component-type="PF5/Button"
|
|
912
|
-
data-ouia-safe="true"
|
|
913
847
|
type="button"
|
|
914
848
|
>
|
|
915
849
|
<svg
|
|
@@ -936,9 +870,6 @@ exports[`SearchInput simple search input 1`] = `
|
|
|
936
870
|
aria-disabled="false"
|
|
937
871
|
aria-label="Search"
|
|
938
872
|
class="pf-v5-c-button pf-m-control"
|
|
939
|
-
data-ouia-component-id="OUIA-Generated-Button-control-1"
|
|
940
|
-
data-ouia-component-type="PF5/Button"
|
|
941
|
-
data-ouia-safe="true"
|
|
942
873
|
type="submit"
|
|
943
874
|
>
|
|
944
875
|
<span
|
|
@@ -77,7 +77,7 @@ describe('Switch', () => {
|
|
|
77
77
|
|
|
78
78
|
test('switch passes value and event to onChange handler', async () => {
|
|
79
79
|
const user = userEvent.setup();
|
|
80
|
-
|
|
80
|
+
|
|
81
81
|
render(<Switch id="onChange-switch" {...props} aria-label="Switch label" />);
|
|
82
82
|
|
|
83
83
|
await user.click(screen.getByLabelText('Switch label'));
|
|
@@ -39,7 +39,7 @@ test('should render simple tabs', () => {
|
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
test('should render closeable tabs', () => {
|
|
42
|
-
|
|
42
|
+
render(
|
|
43
43
|
<Tabs onClose={jest.fn()}>
|
|
44
44
|
<Tab eventKey={0} title={<TabTitleText>"Tab item 1"</TabTitleText>} closeButtonAriaLabel="close-label">
|
|
45
45
|
Tab 1 section
|
|
@@ -50,7 +50,7 @@ test('should render closeable tabs', () => {
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
test('should render add button', () => {
|
|
53
|
-
|
|
53
|
+
render(
|
|
54
54
|
<Tabs onAdd={jest.fn()} addButtonAriaLabel="add-label">
|
|
55
55
|
<Tab eventKey={0} title={<TabTitleText>"Tab item 1"</TabTitleText>} closeButtonAriaLabel="close-label">
|
|
56
56
|
Tab 1 section
|
|
@@ -156,7 +156,7 @@ test('should render expandable vertical tabs', () => {
|
|
|
156
156
|
test('should log error when there is no aria-label or toggleText for expandable vertical tabs', () => {
|
|
157
157
|
const consoleErrorMock = jest.fn();
|
|
158
158
|
global.console = { error: consoleErrorMock } as any;
|
|
159
|
-
|
|
159
|
+
render(
|
|
160
160
|
<Tabs id="verticalTabs" isVertical expandable={{ default: 'expandable' }}>
|
|
161
161
|
<Tab id="tab1" eventKey={0} title={<TabTitleText>"Tab item 1"</TabTitleText>}>
|
|
162
162
|
Tab 1 section
|
|
@@ -429,7 +429,7 @@ test('should not render scroll buttons by default', () => {
|
|
|
429
429
|
|
|
430
430
|
expect(screen.queryByLabelText('Scroll left')).not.toBeInTheDocument();
|
|
431
431
|
expect(screen.queryByLabelText('Scroll right')).not.toBeInTheDocument();
|
|
432
|
-
})
|
|
432
|
+
});
|
|
433
433
|
|
|
434
434
|
test('should not render scroll buttons when isVertical is true', () => {
|
|
435
435
|
render(
|
|
@@ -448,4 +448,4 @@ test('should not render scroll buttons when isVertical is true', () => {
|
|
|
448
448
|
|
|
449
449
|
expect(screen.queryByLabelText('Scroll left')).not.toBeInTheDocument();
|
|
450
450
|
expect(screen.queryByLabelText('Scroll right')).not.toBeInTheDocument();
|
|
451
|
-
})
|
|
451
|
+
});
|
|
@@ -33,7 +33,9 @@ describe('TextInput', () => {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
test('read only text input using isReadOnly', () => {
|
|
36
|
-
const { asFragment } = render(
|
|
36
|
+
const { asFragment } = render(
|
|
37
|
+
<TextInput readOnlyVariant="default" value="read only" aria-label="read only text input" />
|
|
38
|
+
);
|
|
37
39
|
expect(asFragment()).toMatchSnapshot();
|
|
38
40
|
});
|
|
39
41
|
|
|
@@ -113,20 +115,20 @@ describe('TextInput', () => {
|
|
|
113
115
|
|
|
114
116
|
test('trimLeft is called when isStartTruncated is true', async () => {
|
|
115
117
|
const trimLeftFn = jest.spyOn(ReactCoreUtils, 'trimLeft').mockImplementation();
|
|
116
|
-
|
|
118
|
+
|
|
117
119
|
render(<TextInput isStartTruncated aria-label="start truncated text input" />);
|
|
118
120
|
expect(trimLeftFn).toHaveBeenCalled();
|
|
119
121
|
});
|
|
120
122
|
|
|
121
123
|
test('trimLeft is called when isLeftTruncated is true', async () => {
|
|
122
124
|
const trimLeftFn = jest.spyOn(ReactCoreUtils, 'trimLeft').mockImplementation();
|
|
123
|
-
|
|
125
|
+
|
|
124
126
|
render(<TextInput isLeftTruncated aria-label="start truncated text input" />);
|
|
125
127
|
expect(trimLeftFn).toHaveBeenCalled();
|
|
126
128
|
});
|
|
127
129
|
|
|
128
130
|
test('has aria-expanded set to true when ariaProps.isExpanded is true', () => {
|
|
129
|
-
render(<TextInput expandedProps={{isExpanded: true, ariaControls: 'test'}}
|
|
131
|
+
render(<TextInput expandedProps={{ isExpanded: true, ariaControls: 'test' }} aria-label="isExpanded" />);
|
|
130
132
|
|
|
131
133
|
const input = screen.getByLabelText('isExpanded');
|
|
132
134
|
expect(input).toHaveAttribute('aria-expanded', 'true');
|
|
@@ -7,12 +7,10 @@ import { TimePicker, TimePickerProps } from '../TimePicker';
|
|
|
7
7
|
|
|
8
8
|
describe('TimePicker', () => {
|
|
9
9
|
test('Renders in strict mode', () => {
|
|
10
|
-
const validateTime = (_time: string) =>
|
|
11
|
-
return true;
|
|
12
|
-
};
|
|
10
|
+
const validateTime = (_time: string) => true;
|
|
13
11
|
|
|
14
12
|
const consoleError = jest.spyOn(console, 'error');
|
|
15
|
-
|
|
13
|
+
render(
|
|
16
14
|
<React.StrictMode>
|
|
17
15
|
<TimePicker value={'00:00'} validateTime={validateTime} aria-label="time picker" />
|
|
18
16
|
</React.StrictMode>
|
|
@@ -112,9 +110,7 @@ describe('TimePicker', () => {
|
|
|
112
110
|
|
|
113
111
|
describe('test isInvalid', () => {
|
|
114
112
|
test('should be valid by default', () => {
|
|
115
|
-
const validateTime = (_time: string) =>
|
|
116
|
-
return true;
|
|
117
|
-
};
|
|
113
|
+
const validateTime = (_time: string) => true;
|
|
118
114
|
|
|
119
115
|
render(<TimePicker value={'00:00'} validateTime={validateTime} aria-label="time picker" />);
|
|
120
116
|
|
|
@@ -122,9 +118,7 @@ describe('TimePicker', () => {
|
|
|
122
118
|
});
|
|
123
119
|
|
|
124
120
|
test('should stay valid after onChange', async () => {
|
|
125
|
-
const validateTime = (_time: string) =>
|
|
126
|
-
return true;
|
|
127
|
-
};
|
|
121
|
+
const validateTime = (_time: string) => true;
|
|
128
122
|
const user = userEvent.setup();
|
|
129
123
|
|
|
130
124
|
render(<TimePicker value="00:00" validateTime={validateTime} aria-label="time picker" />);
|
|
@@ -64,8 +64,8 @@ describe('Toolbar', () => {
|
|
|
64
64
|
<ToolbarGroup variant="filter-group">
|
|
65
65
|
<ToolbarFilter
|
|
66
66
|
chips={['New', 'Pending']}
|
|
67
|
-
deleteChip={(
|
|
68
|
-
deleteChipGroup={(
|
|
67
|
+
deleteChip={(_category, _chip) => {}}
|
|
68
|
+
deleteChipGroup={(_category) => {}}
|
|
69
69
|
categoryName="Status"
|
|
70
70
|
>
|
|
71
71
|
test content
|
|
@@ -4,7 +4,11 @@ import { ToolbarGroup } from '../ToolbarGroup';
|
|
|
4
4
|
|
|
5
5
|
describe('ToolbarItem', () => {
|
|
6
6
|
it('should render with pf-m-overflow-container when isOverflowContainer is set', () => {
|
|
7
|
-
render(
|
|
7
|
+
render(
|
|
8
|
+
<ToolbarGroup data-testid="toolbargroup" isOverflowContainer>
|
|
9
|
+
Test
|
|
10
|
+
</ToolbarGroup>
|
|
11
|
+
);
|
|
8
12
|
expect(screen.getByTestId('toolbargroup')).toHaveClass('pf-m-overflow-container');
|
|
9
13
|
});
|
|
10
14
|
});
|
|
@@ -18,7 +18,11 @@ describe('ToolbarItem', () => {
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
it('should render with pf-m-overflow-container when isOverflowContainer is set', () => {
|
|
21
|
-
render(
|
|
21
|
+
render(
|
|
22
|
+
<ToolbarItem data-testid="toolbaritem" isOverflowContainer>
|
|
23
|
+
Test
|
|
24
|
+
</ToolbarItem>
|
|
25
|
+
);
|
|
22
26
|
expect(screen.getByTestId('toolbaritem')).toHaveClass('pf-m-overflow-container');
|
|
23
27
|
});
|
|
24
28
|
});
|
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
3
|
import { TreeView } from '../TreeView';
|
|
4
4
|
import { Button } from '@patternfly/react-core';
|
|
5
|
-
import
|
|
5
|
+
import FolderIcon from '@patternfly/react-icons/dist/esm/icons/folder-icon';
|
|
6
|
+
import FolderOpenIcon from '@patternfly/react-icons/dist/esm/icons/folder-open-icon';
|
|
6
7
|
import { TreeViewSearch } from '../TreeViewSearch';
|
|
7
8
|
|
|
8
9
|
const options = [
|
|
@@ -151,9 +152,7 @@ describe('tree view', () => {
|
|
|
151
152
|
test('calls onExpand and onCollapse appropriately', () => {
|
|
152
153
|
const onExpand = jest.fn();
|
|
153
154
|
const onCollapse = jest.fn();
|
|
154
|
-
|
|
155
|
-
<TreeView data={options} onSelect={jest.fn()} onExpand={onExpand} onCollapse={onCollapse} />
|
|
156
|
-
);
|
|
155
|
+
render(<TreeView data={options} onSelect={jest.fn()} onExpand={onExpand} onCollapse={onCollapse} />);
|
|
157
156
|
expect(onExpand).not.toHaveBeenCalled();
|
|
158
157
|
expect(onCollapse).not.toHaveBeenCalled();
|
|
159
158
|
expect(screen.queryByText('Application 3')).toBeNull();
|
|
@@ -58,7 +58,7 @@ test('renders only the active step content by default', async () => {
|
|
|
58
58
|
render(<WizardToggle {...defaultProps} />);
|
|
59
59
|
|
|
60
60
|
expect(screen.getByText('First step content')).toBeInTheDocument();
|
|
61
|
-
expect(screen.queryByText('Second step content')).toBeNull;
|
|
61
|
+
expect(screen.queryByText('Second step content')).toBeNull();
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
test('has expanded properties when the toggle dropdown button is clicked', async () => {
|
|
@@ -95,7 +95,7 @@ test('unsets expanded properties when using the Escape key', async () => {
|
|
|
95
95
|
expect(toggleButton).not.toHaveClass('pf-m-expanded');
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
const WizardToggleExpand = props => {
|
|
98
|
+
const WizardToggleExpand = (props) => {
|
|
99
99
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
100
100
|
|
|
101
101
|
return (
|
|
@@ -31,7 +31,7 @@ describe('buildSteps', () => {
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
test('returns flattened array of steps and sub-steps when sub-steps exist', () => {
|
|
34
|
-
const CustomSubStep = props => <div {...props} />;
|
|
34
|
+
const CustomSubStep = (props) => <div {...props} />;
|
|
35
35
|
|
|
36
36
|
const component = (
|
|
37
37
|
<WizardStep
|
package/src/demos/Banner.md
CHANGED
|
@@ -58,9 +58,9 @@ class BannerDemo extends React.Component {
|
|
|
58
58
|
</PageSection>
|
|
59
59
|
<PageSection>
|
|
60
60
|
<Gallery hasGutter>
|
|
61
|
-
{Array.
|
|
62
|
-
<GalleryItem key={
|
|
63
|
-
<Card key={
|
|
61
|
+
{Array.from({ length: 30 }).map((_value, index) => (
|
|
62
|
+
<GalleryItem key={index}>
|
|
63
|
+
<Card key={index}>
|
|
64
64
|
<CardBody>This is a card</CardBody>
|
|
65
65
|
</Card>
|
|
66
66
|
</GalleryItem>
|
|
@@ -133,7 +133,7 @@ class BannerDemo extends React.Component {
|
|
|
133
133
|
</PageSection>
|
|
134
134
|
<PageSection>
|
|
135
135
|
<Gallery hasGutter>
|
|
136
|
-
{Array.
|
|
136
|
+
{Array.from({ length: 30 }).map((_value, index) => (
|
|
137
137
|
<GalleryItem key={i}>
|
|
138
138
|
<Card key={i}>
|
|
139
139
|
<CardBody>This is a card</CardBody>
|
|
@@ -41,9 +41,9 @@ export const Name = () => {
|
|
|
41
41
|
aria-label="Scrollable container of demonstration cards with a back to top element"
|
|
42
42
|
>
|
|
43
43
|
<Gallery hasGutter>
|
|
44
|
-
{Array.
|
|
45
|
-
<GalleryItem key={
|
|
46
|
-
<Card key={
|
|
44
|
+
{Array.from({ length: 60 }).map((_value, index) => (
|
|
45
|
+
<GalleryItem key={index}>
|
|
46
|
+
<Card key={index}>
|
|
47
47
|
<CardBody>
|
|
48
48
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas fermentum et urna eget semper. Sed
|
|
49
49
|
tincidunt purus diam, id sollicitudin est pellentesque eget. Ut eget massa dignissim dolor pretium
|
|
@@ -543,8 +543,8 @@ export const MastheadWithUtilitiesAndUserDropdownMenu: React.FunctionComponent =
|
|
|
543
543
|
>
|
|
544
544
|
<PageSection>
|
|
545
545
|
<Gallery hasGutter>
|
|
546
|
-
{Array.
|
|
547
|
-
<GalleryItem key={
|
|
546
|
+
{Array.from({ length: 10 }).map((_value, index) => (
|
|
547
|
+
<GalleryItem key={index}>
|
|
548
548
|
<Card>
|
|
549
549
|
<CardBody>This is a card</CardBody>
|
|
550
550
|
</Card>
|
|
@@ -83,7 +83,7 @@ export const NavDefault: React.FunctionComponent = () => {
|
|
|
83
83
|
</PageSection>
|
|
84
84
|
<PageSection>
|
|
85
85
|
<Gallery hasGutter>
|
|
86
|
-
{Array.from({ length: 10 }
|
|
86
|
+
{Array.from({ length: 10 }).map((_value, index) => (
|
|
87
87
|
<GalleryItem key={index}>
|
|
88
88
|
<Card>
|
|
89
89
|
<CardBody>This is a card</CardBody>
|
|
@@ -109,7 +109,7 @@ export const NavExpandableDemo: React.FunctionComponent = () => {
|
|
|
109
109
|
</PageSection>
|
|
110
110
|
<PageSection>
|
|
111
111
|
<Gallery hasGutter>
|
|
112
|
-
{Array.from({ length: 10 }
|
|
112
|
+
{Array.from({ length: 10 }).map((_value, index) => (
|
|
113
113
|
<GalleryItem key={index}>
|
|
114
114
|
<Card>
|
|
115
115
|
<CardBody>This is a card</CardBody>
|