@patternfly/react-core 6.2.1-prerelease.9 → 6.2.2
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 +11 -13
- 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/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/Content/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/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/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/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/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
- package/dist/dynamic/deprecated/components/Tile/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/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/styles/package.json +1 -1
- package/dist/esm/components/Divider/Divider.d.ts +0 -2
- package/dist/esm/components/Divider/Divider.d.ts.map +1 -1
- package/dist/esm/components/Divider/Divider.js +2 -2
- package/dist/esm/components/Divider/Divider.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/esm/components/Form/FormFieldGroup.d.ts +1 -1
- package/dist/esm/components/Form/FormFieldGroup.d.ts.map +1 -1
- package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts +1 -1
- package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts.map +1 -1
- package/dist/esm/components/Form/InternalFormFieldGroup.d.ts +1 -1
- package/dist/esm/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
- package/dist/esm/components/List/List.d.ts.map +1 -1
- package/dist/esm/components/List/List.js +2 -2
- package/dist/esm/components/List/List.js.map +1 -1
- package/dist/esm/components/List/ListItem.d.ts +2 -4
- package/dist/esm/components/List/ListItem.d.ts.map +1 -1
- package/dist/esm/components/List/ListItem.js +2 -2
- package/dist/esm/components/List/ListItem.js.map +1 -1
- package/dist/esm/components/Nav/Nav.d.ts +1 -1
- package/dist/esm/components/Nav/Nav.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavItemSeparator.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavItemSeparator.js +2 -2
- package/dist/esm/components/Nav/NavItemSeparator.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.js +3 -4
- package/dist/esm/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/esm/components/Truncate/Truncate.d.ts +1 -11
- package/dist/esm/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/esm/components/Truncate/Truncate.js +6 -43
- package/dist/esm/components/Truncate/Truncate.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavInternal.js.map +1 -1
- package/dist/js/components/Divider/Divider.d.ts +0 -2
- package/dist/js/components/Divider/Divider.d.ts.map +1 -1
- package/dist/js/components/Divider/Divider.js +2 -2
- package/dist/js/components/Divider/Divider.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/js/components/Form/FormFieldGroup.d.ts +1 -1
- package/dist/js/components/Form/FormFieldGroup.d.ts.map +1 -1
- package/dist/js/components/Form/FormFieldGroupExpandable.d.ts +1 -1
- package/dist/js/components/Form/FormFieldGroupExpandable.d.ts.map +1 -1
- package/dist/js/components/Form/InternalFormFieldGroup.d.ts +1 -1
- package/dist/js/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
- package/dist/js/components/List/List.d.ts.map +1 -1
- package/dist/js/components/List/List.js +2 -2
- package/dist/js/components/List/List.js.map +1 -1
- package/dist/js/components/List/ListItem.d.ts +2 -4
- package/dist/js/components/List/ListItem.d.ts.map +1 -1
- package/dist/js/components/List/ListItem.js +2 -2
- package/dist/js/components/List/ListItem.js.map +1 -1
- package/dist/js/components/Nav/Nav.d.ts +1 -1
- package/dist/js/components/Nav/Nav.d.ts.map +1 -1
- package/dist/js/components/Nav/NavItemSeparator.d.ts.map +1 -1
- package/dist/js/components/Nav/NavItemSeparator.js +2 -2
- package/dist/js/components/Nav/NavItemSeparator.js.map +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/js/components/Tabs/Tabs.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.js +3 -4
- package/dist/js/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/js/components/Truncate/Truncate.d.ts +1 -11
- package/dist/js/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/js/components/Truncate/Truncate.js +5 -42
- package/dist/js/components/Truncate/Truncate.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavInternal.js.map +1 -1
- package/dist/umd/assets/{output-Dz39wdRo.css → output-AyA9e2xy.css} +14502 -14589
- package/dist/umd/react-core.min.js +3 -3
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +8 -8
- package/src/components/Alert/examples/Alert.md +3 -0
- package/src/components/DescriptionList/examples/DescriptionListAutoFitBasic.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthModified.tsx +1 -5
- package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthResponsive.tsx +1 -5
- package/src/components/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListColumnFill.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListCompact.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListCompactHorizontal.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultAutoColumn.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultInlineGrid.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultResponsiveColumns.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultThreeColLg.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListDefaultTwoCol.tsx +0 -1
- package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardHorizontalTermWidth.tsx +1 -7
- package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardThreeColumn.tsx +1 -5
- package/src/components/DescriptionList/examples/DescriptionListFluidHorizontal.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontal.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontalAutoColumn.tsx +1 -6
- package/src/components/DescriptionList/examples/DescriptionListHorizontalCustomTermWidth.tsx +0 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontalResponsiveColumns.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontalThreeColLg.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListHorizontalTwoCol.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListIconsOnTerms.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListResponsiveHoriVertGroup.tsx +0 -1
- package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +1 -1
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +1 -5
- package/src/components/DescriptionList/examples/DescriptionListWithTermHelpText.tsx +1 -1
- package/src/components/Divider/Divider.tsx +1 -4
- package/src/components/Divider/__tests__/Divider.test.tsx +0 -10
- package/src/components/DualListSelector/examples/DualListSelectorBasicSearch.tsx +0 -1
- package/src/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +0 -1
- package/src/components/DualListSelector/examples/DualListSelectorTree.tsx +0 -1
- package/src/components/ExpandableSection/ExpandableSection.tsx +1 -1
- package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +1 -1
- package/src/components/Form/FormFieldGroup.tsx +1 -1
- package/src/components/Form/FormFieldGroupExpandable.tsx +1 -1
- package/src/components/Form/InternalFormFieldGroup.tsx +1 -1
- package/src/components/List/List.tsx +0 -3
- package/src/components/List/ListItem.tsx +4 -7
- package/src/components/List/__tests__/Generated/ListItem.test.tsx +12 -0
- package/src/components/List/__tests__/Generated/__snapshots__/ListItem.test.tsx.snap +13 -0
- package/src/components/List/__tests__/List.test.tsx +101 -97
- package/src/components/List/__tests__/__snapshots__/List.test.tsx.snap +261 -4
- package/src/components/Nav/Nav.tsx +1 -1
- package/src/components/Nav/NavItemSeparator.tsx +1 -2
- package/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx +1 -1
- package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +0 -1
- package/src/components/SearchInput/examples/SearchInputBasic.tsx +0 -1
- package/src/components/SearchInput/examples/SearchInputFocusSearch.tsx +1 -7
- package/src/components/SearchInput/examples/SearchInputWithExpandable.tsx +0 -1
- package/src/components/SearchInput/examples/SearchInputWithNavigableOptions.tsx +0 -1
- package/src/components/SearchInput/examples/SearchInputWithResultCount.tsx +0 -1
- package/src/components/SearchInput/examples/SearchInputWithSubmitButton.tsx +0 -1
- package/src/components/Tabs/Tabs.tsx +1 -3
- package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +1 -11
- package/src/components/Truncate/Truncate.tsx +22 -109
- package/src/components/Truncate/__tests__/Truncate.test.tsx +2 -70
- package/src/components/Truncate/__tests__/__snapshots__/Truncate.test.tsx.snap +0 -37
- package/src/components/Truncate/examples/Truncate.md +36 -32
- package/src/components/Wizard/WizardNavInternal.tsx +1 -1
- package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +1 -1
- package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
- package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +1 -1
- package/src/demos/SearchInput/SearchInput.md +0 -2
- package/src/demos/examples/Card/CardDetails.tsx +2 -2
- package/src/demos/examples/Card/CardEventsView.tsx +1 -1
- package/src/demos/examples/Card/CardLogView.tsx +1 -1
- package/src/demos/examples/Card/CardStatusTabbed.tsx +3 -3
- package/src/components/List/__tests__/ListItem.test.tsx +0 -51
- package/src/components/List/__tests__/__snapshots__/ListItem.test.tsx.snap +0 -34
- package/src/components/Truncate/examples/TruncateCustomTooltipPosition.tsx +0 -10
- package/src/components/Truncate/examples/TruncateDefault.tsx +0 -7
- package/src/components/Truncate/examples/TruncateMaxChars.tsx +0 -27
- package/src/components/Truncate/examples/TruncateMiddle.tsx +0 -11
- package/src/components/Truncate/examples/TruncateStart.tsx +0 -7
package/helpers/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.2.1
|
|
1
|
+
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.2.1","private":true}
|
package/layouts/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.2.1
|
|
1
|
+
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.2.1","private":true}
|
package/next/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.2.1
|
|
1
|
+
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.2.1","private":true}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.2",
|
|
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",
|
|
@@ -46,22 +46,22 @@
|
|
|
46
46
|
"subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@patternfly/react-icons": "^6.2.
|
|
50
|
-
"@patternfly/react-styles": "^6.2.
|
|
51
|
-
"@patternfly/react-tokens": "^6.2.
|
|
49
|
+
"@patternfly/react-icons": "^6.2.2",
|
|
50
|
+
"@patternfly/react-styles": "^6.2.2",
|
|
51
|
+
"@patternfly/react-tokens": "^6.2.2",
|
|
52
52
|
"focus-trap": "7.6.4",
|
|
53
53
|
"react-dropzone": "^14.3.5",
|
|
54
54
|
"tslib": "^2.8.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@patternfly/patternfly": "6.3
|
|
57
|
+
"@patternfly/patternfly": "6.2.3",
|
|
58
58
|
"case-anything": "^3.1.2",
|
|
59
59
|
"css": "^3.0.0",
|
|
60
60
|
"fs-extra": "^11.3.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"react": "^17 || ^18
|
|
64
|
-
"react-dom": "^17 || ^18
|
|
63
|
+
"react": "^17 || ^18",
|
|
64
|
+
"react-dom": "^17 || ^18"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "f354347710422b87a910bbf8e1cc728cc31a2f11"
|
|
67
67
|
}
|
|
@@ -149,6 +149,9 @@ const AlertTimeout: React.FunctionComponent = () => {
|
|
|
149
149
|
<Button variant="secondary" onClick={onClick}>
|
|
150
150
|
Add alert
|
|
151
151
|
</Button>
|
|
152
|
+
<Button variant="secondary" onClick={() => setAlerts([])}>
|
|
153
|
+
Remove all alerts
|
|
154
|
+
</Button>
|
|
152
155
|
<AlertGroup hasAnimations isLiveRegion>{alerts}</AlertGroup>
|
|
153
156
|
</Fragment>
|
|
154
157
|
);
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListAutoFitBasic: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isAutoFit
|
|
11
|
+
<DescriptionList isAutoFit>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>example</DescriptionListDescription>
|
|
@@ -8,11 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListAutoFitMinWidthModified: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList
|
|
12
|
-
isAutoFit
|
|
13
|
-
autoFitMinModifier={{ default: '200px' }}
|
|
14
|
-
aria-label="Auto-fit grid with minimum width modification"
|
|
15
|
-
>
|
|
11
|
+
<DescriptionList isAutoFit autoFitMinModifier={{ default: '200px' }}>
|
|
16
12
|
<DescriptionListGroup>
|
|
17
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
18
14
|
<DescriptionListDescription>example</DescriptionListDescription>
|
package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthResponsive.tsx
CHANGED
|
@@ -8,11 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListAutoFitMinWidthResponsive: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList
|
|
12
|
-
isAutoFit
|
|
13
|
-
autoFitMinModifier={{ md: '100px', lg: '150px', xl: '200px', '2xl': '300px' }}
|
|
14
|
-
aria-label="Responsive auto-fit grid with minimum width"
|
|
15
|
-
>
|
|
11
|
+
<DescriptionList isAutoFit autoFitMinModifier={{ md: '100px', lg: '150px', xl: '200px', '2xl': '300px' }}>
|
|
16
12
|
<DescriptionListGroup>
|
|
17
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
18
14
|
<DescriptionListDescription>example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListBasic: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList
|
|
11
|
+
<DescriptionList>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListColumnFill: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isFillColumns columnModifier={{ default: '2Col', lg: '3Col' }}
|
|
11
|
+
<DescriptionList isFillColumns columnModifier={{ default: '2Col', lg: '3Col' }}>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListCompact: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isCompact
|
|
11
|
+
<DescriptionList isCompact>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListCompactHorizontal: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isCompact isHorizontal
|
|
11
|
+
<DescriptionList isCompact isHorizontal>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListDefaultAutoColumn: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isAutoColumnWidths columnModifier={{ default: '3Col' }}
|
|
11
|
+
<DescriptionList isAutoColumnWidths columnModifier={{ default: '3Col' }}>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListDefaultInlineGrid: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList columnModifier={{ default: '3Col' }} isInlineGrid
|
|
11
|
+
<DescriptionList columnModifier={{ default: '3Col' }} isInlineGrid>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListDefaultResponsiveColumns: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList columnModifier={{ lg: '2Col', xl: '3Col' }}
|
|
11
|
+
<DescriptionList columnModifier={{ lg: '2Col', xl: '3Col' }}>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListDefaultThreeColLg: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList columnModifier={{ lg: '3Col' }}
|
|
11
|
+
<DescriptionList columnModifier={{ lg: '3Col' }}>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -2,13 +2,7 @@ import { Button, DescriptionList, DescriptionListTerm, DescriptionListDescriptio
|
|
|
2
2
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
3
3
|
|
|
4
4
|
export const DescriptionListDisplaySizeAndCardHorizontalTermWidth: React.FunctionComponent = () => (
|
|
5
|
-
<DescriptionList
|
|
6
|
-
displaySize="lg"
|
|
7
|
-
isHorizontal
|
|
8
|
-
columnModifier={{ lg: '2Col' }}
|
|
9
|
-
termWidth="10ch"
|
|
10
|
-
aria-label="Display size with card, horizontal and modified term width"
|
|
11
|
-
>
|
|
5
|
+
<DescriptionList displaySize="lg" isHorizontal columnModifier={{ lg: '2Col' }} termWidth="10ch">
|
|
12
6
|
<Card component="div">
|
|
13
7
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
8
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardThreeColumn.tsx
CHANGED
|
@@ -2,11 +2,7 @@ import { Button, DescriptionList, DescriptionListTerm, DescriptionListDescriptio
|
|
|
2
2
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
3
3
|
|
|
4
4
|
export const DescriptionListDisplayLgAndCardThreeColumn: React.FunctionComponent = () => (
|
|
5
|
-
<DescriptionList
|
|
6
|
-
displaySize="lg"
|
|
7
|
-
columnModifier={{ lg: '3Col' }}
|
|
8
|
-
aria-label="Display size with card and three column on large breakpoint"
|
|
9
|
-
>
|
|
5
|
+
<DescriptionList displaySize="lg" columnModifier={{ lg: '3Col' }}>
|
|
10
6
|
<Card component="div">
|
|
11
7
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
12
8
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListFluidHorizontal: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isHorizontal isFluid
|
|
11
|
+
<DescriptionList isHorizontal isFluid>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListHorizontal: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isHorizontal
|
|
11
|
+
<DescriptionList isHorizontal>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,12 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListHorizontalAutoColumn: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList
|
|
12
|
-
isHorizontal
|
|
13
|
-
isAutoColumnWidths
|
|
14
|
-
columnModifier={{ lg: '2Col' }}
|
|
15
|
-
aria-label="Horizontal auto column width"
|
|
16
|
-
>
|
|
11
|
+
<DescriptionList isHorizontal isAutoColumnWidths columnModifier={{ lg: '2Col' }}>
|
|
17
12
|
<DescriptionListGroup>
|
|
18
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
19
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
package/src/components/DescriptionList/examples/DescriptionListHorizontalCustomTermWidth.tsx
CHANGED
|
@@ -18,7 +18,6 @@ export const DescriptionListHorizontalCustomTermWidth: React.FunctionComponent =
|
|
|
18
18
|
xl: '30ch',
|
|
19
19
|
'2xl': '35ch'
|
|
20
20
|
}}
|
|
21
|
-
aria-label="Horizontal with custom term width modifier"
|
|
22
21
|
>
|
|
23
22
|
<DescriptionListGroup>
|
|
24
23
|
<DescriptionListTerm>Name longer than the default term width</DescriptionListTerm>
|
package/src/components/DescriptionList/examples/DescriptionListHorizontalResponsiveColumns.tsx
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListHorizontalResponsiveColumns: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isHorizontal columnModifier={{ lg: '2Col', xl: '3Col' }}
|
|
11
|
+
<DescriptionList isHorizontal columnModifier={{ lg: '2Col', xl: '3Col' }}>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListHorizontalThreeColLg: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isHorizontal columnModifier={{ lg: '3Col' }}
|
|
11
|
+
<DescriptionList isHorizontal columnModifier={{ lg: '3Col' }}>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
9
9
|
|
|
10
10
|
export const DescriptionListHorizontalTwoCol: React.FunctionComponent = () => (
|
|
11
|
-
<DescriptionList isHorizontal columnModifier={{ default: '2Col' }}
|
|
11
|
+
<DescriptionList isHorizontal columnModifier={{ default: '2Col' }}>
|
|
12
12
|
<DescriptionListGroup>
|
|
13
13
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
14
14
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -13,7 +13,7 @@ import GlobeIcon from '@patternfly/react-icons/dist/esm/icons/globe-icon';
|
|
|
13
13
|
import FlagIcon from '@patternfly/react-icons/dist/esm/icons/flag-icon';
|
|
14
14
|
|
|
15
15
|
export const DescriptionListIconsOnTerms: React.FunctionComponent = () => (
|
|
16
|
-
<DescriptionList
|
|
16
|
+
<DescriptionList>
|
|
17
17
|
<DescriptionListGroup>
|
|
18
18
|
<DescriptionListTerm icon={<CubeIcon />}>Name</DescriptionListTerm>
|
|
19
19
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -29,7 +29,7 @@ export const DescriptionListWithCard: React.FunctionComponent = () => {
|
|
|
29
29
|
name="toggle-isSelectable"
|
|
30
30
|
/>
|
|
31
31
|
</div>
|
|
32
|
-
<DescriptionList columnModifier={{ lg: '2Col' }}
|
|
32
|
+
<DescriptionList columnModifier={{ lg: '2Col' }}>
|
|
33
33
|
<Card component="div" isSelectable={isSelectable}>
|
|
34
34
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
35
35
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -30,7 +30,7 @@ export const DescriptionListWithLargeDisplaySize: React.FunctionComponent = () =
|
|
|
30
30
|
name="toggle-display-size"
|
|
31
31
|
/>
|
|
32
32
|
</div>
|
|
33
|
-
<DescriptionList displaySize={displaySize} columnModifier={{ lg: '2Col' }}
|
|
33
|
+
<DescriptionList displaySize={displaySize} columnModifier={{ lg: '2Col' }}>
|
|
34
34
|
<DescriptionListGroup>
|
|
35
35
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
36
36
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx
CHANGED
|
@@ -30,11 +30,7 @@ export const DescriptionListWithLargeDisplaySizeAndCard: React.FunctionComponent
|
|
|
30
30
|
name="toggle-display-size-with-card"
|
|
31
31
|
/>
|
|
32
32
|
</div>
|
|
33
|
-
<DescriptionList
|
|
34
|
-
displaySize={displaySize}
|
|
35
|
-
columnModifier={{ lg: '2Col' }}
|
|
36
|
-
aria-label="With large display size and card"
|
|
37
|
-
>
|
|
33
|
+
<DescriptionList displaySize={displaySize} columnModifier={{ lg: '2Col' }}>
|
|
38
34
|
<Card component="div">
|
|
39
35
|
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
40
36
|
<DescriptionListDescription>Example</DescriptionListDescription>
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
11
11
|
|
|
12
12
|
export const DescriptionListWithTermHelpText: React.FunctionComponent = () => (
|
|
13
|
-
<DescriptionList
|
|
13
|
+
<DescriptionList>
|
|
14
14
|
<DescriptionListGroup>
|
|
15
15
|
<DescriptionListTermHelpText>
|
|
16
16
|
<Popover headerContent={<div>Name</div>} bodyContent={<div>Additional name info</div>}>
|
|
@@ -31,8 +31,6 @@ export interface DividerProps extends React.HTMLProps<HTMLElement> {
|
|
|
31
31
|
xl?: 'vertical' | 'horizontal';
|
|
32
32
|
'2xl'?: 'vertical' | 'horizontal';
|
|
33
33
|
};
|
|
34
|
-
/** The ARIA role of the divider when the component property has a value other than "hr". */
|
|
35
|
-
role?: 'separator' | 'presentation';
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
export const Divider: React.FunctionComponent<DividerProps> = ({
|
|
@@ -40,7 +38,6 @@ export const Divider: React.FunctionComponent<DividerProps> = ({
|
|
|
40
38
|
component = DividerVariant.hr,
|
|
41
39
|
inset,
|
|
42
40
|
orientation,
|
|
43
|
-
role = 'separator',
|
|
44
41
|
...props
|
|
45
42
|
}: DividerProps) => {
|
|
46
43
|
const Component: any = component;
|
|
@@ -53,7 +50,7 @@ export const Divider: React.FunctionComponent<DividerProps> = ({
|
|
|
53
50
|
formatBreakpointMods(orientation, styles),
|
|
54
51
|
className
|
|
55
52
|
)}
|
|
56
|
-
{...(component !== 'hr' && { role })}
|
|
53
|
+
{...(component !== 'hr' && { role: 'separator' })}
|
|
57
54
|
{...props}
|
|
58
55
|
/>
|
|
59
56
|
);
|
|
@@ -91,16 +91,6 @@ test(`Test all insets`, () => {
|
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
test('Does not render with value passed to role by default', () => {
|
|
95
|
-
render(<Divider role="presentation" />);
|
|
96
|
-
expect(screen.queryByRole('presentation')).not.toBeInTheDocument();
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
test('Renders with value passed to role when component is not "hr"', () => {
|
|
100
|
-
render(<Divider component="li" role="presentation" />);
|
|
101
|
-
expect(screen.getByRole('presentation')).toBeInTheDocument();
|
|
102
|
-
});
|
|
103
|
-
|
|
104
94
|
test('Matches the snapshot', () => {
|
|
105
95
|
const { asFragment } = render(<Divider />);
|
|
106
96
|
expect(asFragment()).toMatchSnapshot();
|
|
@@ -102,7 +102,6 @@ export const DualListSelectorSearch: React.FunctionComponent = () => {
|
|
|
102
102
|
value={isAvailable ? availableFilter : chosenFilter}
|
|
103
103
|
onChange={(_event, value) => onFilterChange(value, isAvailable)}
|
|
104
104
|
onClear={() => onFilterChange('', isAvailable)}
|
|
105
|
-
aria-label={isAvailable ? 'Search available options' : 'Search chosen options'}
|
|
106
105
|
/>
|
|
107
106
|
);
|
|
108
107
|
|
|
@@ -115,7 +115,6 @@ export const DualListSelectorComplexOptionsActionsNext: React.FunctionComponent
|
|
|
115
115
|
onChange={(_event, value) => onFilterChange(value, isAvailable)}
|
|
116
116
|
onClear={() => onFilterChange('', isAvailable)}
|
|
117
117
|
isDisabled={isDisabled}
|
|
118
|
-
aria-label={isAvailable ? 'Search available options' : 'Search chosen options'}
|
|
119
118
|
/>
|
|
120
119
|
);
|
|
121
120
|
|
|
@@ -182,7 +182,6 @@ export const DualListSelectorComposableTree: React.FunctionComponent<ExampleProp
|
|
|
182
182
|
value={isChosen ? chosenFilter : availableFilter}
|
|
183
183
|
onChange={(_event, value) => onChange(value)}
|
|
184
184
|
onClear={() => onChange('')}
|
|
185
|
-
aria-label={isChosen ? 'Search chosen items' : 'Search available items'}
|
|
186
185
|
/>
|
|
187
186
|
);
|
|
188
187
|
};
|
|
@@ -15,7 +15,7 @@ export enum ExpandableSectionVariant {
|
|
|
15
15
|
|
|
16
16
|
/** The main expandable section component. */
|
|
17
17
|
|
|
18
|
-
export interface ExpandableSectionProps extends
|
|
18
|
+
export interface ExpandableSectionProps extends React.HTMLProps<HTMLDivElement> {
|
|
19
19
|
/** Content rendered inside the expandable section. */
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
/** Additional classes added to the expandable section. */
|
|
@@ -7,7 +7,7 @@ import { Button } from '../Button';
|
|
|
7
7
|
* property passed in. Allows for more custom control over the expandable section's toggle.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
export interface ExpandableSectionToggleProps extends
|
|
10
|
+
export interface ExpandableSectionToggleProps extends React.HTMLProps<HTMLDivElement> {
|
|
11
11
|
/** Content rendered inside the expandable toggle. */
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
/** Additional classes added to the expandable toggle. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InternalFormFieldGroup } from './InternalFormFieldGroup';
|
|
2
2
|
|
|
3
|
-
export interface FormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'
|
|
3
|
+
export interface FormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'> {
|
|
4
4
|
/** Anything that can be rendered as form field group content. */
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
/** Additional classes added to the form field group. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { InternalFormFieldGroup } from './InternalFormFieldGroup';
|
|
3
3
|
|
|
4
|
-
export interface FormFieldGroupExpandableProps extends
|
|
4
|
+
export interface FormFieldGroupExpandableProps extends React.HTMLProps<HTMLDivElement> {
|
|
5
5
|
/** Anything that can be rendered as form field group content. */
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
/** Additional classes added to the form field group. */
|
|
@@ -3,7 +3,7 @@ import { css } from '@patternfly/react-styles';
|
|
|
3
3
|
import { FormFieldGroupToggle } from './FormFieldGroupToggle';
|
|
4
4
|
import { GenerateId } from '../../helpers';
|
|
5
5
|
|
|
6
|
-
export interface InternalFormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'
|
|
6
|
+
export interface InternalFormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'> {
|
|
7
7
|
/** Anything that can be rendered as form field group content. */
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
/** Additional classes added to the form field group. */
|
|
@@ -49,14 +49,12 @@ export const List: React.FunctionComponent<ListProps> = ({
|
|
|
49
49
|
type = OrderType.number,
|
|
50
50
|
ref = null,
|
|
51
51
|
component = ListComponent.ul,
|
|
52
|
-
'aria-label': ariaLabel,
|
|
53
52
|
...props
|
|
54
53
|
}: ListProps) =>
|
|
55
54
|
component === ListComponent.ol ? (
|
|
56
55
|
<ol
|
|
57
56
|
ref={ref as React.Ref<HTMLOListElement>}
|
|
58
57
|
type={type}
|
|
59
|
-
aria-label={ariaLabel}
|
|
60
58
|
{...(isPlain && { role: 'list' })}
|
|
61
59
|
{...props}
|
|
62
60
|
className={css(
|
|
@@ -73,7 +71,6 @@ export const List: React.FunctionComponent<ListProps> = ({
|
|
|
73
71
|
) : (
|
|
74
72
|
<ul
|
|
75
73
|
ref={ref as React.Ref<HTMLUListElement>}
|
|
76
|
-
aria-label={ariaLabel}
|
|
77
74
|
{...(isPlain && { role: 'list' })}
|
|
78
75
|
{...props}
|
|
79
76
|
className={css(
|
|
@@ -2,21 +2,18 @@ import styles from '@patternfly/react-styles/css/components/List/list';
|
|
|
2
2
|
import { css } from '@patternfly/react-styles';
|
|
3
3
|
|
|
4
4
|
export interface ListItemProps extends React.HTMLProps<HTMLLIElement> {
|
|
5
|
-
/** Additional classes added to the list item */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Anything that can be rendered inside of list item */
|
|
8
|
-
children: React.ReactNode;
|
|
9
5
|
/** Icon for the list item */
|
|
10
6
|
icon?: React.ReactNode | null;
|
|
7
|
+
/** Anything that can be rendered inside of list item */
|
|
8
|
+
children: React.ReactNode;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
export const ListItem: React.FunctionComponent<ListItemProps> = ({
|
|
14
|
-
className,
|
|
15
|
-
children = null,
|
|
16
12
|
icon = null,
|
|
13
|
+
children = null,
|
|
17
14
|
...props
|
|
18
15
|
}: ListItemProps) => (
|
|
19
|
-
<li className={css(icon && styles.listItem
|
|
16
|
+
<li className={css(icon && styles.listItem)} {...props}>
|
|
20
17
|
{icon && <span className={css(styles.listItemIcon)}>{icon}</span>}
|
|
21
18
|
<span className={icon && css(`${styles.list}__item-text`)}>{children}</span>
|
|
22
19
|
</li>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This test was generated
|
|
3
|
+
*/
|
|
4
|
+
import { render } from '@testing-library/react';
|
|
5
|
+
import { ListItem } from '../../ListItem';
|
|
6
|
+
// any missing imports can usually be resolved by adding them here
|
|
7
|
+
import {} from '../..';
|
|
8
|
+
|
|
9
|
+
it('ListItem should match snapshot (auto-generated)', () => {
|
|
10
|
+
const { asFragment } = render(<ListItem children={<>ReactNode</>} />);
|
|
11
|
+
expect(asFragment()).toMatchSnapshot();
|
|
12
|
+
});
|