@patternfly/react-core 5.0.0-alpha.70 → 5.0.0-alpha.71
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 +4 -0
- 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/package.json +1 -1
- package/dist/esm/components/AlertGroup/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/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/package.json +1 -1
- package/dist/js/components/AlertGroup/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/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/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/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/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/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/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/{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/{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/{next/components → components}/Wizard/WizardContext.tsx +0 -0
- /package/src/{next/components → components}/Wizard/WizardNavInternal.tsx +0 -0
- /package/src/{next/components → components}/Wizard/WizardStep.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/WizardBody.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/WizardFooter.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/WizardStep.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/WizardToggle.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/__tests__/utils.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/hooks/__tests__/useWizardFooter.test.tsx +0 -0
- /package/src/{next/components → components}/Wizard/hooks/index.ts +0 -0
- /package/src/{next/components → components}/Wizard/hooks/useWizardFooter.tsx +0 -0
- /package/src/{next/components → components}/Wizard/utils.ts +0 -0
- /package/src/{components → deprecated/components}/Wizard/WizardContext.ts +0 -0
- /package/src/{components → deprecated/components}/Wizard/WizardDrawerWrapper.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardBody.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardFooter.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardFooterInternal.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardHeader.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardNav.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardNavItem.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/WizardToggle.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardBody.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardFooter.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardFooterInternal.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardHeader.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardNav.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardNavItem.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/Generated/__snapshots__/WizardToggle.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WizardContext = exports.useWizardContext = exports.useWizardFooter = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
tslib_1.__exportStar(require("./Wizard"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./WizardBody"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./WizardFooter"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./WizardToggle"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./WizardStep"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./WizardNav"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./WizardNavItem"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./WizardHeader"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
14
|
-
var hooks_1 = require("./hooks");
|
|
15
|
-
Object.defineProperty(exports, "useWizardFooter", { enumerable: true, get: function () { return hooks_1.useWizardFooter; } });
|
|
16
|
-
var WizardContext_1 = require("./WizardContext");
|
|
17
|
-
Object.defineProperty(exports, "useWizardContext", { enumerable: true, get: function () { return WizardContext_1.useWizardContext; } });
|
|
18
|
-
Object.defineProperty(exports, "WizardContext", { enumerable: true, get: function () { return WizardContext_1.WizardContext; } });
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/index.ts"],"names":[],"mappings":";;;;AAAA,mDAAyB;AACzB,uDAA6B;AAC7B,yDAA+B;AAC/B,yDAA+B;AAC/B,uDAA6B;AAC7B,sDAA4B;AAC5B,0DAAgC;AAChC,yDAA+B;AAC/B,kDAAwB;AACxB,iCAA0C;AAAjC,wGAAA,eAAe,OAAA;AACxB,iDAAkE;AAAzD,iHAAA,gBAAgB,OAAA;AAAE,8GAAA,aAAa,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-wizard-next-cjs","main":"index.js","module":"./dist/js/next/components/Wizard/index.js","typings":"index.d.ts","version":"5.0.0-alpha.69"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAElF,mHAAmH;AACnH,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,wBAAwB;IACxB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qIAAqI;IACrI,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC/B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,+FAA+F;IAC/F,MAAM,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACzD,wDAAwD;IACxD,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC9B;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,wCAAwC;AACxC,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,sBAAsB;IACtB,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAChC,4DAA4D;IAC5D,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,qCAAqC;AACrC,MAAM,WAAW,aAAc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+BACX,KAAK,EAAE,SAAS,GAAG,YAAY,GAAG,CAAC,EACnC,SAAS,EAAE,kBAAkB,EAC7B,QAAQ,EAAE,EAAE,IACT,CAAC,KAAK,KAAK,CAAC,IAAI,YAAY,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,GAC1D,IAAA,0BAAkB,EAAC,kBAAkB,CAAC,KAAK,CAAC,EAC/C,CAAC;gBAEH,OAAO,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;YACrC,CAAC,CAAC;SACH,CAAC,GACC,IAAA,0BAAkB,EAAC,UAAU,CAAC,GAEnC,GAAG,QAAQ,CACZ,CAAC;KACH;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;KACrE;IAED,OAAO,GAAG,CAAC;AACb,CAAC,EAAE,EAAE,CAAC,CAAC;AAnCI,QAAA,UAAU,cAmCd;AAET,SAAgB,YAAY,CAC1B,KAAgD;IAEhD,OAAO,eAAK,CAAC,cAAc,CAAC,KAAK,CAAC,IAAK,KAA6C,CAAC,IAAI,KAAK,uBAAU,CAAC;AAC3G,CAAC;AAJD,oCAIC;AAED,2EAA2E;AACpE,MAAM,kBAAkB,GAAG,CAAC,EAIjB,EAAiC,EAAE;QAJlB,EACjC,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,MAAM,OAEG,EADb,WAAW,sBAHmB,qBAIlC,CADe;IACsC,OAAA,WAAW,CAAA;CAAA,CAAC;AAJrD,QAAA,kBAAkB,sBAImC"}
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
isWizardParentStep,
|
|
8
|
-
WizardStepType,
|
|
9
|
-
isCustomWizardNav,
|
|
10
|
-
WizardFooterType,
|
|
11
|
-
WizardNavType,
|
|
12
|
-
WizardStepChangeScope
|
|
13
|
-
} from './types';
|
|
14
|
-
import { buildSteps } from './utils';
|
|
15
|
-
import { useWizardContext, WizardContextProvider } from './WizardContext';
|
|
16
|
-
import { WizardToggle } from './WizardToggle';
|
|
17
|
-
import { WizardNavInternal } from './WizardNavInternal';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Wrapper for all steps and hosts state, including navigation helpers, within context.
|
|
21
|
-
* The WizardContext provided by default gives any child of wizard access to those resources.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
export interface WizardProps extends React.HTMLProps<HTMLDivElement> {
|
|
25
|
-
/** Step components */
|
|
26
|
-
children: React.ReactNode | React.ReactNode[];
|
|
27
|
-
/** Wizard header */
|
|
28
|
-
header?: React.ReactNode;
|
|
29
|
-
/** Wizard footer */
|
|
30
|
-
footer?: WizardFooterType;
|
|
31
|
-
/** Wizard navigation */
|
|
32
|
-
nav?: WizardNavType;
|
|
33
|
-
/** The initial index the wizard is to start on (1 or higher). Defaults to 1. */
|
|
34
|
-
startIndex?: number;
|
|
35
|
-
/** Additional classes spread to the wizard */
|
|
36
|
-
className?: string;
|
|
37
|
-
/** Custom width of the wizard */
|
|
38
|
-
width?: number | string;
|
|
39
|
-
/** Custom height of the wizard */
|
|
40
|
-
height?: number | string;
|
|
41
|
-
/** Disables steps that haven't been visited. Defaults to false. */
|
|
42
|
-
isVisitRequired?: boolean;
|
|
43
|
-
/** Progressively shows steps, where all steps following the active step are hidden. Defaults to false. */
|
|
44
|
-
isProgressive?: boolean;
|
|
45
|
-
/** Callback function when navigating between steps */
|
|
46
|
-
onStepChange?: (
|
|
47
|
-
event: React.MouseEvent<HTMLButtonElement>,
|
|
48
|
-
currentStep: WizardStepType,
|
|
49
|
-
prevStep: WizardStepType,
|
|
50
|
-
scope: WizardStepChangeScope
|
|
51
|
-
) => void | Promise<void>;
|
|
52
|
-
/** Callback function to save at the end of the wizard, if not specified uses onClose */
|
|
53
|
-
onSave?: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>;
|
|
54
|
-
/** Callback function to close the wizard */
|
|
55
|
-
onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export const Wizard = ({
|
|
59
|
-
children,
|
|
60
|
-
footer,
|
|
61
|
-
height,
|
|
62
|
-
width,
|
|
63
|
-
className,
|
|
64
|
-
header,
|
|
65
|
-
nav,
|
|
66
|
-
startIndex = 1,
|
|
67
|
-
isVisitRequired = false,
|
|
68
|
-
isProgressive = false,
|
|
69
|
-
onStepChange,
|
|
70
|
-
onSave,
|
|
71
|
-
onClose,
|
|
72
|
-
...wrapperProps
|
|
73
|
-
}: WizardProps) => {
|
|
74
|
-
const [activeStepIndex, setActiveStepIndex] = React.useState(startIndex);
|
|
75
|
-
const initialSteps = buildSteps(children);
|
|
76
|
-
const firstStepRef = React.useRef(initialSteps[startIndex - 1]);
|
|
77
|
-
|
|
78
|
-
// When the startIndex maps to a parent step, focus on the first sub-step
|
|
79
|
-
React.useEffect(() => {
|
|
80
|
-
if (isWizardParentStep(firstStepRef.current)) {
|
|
81
|
-
setActiveStepIndex(startIndex + 1);
|
|
82
|
-
}
|
|
83
|
-
}, [startIndex]);
|
|
84
|
-
|
|
85
|
-
const goToNextStep = (event: React.MouseEvent<HTMLButtonElement>, steps: WizardStepType[] = initialSteps) => {
|
|
86
|
-
const newStep = steps.find(
|
|
87
|
-
step => step.index > activeStepIndex && !step.isHidden && !step.isDisabled && !isWizardParentStep(step)
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
if (activeStepIndex >= steps.length || !newStep?.index) {
|
|
91
|
-
return onSave ? onSave(event) : onClose?.(event);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const currStep = isWizardParentStep(steps[activeStepIndex]) ? steps[activeStepIndex + 1] : steps[activeStepIndex];
|
|
95
|
-
const prevStep = steps[activeStepIndex - 1];
|
|
96
|
-
|
|
97
|
-
setActiveStepIndex(newStep?.index);
|
|
98
|
-
onStepChange?.(event, currStep, prevStep, WizardStepChangeScope.Next);
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
const goToPrevStep = (event: React.MouseEvent<HTMLButtonElement>, steps: WizardStepType[] = initialSteps) => {
|
|
102
|
-
const newStep = [...steps]
|
|
103
|
-
.reverse()
|
|
104
|
-
.find(
|
|
105
|
-
(step: WizardStepType) =>
|
|
106
|
-
step.index < activeStepIndex && !step.isHidden && !step.isDisabled && !isWizardParentStep(step)
|
|
107
|
-
);
|
|
108
|
-
const currStep = isWizardParentStep(steps[activeStepIndex - 2])
|
|
109
|
-
? steps[activeStepIndex - 3]
|
|
110
|
-
: steps[activeStepIndex - 2];
|
|
111
|
-
const prevStep = steps[activeStepIndex - 1];
|
|
112
|
-
|
|
113
|
-
setActiveStepIndex(newStep?.index);
|
|
114
|
-
onStepChange?.(event, currStep, prevStep, WizardStepChangeScope.Back);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
const goToStepByIndex = (
|
|
118
|
-
event: React.MouseEvent<HTMLButtonElement>,
|
|
119
|
-
steps: WizardStepType[] = initialSteps,
|
|
120
|
-
index: number
|
|
121
|
-
) => {
|
|
122
|
-
const lastStepIndex = steps.length + 1;
|
|
123
|
-
|
|
124
|
-
// Handle index when out of bounds or hidden
|
|
125
|
-
if (index < 1) {
|
|
126
|
-
index = 1;
|
|
127
|
-
} else if (index > lastStepIndex) {
|
|
128
|
-
index = lastStepIndex;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
const currStep = steps[index - 1];
|
|
132
|
-
const prevStep = steps[activeStepIndex - 1];
|
|
133
|
-
|
|
134
|
-
setActiveStepIndex(index);
|
|
135
|
-
onStepChange?.(event, currStep, prevStep, WizardStepChangeScope.Nav);
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
const goToStepById = (steps: WizardStepType[] = initialSteps, id: number | string) => {
|
|
139
|
-
const step = steps.find(step => step.id === id);
|
|
140
|
-
const stepIndex = step?.index;
|
|
141
|
-
const lastStepIndex = steps.length + 1;
|
|
142
|
-
|
|
143
|
-
if (stepIndex > 0 && stepIndex < lastStepIndex && !step.isDisabled && !step.isHidden) {
|
|
144
|
-
setActiveStepIndex(stepIndex);
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
const goToStepByName = (steps: WizardStepType[] = initialSteps, name: string) => {
|
|
149
|
-
const step = steps.find(step => step.name === name);
|
|
150
|
-
const stepIndex = step?.index;
|
|
151
|
-
const lastStepIndex = steps.length + 1;
|
|
152
|
-
|
|
153
|
-
if (stepIndex > 0 && stepIndex < lastStepIndex && !step.isDisabled && !step.isHidden) {
|
|
154
|
-
setActiveStepIndex(stepIndex);
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
return (
|
|
159
|
-
<WizardContextProvider
|
|
160
|
-
steps={initialSteps}
|
|
161
|
-
activeStepIndex={activeStepIndex}
|
|
162
|
-
footer={footer}
|
|
163
|
-
onNext={goToNextStep}
|
|
164
|
-
onBack={goToPrevStep}
|
|
165
|
-
onClose={onClose}
|
|
166
|
-
goToStepById={goToStepById}
|
|
167
|
-
goToStepByName={goToStepByName}
|
|
168
|
-
goToStepByIndex={goToStepByIndex}
|
|
169
|
-
>
|
|
170
|
-
<div
|
|
171
|
-
className={css(styles.wizard, className)}
|
|
172
|
-
style={{
|
|
173
|
-
...(height ? { height } : {}),
|
|
174
|
-
...(width ? { width } : {})
|
|
175
|
-
}}
|
|
176
|
-
{...wrapperProps}
|
|
177
|
-
>
|
|
178
|
-
{header}
|
|
179
|
-
<WizardInternal nav={nav} isVisitRequired={isVisitRequired} isProgressive={isProgressive} />
|
|
180
|
-
</div>
|
|
181
|
-
</WizardContextProvider>
|
|
182
|
-
);
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
const WizardInternal = ({
|
|
186
|
-
nav,
|
|
187
|
-
isVisitRequired,
|
|
188
|
-
isProgressive
|
|
189
|
-
}: Pick<WizardProps, 'nav' | 'isVisitRequired' | 'isProgressive'>) => {
|
|
190
|
-
const { activeStep, steps, footer, goToStepByIndex } = useWizardContext();
|
|
191
|
-
const [isNavExpanded, setIsNavExpanded] = React.useState(false);
|
|
192
|
-
|
|
193
|
-
const wizardNav = React.useMemo(() => {
|
|
194
|
-
if (isCustomWizardNav(nav)) {
|
|
195
|
-
return typeof nav === 'function' ? nav(isNavExpanded, steps, activeStep, goToStepByIndex) : nav;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
return (
|
|
199
|
-
<WizardNavInternal
|
|
200
|
-
nav={nav}
|
|
201
|
-
isNavExpanded={isNavExpanded}
|
|
202
|
-
isVisitRequired={isVisitRequired}
|
|
203
|
-
isProgressive={isProgressive}
|
|
204
|
-
/>
|
|
205
|
-
);
|
|
206
|
-
}, [activeStep, isVisitRequired, isProgressive, goToStepByIndex, isNavExpanded, nav, steps]);
|
|
207
|
-
|
|
208
|
-
return (
|
|
209
|
-
<WizardToggle
|
|
210
|
-
nav={wizardNav}
|
|
211
|
-
footer={footer}
|
|
212
|
-
steps={steps}
|
|
213
|
-
activeStep={activeStep}
|
|
214
|
-
isNavExpanded={isNavExpanded}
|
|
215
|
-
toggleNavExpanded={() => setIsNavExpanded(prevIsExpanded => !prevIsExpanded)}
|
|
216
|
-
/>
|
|
217
|
-
);
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
Wizard.displayName = 'Wizard';
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
4
|
-
import { css } from '@patternfly/react-styles';
|
|
5
|
-
import { WizardContext } from './WizardContext';
|
|
6
|
-
import { debounce } from '../../../helpers/util';
|
|
7
|
-
import { getResizeObserver } from '../../../helpers/resizeObserver';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Used as a wrapper for WizardStep content, where the wrapping element is customizable.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export interface WizardBodyProps {
|
|
14
|
-
children: React.ReactNode | React.ReactNode[];
|
|
15
|
-
/** Set to true to remove the default body padding */
|
|
16
|
-
hasNoPadding?: boolean;
|
|
17
|
-
/** Adds an accessible name to the wrapper element when the content overflows and renders
|
|
18
|
-
* a scrollbar.
|
|
19
|
-
*/
|
|
20
|
-
'aria-label'?: string;
|
|
21
|
-
/** Adds an accessible name to the wrapper element by passing the the id of one or more elements.
|
|
22
|
-
* The aria-labelledby will only be applied when the content overflows and renders a scrollbar.
|
|
23
|
-
*/
|
|
24
|
-
'aria-labelledby'?: string;
|
|
25
|
-
/** Component used as the wrapping content container */
|
|
26
|
-
component?: React.ElementType;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const WizardBody = ({
|
|
30
|
-
children,
|
|
31
|
-
hasNoPadding = false,
|
|
32
|
-
'aria-label': ariaLabel,
|
|
33
|
-
'aria-labelledby': ariaLabelledBy,
|
|
34
|
-
component = 'div'
|
|
35
|
-
}: WizardBodyProps) => {
|
|
36
|
-
const [hasScrollbar, setHasScrollbar] = React.useState(false);
|
|
37
|
-
const [previousWidth, setPreviousWidth] = React.useState<number | undefined>(undefined);
|
|
38
|
-
const wrapperRef = React.useRef(null);
|
|
39
|
-
const WrapperComponent = component;
|
|
40
|
-
const { activeStep } = React.useContext(WizardContext);
|
|
41
|
-
const defaultAriaLabel = ariaLabel || `${activeStep?.name} content`;
|
|
42
|
-
|
|
43
|
-
React.useEffect(() => {
|
|
44
|
-
const resize = () => {
|
|
45
|
-
if (wrapperRef?.current) {
|
|
46
|
-
const { offsetWidth, offsetHeight, scrollHeight } = wrapperRef.current;
|
|
47
|
-
|
|
48
|
-
if (previousWidth !== offsetWidth) {
|
|
49
|
-
setPreviousWidth(offsetWidth);
|
|
50
|
-
setHasScrollbar(offsetHeight < scrollHeight);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const handleResizeWithDelay = debounce(resize, 250);
|
|
56
|
-
let observer = () => {};
|
|
57
|
-
|
|
58
|
-
if (wrapperRef?.current) {
|
|
59
|
-
observer = getResizeObserver(wrapperRef.current, handleResizeWithDelay);
|
|
60
|
-
const { offsetHeight, scrollHeight } = wrapperRef.current;
|
|
61
|
-
|
|
62
|
-
setHasScrollbar(offsetHeight < scrollHeight);
|
|
63
|
-
setPreviousWidth((wrapperRef.current as HTMLElement).offsetWidth);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return () => {
|
|
67
|
-
observer();
|
|
68
|
-
};
|
|
69
|
-
}, []);
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<WrapperComponent
|
|
73
|
-
ref={wrapperRef}
|
|
74
|
-
{...(component === 'div' && hasScrollbar && { role: 'region' })}
|
|
75
|
-
{...(hasScrollbar && { 'aria-label': defaultAriaLabel, 'aria-labelledby': ariaLabelledBy, tabIndex: 0 })}
|
|
76
|
-
className={css(styles.wizardMain)}
|
|
77
|
-
>
|
|
78
|
-
<div className={css(styles.wizardMainBody, hasNoPadding && styles.modifiers.noPadding)}>{children}</div>
|
|
79
|
-
</WrapperComponent>
|
|
80
|
-
);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
WizardBody.displayName = 'WizardBody';
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
5
|
-
|
|
6
|
-
import { Button, ButtonVariant } from '../../../components/Button';
|
|
7
|
-
import { isCustomWizardFooter, WizardStepType } from './types';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Hosts the standard structure of a footer with ties to the active step so that text for buttons can vary from step to step.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export interface WizardFooterProps {
|
|
14
|
-
/** The active step */
|
|
15
|
-
activeStep: WizardStepType;
|
|
16
|
-
/** Next button callback */
|
|
17
|
-
onNext: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>;
|
|
18
|
-
/** Back button callback */
|
|
19
|
-
onBack: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>;
|
|
20
|
-
/** Cancel link callback */
|
|
21
|
-
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
-
/** Custom text for the Next button. The current step's nextButtonText takes precedence. */
|
|
23
|
-
nextButtonText?: React.ReactNode;
|
|
24
|
-
/** Custom text for the Back button */
|
|
25
|
-
backButtonText?: React.ReactNode;
|
|
26
|
-
/** Custom text for the Cancel link */
|
|
27
|
-
cancelButtonText?: React.ReactNode;
|
|
28
|
-
/** Flag to disable the next button */
|
|
29
|
-
isNextDisabled?: boolean;
|
|
30
|
-
/** Flag to disable the back button */
|
|
31
|
-
isBackDisabled?: boolean;
|
|
32
|
-
/** True to hide the Back button */
|
|
33
|
-
isBackHidden?: boolean;
|
|
34
|
-
/** True to hide the Cancel button */
|
|
35
|
-
isCancelHidden?: boolean;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Applies default wizard footer styling any number of child elements.
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
interface WizardFooterWrapperProps {
|
|
43
|
-
children: React.ReactNode;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export const WizardFooterWrapper = ({ children }: WizardFooterWrapperProps) => (
|
|
47
|
-
<footer className={css(styles.wizardFooter)}>{children}</footer>
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
export const WizardFooter = ({ activeStep, ...internalProps }: WizardFooterProps) => {
|
|
51
|
-
const activeStepFooter = !isCustomWizardFooter(activeStep?.footer) && activeStep?.footer;
|
|
52
|
-
return <InternalWizardFooter {...internalProps} {...activeStepFooter} />;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const InternalWizardFooter = ({
|
|
56
|
-
onNext,
|
|
57
|
-
onBack,
|
|
58
|
-
onClose,
|
|
59
|
-
isNextDisabled,
|
|
60
|
-
isBackDisabled,
|
|
61
|
-
isBackHidden,
|
|
62
|
-
isCancelHidden,
|
|
63
|
-
nextButtonText = 'Next',
|
|
64
|
-
backButtonText = 'Back',
|
|
65
|
-
cancelButtonText = 'Cancel'
|
|
66
|
-
}: Omit<WizardFooterProps, 'activeStep'>) => (
|
|
67
|
-
<WizardFooterWrapper>
|
|
68
|
-
{!isBackHidden && (
|
|
69
|
-
<Button variant={ButtonVariant.secondary} onClick={onBack} isDisabled={isBackDisabled}>
|
|
70
|
-
{backButtonText}
|
|
71
|
-
</Button>
|
|
72
|
-
)}
|
|
73
|
-
|
|
74
|
-
<Button variant={ButtonVariant.primary} type="submit" onClick={onNext} isDisabled={isNextDisabled}>
|
|
75
|
-
{nextButtonText}
|
|
76
|
-
</Button>
|
|
77
|
-
|
|
78
|
-
{!isCancelHidden && (
|
|
79
|
-
<div className={styles.wizardFooterCancel}>
|
|
80
|
-
<Button variant={ButtonVariant.link} onClick={onClose}>
|
|
81
|
-
{cancelButtonText}
|
|
82
|
-
</Button>
|
|
83
|
-
</div>
|
|
84
|
-
)}
|
|
85
|
-
</WizardFooterWrapper>
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
WizardFooterWrapper.displayName = 'WizardFooterWrapper';
|
|
89
|
-
WizardFooter.displayName = 'WizardFooter';
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
|
|
5
|
-
export interface WizardNavProps {
|
|
6
|
-
/** children should be WizardNavItem components */
|
|
7
|
-
children?: any;
|
|
8
|
-
/** Aria-label applied to the navigation element */
|
|
9
|
-
'aria-label'?: string;
|
|
10
|
-
/** Sets the aria-labelledby attribute on the navigation element */
|
|
11
|
-
'aria-labelledby'?: string;
|
|
12
|
-
/** Whether the navigation is expanded */
|
|
13
|
-
isExpanded?: boolean;
|
|
14
|
-
/** True to return the inner list without the wrapping navigation element */
|
|
15
|
-
isInnerList?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const WizardNav: React.FunctionComponent<WizardNavProps> = ({
|
|
19
|
-
children,
|
|
20
|
-
'aria-label': ariaLabel,
|
|
21
|
-
'aria-labelledby': ariaLabelledBy,
|
|
22
|
-
isExpanded = false,
|
|
23
|
-
isInnerList = false
|
|
24
|
-
}: WizardNavProps) => {
|
|
25
|
-
if (isInnerList) {
|
|
26
|
-
return (
|
|
27
|
-
<ol className={css(styles.wizardNavList)} role="list">
|
|
28
|
-
{children}
|
|
29
|
-
</ol>
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<nav
|
|
35
|
-
className={css(styles.wizardNav, isExpanded && styles.modifiers.expanded)}
|
|
36
|
-
aria-label={ariaLabel}
|
|
37
|
-
aria-labelledby={ariaLabelledBy}
|
|
38
|
-
>
|
|
39
|
-
<ol className={css(styles.wizardNavList)} role="list">
|
|
40
|
-
{children}
|
|
41
|
-
</ol>
|
|
42
|
-
</nav>
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
WizardNav.displayName = 'WizardNav';
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
5
|
-
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
6
|
-
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
7
|
-
|
|
8
|
-
import { OUIAProps, useOUIAProps } from '../../../helpers';
|
|
9
|
-
import { WizardNavItemStatus } from './types';
|
|
10
|
-
|
|
11
|
-
export interface WizardNavItemProps extends OUIAProps {
|
|
12
|
-
/** Can nest a WizardNav component for substeps */
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
/** The content to display in the navigation item */
|
|
15
|
-
content?: React.ReactNode;
|
|
16
|
-
/** Whether the navigation item is the currently active item */
|
|
17
|
-
isCurrent?: boolean;
|
|
18
|
-
/** Whether the navigation item is disabled */
|
|
19
|
-
isDisabled?: boolean;
|
|
20
|
-
/** Whether the navigation item has been visited */
|
|
21
|
-
isVisited?: boolean;
|
|
22
|
-
/** The step index passed into the onNavItemClick callback */
|
|
23
|
-
stepIndex: number;
|
|
24
|
-
/** Callback for when the navigation item is clicked */
|
|
25
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLAnchorElement>, index: number) => any;
|
|
26
|
-
/** Component used to render WizardNavItem */
|
|
27
|
-
component?: 'button' | 'a';
|
|
28
|
-
/** An optional url to use for when using an anchor component */
|
|
29
|
-
href?: string;
|
|
30
|
-
/** Where to display the linked URL when using an anchor component */
|
|
31
|
-
target?: React.HTMLAttributeAnchorTarget;
|
|
32
|
-
/** Flag indicating that this NavItem has child steps and is expandable */
|
|
33
|
-
isExpandable?: boolean;
|
|
34
|
-
/** The id for the navigation item */
|
|
35
|
-
id?: string | number;
|
|
36
|
-
/** Used to determine the icon displayed next to content. Default has no icon. */
|
|
37
|
-
status?: 'default' | 'error';
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const WizardNavItem = ({
|
|
41
|
-
children = null,
|
|
42
|
-
content = '',
|
|
43
|
-
isCurrent = false,
|
|
44
|
-
isDisabled = false,
|
|
45
|
-
isVisited = false,
|
|
46
|
-
stepIndex,
|
|
47
|
-
onClick,
|
|
48
|
-
component: NavItemComponent = 'button',
|
|
49
|
-
href,
|
|
50
|
-
isExpandable = false,
|
|
51
|
-
id,
|
|
52
|
-
status = 'default',
|
|
53
|
-
target,
|
|
54
|
-
ouiaId,
|
|
55
|
-
ouiaSafe = true
|
|
56
|
-
}: WizardNavItemProps) => {
|
|
57
|
-
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
58
|
-
const ouiaProps = useOUIAProps(WizardNavItem.displayName, ouiaId, ouiaSafe);
|
|
59
|
-
|
|
60
|
-
React.useEffect(() => {
|
|
61
|
-
setIsExpanded(isCurrent);
|
|
62
|
-
}, [isCurrent]);
|
|
63
|
-
|
|
64
|
-
if (NavItemComponent === 'a' && !href && process.env.NODE_ENV !== 'production') {
|
|
65
|
-
// eslint-disable-next-line no-console
|
|
66
|
-
console.error('WizardNavItem: When using an anchor, please provide an href');
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const ariaLabel = React.useMemo(() => {
|
|
70
|
-
if (status === WizardNavItemStatus.Error || (isVisited && !isCurrent)) {
|
|
71
|
-
let label = content.toString();
|
|
72
|
-
|
|
73
|
-
if (status === WizardNavItemStatus.Error) {
|
|
74
|
-
label += `, ${status}`;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// No need to signify step is visited if current
|
|
78
|
-
if (isVisited && !isCurrent) {
|
|
79
|
-
label += ', visited';
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return label;
|
|
83
|
-
}
|
|
84
|
-
}, [content, isCurrent, isVisited, status]);
|
|
85
|
-
|
|
86
|
-
return (
|
|
87
|
-
<li
|
|
88
|
-
className={css(
|
|
89
|
-
styles.wizardNavItem,
|
|
90
|
-
isExpandable && styles.modifiers.expandable,
|
|
91
|
-
isExpandable && isExpanded && styles.modifiers.expanded
|
|
92
|
-
)}
|
|
93
|
-
>
|
|
94
|
-
<NavItemComponent
|
|
95
|
-
{...(NavItemComponent === 'a'
|
|
96
|
-
? { tabIndex: isDisabled ? -1 : undefined, href, target }
|
|
97
|
-
: { disabled: isDisabled })}
|
|
98
|
-
{...(id && { id: id.toString() })}
|
|
99
|
-
onClick={e => {
|
|
100
|
-
e.stopPropagation();
|
|
101
|
-
isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onClick?.(e, stepIndex);
|
|
102
|
-
}}
|
|
103
|
-
className={css(
|
|
104
|
-
styles.wizardNavLink,
|
|
105
|
-
isCurrent && styles.modifiers.current,
|
|
106
|
-
isDisabled && styles.modifiers.disabled
|
|
107
|
-
)}
|
|
108
|
-
aria-disabled={isDisabled ? true : null}
|
|
109
|
-
aria-current={isCurrent && !children ? 'step' : false}
|
|
110
|
-
{...(isExpandable && { 'aria-expanded': isExpanded })}
|
|
111
|
-
{...(ariaLabel && { 'aria-label': ariaLabel })}
|
|
112
|
-
{...ouiaProps}
|
|
113
|
-
>
|
|
114
|
-
{isExpandable ? (
|
|
115
|
-
<>
|
|
116
|
-
<span className={css(styles.wizardNavLinkText)}>{content}</span>
|
|
117
|
-
<span className={css(styles.wizardNavLinkToggle)}>
|
|
118
|
-
<span className={css(styles.wizardNavLinkToggleIcon)}>
|
|
119
|
-
<AngleRightIcon aria-label={`${isCurrent ? 'Collapse' : 'Expand'} step icon`} />
|
|
120
|
-
</span>
|
|
121
|
-
</span>
|
|
122
|
-
</>
|
|
123
|
-
) : (
|
|
124
|
-
<>
|
|
125
|
-
{content}
|
|
126
|
-
{/* TODO, patternfly/patternfly#5142 */}
|
|
127
|
-
{status === WizardNavItemStatus.Error && (
|
|
128
|
-
<span style={{ marginLeft: 'var(--pf-global--spacer--sm)' }}>
|
|
129
|
-
<ExclamationCircleIcon color="var(--pf-global--danger-color--100)" />
|
|
130
|
-
</span>
|
|
131
|
-
)}
|
|
132
|
-
</>
|
|
133
|
-
)}
|
|
134
|
-
</NavItemComponent>
|
|
135
|
-
{children}
|
|
136
|
-
</li>
|
|
137
|
-
);
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
WizardNavItem.displayName = 'WizardNavItem';
|