@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
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WizardNavItemProps } from './WizardNavItem';
|
|
3
|
+
import { PickOptional } from '../../../helpers/typeUtils';
|
|
4
|
+
export interface WizardStep {
|
|
5
|
+
/** Optional identifier */
|
|
6
|
+
id?: string | number;
|
|
7
|
+
/** The name of the step */
|
|
8
|
+
name: React.ReactNode;
|
|
9
|
+
/** The component to render in the main body */
|
|
10
|
+
component?: any;
|
|
11
|
+
/** The content to render in the drawer panel (use when hasDrawer prop is set on the wizard). */
|
|
12
|
+
drawerPanelContent?: any;
|
|
13
|
+
/** Custom drawer toggle button that opens the drawer. */
|
|
14
|
+
drawerToggleButton?: React.ReactNode;
|
|
15
|
+
/** Setting to true hides the side nav and footer */
|
|
16
|
+
isFinishedStep?: boolean;
|
|
17
|
+
/** Enables or disables the step in the navigation. Enabled by default. */
|
|
18
|
+
canJumpTo?: boolean;
|
|
19
|
+
/** Sub steps */
|
|
20
|
+
steps?: WizardStep[];
|
|
21
|
+
/** Props to pass to the WizardNavItem */
|
|
22
|
+
stepNavItemProps?: React.HTMLProps<HTMLButtonElement | HTMLAnchorElement> | WizardNavItemProps;
|
|
23
|
+
/** (Unused if footer is controlled) Can change the Next button text. If nextButtonText is also set for the Wizard, this step specific one overrides it. */
|
|
24
|
+
nextButtonText?: React.ReactNode;
|
|
25
|
+
/** (Unused if footer is controlled) The condition needed to enable the Next button */
|
|
26
|
+
enableNext?: boolean;
|
|
27
|
+
/** (Unused if footer is controlled) True to hide the Cancel button */
|
|
28
|
+
hideCancelButton?: boolean;
|
|
29
|
+
/** (Unused if footer is controlled) True to hide the Back button */
|
|
30
|
+
hideBackButton?: boolean;
|
|
31
|
+
/** Flag to disable the step in the navigation */
|
|
32
|
+
isDisabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare type WizardStepFunctionType = (newStep: {
|
|
35
|
+
id?: string | number;
|
|
36
|
+
name: React.ReactNode;
|
|
37
|
+
}, prevStep: {
|
|
38
|
+
prevId?: string | number;
|
|
39
|
+
prevName: React.ReactNode;
|
|
40
|
+
}) => void;
|
|
41
|
+
export interface WizardProps extends React.HTMLProps<HTMLDivElement> {
|
|
42
|
+
/** Custom width of the wizard */
|
|
43
|
+
width?: number | string;
|
|
44
|
+
/** Custom height of the wizard */
|
|
45
|
+
height?: number | string;
|
|
46
|
+
/** The wizard title to display if header is desired */
|
|
47
|
+
title?: string;
|
|
48
|
+
/** An optional id for the title */
|
|
49
|
+
titleId?: string;
|
|
50
|
+
/** An optional id for the description */
|
|
51
|
+
descriptionId?: string;
|
|
52
|
+
/** The wizard description */
|
|
53
|
+
description?: React.ReactNode;
|
|
54
|
+
/** Component type of the description */
|
|
55
|
+
descriptionComponent?: 'div' | 'p';
|
|
56
|
+
/** Flag indicating whether the close button should be in the header */
|
|
57
|
+
hideClose?: boolean;
|
|
58
|
+
/** Callback function to close the wizard */
|
|
59
|
+
onClose?: () => void;
|
|
60
|
+
/** Callback function when a step in the nav is clicked */
|
|
61
|
+
onGoToStep?: WizardStepFunctionType;
|
|
62
|
+
/** Additional classes spread to the Wizard */
|
|
63
|
+
className?: string;
|
|
64
|
+
/** The wizard steps configuration object */
|
|
65
|
+
steps: WizardStep[];
|
|
66
|
+
/** The current step the wizard is on (1 or higher) */
|
|
67
|
+
startAtStep?: number;
|
|
68
|
+
/** Aria-label for the Nav */
|
|
69
|
+
navAriaLabel?: string;
|
|
70
|
+
/** Sets aria-labelledby on nav element */
|
|
71
|
+
navAriaLabelledBy?: string;
|
|
72
|
+
/** Adds an accessible name to the wizard body when the body content overflows and renders
|
|
73
|
+
* a scrollbar.
|
|
74
|
+
*/
|
|
75
|
+
mainAriaLabel?: string;
|
|
76
|
+
/** Adds an accessible name to the wizard body by passing the the id of one or more elements.
|
|
77
|
+
* The aria-labelledby will only be applied when the body content overflows and renders a scrollbar.
|
|
78
|
+
*/
|
|
79
|
+
mainAriaLabelledBy?: string;
|
|
80
|
+
/** Can remove the default padding around the main body content by setting this to true */
|
|
81
|
+
hasNoBodyPadding?: boolean;
|
|
82
|
+
/** (Use to control the footer) Passing in a footer component lets you control the buttons yourself */
|
|
83
|
+
footer?: React.ReactNode;
|
|
84
|
+
/** (Unused if footer is controlled) Callback function to save at the end of the wizard, if not specified uses onClose */
|
|
85
|
+
onSave?: () => void;
|
|
86
|
+
/** (Unused if footer is controlled) Callback function after Next button is clicked */
|
|
87
|
+
onNext?: WizardStepFunctionType;
|
|
88
|
+
/** (Unused if footer is controlled) Callback function after Back button is clicked */
|
|
89
|
+
onBack?: WizardStepFunctionType;
|
|
90
|
+
/** (Unused if footer is controlled) The Next button text */
|
|
91
|
+
nextButtonText?: React.ReactNode;
|
|
92
|
+
/** (Unused if footer is controlled) The Back button text */
|
|
93
|
+
backButtonText?: React.ReactNode;
|
|
94
|
+
/** (Unused if footer is controlled) The Cancel button text */
|
|
95
|
+
cancelButtonText?: React.ReactNode;
|
|
96
|
+
/** (Unused if footer is controlled) aria-label for the close button */
|
|
97
|
+
closeButtonAriaLabel?: string;
|
|
98
|
+
/** The parent container to append the modal to. Defaults to document.body */
|
|
99
|
+
appendTo?: HTMLElement | (() => HTMLElement);
|
|
100
|
+
/** Flag indicating Wizard modal is open. Wizard will be placed into a modal if this prop is provided */
|
|
101
|
+
isOpen?: boolean;
|
|
102
|
+
/** Flag indicating nav items with sub steps are expandable */
|
|
103
|
+
isNavExpandable?: boolean;
|
|
104
|
+
/** Callback function to signal the current step in the wizard */
|
|
105
|
+
onCurrentStepChanged?: (step: WizardStep) => void;
|
|
106
|
+
/** Flag indicating the wizard has a drawer for at least one of the wizard steps */
|
|
107
|
+
hasDrawer?: boolean;
|
|
108
|
+
/** Flag indicating the wizard drawer is expanded */
|
|
109
|
+
isDrawerExpanded?: boolean;
|
|
110
|
+
/** Callback function for when the drawer is toggled. Can be used to set browser focus in the drawer. */
|
|
111
|
+
onExpandDrawer?: () => void;
|
|
112
|
+
}
|
|
113
|
+
interface WizardState {
|
|
114
|
+
currentStep: number;
|
|
115
|
+
isNavOpen: boolean;
|
|
116
|
+
}
|
|
117
|
+
export declare class Wizard extends React.Component<WizardProps, WizardState> {
|
|
118
|
+
static displayName: string;
|
|
119
|
+
private static currentId;
|
|
120
|
+
static defaultProps: PickOptional<WizardProps>;
|
|
121
|
+
private titleId;
|
|
122
|
+
private descriptionId;
|
|
123
|
+
private drawerRef;
|
|
124
|
+
constructor(props: WizardProps);
|
|
125
|
+
private handleKeyClicks;
|
|
126
|
+
private onNext;
|
|
127
|
+
private onBack;
|
|
128
|
+
private goToStep;
|
|
129
|
+
private goToStepById;
|
|
130
|
+
private goToStepByName;
|
|
131
|
+
private getFlattenedSteps;
|
|
132
|
+
private getFlattenedStepsIndex;
|
|
133
|
+
private initSteps;
|
|
134
|
+
getElement: (appendTo: HTMLElement | (() => HTMLElement)) => HTMLElement;
|
|
135
|
+
private setCurrentStep;
|
|
136
|
+
componentDidMount(): void;
|
|
137
|
+
componentWillUnmount(): void;
|
|
138
|
+
componentDidUpdate(prevProps: Readonly<WizardProps>): void;
|
|
139
|
+
render(): JSX.Element;
|
|
140
|
+
}
|
|
141
|
+
export {};
|
|
142
|
+
//# sourceMappingURL=Wizard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wizard.d.ts","sourceRoot":"","sources":["../../../../../src/deprecated/components/Wizard/W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9B,OAAO,CAAC,eAAe,CAQrB;IAEF,OAAO,CAAC,MAAM,CA8BZ;IAEF,OAAO,CAAC,MAAM,CA2BZ;IAEF,OAAO,CAAC,QAAQ,CAoBd;IAEF,OAAO,CAAC,YAAY,CAYlB;IAEF,OAAO,CAAC,cAAc,CAYpB;IAEF,OAAO,CAAC,iBAAiB,CAavB;IAEF,OAAO,CAAC,sBAAsB,CAQ5B;IAEF,OAAO,CAAC,SAAS,CAWf;IAEF,UAAU,aAAc,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,iBAKvD;IAEF,OAAO,CAAC,cAAc;IAUtB,iBAAiB;IAOjB,oBAAoB;IAOpB,kBAAkB,CAAC,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC;IAMnD,MAAM;CAsNP"}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { KeyTypes } from '../../../helpers/constants';
|
|
4
|
+
import { css } from '@patternfly/react-styles';
|
|
5
|
+
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
6
|
+
import { Modal, ModalVariant } from '../../../components/Modal';
|
|
7
|
+
import { WizardFooterInternal } from './WizardFooterInternal';
|
|
8
|
+
import { WizardToggle } from './WizardToggle';
|
|
9
|
+
import { WizardNav } from './WizardNav';
|
|
10
|
+
import { WizardNavItem } from './WizardNavItem';
|
|
11
|
+
import { WizardContextProvider } from './WizardContext';
|
|
12
|
+
import { WizardHeader } from './WizardHeader';
|
|
13
|
+
export class Wizard extends React.Component {
|
|
14
|
+
constructor(props) {
|
|
15
|
+
super(props);
|
|
16
|
+
this.handleKeyClicks = (event) => {
|
|
17
|
+
if (event.key === KeyTypes.Escape) {
|
|
18
|
+
if (this.state.isNavOpen) {
|
|
19
|
+
this.setState({ isNavOpen: !this.state.isNavOpen });
|
|
20
|
+
}
|
|
21
|
+
else if (this.props.isOpen) {
|
|
22
|
+
this.props.onClose();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
this.onNext = () => {
|
|
27
|
+
const { onNext, onClose, onSave } = this.props;
|
|
28
|
+
const { currentStep } = this.state;
|
|
29
|
+
const flattenedSteps = this.getFlattenedSteps();
|
|
30
|
+
const maxSteps = flattenedSteps.length;
|
|
31
|
+
if (currentStep >= maxSteps) {
|
|
32
|
+
// Hit the save button at the end of the wizard
|
|
33
|
+
if (onSave) {
|
|
34
|
+
return onSave();
|
|
35
|
+
}
|
|
36
|
+
return onClose();
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
let newStep = currentStep;
|
|
40
|
+
for (let nextStep = currentStep; nextStep <= maxSteps; nextStep++) {
|
|
41
|
+
if (!flattenedSteps[nextStep]) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (!flattenedSteps[nextStep].isDisabled) {
|
|
45
|
+
newStep = nextStep + 1;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
this.setCurrentStep(newStep, flattenedSteps[newStep - 1]);
|
|
50
|
+
const { id: prevId, name: prevName } = flattenedSteps[currentStep - 1];
|
|
51
|
+
const { id, name } = flattenedSteps[newStep - 1];
|
|
52
|
+
return onNext && onNext({ id, name }, { prevId, prevName });
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
this.onBack = () => {
|
|
56
|
+
const { onBack } = this.props;
|
|
57
|
+
const { currentStep } = this.state;
|
|
58
|
+
const flattenedSteps = this.getFlattenedSteps();
|
|
59
|
+
if (flattenedSteps.length < currentStep) {
|
|
60
|
+
// Previous step was removed, just update the currentStep state
|
|
61
|
+
const adjustedStep = flattenedSteps.length;
|
|
62
|
+
this.setCurrentStep(adjustedStep, flattenedSteps[adjustedStep - 1]);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
let newStep = currentStep;
|
|
66
|
+
for (let prevStep = currentStep; prevStep >= 0; prevStep--) {
|
|
67
|
+
if (!flattenedSteps[prevStep - 2]) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (!flattenedSteps[prevStep - 2].isDisabled) {
|
|
71
|
+
newStep = prevStep - 1 <= 1 ? 1 : prevStep - 1;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
this.setCurrentStep(newStep, flattenedSteps[newStep - 1]);
|
|
76
|
+
const { id: prevId, name: prevName } = flattenedSteps[newStep];
|
|
77
|
+
const { id, name } = flattenedSteps[newStep - 1];
|
|
78
|
+
return onBack && onBack({ id, name }, { prevId, prevName });
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
this.goToStep = (step) => {
|
|
82
|
+
const flattenedSteps = this.getFlattenedSteps();
|
|
83
|
+
if (flattenedSteps[step - 1].isDisabled) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const { onGoToStep } = this.props;
|
|
87
|
+
const { currentStep } = this.state;
|
|
88
|
+
const maxSteps = flattenedSteps.length;
|
|
89
|
+
if (step < 1) {
|
|
90
|
+
step = 1;
|
|
91
|
+
}
|
|
92
|
+
else if (step > maxSteps) {
|
|
93
|
+
step = maxSteps;
|
|
94
|
+
}
|
|
95
|
+
this.setCurrentStep(step, flattenedSteps[step - 1]);
|
|
96
|
+
this.setState({ isNavOpen: false });
|
|
97
|
+
const { id: prevId, name: prevName } = flattenedSteps[currentStep - 1];
|
|
98
|
+
const { id, name } = flattenedSteps[step - 1];
|
|
99
|
+
return onGoToStep && onGoToStep({ id, name }, { prevId, prevName });
|
|
100
|
+
};
|
|
101
|
+
this.goToStepById = (stepId) => {
|
|
102
|
+
const flattenedSteps = this.getFlattenedSteps();
|
|
103
|
+
let step;
|
|
104
|
+
for (let i = 0; i < flattenedSteps.length; i++) {
|
|
105
|
+
if (flattenedSteps[i].id === stepId) {
|
|
106
|
+
step = i + 1;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
if (step) {
|
|
111
|
+
this.setCurrentStep(step, flattenedSteps[step - 1]);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
this.goToStepByName = (stepName) => {
|
|
115
|
+
const flattenedSteps = this.getFlattenedSteps();
|
|
116
|
+
let step;
|
|
117
|
+
for (let i = 0; i < flattenedSteps.length; i++) {
|
|
118
|
+
if (flattenedSteps[i].name === stepName) {
|
|
119
|
+
step = i + 1;
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
if (step) {
|
|
124
|
+
this.setCurrentStep(step, flattenedSteps[step - 1]);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
this.getFlattenedSteps = () => {
|
|
128
|
+
const { steps } = this.props;
|
|
129
|
+
const flattenedSteps = [];
|
|
130
|
+
for (const step of steps) {
|
|
131
|
+
if (step.steps) {
|
|
132
|
+
for (const childStep of step.steps) {
|
|
133
|
+
flattenedSteps.push(childStep);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
flattenedSteps.push(step);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return flattenedSteps;
|
|
141
|
+
};
|
|
142
|
+
this.getFlattenedStepsIndex = (flattenedSteps, stepName) => {
|
|
143
|
+
for (let i = 0; i < flattenedSteps.length; i++) {
|
|
144
|
+
if (flattenedSteps[i].name === stepName) {
|
|
145
|
+
return i + 1;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return 0;
|
|
149
|
+
};
|
|
150
|
+
this.initSteps = (steps) => {
|
|
151
|
+
// Set default Step values
|
|
152
|
+
for (let i = 0; i < steps.length; i++) {
|
|
153
|
+
if (steps[i].steps) {
|
|
154
|
+
for (let j = 0; j < steps[i].steps.length; j++) {
|
|
155
|
+
steps[i].steps[j] = Object.assign({ canJumpTo: true }, steps[i].steps[j]);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
steps[i] = Object.assign({ canJumpTo: true }, steps[i]);
|
|
159
|
+
}
|
|
160
|
+
return steps;
|
|
161
|
+
};
|
|
162
|
+
this.getElement = (appendTo) => {
|
|
163
|
+
if (typeof appendTo === 'function') {
|
|
164
|
+
return appendTo();
|
|
165
|
+
}
|
|
166
|
+
return appendTo || document.body;
|
|
167
|
+
};
|
|
168
|
+
const newId = Wizard.currentId++;
|
|
169
|
+
this.titleId = props.titleId || `pf-wizard-title-${newId}`;
|
|
170
|
+
this.descriptionId = props.descriptionId || `pf-wizard-description-${newId}`;
|
|
171
|
+
this.state = {
|
|
172
|
+
currentStep: this.props.startAtStep && Number.isInteger(this.props.startAtStep) ? this.props.startAtStep : 1,
|
|
173
|
+
isNavOpen: false
|
|
174
|
+
};
|
|
175
|
+
if (props.onCurrentStepChanged) {
|
|
176
|
+
const flattenedSteps = this.getFlattenedSteps();
|
|
177
|
+
if (flattenedSteps.length >= this.state.currentStep) {
|
|
178
|
+
const currentStep = flattenedSteps[this.state.currentStep - 1];
|
|
179
|
+
props.onCurrentStepChanged(currentStep);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
this.drawerRef = React.createRef();
|
|
183
|
+
}
|
|
184
|
+
setCurrentStep(currentStep, currentStepObject) {
|
|
185
|
+
this.setState({
|
|
186
|
+
currentStep
|
|
187
|
+
});
|
|
188
|
+
if (this.props.onCurrentStepChanged) {
|
|
189
|
+
this.props.onCurrentStepChanged(currentStepObject);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
componentDidMount() {
|
|
193
|
+
const target = typeof document !== 'undefined' ? document.body : null;
|
|
194
|
+
if (target) {
|
|
195
|
+
target.addEventListener('keydown', this.handleKeyClicks, false);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
componentWillUnmount() {
|
|
199
|
+
const target = (typeof document !== 'undefined' && document.body) || null;
|
|
200
|
+
if (target) {
|
|
201
|
+
target.removeEventListener('keydown', this.handleKeyClicks, false);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
componentDidUpdate(prevProps) {
|
|
205
|
+
if (prevProps.startAtStep !== this.props.startAtStep) {
|
|
206
|
+
this.setState({ currentStep: this.props.startAtStep });
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
render() {
|
|
210
|
+
const _a = this.props, {
|
|
211
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
212
|
+
width, height, title, description, descriptionComponent, onClose, onSave, onBack, onNext, onGoToStep, className, steps, startAtStep, nextButtonText = 'Next', backButtonText = 'Back', cancelButtonText = 'Cancel', hideClose, closeButtonAriaLabel = 'Close', navAriaLabel, navAriaLabelledBy, mainAriaLabel, mainAriaLabelledBy, hasNoBodyPadding, footer, appendTo, isOpen, titleId, descriptionId, isNavExpandable, onCurrentStepChanged, hasDrawer, isDrawerExpanded, onExpandDrawer } = _a, rest = __rest(_a, ["width", "height", "title", "description", "descriptionComponent", "onClose", "onSave", "onBack", "onNext", "onGoToStep", "className", "steps", "startAtStep", "nextButtonText", "backButtonText", "cancelButtonText", "hideClose", "closeButtonAriaLabel", "navAriaLabel", "navAriaLabelledBy", "mainAriaLabel", "mainAriaLabelledBy", "hasNoBodyPadding", "footer", "appendTo", "isOpen", "titleId", "descriptionId", "isNavExpandable", "onCurrentStepChanged", "hasDrawer", "isDrawerExpanded", "onExpandDrawer"])
|
|
213
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
214
|
+
;
|
|
215
|
+
const { currentStep } = this.state;
|
|
216
|
+
const flattenedSteps = this.getFlattenedSteps();
|
|
217
|
+
const adjustedStep = flattenedSteps.length < currentStep ? flattenedSteps.length : currentStep;
|
|
218
|
+
const activeStep = flattenedSteps[adjustedStep - 1];
|
|
219
|
+
const computedSteps = this.initSteps(steps);
|
|
220
|
+
const firstStep = activeStep === flattenedSteps[0];
|
|
221
|
+
const isValid = activeStep && activeStep.enableNext !== undefined ? activeStep.enableNext : true;
|
|
222
|
+
const nav = (isWizardNavOpen) => {
|
|
223
|
+
const wizNavAProps = {
|
|
224
|
+
isOpen: isWizardNavOpen,
|
|
225
|
+
'aria-label': navAriaLabel,
|
|
226
|
+
'aria-labelledby': (title || navAriaLabelledBy) && (navAriaLabelledBy || this.titleId)
|
|
227
|
+
};
|
|
228
|
+
return (React.createElement(WizardNav, Object.assign({}, wizNavAProps), computedSteps.map((step, index) => {
|
|
229
|
+
if (step.isFinishedStep) {
|
|
230
|
+
// Don't show finished step in the side nav
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
let enabled;
|
|
234
|
+
let navItemStep;
|
|
235
|
+
if (step.steps) {
|
|
236
|
+
let hasActiveChild = false;
|
|
237
|
+
let canJumpToParent = false;
|
|
238
|
+
for (const subStep of step.steps) {
|
|
239
|
+
if (activeStep.name === subStep.name) {
|
|
240
|
+
// one of the children matches
|
|
241
|
+
hasActiveChild = true;
|
|
242
|
+
}
|
|
243
|
+
if (subStep.canJumpTo) {
|
|
244
|
+
canJumpToParent = true;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.steps[0].name);
|
|
248
|
+
return (React.createElement(WizardNavItem, { key: index, id: step.id, content: step.name, isExpandable: isNavExpandable, isCurrent: hasActiveChild, isDisabled: !canJumpToParent, step: navItemStep, onNavItemClick: this.goToStep },
|
|
249
|
+
React.createElement(WizardNav, Object.assign({}, wizNavAProps, { returnList: true }), step.steps.map((childStep, indexChild) => {
|
|
250
|
+
if (childStep.isFinishedStep) {
|
|
251
|
+
// Don't show finished step in the side nav
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
navItemStep = this.getFlattenedStepsIndex(flattenedSteps, childStep.name);
|
|
255
|
+
enabled = childStep.canJumpTo && !childStep.isDisabled;
|
|
256
|
+
return (React.createElement(WizardNavItem, { key: `child_${indexChild}`, id: childStep.id, content: childStep.name, isCurrent: activeStep.name === childStep.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep }));
|
|
257
|
+
}))));
|
|
258
|
+
}
|
|
259
|
+
navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.name);
|
|
260
|
+
enabled = step.canJumpTo && !step.isDisabled;
|
|
261
|
+
return (React.createElement(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 })));
|
|
262
|
+
})));
|
|
263
|
+
};
|
|
264
|
+
const context = {
|
|
265
|
+
goToStepById: this.goToStepById,
|
|
266
|
+
goToStepByName: this.goToStepByName,
|
|
267
|
+
onNext: this.onNext,
|
|
268
|
+
onBack: this.onBack,
|
|
269
|
+
onClose,
|
|
270
|
+
activeStep
|
|
271
|
+
};
|
|
272
|
+
const divStyles = Object.assign(Object.assign({}, (height ? { height } : {})), (width ? { width } : {}));
|
|
273
|
+
const wizard = (React.createElement(WizardContextProvider, { value: context },
|
|
274
|
+
React.createElement("div", Object.assign({}, rest, { className: css(styles.wizard, activeStep && activeStep.isFinishedStep && 'pf-m-finished', className), style: Object.keys(divStyles).length ? divStyles : undefined }),
|
|
275
|
+
title && (React.createElement(WizardHeader, { titleId: this.titleId, descriptionId: this.descriptionId, onClose: onClose, title: title, description: description, descriptionComponent: descriptionComponent, closeButtonAriaLabel: closeButtonAriaLabel, hideClose: hideClose })),
|
|
276
|
+
React.createElement(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, { onNext: this.onNext, onBack: this.onBack, onClose: onClose, isValid: isValid, firstStep: firstStep, activeStep: activeStep, nextButtonText: (activeStep && activeStep.nextButtonText) || nextButtonText, backButtonText: backButtonText, cancelButtonText: cancelButtonText }))))));
|
|
277
|
+
if (isOpen !== undefined) {
|
|
278
|
+
return (React.createElement(Modal, { width: width !== null ? width : undefined, isOpen: isOpen, variant: ModalVariant.large, "aria-labelledby": this.titleId, "aria-describedby": this.descriptionId, showClose: false, hasNoBodyWrapper: true }, wizard));
|
|
279
|
+
}
|
|
280
|
+
return wizard;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
Wizard.displayName = 'Wizard';
|
|
284
|
+
Wizard.currentId = 0;
|
|
285
|
+
Wizard.defaultProps = {
|
|
286
|
+
title: null,
|
|
287
|
+
description: '',
|
|
288
|
+
descriptionComponent: 'p',
|
|
289
|
+
className: '',
|
|
290
|
+
startAtStep: 1,
|
|
291
|
+
nextButtonText: 'Next',
|
|
292
|
+
backButtonText: 'Back',
|
|
293
|
+
cancelButtonText: 'Cancel',
|
|
294
|
+
hideClose: false,
|
|
295
|
+
closeButtonAriaLabel: 'Close',
|
|
296
|
+
navAriaLabel: null,
|
|
297
|
+
navAriaLabelledBy: null,
|
|
298
|
+
mainAriaLabel: null,
|
|
299
|
+
mainAriaLabelledBy: null,
|
|
300
|
+
hasNoBodyPadding: false,
|
|
301
|
+
onBack: null,
|
|
302
|
+
onNext: null,
|
|
303
|
+
onGoToStep: null,
|
|
304
|
+
width: null,
|
|
305
|
+
height: null,
|
|
306
|
+
footer: null,
|
|
307
|
+
onClose: () => undefined,
|
|
308
|
+
appendTo: null,
|
|
309
|
+
isOpen: undefined,
|
|
310
|
+
isNavExpandable: false,
|
|
311
|
+
hasDrawer: false,
|
|
312
|
+
isDrawerExpanded: false,
|
|
313
|
+
onExpandDrawer: () => undefined
|
|
314
|
+
};
|
|
315
|
+
//# sourceMappingURL=Wizard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wizard.js","sourceRoot":"","sources":["../../../../../src/deprecated/components/Wizard/Wizard.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,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SAAS,EAAE,KAAK,EAChB,gBAAgB,UAEf,MAAM,CACD,CACT,CAAC;SACH;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;;AAndM,kBAAW,GAAG,QAAQ,CAAC;AACf,gBAAS,GAAG,CAAC,CAAC;AACtB,mBAAY,GAA8B;IAC/C,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,EAAE;IACf,oBAAoB,EAAE,GAAG;IACzB,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,CAAC;IACd,cAAc,EAAE,MAAM;IACtB,cAAc,EAAE,MAAM;IACtB,gBAAgB,EAAE,QAAQ;IAC1B,SAAS,EAAE,KAAK;IAChB,oBAAoB,EAAE,OAAO;IAC7B,YAAY,EAAE,IAAI;IAClB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,IAAI;IACxB,gBAAgB,EAAE,KAAK;IACvB,MAAM,EAAE,IAA8B;IACtC,MAAM,EAAE,IAA8B;IACtC,UAAU,EAAE,IAA8B;IAC1C,KAAK,EAAE,IAAc;IACrB,MAAM,EAAE,IAAc;IACtB,MAAM,EAAE,IAAuB;IAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,SAAgB;IAC/B,QAAQ,EAAE,IAAmB;IAC7B,MAAM,EAAE,SAAS;IACjB,eAAe,EAAE,KAAK;IACtB,SAAS,EAAE,KAAK;IAChB,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE,GAAG,EAAE,CAAC,SAAgB;CACvC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WizardStep } from './Wizard';
|
|
3
|
+
export interface WizardBodyProps {
|
|
4
|
+
/** Anything that can be rendered in the Wizard body */
|
|
5
|
+
children: any;
|
|
6
|
+
/** Set to true to remove the default body padding */
|
|
7
|
+
hasNoBodyPadding: boolean;
|
|
8
|
+
/** Adds an accessible name to the wizard body when the body content overflows and renders
|
|
9
|
+
* a scrollbar.
|
|
10
|
+
*/
|
|
11
|
+
'aria-label'?: string;
|
|
12
|
+
/** Adds an accessible name to the wizard body by passing the the id of one or more elements.
|
|
13
|
+
* The aria-labelledby will only be applied when the body content overflows and renders a scrollbar.
|
|
14
|
+
*/
|
|
15
|
+
'aria-labelledby': string;
|
|
16
|
+
/** Component used as the primary content container */
|
|
17
|
+
mainComponent?: React.ElementType;
|
|
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;
|
|
25
|
+
}
|
|
26
|
+
export declare const WizardBody: React.FunctionComponent<WizardBodyProps>;
|
|
27
|
+
//# sourceMappingURL=WizardBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardBody.d.ts","sourceRoot":"","sources":["../../../../../src/deprecated/components/Wizard/WizardBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,MAAM,WAAW,eAAe;IAC9B,uDAAuD;IACvD,QAAQ,EAAE,GAAG,CAAC;IACd,qDAAqD;IACrD,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sDAAsD;IACtD,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,sCAAsC;IACtC,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uDAAuD;IACvD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CA+D/D,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
3
|
+
import { css } from '@patternfly/react-styles';
|
|
4
|
+
import { WizardDrawerWrapper } from './WizardDrawerWrapper';
|
|
5
|
+
import { Drawer, DrawerContent } from '../../../components/Drawer';
|
|
6
|
+
import { debounce } from '../../../helpers/util';
|
|
7
|
+
import { getResizeObserver } from '../../../helpers/resizeObserver';
|
|
8
|
+
export const WizardBody = ({ children, hasNoBodyPadding = false, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, mainComponent = 'div', hasDrawer, isDrawerExpanded, onExpandDrawer, activeStep }) => {
|
|
9
|
+
const MainComponent = mainComponent;
|
|
10
|
+
const [hasScrollbar, setHasScrollbar] = React.useState(false);
|
|
11
|
+
const [previousWidth, setPreviousWidth] = React.useState(undefined);
|
|
12
|
+
const wizardBodyRef = React.useRef(null);
|
|
13
|
+
React.useEffect(() => {
|
|
14
|
+
const resize = () => {
|
|
15
|
+
if (wizardBodyRef === null || wizardBodyRef === void 0 ? void 0 : wizardBodyRef.current) {
|
|
16
|
+
const { offsetWidth, offsetHeight, scrollHeight } = wizardBodyRef.current;
|
|
17
|
+
if (previousWidth !== offsetWidth) {
|
|
18
|
+
setPreviousWidth(offsetWidth);
|
|
19
|
+
setHasScrollbar(offsetHeight < scrollHeight);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const handleResizeWithDelay = debounce(resize, 250);
|
|
24
|
+
let observer = () => { };
|
|
25
|
+
if (wizardBodyRef === null || wizardBodyRef === void 0 ? void 0 : wizardBodyRef.current) {
|
|
26
|
+
observer = getResizeObserver(wizardBodyRef.current, handleResizeWithDelay);
|
|
27
|
+
const { offsetHeight, scrollHeight } = wizardBodyRef.current;
|
|
28
|
+
setHasScrollbar(offsetHeight < scrollHeight);
|
|
29
|
+
setPreviousWidth(wizardBodyRef.current.offsetWidth);
|
|
30
|
+
}
|
|
31
|
+
return () => {
|
|
32
|
+
observer();
|
|
33
|
+
};
|
|
34
|
+
}, []);
|
|
35
|
+
return (React.createElement(MainComponent, Object.assign({}, (mainComponent === 'div' && hasScrollbar && { role: 'region' }), (hasScrollbar && { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, tabIndex: 0 }), { ref: wizardBodyRef, className: css(styles.wizardMain) }),
|
|
36
|
+
React.createElement(WizardDrawerWrapper, { hasDrawer: hasDrawer && activeStep.drawerPanelContent, wrapper: (children) => (React.createElement(Drawer, { isInline: true, isExpanded: isDrawerExpanded, onExpand: onExpandDrawer },
|
|
37
|
+
React.createElement(DrawerContent, { panelContent: activeStep.drawerPanelContent }, children))) },
|
|
38
|
+
React.createElement("div", { className: css(styles.wizardMainBody, hasNoBodyPadding && styles.modifiers.noPadding) }, children))));
|
|
39
|
+
};
|
|
40
|
+
WizardBody.displayName = 'WizardBody';
|
|
41
|
+
//# sourceMappingURL=WizardBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardBody.js","sourceRoot":"","sources":["../../../../../src/deprecated/components/Wizard/WizardBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,uDAAuD,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AA0BpE,MAAM,CAAC,MAAM,UAAU,GAA6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,YAAY,CAAC,CAAC;YAC7C,gBAAgB,CAAE,aAAa,CAAC,OAAuB,CAAC,WAAW,CAAC,CAAC;SACtE;QAED,OAAO,GAAG,EAAE;YACV,QAAQ,EAAE,CAAC;QACb,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,oBAAC,aAAa,oBACR,CAAC,aAAa,KAAK,KAAK,IAAI,YAAY,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAC/D,CAAC,YAAY,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,IACjG,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC;QAEjC,oBAAC,mBAAmB,IAClB,SAAS,EAAE,SAAS,IAAI,UAAU,CAAC,kBAAkB,EACrD,OAAO,EAAE,CAAC,QAAyB,EAAE,EAAE,CAAC,CACtC,oBAAC,MAAM,IAAC,QAAQ,QAAC,UAAU,EAAE,gBAAgB,EAAE,QAAQ,EAAE,cAAc;gBACrE,oBAAC,aAAa,IAAC,YAAY,EAAE,UAAU,CAAC,kBAAkB,IAAG,QAAQ,CAAiB,CAC/E,CACV;YAED,6BAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,gBAAgB,IAAI,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,IAAG,QAAQ,CAAO,CACxF,CACR,CACjB,CAAC;AACJ,CAAC,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WizardStep } from './Wizard';
|
|
3
|
+
export interface WizardContextType {
|
|
4
|
+
goToStepById: (stepId: number | string) => void;
|
|
5
|
+
goToStepByName: (stepName: string) => void;
|
|
6
|
+
onNext: () => void;
|
|
7
|
+
onBack: () => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
activeStep: WizardStep;
|
|
10
|
+
}
|
|
11
|
+
export declare const WizardContext: React.Context<WizardContextType>;
|
|
12
|
+
export declare const WizardContextProvider: React.Provider<WizardContextType>;
|
|
13
|
+
export declare const WizardContextConsumer: React.Consumer<WizardContextType>;
|
|
14
|
+
//# sourceMappingURL=WizardContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardContext.d.ts","sourceRoot":"","sources":["../../../../../src/deprecated/components/Wizard/WizardContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAChD,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,kCAOxB,CAAC;AAEH,eAAO,MAAM,qBAAqB,mCAAyB,CAAC;AAC5D,eAAO,MAAM,qBAAqB,mCAAyB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export const WizardContext = React.createContext({
|
|
3
|
+
goToStepById: () => null,
|
|
4
|
+
goToStepByName: () => null,
|
|
5
|
+
onNext: () => null,
|
|
6
|
+
onBack: () => null,
|
|
7
|
+
onClose: () => null,
|
|
8
|
+
activeStep: { name: null }
|
|
9
|
+
});
|
|
10
|
+
export const WizardContextProvider = WizardContext.Provider;
|
|
11
|
+
export const WizardContextConsumer = WizardContext.Consumer;
|
|
12
|
+
//# sourceMappingURL=WizardContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardContext.js","sourceRoot":"","sources":["../../../../../src/deprecated/components/Wizard/WizardContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAoB;IAClE,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI;IACxB,cAAc,EAAE,GAAG,EAAE,CAAC,IAAI;IAC1B,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;IAClB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;IAClB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI;IACnB,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,QAAQ,CAAC;AAC5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardDrawerWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/deprecated/components/Wizard/WizardDrawerWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,wBAAwB;IACvC,0BAA0B;IAC1B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,mFAAmF;IACnF,SAAS,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,OAAO,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,KAAK,GAAG,CAAC,OAAO,CAAC;CACxD;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAIlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardDrawerWrapper.js","sourceRoot":"","sources":["../../../../../src/deprecated/components/Wizard/WizardDrawerWrapper.tsx"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,mBAAmB,GAAsD,CAAC,EACrF,SAAS,EACT,OAAO,EACP,QAAQ,EACT,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAEjD,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardFooter.d.ts","sourceRoot":"","sources":["../../../../../src/deprecated/components/Wizard/WizardFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAEnE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { css } from '@patternfly/react-styles';
|
|
3
|
+
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
4
|
+
export const WizardFooter = ({ children }) => (React.createElement("footer", { className: css(styles.wizardFooter) }, children));
|
|
5
|
+
WizardFooter.displayName = 'WizardFooter';
|
|
6
|
+
//# sourceMappingURL=WizardFooter.js.map
|