@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
|
@@ -2,318 +2,92 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Wizard = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
6
|
-
const constants_1 = require("../../helpers/constants");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
7
6
|
const react_styles_1 = require("@patternfly/react-styles");
|
|
8
7
|
const wizard_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Wizard/wizard"));
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const WizardToggle_1 = require("./WizardToggle");
|
|
12
|
-
const WizardNav_1 = require("./WizardNav");
|
|
13
|
-
const WizardNavItem_1 = require("./WizardNavItem");
|
|
8
|
+
const types_1 = require("./types");
|
|
9
|
+
const utils_1 = require("./utils");
|
|
14
10
|
const WizardContext_1 = require("./WizardContext");
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
this.onNext = () => {
|
|
30
|
-
const { onNext, onClose, onSave } = this.props;
|
|
31
|
-
const { currentStep } = this.state;
|
|
32
|
-
const flattenedSteps = this.getFlattenedSteps();
|
|
33
|
-
const maxSteps = flattenedSteps.length;
|
|
34
|
-
if (currentStep >= maxSteps) {
|
|
35
|
-
// Hit the save button at the end of the wizard
|
|
36
|
-
if (onSave) {
|
|
37
|
-
return onSave();
|
|
38
|
-
}
|
|
39
|
-
return onClose();
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
let newStep = currentStep;
|
|
43
|
-
for (let nextStep = currentStep; nextStep <= maxSteps; nextStep++) {
|
|
44
|
-
if (!flattenedSteps[nextStep]) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (!flattenedSteps[nextStep].isDisabled) {
|
|
48
|
-
newStep = nextStep + 1;
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
this.setCurrentStep(newStep, flattenedSteps[newStep - 1]);
|
|
53
|
-
const { id: prevId, name: prevName } = flattenedSteps[currentStep - 1];
|
|
54
|
-
const { id, name } = flattenedSteps[newStep - 1];
|
|
55
|
-
return onNext && onNext({ id, name }, { prevId, prevName });
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
this.onBack = () => {
|
|
59
|
-
const { onBack } = this.props;
|
|
60
|
-
const { currentStep } = this.state;
|
|
61
|
-
const flattenedSteps = this.getFlattenedSteps();
|
|
62
|
-
if (flattenedSteps.length < currentStep) {
|
|
63
|
-
// Previous step was removed, just update the currentStep state
|
|
64
|
-
const adjustedStep = flattenedSteps.length;
|
|
65
|
-
this.setCurrentStep(adjustedStep, flattenedSteps[adjustedStep - 1]);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
let newStep = currentStep;
|
|
69
|
-
for (let prevStep = currentStep; prevStep >= 0; prevStep--) {
|
|
70
|
-
if (!flattenedSteps[prevStep - 2]) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
if (!flattenedSteps[prevStep - 2].isDisabled) {
|
|
74
|
-
newStep = prevStep - 1 <= 1 ? 1 : prevStep - 1;
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
this.setCurrentStep(newStep, flattenedSteps[newStep - 1]);
|
|
79
|
-
const { id: prevId, name: prevName } = flattenedSteps[newStep];
|
|
80
|
-
const { id, name } = flattenedSteps[newStep - 1];
|
|
81
|
-
return onBack && onBack({ id, name }, { prevId, prevName });
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
this.goToStep = (step) => {
|
|
85
|
-
const flattenedSteps = this.getFlattenedSteps();
|
|
86
|
-
if (flattenedSteps[step - 1].isDisabled) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
const { onGoToStep } = this.props;
|
|
90
|
-
const { currentStep } = this.state;
|
|
91
|
-
const maxSteps = flattenedSteps.length;
|
|
92
|
-
if (step < 1) {
|
|
93
|
-
step = 1;
|
|
94
|
-
}
|
|
95
|
-
else if (step > maxSteps) {
|
|
96
|
-
step = maxSteps;
|
|
97
|
-
}
|
|
98
|
-
this.setCurrentStep(step, flattenedSteps[step - 1]);
|
|
99
|
-
this.setState({ isNavOpen: false });
|
|
100
|
-
const { id: prevId, name: prevName } = flattenedSteps[currentStep - 1];
|
|
101
|
-
const { id, name } = flattenedSteps[step - 1];
|
|
102
|
-
return onGoToStep && onGoToStep({ id, name }, { prevId, prevName });
|
|
103
|
-
};
|
|
104
|
-
this.goToStepById = (stepId) => {
|
|
105
|
-
const flattenedSteps = this.getFlattenedSteps();
|
|
106
|
-
let step;
|
|
107
|
-
for (let i = 0; i < flattenedSteps.length; i++) {
|
|
108
|
-
if (flattenedSteps[i].id === stepId) {
|
|
109
|
-
step = i + 1;
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
if (step) {
|
|
114
|
-
this.setCurrentStep(step, flattenedSteps[step - 1]);
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
this.goToStepByName = (stepName) => {
|
|
118
|
-
const flattenedSteps = this.getFlattenedSteps();
|
|
119
|
-
let step;
|
|
120
|
-
for (let i = 0; i < flattenedSteps.length; i++) {
|
|
121
|
-
if (flattenedSteps[i].name === stepName) {
|
|
122
|
-
step = i + 1;
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
if (step) {
|
|
127
|
-
this.setCurrentStep(step, flattenedSteps[step - 1]);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
this.getFlattenedSteps = () => {
|
|
131
|
-
const { steps } = this.props;
|
|
132
|
-
const flattenedSteps = [];
|
|
133
|
-
for (const step of steps) {
|
|
134
|
-
if (step.steps) {
|
|
135
|
-
for (const childStep of step.steps) {
|
|
136
|
-
flattenedSteps.push(childStep);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
flattenedSteps.push(step);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
return flattenedSteps;
|
|
144
|
-
};
|
|
145
|
-
this.getFlattenedStepsIndex = (flattenedSteps, stepName) => {
|
|
146
|
-
for (let i = 0; i < flattenedSteps.length; i++) {
|
|
147
|
-
if (flattenedSteps[i].name === stepName) {
|
|
148
|
-
return i + 1;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return 0;
|
|
152
|
-
};
|
|
153
|
-
this.initSteps = (steps) => {
|
|
154
|
-
// Set default Step values
|
|
155
|
-
for (let i = 0; i < steps.length; i++) {
|
|
156
|
-
if (steps[i].steps) {
|
|
157
|
-
for (let j = 0; j < steps[i].steps.length; j++) {
|
|
158
|
-
steps[i].steps[j] = Object.assign({ canJumpTo: true }, steps[i].steps[j]);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
steps[i] = Object.assign({ canJumpTo: true }, steps[i]);
|
|
162
|
-
}
|
|
163
|
-
return steps;
|
|
164
|
-
};
|
|
165
|
-
this.getElement = (appendTo) => {
|
|
166
|
-
if (typeof appendTo === 'function') {
|
|
167
|
-
return appendTo();
|
|
168
|
-
}
|
|
169
|
-
return appendTo || document.body;
|
|
170
|
-
};
|
|
171
|
-
const newId = Wizard.currentId++;
|
|
172
|
-
this.titleId = props.titleId || `pf-wizard-title-${newId}`;
|
|
173
|
-
this.descriptionId = props.descriptionId || `pf-wizard-description-${newId}`;
|
|
174
|
-
this.state = {
|
|
175
|
-
currentStep: this.props.startAtStep && Number.isInteger(this.props.startAtStep) ? this.props.startAtStep : 1,
|
|
176
|
-
isNavOpen: false
|
|
177
|
-
};
|
|
178
|
-
if (props.onCurrentStepChanged) {
|
|
179
|
-
const flattenedSteps = this.getFlattenedSteps();
|
|
180
|
-
if (flattenedSteps.length >= this.state.currentStep) {
|
|
181
|
-
const currentStep = flattenedSteps[this.state.currentStep - 1];
|
|
182
|
-
props.onCurrentStepChanged(currentStep);
|
|
183
|
-
}
|
|
11
|
+
const WizardToggle_1 = require("./WizardToggle");
|
|
12
|
+
const WizardNavInternal_1 = require("./WizardNavInternal");
|
|
13
|
+
const Wizard = (_a) => {
|
|
14
|
+
var { children, footer, height, width, className, header, nav, startIndex = 1, isVisitRequired = false, isProgressive = false, onStepChange, onSave, onClose } = _a, wrapperProps = tslib_1.__rest(_a, ["children", "footer", "height", "width", "className", "header", "nav", "startIndex", "isVisitRequired", "isProgressive", "onStepChange", "onSave", "onClose"]);
|
|
15
|
+
const [activeStepIndex, setActiveStepIndex] = react_1.default.useState(startIndex);
|
|
16
|
+
const initialSteps = (0, utils_1.buildSteps)(children);
|
|
17
|
+
const firstStepRef = react_1.default.useRef(initialSteps[startIndex - 1]);
|
|
18
|
+
// When the startIndex maps to a parent step, focus on the first sub-step
|
|
19
|
+
react_1.default.useEffect(() => {
|
|
20
|
+
if ((0, types_1.isWizardParentStep)(firstStepRef.current)) {
|
|
21
|
+
setActiveStepIndex(startIndex + 1);
|
|
184
22
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
});
|
|
191
|
-
if (this.props.onCurrentStepChanged) {
|
|
192
|
-
this.props.onCurrentStepChanged(currentStepObject);
|
|
23
|
+
}, [startIndex]);
|
|
24
|
+
const goToNextStep = (event, steps = initialSteps) => {
|
|
25
|
+
const newStep = steps.find(step => step.index > activeStepIndex && !step.isHidden && !step.isDisabled && !(0, types_1.isWizardParentStep)(step));
|
|
26
|
+
if (activeStepIndex >= steps.length || !(newStep === null || newStep === void 0 ? void 0 : newStep.index)) {
|
|
27
|
+
return onSave ? onSave(event) : onClose === null || onClose === void 0 ? void 0 : onClose(event);
|
|
193
28
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
29
|
+
const currStep = (0, types_1.isWizardParentStep)(steps[activeStepIndex]) ? steps[activeStepIndex + 1] : steps[activeStepIndex];
|
|
30
|
+
const prevStep = steps[activeStepIndex - 1];
|
|
31
|
+
setActiveStepIndex(newStep === null || newStep === void 0 ? void 0 : newStep.index);
|
|
32
|
+
onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(event, currStep, prevStep, types_1.WizardStepChangeScope.Next);
|
|
33
|
+
};
|
|
34
|
+
const goToPrevStep = (event, steps = initialSteps) => {
|
|
35
|
+
const newStep = [...steps]
|
|
36
|
+
.reverse()
|
|
37
|
+
.find((step) => step.index < activeStepIndex && !step.isHidden && !step.isDisabled && !(0, types_1.isWizardParentStep)(step));
|
|
38
|
+
const currStep = (0, types_1.isWizardParentStep)(steps[activeStepIndex - 2])
|
|
39
|
+
? steps[activeStepIndex - 3]
|
|
40
|
+
: steps[activeStepIndex - 2];
|
|
41
|
+
const prevStep = steps[activeStepIndex - 1];
|
|
42
|
+
setActiveStepIndex(newStep === null || newStep === void 0 ? void 0 : newStep.index);
|
|
43
|
+
onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(event, currStep, prevStep, types_1.WizardStepChangeScope.Back);
|
|
44
|
+
};
|
|
45
|
+
const goToStepByIndex = (event, steps = initialSteps, index) => {
|
|
46
|
+
const lastStepIndex = steps.length + 1;
|
|
47
|
+
// Handle index when out of bounds or hidden
|
|
48
|
+
if (index < 1) {
|
|
49
|
+
index = 1;
|
|
199
50
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
const target = (typeof document !== 'undefined' && document.body) || null;
|
|
203
|
-
if (target) {
|
|
204
|
-
target.removeEventListener('keydown', this.handleKeyClicks, false);
|
|
51
|
+
else if (index > lastStepIndex) {
|
|
52
|
+
index = lastStepIndex;
|
|
205
53
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
54
|
+
const currStep = steps[index - 1];
|
|
55
|
+
const prevStep = steps[activeStepIndex - 1];
|
|
56
|
+
setActiveStepIndex(index);
|
|
57
|
+
onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(event, currStep, prevStep, types_1.WizardStepChangeScope.Nav);
|
|
58
|
+
};
|
|
59
|
+
const goToStepById = (steps = initialSteps, id) => {
|
|
60
|
+
const step = steps.find(step => step.id === id);
|
|
61
|
+
const stepIndex = step === null || step === void 0 ? void 0 : step.index;
|
|
62
|
+
const lastStepIndex = steps.length + 1;
|
|
63
|
+
if (stepIndex > 0 && stepIndex < lastStepIndex && !step.isDisabled && !step.isHidden) {
|
|
64
|
+
setActiveStepIndex(stepIndex);
|
|
210
65
|
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
const { currentStep } = this.state;
|
|
219
|
-
const flattenedSteps = this.getFlattenedSteps();
|
|
220
|
-
const adjustedStep = flattenedSteps.length < currentStep ? flattenedSteps.length : currentStep;
|
|
221
|
-
const activeStep = flattenedSteps[adjustedStep - 1];
|
|
222
|
-
const computedSteps = this.initSteps(steps);
|
|
223
|
-
const firstStep = activeStep === flattenedSteps[0];
|
|
224
|
-
const isValid = activeStep && activeStep.enableNext !== undefined ? activeStep.enableNext : true;
|
|
225
|
-
const nav = (isWizardNavOpen) => {
|
|
226
|
-
const wizNavAProps = {
|
|
227
|
-
isOpen: isWizardNavOpen,
|
|
228
|
-
'aria-label': navAriaLabel,
|
|
229
|
-
'aria-labelledby': (title || navAriaLabelledBy) && (navAriaLabelledBy || this.titleId)
|
|
230
|
-
};
|
|
231
|
-
return (React.createElement(WizardNav_1.WizardNav, Object.assign({}, wizNavAProps), computedSteps.map((step, index) => {
|
|
232
|
-
if (step.isFinishedStep) {
|
|
233
|
-
// Don't show finished step in the side nav
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
let enabled;
|
|
237
|
-
let navItemStep;
|
|
238
|
-
if (step.steps) {
|
|
239
|
-
let hasActiveChild = false;
|
|
240
|
-
let canJumpToParent = false;
|
|
241
|
-
for (const subStep of step.steps) {
|
|
242
|
-
if (activeStep.name === subStep.name) {
|
|
243
|
-
// one of the children matches
|
|
244
|
-
hasActiveChild = true;
|
|
245
|
-
}
|
|
246
|
-
if (subStep.canJumpTo) {
|
|
247
|
-
canJumpToParent = true;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.steps[0].name);
|
|
251
|
-
return (React.createElement(WizardNavItem_1.WizardNavItem, { key: index, id: step.id, content: step.name, isExpandable: isNavExpandable, isCurrent: hasActiveChild, isDisabled: !canJumpToParent, step: navItemStep, onNavItemClick: this.goToStep },
|
|
252
|
-
React.createElement(WizardNav_1.WizardNav, Object.assign({}, wizNavAProps, { returnList: true }), step.steps.map((childStep, indexChild) => {
|
|
253
|
-
if (childStep.isFinishedStep) {
|
|
254
|
-
// Don't show finished step in the side nav
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
navItemStep = this.getFlattenedStepsIndex(flattenedSteps, childStep.name);
|
|
258
|
-
enabled = childStep.canJumpTo && !childStep.isDisabled;
|
|
259
|
-
return (React.createElement(WizardNavItem_1.WizardNavItem, { key: `child_${indexChild}`, id: childStep.id, content: childStep.name, isCurrent: activeStep.name === childStep.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep }));
|
|
260
|
-
}))));
|
|
261
|
-
}
|
|
262
|
-
navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.name);
|
|
263
|
-
enabled = step.canJumpTo && !step.isDisabled;
|
|
264
|
-
return (React.createElement(WizardNavItem_1.WizardNavItem, Object.assign({}, step.stepNavItemProps, { key: index, id: step.id, content: step.name, isCurrent: activeStep.name === step.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep })));
|
|
265
|
-
})));
|
|
266
|
-
};
|
|
267
|
-
const context = {
|
|
268
|
-
goToStepById: this.goToStepById,
|
|
269
|
-
goToStepByName: this.goToStepByName,
|
|
270
|
-
onNext: this.onNext,
|
|
271
|
-
onBack: this.onBack,
|
|
272
|
-
onClose,
|
|
273
|
-
activeStep
|
|
274
|
-
};
|
|
275
|
-
const divStyles = Object.assign(Object.assign({}, (height ? { height } : {})), (width ? { width } : {}));
|
|
276
|
-
const wizard = (React.createElement(WizardContext_1.WizardContextProvider, { value: context },
|
|
277
|
-
React.createElement("div", Object.assign({}, rest, { className: (0, react_styles_1.css)(wizard_1.default.wizard, activeStep && activeStep.isFinishedStep && 'pf-m-finished', className), style: Object.keys(divStyles).length ? divStyles : undefined }),
|
|
278
|
-
title && (React.createElement(WizardHeader_1.WizardHeader, { titleId: this.titleId, descriptionId: this.descriptionId, onClose: onClose, title: title, description: description, descriptionComponent: descriptionComponent, closeButtonAriaLabel: closeButtonAriaLabel, hideClose: hideClose })),
|
|
279
|
-
React.createElement(WizardToggle_1.WizardToggle, { hasDrawer: hasDrawer, isDrawerExpanded: isDrawerExpanded, onExpandDrawer: onExpandDrawer, mainAriaLabel: mainAriaLabel, isInPage: isOpen === undefined, mainAriaLabelledBy: (title || mainAriaLabelledBy) && (mainAriaLabelledBy || this.titleId), isNavOpen: this.state.isNavOpen, onNavToggle: isNavOpen => this.setState({ isNavOpen }), nav: nav, steps: steps, activeStep: activeStep, hasNoBodyPadding: hasNoBodyPadding }, footer || (React.createElement(WizardFooterInternal_1.WizardFooterInternal, { onNext: this.onNext, onBack: this.onBack, onClose: onClose, isValid: isValid, firstStep: firstStep, activeStep: activeStep, nextButtonText: (activeStep && activeStep.nextButtonText) || nextButtonText, backButtonText: backButtonText, cancelButtonText: cancelButtonText }))))));
|
|
280
|
-
if (isOpen !== undefined) {
|
|
281
|
-
return (React.createElement(Modal_1.Modal, { width: width !== null ? width : undefined, isOpen: isOpen, variant: Modal_1.ModalVariant.large, "aria-labelledby": this.titleId, "aria-describedby": this.descriptionId, showClose: false, hasNoBodyWrapper: true }, wizard));
|
|
66
|
+
};
|
|
67
|
+
const goToStepByName = (steps = initialSteps, name) => {
|
|
68
|
+
const step = steps.find(step => step.name === name);
|
|
69
|
+
const stepIndex = step === null || step === void 0 ? void 0 : step.index;
|
|
70
|
+
const lastStepIndex = steps.length + 1;
|
|
71
|
+
if (stepIndex > 0 && stepIndex < lastStepIndex && !step.isDisabled && !step.isHidden) {
|
|
72
|
+
setActiveStepIndex(stepIndex);
|
|
282
73
|
}
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
}
|
|
74
|
+
};
|
|
75
|
+
return (react_1.default.createElement(WizardContext_1.WizardContextProvider, { steps: initialSteps, activeStepIndex: activeStepIndex, footer: footer, onNext: goToNextStep, onBack: goToPrevStep, onClose: onClose, goToStepById: goToStepById, goToStepByName: goToStepByName, goToStepByIndex: goToStepByIndex },
|
|
76
|
+
react_1.default.createElement("div", Object.assign({ className: (0, react_styles_1.css)(wizard_1.default.wizard, className), style: Object.assign(Object.assign({}, (height ? { height } : {})), (width ? { width } : {})) }, wrapperProps),
|
|
77
|
+
header,
|
|
78
|
+
react_1.default.createElement(WizardInternal, { nav: nav, isVisitRequired: isVisitRequired, isProgressive: isProgressive }))));
|
|
79
|
+
};
|
|
286
80
|
exports.Wizard = Wizard;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
cancelButtonText: 'Cancel',
|
|
298
|
-
hideClose: false,
|
|
299
|
-
closeButtonAriaLabel: 'Close',
|
|
300
|
-
navAriaLabel: null,
|
|
301
|
-
navAriaLabelledBy: null,
|
|
302
|
-
mainAriaLabel: null,
|
|
303
|
-
mainAriaLabelledBy: null,
|
|
304
|
-
hasNoBodyPadding: false,
|
|
305
|
-
onBack: null,
|
|
306
|
-
onNext: null,
|
|
307
|
-
onGoToStep: null,
|
|
308
|
-
width: null,
|
|
309
|
-
height: null,
|
|
310
|
-
footer: null,
|
|
311
|
-
onClose: () => undefined,
|
|
312
|
-
appendTo: null,
|
|
313
|
-
isOpen: undefined,
|
|
314
|
-
isNavExpandable: false,
|
|
315
|
-
hasDrawer: false,
|
|
316
|
-
isDrawerExpanded: false,
|
|
317
|
-
onExpandDrawer: () => undefined
|
|
81
|
+
const WizardInternal = ({ nav, isVisitRequired, isProgressive }) => {
|
|
82
|
+
const { activeStep, steps, footer, goToStepByIndex } = (0, WizardContext_1.useWizardContext)();
|
|
83
|
+
const [isNavExpanded, setIsNavExpanded] = react_1.default.useState(false);
|
|
84
|
+
const wizardNav = react_1.default.useMemo(() => {
|
|
85
|
+
if ((0, types_1.isCustomWizardNav)(nav)) {
|
|
86
|
+
return typeof nav === 'function' ? nav(isNavExpanded, steps, activeStep, goToStepByIndex) : nav;
|
|
87
|
+
}
|
|
88
|
+
return (react_1.default.createElement(WizardNavInternal_1.WizardNavInternal, { nav: nav, isNavExpanded: isNavExpanded, isVisitRequired: isVisitRequired, isProgressive: isProgressive }));
|
|
89
|
+
}, [activeStep, isVisitRequired, isProgressive, goToStepByIndex, isNavExpanded, nav, steps]);
|
|
90
|
+
return (react_1.default.createElement(WizardToggle_1.WizardToggle, { nav: wizardNav, footer: footer, steps: steps, activeStep: activeStep, isNavExpanded: isNavExpanded, toggleNavExpanded: () => setIsNavExpanded(prevIsExpanded => !prevIsExpanded) }));
|
|
318
91
|
};
|
|
92
|
+
exports.Wizard.displayName = 'Wizard';
|
|
319
93
|
//# sourceMappingURL=Wizard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wizard.js","sourceRoot":"","sources":["../../../../src/components/Wizard/Wizard.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAAmD;AACnD,2DAA+C;AAC/C,2GAA2E;AAC3E,oCAA+C;AAC/C,iEAA8D;AAC9D,iDAA8C;AAC9C,2CAAwC;AACxC,mDAAoE;AACpE,mDAAwD;AAExD,iDAA8C;AAoH9C,MAAa,MAAO,SAAQ,KAAK,CAAC,SAAmC;IAqCnE,YAAY,KAAkB;QAC5B,KAAK,CAAC,KAAK,CAAC,CAAC;QAqBP,oBAAe,GAAG,CAAC,KAAoB,EAAQ,EAAE;YACvD,IAAI,KAAK,CAAC,GAAG,KAAK,oBAAQ,CAAC,MAAM,EAAE;gBACjC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;oBACxB,IAAI,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;iBACrD;qBAAM,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;oBAC5B,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;iBACtB;aACF;QACH,CAAC,CAAC;QAEM,WAAM,GAAG,GAAS,EAAE;YAC1B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAC/C,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YACnC,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAChD,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAM,CAAC;YACvC,IAAI,WAAW,IAAI,QAAQ,EAAE;gBAC3B,+CAA+C;gBAC/C,IAAI,MAAM,EAAE;oBACV,OAAO,MAAM,E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KAAK,CAAC,CAAC;IAEhE,MAAM,SAAS,GAAG,eAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACnC,IAAI,IAAA,yBAAiB,EAAC,GAAG,CAAC,EAAE;YAC1B,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;SACjG;QAED,OAAO,CACL,8BAAC,qCAAiB,IAChB,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,GAC5B,CACH,CAAC;IACJ,CAAC,EAAE,CAAC,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAE7F,OAAO,CACL,8BAAC,2BAAY,IACX,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,GAC5E,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Used as a wrapper for WizardStep content, where the wrapping element is customizable.
|
|
4
|
+
*/
|
|
3
5
|
export interface WizardBodyProps {
|
|
4
6
|
/** Anything that can be rendered in the Wizard body */
|
|
5
|
-
children:
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
/** Adds an accessible name to the
|
|
7
|
+
children: React.ReactNode | React.ReactNode[];
|
|
8
|
+
/** Flag to remove the default body padding */
|
|
9
|
+
hasNoPadding?: boolean;
|
|
10
|
+
/** Adds an accessible name to the wrapper element when the content overflows and renders
|
|
9
11
|
* a scrollbar.
|
|
10
12
|
*/
|
|
11
13
|
'aria-label'?: string;
|
|
12
|
-
/** Adds an accessible name to the
|
|
13
|
-
* The aria-labelledby will only be applied when the
|
|
14
|
+
/** Adds an accessible name to the wrapper element by passing the the id of one or more elements.
|
|
15
|
+
* The aria-labelledby will only be applied when the content overflows and renders a scrollbar.
|
|
14
16
|
*/
|
|
15
|
-
'aria-labelledby'
|
|
16
|
-
/** Component used as the
|
|
17
|
-
|
|
18
|
-
/** The currently active WizardStep */
|
|
19
|
-
activeStep: WizardStep;
|
|
20
|
-
hasDrawer?: boolean;
|
|
21
|
-
/** Flag indicating the wizard drawer is expanded */
|
|
22
|
-
isDrawerExpanded?: boolean;
|
|
23
|
-
/** Callback function for when the drawer is toggled */
|
|
24
|
-
onExpandDrawer?: () => void;
|
|
17
|
+
'aria-labelledby'?: string;
|
|
18
|
+
/** Component used as the wrapping content container */
|
|
19
|
+
component?: React.ElementType;
|
|
25
20
|
}
|
|
26
|
-
export declare const WizardBody:
|
|
21
|
+
export declare const WizardBody: {
|
|
22
|
+
({ children, hasNoPadding, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, component }: WizardBodyProps): JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
27
25
|
//# sourceMappingURL=WizardBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardBody.d.ts","sourceRoot":"","sources":["../../../../src/components/Wizard/WizardBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"WizardBody.d.ts","sourceRoot":"","sources":["../../../../src/components/Wizard/WizardBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC9B,uDAAuD;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IAC9C,8CAA8C;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uDAAuD;IACvD,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B;AAED,eAAO,MAAM,UAAU;wGAMpB,eAAe;;CA8CjB,CAAC"}
|
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WizardBody = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const wizard_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Wizard/wizard"));
|
|
7
7
|
const react_styles_1 = require("@patternfly/react-styles");
|
|
8
|
-
const
|
|
9
|
-
const Drawer_1 = require("../Drawer");
|
|
8
|
+
const WizardContext_1 = require("./WizardContext");
|
|
10
9
|
const util_1 = require("../../helpers/util");
|
|
11
10
|
const resizeObserver_1 = require("../../helpers/resizeObserver");
|
|
12
|
-
const WizardBody = ({ children,
|
|
13
|
-
const
|
|
14
|
-
const [
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
|
|
11
|
+
const WizardBody = ({ children, hasNoPadding = false, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, component = 'div' }) => {
|
|
12
|
+
const [hasScrollbar, setHasScrollbar] = react_1.default.useState(false);
|
|
13
|
+
const [previousWidth, setPreviousWidth] = react_1.default.useState(undefined);
|
|
14
|
+
const wrapperRef = react_1.default.useRef(null);
|
|
15
|
+
const WrapperComponent = component;
|
|
16
|
+
const { activeStep } = react_1.default.useContext(WizardContext_1.WizardContext);
|
|
17
|
+
const defaultAriaLabel = ariaLabel || `${activeStep === null || activeStep === void 0 ? void 0 : activeStep.name} content`;
|
|
18
|
+
react_1.default.useEffect(() => {
|
|
18
19
|
const resize = () => {
|
|
19
|
-
if (
|
|
20
|
-
const { offsetWidth, offsetHeight, scrollHeight } =
|
|
20
|
+
if (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current) {
|
|
21
|
+
const { offsetWidth, offsetHeight, scrollHeight } = wrapperRef.current;
|
|
21
22
|
if (previousWidth !== offsetWidth) {
|
|
22
23
|
setPreviousWidth(offsetWidth);
|
|
23
24
|
setHasScrollbar(offsetHeight < scrollHeight);
|
|
@@ -26,20 +27,18 @@ const WizardBody = ({ children, hasNoBodyPadding = false, 'aria-label': ariaLabe
|
|
|
26
27
|
};
|
|
27
28
|
const handleResizeWithDelay = (0, util_1.debounce)(resize, 250);
|
|
28
29
|
let observer = () => { };
|
|
29
|
-
if (
|
|
30
|
-
observer = (0, resizeObserver_1.getResizeObserver)(
|
|
31
|
-
const { offsetHeight, scrollHeight } =
|
|
30
|
+
if (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current) {
|
|
31
|
+
observer = (0, resizeObserver_1.getResizeObserver)(wrapperRef.current, handleResizeWithDelay);
|
|
32
|
+
const { offsetHeight, scrollHeight } = wrapperRef.current;
|
|
32
33
|
setHasScrollbar(offsetHeight < scrollHeight);
|
|
33
|
-
setPreviousWidth(
|
|
34
|
+
setPreviousWidth(wrapperRef.current.offsetWidth);
|
|
34
35
|
}
|
|
35
36
|
return () => {
|
|
36
37
|
observer();
|
|
37
38
|
};
|
|
38
39
|
}, []);
|
|
39
|
-
return (
|
|
40
|
-
|
|
41
|
-
React.createElement(Drawer_1.DrawerContent, { panelContent: activeStep.drawerPanelContent }, children))) },
|
|
42
|
-
React.createElement("div", { className: (0, react_styles_1.css)(wizard_1.default.wizardMainBody, hasNoBodyPadding && wizard_1.default.modifiers.noPadding) }, children))));
|
|
40
|
+
return (react_1.default.createElement(WrapperComponent, Object.assign({ ref: wrapperRef }, (component === 'div' && hasScrollbar && { role: 'region' }), (hasScrollbar && { 'aria-label': defaultAriaLabel, 'aria-labelledby': ariaLabelledBy, tabIndex: 0 }), { className: (0, react_styles_1.css)(wizard_1.default.wizardMain) }),
|
|
41
|
+
react_1.default.createElement("div", { className: (0, react_styles_1.css)(wizard_1.default.wizardMainBody, hasNoPadding && wizard_1.default.modifiers.noPadding) }, children)));
|
|
43
42
|
};
|
|
44
43
|
exports.WizardBody = WizardBody;
|
|
45
44
|
exports.WizardBody.displayName = 'WizardBody';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardBody.js","sourceRoot":"","sources":["../../../../src/components/Wizard/WizardBody.tsx"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"WizardBody.js","sourceRoot":"","sources":["../../../../src/components/Wizard/WizardBody.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAE1B,2GAA2E;AAC3E,2DAA+C;AAC/C,mDAAgD;AAChD,6CAA8C;AAC9C,iEAAiE;AAuB1D,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,YAAY,GAAG,KAAK,EACpB,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,SAAS,GAAG,KAAK,EACD,EAAE,EAAE;IACpB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAqB,SAAS,CAAC,CAAC;IACxF,MAAM,UAAU,GAAG,eAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACtC,MAAM,gBAAgB,GAAG,SAAS,CAAC;IACnC,MAAM,EAAE,UAAU,EAAE,GAAG,eAAK,CAAC,UAAU,CAAC,6BAAa,CAAC,CAAC;IACvD,MAAM,gBAAgB,GAAG,SAAS,IAAI,GAAG,UAAU,aAA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EAAE,CAAC,EAAE,CAAC,IACxG,SAAS,EAAE,IAAA,kBAAG,EAAC,gBAAM,CAAC,UAAU,CAAC;QAEjC,uCAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,gBAAM,CAAC,cAAc,EAAE,YAAY,IAAI,gBAAM,CAAC,SAAS,CAAC,SAAS,CAAC,IAAG,QAAQ,CAAO,CACvF,CACpB,CAAC;AACJ,CAAC,CAAC;AApDW,QAAA,UAAU,cAoDrB;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -1,14 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WizardStepType, WizardFooterType } from './types';
|
|
3
|
+
import { WizardFooterProps } from './WizardFooter';
|
|
4
|
+
export interface WizardContextProps {
|
|
5
|
+
/** List of steps */
|
|
6
|
+
steps: WizardStepType[];
|
|
7
|
+
/** Current step */
|
|
8
|
+
activeStep: WizardStepType;
|
|
9
|
+
/** Footer element */
|
|
10
|
+
footer: React.ReactElement;
|
|
11
|
+
/** Close the wizard */
|
|
12
|
+
close: () => void;
|
|
13
|
+
/** Navigate to the next step */
|
|
14
|
+
goToNextStep: () => void | Promise<void>;
|
|
15
|
+
/** Navigate to the previous step */
|
|
16
|
+
goToPrevStep: () => void | Promise<void>;
|
|
17
|
+
/** Navigate to step by ID */
|
|
18
|
+
goToStepById: (id: number | string) => void;
|
|
19
|
+
/** Navigate to step by name */
|
|
20
|
+
goToStepByName: (name: string) => void;
|
|
21
|
+
/** Navigate to step by index */
|
|
22
|
+
goToStepByIndex: (index: number) => void;
|
|
23
|
+
/** Update the footer with any react element */
|
|
24
|
+
setFooter: (footer: React.ReactElement | Partial<WizardFooterProps>) => void;
|
|
25
|
+
/** Get step by ID */
|
|
26
|
+
getStep: (stepId: number | string) => WizardStepType;
|
|
27
|
+
/** Set step by ID */
|
|
28
|
+
setStep: (step: Pick<WizardStepType, 'id'> & Partial<WizardStepType>) => void;
|
|
10
29
|
}
|
|
11
|
-
export declare const WizardContext: React.Context<
|
|
12
|
-
export
|
|
13
|
-
|
|
30
|
+
export declare const WizardContext: React.Context<WizardContextProps>;
|
|
31
|
+
export interface WizardContextProviderProps {
|
|
32
|
+
steps: WizardStepType[];
|
|
33
|
+
activeStepIndex: number;
|
|
34
|
+
footer: WizardFooterType;
|
|
35
|
+
children: React.ReactElement;
|
|
36
|
+
onNext(event: React.MouseEvent<HTMLButtonElement>, steps: WizardStepType[]): void;
|
|
37
|
+
onBack(event: React.MouseEvent<HTMLButtonElement>, steps: WizardStepType[]): void;
|
|
38
|
+
onClose?(event: React.MouseEvent<HTMLButtonElement>): void;
|
|
39
|
+
goToStepById(steps: WizardStepType[], id: number | string): void;
|
|
40
|
+
goToStepByName(steps: WizardStepType[], name: string): void;
|
|
41
|
+
goToStepByIndex(event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLAnchorElement>, steps: WizardStepType[], index: number): void;
|
|
42
|
+
}
|
|
43
|
+
export declare const WizardContextProvider: React.FunctionComponent<WizardContextProviderProps>;
|
|
44
|
+
export declare const useWizardContext: () => WizardContextProps;
|
|
14
45
|
//# sourceMappingURL=WizardContext.d.ts.map
|