@patternfly/react-core 5.0.0-alpha.70 → 5.0.0-alpha.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/components/index.d.ts +0 -1
- package/components/index.d.ts.map +1 -1
- package/components/index.js +0 -1
- package/components/index.js.map +1 -1
- package/dist/esm/components/AboutModal/package.json +1 -1
- package/dist/esm/components/Accordion/package.json +1 -1
- package/dist/esm/components/ActionList/package.json +1 -1
- package/dist/esm/components/Alert/AlertGroup.d.ts.map +1 -0
- package/dist/esm/components/Alert/AlertGroup.js.map +1 -0
- package/dist/esm/components/Alert/AlertGroupInline.d.ts.map +1 -0
- package/dist/esm/components/Alert/AlertGroupInline.js.map +1 -0
- package/dist/esm/components/Alert/index.d.ts +1 -0
- package/dist/esm/components/Alert/index.d.ts.map +1 -1
- package/dist/esm/components/Alert/index.js +1 -0
- package/dist/esm/components/Alert/index.js.map +1 -1
- package/dist/esm/components/Alert/package.json +1 -1
- package/dist/esm/components/Avatar/package.json +1 -1
- package/dist/esm/components/BackToTop/package.json +1 -1
- package/dist/esm/components/Backdrop/package.json +1 -1
- package/dist/esm/components/BackgroundImage/package.json +1 -1
- package/dist/esm/components/Badge/package.json +1 -1
- package/dist/esm/components/Banner/package.json +1 -1
- package/dist/esm/components/Brand/package.json +1 -1
- package/dist/esm/components/Breadcrumb/package.json +1 -1
- package/dist/esm/components/Button/package.json +1 -1
- package/dist/esm/components/CalendarMonth/package.json +1 -1
- package/dist/esm/components/Card/package.json +1 -1
- package/dist/esm/components/Checkbox/package.json +1 -1
- package/dist/esm/components/Chip/package.json +1 -1
- package/dist/esm/components/ChipGroup/package.json +1 -1
- package/dist/esm/components/ClipboardCopy/package.json +1 -1
- package/dist/esm/components/CodeBlock/package.json +1 -1
- package/dist/esm/components/DataList/package.json +1 -1
- package/dist/esm/components/DatePicker/package.json +1 -1
- package/dist/esm/components/DescriptionList/package.json +1 -1
- package/dist/esm/components/Divider/package.json +1 -1
- package/dist/esm/components/DragDrop/package.json +1 -1
- package/dist/esm/components/Drawer/package.json +1 -1
- package/dist/esm/components/Dropdown/package.json +1 -1
- package/dist/esm/components/DualListSelector/package.json +1 -1
- package/dist/esm/components/EmptyState/package.json +1 -1
- package/dist/esm/components/ExpandableSection/package.json +1 -1
- package/dist/esm/components/FileUpload/package.json +1 -1
- package/dist/esm/components/Form/package.json +1 -1
- package/dist/esm/components/FormSelect/package.json +1 -1
- package/dist/esm/components/HelperText/package.json +1 -1
- package/dist/esm/components/Hint/package.json +1 -1
- package/dist/esm/components/Icon/package.json +1 -1
- package/dist/esm/components/InputGroup/package.json +1 -1
- package/dist/esm/components/JumpLinks/package.json +1 -1
- package/dist/esm/components/Label/package.json +1 -1
- package/dist/esm/components/LabelGroup/package.json +1 -1
- package/dist/esm/components/List/package.json +1 -1
- package/dist/esm/components/LoginPage/package.json +1 -1
- package/dist/esm/components/Masthead/package.json +1 -1
- package/dist/esm/components/Menu/package.json +1 -1
- package/dist/esm/components/MenuToggle/package.json +1 -1
- package/dist/esm/components/Modal/package.json +1 -1
- package/dist/esm/components/MultipleFileUpload/package.json +1 -1
- package/dist/esm/components/Nav/package.json +1 -1
- package/dist/esm/components/NotificationBadge/package.json +1 -1
- package/dist/esm/components/NotificationDrawer/package.json +1 -1
- package/dist/esm/components/NumberInput/package.json +1 -1
- package/dist/esm/components/OverflowMenu/package.json +1 -1
- package/dist/esm/components/Page/package.json +1 -1
- package/dist/esm/components/Pagination/package.json +1 -1
- package/dist/esm/components/Panel/package.json +1 -1
- package/dist/esm/components/Popover/package.json +1 -1
- package/dist/esm/components/Progress/package.json +1 -1
- package/dist/esm/components/ProgressStepper/package.json +1 -1
- package/dist/esm/components/Radio/package.json +1 -1
- package/dist/esm/components/SearchInput/package.json +1 -1
- package/dist/esm/components/Select/package.json +1 -1
- package/dist/esm/components/Sidebar/package.json +1 -1
- package/dist/esm/components/SimpleList/package.json +1 -1
- package/dist/esm/components/Skeleton/package.json +1 -1
- package/dist/esm/components/SkipToContent/package.json +1 -1
- package/dist/esm/components/Slider/package.json +1 -1
- package/dist/esm/components/Spinner/package.json +1 -1
- package/dist/esm/components/Switch/package.json +1 -1
- package/dist/esm/components/Tabs/package.json +1 -1
- package/dist/esm/components/Text/package.json +1 -1
- package/dist/esm/components/TextArea/package.json +1 -1
- package/dist/esm/components/TextInput/package.json +1 -1
- package/dist/esm/components/TextInputGroup/package.json +1 -1
- package/dist/esm/components/Tile/package.json +1 -1
- package/dist/esm/components/TimePicker/package.json +1 -1
- package/dist/esm/components/Timestamp/package.json +1 -1
- package/dist/esm/components/Title/package.json +1 -1
- package/dist/esm/components/ToggleGroup/package.json +1 -1
- package/dist/esm/components/Toolbar/package.json +1 -1
- package/dist/esm/components/Tooltip/package.json +1 -1
- package/dist/esm/components/TreeView/package.json +1 -1
- package/dist/esm/components/Truncate/package.json +1 -1
- package/dist/esm/components/Wizard/Wizard.d.ts +31 -134
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +77 -303
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/components/Wizard/WizardBody.d.ts +17 -19
- package/dist/esm/components/Wizard/WizardBody.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardBody.js +15 -16
- package/dist/esm/components/Wizard/WizardBody.js.map +1 -1
- package/dist/esm/components/Wizard/WizardContext.d.ts +43 -12
- package/dist/esm/components/Wizard/WizardContext.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardContext.js +50 -11
- package/dist/esm/components/Wizard/WizardContext.js.map +1 -1
- package/dist/esm/components/Wizard/WizardFooter.d.ts +42 -4
- package/dist/esm/components/Wizard/WizardFooter.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardFooter.js +16 -2
- package/dist/esm/components/Wizard/WizardFooter.js.map +1 -1
- package/dist/esm/components/Wizard/WizardHeader.d.ts +2 -2
- package/dist/esm/components/Wizard/WizardHeader.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardHeader.js +2 -2
- package/dist/esm/components/Wizard/WizardHeader.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNav.d.ts +7 -8
- package/dist/esm/components/Wizard/WizardNav.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardNav.js +4 -7
- package/dist/esm/components/Wizard/WizardNav.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavInternal.d.ts.map +1 -0
- package/dist/esm/components/Wizard/WizardNavInternal.js.map +1 -0
- package/dist/esm/components/Wizard/WizardNavItem.d.ts +19 -10
- package/dist/esm/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.js +28 -16
- package/dist/esm/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/esm/components/Wizard/WizardStep.d.ts.map +1 -0
- package/dist/esm/components/Wizard/WizardStep.js.map +1 -0
- package/dist/esm/components/Wizard/WizardToggle.d.ts +23 -34
- package/dist/esm/components/Wizard/WizardToggle.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardToggle.js +41 -32
- package/dist/esm/components/Wizard/WizardToggle.js.map +1 -1
- package/dist/esm/components/Wizard/hooks/index.d.ts.map +1 -0
- package/dist/esm/components/Wizard/hooks/index.js.map +1 -0
- package/dist/esm/components/Wizard/hooks/package.json +1 -0
- package/dist/esm/components/Wizard/hooks/useWizardFooter.d.ts.map +1 -0
- package/dist/esm/components/Wizard/hooks/useWizardFooter.js.map +1 -0
- package/dist/esm/components/Wizard/index.d.ts +7 -4
- package/dist/esm/components/Wizard/index.d.ts.map +1 -1
- package/dist/esm/components/Wizard/index.js +7 -4
- package/dist/esm/components/Wizard/index.js.map +1 -1
- package/dist/esm/components/Wizard/package.json +1 -1
- package/dist/esm/{next/components → components}/Wizard/types.d.ts +1 -1
- package/dist/esm/components/Wizard/types.d.ts.map +1 -0
- package/dist/esm/components/Wizard/types.js.map +1 -0
- package/dist/esm/components/Wizard/utils.d.ts.map +1 -0
- package/dist/esm/components/Wizard/utils.js.map +1 -0
- package/dist/esm/components/index.d.ts +0 -1
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +0 -1
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/package.json +1 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/esm/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/esm/deprecated/components/Dropdown/package.json +1 -1
- package/dist/esm/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/esm/deprecated/components/PageHeader/package.json +1 -1
- package/dist/esm/deprecated/components/Select/package.json +1 -1
- package/dist/esm/deprecated/components/Wizard/Wizard.d.ts +142 -0
- package/dist/esm/deprecated/components/Wizard/Wizard.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Wizard/Wizard.js +315 -0
- package/dist/esm/deprecated/components/Wizard/Wizard.js.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardBody.d.ts +27 -0
- package/dist/esm/deprecated/components/Wizard/WizardBody.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardBody.js +41 -0
- package/dist/esm/deprecated/components/Wizard/WizardBody.js.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardContext.d.ts +14 -0
- package/dist/esm/deprecated/components/Wizard/WizardContext.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardContext.js +12 -0
- package/dist/esm/deprecated/components/Wizard/WizardContext.js.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardDrawerWrapper.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardDrawerWrapper.js.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardFooter.d.ts +7 -0
- package/dist/esm/deprecated/components/Wizard/WizardFooter.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardFooter.js +6 -0
- package/dist/esm/deprecated/components/Wizard/WizardFooter.js.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardFooterInternal.d.ts.map +1 -0
- package/dist/esm/{components → deprecated/components}/Wizard/WizardFooterInternal.js +1 -1
- package/dist/esm/deprecated/components/Wizard/WizardFooterInternal.js.map +1 -0
- package/dist/{js/next → esm/deprecated}/components/Wizard/WizardHeader.d.ts +2 -2
- package/dist/esm/deprecated/components/Wizard/WizardHeader.d.ts.map +1 -0
- package/dist/esm/{next → deprecated}/components/Wizard/WizardHeader.js +2 -2
- package/dist/esm/deprecated/components/Wizard/WizardHeader.js.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardNav.d.ts +16 -0
- package/dist/esm/deprecated/components/Wizard/WizardNav.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardNav.js +15 -0
- package/dist/esm/deprecated/components/Wizard/WizardNav.js.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardNavItem.d.ts +26 -0
- package/dist/esm/deprecated/components/Wizard/WizardNavItem.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardNavItem.js +36 -0
- package/dist/esm/deprecated/components/Wizard/WizardNavItem.js.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardToggle.d.ts +38 -0
- package/dist/esm/deprecated/components/Wizard/WizardToggle.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Wizard/WizardToggle.js +48 -0
- package/dist/esm/deprecated/components/Wizard/WizardToggle.js.map +1 -0
- package/dist/{js/next → esm/deprecated}/components/Wizard/index.d.ts +4 -7
- package/dist/esm/deprecated/components/Wizard/index.d.ts.map +1 -0
- package/dist/esm/{next → deprecated}/components/Wizard/index.js +4 -7
- package/dist/esm/deprecated/components/Wizard/index.js.map +1 -0
- package/dist/esm/deprecated/components/Wizard/package.json +1 -0
- package/dist/esm/deprecated/components/index.d.ts +1 -0
- package/dist/esm/deprecated/components/index.d.ts.map +1 -1
- package/dist/esm/deprecated/components/index.js +1 -0
- package/dist/esm/deprecated/components/index.js.map +1 -1
- package/dist/esm/deprecated/components/package.json +1 -1
- package/dist/esm/deprecated/package.json +1 -1
- package/dist/esm/helpers/Popper/thirdparty/popper-core/package.json +1 -1
- package/dist/esm/helpers/package.json +1 -1
- package/dist/esm/layouts/Bullseye/package.json +1 -1
- package/dist/esm/layouts/Flex/package.json +1 -1
- package/dist/esm/layouts/Gallery/package.json +1 -1
- package/dist/esm/layouts/Grid/package.json +1 -1
- package/dist/esm/layouts/Level/package.json +1 -1
- package/dist/esm/layouts/Split/package.json +1 -1
- package/dist/esm/layouts/Stack/package.json +1 -1
- package/dist/esm/layouts/package.json +1 -1
- package/dist/esm/next/components/index.d.ts +1 -1
- package/dist/esm/next/components/index.d.ts.map +1 -1
- package/dist/esm/next/components/index.js +1 -1
- package/dist/esm/next/components/index.js.map +1 -1
- package/dist/esm/next/components/package.json +1 -1
- package/dist/esm/next/package.json +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/js/components/AboutModal/package.json +1 -1
- package/dist/js/components/Accordion/package.json +1 -1
- package/dist/js/components/ActionList/package.json +1 -1
- package/dist/js/components/Alert/AlertGroup.d.ts.map +1 -0
- package/dist/js/components/Alert/AlertGroup.js.map +1 -0
- package/dist/js/components/Alert/AlertGroupInline.d.ts.map +1 -0
- package/dist/js/components/Alert/AlertGroupInline.js.map +1 -0
- package/dist/js/components/Alert/index.d.ts +1 -0
- package/dist/js/components/Alert/index.d.ts.map +1 -1
- package/dist/js/components/Alert/index.js +1 -0
- package/dist/js/components/Alert/index.js.map +1 -1
- package/dist/js/components/Alert/package.json +1 -1
- package/dist/js/components/Avatar/package.json +1 -1
- package/dist/js/components/BackToTop/package.json +1 -1
- package/dist/js/components/Backdrop/package.json +1 -1
- package/dist/js/components/BackgroundImage/package.json +1 -1
- package/dist/js/components/Badge/package.json +1 -1
- package/dist/js/components/Banner/package.json +1 -1
- package/dist/js/components/Brand/package.json +1 -1
- package/dist/js/components/Breadcrumb/package.json +1 -1
- package/dist/js/components/Button/package.json +1 -1
- package/dist/js/components/CalendarMonth/package.json +1 -1
- package/dist/js/components/Card/package.json +1 -1
- package/dist/js/components/Checkbox/package.json +1 -1
- package/dist/js/components/Chip/package.json +1 -1
- package/dist/js/components/ChipGroup/package.json +1 -1
- package/dist/js/components/ClipboardCopy/package.json +1 -1
- package/dist/js/components/CodeBlock/package.json +1 -1
- package/dist/js/components/DataList/package.json +1 -1
- package/dist/js/components/DatePicker/package.json +1 -1
- package/dist/js/components/DescriptionList/package.json +1 -1
- package/dist/js/components/Divider/package.json +1 -1
- package/dist/js/components/DragDrop/package.json +1 -1
- package/dist/js/components/Drawer/package.json +1 -1
- package/dist/js/components/Dropdown/package.json +1 -1
- package/dist/js/components/DualListSelector/package.json +1 -1
- package/dist/js/components/EmptyState/package.json +1 -1
- package/dist/js/components/ExpandableSection/package.json +1 -1
- package/dist/js/components/FileUpload/package.json +1 -1
- package/dist/js/components/Form/package.json +1 -1
- package/dist/js/components/FormSelect/package.json +1 -1
- package/dist/js/components/HelperText/package.json +1 -1
- package/dist/js/components/Hint/package.json +1 -1
- package/dist/js/components/Icon/package.json +1 -1
- package/dist/js/components/InputGroup/package.json +1 -1
- package/dist/js/components/JumpLinks/package.json +1 -1
- package/dist/js/components/Label/package.json +1 -1
- package/dist/js/components/LabelGroup/package.json +1 -1
- package/dist/js/components/List/package.json +1 -1
- package/dist/js/components/LoginPage/package.json +1 -1
- package/dist/js/components/Masthead/package.json +1 -1
- package/dist/js/components/Menu/package.json +1 -1
- package/dist/js/components/MenuToggle/package.json +1 -1
- package/dist/js/components/Modal/package.json +1 -1
- package/dist/js/components/MultipleFileUpload/package.json +1 -1
- package/dist/js/components/Nav/package.json +1 -1
- package/dist/js/components/NotificationBadge/package.json +1 -1
- package/dist/js/components/NotificationDrawer/package.json +1 -1
- package/dist/js/components/NumberInput/package.json +1 -1
- package/dist/js/components/OverflowMenu/package.json +1 -1
- package/dist/js/components/Page/package.json +1 -1
- package/dist/js/components/Pagination/package.json +1 -1
- package/dist/js/components/Panel/package.json +1 -1
- package/dist/js/components/Popover/package.json +1 -1
- package/dist/js/components/Progress/package.json +1 -1
- package/dist/js/components/ProgressStepper/package.json +1 -1
- package/dist/js/components/Radio/package.json +1 -1
- package/dist/js/components/SearchInput/package.json +1 -1
- package/dist/js/components/Select/package.json +1 -1
- package/dist/js/components/Sidebar/package.json +1 -1
- package/dist/js/components/SimpleList/package.json +1 -1
- package/dist/js/components/Skeleton/package.json +1 -1
- package/dist/js/components/SkipToContent/package.json +1 -1
- package/dist/js/components/Slider/package.json +1 -1
- package/dist/js/components/Spinner/package.json +1 -1
- package/dist/js/components/Switch/package.json +1 -1
- package/dist/js/components/Tabs/package.json +1 -1
- package/dist/js/components/Text/package.json +1 -1
- package/dist/js/components/TextArea/package.json +1 -1
- package/dist/js/components/TextInput/package.json +1 -1
- package/dist/js/components/TextInputGroup/package.json +1 -1
- package/dist/js/components/Tile/package.json +1 -1
- package/dist/js/components/TimePicker/package.json +1 -1
- package/dist/js/components/Timestamp/package.json +1 -1
- package/dist/js/components/Title/package.json +1 -1
- package/dist/js/components/ToggleGroup/package.json +1 -1
- package/dist/js/components/Toolbar/package.json +1 -1
- package/dist/js/components/Tooltip/package.json +1 -1
- package/dist/js/components/TreeView/package.json +1 -1
- package/dist/js/components/Truncate/package.json +1 -1
- package/dist/js/components/Wizard/Wizard.d.ts +31 -134
- package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.js +77 -303
- package/dist/js/components/Wizard/Wizard.js.map +1 -1
- package/dist/js/components/Wizard/WizardBody.d.ts +17 -19
- package/dist/js/components/Wizard/WizardBody.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardBody.js +18 -19
- package/dist/js/components/Wizard/WizardBody.js.map +1 -1
- package/dist/js/components/Wizard/WizardContext.d.ts +43 -12
- package/dist/js/components/Wizard/WizardContext.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardContext.js +53 -12
- package/dist/js/components/Wizard/WizardContext.js.map +1 -1
- package/dist/js/components/Wizard/WizardFooter.d.ts +42 -4
- package/dist/js/components/Wizard/WizardFooter.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardFooter.js +17 -3
- package/dist/js/components/Wizard/WizardFooter.js.map +1 -1
- package/dist/js/components/Wizard/WizardHeader.d.ts +2 -2
- package/dist/js/components/Wizard/WizardHeader.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardHeader.js +2 -2
- package/dist/js/components/Wizard/WizardHeader.js.map +1 -1
- package/dist/js/components/Wizard/WizardNav.d.ts +7 -8
- package/dist/js/components/Wizard/WizardNav.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardNav.js +4 -7
- package/dist/js/components/Wizard/WizardNav.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavInternal.d.ts.map +1 -0
- package/dist/js/components/Wizard/WizardNavInternal.js.map +1 -0
- package/dist/js/components/Wizard/WizardNavItem.d.ts +19 -10
- package/dist/js/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.js +28 -15
- package/dist/js/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/js/components/Wizard/WizardStep.d.ts.map +1 -0
- package/dist/js/components/Wizard/WizardStep.js.map +1 -0
- package/dist/js/components/Wizard/WizardToggle.d.ts +23 -34
- package/dist/js/components/Wizard/WizardToggle.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardToggle.js +47 -39
- package/dist/js/components/Wizard/WizardToggle.js.map +1 -1
- package/dist/js/components/Wizard/hooks/index.d.ts.map +1 -0
- package/dist/js/components/Wizard/hooks/index.js.map +1 -0
- package/dist/js/components/Wizard/hooks/package.json +1 -0
- package/dist/js/components/Wizard/hooks/useWizardFooter.d.ts.map +1 -0
- package/dist/js/components/Wizard/hooks/useWizardFooter.js.map +1 -0
- package/dist/js/components/Wizard/index.d.ts +7 -4
- package/dist/js/components/Wizard/index.d.ts.map +1 -1
- package/dist/js/components/Wizard/index.js +11 -4
- package/dist/js/components/Wizard/index.js.map +1 -1
- package/dist/js/components/Wizard/package.json +1 -1
- package/dist/js/{next/components → components}/Wizard/types.d.ts +1 -1
- package/dist/js/components/Wizard/types.d.ts.map +1 -0
- package/dist/js/components/Wizard/types.js.map +1 -0
- package/dist/js/components/Wizard/utils.d.ts.map +1 -0
- package/dist/js/components/Wizard/utils.js.map +1 -0
- package/dist/js/components/index.d.ts +0 -1
- package/dist/js/components/index.d.ts.map +1 -1
- package/dist/js/components/index.js +0 -1
- package/dist/js/components/index.js.map +1 -1
- package/dist/js/components/package.json +1 -1
- package/dist/js/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/js/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/js/deprecated/components/Dropdown/package.json +1 -1
- package/dist/js/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/js/deprecated/components/PageHeader/package.json +1 -1
- package/dist/js/deprecated/components/Select/package.json +1 -1
- package/dist/js/deprecated/components/Wizard/Wizard.d.ts +142 -0
- package/dist/js/deprecated/components/Wizard/Wizard.d.ts.map +1 -0
- package/dist/js/deprecated/components/Wizard/Wizard.js +319 -0
- package/dist/js/deprecated/components/Wizard/Wizard.js.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardBody.d.ts +27 -0
- package/dist/js/deprecated/components/Wizard/WizardBody.d.ts.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardBody.js +46 -0
- package/dist/js/deprecated/components/Wizard/WizardBody.js.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardContext.d.ts +14 -0
- package/dist/js/deprecated/components/Wizard/WizardContext.d.ts.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardContext.js +16 -0
- package/dist/js/deprecated/components/Wizard/WizardContext.js.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardDrawerWrapper.d.ts.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardDrawerWrapper.js.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardFooter.d.ts +7 -0
- package/dist/js/deprecated/components/Wizard/WizardFooter.d.ts.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardFooter.js +11 -0
- package/dist/js/deprecated/components/Wizard/WizardFooter.js.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardFooterInternal.d.ts.map +1 -0
- package/dist/js/{components → deprecated/components}/Wizard/WizardFooterInternal.js +1 -1
- package/dist/js/deprecated/components/Wizard/WizardFooterInternal.js.map +1 -0
- package/dist/{esm/next → js/deprecated}/components/Wizard/WizardHeader.d.ts +2 -2
- package/dist/js/deprecated/components/Wizard/WizardHeader.d.ts.map +1 -0
- package/dist/js/{next → deprecated}/components/Wizard/WizardHeader.js +2 -2
- package/dist/js/deprecated/components/Wizard/WizardHeader.js.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardNav.d.ts +16 -0
- package/dist/js/deprecated/components/Wizard/WizardNav.d.ts.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardNav.js +20 -0
- package/dist/js/deprecated/components/Wizard/WizardNav.js.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardNavItem.d.ts +26 -0
- package/dist/js/deprecated/components/Wizard/WizardNavItem.d.ts.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardNavItem.js +40 -0
- package/dist/js/deprecated/components/Wizard/WizardNavItem.js.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardToggle.d.ts +38 -0
- package/dist/js/deprecated/components/Wizard/WizardToggle.d.ts.map +1 -0
- package/dist/js/deprecated/components/Wizard/WizardToggle.js +53 -0
- package/dist/js/deprecated/components/Wizard/WizardToggle.js.map +1 -0
- package/dist/{esm/next → js/deprecated}/components/Wizard/index.d.ts +4 -7
- package/dist/js/deprecated/components/Wizard/index.d.ts.map +1 -0
- package/dist/js/deprecated/components/Wizard/index.js +12 -0
- package/dist/js/deprecated/components/Wizard/index.js.map +1 -0
- package/dist/js/deprecated/components/Wizard/package.json +1 -0
- package/dist/js/deprecated/components/index.d.ts +1 -0
- package/dist/js/deprecated/components/index.d.ts.map +1 -1
- package/dist/js/deprecated/components/index.js +1 -0
- package/dist/js/deprecated/components/index.js.map +1 -1
- package/dist/js/deprecated/components/package.json +1 -1
- package/dist/js/deprecated/package.json +1 -1
- package/dist/js/helpers/Popper/thirdparty/popper-core/package.json +1 -1
- package/dist/js/helpers/package.json +1 -1
- package/dist/js/layouts/Bullseye/package.json +1 -1
- package/dist/js/layouts/Flex/package.json +1 -1
- package/dist/js/layouts/Gallery/package.json +1 -1
- package/dist/js/layouts/Grid/package.json +1 -1
- package/dist/js/layouts/Level/package.json +1 -1
- package/dist/js/layouts/Split/package.json +1 -1
- package/dist/js/layouts/Stack/package.json +1 -1
- package/dist/js/layouts/package.json +1 -1
- package/dist/js/next/components/index.d.ts +1 -1
- package/dist/js/next/components/index.d.ts.map +1 -1
- package/dist/js/next/components/index.js +1 -1
- package/dist/js/next/components/index.js.map +1 -1
- package/dist/js/next/components/package.json +1 -1
- package/dist/js/next/package.json +1 -1
- package/dist/js/package.json +1 -1
- package/dist/umd/react-core.min.js +3 -3
- package/package.json +2 -2
- package/src/components/{AlertGroup → Alert}/__tests__/AlertGroup.test.tsx +1 -1
- package/src/components/Alert/examples/Alert.md +78 -3
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Modal/examples/ModalWithWizard.tsx +27 -16
- package/src/components/Wizard/Wizard.tsx +183 -560
- package/src/components/Wizard/WizardBody.tsx +36 -50
- package/src/components/Wizard/WizardFooter.tsx +80 -4
- package/src/components/Wizard/WizardHeader.tsx +7 -4
- package/src/components/Wizard/WizardNav.tsx +17 -24
- package/src/components/Wizard/WizardNavItem.tsx +65 -34
- package/src/components/Wizard/WizardToggle.tsx +83 -87
- package/src/components/Wizard/__tests__/Wizard.test.tsx +388 -256
- package/src/components/Wizard/examples/Wizard.md +108 -313
- package/src/components/Wizard/examples/WizardBasic.tsx +32 -37
- package/src/{next/components → components}/Wizard/examples/WizardBasicDisabledSteps.tsx +1 -1
- package/src/{next/components → components}/Wizard/examples/WizardCustomNav.tsx +13 -13
- package/src/components/Wizard/examples/WizardEnabledOnFormValidation.tsx +48 -113
- package/src/components/Wizard/examples/WizardExpandableSteps.tsx +39 -31
- package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +49 -27
- package/src/{next/components → components}/Wizard/examples/WizardProgressiveSteps.tsx +1 -1
- package/src/{next/components → components}/Wizard/examples/WizardStepDrawerContent.tsx +4 -2
- package/src/{next/components → components}/Wizard/examples/WizardStepErrorStatus.tsx +1 -2
- package/src/{next/components → components}/Wizard/examples/WizardStepVisitRequired.tsx +1 -1
- package/src/{next/components → components}/Wizard/examples/WizardToggleStepVisibility.tsx +1 -2
- package/src/components/Wizard/examples/WizardValidateOnButtonPress.tsx +112 -130
- package/src/{next/components → components}/Wizard/examples/WizardWithCustomFooter.tsx +1 -2
- package/src/{next/components → components}/Wizard/examples/WizardWithCustomNav.tsx +1 -1
- package/src/{next/components → components}/Wizard/examples/WizardWithCustomNavItem.tsx +1 -1
- package/src/{next/components → components}/Wizard/examples/WizardWithHeader.tsx +1 -1
- package/src/{next/components → components}/Wizard/examples/WizardWithNavAnchors.tsx +1 -2
- package/src/{next/components → components}/Wizard/examples/WizardWithSubmitProgress.tsx +3 -2
- package/src/{next/components → components}/Wizard/examples/WizardWithinModal.tsx +1 -2
- package/src/components/Wizard/index.ts +7 -4
- package/src/{next/components → components}/Wizard/types.tsx +1 -1
- package/src/components/index.ts +0 -1
- package/src/demos/AlertGroup.md +1 -1
- package/src/demos/Wizard/WizardDemo.md +17 -15
- package/src/deprecated/components/Wizard/Wizard.tsx +597 -0
- package/src/deprecated/components/Wizard/WizardBody.tsx +98 -0
- package/src/deprecated/components/Wizard/WizardFooter.tsx +13 -0
- package/src/{components → deprecated/components}/Wizard/WizardFooterInternal.tsx +1 -1
- package/src/{next → deprecated}/components/Wizard/WizardHeader.tsx +4 -7
- package/src/deprecated/components/Wizard/WizardNav.tsx +53 -0
- package/src/deprecated/components/Wizard/WizardNavItem.tsx +109 -0
- package/src/deprecated/components/Wizard/WizardToggle.tsx +121 -0
- package/src/deprecated/components/Wizard/__tests__/Wizard.test.tsx +317 -0
- package/src/deprecated/components/Wizard/examples/Wizard.md +379 -0
- package/src/{components → deprecated/components}/Wizard/examples/WizardAnchorsForNavItems.tsx +3 -2
- package/src/deprecated/components/Wizard/examples/WizardBasic.tsx +39 -0
- package/src/{components → deprecated/components}/Wizard/examples/WizardBasicWithDisabledSteps.tsx +2 -2
- package/src/deprecated/components/Wizard/examples/WizardEnabledOnFormValidation.tsx +140 -0
- package/src/deprecated/components/Wizard/examples/WizardExpandableSteps.tsx +34 -0
- package/src/{components → deprecated/components}/Wizard/examples/WizardFinished.tsx +3 -3
- package/src/deprecated/components/Wizard/examples/WizardGetCurrentStep.tsx +33 -0
- package/src/{components → deprecated/components}/Wizard/examples/WizardInModal.tsx +3 -2
- package/src/{components → deprecated/components}/Wizard/examples/WizardIncrementallyEnabledSteps.tsx +2 -2
- package/src/deprecated/components/Wizard/examples/WizardValidateOnButtonPress.tsx +207 -0
- package/src/{components → deprecated/components}/Wizard/examples/WizardWithDrawer.tsx +3 -3
- package/src/{next → deprecated}/components/Wizard/index.ts +4 -7
- package/src/deprecated/components/index.ts +1 -0
- package/src/next/components/index.ts +1 -1
- package/dist/esm/components/AlertGroup/AlertGroup.d.ts.map +0 -1
- package/dist/esm/components/AlertGroup/AlertGroup.js.map +0 -1
- package/dist/esm/components/AlertGroup/AlertGroupInline.d.ts.map +0 -1
- package/dist/esm/components/AlertGroup/AlertGroupInline.js.map +0 -1
- package/dist/esm/components/AlertGroup/index.d.ts +0 -2
- package/dist/esm/components/AlertGroup/index.d.ts.map +0 -1
- package/dist/esm/components/AlertGroup/index.js +0 -2
- package/dist/esm/components/AlertGroup/index.js.map +0 -1
- package/dist/esm/components/AlertGroup/package.json +0 -1
- package/dist/esm/components/Wizard/WizardDrawerWrapper.d.ts.map +0 -1
- package/dist/esm/components/Wizard/WizardDrawerWrapper.js.map +0 -1
- package/dist/esm/components/Wizard/WizardFooterInternal.d.ts.map +0 -1
- package/dist/esm/components/Wizard/WizardFooterInternal.js.map +0 -1
- package/dist/esm/next/components/Wizard/Wizard.d.ts +0 -39
- package/dist/esm/next/components/Wizard/Wizard.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/Wizard.js +0 -89
- package/dist/esm/next/components/Wizard/Wizard.js.map +0 -1
- package/dist/esm/next/components/Wizard/WizardBody.d.ts +0 -24
- package/dist/esm/next/components/Wizard/WizardBody.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/WizardBody.js +0 -40
- package/dist/esm/next/components/Wizard/WizardBody.js.map +0 -1
- package/dist/esm/next/components/Wizard/WizardContext.d.ts +0 -45
- package/dist/esm/next/components/Wizard/WizardContext.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/WizardContext.js +0 -51
- package/dist/esm/next/components/Wizard/WizardContext.js.map +0 -1
- package/dist/esm/next/components/Wizard/WizardFooter.d.ts +0 -45
- package/dist/esm/next/components/Wizard/WizardFooter.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/WizardFooter.js +0 -20
- package/dist/esm/next/components/Wizard/WizardFooter.js.map +0 -1
- package/dist/esm/next/components/Wizard/WizardHeader.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/WizardHeader.js.map +0 -1
- package/dist/esm/next/components/Wizard/WizardNav.d.ts +0 -15
- package/dist/esm/next/components/Wizard/WizardNav.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/WizardNav.js +0 -12
- package/dist/esm/next/components/Wizard/WizardNav.js.map +0 -1
- package/dist/esm/next/components/Wizard/WizardNavInternal.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/WizardNavInternal.js.map +0 -1
- package/dist/esm/next/components/Wizard/WizardNavItem.d.ts +0 -35
- package/dist/esm/next/components/Wizard/WizardNavItem.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/WizardNavItem.js +0 -48
- package/dist/esm/next/components/Wizard/WizardNavItem.js.map +0 -1
- package/dist/esm/next/components/Wizard/WizardStep.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/WizardStep.js.map +0 -1
- package/dist/esm/next/components/Wizard/WizardToggle.d.ts +0 -27
- package/dist/esm/next/components/Wizard/WizardToggle.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/WizardToggle.js +0 -57
- package/dist/esm/next/components/Wizard/WizardToggle.js.map +0 -1
- package/dist/esm/next/components/Wizard/hooks/index.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/hooks/index.js.map +0 -1
- package/dist/esm/next/components/Wizard/hooks/package.json +0 -1
- package/dist/esm/next/components/Wizard/hooks/useWizardFooter.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/hooks/useWizardFooter.js.map +0 -1
- package/dist/esm/next/components/Wizard/index.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/index.js.map +0 -1
- package/dist/esm/next/components/Wizard/package.json +0 -1
- package/dist/esm/next/components/Wizard/types.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/types.js.map +0 -1
- package/dist/esm/next/components/Wizard/utils.d.ts.map +0 -1
- package/dist/esm/next/components/Wizard/utils.js.map +0 -1
- package/dist/js/components/AlertGroup/AlertGroup.d.ts.map +0 -1
- package/dist/js/components/AlertGroup/AlertGroup.js.map +0 -1
- package/dist/js/components/AlertGroup/AlertGroupInline.d.ts.map +0 -1
- package/dist/js/components/AlertGroup/AlertGroupInline.js.map +0 -1
- package/dist/js/components/AlertGroup/index.d.ts +0 -2
- package/dist/js/components/AlertGroup/index.d.ts.map +0 -1
- package/dist/js/components/AlertGroup/index.js +0 -6
- package/dist/js/components/AlertGroup/index.js.map +0 -1
- package/dist/js/components/AlertGroup/package.json +0 -1
- package/dist/js/components/Wizard/WizardDrawerWrapper.d.ts.map +0 -1
- package/dist/js/components/Wizard/WizardDrawerWrapper.js.map +0 -1
- package/dist/js/components/Wizard/WizardFooterInternal.d.ts.map +0 -1
- package/dist/js/components/Wizard/WizardFooterInternal.js.map +0 -1
- package/dist/js/next/components/Wizard/Wizard.d.ts +0 -39
- package/dist/js/next/components/Wizard/Wizard.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/Wizard.js +0 -93
- package/dist/js/next/components/Wizard/Wizard.js.map +0 -1
- package/dist/js/next/components/Wizard/WizardBody.d.ts +0 -24
- package/dist/js/next/components/Wizard/WizardBody.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/WizardBody.js +0 -45
- package/dist/js/next/components/Wizard/WizardBody.js.map +0 -1
- package/dist/js/next/components/Wizard/WizardContext.d.ts +0 -45
- package/dist/js/next/components/Wizard/WizardContext.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/WizardContext.js +0 -57
- package/dist/js/next/components/Wizard/WizardContext.js.map +0 -1
- package/dist/js/next/components/Wizard/WizardFooter.d.ts +0 -45
- package/dist/js/next/components/Wizard/WizardFooter.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/WizardFooter.js +0 -25
- package/dist/js/next/components/Wizard/WizardFooter.js.map +0 -1
- package/dist/js/next/components/Wizard/WizardHeader.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/WizardHeader.js.map +0 -1
- package/dist/js/next/components/Wizard/WizardNav.d.ts +0 -15
- package/dist/js/next/components/Wizard/WizardNav.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/WizardNav.js +0 -17
- package/dist/js/next/components/Wizard/WizardNav.js.map +0 -1
- package/dist/js/next/components/Wizard/WizardNavInternal.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/WizardNavInternal.js.map +0 -1
- package/dist/js/next/components/Wizard/WizardNavItem.d.ts +0 -35
- package/dist/js/next/components/Wizard/WizardNavItem.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/WizardNavItem.js +0 -53
- package/dist/js/next/components/Wizard/WizardNavItem.js.map +0 -1
- package/dist/js/next/components/Wizard/WizardStep.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/WizardStep.js.map +0 -1
- package/dist/js/next/components/Wizard/WizardToggle.d.ts +0 -27
- package/dist/js/next/components/Wizard/WizardToggle.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/WizardToggle.js +0 -61
- package/dist/js/next/components/Wizard/WizardToggle.js.map +0 -1
- package/dist/js/next/components/Wizard/hooks/index.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/hooks/index.js.map +0 -1
- package/dist/js/next/components/Wizard/hooks/package.json +0 -1
- package/dist/js/next/components/Wizard/hooks/useWizardFooter.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/hooks/useWizardFooter.js.map +0 -1
- package/dist/js/next/components/Wizard/index.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/index.js +0 -19
- package/dist/js/next/components/Wizard/index.js.map +0 -1
- package/dist/js/next/components/Wizard/package.json +0 -1
- package/dist/js/next/components/Wizard/types.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/types.js.map +0 -1
- package/dist/js/next/components/Wizard/utils.d.ts.map +0 -1
- package/dist/js/next/components/Wizard/utils.js.map +0 -1
- package/src/components/AlertGroup/examples/AlertGroup.md +0 -79
- package/src/components/AlertGroup/index.ts +0 -1
- package/src/next/components/Wizard/Wizard.tsx +0 -220
- package/src/next/components/Wizard/WizardBody.tsx +0 -83
- package/src/next/components/Wizard/WizardFooter.tsx +0 -89
- package/src/next/components/Wizard/WizardNav.tsx +0 -46
- package/src/next/components/Wizard/WizardNavItem.tsx +0 -140
- package/src/next/components/Wizard/WizardToggle.tsx +0 -117
- package/src/next/components/Wizard/__tests__/Wizard.test.tsx +0 -449
- package/src/next/components/Wizard/examples/Wizard.md +0 -176
- package/src/next/components/Wizard/examples/WizardBasic.tsx +0 -34
- package/src/next/components/Wizard/examples/WizardEnabledOnFormValidation.tsx +0 -84
- package/src/next/components/Wizard/examples/WizardExpandableSteps.tsx +0 -42
- package/src/next/components/Wizard/examples/WizardGetCurrentStep.tsx +0 -53
- package/src/next/components/Wizard/examples/WizardValidateOnButtonPress.tsx +0 -190
- /package/dist/esm/components/{AlertGroup → Alert}/AlertGroup.d.ts +0 -0
- /package/dist/esm/components/{AlertGroup → Alert}/AlertGroup.js +0 -0
- /package/dist/esm/components/{AlertGroup → Alert}/AlertGroupInline.d.ts +0 -0
- /package/dist/esm/components/{AlertGroup → Alert}/AlertGroupInline.js +0 -0
- /package/dist/esm/{next/components → components}/Wizard/WizardNavInternal.d.ts +0 -0
- /package/dist/esm/{next/components → components}/Wizard/WizardNavInternal.js +0 -0
- /package/dist/esm/{next/components → components}/Wizard/WizardStep.d.ts +0 -0
- /package/dist/esm/{next/components → components}/Wizard/WizardStep.js +0 -0
- /package/dist/esm/{next/components → components}/Wizard/hooks/index.d.ts +0 -0
- /package/dist/esm/{next/components → components}/Wizard/hooks/index.js +0 -0
- /package/dist/esm/{next/components → components}/Wizard/hooks/useWizardFooter.d.ts +0 -0
- /package/dist/esm/{next/components → components}/Wizard/hooks/useWizardFooter.js +0 -0
- /package/dist/esm/{next/components → components}/Wizard/types.js +0 -0
- /package/dist/esm/{next/components → components}/Wizard/utils.d.ts +0 -0
- /package/dist/esm/{next/components → components}/Wizard/utils.js +0 -0
- /package/dist/esm/{components → deprecated/components}/Wizard/WizardDrawerWrapper.d.ts +0 -0
- /package/dist/esm/{components → deprecated/components}/Wizard/WizardDrawerWrapper.js +0 -0
- /package/dist/esm/{components → deprecated/components}/Wizard/WizardFooterInternal.d.ts +0 -0
- /package/dist/js/components/{AlertGroup → Alert}/AlertGroup.d.ts +0 -0
- /package/dist/js/components/{AlertGroup → Alert}/AlertGroup.js +0 -0
- /package/dist/js/components/{AlertGroup → Alert}/AlertGroupInline.d.ts +0 -0
- /package/dist/js/components/{AlertGroup → Alert}/AlertGroupInline.js +0 -0
- /package/dist/js/{next/components → components}/Wizard/WizardNavInternal.d.ts +0 -0
- /package/dist/js/{next/components → components}/Wizard/WizardNavInternal.js +0 -0
- /package/dist/js/{next/components → components}/Wizard/WizardStep.d.ts +0 -0
- /package/dist/js/{next/components → components}/Wizard/WizardStep.js +0 -0
- /package/dist/js/{next/components → components}/Wizard/hooks/index.d.ts +0 -0
- /package/dist/js/{next/components → components}/Wizard/hooks/index.js +0 -0
- /package/dist/js/{next/components → components}/Wizard/hooks/useWizardFooter.d.ts +0 -0
- /package/dist/js/{next/components → components}/Wizard/hooks/useWizardFooter.js +0 -0
- /package/dist/js/{next/components → components}/Wizard/types.js +0 -0
- /package/dist/js/{next/components → components}/Wizard/utils.d.ts +0 -0
- /package/dist/js/{next/components → components}/Wizard/utils.js +0 -0
- /package/dist/js/{components → deprecated/components}/Wizard/WizardDrawerWrapper.d.ts +0 -0
- /package/dist/js/{components → deprecated/components}/Wizard/WizardDrawerWrapper.js +0 -0
- /package/dist/js/{components → deprecated/components}/Wizard/WizardFooterInternal.d.ts +0 -0
- /package/src/components/{AlertGroup → Alert}/AlertGroup.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/AlertGroupInline.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/__tests__/Generated/AlertGroup.test.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/__tests__/Generated/AlertGroupInline.test.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/__tests__/Generated/__snapshots__/AlertGroup.test.tsx.snap +0 -0
- /package/src/components/{AlertGroup → Alert}/__tests__/Generated/__snapshots__/AlertGroupInline.test.tsx.snap +0 -0
- /package/src/components/{AlertGroup → Alert}/__tests__/__snapshots__/AlertGroup.test.tsx.snap +0 -0
- /package/src/components/{AlertGroup → Alert}/examples/AlertGroupAsync.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/examples/AlertGroupMultipleDynamic.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/examples/AlertGroupSingularDynamic.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/examples/AlertGroupSingularDynamicOverflow.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/examples/AlertGroupStatic.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/examples/AlertGroupToast.tsx +0 -0
- /package/src/components/{AlertGroup → Alert}/examples/AlertGroupToastOverflowCapture.tsx +0 -0
- /package/src/{next/components → components}/Wizard/WizardContext.tsx +0 -0
- /package/src/{next/components → components}/Wizard/WizardNavInternal.tsx +0 -0
- /package/src/{next/components → components}/Wizard/WizardStep.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/WizardBody.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/WizardFooter.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/WizardStep.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/WizardToggle.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/utils.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/hooks/__tests__/useWizardFooter.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/hooks/index.ts +0 -0
- /package/src/{next/components → components}/Wizard/hooks/useWizardFooter.tsx +0 -0
- /package/src/{next/components → components}/Wizard/utils.ts +0 -0
- /package/src/{components → deprecated/components}/Wizard/WizardContext.ts +0 -0
- /package/src/{components → deprecated/components}/Wizard/WizardDrawerWrapper.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardBody.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardFooter.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardFooterInternal.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardHeader.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardNav.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardNavItem.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardToggle.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardBody.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardFooter.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardFooterInternal.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardHeader.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardNav.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardNavItem.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardToggle.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardToggle.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/WizardToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,cAAc,EAAmB,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C;;GAEG;AAEH,MAAM,WAAW,iBAAiB;IAChC,qCAAqC;IACrC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,uBAAuB;IACvB,UAAU,EAAE,cAAc,CAAC;IAC3B,oBAAoB;IACpB,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC;IAC3B,wBAAwB;IACxB,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IACxC,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,aAAa,KAAK,IAAI,CAAC;CAC1F;AAED,eAAO,MAAM,YAAY;oGAQtB,iBAAiB;;CAwEnB,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WizardToggle = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const react_styles_1 = require("@patternfly/react-styles");
|
|
7
|
-
const wizard_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Wizard/wizard"));
|
|
8
|
-
const angle_right_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/angle-right-icon'));
|
|
9
|
-
const caret_down_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/caret-down-icon'));
|
|
10
|
-
const constants_1 = require("../../../helpers/constants");
|
|
11
|
-
const types_1 = require("./types");
|
|
12
|
-
const WizardStep_1 = require("./WizardStep");
|
|
13
|
-
const WizardBody_1 = require("./WizardBody");
|
|
14
|
-
const WizardToggle = ({ steps, activeStep, footer, nav, isNavExpanded, toggleNavExpanded, 'aria-label': ariaLabel = 'Wizard toggle' }) => {
|
|
15
|
-
const isActiveSubStep = (0, types_1.isWizardSubStep)(activeStep);
|
|
16
|
-
const parentStep = isActiveSubStep && steps.find(step => step.id === activeStep.parentId);
|
|
17
|
-
const nonSubSteps = steps.filter(step => !(0, types_1.isWizardSubStep)(step));
|
|
18
|
-
const wizardToggleIndex = nonSubSteps.indexOf(parentStep || activeStep) + 1;
|
|
19
|
-
const handleKeyClicks = react_1.default.useCallback((event) => {
|
|
20
|
-
if (isNavExpanded && event.key === constants_1.KeyTypes.Escape) {
|
|
21
|
-
toggleNavExpanded === null || toggleNavExpanded === void 0 ? void 0 : toggleNavExpanded(event);
|
|
22
|
-
}
|
|
23
|
-
}, [isNavExpanded, toggleNavExpanded]);
|
|
24
|
-
// Open/close collapsable navigation on keydown event
|
|
25
|
-
react_1.default.useEffect(() => {
|
|
26
|
-
const target = typeof document !== 'undefined' ? document.body : null;
|
|
27
|
-
target === null || target === void 0 ? void 0 : target.addEventListener('keydown', handleKeyClicks, false);
|
|
28
|
-
return () => {
|
|
29
|
-
target === null || target === void 0 ? void 0 : target.removeEventListener('keydown', handleKeyClicks, false);
|
|
30
|
-
};
|
|
31
|
-
}, [handleKeyClicks]);
|
|
32
|
-
const bodyContent = steps.map(step => {
|
|
33
|
-
var _a;
|
|
34
|
-
const props = ((_a = step.component) === null || _a === void 0 ? void 0 : _a.props) || {};
|
|
35
|
-
const { children, body } = props, propsWithoutChildren = tslib_1.__rest(props, ["children", "body"]);
|
|
36
|
-
return (react_1.default.createElement(react_1.default.Fragment, { key: step.id },
|
|
37
|
-
(activeStep === null || activeStep === void 0 ? void 0 : activeStep.name) === step.name &&
|
|
38
|
-
(body || body === undefined ? react_1.default.createElement(WizardBody_1.WizardBody, Object.assign({}, body), children) : children),
|
|
39
|
-
react_1.default.createElement("div", { key: step.id, style: { display: 'none' } },
|
|
40
|
-
react_1.default.createElement(WizardStep_1.WizardStep, Object.assign({}, propsWithoutChildren)))));
|
|
41
|
-
});
|
|
42
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
43
|
-
react_1.default.createElement("button", { onClick: toggleNavExpanded, className: (0, react_styles_1.css)(wizard_1.default.wizardToggle, isNavExpanded && 'pf-m-expanded'), "aria-label": ariaLabel, "aria-expanded": isNavExpanded },
|
|
44
|
-
react_1.default.createElement("span", { className: (0, react_styles_1.css)(wizard_1.default.wizardToggleList) },
|
|
45
|
-
react_1.default.createElement("span", { className: (0, react_styles_1.css)(wizard_1.default.wizardToggleListItem) },
|
|
46
|
-
react_1.default.createElement("span", { className: (0, react_styles_1.css)(wizard_1.default.wizardToggleNum) }, wizardToggleIndex),
|
|
47
|
-
' ',
|
|
48
|
-
(parentStep === null || parentStep === void 0 ? void 0 : parentStep.name) || (activeStep === null || activeStep === void 0 ? void 0 : activeStep.name),
|
|
49
|
-
isActiveSubStep && react_1.default.createElement(angle_right_icon_1.default, { className: (0, react_styles_1.css)(wizard_1.default.wizardToggleSeparator), "aria-hidden": "true" })),
|
|
50
|
-
isActiveSubStep && react_1.default.createElement("span", { className: (0, react_styles_1.css)(wizard_1.default.wizardToggleListItem) }, activeStep === null || activeStep === void 0 ? void 0 : activeStep.name)),
|
|
51
|
-
react_1.default.createElement("span", { className: (0, react_styles_1.css)(wizard_1.default.wizardToggleIcon) },
|
|
52
|
-
react_1.default.createElement(caret_down_icon_1.default, { "aria-hidden": "true" }))),
|
|
53
|
-
react_1.default.createElement("div", { className: (0, react_styles_1.css)(wizard_1.default.wizardOuterWrap) },
|
|
54
|
-
react_1.default.createElement("div", { className: (0, react_styles_1.css)(wizard_1.default.wizardInnerWrap) },
|
|
55
|
-
nav,
|
|
56
|
-
bodyContent),
|
|
57
|
-
footer)));
|
|
58
|
-
};
|
|
59
|
-
exports.WizardToggle = WizardToggle;
|
|
60
|
-
exports.WizardToggle.displayName = 'WizardToggle';
|
|
61
|
-
//# sourceMappingURL=WizardToggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardToggle.js","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/WizardToggle.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAE1B,2DAA+C;AAC/C,2GAA2E;AAC3E,sHAAqF;AACrF,oHAAmF;AAEnF,0DAAsD;AACtD,mCAA0D;AAE1D,6CAA2D;AAC3D,6CAA0C;AAuBnC,MAAM,YAAY,GAAG,CAAC,EAC3B,KAAK,EACL,UAAU,EACV,MAAM,EACN,GAAG,EACH,aAAa,EACb,iBAAiB,EACjB,YAAY,EAAE,SAAS,GAAG,eAAe,EACvB,EAAE,EAAE;IACtB,MAAM,eAAe,GAAG,IAAA,uBAAe,EAAC,UAAU,CAAC,CAAC;IACpD,MAAM,UAAU,GAAG,eAAe,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC1F,MAAM,WAAW,GA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,UAAU,CAAE,IAAI,CAAQ,CAC3F;YAEP,wCAAM,SAAS,EAAE,IAAA,kBAAG,EAAC,gBAAM,CAAC,gBAAgB,CAAC;gBAC3C,8BAAC,yBAAa,mBAAa,MAAM,GAAG,CAC/B,CACA;QACT,uCAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,gBAAM,CAAC,eAAe,CAAC;YACzC,uCAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,gBAAM,CAAC,eAAe,CAAC;gBACxC,GAAG;gBACH,WAAW,CACR;YAEL,MAAM,CACH,CACL,CACJ,CAAC;AACJ,CAAC,CAAC;AAhFW,QAAA,YAAY,gBAgFvB;AAEF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/next/components/Wizard/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/next/components/Wizard/hooks/index.ts"],"names":[],"mappings":";;;AAAA,qDAAoD;AAA3C,kHAAA,eAAe,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-hooks-next-cjs","main":"index.js","module":"./dist/js/next/components/Wizard/hooks/index.js","typings":"index.d.ts","version":"5.0.0-alpha.69"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWizardFooter.d.ts","sourceRoot":"","sources":["../../../../../../src/next/components/Wizard/hooks/useWizardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,YAAY,GAAG,QAAQ,iBAAiB,CAAC,WAAW,MAAM,GAAG,MAAM,SAahH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWizardFooter.js","sourceRoot":"","sources":["../../../../../../src/next/components/Wizard/hooks/useWizardFooter.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAE1B,oDAAoD;AAGpD;;;;GAIG;AACI,MAAM,eAAe,GAAG,CAAC,MAAuD,EAAE,MAAwB,EAAE,EAAE;IACnH,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAErD,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,MAAM,IAAI,CAAC,CAAC,MAAM,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,EAAE,MAAK,MAAM,CAAC,EAAE;YACpD,SAAS,CAAC,MAAM,CAAC,CAAC;YAElB,+BAA+B;YAC/B,OAAO,GAAG,EAAE;gBACV,SAAS,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC,CAAC;SACH;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAC9C,CAAC,CAAC;AAbW,QAAA,eAAe,mBAa1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WizardContext = exports.useWizardContext = exports.useWizardFooter = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
tslib_1.__exportStar(require("./Wizard"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./WizardBody"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./WizardFooter"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./WizardToggle"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./WizardStep"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./WizardNav"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./WizardNavItem"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./WizardHeader"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
14
|
-
var hooks_1 = require("./hooks");
|
|
15
|
-
Object.defineProperty(exports, "useWizardFooter", { enumerable: true, get: function () { return hooks_1.useWizardFooter; } });
|
|
16
|
-
var WizardContext_1 = require("./WizardContext");
|
|
17
|
-
Object.defineProperty(exports, "useWizardContext", { enumerable: true, get: function () { return WizardContext_1.useWizardContext; } });
|
|
18
|
-
Object.defineProperty(exports, "WizardContext", { enumerable: true, get: function () { return WizardContext_1.WizardContext; } });
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/index.ts"],"names":[],"mappings":";;;;AAAA,mDAAyB;AACzB,uDAA6B;AAC7B,yDAA+B;AAC/B,yDAA+B;AAC/B,uDAA6B;AAC7B,sDAA4B;AAC5B,0DAAgC;AAChC,yDAA+B;AAC/B,kDAAwB;AACxB,iCAA0C;AAAjC,wGAAA,eAAe,OAAA;AACxB,iDAAkE;AAAzD,iHAAA,gBAAgB,OAAA;AAAE,8GAAA,aAAa,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-wizard-next-cjs","main":"index.js","module":"./dist/js/next/components/Wizard/index.js","typings":"index.d.ts","version":"5.0.0-alpha.69"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAElF,mHAAmH;AACnH,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,wBAAwB;IACxB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qIAAqI;IACrI,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC/B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,+FAA+F;IAC/F,MAAM,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACzD,wDAAwD;IACxD,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC9B;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,wCAAwC;AACxC,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,sBAAsB;IACtB,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAChC,4DAA4D;IA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|
-
## Examples
|
|
9
|
-
|
|
10
|
-
### Variants
|
|
11
|
-
|
|
12
|
-
Alert groups can be one of the following variants:
|
|
13
|
-
|
|
14
|
-
| Variant | Description |
|
|
15
|
-
| --- | --- |
|
|
16
|
-
| Static inline | Static inline alert groups contain alerts that appear when the page loads, and are seen within the normal page content flow. These groups should not contain alerts that will dynamically appear or update. |
|
|
17
|
-
| Toast | Toast alert groups contain alerts that typically appear in response to an asynchronous event or user action. These groups are positioned on top of other content at the top right of the page.|
|
|
18
|
-
| Dynamic | Dynamic alert groups contain alerts that typically appear in response to a user action, and are seen within the normal page content flow.|
|
|
19
|
-
|
|
20
|
-
Dynamic alerts that are generated after the page initially loads must be appended to either a toast or dynamic `AlertGroup`, both of which must use the `isLiveRegion` property. New alerts appended to a toast or dynamic group will be announced by assistive technologies the moment the change happens. For information about customizing this announcement, read the [aria-atomic and aria-relevant](/components/alert-group/accessibility#aria-atomic-and-aria-relevant) section of the alert group accessibility documentation.
|
|
21
|
-
|
|
22
|
-
### Static inline alert group
|
|
23
|
-
|
|
24
|
-
All alert group variants may combine multiple [alert variants](/components/alert) For example, the following static inline alert group includes one "success" alert and one "info" alert.
|
|
25
|
-
|
|
26
|
-
```ts file="./AlertGroupStatic.tsx"
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Toast alert group
|
|
30
|
-
|
|
31
|
-
Toast alert groups are created by passing in the `isToast` and `isLiveRegion` properties.
|
|
32
|
-
|
|
33
|
-
Click the buttons in the example below to add alerts to a toast group.
|
|
34
|
-
|
|
35
|
-
```ts file="./AlertGroupToast.tsx"
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Toast alert group with overflow capture
|
|
39
|
-
|
|
40
|
-
Users will see an overflow message once a predefined number of alerts are displayed. They will not see any alerts beyond the display limit, which must be explicitly set.
|
|
41
|
-
|
|
42
|
-
In the following example, an overflow message will appear when more than 4 alerts would be shown. When a 5th alert would appear, an overflow message is shown instead.
|
|
43
|
-
|
|
44
|
-
When an overflow message appears in an `AlertGroup` using the `isLiveRegion` property, the "view 1 more alert" text label will be announced, but the alert message will not.
|
|
45
|
-
|
|
46
|
-
Users navigating via keyboard or another assistive technology will need a way to navigate to and reveal hidden alerts before they disappear. Alternatively, there should be a place where notifications or alerts are collected to be viewed or read later.
|
|
47
|
-
|
|
48
|
-
```ts file="AlertGroupToastOverflowCapture.tsx"
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Asynchronous alert groups
|
|
52
|
-
|
|
53
|
-
The following example shows how alerts can be triggered by an asynchronous event in the application. You can customize how an alert will be announced to assistive technology by adjusting the value of the `aria-live` property. Click the "start async" alert button below and then click the buttons in the above toast examples to demonstrate how asynchronous events add alerts to a group. Click the "stop async alerts" button to halt this behavior.
|
|
54
|
-
|
|
55
|
-
See the [alert group accessibility tab](/components/alert-group/accessibility) for more information on customizing this behavior.
|
|
56
|
-
|
|
57
|
-
```ts file="./AlertGroupAsync.tsx"
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Dynamic alert groups
|
|
61
|
-
|
|
62
|
-
Click the buttons in the example below to add dynamic alerts to a group.
|
|
63
|
-
|
|
64
|
-
```ts file="./AlertGroupSingularDynamic.tsx"
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Dynamic alert group with overflow message
|
|
68
|
-
|
|
69
|
-
In the following example, there can be a maximum of 4 alerts shown at once.
|
|
70
|
-
|
|
71
|
-
```ts file="AlertGroupSingularDynamicOverflow.tsx"
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Multiple dynamic alert groups
|
|
75
|
-
|
|
76
|
-
You may add multiple alerts to an alert group at once. Click the "add alert collection" button in the example below to add a batch of 3 toast alerts to a group.
|
|
77
|
-
|
|
78
|
-
```ts file="./AlertGroupMultipleDynamic.tsx"
|
|
79
|
-
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AlertGroup } from './AlertGroup';
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
isWizardParentStep,
|
|
8
|
-
WizardStepType,
|
|
9
|
-
isCustomWizardNav,
|
|
10
|
-
WizardFooterType,
|
|
11
|
-
WizardNavType,
|
|
12
|
-
WizardStepChangeScope
|
|
13
|
-
} from './types';
|
|
14
|
-
import { buildSteps } from './utils';
|
|
15
|
-
import { useWizardContext, WizardContextProvider } from './WizardContext';
|
|
16
|
-
import { WizardToggle } from './WizardToggle';
|
|
17
|
-
import { WizardNavInternal } from './WizardNavInternal';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Wrapper for all steps and hosts state, including navigation helpers, within context.
|
|
21
|
-
* The WizardContext provided by default gives any child of wizard access to those resources.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
export interface WizardProps extends React.HTMLProps<HTMLDivElement> {
|
|
25
|
-
/** Step components */
|
|
26
|
-
children: React.ReactNode | React.ReactNode[];
|
|
27
|
-
/** Wizard header */
|
|
28
|
-
header?: React.ReactNode;
|
|
29
|
-
/** Wizard footer */
|
|
30
|
-
footer?: WizardFooterType;
|
|
31
|
-
/** Wizard navigation */
|
|
32
|
-
nav?: WizardNavType;
|
|
33
|
-
/** The initial index the wizard is to start on (1 or higher). Defaults to 1. */
|
|
34
|
-
startIndex?: number;
|
|
35
|
-
/** Additional classes spread to the wizard */
|
|
36
|
-
className?: string;
|
|
37
|
-
/** Custom width of the wizard */
|
|
38
|
-
width?: number | string;
|
|
39
|
-
/** Custom height of the wizard */
|
|
40
|
-
height?: number | string;
|
|
41
|
-
/** Disables steps that haven't been visited. Defaults to false. */
|
|
42
|
-
isVisitRequired?: boolean;
|
|
43
|
-
/** Progressively shows steps, where all steps following the active step are hidden. Defaults to false. */
|
|
44
|
-
isProgressive?: boolean;
|
|
45
|
-
/** Callback function when navigating between steps */
|
|
46
|
-
onStepChange?: (
|
|
47
|
-
event: React.MouseEvent<HTMLButtonElement>,
|
|
48
|
-
currentStep: WizardStepType,
|
|
49
|
-
prevStep: WizardStepType,
|
|
50
|
-
scope: WizardStepChangeScope
|
|
51
|
-
) => void | Promise<void>;
|
|
52
|
-
/** Callback function to save at the end of the wizard, if not specified uses onClose */
|
|
53
|
-
onSave?: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>;
|
|
54
|
-
/** Callback function to close the wizard */
|
|
55
|
-
onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export const Wizard = ({
|
|
59
|
-
children,
|
|
60
|
-
footer,
|
|
61
|
-
height,
|
|
62
|
-
width,
|
|
63
|
-
className,
|
|
64
|
-
header,
|
|
65
|
-
nav,
|
|
66
|
-
startIndex = 1,
|
|
67
|
-
isVisitRequired = false,
|
|
68
|
-
isProgressive = false,
|
|
69
|
-
onStepChange,
|
|
70
|
-
onSave,
|
|
71
|
-
onClose,
|
|
72
|
-
...wrapperProps
|
|
73
|
-
}: WizardProps) => {
|
|
74
|
-
const [activeStepIndex, setActiveStepIndex] = React.useState(startIndex);
|
|
75
|
-
const initialSteps = buildSteps(children);
|
|
76
|
-
const firstStepRef = React.useRef(initialSteps[startIndex - 1]);
|
|
77
|
-
|
|
78
|
-
// When the startIndex maps to a parent step, focus on the first sub-step
|
|
79
|
-
React.useEffect(() => {
|
|
80
|
-
if (isWizardParentStep(firstStepRef.current)) {
|
|
81
|
-
setActiveStepIndex(startIndex + 1);
|
|
82
|
-
}
|
|
83
|
-
}, [startIndex]);
|
|
84
|
-
|
|
85
|
-
const goToNextStep = (event: React.MouseEvent<HTMLButtonElement>, steps: WizardStepType[] = initialSteps) => {
|
|
86
|
-
const newStep = steps.find(
|
|
87
|
-
step => step.index > activeStepIndex && !step.isHidden && !step.isDisabled && !isWizardParentStep(step)
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
if (activeStepIndex >= steps.length || !newStep?.index) {
|
|
91
|
-
return onSave ? onSave(event) : onClose?.(event);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const currStep = isWizardParentStep(steps[activeStepIndex]) ? steps[activeStepIndex + 1] : steps[activeStepIndex];
|
|
95
|
-
const prevStep = steps[activeStepIndex - 1];
|
|
96
|
-
|
|
97
|
-
setActiveStepIndex(newStep?.index);
|
|
98
|
-
onStepChange?.(event, currStep, prevStep, WizardStepChangeScope.Next);
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
const goToPrevStep = (event: React.MouseEvent<HTMLButtonElement>, steps: WizardStepType[] = initialSteps) => {
|
|
102
|
-
const newStep = [...steps]
|
|
103
|
-
.reverse()
|
|
104
|
-
.find(
|
|
105
|
-
(step: WizardStepType) =>
|
|
106
|
-
step.index < activeStepIndex && !step.isHidden && !step.isDisabled && !isWizardParentStep(step)
|
|
107
|
-
);
|
|
108
|
-
const currStep = isWizardParentStep(steps[activeStepIndex - 2])
|
|
109
|
-
? steps[activeStepIndex - 3]
|
|
110
|
-
: steps[activeStepIndex - 2];
|
|
111
|
-
const prevStep = steps[activeStepIndex - 1];
|
|
112
|
-
|
|
113
|
-
setActiveStepIndex(newStep?.index);
|
|
114
|
-
onStepChange?.(event, currStep, prevStep, WizardStepChangeScope.Back);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
const goToStepByIndex = (
|
|
118
|
-
event: React.MouseEvent<HTMLButtonElement>,
|
|
119
|
-
steps: WizardStepType[] = initialSteps,
|
|
120
|
-
index: number
|
|
121
|
-
) => {
|
|
122
|
-
const lastStepIndex = steps.length + 1;
|
|
123
|
-
|
|
124
|
-
// Handle index when out of bounds or hidden
|
|
125
|
-
if (index < 1) {
|
|
126
|
-
index = 1;
|
|
127
|
-
} else if (index > lastStepIndex) {
|
|
128
|
-
index = lastStepIndex;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
const currStep = steps[index - 1];
|
|
132
|
-
const prevStep = steps[activeStepIndex - 1];
|
|
133
|
-
|
|
134
|
-
setActiveStepIndex(index);
|
|
135
|
-
onStepChange?.(event, currStep, prevStep, WizardStepChangeScope.Nav);
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
const goToStepById = (steps: WizardStepType[] = initialSteps, id: number | string) => {
|
|
139
|
-
const step = steps.find(step => step.id === id);
|
|
140
|
-
const stepIndex = step?.index;
|
|
141
|
-
const lastStepIndex = steps.length + 1;
|
|
142
|
-
|
|
143
|
-
if (stepIndex > 0 && stepIndex < lastStepIndex && !step.isDisabled && !step.isHidden) {
|
|
144
|
-
setActiveStepIndex(stepIndex);
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
const goToStepByName = (steps: WizardStepType[] = initialSteps, name: string) => {
|
|
149
|
-
const step = steps.find(step => step.name === name);
|
|
150
|
-
const stepIndex = step?.index;
|
|
151
|
-
const lastStepIndex = steps.length + 1;
|
|
152
|
-
|
|
153
|
-
if (stepIndex > 0 && stepIndex < lastStepIndex && !step.isDisabled && !step.isHidden) {
|
|
154
|
-
setActiveStepIndex(stepIndex);
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
return (
|
|
159
|
-
<WizardContextProvider
|
|
160
|
-
steps={initialSteps}
|
|
161
|
-
activeStepIndex={activeStepIndex}
|
|
162
|
-
footer={footer}
|
|
163
|
-
onNext={goToNextStep}
|
|
164
|
-
onBack={goToPrevStep}
|
|
165
|
-
onClose={onClose}
|
|
166
|
-
goToStepById={goToStepById}
|
|
167
|
-
goToStepByName={goToStepByName}
|
|
168
|
-
goToStepByIndex={goToStepByIndex}
|
|
169
|
-
>
|
|
170
|
-
<div
|
|
171
|
-
className={css(styles.wizard, className)}
|
|
172
|
-
style={{
|
|
173
|
-
...(height ? { height } : {}),
|
|
174
|
-
...(width ? { width } : {})
|
|
175
|
-
}}
|
|
176
|
-
{...wrapperProps}
|
|
177
|
-
>
|
|
178
|
-
{header}
|
|
179
|
-
<WizardInternal nav={nav} isVisitRequired={isVisitRequired} isProgressive={isProgressive} />
|
|
180
|
-
</div>
|
|
181
|
-
</WizardContextProvider>
|
|
182
|
-
);
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
const WizardInternal = ({
|
|
186
|
-
nav,
|
|
187
|
-
isVisitRequired,
|
|
188
|
-
isProgressive
|
|
189
|
-
}: Pick<WizardProps, 'nav' | 'isVisitRequired' | 'isProgressive'>) => {
|
|
190
|
-
const { activeStep, steps, footer, goToStepByIndex } = useWizardContext();
|
|
191
|
-
const [isNavExpanded, setIsNavExpanded] = React.useState(false);
|
|
192
|
-
|
|
193
|
-
const wizardNav = React.useMemo(() => {
|
|
194
|
-
if (isCustomWizardNav(nav)) {
|
|
195
|
-
return typeof nav === 'function' ? nav(isNavExpanded, steps, activeStep, goToStepByIndex) : nav;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
return (
|
|
199
|
-
<WizardNavInternal
|
|
200
|
-
nav={nav}
|
|
201
|
-
isNavExpanded={isNavExpanded}
|
|
202
|
-
isVisitRequired={isVisitRequired}
|
|
203
|
-
isProgressive={isProgressive}
|
|
204
|
-
/>
|
|
205
|
-
);
|
|
206
|
-
}, [activeStep, isVisitRequired, isProgressive, goToStepByIndex, isNavExpanded, nav, steps]);
|
|
207
|
-
|
|
208
|
-
return (
|
|
209
|
-
<WizardToggle
|
|
210
|
-
nav={wizardNav}
|
|
211
|
-
footer={footer}
|
|
212
|
-
steps={steps}
|
|
213
|
-
activeStep={activeStep}
|
|
214
|
-
isNavExpanded={isNavExpanded}
|
|
215
|
-
toggleNavExpanded={() => setIsNavExpanded(prevIsExpanded => !prevIsExpanded)}
|
|
216
|
-
/>
|
|
217
|
-
);
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
Wizard.displayName = 'Wizard';
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
4
|
-
import { css } from '@patternfly/react-styles';
|
|
5
|
-
import { WizardContext } from './WizardContext';
|
|
6
|
-
import { debounce } from '../../../helpers/util';
|
|
7
|
-
import { getResizeObserver } from '../../../helpers/resizeObserver';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Used as a wrapper for WizardStep content, where the wrapping element is customizable.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export interface WizardBodyProps {
|
|
14
|
-
children: React.ReactNode | React.ReactNode[];
|
|
15
|
-
/** Set to true to remove the default body padding */
|
|
16
|
-
hasNoPadding?: boolean;
|
|
17
|
-
/** Adds an accessible name to the wrapper element when the content overflows and renders
|
|
18
|
-
* a scrollbar.
|
|
19
|
-
*/
|
|
20
|
-
'aria-label'?: string;
|
|
21
|
-
/** Adds an accessible name to the wrapper element by passing the the id of one or more elements.
|
|
22
|
-
* The aria-labelledby will only be applied when the content overflows and renders a scrollbar.
|
|
23
|
-
*/
|
|
24
|
-
'aria-labelledby'?: string;
|
|
25
|
-
/** Component used as the wrapping content container */
|
|
26
|
-
component?: React.ElementType;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const WizardBody = ({
|
|
30
|
-
children,
|
|
31
|
-
hasNoPadding = false,
|
|
32
|
-
'aria-label': ariaLabel,
|
|
33
|
-
'aria-labelledby': ariaLabelledBy,
|
|
34
|
-
component = 'div'
|
|
35
|
-
}: WizardBodyProps) => {
|
|
36
|
-
const [hasScrollbar, setHasScrollbar] = React.useState(false);
|
|
37
|
-
const [previousWidth, setPreviousWidth] = React.useState<number | undefined>(undefined);
|
|
38
|
-
const wrapperRef = React.useRef(null);
|
|
39
|
-
const WrapperComponent = component;
|
|
40
|
-
const { activeStep } = React.useContext(WizardContext);
|
|
41
|
-
const defaultAriaLabel = ariaLabel || `${activeStep?.name} content`;
|
|
42
|
-
|
|
43
|
-
React.useEffect(() => {
|
|
44
|
-
const resize = () => {
|
|
45
|
-
if (wrapperRef?.current) {
|
|
46
|
-
const { offsetWidth, offsetHeight, scrollHeight } = wrapperRef.current;
|
|
47
|
-
|
|
48
|
-
if (previousWidth !== offsetWidth) {
|
|
49
|
-
setPreviousWidth(offsetWidth);
|
|
50
|
-
setHasScrollbar(offsetHeight < scrollHeight);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const handleResizeWithDelay = debounce(resize, 250);
|
|
56
|
-
let observer = () => {};
|
|
57
|
-
|
|
58
|
-
if (wrapperRef?.current) {
|
|
59
|
-
observer = getResizeObserver(wrapperRef.current, handleResizeWithDelay);
|
|
60
|
-
const { offsetHeight, scrollHeight } = wrapperRef.current;
|
|
61
|
-
|
|
62
|
-
setHasScrollbar(offsetHeight < scrollHeight);
|
|
63
|
-
setPreviousWidth((wrapperRef.current as HTMLElement).offsetWidth);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return () => {
|
|
67
|
-
observer();
|
|
68
|
-
};
|
|
69
|
-
}, []);
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<WrapperComponent
|
|
73
|
-
ref={wrapperRef}
|
|
74
|
-
{...(component === 'div' && hasScrollbar && { role: 'region' })}
|
|
75
|
-
{...(hasScrollbar && { 'aria-label': defaultAriaLabel, 'aria-labelledby': ariaLabelledBy, tabIndex: 0 })}
|
|
76
|
-
className={css(styles.wizardMain)}
|
|
77
|
-
>
|
|
78
|
-
<div className={css(styles.wizardMainBody, hasNoPadding && styles.modifiers.noPadding)}>{children}</div>
|
|
79
|
-
</WrapperComponent>
|
|
80
|
-
);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
WizardBody.displayName = 'WizardBody';
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
5
|
-
|
|
6
|
-
import { Button, ButtonVariant } from '../../../components/Button';
|
|
7
|
-
import { isCustomWizardFooter, WizardStepType } from './types';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Hosts the standard structure of a footer with ties to the active step so that text for buttons can vary from step to step.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export interface WizardFooterProps {
|
|
14
|
-
/** The active step */
|
|
15
|
-
activeStep: WizardStepType;
|
|
16
|
-
/** Next button callback */
|
|
17
|
-
onNext: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>;
|
|
18
|
-
/** Back button callback */
|
|
19
|
-
onBack: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>;
|
|
20
|
-
/** Cancel link callback */
|
|
21
|
-
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
-
/** Custom text for the Next button. The current step's nextButtonText takes precedence. */
|
|
23
|
-
nextButtonText?: React.ReactNode;
|
|
24
|
-
/** Custom text for the Back button */
|
|
25
|
-
backButtonText?: React.ReactNode;
|
|
26
|
-
/** Custom text for the Cancel link */
|
|
27
|
-
cancelButtonText?: React.ReactNode;
|
|
28
|
-
/** Flag to disable the next button */
|
|
29
|
-
isNextDisabled?: boolean;
|
|
30
|
-
/** Flag to disable the back button */
|
|
31
|
-
isBackDisabled?: boolean;
|
|
32
|
-
/** True to hide the Back button */
|
|
33
|
-
isBackHidden?: boolean;
|
|
34
|
-
/** True to hide the Cancel button */
|
|
35
|
-
isCancelHidden?: boolean;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Applies default wizard footer styling any number of child elements.
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
interface WizardFooterWrapperProps {
|
|
43
|
-
children: React.ReactNode;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export const WizardFooterWrapper = ({ children }: WizardFooterWrapperProps) => (
|
|
47
|
-
<footer className={css(styles.wizardFooter)}>{children}</footer>
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
export const WizardFooter = ({ activeStep, ...internalProps }: WizardFooterProps) => {
|
|
51
|
-
const activeStepFooter = !isCustomWizardFooter(activeStep?.footer) && activeStep?.footer;
|
|
52
|
-
return <InternalWizardFooter {...internalProps} {...activeStepFooter} />;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const InternalWizardFooter = ({
|
|
56
|
-
onNext,
|
|
57
|
-
onBack,
|
|
58
|
-
onClose,
|
|
59
|
-
isNextDisabled,
|
|
60
|
-
isBackDisabled,
|
|
61
|
-
isBackHidden,
|
|
62
|
-
isCancelHidden,
|
|
63
|
-
nextButtonText = 'Next',
|
|
64
|
-
backButtonText = 'Back',
|
|
65
|
-
cancelButtonText = 'Cancel'
|
|
66
|
-
}: Omit<WizardFooterProps, 'activeStep'>) => (
|
|
67
|
-
<WizardFooterWrapper>
|
|
68
|
-
{!isBackHidden && (
|
|
69
|
-
<Button variant={ButtonVariant.secondary} onClick={onBack} isDisabled={isBackDisabled}>
|
|
70
|
-
{backButtonText}
|
|
71
|
-
</Button>
|
|
72
|
-
)}
|
|
73
|
-
|
|
74
|
-
<Button variant={ButtonVariant.primary} type="submit" onClick={onNext} isDisabled={isNextDisabled}>
|
|
75
|
-
{nextButtonText}
|
|
76
|
-
</Button>
|
|
77
|
-
|
|
78
|
-
{!isCancelHidden && (
|
|
79
|
-
<div className={styles.wizardFooterCancel}>
|
|
80
|
-
<Button variant={ButtonVariant.link} onClick={onClose}>
|
|
81
|
-
{cancelButtonText}
|
|
82
|
-
</Button>
|
|
83
|
-
</div>
|
|
84
|
-
)}
|
|
85
|
-
</WizardFooterWrapper>
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
WizardFooterWrapper.displayName = 'WizardFooterWrapper';
|
|
89
|
-
WizardFooter.displayName = 'WizardFooter';
|