@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
package/src/{components → deprecated/components}/Wizard/examples/WizardIncrementallyEnabledSteps.tsx
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Wizard, WizardStep } from '@patternfly/react-core';
|
|
2
|
+
import { Wizard as WizardDeprecated, WizardStep } from '@patternfly/react-core/deprecated';
|
|
3
3
|
|
|
4
4
|
export const WizardIncrementallyEnabledSteps: React.FunctionComponent = () => {
|
|
5
5
|
const [stepIdReached, setStepIdReached] = React.useState(1);
|
|
@@ -49,7 +49,7 @@ export const WizardIncrementallyEnabledSteps: React.FunctionComponent = () => {
|
|
|
49
49
|
];
|
|
50
50
|
const title = 'Incrementally enabled wizard example';
|
|
51
51
|
return (
|
|
52
|
-
<
|
|
52
|
+
<WizardDeprecated
|
|
53
53
|
navAriaLabel={`${title} steps`}
|
|
54
54
|
mainAriaLabel={`${title} content`}
|
|
55
55
|
onClose={closeWizard}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
EmptyState,
|
|
4
|
+
EmptyStateHeader,
|
|
5
|
+
EmptyStateFooter,
|
|
6
|
+
EmptyStateBody,
|
|
7
|
+
EmptyStateActions,
|
|
8
|
+
Form,
|
|
9
|
+
FormGroup,
|
|
10
|
+
TextInput,
|
|
11
|
+
Progress,
|
|
12
|
+
Button,
|
|
13
|
+
Alert,
|
|
14
|
+
EmptyStateIcon
|
|
15
|
+
} from '@patternfly/react-core';
|
|
16
|
+
import { Wizard as WizardDeprecated, WizardFooter as WizardFooterDeprecated, WizardContextConsumer as WizardContextConsumerDeprecated } from '@patternfly/react-core/deprecated';
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line patternfly-react/import-tokens-icons
|
|
19
|
+
import { CogsIcon } from '@patternfly/react-icons';
|
|
20
|
+
|
|
21
|
+
interface finishedProps {
|
|
22
|
+
onClose: () => void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const FinishedStep: React.FunctionComponent<finishedProps> = (props: finishedProps) => {
|
|
26
|
+
const [percent, setPercent] = React.useState(0);
|
|
27
|
+
|
|
28
|
+
const tick = () => {
|
|
29
|
+
setPercent((prevPercent) => {
|
|
30
|
+
if (prevPercent < 100) {
|
|
31
|
+
return prevPercent + 20;
|
|
32
|
+
} else {
|
|
33
|
+
return prevPercent;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
React.useEffect(() => {
|
|
39
|
+
const interval = setInterval(() => tick(), 1000);
|
|
40
|
+
|
|
41
|
+
if (percent >= 100) {
|
|
42
|
+
clearInterval(interval);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return () => clearInterval(interval);
|
|
46
|
+
}, [percent]);
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<div className="pf-l-bullseye">
|
|
50
|
+
<EmptyState variant="lg">
|
|
51
|
+
<EmptyStateHeader
|
|
52
|
+
headingLevel="h4"
|
|
53
|
+
titleText={percent === 100 ? 'Validation complete' : 'Validating credentials'}
|
|
54
|
+
icon={<EmptyStateIcon icon={CogsIcon} />}
|
|
55
|
+
/>
|
|
56
|
+
<EmptyStateBody>
|
|
57
|
+
<Progress value={percent} measureLocation="outside" aria-label="validation-progress" />
|
|
58
|
+
</EmptyStateBody>
|
|
59
|
+
<EmptyStateBody>
|
|
60
|
+
Description can be used to further elaborate on the validation step, or give the user a better idea of how
|
|
61
|
+
long the process will take.
|
|
62
|
+
</EmptyStateBody>
|
|
63
|
+
<EmptyStateFooter>
|
|
64
|
+
<EmptyStateActions>
|
|
65
|
+
<Button isDisabled={percent !== 100} onClick={props.onClose}>
|
|
66
|
+
Log to console
|
|
67
|
+
</Button>
|
|
68
|
+
</EmptyStateActions>
|
|
69
|
+
</EmptyStateFooter>
|
|
70
|
+
</EmptyState>
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
interface sampleFormProps {
|
|
76
|
+
formValue: string;
|
|
77
|
+
isFormValid: boolean;
|
|
78
|
+
onChange?: (isValid: boolean, value: string) => void;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const SampleForm: React.FunctionComponent<sampleFormProps> = (props: sampleFormProps) => {
|
|
82
|
+
const [value, setValue] = React.useState(props.formValue);
|
|
83
|
+
const [isValid, setIsValid] = React.useState(props.isFormValid);
|
|
84
|
+
|
|
85
|
+
const handleTextInputChange = (value: string) => {
|
|
86
|
+
const valid = /^\d+$/.test(value);
|
|
87
|
+
setValue(value);
|
|
88
|
+
setIsValid(valid);
|
|
89
|
+
props.onChange && props.onChange(valid, value);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const validated = isValid ? 'default' : 'error';
|
|
93
|
+
|
|
94
|
+
return (
|
|
95
|
+
<Form>
|
|
96
|
+
<FormGroup
|
|
97
|
+
label="Age:"
|
|
98
|
+
type="number"
|
|
99
|
+
helperText="Write your age in numbers."
|
|
100
|
+
helperTextInvalid="Age has to be a number"
|
|
101
|
+
fieldId="age"
|
|
102
|
+
validated={validated}
|
|
103
|
+
>
|
|
104
|
+
<TextInput
|
|
105
|
+
validated={validated}
|
|
106
|
+
value={value}
|
|
107
|
+
id="age"
|
|
108
|
+
aria-describedby="age-helper"
|
|
109
|
+
onChange={handleTextInputChange}
|
|
110
|
+
/>
|
|
111
|
+
</FormGroup>
|
|
112
|
+
</Form>
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export const WizardValidateButtonPress: React.FunctionComponent = () => {
|
|
117
|
+
const [isFormValid, setIsFormValid] = React.useState(false);
|
|
118
|
+
const [formValue, setFormValue] = React.useState('Validating on button press');
|
|
119
|
+
const [stepsValid, setStepsValid] = React.useState(0);
|
|
120
|
+
const [errorText, setErrorText] = React.useState(false);
|
|
121
|
+
|
|
122
|
+
const closeWizard = () => {
|
|
123
|
+
// eslint-disable-next-line no-console
|
|
124
|
+
console.log('close wizard');
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const onFormChange = (isValid: boolean, value: string) => {
|
|
128
|
+
setIsFormValid(isValid);
|
|
129
|
+
setFormValue(value);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const validateLastStep: (onNext: () => void) => void = (onNext) => {
|
|
133
|
+
if (stepsValid !== 1 && !isFormValid) {
|
|
134
|
+
setErrorText(true);
|
|
135
|
+
} else {
|
|
136
|
+
setStepsValid(1);
|
|
137
|
+
setErrorText(false);
|
|
138
|
+
onNext();
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
const steps = [
|
|
143
|
+
{ name: 'First step', component: <p>Step 1 content</p> },
|
|
144
|
+
{ name: 'Second step', component: <p>Step 2 content</p> },
|
|
145
|
+
{
|
|
146
|
+
name: 'Final Step',
|
|
147
|
+
component: (
|
|
148
|
+
<>
|
|
149
|
+
{errorText && (
|
|
150
|
+
<div style={{ padding: '15px 0' }}>
|
|
151
|
+
<Alert variant="warning" title="Validation failed, please try again" />
|
|
152
|
+
</div>
|
|
153
|
+
)}
|
|
154
|
+
<SampleForm formValue={formValue} isFormValid={stepsValid !== 1} onChange={onFormChange} />
|
|
155
|
+
</>
|
|
156
|
+
)
|
|
157
|
+
},
|
|
158
|
+
{ name: 'Finish', component: <FinishedStep onClose={closeWizard} />, isFinishedStep: true }
|
|
159
|
+
];
|
|
160
|
+
|
|
161
|
+
const CustomFooter = (
|
|
162
|
+
<WizardFooterDeprecated>
|
|
163
|
+
<WizardContextConsumerDeprecated>
|
|
164
|
+
{({ activeStep, goToStepByName, onNext, onBack, onClose }) => {
|
|
165
|
+
if (activeStep.name !== 'Final Step') {
|
|
166
|
+
return (
|
|
167
|
+
<>
|
|
168
|
+
<Button variant="primary" type="submit" onClick={onNext}>
|
|
169
|
+
Forward
|
|
170
|
+
</Button>
|
|
171
|
+
<Button
|
|
172
|
+
variant="secondary"
|
|
173
|
+
onClick={onBack}
|
|
174
|
+
className={activeStep.name === 'First step' ? 'pf-m-disabled' : ''}
|
|
175
|
+
>
|
|
176
|
+
Backward
|
|
177
|
+
</Button>
|
|
178
|
+
<Button variant="link" onClick={onClose}>
|
|
179
|
+
Cancel
|
|
180
|
+
</Button>
|
|
181
|
+
</>
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
// Final step buttons
|
|
185
|
+
return (
|
|
186
|
+
<>
|
|
187
|
+
<Button onClick={() => validateLastStep(onNext)}>Validate</Button>
|
|
188
|
+
<Button onClick={() => goToStepByName('First step')}>Go to Beginning</Button>
|
|
189
|
+
</>
|
|
190
|
+
);
|
|
191
|
+
}}
|
|
192
|
+
</WizardContextConsumerDeprecated>
|
|
193
|
+
</WizardFooterDeprecated>
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
const title = 'Validate on button press wizard example';
|
|
197
|
+
return (
|
|
198
|
+
<WizardDeprecated
|
|
199
|
+
navAriaLabel={`${title} steps`}
|
|
200
|
+
mainAriaLabel={`${title} content`}
|
|
201
|
+
onClose={closeWizard}
|
|
202
|
+
footer={CustomFooter}
|
|
203
|
+
steps={steps}
|
|
204
|
+
height={400}
|
|
205
|
+
/>
|
|
206
|
+
);
|
|
207
|
+
};
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
DrawerCloseButton,
|
|
6
6
|
DrawerColorVariant,
|
|
7
7
|
DrawerHead,
|
|
8
|
-
DrawerPanelContent
|
|
9
|
-
Wizard
|
|
8
|
+
DrawerPanelContent
|
|
10
9
|
} from '@patternfly/react-core';
|
|
10
|
+
import { Wizard as WizardDeprecated } from '@patternfly/react-core/deprecated';
|
|
11
11
|
|
|
12
12
|
export const WizardWithDrawer: React.FunctionComponent = () => {
|
|
13
13
|
const [isDrawerExpanded, setIsDrawerExpanded] = React.useState(false);
|
|
@@ -118,7 +118,7 @@ export const WizardWithDrawer: React.FunctionComponent = () => {
|
|
|
118
118
|
|
|
119
119
|
return (
|
|
120
120
|
<React.Fragment>
|
|
121
|
-
<
|
|
121
|
+
<WizardDeprecated
|
|
122
122
|
height={400}
|
|
123
123
|
isDrawerExpanded={isDrawerExpanded}
|
|
124
124
|
onExpandDrawer={onExpandDrawer}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
export * from './Wizard';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './WizardFooter';
|
|
4
|
-
export * from './WizardToggle';
|
|
5
|
-
export * from './WizardStep';
|
|
2
|
+
export * from './WizardContext';
|
|
6
3
|
export * from './WizardNav';
|
|
7
4
|
export * from './WizardNavItem';
|
|
8
5
|
export * from './WizardHeader';
|
|
9
|
-
export * from './
|
|
10
|
-
export
|
|
11
|
-
export
|
|
6
|
+
export * from './WizardBody';
|
|
7
|
+
export * from './WizardFooter';
|
|
8
|
+
export * from './WizardToggle';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertGroup/AlertGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC3F,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,C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EAAE,SAAS,CAAC,CAAC;IACtD,CAAC;;AA9DM,sBAAW,GAAG,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertGroupInline.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertGroup/AlertGroupInline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CA2BrE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertGroupInline.js","sourceRoot":"","sources":["../../../../src/components/AlertGroup/AlertGroupInline.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,gEAAgE,CAAC;AAIpF,MAAM,CAAC,MAAM,gBAAgB,GAA6C,CAAC,EAQzD,EAAE,EAAE;QARqD,EACzE,SAAS,EACT,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,eAAe,EACf,eAAe,OAEC,EADb,IAAI,cAPkE,0FAQ1E,CADQ;IACc,OAAA,CACrB,0CACE,IAAI,EAAC,MAAM,eACA,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,iBAC5B,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EACxC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAC/E,IAAI;QAEP,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;;YAAC,OAAA,CACtD,4BAAI,GAAG,EAAE,CAAA,MAAC,KAAwC,CAAC,KAAK,0CAAE,EAAE,KAAI,KAAK,IAAG,KAAK,CAAM,CACpF,CAAA;SAAA,CAAC;QACD,eAAe,IAAI,CAClB;YACE,gCAAQ,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,wBAAwB,CAAC,IAC9E,eAAe,CACT,CACN,CACN,CACE,CACN,CAAA;CAAA,CAAC;AACF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AlertGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-alertgroup-esm","main":"index.js","module":"./dist/esm/components/AlertGroup/index.js","typings":"index.d.ts","version":"5.0.0-alpha.69"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardDrawerWrapper.d.ts","sourceRoot":"","sources":["../../../../src/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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardDrawerWrapper.js","sourceRoot":"","sources":["../../../../src/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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardFooterInternal.d.ts","sourceRoot":"","sources":["../../../../src/components/Wizard/WizardFooterInternal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;CACnC;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,iBAAiB,CAAC,yBAAyB,CA4BnF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardFooterInternal.js","sourceRoot":"","sources":["../../../../src/components/Wizard/WizardFooterInternal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,uDAAuD,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAelD,MAAM,CAAC,MAAM,oBAAoB,GAAuD,CAAC,EACvF,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EACU,EAAE,EAAE,CAAC,CAC/B,gCAAQ,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC;IACxC,CAAC,UAAU,CAAC,cAAc,IAAI,CAC7B,oBAAC,MAAM,IAAC,OAAO,EAAE,aAAa,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,IAC7E,cAAc,CACR,CACV;IACD,oBAAC,MAAM,IAAC,OAAO,EAAE,aAAa,CAAC,OAAO,EAAE,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,OAAO,IACxF,cAAc,CACR;IACR,CAAC,UAAU,CAAC,gBAAgB,IAAI,CAC/B,6BAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB;QACvC,oBAAC,MAAM,IAAC,OAAO,EAAE,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,IAClD,gBAAgB,CACV,CACL,CACP,CACM,CACV,CAAC;AACF,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WizardStepType, WizardFooterType, WizardNavType, WizardStepChangeScope } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Wrapper for all steps and hosts state, including navigation helpers, within context.
|
|
5
|
-
* The WizardContext provided by default gives any child of wizard access to those resources.
|
|
6
|
-
*/
|
|
7
|
-
export interface WizardProps extends React.HTMLProps<HTMLDivElement> {
|
|
8
|
-
/** Step components */
|
|
9
|
-
children: React.ReactNode | React.ReactNode[];
|
|
10
|
-
/** Wizard header */
|
|
11
|
-
header?: React.ReactNode;
|
|
12
|
-
/** Wizard footer */
|
|
13
|
-
footer?: WizardFooterType;
|
|
14
|
-
/** Wizard navigation */
|
|
15
|
-
nav?: WizardNavType;
|
|
16
|
-
/** The initial index the wizard is to start on (1 or higher). Defaults to 1. */
|
|
17
|
-
startIndex?: number;
|
|
18
|
-
/** Additional classes spread to the wizard */
|
|
19
|
-
className?: string;
|
|
20
|
-
/** Custom width of the wizard */
|
|
21
|
-
width?: number | string;
|
|
22
|
-
/** Custom height of the wizard */
|
|
23
|
-
height?: number | string;
|
|
24
|
-
/** Disables steps that haven't been visited. Defaults to false. */
|
|
25
|
-
isVisitRequired?: boolean;
|
|
26
|
-
/** Progressively shows steps, where all steps following the active step are hidden. Defaults to false. */
|
|
27
|
-
isProgressive?: boolean;
|
|
28
|
-
/** Callback function when navigating between steps */
|
|
29
|
-
onStepChange?: (event: React.MouseEvent<HTMLButtonElement>, currentStep: WizardStepType, prevStep: WizardStepType, scope: WizardStepChangeScope) => void | Promise<void>;
|
|
30
|
-
/** Callback function to save at the end of the wizard, if not specified uses onClose */
|
|
31
|
-
onSave?: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>;
|
|
32
|
-
/** Callback function to close the wizard */
|
|
33
|
-
onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
34
|
-
}
|
|
35
|
-
export declare const Wizard: {
|
|
36
|
-
({ children, footer, height, width, className, header, nav, startIndex, isVisitRequired, isProgressive, onStepChange, onSave, onClose, ...wrapperProps }: WizardProps): JSX.Element;
|
|
37
|
-
displayName: string;
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=Wizard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wizard.d.ts","sourceRoot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5C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAChE;AAED,eAAO,MAAM,MAAM;8JAehB,WAAW;;CA8Gb,CAAC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
5
|
-
import { isWizardParentStep, isCustomWizardNav, WizardStepChangeScope } from './types';
|
|
6
|
-
import { buildSteps } from './utils';
|
|
7
|
-
import { useWizardContext, WizardContextProvider } from './WizardContext';
|
|
8
|
-
import { WizardToggle } from './WizardToggle';
|
|
9
|
-
import { WizardNavInternal } from './WizardNavInternal';
|
|
10
|
-
export const Wizard = (_a) => {
|
|
11
|
-
var { children, footer, height, width, className, header, nav, startIndex = 1, isVisitRequired = false, isProgressive = false, onStepChange, onSave, onClose } = _a, wrapperProps = __rest(_a, ["children", "footer", "height", "width", "className", "header", "nav", "startIndex", "isVisitRequired", "isProgressive", "onStepChange", "onSave", "onClose"]);
|
|
12
|
-
const [activeStepIndex, setActiveStepIndex] = React.useState(startIndex);
|
|
13
|
-
const initialSteps = buildSteps(children);
|
|
14
|
-
const firstStepRef = React.useRef(initialSteps[startIndex - 1]);
|
|
15
|
-
// When the startIndex maps to a parent step, focus on the first sub-step
|
|
16
|
-
React.useEffect(() => {
|
|
17
|
-
if (isWizardParentStep(firstStepRef.current)) {
|
|
18
|
-
setActiveStepIndex(startIndex + 1);
|
|
19
|
-
}
|
|
20
|
-
}, [startIndex]);
|
|
21
|
-
const goToNextStep = (event, steps = initialSteps) => {
|
|
22
|
-
const newStep = steps.find(step => step.index > activeStepIndex && !step.isHidden && !step.isDisabled && !isWizardParentStep(step));
|
|
23
|
-
if (activeStepIndex >= steps.length || !(newStep === null || newStep === void 0 ? void 0 : newStep.index)) {
|
|
24
|
-
return onSave ? onSave(event) : onClose === null || onClose === void 0 ? void 0 : onClose(event);
|
|
25
|
-
}
|
|
26
|
-
const currStep = isWizardParentStep(steps[activeStepIndex]) ? steps[activeStepIndex + 1] : steps[activeStepIndex];
|
|
27
|
-
const prevStep = steps[activeStepIndex - 1];
|
|
28
|
-
setActiveStepIndex(newStep === null || newStep === void 0 ? void 0 : newStep.index);
|
|
29
|
-
onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(event, currStep, prevStep, WizardStepChangeScope.Next);
|
|
30
|
-
};
|
|
31
|
-
const goToPrevStep = (event, steps = initialSteps) => {
|
|
32
|
-
const newStep = [...steps]
|
|
33
|
-
.reverse()
|
|
34
|
-
.find((step) => step.index < activeStepIndex && !step.isHidden && !step.isDisabled && !isWizardParentStep(step));
|
|
35
|
-
const currStep = isWizardParentStep(steps[activeStepIndex - 2])
|
|
36
|
-
? steps[activeStepIndex - 3]
|
|
37
|
-
: steps[activeStepIndex - 2];
|
|
38
|
-
const prevStep = steps[activeStepIndex - 1];
|
|
39
|
-
setActiveStepIndex(newStep === null || newStep === void 0 ? void 0 : newStep.index);
|
|
40
|
-
onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(event, currStep, prevStep, WizardStepChangeScope.Back);
|
|
41
|
-
};
|
|
42
|
-
const goToStepByIndex = (event, steps = initialSteps, index) => {
|
|
43
|
-
const lastStepIndex = steps.length + 1;
|
|
44
|
-
// Handle index when out of bounds or hidden
|
|
45
|
-
if (index < 1) {
|
|
46
|
-
index = 1;
|
|
47
|
-
}
|
|
48
|
-
else if (index > lastStepIndex) {
|
|
49
|
-
index = lastStepIndex;
|
|
50
|
-
}
|
|
51
|
-
const currStep = steps[index - 1];
|
|
52
|
-
const prevStep = steps[activeStepIndex - 1];
|
|
53
|
-
setActiveStepIndex(index);
|
|
54
|
-
onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(event, currStep, prevStep, WizardStepChangeScope.Nav);
|
|
55
|
-
};
|
|
56
|
-
const goToStepById = (steps = initialSteps, id) => {
|
|
57
|
-
const step = steps.find(step => step.id === id);
|
|
58
|
-
const stepIndex = step === null || step === void 0 ? void 0 : step.index;
|
|
59
|
-
const lastStepIndex = steps.length + 1;
|
|
60
|
-
if (stepIndex > 0 && stepIndex < lastStepIndex && !step.isDisabled && !step.isHidden) {
|
|
61
|
-
setActiveStepIndex(stepIndex);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
const goToStepByName = (steps = initialSteps, name) => {
|
|
65
|
-
const step = steps.find(step => step.name === name);
|
|
66
|
-
const stepIndex = step === null || step === void 0 ? void 0 : step.index;
|
|
67
|
-
const lastStepIndex = steps.length + 1;
|
|
68
|
-
if (stepIndex > 0 && stepIndex < lastStepIndex && !step.isDisabled && !step.isHidden) {
|
|
69
|
-
setActiveStepIndex(stepIndex);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
return (React.createElement(WizardContextProvider, { steps: initialSteps, activeStepIndex: activeStepIndex, footer: footer, onNext: goToNextStep, onBack: goToPrevStep, onClose: onClose, goToStepById: goToStepById, goToStepByName: goToStepByName, goToStepByIndex: goToStepByIndex },
|
|
73
|
-
React.createElement("div", Object.assign({ className: css(styles.wizard, className), style: Object.assign(Object.assign({}, (height ? { height } : {})), (width ? { width } : {})) }, wrapperProps),
|
|
74
|
-
header,
|
|
75
|
-
React.createElement(WizardInternal, { nav: nav, isVisitRequired: isVisitRequired, isProgressive: isProgressive }))));
|
|
76
|
-
};
|
|
77
|
-
const WizardInternal = ({ nav, isVisitRequired, isProgressive }) => {
|
|
78
|
-
const { activeStep, steps, footer, goToStepByIndex } = useWizardContext();
|
|
79
|
-
const [isNavExpanded, setIsNavExpanded] = React.useState(false);
|
|
80
|
-
const wizardNav = React.useMemo(() => {
|
|
81
|
-
if (isCustomWizardNav(nav)) {
|
|
82
|
-
return typeof nav === 'function' ? nav(isNavExpanded, steps, activeStep, goToStepByIndex) : nav;
|
|
83
|
-
}
|
|
84
|
-
return (React.createElement(WizardNavInternal, { nav: nav, isNavExpanded: isNavExpanded, isVisitRequired: isVisitRequired, isProgressive: isProgressive }));
|
|
85
|
-
}, [activeStep, isVisitRequired, isProgressive, goToStepByIndex, isNavExpanded, nav, steps]);
|
|
86
|
-
return (React.createElement(WizardToggle, { nav: wizardNav, footer: footer, steps: steps, activeStep: activeStep, isNavExpanded: isNavExpanded, toggleNavExpanded: () => setIsNavExpanded(prevIsExpanded => !prevIsExpanded) }));
|
|
87
|
-
};
|
|
88
|
-
Wizard.displayName = 'Wizard';
|
|
89
|
-
//# sourceMappingURL=Wizard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wizard.js","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/Wizard.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,MAAM,uDAAuD,CAAC;AAE3E,OAAO,EACL,kBAAkB,EAElB,iBAAiB,EAGjB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAyCxD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAeT,EAAE,EAAE;QAfK,EACrB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,KAAK,EACL,SAAS,EACT,MAAM,EACN,GAAG,EACH,UAAU,GAAG,CAAC,EACd,eAAe,GAAG,KAAK,EACvB,aAAa,GAAG,KAAK,EACrB,YAAY,EACZ,MAAM,EACN,OAAO,OAEK,EADT,YAAY,cAdM,8JAetB,CADgB;IAEf,MAAM,CAAC,eAAe,EAAE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U,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;SACjG;QAED,OAAO,CACL,oBAAC,iBAAiB,IAChB,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,GAC5B,CACH,CAAC;IACJ,CAAC,EAAE,CAAC,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAE7F,OAAO,CACL,oBAAC,YAAY,IACX,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,GAC5E,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Used as a wrapper for WizardStep content, where the wrapping element is customizable.
|
|
4
|
-
*/
|
|
5
|
-
export interface WizardBodyProps {
|
|
6
|
-
children: React.ReactNode | React.ReactNode[];
|
|
7
|
-
/** Set to true to remove the default body padding */
|
|
8
|
-
hasNoPadding?: boolean;
|
|
9
|
-
/** Adds an accessible name to the wrapper element when the content overflows and renders
|
|
10
|
-
* a scrollbar.
|
|
11
|
-
*/
|
|
12
|
-
'aria-label'?: string;
|
|
13
|
-
/** Adds an accessible name to the wrapper element by passing the the id of one or more elements.
|
|
14
|
-
* The aria-labelledby will only be applied when the content overflows and renders a scrollbar.
|
|
15
|
-
*/
|
|
16
|
-
'aria-labelledby'?: string;
|
|
17
|
-
/** Component used as the wrapping content container */
|
|
18
|
-
component?: React.ElementType;
|
|
19
|
-
}
|
|
20
|
-
export declare const WizardBody: {
|
|
21
|
-
({ children, hasNoPadding, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, component }: WizardBodyProps): JSX.Element;
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=WizardBody.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardBody.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/WizardBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IAC9C,qDAAqD;IACrD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uDAAuD;IACvD,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B;AAED,eAAO,MAAM,UAAU;wGAMpB,eAAe;;CA8CjB,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styles from '@patternfly/react-styles/css/components/Wizard/wizard';
|
|
3
|
-
import { css } from '@patternfly/react-styles';
|
|
4
|
-
import { WizardContext } from './WizardContext';
|
|
5
|
-
import { debounce } from '../../../helpers/util';
|
|
6
|
-
import { getResizeObserver } from '../../../helpers/resizeObserver';
|
|
7
|
-
export const WizardBody = ({ children, hasNoPadding = false, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, component = 'div' }) => {
|
|
8
|
-
const [hasScrollbar, setHasScrollbar] = React.useState(false);
|
|
9
|
-
const [previousWidth, setPreviousWidth] = React.useState(undefined);
|
|
10
|
-
const wrapperRef = React.useRef(null);
|
|
11
|
-
const WrapperComponent = component;
|
|
12
|
-
const { activeStep } = React.useContext(WizardContext);
|
|
13
|
-
const defaultAriaLabel = ariaLabel || `${activeStep === null || activeStep === void 0 ? void 0 : activeStep.name} content`;
|
|
14
|
-
React.useEffect(() => {
|
|
15
|
-
const resize = () => {
|
|
16
|
-
if (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current) {
|
|
17
|
-
const { offsetWidth, offsetHeight, scrollHeight } = wrapperRef.current;
|
|
18
|
-
if (previousWidth !== offsetWidth) {
|
|
19
|
-
setPreviousWidth(offsetWidth);
|
|
20
|
-
setHasScrollbar(offsetHeight < scrollHeight);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
const handleResizeWithDelay = debounce(resize, 250);
|
|
25
|
-
let observer = () => { };
|
|
26
|
-
if (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current) {
|
|
27
|
-
observer = getResizeObserver(wrapperRef.current, handleResizeWithDelay);
|
|
28
|
-
const { offsetHeight, scrollHeight } = wrapperRef.current;
|
|
29
|
-
setHasScrollbar(offsetHeight < scrollHeight);
|
|
30
|
-
setPreviousWidth(wrapperRef.current.offsetWidth);
|
|
31
|
-
}
|
|
32
|
-
return () => {
|
|
33
|
-
observer();
|
|
34
|
-
};
|
|
35
|
-
}, []);
|
|
36
|
-
return (React.createElement(WrapperComponent, Object.assign({ ref: wrapperRef }, (component === 'div' && hasScrollbar && { role: 'region' }), (hasScrollbar && { 'aria-label': defaultAriaLabel, 'aria-labelledby': ariaLabelledBy, tabIndex: 0 }), { className: css(styles.wizardMain) }),
|
|
37
|
-
React.createElement("div", { className: css(styles.wizardMainBody, hasNoPadding && styles.modifiers.noPadding) }, children)));
|
|
38
|
-
};
|
|
39
|
-
WizardBody.displayName = 'WizardBody';
|
|
40
|
-
//# sourceMappingURL=WizardBody.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":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|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WizardStepType, WizardFooterType } from './types';
|
|
3
|
-
import { WizardFooterProps } from './WizardFooter';
|
|
4
|
-
export interface WizardContextProps {
|
|
5
|
-
/** List of steps */
|
|
6
|
-
steps: WizardStepType[];
|
|
7
|
-
/** Current step */
|
|
8
|
-
activeStep: WizardStepType;
|
|
9
|
-
/** Footer element */
|
|
10
|
-
footer: React.ReactElement;
|
|
11
|
-
/** Close the wizard */
|
|
12
|
-
close: () => void;
|
|
13
|
-
/** Navigate to the next step */
|
|
14
|
-
goToNextStep: () => void | Promise<void>;
|
|
15
|
-
/** Navigate to the previous step */
|
|
16
|
-
goToPrevStep: () => void | Promise<void>;
|
|
17
|
-
/** Navigate to step by ID */
|
|
18
|
-
goToStepById: (id: number | string) => void;
|
|
19
|
-
/** Navigate to step by name */
|
|
20
|
-
goToStepByName: (name: string) => void;
|
|
21
|
-
/** Navigate to step by index */
|
|
22
|
-
goToStepByIndex: (index: number) => void;
|
|
23
|
-
/** Update the footer with any react element */
|
|
24
|
-
setFooter: (footer: React.ReactElement | Partial<WizardFooterProps>) => void;
|
|
25
|
-
/** Get step by ID */
|
|
26
|
-
getStep: (stepId: number | string) => WizardStepType;
|
|
27
|
-
/** Set step by ID */
|
|
28
|
-
setStep: (step: Pick<WizardStepType, 'id'> & Partial<WizardStepType>) => void;
|
|
29
|
-
}
|
|
30
|
-
export declare const WizardContext: React.Context<WizardContextProps>;
|
|
31
|
-
export interface WizardContextProviderProps {
|
|
32
|
-
steps: WizardStepType[];
|
|
33
|
-
activeStepIndex: number;
|
|
34
|
-
footer: WizardFooterType;
|
|
35
|
-
children: React.ReactElement;
|
|
36
|
-
onNext(event: React.MouseEvent<HTMLButtonElement>, steps: WizardStepType[]): void;
|
|
37
|
-
onBack(event: React.MouseEvent<HTMLButtonElement>, steps: WizardStepType[]): void;
|
|
38
|
-
onClose?(event: React.MouseEvent<HTMLButtonElement>): void;
|
|
39
|
-
goToStepById(steps: WizardStepType[], id: number | string): void;
|
|
40
|
-
goToStepByName(steps: WizardStepType[], name: string): void;
|
|
41
|
-
goToStepByIndex(event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLAnchorElement>, steps: WizardStepType[], index: number): void;
|
|
42
|
-
}
|
|
43
|
-
export declare const WizardContextProvider: React.FunctionComponent<WizardContextProviderProps>;
|
|
44
|
-
export declare const useWizardContext: () => WizardContextProps;
|
|
45
|
-
//# sourceMappingURL=WizardContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WizardContext.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/WizardContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAyC,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,oBAAoB;IACpB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,mBAAmB;IACnB,UAAU,EAAE,cAAc,CAAC;IAC3B,qBAAqB;IACrB,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC;IAC3B,uBAAuB;IACvB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,gCAAgC;IAChC,YAAY,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,oCAAoC;IACpC,YAAY,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,6BAA6B;IAC7B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC5C,+BAA+B;IAC/B,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gCAAgC;IAChC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI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