@patternfly/react-core 5.3.0-prerelease.9 → 5.3.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/CHANGELOG.md +99 -0
- package/README.md +1 -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/DualListSelector/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.js +30 -12
- package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/esm/components/Card/Card.d.ts +13 -5
- package/dist/esm/components/Card/Card.d.ts.map +1 -1
- package/dist/esm/components/Card/Card.js +7 -3
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.d.ts +3 -1
- package/dist/esm/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/esm/components/Card/CardHeader.js +10 -10
- package/dist/esm/components/Card/CardHeader.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts +2 -2
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +10 -2
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.d.ts +4 -0
- package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.js +4 -3
- package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/components/Label/Label.d.ts +2 -0
- package/dist/esm/components/Label/Label.d.ts.map +1 -1
- package/dist/esm/components/Label/Label.js +9 -8
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts +9 -0
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js +29 -3
- package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggleCheckbox.js +2 -2
- package/dist/esm/components/MenuToggle/MenuToggleCheckbox.js.map +1 -1
- package/dist/esm/components/TextArea/TextArea.d.ts +0 -4
- package/dist/esm/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/esm/components/TextArea/TextArea.js.map +1 -1
- package/dist/esm/helpers/GenerateId/GenerateId.d.ts +5 -1
- package/dist/esm/helpers/GenerateId/GenerateId.d.ts.map +1 -1
- package/dist/esm/helpers/GenerateId/GenerateId.js +14 -2
- package/dist/esm/helpers/GenerateId/GenerateId.js.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.js +30 -12
- package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/js/components/Card/Card.d.ts +13 -5
- package/dist/js/components/Card/Card.d.ts.map +1 -1
- package/dist/js/components/Card/Card.js +7 -3
- package/dist/js/components/Card/Card.js.map +1 -1
- package/dist/js/components/Card/CardHeader.d.ts +3 -1
- package/dist/js/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/js/components/Card/CardHeader.js +10 -10
- package/dist/js/components/Card/CardHeader.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +2 -2
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js +10 -2
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/js/components/Dropdown/Dropdown.d.ts +4 -0
- package/dist/js/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/js/components/Dropdown/Dropdown.js +4 -3
- package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/js/components/Label/Label.d.ts +2 -0
- package/dist/js/components/Label/Label.d.ts.map +1 -1
- package/dist/js/components/Label/Label.js +9 -8
- package/dist/js/components/Label/Label.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.d.ts +9 -0
- package/dist/js/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js +30 -4
- package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggleCheckbox.js +2 -2
- package/dist/js/components/MenuToggle/MenuToggleCheckbox.js.map +1 -1
- package/dist/js/components/TextArea/TextArea.d.ts +0 -4
- package/dist/js/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/js/components/TextArea/TextArea.js.map +1 -1
- package/dist/js/helpers/GenerateId/GenerateId.d.ts +5 -1
- package/dist/js/helpers/GenerateId/GenerateId.d.ts.map +1 -1
- package/dist/js/helpers/GenerateId/GenerateId.js +14 -2
- package/dist/js/helpers/GenerateId/GenerateId.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -6
- package/src/components/CalendarMonth/CalendarMonth.tsx +38 -13
- package/src/components/Card/Card.tsx +24 -7
- package/src/components/Card/CardHeader.tsx +11 -10
- package/src/components/Card/examples/Card.md +11 -9
- package/src/components/Card/examples/CardClickableSelectable.tsx +11 -8
- package/src/components/Card/examples/CardSelectable.tsx +3 -6
- package/src/components/Card/examples/CardSingleSelectable.tsx +14 -6
- package/src/components/Chip/__tests__/ChipGroup.test.tsx +3 -1
- package/src/components/ClipboardCopy/ClipboardCopy.tsx +17 -3
- package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +2 -0
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +1 -1
- package/src/components/DragDrop/examples/DragDrop.md +1 -0
- package/src/components/Drawer/__tests__/Drawer.test.tsx +2 -0
- package/src/components/Drawer/__tests__/DrawerPanelContent.test.tsx +2 -0
- package/src/components/Drawer/__tests__/Generated/DrawerPanelContent.test.tsx +2 -0
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerPanelContent.test.tsx.snap +1 -1
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +8 -8
- package/src/components/Dropdown/Dropdown.tsx +12 -2
- package/src/components/Form/__tests__/FormFieldGroup.test.tsx +2 -0
- package/src/components/Form/__tests__/FormSection.test.tsx +2 -0
- package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +2 -2
- package/src/components/Form/__tests__/__snapshots__/FormSection.test.tsx.snap +2 -2
- package/src/components/Label/Label.tsx +16 -5
- package/src/components/Label/__tests__/LabelGroup.test.tsx +2 -0
- package/src/components/Label/__tests__/__snapshots__/LabelGroup.test.tsx.snap +8 -8
- package/src/components/Label/examples/LabelCompact.tsx +19 -1
- package/src/components/Label/examples/LabelFilled.tsx +106 -16
- package/src/components/Label/examples/LabelOutline.tsx +168 -16
- package/src/components/MenuToggle/MenuToggle.tsx +35 -0
- package/src/components/MenuToggle/MenuToggleCheckbox.tsx +2 -2
- package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +15 -0
- package/src/components/MenuToggle/examples/MenuToggle.md +39 -14
- package/src/components/MenuToggle/examples/MenuToggleSplitButtonCheckboxWithToggleText.tsx +51 -0
- package/src/components/MenuToggle/examples/MenuToggleStatus.tsx +20 -0
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUpload.test.tsx +2 -0
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadStatus.test.tsx +2 -0
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatus.test.tsx.snap +16 -16
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +1 -0
- package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +2 -2
- package/src/components/Select/examples/Select.md +30 -11
- package/src/components/Select/examples/SelectMultiTypeaheadCheckbox.tsx +6 -1
- package/src/components/Select/examples/SelectValidated.tsx +74 -0
- package/src/components/Tabs/__tests__/Tabs.test.tsx +2 -0
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +3 -3
- package/src/components/TextArea/TextArea.tsx +0 -4
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +2 -0
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +11 -11
- package/src/demos/AlertGroup.md +2 -0
- package/src/demos/BackToTop.md +1 -0
- package/src/demos/Banner.md +5 -4
- package/src/demos/CardView/CardView.md +2 -0
- package/src/demos/CardView/examples/CardView.tsx +1 -1
- package/src/demos/DataList/examples/DataListBasic.tsx +1 -1
- package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +1 -1
- package/src/demos/DataListDemo.md +1 -0
- package/src/demos/Filters/examples/FilterAttributeSearch.tsx +1 -1
- package/src/demos/Filters/examples/FilterCheckboxSelect.tsx +1 -1
- package/src/demos/Filters/examples/FilterFaceted.tsx +1 -1
- package/src/demos/Filters/examples/FilterMixedSelectGroup.tsx +1 -1
- package/src/demos/Filters/examples/FilterSameSelectGroup.tsx +1 -1
- package/src/demos/Filters/examples/FilterSearchInput.tsx +1 -1
- package/src/demos/Filters/examples/FilterSingleSelect.tsx +1 -1
- package/src/demos/JumpLinks.md +2 -1
- package/src/demos/Nav.md +2 -0
- package/src/demos/PrimaryDetail.md +1 -0
- package/src/demos/RTL/RTL.md +1 -1
- package/src/demos/RTL/examples/{PaginatedTable.jsx → PaginatedTable.tsx} +48 -22
- package/src/demos/Tabs.md +5 -2
- package/src/demos/Toolbar.md +1 -0
- package/src/demos/Wizard/WizardDemo.md +1 -0
- package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +2 -2
- package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +1 -1
- package/src/demos/examples/Card/CardStatus.tsx +1 -1
- package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +1 -1
- package/src/demos/examples/Nav/NavDefault.tsx +2 -2
- package/src/demos/examples/Nav/NavDrilldown.tsx +1 -1
- package/src/demos/examples/Nav/NavExpandable.tsx +2 -2
- package/src/demos/examples/Nav/NavGrouped.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/NavWithSubnav.tsx +2 -2
- package/src/demos/examples/Nav/deprecated/NavLight.tsx +1 -1
- package/src/demos/examples/Nav/deprecated/NavTertiary.tsx +2 -2
- package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +1 -1
- package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +1 -1
- package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +1 -1
- package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +1 -1
- package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +1 -1
- package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +1 -1
- package/src/demos/examples/Tabs/ModalTabs.tsx +1 -1
- package/src/demos/examples/Tabs/NestedTabs.tsx +1 -1
- package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +1 -1
- package/src/demos/examples/Tabs/TabsAndTable.tsx +2 -2
- package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +1 -1
- package/src/demos/examples/Wizard/InModal.tsx +1 -1
- package/src/demos/examples/Wizard/InPage.tsx +1 -1
- package/src/deprecated/components/Select/__tests__/Select.test.tsx +2 -0
- package/src/deprecated/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +25 -25
- package/src/helpers/GenerateId/GenerateId.ts +17 -3
- package/src/helpers/GenerateId/__mocks__/GenerateId.ts +11 -0
- package/src/helpers/GenerateId/__tests__/GenerateId.test.tsx +3 -1
|
@@ -298,7 +298,7 @@ export const FilterSearchInput: React.FunctionComponent = () => {
|
|
|
298
298
|
<Table aria-label="Selectable table">
|
|
299
299
|
<Thead>
|
|
300
300
|
<Tr>
|
|
301
|
-
<Th />
|
|
301
|
+
<Th screenReaderText="Row select" />
|
|
302
302
|
<Th width={20}>{columnNames.name}</Th>
|
|
303
303
|
<Th width={10}>{columnNames.threads}</Th>
|
|
304
304
|
<Th width={10}>{columnNames.apps}</Th>
|
|
@@ -362,7 +362,7 @@ export const FilterSingleSelect: React.FunctionComponent = () => {
|
|
|
362
362
|
<Table aria-label="Selectable table">
|
|
363
363
|
<Thead>
|
|
364
364
|
<Tr>
|
|
365
|
-
<Th />
|
|
365
|
+
<Th screenReaderText="Row select" />
|
|
366
366
|
<Th width={20}>{columnNames.name}</Th>
|
|
367
367
|
<Th width={10}>{columnNames.threads}</Th>
|
|
368
368
|
<Th width={10}>{columnNames.apps}</Th>
|
package/src/demos/JumpLinks.md
CHANGED
|
@@ -4,6 +4,7 @@ section: components
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
import mastheadStyles from '@patternfly/react-styles/css/components/Masthead/masthead';
|
|
7
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
7
8
|
|
|
8
9
|
## Demos
|
|
9
10
|
|
|
@@ -34,7 +35,7 @@ import {
|
|
|
34
35
|
TextContent,
|
|
35
36
|
getResizeObserver
|
|
36
37
|
} from '@patternfly/react-core';
|
|
37
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
38
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
38
39
|
import mastheadStyles from '@patternfly/react-styles/css/components/Masthead/masthead';
|
|
39
40
|
|
|
40
41
|
ScrollspyH2 = () => {
|
package/src/demos/Nav.md
CHANGED
|
@@ -11,6 +11,8 @@ import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
|
11
11
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
12
12
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
13
13
|
import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg';
|
|
14
|
+
import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
15
|
+
import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
|
|
14
16
|
|
|
15
17
|
## Demos
|
|
16
18
|
|
|
@@ -24,6 +24,7 @@ import azureIcon from './assets/FuseConnector_Icons_AzureServices.png';
|
|
|
24
24
|
import restIcon from './assets/FuseConnector_Icons_REST.png';
|
|
25
25
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
26
26
|
import { data } from '@patternfly/react-core/src/demos/CardView/examples/CardViewData.jsx';
|
|
27
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
27
28
|
|
|
28
29
|
## Demos
|
|
29
30
|
|
package/src/demos/RTL/RTL.md
CHANGED
|
@@ -58,10 +58,22 @@ import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-ico
|
|
|
58
58
|
import HandPaperIcon from '@patternfly/react-icons/dist/esm/icons/hand-paper-icon';
|
|
59
59
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
interface Row {
|
|
62
|
+
name: string;
|
|
63
|
+
status: string;
|
|
64
|
+
location: string;
|
|
65
|
+
lastModified: string;
|
|
66
|
+
url: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface Translation {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export const PaginatedTableAction: React.FunctionComponent = () => {
|
|
74
|
+
const [translation, setTranslation] = React.useState<Translation>(translationsEn);
|
|
75
|
+
const [page, setPage] = React.useState<number>(1);
|
|
76
|
+
const [perPage, setPerPage] = React.useState<number>(10);
|
|
65
77
|
|
|
66
78
|
const columns = [
|
|
67
79
|
translation.table.columns.servers,
|
|
@@ -71,13 +83,13 @@ export const PaginatedTableAction = () => {
|
|
|
71
83
|
translation.table.columns.url
|
|
72
84
|
];
|
|
73
85
|
|
|
74
|
-
const numRows = 25;
|
|
75
|
-
const getRandomInteger = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
|
|
86
|
+
const numRows: number = 25;
|
|
87
|
+
const getRandomInteger = (min: number, max: number) => Math.floor(Math.random() * (max - min + 1)) + min;
|
|
76
88
|
const createRows = () => {
|
|
77
|
-
const rows = [];
|
|
89
|
+
const rows: Row[] = [];
|
|
78
90
|
for (let i = 0; i < numRows; i++) {
|
|
79
91
|
const num = i + 1;
|
|
80
|
-
const rowObj = {
|
|
92
|
+
const rowObj: Row = {
|
|
81
93
|
name: translation.table.rows.node + num,
|
|
82
94
|
status: [
|
|
83
95
|
translation.table.rows.status.stopped,
|
|
@@ -110,14 +122,14 @@ export const PaginatedTableAction = () => {
|
|
|
110
122
|
|
|
111
123
|
const rows = createRows();
|
|
112
124
|
const [managedRows, setManagedRows] = React.useState(rows);
|
|
113
|
-
const [paginatedRows, setPaginatedRows] = React.useState(rows.slice(0, 10));
|
|
114
|
-
const [isDirRTL, setIsDirRTL] = React.useState(false);
|
|
125
|
+
const [paginatedRows, setPaginatedRows] = React.useState<Row[]>(rows.slice(0, 10));
|
|
126
|
+
const [isDirRTL, setIsDirRTL] = React.useState<boolean>(false);
|
|
115
127
|
|
|
116
|
-
const capitalize = (input) => input[0].toUpperCase() + input.substring(1);
|
|
128
|
+
const capitalize = (input: string) => input[0].toUpperCase() + input.substring(1);
|
|
117
129
|
|
|
118
130
|
const switchTranslation = () => {
|
|
119
131
|
setIsDirRTL((prevIsDirRTL) => !prevIsDirRTL);
|
|
120
|
-
setTranslation((prevTranslation) => (prevTranslation === translationsEn ? translationsHe : translationsEn));
|
|
132
|
+
setTranslation((prevTranslation: string) => (prevTranslation === translationsEn ? translationsHe : translationsEn));
|
|
121
133
|
};
|
|
122
134
|
|
|
123
135
|
React.useEffect(() => {
|
|
@@ -133,17 +145,29 @@ export const PaginatedTableAction = () => {
|
|
|
133
145
|
|
|
134
146
|
// Pagination logic
|
|
135
147
|
|
|
136
|
-
const handleSetPage = (
|
|
148
|
+
const handleSetPage = (
|
|
149
|
+
_evt: React.MouseEvent | React.KeyboardEvent | MouseEvent,
|
|
150
|
+
newPage: number,
|
|
151
|
+
_perPage: number | undefined,
|
|
152
|
+
startIdx: number | undefined,
|
|
153
|
+
endIdx: number | undefined
|
|
154
|
+
) => {
|
|
137
155
|
setPaginatedRows(managedRows.slice(startIdx, endIdx));
|
|
138
156
|
setPage(newPage);
|
|
139
157
|
};
|
|
140
158
|
|
|
141
|
-
const handlePerPageSelect = (
|
|
159
|
+
const handlePerPageSelect = (
|
|
160
|
+
_evt: React.MouseEvent | React.KeyboardEvent | MouseEvent,
|
|
161
|
+
newPerPage: number,
|
|
162
|
+
_newPage: number,
|
|
163
|
+
startIdx: number | undefined,
|
|
164
|
+
endIdx: number | undefined
|
|
165
|
+
) => {
|
|
142
166
|
setPaginatedRows(managedRows.slice(startIdx, endIdx));
|
|
143
167
|
setPerPage(newPerPage);
|
|
144
168
|
};
|
|
145
169
|
|
|
146
|
-
const renderPagination = (variant) => {
|
|
170
|
+
const renderPagination = (variant: PaginationVariant) => {
|
|
147
171
|
const { pagination } = translation;
|
|
148
172
|
|
|
149
173
|
return (
|
|
@@ -181,7 +205,7 @@ export const PaginatedTableAction = () => {
|
|
|
181
205
|
}
|
|
182
206
|
};
|
|
183
207
|
|
|
184
|
-
const renderLabel = (labelText) => {
|
|
208
|
+
const renderLabel = (labelText: string) => {
|
|
185
209
|
switch (labelText) {
|
|
186
210
|
case 'Running':
|
|
187
211
|
case 'רץ':
|
|
@@ -280,9 +304,9 @@ export const PaginatedTableAction = () => {
|
|
|
280
304
|
</PageSidebar>
|
|
281
305
|
);
|
|
282
306
|
|
|
283
|
-
const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
|
|
284
|
-
const [isKebabDropdownOpen, setIsKebabDropdownOpen] = React.useState(false);
|
|
285
|
-
const [isFullKebabDropdownOpen, setIsFullKebabDropdownOpen] = React.useState(false);
|
|
307
|
+
const [isDropdownOpen, setIsDropdownOpen] = React.useState<boolean>(false);
|
|
308
|
+
const [isKebabDropdownOpen, setIsKebabDropdownOpen] = React.useState<boolean>(false);
|
|
309
|
+
const [isFullKebabDropdownOpen, setIsFullKebabDropdownOpen] = React.useState<boolean>(false);
|
|
286
310
|
|
|
287
311
|
const kebabDropdownItems = (
|
|
288
312
|
<>
|
|
@@ -434,15 +458,17 @@ export const PaginatedTableAction = () => {
|
|
|
434
458
|
</Masthead>
|
|
435
459
|
);
|
|
436
460
|
|
|
461
|
+
const breadcrumbItemsLength = Object.keys(breadcrumbItems).length;
|
|
462
|
+
|
|
437
463
|
return (
|
|
438
464
|
<React.Fragment>
|
|
439
465
|
<Page sidebar={sidebar} header={masthead} isManagedSidebar>
|
|
440
466
|
<PageBreadcrumb>
|
|
441
467
|
<Breadcrumb aria-label={translation.breadcrumbs.ariaLabel || undefined}>
|
|
442
|
-
{Object.keys(breadcrumbItems).map((key, idx, arr) => (
|
|
468
|
+
{Object.keys(breadcrumbItems).map((key: string, idx: number, arr: string[]) => (
|
|
443
469
|
<BreadcrumbItem key={idx} isActive={arr.length - 1 === idx} to={`${breadcrumbItems[key].url}`}>
|
|
444
470
|
{translation.breadcrumbs[key]}
|
|
445
|
-
{
|
|
471
|
+
{breadcrumbItemsLength}
|
|
446
472
|
</BreadcrumbItem>
|
|
447
473
|
))}
|
|
448
474
|
</Breadcrumb>
|
|
@@ -465,7 +491,7 @@ export const PaginatedTableAction = () => {
|
|
|
465
491
|
</Tr>
|
|
466
492
|
</Thead>
|
|
467
493
|
<Tbody>
|
|
468
|
-
{paginatedRows.map((row, rowIndex) => (
|
|
494
|
+
{paginatedRows.map((row: Row, rowIndex: number) => (
|
|
469
495
|
<Tr key={rowIndex}>
|
|
470
496
|
<>
|
|
471
497
|
{Object.entries(row).map(([key, value]) => {
|
package/src/demos/Tabs.md
CHANGED
|
@@ -11,7 +11,10 @@ import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
|
11
11
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
12
12
|
import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon';
|
|
13
13
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
14
|
+
import display from '@patternfly/react-styles/css/utilities/Display/display';
|
|
15
|
+
import sizing from '@patternfly/react-styles/css/utilities/Sizing/sizing';
|
|
14
16
|
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
17
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
15
18
|
|
|
16
19
|
## Demos
|
|
17
20
|
|
|
@@ -43,7 +46,7 @@ import {
|
|
|
43
46
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
44
47
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
45
48
|
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
46
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
49
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
47
50
|
|
|
48
51
|
|
|
49
52
|
TabsOpenDemo = () => {
|
|
@@ -235,7 +238,7 @@ import {
|
|
|
235
238
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
236
239
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
237
240
|
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
238
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
241
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
239
242
|
|
|
240
243
|
TabsOpenWithSecondaryTabsDemo = () => {
|
|
241
244
|
const [activeTabKey, setActiveTabKey] = React.useState(0);
|
package/src/demos/Toolbar.md
CHANGED
|
@@ -11,6 +11,7 @@ import DownloadIcon from '@patternfly/react-icons/dist/esm/icons/download-icon';
|
|
|
11
11
|
import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon';
|
|
12
12
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
13
13
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
14
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
14
15
|
|
|
15
16
|
## Demos
|
|
16
17
|
|
|
@@ -6,6 +6,7 @@ source: react-demos
|
|
|
6
6
|
|
|
7
7
|
import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg';
|
|
8
8
|
import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
|
|
9
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
9
10
|
|
|
10
11
|
## Demos
|
|
11
12
|
|
|
@@ -33,8 +33,8 @@ import {
|
|
|
33
33
|
} from '@patternfly/react-core';
|
|
34
34
|
import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
|
|
35
35
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
36
|
-
import { DashboardHeader } from '@patternfly/react-core/
|
|
37
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
36
|
+
import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
|
|
37
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
38
38
|
|
|
39
39
|
interface NotificationProps {
|
|
40
40
|
title: string;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
Page,
|
|
13
13
|
Switch
|
|
14
14
|
} from '@patternfly/react-core';
|
|
15
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
15
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
16
16
|
|
|
17
17
|
export const Name = () => {
|
|
18
18
|
const [isAlwaysVisible, setIsAlwaysVisible] = React.useState(false);
|
|
@@ -94,7 +94,7 @@ export const CardStatus: React.FunctionComponent = () => {
|
|
|
94
94
|
<Table variant="compact">
|
|
95
95
|
<Thead>
|
|
96
96
|
<Tr>
|
|
97
|
-
<Th />
|
|
97
|
+
<Th screenReaderText="Row expansion" />
|
|
98
98
|
{columns.map((column, columnIndex) => (
|
|
99
99
|
<Th key={columnIndex} modifier="fitContent">
|
|
100
100
|
{column}
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getResizeObserver,
|
|
21
21
|
DrawerContext
|
|
22
22
|
} from '@patternfly/react-core';
|
|
23
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
23
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
24
24
|
import mastheadStyles from '@patternfly/react-styles/css/components/Masthead/masthead';
|
|
25
25
|
|
|
26
26
|
const JumpLinksWrapper = ({ offsetHeight, headings }) => {
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
TextContent,
|
|
17
17
|
Text
|
|
18
18
|
} from '@patternfly/react-core';
|
|
19
|
-
import { DashboardBreadcrumb } from '@patternfly/react-core/
|
|
20
|
-
import { DashboardHeader } from '@patternfly/react-core/
|
|
19
|
+
import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
20
|
+
import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
|
|
21
21
|
|
|
22
22
|
export const NavDefault: React.FunctionComponent = () => {
|
|
23
23
|
const [activeItem, setActiveItem] = React.useState<number | string>(0);
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
Menu,
|
|
13
13
|
PageSection
|
|
14
14
|
} from '@patternfly/react-core';
|
|
15
|
-
import { DashboardHeader } from '@patternfly/react-core/
|
|
15
|
+
import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
|
|
16
16
|
|
|
17
17
|
interface MenuHeights {
|
|
18
18
|
[menuId: string]: number;
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
TextContent,
|
|
18
18
|
Text
|
|
19
19
|
} from '@patternfly/react-core';
|
|
20
|
-
import { DashboardBreadcrumb } from '@patternfly/react-core/
|
|
21
|
-
import { DashboardHeader } from '@patternfly/react-core/
|
|
20
|
+
import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
21
|
+
import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
|
|
22
22
|
|
|
23
23
|
export const NavExpandableDemo: React.FunctionComponent = () => {
|
|
24
24
|
const [activeGroup, setActiveGroup] = React.useState<string | number>('grp-1');
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
TextContent,
|
|
13
13
|
Text
|
|
14
14
|
} from '@patternfly/react-core';
|
|
15
|
-
import { DashboardHeader } from '@patternfly/react-core/
|
|
15
|
+
import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
|
|
16
16
|
|
|
17
17
|
export const NavGrouped: React.FunctionComponent = () => {
|
|
18
18
|
const [activeItem, setActiveItem] = React.useState<number | string>('grp-1_itm-1');
|
|
@@ -39,7 +39,7 @@ import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-ico
|
|
|
39
39
|
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
40
40
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
41
41
|
import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg';
|
|
42
|
-
import { DashboardBreadcrumb } from '@patternfly/react-core/
|
|
42
|
+
import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
43
43
|
|
|
44
44
|
export const NavHorizontal: React.FunctionComponent = () => {
|
|
45
45
|
const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
|
|
@@ -43,7 +43,7 @@ import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
|
43
43
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
44
44
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
45
45
|
import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg';
|
|
46
|
-
import { DashboardBreadcrumb } from '@patternfly/react-core/
|
|
46
|
+
import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
47
47
|
|
|
48
48
|
export const NavHorizontalWithSubnav: React.FunctionComponent = () => {
|
|
49
49
|
const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
TextContent,
|
|
18
18
|
Text
|
|
19
19
|
} from '@patternfly/react-core';
|
|
20
|
-
import { DashboardBreadcrumb } from '@patternfly/react-core/
|
|
21
|
-
import { DashboardHeader } from '@patternfly/react-core/
|
|
20
|
+
import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
21
|
+
import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
|
|
22
22
|
|
|
23
23
|
export const NavWithSubnav: React.FunctionComponent = () => {
|
|
24
24
|
const [activeItem, setActiveItem] = React.useState<string | number>(0);
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
TextContent,
|
|
17
17
|
Text
|
|
18
18
|
} from '@patternfly/react-core';
|
|
19
|
-
import { DashboardHeader } from '@patternfly/react-core/
|
|
19
|
+
import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
|
|
20
20
|
|
|
21
21
|
export const NavLight: React.FunctionComponent = () => {
|
|
22
22
|
const [activeItem, setActiveItem] = React.useState<string | number>(0);
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
TextContent,
|
|
15
15
|
Text
|
|
16
16
|
} from '@patternfly/react-core';
|
|
17
|
-
import { DashboardBreadcrumb } from '@patternfly/react-core/
|
|
18
|
-
import { DashboardHeader } from '@patternfly/react-core/
|
|
17
|
+
import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
18
|
+
import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
|
|
19
19
|
|
|
20
20
|
export const NavTertiary: React.FunctionComponent = () => {
|
|
21
21
|
const [activeItem, setActiveItem] = React.useState<string | number>(0);
|
|
@@ -51,7 +51,7 @@ import swaggerIcon from './assets/camel-swagger-java_200x150.png';
|
|
|
51
51
|
import azureIcon from './assets/FuseConnector_Icons_AzureServices.png';
|
|
52
52
|
import restIcon from './assets/FuseConnector_Icons_REST.png';
|
|
53
53
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
54
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
54
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
55
55
|
import { data } from '@patternfly/react-core/src/demos/CardView/examples/CardViewData.jsx';
|
|
56
56
|
|
|
57
57
|
export const PrimaryDetailCardView: React.FunctionComponent = () => {
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
SelectOptionProps,
|
|
41
41
|
MenuToggle
|
|
42
42
|
} from '@patternfly/react-core';
|
|
43
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
43
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
44
44
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
45
45
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
46
46
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
TextContent,
|
|
32
32
|
Title
|
|
33
33
|
} from '@patternfly/react-core';
|
|
34
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
34
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
35
35
|
|
|
36
36
|
export const PrimaryDetailDataListInCard: React.FunctionComponent = () => {
|
|
37
37
|
const [drawerPanelBodyContent, setDrawerPanelBodyContent] = React.useState(1);
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
SelectOptionProps,
|
|
41
41
|
MenuToggle
|
|
42
42
|
} from '@patternfly/react-core';
|
|
43
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
43
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
44
44
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
45
45
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
46
46
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
SelectOptionProps,
|
|
41
41
|
MenuToggle
|
|
42
42
|
} from '@patternfly/react-core';
|
|
43
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
43
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
44
44
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
45
45
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
46
46
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
TextContent,
|
|
23
23
|
Title
|
|
24
24
|
} from '@patternfly/react-core';
|
|
25
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
25
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
26
26
|
|
|
27
27
|
export const PrimaryDetailSimpleListInCard: React.FunctionComponent = () => {
|
|
28
28
|
const [drawerPanelBodyContent, setDrawerPanelBodyContent] = React.useState(1);
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
Flex,
|
|
17
17
|
FlexItem
|
|
18
18
|
} from '@patternfly/react-core';
|
|
19
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
19
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
20
20
|
import sizing from '@patternfly/react-styles/css/utilities/Sizing/sizing';
|
|
21
21
|
|
|
22
22
|
export const NestedTabs: React.FunctionComponent = () => {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
TitleSizes,
|
|
18
18
|
CardTitle
|
|
19
19
|
} from '@patternfly/react-core';
|
|
20
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
20
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
21
21
|
|
|
22
22
|
export const NestedUnindentedTabs: React.FunctionComponent = () => {
|
|
23
23
|
const [activeTabKey, setActiveTabKey] = React.useState(1);
|
|
@@ -57,7 +57,7 @@ import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
|
57
57
|
import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon';
|
|
58
58
|
import { KeyTypes } from '../../../helpers';
|
|
59
59
|
import display from '@patternfly/react-styles/css/utilities/Display/display';
|
|
60
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
60
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
61
61
|
|
|
62
62
|
interface Repository {
|
|
63
63
|
name: string;
|
|
@@ -230,7 +230,7 @@ export const TablesAndTabs = () => {
|
|
|
230
230
|
<Table aria-label="`Composable` table">
|
|
231
231
|
<Thead noWrap>
|
|
232
232
|
<Tr>
|
|
233
|
-
<Th />
|
|
233
|
+
<Th screenReaderText="Row select" />
|
|
234
234
|
<Th>{columnNames.name}</Th>
|
|
235
235
|
<Th>{columnNames.branches}</Th>
|
|
236
236
|
<Th>{columnNames.prs}</Th>
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
DropdownList,
|
|
21
21
|
MenuFooter
|
|
22
22
|
} from '@patternfly/react-core';
|
|
23
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
23
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
24
24
|
import PauseIcon from '@patternfly/react-icons/dist/esm/icons/pause-icon';
|
|
25
25
|
import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
|
|
26
26
|
import ExpandIcon from '@patternfly/react-icons/dist/esm/icons/expand-icon';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
WizardHeader,
|
|
12
12
|
WizardStep
|
|
13
13
|
} from '@patternfly/react-core';
|
|
14
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
14
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
15
15
|
|
|
16
16
|
export const WizardInModalDemo: React.FunctionComponent = () => (
|
|
17
17
|
<>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PageSection, PageSectionTypes, PageSectionVariants, Wizard, WizardStep } from '@patternfly/react-core';
|
|
3
|
-
import { DashboardWrapper } from '@patternfly/react-core/
|
|
3
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
4
4
|
|
|
5
5
|
export const WizardFullPage: React.FunctionComponent = () => (
|
|
6
6
|
<React.Fragment>
|
|
@@ -9,6 +9,8 @@ import { SelectGroup } from '../SelectGroup';
|
|
|
9
9
|
import { SelectVariant, SelectDirection } from '../selectConstants';
|
|
10
10
|
import { KeyTypes } from '../../../../helpers';
|
|
11
11
|
|
|
12
|
+
jest.mock('../../../../helpers/GenerateId/GenerateId');
|
|
13
|
+
|
|
12
14
|
class User implements SelectOptionObject {
|
|
13
15
|
private firstName: string;
|
|
14
16
|
private lastName: string;
|