@patternfly/react-core 6.4.1-prerelease.9 → 6.4.1
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 +2 -48
- 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/AnimationsProvider/AnimationsProvider/package.json +1 -1
- package/dist/dynamic/helpers/AnimationsProvider/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/Checkbox/Checkbox.d.ts +0 -3
- package/dist/esm/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js +4 -14
- package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.js +4 -2
- package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts +0 -4
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.js +3 -5
- package/dist/esm/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts +0 -4
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.js +2 -2
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
- package/dist/esm/components/Modal/Modal.d.ts +0 -2
- package/dist/esm/components/Modal/Modal.d.ts.map +1 -1
- package/dist/esm/components/Modal/Modal.js.map +1 -1
- package/dist/esm/components/Modal/ModalContent.d.ts +0 -2
- package/dist/esm/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalContent.js +2 -2
- package/dist/esm/components/Modal/ModalContent.js.map +1 -1
- package/dist/esm/components/Progress/ProgressContainer.js +2 -2
- package/dist/esm/components/Progress/ProgressContainer.js.map +1 -1
- package/dist/esm/components/Radio/Radio.d.ts +0 -3
- package/dist/esm/components/Radio/Radio.d.ts.map +1 -1
- package/dist/esm/components/Radio/Radio.js +5 -15
- package/dist/esm/components/Radio/Radio.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavInternal.js +3 -3
- package/dist/esm/components/Wizard/WizardNavInternal.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.d.ts +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.js +1 -2
- package/dist/esm/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/esm/components/Wizard/WizardStep.d.ts +1 -1
- package/dist/esm/components/Wizard/WizardStep.d.ts.map +1 -1
- package/dist/esm/components/Wizard/types.d.ts +2 -3
- package/dist/esm/components/Wizard/types.d.ts.map +1 -1
- package/dist/esm/components/Wizard/types.js +0 -1
- package/dist/esm/components/Wizard/types.js.map +1 -1
- package/dist/esm/helpers/FocusTrap/FocusTrap.d.ts +0 -2
- package/dist/esm/helpers/FocusTrap/FocusTrap.d.ts.map +1 -1
- package/dist/esm/helpers/FocusTrap/FocusTrap.js.map +1 -1
- package/dist/esm/helpers/resizeObserver.js +2 -2
- package/dist/esm/helpers/resizeObserver.js.map +1 -1
- package/dist/js/components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/js/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/js/components/Checkbox/Checkbox.js +4 -14
- package/dist/js/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.js +4 -2
- package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +0 -4
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.js +3 -5
- package/dist/js/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +0 -4
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.js +2 -2
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
- package/dist/js/components/Modal/Modal.d.ts +0 -2
- package/dist/js/components/Modal/Modal.d.ts.map +1 -1
- package/dist/js/components/Modal/Modal.js.map +1 -1
- package/dist/js/components/Modal/ModalContent.d.ts +0 -2
- package/dist/js/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalContent.js +2 -2
- package/dist/js/components/Modal/ModalContent.js.map +1 -1
- package/dist/js/components/Progress/ProgressContainer.js +2 -2
- package/dist/js/components/Progress/ProgressContainer.js.map +1 -1
- package/dist/js/components/Radio/Radio.d.ts +0 -3
- package/dist/js/components/Radio/Radio.d.ts.map +1 -1
- package/dist/js/components/Radio/Radio.js +5 -15
- package/dist/js/components/Radio/Radio.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavInternal.js +3 -3
- package/dist/js/components/Wizard/WizardNavInternal.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.d.ts +1 -1
- package/dist/js/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.js +1 -2
- package/dist/js/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/js/components/Wizard/WizardStep.d.ts +1 -1
- package/dist/js/components/Wizard/WizardStep.d.ts.map +1 -1
- package/dist/js/components/Wizard/types.d.ts +2 -3
- package/dist/js/components/Wizard/types.d.ts.map +1 -1
- package/dist/js/components/Wizard/types.js +0 -1
- package/dist/js/components/Wizard/types.js.map +1 -1
- package/dist/js/helpers/FocusTrap/FocusTrap.d.ts +0 -2
- package/dist/js/helpers/FocusTrap/FocusTrap.d.ts.map +1 -1
- package/dist/js/helpers/FocusTrap/FocusTrap.js.map +1 -1
- package/dist/js/helpers/resizeObserver.js +1 -1
- package/dist/js/helpers/resizeObserver.js.map +1 -1
- package/dist/umd/assets/{output-CJfbZNQh.css → output-Bj1Aarly.css} +14883 -14883
- 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 +2 -2
- package/src/components/Alert/examples/Alert.md +275 -26
- package/src/components/Checkbox/Checkbox.tsx +2 -21
- package/src/components/Checkbox/__tests__/Checkbox.test.tsx +0 -34
- package/src/components/Drawer/DrawerPanelContent.tsx +3 -5
- package/src/components/Drawer/__tests__/DrawerPanelContent.test.tsx +0 -37
- package/src/components/ExpandableSection/ExpandableSection.tsx +0 -10
- package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +0 -8
- package/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx +0 -17
- package/src/components/ExpandableSection/__tests__/ExpandableSectionToggle.test.tsx +0 -17
- package/src/components/MenuToggle/examples/MenuToggle.md +96 -13
- package/src/components/Modal/Modal.tsx +0 -2
- package/src/components/Modal/ModalContent.tsx +0 -4
- package/src/components/Modal/__tests__/Modal.test.tsx +0 -9
- package/src/components/Modal/__tests__/ModalContent.test.tsx +1 -17
- package/src/components/Modal/examples/Modal.md +5 -14
- package/src/components/Modal/examples/ModalWithDropdown.tsx +7 -34
- package/src/components/Panel/examples/Panel.md +159 -10
- package/src/components/Progress/ProgressContainer.tsx +2 -2
- package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressContainer.test.tsx.snap +1 -1
- package/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap +1 -1
- package/src/components/Radio/Radio.tsx +3 -21
- package/src/components/Radio/__tests__/Radio.test.tsx +0 -44
- package/src/components/Tabs/__tests__/Tabs.test.tsx +1 -109
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +2 -2
- package/src/components/Tabs/examples/Tabs.md +4 -38
- package/src/components/Tabs/examples/TabsSeparateContent.tsx +2 -3
- package/src/components/Wizard/WizardNavInternal.tsx +3 -3
- package/src/components/Wizard/WizardNavItem.tsx +2 -5
- package/src/components/Wizard/WizardStep.tsx +1 -1
- package/src/components/Wizard/__tests__/Wizard.test.tsx +39 -0
- package/src/components/Wizard/__tests__/WizardNavItem.test.tsx +0 -6
- package/src/components/Wizard/__tests__/WizardStep.test.tsx +0 -2
- package/src/components/Wizard/examples/WizardStepStatus.tsx +7 -28
- package/src/components/Wizard/types.tsx +2 -3
- package/src/demos/AlertGroup.md +1 -1
- package/src/demos/BackToTop.md +1 -1
- package/src/demos/{Button/examples/ButtonProgress.tsx → Button.md} +19 -1
- package/src/demos/CardView/CardView.md +1 -1
- package/src/demos/DataListDemo.md +4 -4
- package/src/demos/DescriptionList/DescriptionList.md +2 -2
- package/src/demos/Nav.md +9 -9
- package/src/demos/{PasswordGenerator/examples/PasswordGenerator.tsx → PasswordGenerator.md} +19 -3
- package/src/demos/PrimaryDetail.md +6 -6
- package/src/demos/RTL/RTL.md +1 -1
- package/src/demos/SearchInput/SearchInput.md +487 -2
- package/src/demos/Toolbar.md +1 -1
- package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +1 -1
- package/src/helpers/FocusTrap/FocusTrap.tsx +0 -2
- package/src/helpers/FocusTrap/__tests__/Generated/FocusTrap.test.tsx +3 -3
- package/src/helpers/OUIA/OUIA.md +10 -2
- package/src/helpers/resizeObserver.tsx +2 -2
- package/src/layouts/Bullseye/examples/Bullseye.md +5 -1
- package/src/layouts/Flex/examples/Flex.md +442 -42
- package/src/layouts/Level/examples/Level.md +15 -3
- package/src/layouts/Split/examples/Split.md +34 -4
- package/src/components/Alert/examples/AlertCustomIcons.tsx +0 -17
- package/src/components/Alert/examples/AlertExpandable.tsx +0 -36
- package/src/components/Alert/examples/AlertInlineVariants.tsx +0 -12
- package/src/components/Alert/examples/AlertInlineVariations.tsx +0 -45
- package/src/components/Alert/examples/AlertPlainInlineVariants.tsx +0 -12
- package/src/components/Alert/examples/AlertPlainInlineVariations.tsx +0 -7
- package/src/components/Alert/examples/AlertStaticLiveRegion.tsx +0 -29
- package/src/components/Alert/examples/AlertTimeout.tsx +0 -45
- package/src/components/Alert/examples/AlertTruncated.tsx +0 -28
- package/src/components/Alert/examples/AlertVariants.tsx +0 -12
- package/src/components/Alert/examples/AlertVariations.tsx +0 -43
- package/src/components/MenuToggle/examples/MenuToggleAvatarText.tsx +0 -15
- package/src/components/MenuToggle/examples/MenuToggleBadge.tsx +0 -9
- package/src/components/MenuToggle/examples/MenuToggleCollapsed.tsx +0 -3
- package/src/components/MenuToggle/examples/MenuToggleDisabled.tsx +0 -3
- package/src/components/MenuToggle/examples/MenuToggleExpanded.tsx +0 -3
- package/src/components/MenuToggle/examples/MenuToggleFullHeight.tsx +0 -9
- package/src/components/MenuToggle/examples/MenuToggleFullWidth.tsx +0 -7
- package/src/components/MenuToggle/examples/MenuTogglePlainIcon.tsx +0 -11
- package/src/components/MenuToggle/examples/MenuTogglePlainTextLabel.tsx +0 -16
- package/src/components/MenuToggle/examples/MenuToggleVariantStyles.tsx +0 -14
- package/src/components/Panel/examples/PanelBasic.tsx +0 -9
- package/src/components/Panel/examples/PanelBordered.tsx +0 -9
- package/src/components/Panel/examples/PanelFooterExample.tsx +0 -10
- package/src/components/Panel/examples/PanelHeaderExample.tsx +0 -11
- package/src/components/Panel/examples/PanelHeaderFooter.tsx +0 -12
- package/src/components/Panel/examples/PanelNoBody.tsx +0 -7
- package/src/components/Panel/examples/PanelRaised.tsx +0 -9
- package/src/components/Panel/examples/PanelScrollable.tsx +0 -35
- package/src/components/Panel/examples/PanelScrollableHeaderFooter.tsx +0 -38
- package/src/components/Panel/examples/PanelSecondaryVariant.tsx +0 -9
- package/src/demos/Button/Button.md +0 -19
- package/src/demos/PasswordGenerator/PasswordGenerator.md +0 -16
- package/src/demos/SearchInput/examples/SearchInputAdvancedComposable.tsx +0 -322
- package/src/demos/SearchInput/examples/SearchInputAutocomplete.tsx +0 -165
- package/src/helpers/FocusTrap/__tests__/FocusTrap.test.tsx +0 -17
- package/src/helpers/OUIA/examples/OuiaExample.tsx +0 -11
- package/src/layouts/Bullseye/examples/BullseyeBasic.tsx +0 -7
- package/src/layouts/Flex/examples/FlexAdjustingWidth.tsx +0 -18
- package/src/layouts/Flex/examples/FlexAlignAdjacentContent.tsx +0 -16
- package/src/layouts/Flex/examples/FlexAlignRightMultipleGroups.tsx +0 -18
- package/src/layouts/Flex/examples/FlexAlignRightSingleItem.tsx +0 -8
- package/src/layouts/Flex/examples/FlexAlignSelfBaseline.tsx +0 -15
- package/src/layouts/Flex/examples/FlexAlignSelfCenter.tsx +0 -15
- package/src/layouts/Flex/examples/FlexAlignSelfFlexEnd.tsx +0 -15
- package/src/layouts/Flex/examples/FlexAlignSelfStretch.tsx +0 -15
- package/src/layouts/Flex/examples/FlexAligningRight.tsx +0 -11
- package/src/layouts/Flex/examples/FlexAlternative.tsx +0 -11
- package/src/layouts/Flex/examples/FlexBasic.tsx +0 -11
- package/src/layouts/Flex/examples/FlexCanGrow.tsx +0 -18
- package/src/layouts/Flex/examples/FlexColumnGap.tsx +0 -16
- package/src/layouts/Flex/examples/FlexColumnLayout.tsx +0 -9
- package/src/layouts/Flex/examples/FlexColumnWidths.tsx +0 -18
- package/src/layouts/Flex/examples/FlexControlTextWidth.tsx +0 -17
- package/src/layouts/Flex/examples/FlexDefaultLayout.tsx +0 -11
- package/src/layouts/Flex/examples/FlexFirstLastOrder.tsx +0 -13
- package/src/layouts/Flex/examples/FlexGap.tsx +0 -16
- package/src/layouts/Flex/examples/FlexIndividuallySpaced.tsx +0 -14
- package/src/layouts/Flex/examples/FlexInline.tsx +0 -11
- package/src/layouts/Flex/examples/FlexJustifyContentEnd.tsx +0 -10
- package/src/layouts/Flex/examples/FlexJustifyContentFlexStart.tsx +0 -9
- package/src/layouts/Flex/examples/FlexJustifyContentSpaceBetween.tsx +0 -9
- package/src/layouts/Flex/examples/FlexNestedItems.tsx +0 -15
- package/src/layouts/Flex/examples/FlexNesting.tsx +0 -15
- package/src/layouts/Flex/examples/FlexNestingInColumns.tsx +0 -15
- package/src/layouts/Flex/examples/FlexOrdering.tsx +0 -24
- package/src/layouts/Flex/examples/FlexResponsiveFirstLastOrder.tsx +0 -15
- package/src/layouts/Flex/examples/FlexResponsiveOrdering.tsx +0 -25
- package/src/layouts/Flex/examples/FlexRowGap.tsx +0 -16
- package/src/layouts/Flex/examples/FlexSpacingNone.tsx +0 -11
- package/src/layouts/Flex/examples/FlexSpacingXl.tsx +0 -11
- package/src/layouts/Flex/examples/FlexStackingElements.tsx +0 -18
- package/src/layouts/Flex/examples/FlexSwitchingColumnRow.tsx +0 -16
- package/src/layouts/Level/examples/LevelBasic.tsx +0 -9
- package/src/layouts/Level/examples/LevelWithGutters.tsx +0 -9
- package/src/layouts/Split/examples/SplitBasic.tsx +0 -9
- package/src/layouts/Split/examples/SplitWithGutter.tsx +0 -9
- package/src/layouts/Split/examples/SplitWrappable.tsx +0 -20
|
@@ -11,17 +11,47 @@ import './split.css';
|
|
|
11
11
|
|
|
12
12
|
### Basic
|
|
13
13
|
|
|
14
|
-
```
|
|
14
|
+
```js
|
|
15
|
+
import { Split, SplitItem } from '@patternfly/react-core';
|
|
16
|
+
|
|
17
|
+
<Split>
|
|
18
|
+
<SplitItem>content</SplitItem>
|
|
19
|
+
<SplitItem isFilled>pf-m-fill</SplitItem>
|
|
20
|
+
<SplitItem>content</SplitItem>
|
|
21
|
+
</Split>;
|
|
15
22
|
```
|
|
16
23
|
|
|
17
24
|
### With gutter
|
|
18
25
|
|
|
19
|
-
```
|
|
26
|
+
```js
|
|
27
|
+
import { Split, SplitItem } from '@patternfly/react-core';
|
|
20
28
|
|
|
29
|
+
<Split hasGutter>
|
|
30
|
+
<SplitItem>content</SplitItem>
|
|
31
|
+
<SplitItem isFilled>pf-m-fill</SplitItem>
|
|
32
|
+
<SplitItem>content</SplitItem>
|
|
33
|
+
</Split>;
|
|
21
34
|
```
|
|
22
35
|
|
|
23
36
|
### Wrappable
|
|
24
37
|
|
|
25
|
-
```
|
|
26
|
-
|
|
38
|
+
```js
|
|
39
|
+
import { Split, SplitItem } from '@patternfly/react-core';
|
|
40
|
+
|
|
41
|
+
<Split hasGutter isWrappable>
|
|
42
|
+
<SplitItem>content</SplitItem>
|
|
43
|
+
<SplitItem>content</SplitItem>
|
|
44
|
+
<SplitItem>content</SplitItem>
|
|
45
|
+
<SplitItem>content</SplitItem>
|
|
46
|
+
<SplitItem>content</SplitItem>
|
|
47
|
+
<SplitItem>content</SplitItem>
|
|
48
|
+
<SplitItem>content</SplitItem>
|
|
49
|
+
<SplitItem>content</SplitItem>
|
|
50
|
+
<SplitItem>content</SplitItem>
|
|
51
|
+
<SplitItem>content</SplitItem>
|
|
52
|
+
<SplitItem>content</SplitItem>
|
|
53
|
+
<SplitItem>content</SplitItem>
|
|
54
|
+
<SplitItem>content</SplitItem>
|
|
55
|
+
<SplitItem>content</SplitItem>
|
|
56
|
+
</Split>;
|
|
27
57
|
```
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { Alert } from '@patternfly/react-core';
|
|
3
|
-
import UsersIcon from '@patternfly/react-icons/dist/esm/icons/users-icon';
|
|
4
|
-
import BoxIcon from '@patternfly/react-icons/dist/esm/icons/box-icon';
|
|
5
|
-
import DatabaseIcon from '@patternfly/react-icons/dist/esm/icons/database-icon';
|
|
6
|
-
import ServerIcon from '@patternfly/react-icons/dist/esm/icons/server-icon';
|
|
7
|
-
import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon';
|
|
8
|
-
|
|
9
|
-
export const AlertCustomIcons: React.FunctionComponent = () => (
|
|
10
|
-
<Fragment>
|
|
11
|
-
<Alert customIcon={<UsersIcon />} title="Default alert title" />
|
|
12
|
-
<Alert customIcon={<BoxIcon />} variant="info" title="Info alert title" />
|
|
13
|
-
<Alert customIcon={<DatabaseIcon />} variant="success" title="Success alert title" />
|
|
14
|
-
<Alert customIcon={<ServerIcon />} variant="warning" title="Warning alert title" />
|
|
15
|
-
<Alert customIcon={<LaptopIcon />} variant="danger" title="Danger alert title" />
|
|
16
|
-
</Fragment>
|
|
17
|
-
);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const AlertExpandable: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<Alert
|
|
7
|
-
isExpandable
|
|
8
|
-
variant="success"
|
|
9
|
-
title="Success alert title"
|
|
10
|
-
// eslint-disable-next-line no-console
|
|
11
|
-
actionClose={<AlertActionCloseButton onClose={() => console.log('Clicked the close button')} />}
|
|
12
|
-
>
|
|
13
|
-
<p>Success alert description. This should tell the user more information about the alert.</p>
|
|
14
|
-
</Alert>
|
|
15
|
-
<Alert
|
|
16
|
-
isExpandable
|
|
17
|
-
isInline
|
|
18
|
-
variant="success"
|
|
19
|
-
title="Success alert title"
|
|
20
|
-
actionLinks={
|
|
21
|
-
<Fragment>
|
|
22
|
-
<AlertActionLink component="a" href="#">
|
|
23
|
-
View details
|
|
24
|
-
</AlertActionLink>
|
|
25
|
-
<AlertActionLink // eslint-disable-next-line no-console
|
|
26
|
-
onClick={() => console.log('Clicked on Ignore')}
|
|
27
|
-
>
|
|
28
|
-
Ignore
|
|
29
|
-
</AlertActionLink>
|
|
30
|
-
</Fragment>
|
|
31
|
-
}
|
|
32
|
-
>
|
|
33
|
-
<p>Success alert description. This should tell the user more information about the alert.</p>
|
|
34
|
-
</Alert>
|
|
35
|
-
</Fragment>
|
|
36
|
-
);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { Alert } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const AlertInlineVariants: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<Alert variant="custom" isInline title="Custom inline alert title" />
|
|
7
|
-
<Alert variant="info" isInline title="Info inline alert title" />
|
|
8
|
-
<Alert variant="success" isInline title="Success inline alert title" />
|
|
9
|
-
<Alert variant="warning" isInline title="Warning inline alert title" />
|
|
10
|
-
<Alert variant="danger" isInline title="Danger inline alert title" />
|
|
11
|
-
</Fragment>
|
|
12
|
-
);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const AlertInlineVariations: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<Alert
|
|
7
|
-
isInline
|
|
8
|
-
variant="success"
|
|
9
|
-
title="Success alert title"
|
|
10
|
-
actionLinks={
|
|
11
|
-
<Fragment>
|
|
12
|
-
<AlertActionLink component="a" href="#">
|
|
13
|
-
View details
|
|
14
|
-
</AlertActionLink>
|
|
15
|
-
<AlertActionLink // eslint-disable-next-line no-console
|
|
16
|
-
onClick={() => console.log('Clicked on Ignore')}
|
|
17
|
-
>
|
|
18
|
-
Ignore
|
|
19
|
-
</AlertActionLink>
|
|
20
|
-
</Fragment>
|
|
21
|
-
}
|
|
22
|
-
>
|
|
23
|
-
<p>Success alert description. This should tell the user more information about the alert.</p>
|
|
24
|
-
</Alert>
|
|
25
|
-
<Alert isInline variant="success" title="Success alert title">
|
|
26
|
-
<p>
|
|
27
|
-
Success alert description. This should tell the user more information about the alert.{' '}
|
|
28
|
-
<a href="#">This is a link.</a>
|
|
29
|
-
</p>
|
|
30
|
-
</Alert>
|
|
31
|
-
<Alert
|
|
32
|
-
isInline
|
|
33
|
-
variant="success"
|
|
34
|
-
title="Success alert title"
|
|
35
|
-
// eslint-disable-next-line no-console
|
|
36
|
-
actionClose={<AlertActionCloseButton onClose={() => console.log('Clicked the close button')} />}
|
|
37
|
-
>
|
|
38
|
-
<p>Short alert description.</p>
|
|
39
|
-
</Alert>
|
|
40
|
-
<Alert isInline variant="success" title="div success alert title" component="div" />
|
|
41
|
-
<Alert isInline variant="success" title="h6 Success alert title" component="h6">
|
|
42
|
-
<p>Short alert description.</p>
|
|
43
|
-
</Alert>
|
|
44
|
-
</Fragment>
|
|
45
|
-
);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { Alert } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const AlertPlainInlineVariants: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<Alert variant="custom" isInline isPlain title="Custom inline alert title" />
|
|
7
|
-
<Alert variant="info" isInline isPlain title="Info inline alert title" />
|
|
8
|
-
<Alert variant="success" isInline isPlain title="Success inline alert title" />
|
|
9
|
-
<Alert variant="warning" isInline isPlain title="Warning inline alert title" />
|
|
10
|
-
<Alert variant="danger" isInline isPlain title="Danger inline alert title" />
|
|
11
|
-
</Fragment>
|
|
12
|
-
);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Alert } from '@patternfly/react-core';
|
|
2
|
-
|
|
3
|
-
export const AlertPlainInlineVariations: React.FunctionComponent = () => (
|
|
4
|
-
<Alert isInline isPlain variant="success" title="Success alert title">
|
|
5
|
-
<p>Success alert description. This should tell the user more information about the alert.</p>
|
|
6
|
-
</Alert>
|
|
7
|
-
);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const AlertStaticLiveRegion: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<Alert
|
|
7
|
-
isLiveRegion
|
|
8
|
-
variant="info"
|
|
9
|
-
title="Default live region configuration"
|
|
10
|
-
// eslint-disable-next-line no-console
|
|
11
|
-
actionClose={<AlertActionCloseButton onClose={() => console.log('Clicked the close button')} />}
|
|
12
|
-
>
|
|
13
|
-
This alert uses the recommended <code>isLiveRegion</code> prop to automatically set ARIA attributes and CSS
|
|
14
|
-
classes.
|
|
15
|
-
</Alert>
|
|
16
|
-
<Alert
|
|
17
|
-
aria-live="assertive"
|
|
18
|
-
aria-relevant="additions text"
|
|
19
|
-
aria-atomic="true"
|
|
20
|
-
variant="info"
|
|
21
|
-
title="Customized live region"
|
|
22
|
-
// eslint-disable-next-line no-console
|
|
23
|
-
actionClose={<AlertActionCloseButton onClose={() => console.log('Clicked the close button')} />}
|
|
24
|
-
>
|
|
25
|
-
You can alternatively omit the <code>isLiveRegion</code> prop to specify ARIA attributes and CSS manually on the
|
|
26
|
-
containing element.
|
|
27
|
-
</Alert>
|
|
28
|
-
</Fragment>
|
|
29
|
-
);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Fragment, useState } from 'react';
|
|
2
|
-
import { Alert, AlertActionLink, AlertGroup, Button } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const AlertTimeout: React.FunctionComponent = () => {
|
|
5
|
-
const [alerts, setAlerts] = useState<React.ReactNode[]>([]);
|
|
6
|
-
const [newAlertKey, setNewAlertKey] = useState<number>(0);
|
|
7
|
-
|
|
8
|
-
const onClick = () => {
|
|
9
|
-
const timeout = 8000;
|
|
10
|
-
setNewAlertKey((key) => key + 1);
|
|
11
|
-
setAlerts((prevAlerts) => [
|
|
12
|
-
<Alert
|
|
13
|
-
title="Default timeout Alert"
|
|
14
|
-
timeout={timeout}
|
|
15
|
-
actionLinks={
|
|
16
|
-
<Fragment>
|
|
17
|
-
<AlertActionLink component="a" href="#">
|
|
18
|
-
View details
|
|
19
|
-
</AlertActionLink>
|
|
20
|
-
<AlertActionLink // eslint-disable-next-line no-console
|
|
21
|
-
onClick={() => console.log('Clicked on Ignore')}
|
|
22
|
-
>
|
|
23
|
-
Ignore
|
|
24
|
-
</AlertActionLink>
|
|
25
|
-
</Fragment>
|
|
26
|
-
}
|
|
27
|
-
key={newAlertKey}
|
|
28
|
-
>
|
|
29
|
-
This alert will dismiss after {`${timeout / 1000} seconds`}
|
|
30
|
-
</Alert>,
|
|
31
|
-
...prevAlerts
|
|
32
|
-
]);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<Fragment>
|
|
37
|
-
<Button variant="secondary" onClick={onClick}>
|
|
38
|
-
Add alert
|
|
39
|
-
</Button>
|
|
40
|
-
<AlertGroup hasAnimations isLiveRegion>
|
|
41
|
-
{alerts}
|
|
42
|
-
</AlertGroup>
|
|
43
|
-
</Fragment>
|
|
44
|
-
);
|
|
45
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { Alert } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const AlertTruncated: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<Alert
|
|
7
|
-
variant="info"
|
|
8
|
-
truncateTitle={1}
|
|
9
|
-
title={`
|
|
10
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque neque cursus enim fringilla tincidunt. Proin lobortis aliquam dictum. Nam vel ullamcorper nulla, nec blandit dolor. Vivamus pellentesque neque justo, nec accumsan nulla rhoncus id. Suspendisse mollis, tortor quis faucibus volutpat, sem leo fringilla turpis, ac lacinia augue metus in nulla. Cras vestibulum lacinia orci. Pellentesque sodales consequat interdum. Sed porttitor tincidunt metus nec iaculis. Pellentesque non commodo justo. Morbi feugiat rhoncus neque, vitae facilisis diam aliquam nec. Sed dapibus vitae quam at tristique. Nunc vel commodo mi. Mauris et rhoncus leo.
|
|
11
|
-
`}
|
|
12
|
-
/>
|
|
13
|
-
<Alert
|
|
14
|
-
variant="warning"
|
|
15
|
-
truncateTitle={2}
|
|
16
|
-
title={`
|
|
17
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque neque cursus enim fringilla tincidunt. Proin lobortis aliquam dictum. Nam vel ullamcorper nulla, nec blandit dolor. Vivamus pellentesque neque justo, nec accumsan nulla rhoncus id. Suspendisse mollis, tortor quis faucibus volutpat, sem leo fringilla turpis, ac lacinia augue metus in nulla. Cras vestibulum lacinia orci. Pellentesque sodales consequat interdum. Sed porttitor tincidunt metus nec iaculis. Pellentesque non commodo justo. Morbi feugiat rhoncus neque, vitae facilisis diam aliquam nec. Sed dapibus vitae quam at tristique. Nunc vel commodo mi. Mauris et rhoncus leo.
|
|
18
|
-
`}
|
|
19
|
-
/>
|
|
20
|
-
<Alert
|
|
21
|
-
variant="danger"
|
|
22
|
-
truncateTitle={3}
|
|
23
|
-
title={`
|
|
24
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque neque cursus enim fringilla tincidunt. Proin lobortis aliquam dictum. Nam vel ullamcorper nulla, nec blandit dolor. Vivamus pellentesque neque justo, nec accumsan nulla rhoncus id. Suspendisse mollis, tortor quis faucibus volutpat, sem leo fringilla turpis, ac lacinia augue metus in nulla. Cras vestibulum lacinia orci. Pellentesque sodales consequat interdum. Sed porttitor tincidunt metus nec iaculis. Pellentesque non commodo justo. Morbi feugiat rhoncus neque, vitae facilisis diam aliquam nec. Sed dapibus vitae quam at tristique. Nunc vel commodo mi. Mauris et rhoncus leo.
|
|
25
|
-
`}
|
|
26
|
-
/>
|
|
27
|
-
</Fragment>
|
|
28
|
-
);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { Alert } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const AlertVariants: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<Alert title="Custom alert title" ouiaId="CustomAlert" />
|
|
7
|
-
<Alert variant="info" title="Info alert title" ouiaId="InfoAlert" />
|
|
8
|
-
<Alert variant="success" title="Success alert title" ouiaId="SuccessAlert" />
|
|
9
|
-
<Alert variant="warning" title="Warning alert title" ouiaId="WarningAlert" />
|
|
10
|
-
<Alert variant="danger" title="Danger alert title" ouiaId="DangerAlert" />
|
|
11
|
-
</Fragment>
|
|
12
|
-
);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const AlertVariations: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<Alert
|
|
7
|
-
variant="success"
|
|
8
|
-
title="Success alert title"
|
|
9
|
-
actionLinks={
|
|
10
|
-
<Fragment>
|
|
11
|
-
<AlertActionLink component="a" href="#">
|
|
12
|
-
View details
|
|
13
|
-
</AlertActionLink>
|
|
14
|
-
<AlertActionLink // eslint-disable-next-line no-console
|
|
15
|
-
onClick={() => console.log('Clicked on Ignore')}
|
|
16
|
-
>
|
|
17
|
-
Ignore
|
|
18
|
-
</AlertActionLink>
|
|
19
|
-
</Fragment>
|
|
20
|
-
}
|
|
21
|
-
>
|
|
22
|
-
<p>Success alert description. This should tell the user more information about the alert.</p>
|
|
23
|
-
</Alert>
|
|
24
|
-
<Alert variant="success" title="Success alert title">
|
|
25
|
-
<p>
|
|
26
|
-
Success alert description. This should tell the user more information about the alert.{' '}
|
|
27
|
-
<a href="#">This is a link.</a>
|
|
28
|
-
</p>
|
|
29
|
-
</Alert>
|
|
30
|
-
<Alert
|
|
31
|
-
variant="success"
|
|
32
|
-
title="Success alert title"
|
|
33
|
-
// eslint-disable-next-line no-console
|
|
34
|
-
actionClose={<AlertActionCloseButton onClose={() => console.log('Clicked the close button')} />}
|
|
35
|
-
>
|
|
36
|
-
<p>Short alert description.</p>
|
|
37
|
-
</Alert>
|
|
38
|
-
<Alert variant="success" title="div success alert title" component="div" />
|
|
39
|
-
<Alert variant="success" title="h6 Success alert title" component="h6">
|
|
40
|
-
<p>Short alert description.</p>
|
|
41
|
-
</Alert>
|
|
42
|
-
</Fragment>
|
|
43
|
-
);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { MenuToggle, Avatar } from '@patternfly/react-core';
|
|
3
|
-
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
4
|
-
|
|
5
|
-
export const MenuToggleAvatarText: React.FunctionComponent = () => (
|
|
6
|
-
<Fragment>
|
|
7
|
-
<MenuToggle icon={<Avatar src={imgAvatar} alt="avatar" />}>Ned Username</MenuToggle>{' '}
|
|
8
|
-
<MenuToggle icon={<Avatar src={imgAvatar} alt="avatar" />} isExpanded>
|
|
9
|
-
Ned Username
|
|
10
|
-
</MenuToggle>{' '}
|
|
11
|
-
<MenuToggle icon={<Avatar src={imgAvatar} alt="avatar" />} isDisabled>
|
|
12
|
-
Ned Username
|
|
13
|
-
</MenuToggle>
|
|
14
|
-
</Fragment>
|
|
15
|
-
);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { MenuToggle, Badge } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const MenuToggleBadge: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<MenuToggle badge={<Badge>4 selected</Badge>}>Count</MenuToggle>
|
|
7
|
-
<MenuToggle variant="plainText" badge={<Badge screenReaderText="additional items">4</Badge>} />
|
|
8
|
-
</Fragment>
|
|
9
|
-
);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MenuToggle } from '@patternfly/react-core';
|
|
2
|
-
|
|
3
|
-
export const MenuToggleFullHeight: React.FunctionComponent = () => (
|
|
4
|
-
<div style={{ height: '80px' }}>
|
|
5
|
-
<MenuToggle isFullHeight aria-label="Full height menu toggle">
|
|
6
|
-
Full height
|
|
7
|
-
</MenuToggle>
|
|
8
|
-
</div>
|
|
9
|
-
);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { MenuToggle } from '@patternfly/react-core';
|
|
3
|
-
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
4
|
-
|
|
5
|
-
export const MenuTogglePlainIcon: React.FunctionComponent = () => (
|
|
6
|
-
<Fragment>
|
|
7
|
-
<MenuToggle icon={<EllipsisVIcon />} variant="plain" aria-label="plain kebab" />{' '}
|
|
8
|
-
<MenuToggle icon={<EllipsisVIcon />} variant="plain" isExpanded aria-label="plain expanded kebab" />{' '}
|
|
9
|
-
<MenuToggle icon={<EllipsisVIcon />} variant="plain" isDisabled aria-label="disabled plain kebab" />
|
|
10
|
-
</Fragment>
|
|
11
|
-
);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { MenuToggle } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const MenuTogglePlainTextLabel: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<MenuToggle variant="plainText" isDisabled aria-label="Disabled plain menu toggle">
|
|
7
|
-
Disabled
|
|
8
|
-
</MenuToggle>{' '}
|
|
9
|
-
<MenuToggle variant="plainText" aria-label="Plain menu toggle">
|
|
10
|
-
Custom text
|
|
11
|
-
</MenuToggle>{' '}
|
|
12
|
-
<MenuToggle variant="plainText" isExpanded aria-label="Expanded plain menu toggle">
|
|
13
|
-
Custom text (expanded)
|
|
14
|
-
</MenuToggle>
|
|
15
|
-
</Fragment>
|
|
16
|
-
);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
|
-
import { MenuToggle } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export const MenuToggleVariantStyles: React.FunctionComponent = () => (
|
|
5
|
-
<Fragment>
|
|
6
|
-
<MenuToggle variant="primary">Collapsed</MenuToggle>{' '}
|
|
7
|
-
<MenuToggle variant="primary" isExpanded>
|
|
8
|
-
Expanded
|
|
9
|
-
</MenuToggle>{' '}
|
|
10
|
-
<MenuToggle variant="primary" isDisabled>
|
|
11
|
-
Disabled
|
|
12
|
-
</MenuToggle>
|
|
13
|
-
</Fragment>
|
|
14
|
-
);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Panel, PanelMain, PanelMainBody, PanelFooter } from '@patternfly/react-core';
|
|
2
|
-
|
|
3
|
-
export const PanelFooterExample: React.FunctionComponent = () => (
|
|
4
|
-
<Panel>
|
|
5
|
-
<PanelMain>
|
|
6
|
-
<PanelMainBody>Main content</PanelMainBody>
|
|
7
|
-
</PanelMain>
|
|
8
|
-
<PanelFooter>Footer content</PanelFooter>
|
|
9
|
-
</Panel>
|
|
10
|
-
);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Panel, PanelMain, PanelMainBody, PanelHeader, Divider } from '@patternfly/react-core';
|
|
2
|
-
|
|
3
|
-
export const PanelHeaderExample: React.FunctionComponent = () => (
|
|
4
|
-
<Panel>
|
|
5
|
-
<PanelHeader>Header content</PanelHeader>
|
|
6
|
-
<Divider />
|
|
7
|
-
<PanelMain>
|
|
8
|
-
<PanelMainBody>Main content</PanelMainBody>
|
|
9
|
-
</PanelMain>
|
|
10
|
-
</Panel>
|
|
11
|
-
);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Panel, PanelMain, PanelMainBody, PanelHeader, Divider, PanelFooter } from '@patternfly/react-core';
|
|
2
|
-
|
|
3
|
-
export const PanelHeaderFooter: React.FunctionComponent = () => (
|
|
4
|
-
<Panel>
|
|
5
|
-
<PanelHeader>Header content</PanelHeader>
|
|
6
|
-
<Divider />
|
|
7
|
-
<PanelMain>
|
|
8
|
-
<PanelMainBody>Main content</PanelMainBody>
|
|
9
|
-
</PanelMain>
|
|
10
|
-
<PanelFooter>Footer content</PanelFooter>
|
|
11
|
-
</Panel>
|
|
12
|
-
);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Panel, PanelMain, PanelMainBody } from '@patternfly/react-core';
|
|
2
|
-
|
|
3
|
-
export const PanelScrollable: React.FunctionComponent = () => (
|
|
4
|
-
<Panel isScrollable>
|
|
5
|
-
<PanelMain tabIndex={0}>
|
|
6
|
-
<PanelMainBody>
|
|
7
|
-
Main content
|
|
8
|
-
<br />
|
|
9
|
-
<br />
|
|
10
|
-
Main content
|
|
11
|
-
<br />
|
|
12
|
-
<br />
|
|
13
|
-
Main content
|
|
14
|
-
<br />
|
|
15
|
-
<br />
|
|
16
|
-
Main content
|
|
17
|
-
<br />
|
|
18
|
-
<br />
|
|
19
|
-
Main content
|
|
20
|
-
<br />
|
|
21
|
-
<br />
|
|
22
|
-
Main content
|
|
23
|
-
<br />
|
|
24
|
-
<br />
|
|
25
|
-
Main content
|
|
26
|
-
<br />
|
|
27
|
-
<br />
|
|
28
|
-
Main content
|
|
29
|
-
<br />
|
|
30
|
-
<br />
|
|
31
|
-
Main content
|
|
32
|
-
</PanelMainBody>
|
|
33
|
-
</PanelMain>
|
|
34
|
-
</Panel>
|
|
35
|
-
);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Panel, PanelMain, PanelMainBody, PanelHeader, Divider, PanelFooter } from '@patternfly/react-core';
|
|
2
|
-
|
|
3
|
-
export const PanelScrollableHeaderFooter: React.FunctionComponent = () => (
|
|
4
|
-
<Panel isScrollable>
|
|
5
|
-
<PanelHeader>Header content</PanelHeader>
|
|
6
|
-
<Divider />
|
|
7
|
-
<PanelMain tabIndex={0}>
|
|
8
|
-
<PanelMainBody>
|
|
9
|
-
Main content
|
|
10
|
-
<br />
|
|
11
|
-
<br />
|
|
12
|
-
Main content
|
|
13
|
-
<br />
|
|
14
|
-
<br />
|
|
15
|
-
Main content
|
|
16
|
-
<br />
|
|
17
|
-
<br />
|
|
18
|
-
Main content
|
|
19
|
-
<br />
|
|
20
|
-
<br />
|
|
21
|
-
Main content
|
|
22
|
-
<br />
|
|
23
|
-
<br />
|
|
24
|
-
Main content
|
|
25
|
-
<br />
|
|
26
|
-
<br />
|
|
27
|
-
Main content
|
|
28
|
-
<br />
|
|
29
|
-
<br />
|
|
30
|
-
Main content
|
|
31
|
-
<br />
|
|
32
|
-
<br />
|
|
33
|
-
Main content
|
|
34
|
-
</PanelMainBody>
|
|
35
|
-
</PanelMain>
|
|
36
|
-
<PanelFooter>Footer content</PanelFooter>
|
|
37
|
-
</Panel>
|
|
38
|
-
);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Panel, PanelMain, PanelMainBody } from '@patternfly/react-core';
|
|
2
|
-
|
|
3
|
-
export const PanelSecondaryVariant: React.FunctionComponent = () => (
|
|
4
|
-
<Panel variant="secondary">
|
|
5
|
-
<PanelMain>
|
|
6
|
-
<PanelMainBody>Main content</PanelMainBody>
|
|
7
|
-
</PanelMain>
|
|
8
|
-
</Panel>
|
|
9
|
-
);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Button
|
|
3
|
-
section: components
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
import { useState } from 'react';
|
|
7
|
-
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
8
|
-
|
|
9
|
-
## Demos
|
|
10
|
-
|
|
11
|
-
### Progress button
|
|
12
|
-
|
|
13
|
-
The following demo shows the intended flow for a button that visually indicates progress. This example demonstrates a login process, which updates the button label based on the `loginState`.
|
|
14
|
-
|
|
15
|
-
Please note that only the button can be interacted with in this example. The username and password input fields cannot be edited as the focus is on the button behavior.
|
|
16
|
-
|
|
17
|
-
```ts file="./examples/ButtonProgress.tsx"
|
|
18
|
-
|
|
19
|
-
```
|