@patternfly/react-core 4.202.32 → 4.202.35
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 +27 -0
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.d.ts +9 -2
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js.map +1 -1
- package/dist/esm/components/Brand/Brand.d.ts +23 -3
- package/dist/esm/components/Brand/Brand.d.ts.map +1 -1
- package/dist/esm/components/Brand/Brand.js +12 -2
- package/dist/esm/components/Brand/Brand.js.map +1 -1
- package/dist/esm/components/ContextSelector/ContextSelector.d.ts +10 -2
- package/dist/esm/components/ContextSelector/ContextSelector.d.ts.map +1 -1
- package/dist/esm/components/ContextSelector/ContextSelector.js +3 -2
- package/dist/esm/components/ContextSelector/ContextSelector.js.map +1 -1
- package/dist/esm/components/ContextSelector/ContextSelectorToggle.js +3 -3
- package/dist/esm/components/ContextSelector/ContextSelectorToggle.js.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.d.ts +9 -2
- package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.js +2 -2
- package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/components/OptionsMenu/OptionsMenu.d.ts +9 -2
- package/dist/esm/components/OptionsMenu/OptionsMenu.d.ts.map +1 -1
- package/dist/esm/components/OptionsMenu/OptionsMenu.js.map +1 -1
- package/dist/esm/components/Select/Select.d.ts +9 -2
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts +2 -0
- package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js +3 -2
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/Wizard/Wizard.d.ts +2 -0
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +3 -2
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/components/Wizard/WizardHeader.d.ts +2 -0
- 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/helpers/Popper/Popper.d.ts +0 -10
- package/dist/esm/helpers/Popper/Popper.d.ts.map +1 -1
- package/dist/esm/helpers/Popper/Popper.js.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.d.ts +9 -2
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.js.map +1 -1
- package/dist/js/components/Brand/Brand.d.ts +23 -3
- package/dist/js/components/Brand/Brand.d.ts.map +1 -1
- package/dist/js/components/Brand/Brand.js +12 -2
- package/dist/js/components/Brand/Brand.js.map +1 -1
- package/dist/js/components/ContextSelector/ContextSelector.d.ts +10 -2
- package/dist/js/components/ContextSelector/ContextSelector.d.ts.map +1 -1
- package/dist/js/components/ContextSelector/ContextSelector.js +3 -2
- package/dist/js/components/ContextSelector/ContextSelector.js.map +1 -1
- package/dist/js/components/ContextSelector/ContextSelectorToggle.js +3 -3
- package/dist/js/components/ContextSelector/ContextSelectorToggle.js.map +1 -1
- package/dist/js/components/Dropdown/Dropdown.d.ts +9 -2
- package/dist/js/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/js/components/Dropdown/Dropdown.js +2 -2
- package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/js/components/OptionsMenu/OptionsMenu.d.ts +9 -2
- package/dist/js/components/OptionsMenu/OptionsMenu.d.ts.map +1 -1
- package/dist/js/components/OptionsMenu/OptionsMenu.js.map +1 -1
- package/dist/js/components/Select/Select.d.ts +9 -2
- package/dist/js/components/Select/Select.d.ts.map +1 -1
- package/dist/js/components/Select/Select.js.map +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts +2 -0
- package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/js/components/Tabs/Tabs.js +3 -2
- package/dist/js/components/Tabs/Tabs.js.map +1 -1
- package/dist/js/components/Wizard/Wizard.d.ts +2 -0
- package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.js +3 -2
- package/dist/js/components/Wizard/Wizard.js.map +1 -1
- package/dist/js/components/Wizard/WizardHeader.d.ts +2 -0
- 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/helpers/Popper/Popper.d.ts +0 -10
- package/dist/js/helpers/Popper/Popper.d.ts.map +1 -1
- package/dist/js/helpers/Popper/Popper.js.map +1 -1
- package/dist/umd/react-core.css +64 -0
- package/dist/umd/react-core.js +157 -134
- package/dist/umd/react-core.min.css +64 -0
- package/dist/umd/react-core.min.js +4 -4
- package/package.json +5 -5
- package/src/components/ApplicationLauncher/ApplicationLauncher.tsx +9 -2
- package/src/components/Brand/Brand.tsx +61 -8
- package/src/components/Brand/__tests__/Brand.test.tsx +15 -4
- package/src/components/Brand/__tests__/__snapshots__/Brand.test.tsx.snap +1 -1
- package/src/components/Brand/examples/Brand.md +13 -0
- package/src/components/Brand/examples/BrandResponsive.tsx +18 -0
- package/src/components/Brand/examples/pf-c-brand--logo-base.jpg +0 -0
- package/src/components/Brand/examples/pf-c-brand--logo-on-lg.svg +32 -0
- package/src/components/Brand/examples/pf-c-brand--logo-on-md.svg +42 -0
- package/src/components/Brand/examples/pf-c-brand--logo-on-sm.svg +17 -0
- package/src/components/Brand/examples/pf-c-brand--logo-on-xl.svg +39 -0
- package/src/components/Brand/examples/pf-c-brand--logo.svg +10 -0
- package/src/components/ContextSelector/ContextSelector.tsx +12 -4
- package/src/components/ContextSelector/ContextSelectorToggle.tsx +3 -3
- package/src/components/Dropdown/Dropdown.tsx +11 -3
- package/src/components/OptionsMenu/OptionsMenu.tsx +9 -2
- package/src/components/Select/Select.tsx +10 -3
- package/src/components/Tabs/Tabs.tsx +5 -0
- package/src/components/Tabs/__tests__/Tabs.test.tsx +17 -0
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +153 -0
- package/src/components/TextInputGroup/__tests__/TextInputGroup.test.tsx +47 -146
- package/src/components/TextInputGroup/__tests__/TextInputGroupMain.test.tsx +302 -0
- package/src/components/TextInputGroup/__tests__/TextInputGroupUtilities.test.tsx +34 -0
- package/src/components/TextInputGroup/__tests__/__snapshots__/TextInputGroup.test.tsx.snap +2 -203
- package/src/components/TextInputGroup/__tests__/__snapshots__/TextInputGroupMain.test.tsx.snap +21 -0
- package/src/components/TextInputGroup/__tests__/__snapshots__/TextInputGroupUtilities.test.tsx.snap +13 -0
- package/src/components/Wizard/Wizard.tsx +5 -0
- package/src/components/Wizard/WizardHeader.tsx +5 -2
- package/src/components/Wizard/examples/Wizard.md +168 -103
- package/src/demos/Tabs.md +5 -0
- package/src/demos/examples/Tabs/TabsAndTablesAutoWidthTabs.tsx +442 -0
- package/src/helpers/Popper/Popper.tsx +0 -11
- package/src/components/AboutModal/__tests__/Generated/AboutModal.test.tsx +0 -27
- package/src/components/AboutModal/__tests__/Generated/AboutModalBox.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxBrand.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxCloseButton.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxContent.test.tsx +0 -21
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxHeader.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxHero.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalContainer.test.tsx +0 -27
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModal.test.tsx.snap +0 -3
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBox.test.tsx.snap +0 -15
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxBrand.test.tsx.snap +0 -15
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap +0 -33
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxContent.test.tsx.snap +0 -27
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxHeader.test.tsx.snap +0 -19
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxHero.test.tsx.snap +0 -10
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalContainer.test.tsx.snap +0 -3
- package/src/components/Accordion/__tests__/Generated/Accordion.test.tsx +0 -22
- package/src/components/Accordion/__tests__/Generated/__snapshots__/Accordion.test.tsx.snap +0 -12
- package/src/components/Alert/__tests__/Generated/Alert.test.tsx +0 -26
- package/src/components/Alert/__tests__/Generated/__snapshots__/Alert.test.tsx.snap +0 -47
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncher.test.tsx +0 -36
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncher.test.tsx.snap +0 -30
- package/src/components/Avatar/__tests__/Generated/Avatar.test.tsx +0 -13
- package/src/components/Avatar/__tests__/Generated/__snapshots__/Avatar.test.tsx.snap +0 -11
- package/src/components/Backdrop/__tests__/Generated/Backdrop.test.tsx +0 -13
- package/src/components/Backdrop/__tests__/Generated/__snapshots__/Backdrop.test.tsx.snap +0 -11
- package/src/components/BackgroundImage/__tests__/Generated/BackgroundImage.test.tsx +0 -13
- package/src/components/BackgroundImage/__tests__/Generated/__snapshots__/BackgroundImage.test.tsx.snap +0 -47
- package/src/components/Badge/__tests__/Generated/Badge.test.tsx +0 -13
- package/src/components/Badge/__tests__/Generated/__snapshots__/Badge.test.tsx.snap +0 -9
- package/src/components/Brand/__tests__/Generated/Brand.test.tsx +0 -13
- package/src/components/Brand/__tests__/Generated/__snapshots__/Brand.test.tsx.snap +0 -11
- package/src/components/Breadcrumb/__tests__/Generated/Breadcrumb.test.tsx +0 -13
- package/src/components/Breadcrumb/__tests__/Generated/BreadcrumbHeading.test.tsx +0 -15
- package/src/components/Breadcrumb/__tests__/Generated/BreadcrumbItem.test.tsx +0 -22
- package/src/components/Breadcrumb/__tests__/Generated/__snapshots__/Breadcrumb.test.tsx.snap +0 -19
- package/src/components/Breadcrumb/__tests__/Generated/__snapshots__/BreadcrumbHeading.test.tsx.snap +0 -22
- package/src/components/Breadcrumb/__tests__/Generated/__snapshots__/BreadcrumbItem.test.tsx.snap +0 -17
- package/src/components/Button/__tests__/Generated/Button.test.tsx +0 -31
- package/src/components/Button/__tests__/Generated/__snapshots__/Button.test.tsx.snap +0 -17
- package/src/components/Card/__tests__/Generated/Card.test.tsx +0 -15
- package/src/components/Card/__tests__/Generated/CardBody.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/CardFooter.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/CardHead.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/CardHeader.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/__snapshots__/Card.test.tsx.snap +0 -15
- package/src/components/Card/__tests__/Generated/__snapshots__/CardBody.test.tsx.snap +0 -11
- package/src/components/Card/__tests__/Generated/__snapshots__/CardFooter.test.tsx.snap +0 -11
- package/src/components/Card/__tests__/Generated/__snapshots__/CardHead.test.tsx.snap +0 -11
- package/src/components/Card/__tests__/Generated/__snapshots__/CardHeader.test.tsx.snap +0 -11
- package/src/components/Checkbox/__tests__/Generated/Checkbox.test.tsx +0 -26
- package/src/components/Checkbox/__tests__/Generated/__snapshots__/Checkbox.test.tsx.snap +0 -35
- package/src/components/Chip/__tests__/Generated/Chip.test.tsx +0 -24
- package/src/components/Chip/__tests__/Generated/__snapshots__/Chip.test.tsx.snap +0 -46
- package/src/components/ChipGroup/__tests__/Generated/ChipGroup.test.tsx +0 -24
- package/src/components/ChipGroup/__tests__/Generated/__snapshots__/ChipGroup.test.tsx.snap +0 -33
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopyButton.test.tsx +0 -26
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopyExpanded.test.tsx +0 -21
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopyToggle.test.tsx +0 -22
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopyButton.test.tsx.snap +0 -31
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopyExpanded.test.tsx.snap +0 -14
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopyToggle.test.tsx.snap +0 -32
- package/src/components/ContextSelector/__tests__/Generated/ContextSelector.test.tsx +0 -28
- package/src/components/ContextSelector/__tests__/Generated/ContextSelectorItem.test.tsx +0 -23
- package/src/components/ContextSelector/__tests__/Generated/ContextSelectorMenuList.test.tsx +0 -13
- package/src/components/ContextSelector/__tests__/Generated/ContextSelectorToggle.test.tsx +0 -26
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelector.test.tsx.snap +0 -49
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelectorItem.test.tsx.snap +0 -15
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelectorMenuList.test.tsx.snap +0 -12
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelectorToggle.test.tsx.snap +0 -35
- package/src/components/DataList/__tests__/Generated/DataList.test.tsx +0 -21
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataList.test.tsx.snap +0 -12
- package/src/components/Divider/__tests__/Generated/Divider.test.tsx +0 -13
- package/src/components/Divider/__tests__/Generated/__snapshots__/Divider.test.tsx.snap +0 -9
- package/src/components/Drawer/__tests__/Generated/Drawer.test.tsx +0 -13
- package/src/components/Drawer/__tests__/Generated/__snapshots__/Drawer.test.tsx.snap +0 -13
- package/src/components/Dropdown/__tests__/Generated/Dropdown.test.tsx +0 -27
- package/src/components/Dropdown/__tests__/Generated/DropdownGroup.test.tsx +0 -13
- package/src/components/Dropdown/__tests__/Generated/DropdownToggle.test.tsx +0 -34
- package/src/components/Dropdown/__tests__/Generated/DropdownToggleAction.test.tsx +0 -22
- package/src/components/Dropdown/__tests__/Generated/DropdownToggleCheckbox.test.tsx +0 -25
- package/src/components/Dropdown/__tests__/Generated/Toggle.test.tsx +0 -31
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/Dropdown.test.tsx.snap +0 -27
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownGroup.test.tsx.snap +0 -16
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownToggle.test.tsx.snap +0 -34
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownToggleAction.test.tsx.snap +0 -15
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +0 -30
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/Toggle.test.tsx.snap +0 -17
- package/src/components/EmptyState/__tests__/Generated/EmptyState.test.tsx +0 -13
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyState.test.tsx.snap +0 -17
- package/src/components/ExpandableSection/__tests__/Generated/ExpandableSection.test.tsx +0 -24
- package/src/components/ExpandableSection/__tests__/Generated/__snapshots__/ExpandableSection.test.tsx.snap +0 -46
- package/src/components/Form/__tests__/Generated/ActionGroup.test.tsx +0 -13
- package/src/components/Form/__tests__/Generated/Form.test.tsx +0 -13
- package/src/components/Form/__tests__/Generated/FormGroup.test.tsx +0 -27
- package/src/components/Form/__tests__/Generated/FormHelperText.test.tsx +0 -13
- package/src/components/Form/__tests__/Generated/__snapshots__/ActionGroup.test.tsx.snap +0 -19
- package/src/components/Form/__tests__/Generated/__snapshots__/Form.test.tsx.snap +0 -12
- package/src/components/Form/__tests__/Generated/__snapshots__/FormGroup.test.tsx.snap +0 -38
- package/src/components/Form/__tests__/Generated/__snapshots__/FormHelperText.test.tsx.snap +0 -11
- package/src/components/FormSelect/__tests__/Generated/FormSelect.test.tsx +0 -26
- package/src/components/FormSelect/__tests__/Generated/__snapshots__/FormSelect.test.tsx.snap +0 -18
- package/src/components/InputGroup/__tests__/Generated/InputGroup.test.tsx +0 -13
- package/src/components/InputGroup/__tests__/Generated/InputGroupText.test.tsx +0 -13
- package/src/components/InputGroup/__tests__/Generated/__snapshots__/InputGroup.test.tsx.snap +0 -13
- package/src/components/InputGroup/__tests__/Generated/__snapshots__/InputGroupText.test.tsx.snap +0 -13
- package/src/components/Label/__tests__/Generated/Label.test.tsx +0 -13
- package/src/components/Label/__tests__/Generated/__snapshots__/Label.test.tsx.snap +0 -17
- package/src/components/LabelGroup/__tests__/Generated/LabelGroup.test.tsx +0 -29
- package/src/components/LabelGroup/__tests__/Generated/__snapshots__/LabelGroup.test.tsx.snap +0 -34
- package/src/components/LoginPage/__tests__/Generated/Login.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginFooterItem.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginForm.test.tsx +0 -34
- package/src/components/LoginPage/__tests__/Generated/LoginMainBody.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginMainFooter.test.tsx +0 -21
- package/src/components/LoginPage/__tests__/Generated/LoginMainFooterBandItem.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginMainFooterLinksItem.test.tsx +0 -22
- package/src/components/LoginPage/__tests__/Generated/LoginMainHeader.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginPage.test.tsx +0 -30
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/Login.test.tsx.snap +0 -19
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginFooterItem.test.tsx.snap +0 -7
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginForm.test.tsx.snap +0 -150
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainBody.test.tsx.snap +0 -11
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainFooter.test.tsx.snap +0 -11
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainFooterBandItem.test.tsx.snap +0 -11
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainFooterLinksItem.test.tsx.snap +0 -17
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainHeader.test.tsx.snap +0 -24
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginPage.test.tsx.snap +0 -60
- package/src/components/Modal/__tests__/Generated/Modal.test.tsx +0 -35
- package/src/components/Modal/__tests__/Generated/ModalBox.test.tsx +0 -22
- package/src/components/Modal/__tests__/Generated/ModalBoxBody.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxCloseButton.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxDescription.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxFooter.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxHeader.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalContent.test.tsx +0 -36
- package/src/components/Modal/__tests__/Generated/__snapshots__/Modal.test.tsx.snap +0 -3
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBox.test.tsx.snap +0 -18
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxBody.test.tsx.snap +0 -11
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxCloseButton.test.tsx.snap +0 -29
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxDescription.test.tsx.snap +0 -12
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxFooter.test.tsx.snap +0 -11
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxHeader.test.tsx.snap +0 -11
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalContent.test.tsx.snap +0 -3
- package/src/components/Nav/__tests__/Generated/Nav.test.tsx +0 -22
- package/src/components/Nav/__tests__/Generated/__snapshots__/Nav.test.tsx.snap +0 -15
- package/src/components/NotificationBadge/__tests__/Generated/NotificationBadge.test.tsx +0 -15
- package/src/components/NotificationBadge/__tests__/Generated/__snapshots__/NotificationBadge.test.tsx.snap +0 -23
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawer.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerBody.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerGroup.test.tsx +0 -23
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerGroupList.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerHeader.test.tsx +0 -15
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerList.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerListItem.test.tsx +0 -22
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerListItemBody.test.tsx +0 -15
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerListItemHeader.test.tsx +0 -22
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawer.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerBody.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerGroup.test.tsx.snap +0 -51
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerGroupList.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerHeader.test.tsx.snap +0 -31
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerList.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerListItem.test.tsx.snap +0 -14
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerListItemBody.test.tsx.snap +0 -20
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerListItemHeader.test.tsx.snap +0 -44
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenu.test.tsx +0 -26
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenu.test.tsx.snap +0 -24
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenu.test.tsx +0 -13
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuContent.test.tsx +0 -13
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuGroup.test.tsx +0 -15
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuItem.test.tsx +0 -13
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenu.test.tsx.snap +0 -11
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuContent.test.tsx.snap +0 -11
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuGroup.test.tsx.snap +0 -11
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuItem.test.tsx.snap +0 -13
- package/src/components/Page/__tests__/Generated/PageHeader.test.tsx +0 -28
- package/src/components/Page/__tests__/Generated/PageSection.test.tsx +0 -22
- package/src/components/Page/__tests__/Generated/__snapshots__/PageHeader.test.tsx.snap +0 -10
- package/src/components/Page/__tests__/Generated/__snapshots__/PageSection.test.tsx.snap +0 -13
- package/src/components/Popover/__tests__/Generated/Popover.test.tsx +0 -40
- package/src/components/Popover/__tests__/Generated/__snapshots__/Popover.test.tsx.snap +0 -9
- package/src/components/Progress/__tests__/Generated/Progress.test.tsx +0 -27
- package/src/components/Progress/__tests__/Generated/__snapshots__/Progress.test.tsx.snap +0 -63
- package/src/components/SkipToContent/__tests__/Generated/SkipToContent.test.tsx +0 -15
- package/src/components/SkipToContent/__tests__/Generated/__snapshots__/SkipToContent.test.tsx.snap +0 -15
- package/src/components/Spinner/__tests__/Generated/Spinner.test.tsx +0 -13
- package/src/components/Spinner/__tests__/Generated/__snapshots__/Spinner.test.tsx.snap +0 -22
- package/src/components/Tabs/__tests__/Generated/TabButton.test.tsx +0 -20
- package/src/components/Tabs/__tests__/Generated/Tabs.test.tsx +0 -29
- package/src/components/Tabs/__tests__/Generated/__snapshots__/TabButton.test.tsx.snap +0 -16
- package/src/components/Tabs/__tests__/Generated/__snapshots__/Tabs.test.tsx.snap +0 -75
- package/src/components/Text/__tests__/Generated/Text.test.tsx +0 -13
- package/src/components/Text/__tests__/Generated/__snapshots__/Text.test.tsx.snap +0 -15
- package/src/components/Toolbar/__tests__/Generated/Toolbar.test.tsx +0 -24
- package/src/components/Toolbar/__tests__/Generated/ToolbarItem.test.tsx +0 -20
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/Toolbar.test.tsx.snap +0 -25
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarItem.test.tsx.snap +0 -14
- package/src/components/Tooltip/__tests__/Generated/Tooltip.test.tsx +0 -33
- package/src/components/Tooltip/__tests__/Generated/__snapshots__/Tooltip.test.tsx.snap +0 -9
- package/src/layouts/Bullseye/__tests__/Generated/Bullseye.test.tsx +0 -13
- package/src/layouts/Bullseye/__tests__/Generated/__snapshots__/Bullseye.test.tsx.snap +0 -11
- package/src/layouts/Flex/__tests__/Generated/Flex.test.tsx +0 -13
- package/src/layouts/Flex/__tests__/Generated/__snapshots__/Flex.test.tsx.snap +0 -11
- package/src/layouts/Gallery/__tests__/Generated/Gallery.test.tsx +0 -13
- package/src/layouts/Gallery/__tests__/Generated/__snapshots__/Gallery.test.tsx.snap +0 -11
- package/src/layouts/Grid/__tests__/Generated/Grid.test.tsx +0 -15
- package/src/layouts/Grid/__tests__/Generated/GridItem.test.tsx +0 -36
- package/src/layouts/Grid/__tests__/Generated/__snapshots__/Grid.test.tsx.snap +0 -11
- package/src/layouts/Grid/__tests__/Generated/__snapshots__/GridItem.test.tsx.snap +0 -11
- package/src/layouts/Level/__tests__/Generated/Level.test.tsx +0 -13
- package/src/layouts/Level/__tests__/Generated/__snapshots__/Level.test.tsx.snap +0 -11
- package/src/layouts/Split/__tests__/Generated/Split.test.tsx +0 -13
- package/src/layouts/Split/__tests__/Generated/__snapshots__/Split.test.tsx.snap +0 -11
- package/src/layouts/Stack/__tests__/Generated/Stack.test.tsx +0 -13
- package/src/layouts/Stack/__tests__/Generated/__snapshots__/Stack.test.tsx.snap +0 -11
package/dist/umd/react-core.js
CHANGED
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
Promise.resolve().then(function () { return backdrop; });
|
|
99
|
-
var styles$
|
|
99
|
+
var styles$1i = {
|
|
100
100
|
"backdrop": "pf-c-backdrop",
|
|
101
101
|
"backdropOpen": "pf-c-backdrop__open"
|
|
102
102
|
};
|
|
@@ -3484,12 +3484,12 @@
|
|
|
3484
3484
|
};
|
|
3485
3485
|
|
|
3486
3486
|
Promise.resolve().then(function () { return bullseye; });
|
|
3487
|
-
var styles$
|
|
3487
|
+
var styles$1h = {
|
|
3488
3488
|
"bullseye": "pf-l-bullseye"
|
|
3489
3489
|
};
|
|
3490
3490
|
|
|
3491
3491
|
Promise.resolve().then(function () { return aboutModalBox; });
|
|
3492
|
-
var styles$
|
|
3492
|
+
var styles$1g = {
|
|
3493
3493
|
"aboutModalBox": "pf-c-about-modal-box",
|
|
3494
3494
|
"aboutModalBoxBrand": "pf-c-about-modal-box__brand",
|
|
3495
3495
|
"aboutModalBoxBrandImage": "pf-c-about-modal-box__brand-image",
|
|
@@ -3506,7 +3506,7 @@
|
|
|
3506
3506
|
};
|
|
3507
3507
|
|
|
3508
3508
|
Promise.resolve().then(function () { return content; });
|
|
3509
|
-
var styles$
|
|
3509
|
+
var styles$1f = {
|
|
3510
3510
|
"content": "pf-c-content",
|
|
3511
3511
|
"modifiers": {
|
|
3512
3512
|
"visited": "pf-m-visited",
|
|
@@ -3516,14 +3516,14 @@
|
|
|
3516
3516
|
|
|
3517
3517
|
const AboutModalBoxContent = (_a) => {
|
|
3518
3518
|
var { children, className = '', trademark, id, noAboutModalBoxContentContainer = false } = _a, props = __rest$1(_a, ["children", "className", "trademark", "id", "noAboutModalBoxContentContainer"]);
|
|
3519
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
3520
|
-
React__namespace.createElement("div", { className: css('pf-c-about-modal-box__body') }, noAboutModalBoxContentContainer ? children : React__namespace.createElement("div", { className: css(styles$
|
|
3521
|
-
React__namespace.createElement("p", { className: css(styles$
|
|
3519
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxContent, className), id: id }, props),
|
|
3520
|
+
React__namespace.createElement("div", { className: css('pf-c-about-modal-box__body') }, noAboutModalBoxContentContainer ? children : React__namespace.createElement("div", { className: css(styles$1f.content) }, children)),
|
|
3521
|
+
React__namespace.createElement("p", { className: css(styles$1g.aboutModalBoxStrapline) }, trademark)));
|
|
3522
3522
|
};
|
|
3523
3523
|
AboutModalBoxContent.displayName = 'AboutModalBoxContent';
|
|
3524
3524
|
|
|
3525
3525
|
Promise.resolve().then(function () { return title; });
|
|
3526
|
-
var styles$
|
|
3526
|
+
var styles$1e = {
|
|
3527
3527
|
"modifiers": {
|
|
3528
3528
|
"4xl": "pf-m-4xl",
|
|
3529
3529
|
"3xl": "pf-m-3xl",
|
|
@@ -3557,13 +3557,13 @@
|
|
|
3557
3557
|
const Title = (_a) => {
|
|
3558
3558
|
var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
3559
3559
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
3560
|
-
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$
|
|
3560
|
+
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$1e.title, size && styles$1e.modifiers[size], className) }), children));
|
|
3561
3561
|
};
|
|
3562
3562
|
Title.displayName = 'Title';
|
|
3563
3563
|
|
|
3564
3564
|
const AboutModalBoxHeader = (_a) => {
|
|
3565
3565
|
var { className = '', productName = '', id } = _a, props = __rest$1(_a, ["className", "productName", "id"]);
|
|
3566
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
3566
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxHeader, className) }, props),
|
|
3567
3567
|
React__namespace.createElement(Title, { headingLevel: "h1", size: "4xl", id: id }, productName)));
|
|
3568
3568
|
};
|
|
3569
3569
|
AboutModalBoxHeader.displayName = 'AboutModalBoxHeader';
|
|
@@ -3581,14 +3581,14 @@
|
|
|
3581
3581
|
/* eslint-disable camelcase */
|
|
3582
3582
|
backgroundImageSrc !== ''
|
|
3583
3583
|
? { [c_about_modal_box__hero_sm_BackgroundImage$1.name]: `url(${backgroundImageSrc})` }
|
|
3584
|
-
: {}, className: css(styles$
|
|
3584
|
+
: {}, className: css(styles$1g.aboutModalBoxHero, className) }, props)));
|
|
3585
3585
|
};
|
|
3586
3586
|
AboutModalBoxHero.displayName = 'AboutModalBoxHero';
|
|
3587
3587
|
|
|
3588
3588
|
const AboutModalBoxBrand = (_a) => {
|
|
3589
3589
|
var { className = '', src = '', alt } = _a, props = __rest$1(_a, ["className", "src", "alt"]);
|
|
3590
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
3591
|
-
React__namespace.createElement("img", { className: css(styles$
|
|
3590
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxBrand, className) }, props),
|
|
3591
|
+
React__namespace.createElement("img", { className: css(styles$1g.aboutModalBoxBrandImage), src: src, alt: alt })));
|
|
3592
3592
|
};
|
|
3593
3593
|
AboutModalBoxBrand.displayName = 'AboutModalBoxBrand';
|
|
3594
3594
|
|
|
@@ -3624,7 +3624,7 @@
|
|
|
3624
3624
|
};
|
|
3625
3625
|
|
|
3626
3626
|
Promise.resolve().then(function () { return spinner; });
|
|
3627
|
-
var styles$
|
|
3627
|
+
var styles$1d = {
|
|
3628
3628
|
"modifiers": {
|
|
3629
3629
|
"sm": "pf-m-sm",
|
|
3630
3630
|
"md": "pf-m-md",
|
|
@@ -3650,10 +3650,10 @@
|
|
|
3650
3650
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3651
3651
|
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter", 'aria-label', 'aria-labelledBy']);
|
|
3652
3652
|
const Component = isSVG ? 'svg' : 'span';
|
|
3653
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
3654
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
3655
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
3656
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
3653
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$1d.spinner, styles$1d.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props), isSVG ? (React__namespace.createElement("circle", { className: styles$1d.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3654
|
+
React__namespace.createElement("span", { className: css(styles$1d.spinnerClipper) }),
|
|
3655
|
+
React__namespace.createElement("span", { className: css(styles$1d.spinnerLeadBall) }),
|
|
3656
|
+
React__namespace.createElement("span", { className: css(styles$1d.spinnerTailBall) })))));
|
|
3657
3657
|
};
|
|
3658
3658
|
Spinner.displayName = 'Spinner';
|
|
3659
3659
|
|
|
@@ -3800,7 +3800,7 @@
|
|
|
3800
3800
|
|
|
3801
3801
|
const AboutModalBoxCloseButton = (_a) => {
|
|
3802
3802
|
var { className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close Dialog' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
3803
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
3803
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxClose, className) }, props),
|
|
3804
3804
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
3805
3805
|
React__namespace.createElement(TimesIcon$1, null))));
|
|
3806
3806
|
};
|
|
@@ -3808,13 +3808,13 @@
|
|
|
3808
3808
|
|
|
3809
3809
|
const AboutModalBox = (_a) => {
|
|
3810
3810
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
3811
|
-
return (React__namespace.createElement("div", Object.assign({ role: "dialog", "aria-modal": "true", className: css(styles$
|
|
3811
|
+
return (React__namespace.createElement("div", Object.assign({ role: "dialog", "aria-modal": "true", className: css(styles$1g.aboutModalBox, className) }, props), children));
|
|
3812
3812
|
};
|
|
3813
3813
|
AboutModalBox.displayName = 'AboutModalBox';
|
|
3814
3814
|
|
|
3815
3815
|
const Backdrop = (_a) => {
|
|
3816
3816
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
3817
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
3817
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1i.backdrop, className) }), children));
|
|
3818
3818
|
};
|
|
3819
3819
|
Backdrop.displayName = 'Backdrop';
|
|
3820
3820
|
|
|
@@ -3824,7 +3824,7 @@
|
|
|
3824
3824
|
return null;
|
|
3825
3825
|
}
|
|
3826
3826
|
return (React__namespace.createElement(Backdrop, null,
|
|
3827
|
-
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true }, className: css(styles$
|
|
3827
|
+
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true }, className: css(styles$1h.bullseye) },
|
|
3828
3828
|
React__namespace.createElement(AboutModalBox, { className: className, "aria-labelledby": aboutModalBoxHeaderId, "aria-describedby": aboutModalBoxContentId },
|
|
3829
3829
|
React__namespace.createElement(AboutModalBoxBrand, { src: brandImageSrc, alt: brandImageAlt }),
|
|
3830
3830
|
React__namespace.createElement(AboutModalBoxCloseButton, { "aria-label": closeButtonAriaLabel, onClose: onClose }),
|
|
@@ -3876,20 +3876,20 @@
|
|
|
3876
3876
|
target.appendChild(container);
|
|
3877
3877
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
3878
3878
|
if (this.props.isOpen) {
|
|
3879
|
-
target.classList.add(css(styles$
|
|
3879
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
3880
3880
|
}
|
|
3881
3881
|
else {
|
|
3882
|
-
target.classList.remove(css(styles$
|
|
3882
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
3883
3883
|
}
|
|
3884
3884
|
}
|
|
3885
3885
|
componentDidUpdate() {
|
|
3886
3886
|
const target = this.getElement(this.props.appendTo);
|
|
3887
3887
|
if (this.props.isOpen) {
|
|
3888
|
-
target.classList.add(css(styles$
|
|
3888
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
3889
3889
|
this.toggleSiblingsFromScreenReaders(true);
|
|
3890
3890
|
}
|
|
3891
3891
|
else {
|
|
3892
|
-
target.classList.remove(css(styles$
|
|
3892
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
3893
3893
|
this.toggleSiblingsFromScreenReaders(false);
|
|
3894
3894
|
}
|
|
3895
3895
|
}
|
|
@@ -3899,7 +3899,7 @@
|
|
|
3899
3899
|
target.removeChild(this.state.container);
|
|
3900
3900
|
}
|
|
3901
3901
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
3902
|
-
target.classList.remove(css(styles$
|
|
3902
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
3903
3903
|
}
|
|
3904
3904
|
render() {
|
|
3905
3905
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -3925,7 +3925,7 @@
|
|
|
3925
3925
|
};
|
|
3926
3926
|
|
|
3927
3927
|
Promise.resolve().then(function () { return accordion; });
|
|
3928
|
-
var styles$
|
|
3928
|
+
var styles$1c = {
|
|
3929
3929
|
"accordion": "pf-c-accordion",
|
|
3930
3930
|
"accordionExpandedContent": "pf-c-accordion__expanded-content",
|
|
3931
3931
|
"accordionExpandedContentBody": "pf-c-accordion__expanded-content-body",
|
|
@@ -3945,7 +3945,7 @@
|
|
|
3945
3945
|
const Accordion = (_a) => {
|
|
3946
3946
|
var { children = null, className = '', 'aria-label': ariaLabel = '', headingLevel = 'h3', asDefinitionList = true, isBordered = false, displaySize = 'default' } = _a, props = __rest$1(_a, ["children", "className", 'aria-label', "headingLevel", "asDefinitionList", "isBordered", "displaySize"]);
|
|
3947
3947
|
const AccordionList = asDefinitionList ? 'dl' : 'div';
|
|
3948
|
-
return (React__namespace.createElement(AccordionList, Object.assign({ className: css(styles$
|
|
3948
|
+
return (React__namespace.createElement(AccordionList, Object.assign({ className: css(styles$1c.accordion, isBordered && styles$1c.modifiers.bordered, displaySize === 'large' && styles$1c.modifiers.displayLg, className), "aria-label": ariaLabel }, props),
|
|
3949
3949
|
React__namespace.createElement(AccordionContext.Provider, { value: {
|
|
3950
3950
|
ContentContainer: asDefinitionList ? 'dd' : 'div',
|
|
3951
3951
|
ToggleContainer: asDefinitionList ? 'dt' : headingLevel
|
|
@@ -3953,14 +3953,14 @@
|
|
|
3953
3953
|
};
|
|
3954
3954
|
Accordion.displayName = 'Accordion';
|
|
3955
3955
|
|
|
3956
|
-
const AccordionExpandedContentBody = ({ children = null }) => React__namespace.createElement("div", { className: css(styles$
|
|
3956
|
+
const AccordionExpandedContentBody = ({ children = null }) => React__namespace.createElement("div", { className: css(styles$1c.accordionExpandedContentBody) }, children);
|
|
3957
3957
|
AccordionExpandedContentBody.displayName = 'AccordionExpandedContentBody';
|
|
3958
3958
|
|
|
3959
3959
|
const AccordionContent = (_a) => {
|
|
3960
3960
|
var { className = '', children = null, id = '', isHidden = false, isFixed = false, isCustomContent = false, 'aria-label': ariaLabel = '', component } = _a, props = __rest$1(_a, ["className", "children", "id", "isHidden", "isFixed", "isCustomContent", 'aria-label', "component"]);
|
|
3961
3961
|
return (React__namespace.createElement(AccordionContext.Consumer, null, ({ ContentContainer }) => {
|
|
3962
3962
|
const Container = component || ContentContainer;
|
|
3963
|
-
return (React__namespace.createElement(Container, Object.assign({ id: id, className: css(styles$
|
|
3963
|
+
return (React__namespace.createElement(Container, Object.assign({ id: id, className: css(styles$1c.accordionExpandedContent, isFixed && styles$1c.modifiers.fixed, !isHidden && styles$1c.modifiers.expanded, className), hidden: isHidden, "aria-label": ariaLabel }, props), isCustomContent ? children : React__namespace.createElement(AccordionExpandedContentBody, null, children)));
|
|
3964
3964
|
}));
|
|
3965
3965
|
};
|
|
3966
3966
|
AccordionContent.displayName = 'AccordionContent';
|
|
@@ -3986,16 +3986,16 @@
|
|
|
3986
3986
|
return (React__namespace.createElement(AccordionContext.Consumer, null, ({ ToggleContainer }) => {
|
|
3987
3987
|
const Container = component || ToggleContainer;
|
|
3988
3988
|
return (React__namespace.createElement(Container, null,
|
|
3989
|
-
React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
3990
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
3991
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
3989
|
+
React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$1c.accordionToggle, isExpanded && styles$1c.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
3990
|
+
React__namespace.createElement("span", { className: css(styles$1c.accordionToggleText) }, children),
|
|
3991
|
+
React__namespace.createElement("span", { className: css(styles$1c.accordionToggleIcon) },
|
|
3992
3992
|
React__namespace.createElement(AngleRightIcon$1, null)))));
|
|
3993
3993
|
}));
|
|
3994
3994
|
};
|
|
3995
3995
|
AccordionToggle.displayName = 'AccordionToggle';
|
|
3996
3996
|
|
|
3997
3997
|
Promise.resolve().then(function () { return actionList; });
|
|
3998
|
-
var styles$
|
|
3998
|
+
var styles$1b = {
|
|
3999
3999
|
"actionList": "pf-c-action-list",
|
|
4000
4000
|
"actionListGroup": "pf-c-action-list__group",
|
|
4001
4001
|
"modifiers": {
|
|
@@ -4005,13 +4005,13 @@
|
|
|
4005
4005
|
|
|
4006
4006
|
const ActionList = (_a) => {
|
|
4007
4007
|
var { children, isIconList, className = '' } = _a, props = __rest$1(_a, ["children", "isIconList", "className"]);
|
|
4008
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4008
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1b.actionList, isIconList && styles$1b.modifiers.icons, className) }, props), children));
|
|
4009
4009
|
};
|
|
4010
4010
|
ActionList.displayName = 'ActionList';
|
|
4011
4011
|
|
|
4012
4012
|
const ActionListGroup = (_a) => {
|
|
4013
4013
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4014
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4014
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1b.actionListGroup, className) }, props), children));
|
|
4015
4015
|
};
|
|
4016
4016
|
ActionListGroup.displayName = 'ActionListGroup';
|
|
4017
4017
|
|
|
@@ -4022,7 +4022,7 @@
|
|
|
4022
4022
|
ActionListItem.displayName = 'ActionListItem';
|
|
4023
4023
|
|
|
4024
4024
|
Promise.resolve().then(function () { return alert; });
|
|
4025
|
-
var styles$
|
|
4025
|
+
var styles$1a = {
|
|
4026
4026
|
"alert": "pf-c-alert",
|
|
4027
4027
|
"alertAction": "pf-c-alert__action",
|
|
4028
4028
|
"alertActionGroup": "pf-c-alert__action-group",
|
|
@@ -4143,7 +4143,7 @@
|
|
|
4143
4143
|
const AlertIcon = (_a) => {
|
|
4144
4144
|
var { variant, customIcon, className = '' } = _a, props = __rest$1(_a, ["variant", "customIcon", "className"]);
|
|
4145
4145
|
const Icon = variantIcons$2[variant];
|
|
4146
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
4146
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1a.alertIcon, className) }), customIcon || React__namespace.createElement(Icon, null)));
|
|
4147
4147
|
};
|
|
4148
4148
|
|
|
4149
4149
|
const AlertContext = React__namespace.createContext(null);
|
|
@@ -4156,7 +4156,7 @@
|
|
|
4156
4156
|
var maxLines$2 = c_alert__title_max_lines;
|
|
4157
4157
|
|
|
4158
4158
|
Promise.resolve().then(function () { return tooltip; });
|
|
4159
|
-
var styles$
|
|
4159
|
+
var styles$19 = {
|
|
4160
4160
|
"modifiers": {
|
|
4161
4161
|
"top": "pf-m-top",
|
|
4162
4162
|
"topLeft": "pf-m-top-left",
|
|
@@ -4179,13 +4179,13 @@
|
|
|
4179
4179
|
|
|
4180
4180
|
const TooltipContent = (_a) => {
|
|
4181
4181
|
var { className, children, isLeftAligned } = _a, props = __rest$1(_a, ["className", "children", "isLeftAligned"]);
|
|
4182
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4182
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$19.tooltipContent, isLeftAligned && styles$19.modifiers.textAlignLeft, className) }, props), children));
|
|
4183
4183
|
};
|
|
4184
4184
|
TooltipContent.displayName = 'TooltipContent';
|
|
4185
4185
|
|
|
4186
4186
|
const TooltipArrow = (_a) => {
|
|
4187
4187
|
var { className } = _a, props = __rest$1(_a, ["className"]);
|
|
4188
|
-
return React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4188
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$19.tooltipArrow, className) }, props));
|
|
4189
4189
|
};
|
|
4190
4190
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
4191
4191
|
|
|
@@ -4285,21 +4285,21 @@
|
|
|
4285
4285
|
}, exitDelay);
|
|
4286
4286
|
};
|
|
4287
4287
|
const positionModifiers = {
|
|
4288
|
-
top: styles$
|
|
4289
|
-
bottom: styles$
|
|
4290
|
-
left: styles$
|
|
4291
|
-
right: styles$
|
|
4292
|
-
'top-start': styles$
|
|
4293
|
-
'top-end': styles$
|
|
4294
|
-
'bottom-start': styles$
|
|
4295
|
-
'bottom-end': styles$
|
|
4296
|
-
'left-start': styles$
|
|
4297
|
-
'left-end': styles$
|
|
4298
|
-
'right-start': styles$
|
|
4299
|
-
'right-end': styles$
|
|
4288
|
+
top: styles$19.modifiers.top,
|
|
4289
|
+
bottom: styles$19.modifiers.bottom,
|
|
4290
|
+
left: styles$19.modifiers.left,
|
|
4291
|
+
right: styles$19.modifiers.right,
|
|
4292
|
+
'top-start': styles$19.modifiers.topLeft,
|
|
4293
|
+
'top-end': styles$19.modifiers.topRight,
|
|
4294
|
+
'bottom-start': styles$19.modifiers.bottomLeft,
|
|
4295
|
+
'bottom-end': styles$19.modifiers.bottomRight,
|
|
4296
|
+
'left-start': styles$19.modifiers.leftTop,
|
|
4297
|
+
'left-end': styles$19.modifiers.leftBottom,
|
|
4298
|
+
'right-start': styles$19.modifiers.rightTop,
|
|
4299
|
+
'right-end': styles$19.modifiers.rightBottom
|
|
4300
4300
|
};
|
|
4301
4301
|
const hasCustomMaxWidth = maxWidth !== tooltipMaxWidth.value;
|
|
4302
|
-
const content = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4302
|
+
const content = (React__namespace.createElement("div", Object.assign({ className: css(styles$19.tooltip, className), role: "tooltip", id: id, style: {
|
|
4303
4303
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
4304
4304
|
opacity,
|
|
4305
4305
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -4336,7 +4336,7 @@
|
|
|
4336
4336
|
var { 'aria-label': ariaLabel, variantLabel, onToggleExpand, isExpanded } = _a, props = __rest$1(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
|
|
4337
4337
|
const { title, variantLabel: alertVariantLabel } = React__namespace.useContext(AlertContext);
|
|
4338
4338
|
return (React__namespace.createElement(Button, Object.assign({ variant: exports.ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
|
|
4339
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4339
|
+
React__namespace.createElement("span", { className: css(styles$1a.alertToggleIcon) },
|
|
4340
4340
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" }))));
|
|
4341
4341
|
};
|
|
4342
4342
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
@@ -4420,20 +4420,20 @@
|
|
|
4420
4420
|
if (dismissed) {
|
|
4421
4421
|
return null;
|
|
4422
4422
|
}
|
|
4423
|
-
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
4424
|
-
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$
|
|
4423
|
+
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$1a.alertTitle, truncateTitle && styles$1a.modifiers.truncate) }), getHeadingContent));
|
|
4424
|
+
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$1a.alert, isInline && styles$1a.modifiers.inline, isPlain && styles$1a.modifiers.plain, isExpandable && styles$1a.modifiers.expandable, isExpanded && styles$1a.modifiers.expanded, styles$1a.modifiers[variant], className), "aria-label": ariaLabel }, ouiaProps, (isLiveRegion && {
|
|
4425
4425
|
'aria-live': 'polite',
|
|
4426
4426
|
'aria-atomic': 'false'
|
|
4427
4427
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave }, props),
|
|
4428
4428
|
isExpandable && (React__namespace.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
4429
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
4429
|
+
React__namespace.createElement("div", { className: css(styles$1a.alertToggle) },
|
|
4430
4430
|
React__namespace.createElement(AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
|
|
4431
4431
|
React__namespace.createElement(AlertIcon, { variant: variant, customIcon: customIcon }),
|
|
4432
4432
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
|
|
4433
4433
|
actionClose && (React__namespace.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
4434
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
4435
|
-
children && (!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$
|
|
4436
|
-
actionLinks && React__namespace.createElement("div", { className: css(styles$
|
|
4434
|
+
React__namespace.createElement("div", { className: css(styles$1a.alertAction) }, actionClose))),
|
|
4435
|
+
children && (!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$1a.alertDescription) }, children)),
|
|
4436
|
+
actionLinks && React__namespace.createElement("div", { className: css(styles$1a.alertActionGroup) }, actionLinks)));
|
|
4437
4437
|
};
|
|
4438
4438
|
Alert.displayName = 'Alert';
|
|
4439
4439
|
|
|
@@ -4453,7 +4453,7 @@
|
|
|
4453
4453
|
AlertActionLink.displayName = 'AlertActionLink';
|
|
4454
4454
|
|
|
4455
4455
|
Promise.resolve().then(function () { return alertGroup; });
|
|
4456
|
-
var styles$
|
|
4456
|
+
var styles$18 = {
|
|
4457
4457
|
"alertGroup": "pf-c-alert-group",
|
|
4458
4458
|
"alertGroupOverflowButton": "pf-c-alert-group__overflow-button",
|
|
4459
4459
|
"modifiers": {
|
|
@@ -4463,10 +4463,10 @@
|
|
|
4463
4463
|
|
|
4464
4464
|
const AlertGroupInline = (_a) => {
|
|
4465
4465
|
var { className, children, isToast, isLiveRegion, onOverflowClick, overflowMessage } = _a, rest = __rest$1(_a, ["className", "children", "isToast", "isLiveRegion", "onOverflowClick", "overflowMessage"]);
|
|
4466
|
-
return (React__namespace.createElement("ul", Object.assign({ "aria-live": isLiveRegion ? 'polite' : null, "aria-atomic": isLiveRegion ? false : null, className: css(styles$
|
|
4466
|
+
return (React__namespace.createElement("ul", Object.assign({ "aria-live": isLiveRegion ? 'polite' : null, "aria-atomic": isLiveRegion ? false : null, className: css(styles$18.alertGroup, className, isToast ? styles$18.modifiers.toast : '') }, rest),
|
|
4467
4467
|
React__namespace.Children.toArray(children).map((Alert, index) => (React__namespace.createElement("li", { key: index }, Alert))),
|
|
4468
4468
|
overflowMessage && (React__namespace.createElement("li", null,
|
|
4469
|
-
React__namespace.createElement("button", { onClick: onOverflowClick, className: css(styles$
|
|
4469
|
+
React__namespace.createElement("button", { onClick: onOverflowClick, className: css(styles$18.alertGroupOverflowButton) }, overflowMessage)))));
|
|
4470
4470
|
};
|
|
4471
4471
|
AlertGroupInline.displayName = 'AlertGroupInline';
|
|
4472
4472
|
|
|
@@ -4512,7 +4512,7 @@
|
|
|
4512
4512
|
AlertGroup.displayName = 'AlertGroup';
|
|
4513
4513
|
|
|
4514
4514
|
Promise.resolve().then(function () { return appLauncher; });
|
|
4515
|
-
var styles$
|
|
4515
|
+
var styles$17 = {
|
|
4516
4516
|
"appLauncher": "pf-c-app-launcher",
|
|
4517
4517
|
"appLauncherGroup": "pf-c-app-launcher__group",
|
|
4518
4518
|
"appLauncherGroupTitle": "pf-c-app-launcher__group-title",
|
|
@@ -4570,7 +4570,7 @@
|
|
|
4570
4570
|
var ThIcon$1 = ThIcon;
|
|
4571
4571
|
|
|
4572
4572
|
Promise.resolve().then(function () { return dropdown; });
|
|
4573
|
-
var styles$
|
|
4573
|
+
var styles$16 = {
|
|
4574
4574
|
"badge": "pf-c-badge",
|
|
4575
4575
|
"check": "pf-c-check",
|
|
4576
4576
|
"divider": "pf-c-divider",
|
|
@@ -4751,12 +4751,12 @@
|
|
|
4751
4751
|
return (React__namespace.createElement(DropdownArrowContext.Provider, { value: {
|
|
4752
4752
|
keyHandler: this.childKeyHandler,
|
|
4753
4753
|
sendRef: this.sendRef
|
|
4754
|
-
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
4754
|
+
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, formatBreakpointMods(alignments, styles$16, 'align-'), className), hidden: !isOpen, onClick: event => onSelect && onSelect(event), ref: setMenuComponentRef }, children)))) : ((isGrouped && (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
4755
4755
|
const MenuComponent = (menuComponent || 'div');
|
|
4756
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
4756
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, formatBreakpointMods(alignments, styles$16, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
4757
4757
|
}))) || (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
4758
4758
|
const MenuComponent = (menuComponent || component);
|
|
4759
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
4759
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, formatBreakpointMods(alignments, styles$16, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
4760
4760
|
})))));
|
|
4761
4761
|
}
|
|
4762
4762
|
}
|
|
@@ -4771,7 +4771,7 @@
|
|
|
4771
4771
|
isGrouped: false,
|
|
4772
4772
|
setMenuComponentRef: null
|
|
4773
4773
|
};
|
|
4774
|
-
DropdownMenu.validToggleClasses = [styles$
|
|
4774
|
+
DropdownMenu.validToggleClasses = [styles$16.dropdownToggle, styles$16.dropdownToggleButton];
|
|
4775
4775
|
DropdownMenu.focusFirstRef = (refCollection) => {
|
|
4776
4776
|
if (refCollection && refCollection[0] && refCollection[0].focus) {
|
|
4777
4777
|
setTimeout(() => refCollection[0].focus());
|
|
@@ -4823,8 +4823,8 @@
|
|
|
4823
4823
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ baseClass, baseComponent, id: contextId, ouiaId, ouiaComponentType, ouiaSafe, alignments }) => {
|
|
4824
4824
|
const BaseComponent = baseComponent;
|
|
4825
4825
|
const menuContainer = (React__namespace.createElement(DropdownMenu, { setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }, renderedContent));
|
|
4826
|
-
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === exports.DropdownDirection.up && styles$
|
|
4827
|
-
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === exports.DropdownDirection.up && styles$
|
|
4826
|
+
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === exports.DropdownDirection.up && styles$16.modifiers.top, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, isOpen && styles$16.modifiers.expanded, className) }, isOpen && menuContainer));
|
|
4827
|
+
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === exports.DropdownDirection.up && styles$16.modifiers.top, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, isOpen && styles$16.modifiers.expanded, isFullHeight && styles$16.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
|
|
4828
4828
|
React__namespace.Children.map(toggle, oneToggle => React__namespace.cloneElement(oneToggle, {
|
|
4829
4829
|
parentRef: this.baseComponentRef,
|
|
4830
4830
|
getMenuRef: this.getMenuComponentRef,
|
|
@@ -4870,9 +4870,9 @@
|
|
|
4870
4870
|
var { onSelect,
|
|
4871
4871
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4872
4872
|
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
4873
|
-
ouiaId, ouiaSafe, alignments, contextProps } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps"]);
|
|
4874
|
-
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$
|
|
4875
|
-
React__namespace.createElement(DropdownWithContext, Object.assign({}, props))));
|
|
4873
|
+
ouiaId, ouiaSafe, alignments, contextProps, menuAppendTo = 'inline' } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps", "menuAppendTo"]);
|
|
4874
|
+
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$16.dropdownToggleText, toggleIconClass: styles$16.dropdownToggleImage, toggleIndicatorClass: styles$16.dropdownToggleIcon, menuClass: styles$16.dropdownMenu, itemClass: styles$16.dropdownMenuItem, toggleClass: styles$16.dropdownToggle, baseClass: styles$16.dropdown, baseComponent: 'div', sectionClass: styles$16.dropdownGroup, sectionTitleClass: styles$16.dropdownGroupTitle, sectionComponent: 'section', disabledClass: styles$16.modifiers.disabled, plainTextClass: styles$16.modifiers.text, ouiaId: useOUIAId(Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: Dropdown.displayName, alignments }, contextProps) },
|
|
4875
|
+
React__namespace.createElement(DropdownWithContext, Object.assign({ menuAppendTo: menuAppendTo }, props))));
|
|
4876
4876
|
};
|
|
4877
4877
|
Dropdown.displayName = 'Dropdown';
|
|
4878
4878
|
|
|
@@ -4956,7 +4956,7 @@
|
|
|
4956
4956
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4957
4957
|
const _a = this.props, { className, children, isHovered, context, onClick, component, role, isDisabled, isAriaDisabled, isPlainText, index, href, tooltip, tooltipProps, id, componentID, listItemClassName, additionalChild, customChild, enterTriggersArrowDown, icon, autoFocus, styleChildren, description, inoperableEvents } = _a, additionalProps = __rest$1(_a, ["className", "children", "isHovered", "context", "onClick", "component", "role", "isDisabled", "isAriaDisabled", "isPlainText", "index", "href", "tooltip", "tooltipProps", "id", "componentID", "listItemClassName", "additionalChild", "customChild", "enterTriggersArrowDown", "icon", "autoFocus", "styleChildren", "description", "inoperableEvents"]);
|
|
4958
4958
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
4959
|
-
let classes = css(icon && styles$
|
|
4959
|
+
let classes = css(icon && styles$16.modifiers.icon, isAriaDisabled && styles$16.modifiers.ariaDisabled, className);
|
|
4960
4960
|
if (component === 'a') {
|
|
4961
4961
|
additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
|
|
4962
4962
|
}
|
|
@@ -4971,17 +4971,17 @@
|
|
|
4971
4971
|
const renderDefaultComponent = (tag) => {
|
|
4972
4972
|
const Component = tag;
|
|
4973
4973
|
const componentContent = description ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4974
|
-
React__namespace.createElement("div", { className: styles$
|
|
4975
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
4974
|
+
React__namespace.createElement("div", { className: styles$16.dropdownMenuItemMain },
|
|
4975
|
+
icon && React__namespace.createElement("span", { className: css(styles$16.dropdownMenuItemIcon) }, icon),
|
|
4976
4976
|
children),
|
|
4977
|
-
React__namespace.createElement("div", { className: styles$
|
|
4978
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
4977
|
+
React__namespace.createElement("div", { className: styles$16.dropdownMenuItemDescription }, description))) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4978
|
+
icon && React__namespace.createElement("span", { className: css(styles$16.dropdownMenuItemIcon) }, icon),
|
|
4979
4979
|
children));
|
|
4980
4980
|
return (React__namespace.createElement(Component, Object.assign({}, additionalProps, (isDisabled || isAriaDisabled ? preventedEvents(inoperableEvents) : null), { href: href, ref: this.ref, className: classes, id: componentID }), componentContent));
|
|
4981
4981
|
};
|
|
4982
4982
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, itemClass, disabledClass, plainTextClass }) => {
|
|
4983
4983
|
if (this.props.role !== 'separator') {
|
|
4984
|
-
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$
|
|
4984
|
+
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$16.modifiers.description);
|
|
4985
4985
|
}
|
|
4986
4986
|
if (customChild) {
|
|
4987
4987
|
return React__namespace.cloneElement(customChild, {
|
|
@@ -5036,7 +5036,7 @@
|
|
|
5036
5036
|
DropdownItem.displayName = 'DropdownItem';
|
|
5037
5037
|
|
|
5038
5038
|
Promise.resolve().then(function () { return divider; });
|
|
5039
|
-
var styles$
|
|
5039
|
+
var styles$15 = {
|
|
5040
5040
|
"divider": "pf-c-divider",
|
|
5041
5041
|
"modifiers": {
|
|
5042
5042
|
"hidden": "pf-m-hidden",
|
|
@@ -5111,7 +5111,7 @@
|
|
|
5111
5111
|
const Divider = (_a) => {
|
|
5112
5112
|
var { className, component = exports.DividerVariant.hr, isVertical = false, inset } = _a, props = __rest$1(_a, ["className", "component", "isVertical", "inset"]);
|
|
5113
5113
|
const Component = component;
|
|
5114
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
5114
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$15.divider, isVertical && styles$15.modifiers.vertical, formatBreakpointMods(inset, styles$15), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
5115
5115
|
};
|
|
5116
5116
|
Divider.displayName = 'Divider';
|
|
5117
5117
|
|
|
@@ -5140,8 +5140,8 @@
|
|
|
5140
5140
|
|
|
5141
5141
|
const buttonVariantStyles = {
|
|
5142
5142
|
default: '',
|
|
5143
|
-
primary: styles$
|
|
5144
|
-
secondary: styles$
|
|
5143
|
+
primary: styles$16.modifiers.primary,
|
|
5144
|
+
secondary: styles$16.modifiers.secondary
|
|
5145
5145
|
};
|
|
5146
5146
|
class Toggle extends React__namespace.Component {
|
|
5147
5147
|
constructor() {
|
|
@@ -5206,7 +5206,7 @@
|
|
|
5206
5206
|
isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
|
|
5207
5207
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5208
5208
|
id, type } = _a, props = __rest$1(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isText", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
|
|
5209
|
-
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? styles$
|
|
5209
|
+
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? styles$16.dropdownToggleButton : toggleClass || styles$16.dropdownToggle, isActive && styles$16.modifiers.active, isPlain && styles$16.modifiers.plain, isText && styles$16.modifiers.text, isPrimary && styles$16.modifiers.primary, buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
|
|
5210
5210
|
}
|
|
5211
5211
|
}
|
|
5212
5212
|
Toggle.displayName = 'Toggle';
|
|
@@ -5247,7 +5247,7 @@
|
|
|
5247
5247
|
return (React__namespace.createElement(Toggle, Object.assign({ id: id, className: className, isOpen: isOpen, "aria-label": ariaLabel, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isPlain: isPlain || true, isDisabled: isDisabled, onToggle: onToggle, bubbleEvent: bubbleEvent }, props),
|
|
5248
5248
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps),
|
|
5249
5249
|
children,
|
|
5250
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
5250
|
+
React__namespace.createElement("span", { className: css(styles$16.dropdownToggleIcon) },
|
|
5251
5251
|
React__namespace.createElement(CaretDownIcon$1, null)))));
|
|
5252
5252
|
};
|
|
5253
5253
|
BadgeToggle.displayName = 'BadgeToggle';
|
|
@@ -5293,7 +5293,7 @@
|
|
|
5293
5293
|
ToggleIndicator && (React__namespace.createElement("span", { className: css(!splitButtonItems && toggleIndicatorClass) },
|
|
5294
5294
|
React__namespace.createElement(ToggleIndicator, null)))))));
|
|
5295
5295
|
if (splitButtonItems) {
|
|
5296
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
5296
|
+
return (React__namespace.createElement("div", { className: css(styles$16.dropdownToggle, styles$16.modifiers.splitButton, splitButtonVariant === 'action' && styles$16.modifiers.action, (toggleVariant === 'primary' || isPrimary) && splitButtonVariant === 'action' && styles$16.modifiers.primary, isDisabled && styles$16.modifiers.disabled) },
|
|
5297
5297
|
splitButtonItems,
|
|
5298
5298
|
toggle));
|
|
5299
5299
|
}
|
|
@@ -5328,8 +5328,8 @@
|
|
|
5328
5328
|
onChange, checked } = _a,
|
|
5329
5329
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5330
5330
|
props = __rest$1(_a, ["className", "isValid", "isDisabled", "isChecked", "children", "ouiaId", "ouiaSafe", "onChange", "checked"]);
|
|
5331
|
-
const text = children && (React__namespace.createElement("span", { className: css(styles$
|
|
5332
|
-
return (React__namespace.createElement("label", { className: css(styles$
|
|
5331
|
+
const text = children && (React__namespace.createElement("span", { className: css(styles$16.dropdownToggleText, className), "aria-hidden": "true", id: `${props.id}-text` }, children));
|
|
5332
|
+
return (React__namespace.createElement("label", { className: css(styles$16.dropdownToggleCheck, className), htmlFor: props.id },
|
|
5333
5333
|
React__namespace.createElement("input", Object.assign({}, props, (this.calculateChecked() !== undefined && { onChange: this.handleChange }), { type: "checkbox", ref: elem => elem && (elem.indeterminate = isChecked === null), "aria-invalid": !isValid, disabled: isDisabled, checked: this.calculateChecked() }, getOUIAProps(DropdownToggleCheckbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
5334
5334
|
text));
|
|
5335
5335
|
}
|
|
@@ -5345,7 +5345,7 @@
|
|
|
5345
5345
|
class DropdownToggleAction extends React__namespace.Component {
|
|
5346
5346
|
render() {
|
|
5347
5347
|
const _a = this.props, { id, className, onClick, isDisabled, children } = _a, props = __rest$1(_a, ["id", "className", "onClick", "isDisabled", "children"]);
|
|
5348
|
-
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
5348
|
+
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$16.dropdownToggleButton, className), onClick: onClick }, (isDisabled && { disabled: true, 'aria-disabled': true }), props), children));
|
|
5349
5349
|
}
|
|
5350
5350
|
}
|
|
5351
5351
|
DropdownToggleAction.displayName = 'DropdownToggleAction';
|
|
@@ -5371,7 +5371,7 @@
|
|
|
5371
5371
|
var {
|
|
5372
5372
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5373
5373
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
5374
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
5374
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$17.appLauncherMenuItemIcon) }, props), children));
|
|
5375
5375
|
};
|
|
5376
5376
|
ApplicationLauncherIcon.displayName = 'ApplicationLauncherIcon';
|
|
5377
5377
|
|
|
@@ -5400,7 +5400,7 @@
|
|
|
5400
5400
|
icon && React__namespace.createElement(ApplicationLauncherIcon, null, icon),
|
|
5401
5401
|
icon ? React__namespace.createElement(ApplicationLauncherText, null, children) : children,
|
|
5402
5402
|
isExternal && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5403
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
5403
|
+
React__namespace.createElement("span", { className: css(styles$17.appLauncherMenuItemExternalIcon) },
|
|
5404
5404
|
React__namespace.createElement(ExternalLinkAltIcon$1, null)),
|
|
5405
5405
|
React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, "(opens new window)")))))));
|
|
5406
5406
|
ApplicationLauncherContent.displayName = 'ApplicationLauncherContent';
|
|
@@ -5426,8 +5426,8 @@
|
|
|
5426
5426
|
const ApplicationLauncherItem = (_a) => {
|
|
5427
5427
|
var { className = '', id, children, icon = null, isExternal = false, href, tooltip = null, tooltipProps = null, component = 'a', isFavorite = null, ariaIsFavoriteLabel = 'starred', ariaIsNotFavoriteLabel = 'not starred', customChild, enterTriggersArrowDown = false } = _a, props = __rest$1(_a, ["className", "id", "children", "icon", "isExternal", "href", "tooltip", "tooltipProps", "component", "isFavorite", "ariaIsFavoriteLabel", "ariaIsNotFavoriteLabel", "customChild", "enterTriggersArrowDown"]);
|
|
5428
5428
|
return (React__namespace.createElement(ApplicationLauncherItemContext.Provider, { value: { isExternal, icon } },
|
|
5429
|
-
React__namespace.createElement(ApplicationLauncherContext.Consumer, null, ({ onFavorite }) => (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: component, href: href || null, className: css(isExternal && styles$
|
|
5430
|
-
additionalChild: (React__namespace.createElement("button", { className: css(styles$
|
|
5429
|
+
React__namespace.createElement(ApplicationLauncherContext.Consumer, null, ({ onFavorite }) => (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: component, href: href || null, className: css(isExternal && styles$17.modifiers.external, isFavorite !== null && styles$17.modifiers.link, className), listItemClassName: css(onFavorite && styles$17.appLauncherMenuWrapper, isFavorite && styles$17.modifiers.favorite), tooltip: tooltip, tooltipProps: tooltipProps }, (enterTriggersArrowDown === true && { enterTriggersArrowDown }), (customChild && { customChild }), (isFavorite !== null && {
|
|
5430
|
+
additionalChild: (React__namespace.createElement("button", { className: css(styles$17.appLauncherMenuItem, styles$17.modifiers.action), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
5431
5431
|
onFavorite((id || getUniqueId('app-launcher-option')).replace('favorite-', ''), isFavorite);
|
|
5432
5432
|
} },
|
|
5433
5433
|
React__namespace.createElement(StarIcon$1, null)))
|
|
@@ -5501,7 +5501,7 @@
|
|
|
5501
5501
|
super(...arguments);
|
|
5502
5502
|
this.createSearchBox = () => {
|
|
5503
5503
|
const { onSearch, searchPlaceholderText, searchProps } = this.props;
|
|
5504
|
-
return (React__namespace.createElement("div", { key: "search", className: css(styles$
|
|
5504
|
+
return (React__namespace.createElement("div", { key: "search", className: css(styles$17.appLauncherMenuSearch) },
|
|
5505
5505
|
React__namespace.createElement(ApplicationLauncherItem, { customChild: React__namespace.createElement("input", Object.assign({ type: "search", className: css(formStyles.formControl), placeholder: searchPlaceholderText, onChange: e => onSearch(e.target.value) }, searchProps)) })));
|
|
5506
5506
|
};
|
|
5507
5507
|
}
|
|
@@ -5545,15 +5545,15 @@
|
|
|
5545
5545
|
return (React__namespace.createElement(ApplicationLauncherContext.Provider, { value: { onFavorite } },
|
|
5546
5546
|
React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
5547
5547
|
onSelect,
|
|
5548
|
-
menuClass: styles$
|
|
5549
|
-
itemClass: styles$
|
|
5550
|
-
toggleClass: styles$
|
|
5551
|
-
baseClass: styles$
|
|
5548
|
+
menuClass: styles$17.appLauncherMenu,
|
|
5549
|
+
itemClass: styles$17.appLauncherMenuItem,
|
|
5550
|
+
toggleClass: styles$17.appLauncherToggle,
|
|
5551
|
+
baseClass: styles$17.appLauncher,
|
|
5552
5552
|
baseComponent: 'nav',
|
|
5553
|
-
sectionClass: styles$
|
|
5554
|
-
sectionTitleClass: styles$
|
|
5553
|
+
sectionClass: styles$17.appLauncherGroup,
|
|
5554
|
+
sectionTitleClass: styles$17.appLauncherGroupTitle,
|
|
5555
5555
|
sectionComponent: 'section',
|
|
5556
|
-
disabledClass: styles$
|
|
5556
|
+
disabledClass: styles$17.modifiers.disabled,
|
|
5557
5557
|
ouiaComponentType: ApplicationLauncher.displayName
|
|
5558
5558
|
} },
|
|
5559
5559
|
React__namespace.createElement(DropdownWithContext, Object.assign({}, props, { dropdownItems: renderableItems, isOpen: isOpen, className: className, "aria-label": ariaLabel, menuAppendTo: menuAppendTo, toggle: React__namespace.createElement(DropdownToggle, { id: toggleId, toggleIndicator: null, isOpen: isOpen, onToggle: onToggle, isDisabled: isDisabled, "aria-label": ariaLabel }, toggleIcon), isGrouped: isGrouped })))));
|
|
@@ -5581,7 +5581,7 @@
|
|
|
5581
5581
|
};
|
|
5582
5582
|
|
|
5583
5583
|
Promise.resolve().then(function () { return avatar; });
|
|
5584
|
-
var styles$
|
|
5584
|
+
var styles$14 = {
|
|
5585
5585
|
"avatar": "pf-c-avatar",
|
|
5586
5586
|
"modifiers": {
|
|
5587
5587
|
"light": "pf-m-light",
|
|
@@ -5595,12 +5595,12 @@
|
|
|
5595
5595
|
|
|
5596
5596
|
const Avatar = (_a) => {
|
|
5597
5597
|
var { className = '', src = '', alt, border, size } = _a, props = __rest$1(_a, ["className", "src", "alt", "border", "size"]);
|
|
5598
|
-
return (React__namespace.createElement("img", Object.assign({ src: src, alt: alt, className: css(styles$
|
|
5598
|
+
return (React__namespace.createElement("img", Object.assign({ src: src, alt: alt, className: css(styles$14.avatar, styles$14.modifiers[size], border === 'light' && styles$14.modifiers.light, border === 'dark' && styles$14.modifiers.dark, className) }, props)));
|
|
5599
5599
|
};
|
|
5600
5600
|
Avatar.displayName = 'Avatar';
|
|
5601
5601
|
|
|
5602
5602
|
Promise.resolve().then(function () { return backToTop; });
|
|
5603
|
-
var styles$
|
|
5603
|
+
var styles$13 = {
|
|
5604
5604
|
"backToTop": "pf-c-back-to-top",
|
|
5605
5605
|
"button": "pf-c-button",
|
|
5606
5606
|
"modifiers": {
|
|
@@ -5667,7 +5667,7 @@
|
|
|
5667
5667
|
const handleClick = () => {
|
|
5668
5668
|
scrollElement.scrollTo({ top: 0, behavior: 'smooth' });
|
|
5669
5669
|
};
|
|
5670
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
5670
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$13.backToTop, !visible && styles$13.modifiers.hidden, className), ref: innerRef, onClick: handleClick }, props),
|
|
5671
5671
|
React__namespace.createElement(Button, { variant: "primary", icon: React__namespace.createElement(AngleUpIcon$1, { "aria-hidden": "true" }), iconPosition: "right" }, title)));
|
|
5672
5672
|
};
|
|
5673
5673
|
const BackToTop = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(BackToTopBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -5716,7 +5716,7 @@
|
|
|
5716
5716
|
var cssVarNameFilter = c_background_image_Filter;
|
|
5717
5717
|
|
|
5718
5718
|
Promise.resolve().then(function () { return backgroundImage; });
|
|
5719
|
-
var styles$
|
|
5719
|
+
var styles$12 = {
|
|
5720
5720
|
"backgroundImage": "pf-c-background-image",
|
|
5721
5721
|
"backgroundImageFilter": "pf-c-background-image__filter"
|
|
5722
5722
|
};
|
|
@@ -5750,13 +5750,13 @@
|
|
|
5750
5750
|
[cssVarNameLg.name]: getUrlValue('lg'),
|
|
5751
5751
|
[cssVarNameFilter.name]: `url(#${filterId})`
|
|
5752
5752
|
};
|
|
5753
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
5753
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$12.backgroundImage, className), style: style }, props),
|
|
5754
5754
|
React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: "pf-c-background-image__filter", width: "0", height: "0" }, React__namespace.cloneElement(filter, { id: filterId }))));
|
|
5755
5755
|
};
|
|
5756
5756
|
BackgroundImage.displayName = 'BackgroundImage';
|
|
5757
5757
|
|
|
5758
5758
|
Promise.resolve().then(function () { return banner; });
|
|
5759
|
-
var styles$
|
|
5759
|
+
var styles$11 = {
|
|
5760
5760
|
"banner": "pf-c-banner",
|
|
5761
5761
|
"button": "pf-c-button",
|
|
5762
5762
|
"card": "pf-c-card",
|
|
@@ -5773,15 +5773,31 @@
|
|
|
5773
5773
|
|
|
5774
5774
|
const Banner = (_a) => {
|
|
5775
5775
|
var { children, className, variant = 'default', isSticky = false } = _a, props = __rest$1(_a, ["children", "className", "variant", "isSticky"]);
|
|
5776
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
5776
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$11.banner, styles$11.modifiers[variant], isSticky && styles$11.modifiers.sticky, className) }, props), children));
|
|
5777
5777
|
};
|
|
5778
5778
|
Banner.displayName = 'Banner';
|
|
5779
5779
|
|
|
5780
|
+
Promise.resolve().then(function () { return brand; });
|
|
5781
|
+
var styles$10 = {
|
|
5782
|
+
"brand": "pf-c-brand",
|
|
5783
|
+
"modifiers": {
|
|
5784
|
+
"picture": "pf-m-picture"
|
|
5785
|
+
}
|
|
5786
|
+
};
|
|
5787
|
+
|
|
5780
5788
|
const Brand = (_a) => {
|
|
5781
|
-
var { className = '', src = '', alt } = _a, props = __rest$1(_a, ["className", "src", "alt"]);
|
|
5789
|
+
var { className = '', src = '', alt, children, widths, heights, style } = _a, props = __rest$1(_a, ["className", "src", "alt", "children", "widths", "heights", "style"]);
|
|
5790
|
+
if (children !== undefined && widths !== undefined) {
|
|
5791
|
+
style = Object.assign(Object.assign({}, style), setBreakpointCssVars(widths, '--pf-c-brand--Width'));
|
|
5792
|
+
}
|
|
5793
|
+
if (children !== undefined && heights !== undefined) {
|
|
5794
|
+
style = Object.assign(Object.assign({}, style), setBreakpointCssVars(heights, '--pf-c-brand--Height'));
|
|
5795
|
+
}
|
|
5782
5796
|
return (
|
|
5783
5797
|
/** the brand component currently contains no styling the 'pf-c-brand' string will be used for the className */
|
|
5784
|
-
React__namespace.createElement("
|
|
5798
|
+
children !== undefined ? (React__namespace.createElement("picture", Object.assign({ className: css(styles$10.brand, styles$10.modifiers.picture, className), style: style }, props),
|
|
5799
|
+
children,
|
|
5800
|
+
React__namespace.createElement("img", { src: src, alt: alt }))) : (React__namespace.createElement("img", Object.assign({}, props, { className: css(styles$10.brand, className), src: src, alt: alt }))));
|
|
5785
5801
|
};
|
|
5786
5802
|
Brand.displayName = 'Brand';
|
|
5787
5803
|
|
|
@@ -8715,15 +8731,15 @@
|
|
|
8715
8731
|
};
|
|
8716
8732
|
this.onDocClick = (event) => {
|
|
8717
8733
|
const { isOpen, parentRef, onToggle } = this.props;
|
|
8718
|
-
if (isOpen && parentRef && !parentRef.contains(event.target)) {
|
|
8734
|
+
if (isOpen && (parentRef === null || parentRef === void 0 ? void 0 : parentRef.current) && !parentRef.current.contains(event.target)) {
|
|
8719
8735
|
onToggle(null, false);
|
|
8720
8736
|
this.toggle.current.focus();
|
|
8721
8737
|
}
|
|
8722
8738
|
};
|
|
8723
8739
|
this.onEscPress = (event) => {
|
|
8724
|
-
const { isOpen,
|
|
8740
|
+
const { isOpen, onToggle } = this.props;
|
|
8725
8741
|
const keyCode = event.keyCode || event.which;
|
|
8726
|
-
if (isOpen && keyCode === KEY_CODES.ESCAPE_KEY
|
|
8742
|
+
if (isOpen && keyCode === KEY_CODES.ESCAPE_KEY) {
|
|
8727
8743
|
onToggle(null, false);
|
|
8728
8744
|
this.toggle.current.focus();
|
|
8729
8745
|
}
|
|
@@ -8954,6 +8970,7 @@
|
|
|
8954
8970
|
constructor(props) {
|
|
8955
8971
|
super(props);
|
|
8956
8972
|
this.parentRef = React__namespace.createRef();
|
|
8973
|
+
this.popperRef = React__namespace.createRef();
|
|
8957
8974
|
this.onEnterPressed = (event) => {
|
|
8958
8975
|
if (event.charCode === KEY_CODES.ENTER) {
|
|
8959
8976
|
this.props.onSearchButtonClick();
|
|
@@ -8977,10 +8994,10 @@
|
|
|
8977
8994
|
React__namespace.createElement(ContextSelectorContext.Provider, { value: { onSelect } },
|
|
8978
8995
|
React__namespace.createElement(ContextSelectorMenuList, { isOpen: isOpen }, children)),
|
|
8979
8996
|
footer))));
|
|
8980
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.contextSelector, isOpen && styles$Q.modifiers.expanded, className), ref: this.
|
|
8997
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.contextSelector, isOpen && styles$Q.modifiers.expanded, className), ref: this.popperRef }, props), isOpen && menuContainer));
|
|
8981
8998
|
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.contextSelector, isOpen && styles$Q.modifiers.expanded, isFullHeight && styles$Q.modifiers.fullHeight, className), ref: this.parentRef }, getOUIAProps(ContextSelector.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
|
|
8982
8999
|
screenReaderLabel && (React__namespace.createElement("span", { id: screenReaderLabelId, hidden: true }, screenReaderLabel)),
|
|
8983
|
-
React__namespace.createElement(ContextSelectorToggle, { onToggle: onToggle, isOpen: isOpen, toggleText: toggleText, id: toggleId, parentRef: this.parentRef.
|
|
9000
|
+
React__namespace.createElement(ContextSelectorToggle, { onToggle: onToggle, isOpen: isOpen, toggleText: toggleText, id: toggleId, parentRef: menuAppendTo === 'inline' ? this.parentRef : this.popperRef, "aria-labelledby": `${screenReaderLabelId} ${toggleId}`, isPlain: isPlain, isText: isText }),
|
|
8984
9001
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
8985
9002
|
const getParentElement = () => {
|
|
8986
9003
|
if (this.parentRef && this.parentRef.current) {
|
|
@@ -15313,7 +15330,7 @@
|
|
|
15313
15330
|
modalBody,
|
|
15314
15331
|
modalBoxFooter));
|
|
15315
15332
|
return (React__namespace.createElement(Backdrop, null,
|
|
15316
|
-
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true }, className: css(styles$
|
|
15333
|
+
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true }, className: css(styles$1h.bullseye) }, modalBox)));
|
|
15317
15334
|
};
|
|
15318
15335
|
ModalContent.displayName = 'ModalContent';
|
|
15319
15336
|
|
|
@@ -15372,10 +15389,10 @@
|
|
|
15372
15389
|
target.appendChild(container);
|
|
15373
15390
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
15374
15391
|
if (this.props.isOpen) {
|
|
15375
|
-
target.classList.add(css(styles$
|
|
15392
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
15376
15393
|
}
|
|
15377
15394
|
else {
|
|
15378
|
-
target.classList.remove(css(styles$
|
|
15395
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
15379
15396
|
}
|
|
15380
15397
|
if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
15381
15398
|
// eslint-disable-next-line no-console
|
|
@@ -15390,11 +15407,11 @@
|
|
|
15390
15407
|
const { appendTo } = this.props;
|
|
15391
15408
|
const target = this.getElement(appendTo);
|
|
15392
15409
|
if (this.props.isOpen) {
|
|
15393
|
-
target.classList.add(css(styles$
|
|
15410
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
15394
15411
|
this.toggleSiblingsFromScreenReaders(true);
|
|
15395
15412
|
}
|
|
15396
15413
|
else {
|
|
15397
|
-
target.classList.remove(css(styles$
|
|
15414
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
15398
15415
|
this.toggleSiblingsFromScreenReaders(false);
|
|
15399
15416
|
}
|
|
15400
15417
|
}
|
|
@@ -15405,7 +15422,7 @@
|
|
|
15405
15422
|
target.removeChild(this.state.container);
|
|
15406
15423
|
}
|
|
15407
15424
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
15408
|
-
target.classList.remove(css(styles$
|
|
15425
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
15409
15426
|
}
|
|
15410
15427
|
render() {
|
|
15411
15428
|
const _a = this.props, {
|
|
@@ -16330,7 +16347,7 @@
|
|
|
16330
16347
|
|
|
16331
16348
|
const TextContent = (_a) => {
|
|
16332
16349
|
var { children = null, className = '', isVisited = false } = _a, props = __rest$1(_a, ["children", "className", "isVisited"]);
|
|
16333
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
16350
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1f.content, isVisited && styles$1f.modifiers.visited, className) }), children));
|
|
16334
16351
|
};
|
|
16335
16352
|
TextContent.displayName = 'TextContent';
|
|
16336
16353
|
|
|
@@ -16352,7 +16369,7 @@
|
|
|
16352
16369
|
var { children = null, className = '', component = exports.TextVariants.p, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isVisitedLink", "ouiaId", "ouiaSafe"]);
|
|
16353
16370
|
const Component = component;
|
|
16354
16371
|
const ouiaProps = useOUIAProps(Text.displayName, ouiaId, ouiaSafe);
|
|
16355
|
-
return (React__namespace.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(isVisitedLink && component === exports.TextVariants.a && styles$
|
|
16372
|
+
return (React__namespace.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(isVisitedLink && component === exports.TextVariants.a && styles$1f.modifiers.visited, className) }), children));
|
|
16356
16373
|
};
|
|
16357
16374
|
Text.displayName = 'Text';
|
|
16358
16375
|
|
|
@@ -18409,7 +18426,7 @@
|
|
|
18409
18426
|
}
|
|
18410
18427
|
}
|
|
18411
18428
|
render() {
|
|
18412
|
-
const _a = this.props, { className, children, activeKey, defaultActiveKey, id, isFilled, isSecondary, isVertical, isBox, leftScrollAriaLabel, rightScrollAriaLabel, 'aria-label': ariaLabel, component, ouiaId, ouiaSafe, mountOnEnter, unmountOnExit, usePageInsets, inset, variant, expandable, isExpanded, defaultIsExpanded, toggleText, toggleAriaLabel, onToggle } = _a, props = __rest$1(_a, ["className", "children", "activeKey", "defaultActiveKey", "id", "isFilled", "isSecondary", "isVertical", "isBox", "leftScrollAriaLabel", "rightScrollAriaLabel", 'aria-label', "component", "ouiaId", "ouiaSafe", "mountOnEnter", "unmountOnExit", "usePageInsets", "inset", "variant", "expandable", "isExpanded", "defaultIsExpanded", "toggleText", "toggleAriaLabel", "onToggle"]);
|
|
18429
|
+
const _a = this.props, { className, children, activeKey, defaultActiveKey, id, isFilled, isSecondary, isVertical, isBox, hasBorderBottom, leftScrollAriaLabel, rightScrollAriaLabel, 'aria-label': ariaLabel, component, ouiaId, ouiaSafe, mountOnEnter, unmountOnExit, usePageInsets, inset, variant, expandable, isExpanded, defaultIsExpanded, toggleText, toggleAriaLabel, onToggle } = _a, props = __rest$1(_a, ["className", "children", "activeKey", "defaultActiveKey", "id", "isFilled", "isSecondary", "isVertical", "isBox", "hasBorderBottom", "leftScrollAriaLabel", "rightScrollAriaLabel", 'aria-label', "component", "ouiaId", "ouiaSafe", "mountOnEnter", "unmountOnExit", "usePageInsets", "inset", "variant", "expandable", "isExpanded", "defaultIsExpanded", "toggleText", "toggleAriaLabel", "onToggle"]);
|
|
18413
18430
|
const { showScrollButtons, disableLeftScrollButton, disableRightScrollButton, shownKeys, uncontrolledActiveKey, uncontrolledIsExpandedLocal } = this.state;
|
|
18414
18431
|
const filteredChildren = React__namespace.Children.toArray(children)
|
|
18415
18432
|
.filter(Boolean)
|
|
@@ -18435,7 +18452,7 @@
|
|
|
18435
18452
|
uniqueId,
|
|
18436
18453
|
handleTabClick: (...args) => this.handleTabClick(...args)
|
|
18437
18454
|
} },
|
|
18438
|
-
React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$h.tabs, isFilled && styles$h.modifiers.fill, isSecondary && styles$h.modifiers.secondary, isVertical && styles$h.modifiers.vertical, isVertical && expandable && formatBreakpointMods(expandable, styles$h), isVertical && expandable && isExpandedLocal && styles$h.modifiers.expanded, isBox && styles$h.modifiers.box, showScrollButtons && !isVertical && styles$h.modifiers.scrollable, usePageInsets && styles$h.modifiers.pageInsets, formatBreakpointMods(inset, styles$h), variantStyle[variant], className) }, getOUIAProps(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
|
|
18455
|
+
React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$h.tabs, isFilled && styles$h.modifiers.fill, isSecondary && styles$h.modifiers.secondary, isVertical && styles$h.modifiers.vertical, isVertical && expandable && formatBreakpointMods(expandable, styles$h), isVertical && expandable && isExpandedLocal && styles$h.modifiers.expanded, isBox && styles$h.modifiers.box, showScrollButtons && !isVertical && styles$h.modifiers.scrollable, usePageInsets && styles$h.modifiers.pageInsets, !hasBorderBottom && styles$h.modifiers.noBorderBottom, formatBreakpointMods(inset, styles$h), variantStyle[variant], className) }, getOUIAProps(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
|
|
18439
18456
|
expandable && isVertical && (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", { className: css(styles$h.tabsToggle) },
|
|
18440
18457
|
React__namespace.createElement("div", { className: css(styles$h.tabsToggleButton) },
|
|
18441
18458
|
React__namespace.createElement(Button, { onClick: () => toggleTabs(!isExpandedLocal), variant: "plain", "aria-label": toggleAriaLabel, "aria-expanded": isExpandedLocal, id: `${randomId}-button`, "aria-labelledby": `${randomId}-text ${randomId}-button` },
|
|
@@ -18462,6 +18479,7 @@
|
|
|
18462
18479
|
isSecondary: false,
|
|
18463
18480
|
isVertical: false,
|
|
18464
18481
|
isBox: false,
|
|
18482
|
+
hasBorderBottom: true,
|
|
18465
18483
|
leftScrollAriaLabel: 'Scroll left',
|
|
18466
18484
|
rightScrollAriaLabel: 'Scroll right',
|
|
18467
18485
|
component: exports.TabsComponent.div,
|
|
@@ -20007,11 +20025,11 @@
|
|
|
20007
20025
|
const WizardContextProvider = WizardContext.Provider;
|
|
20008
20026
|
const WizardContextConsumer = WizardContext.Consumer;
|
|
20009
20027
|
|
|
20010
|
-
const WizardHeader = ({ onClose = () => undefined, title, description, hideClose, closeButtonAriaLabel, titleId, descriptionId }) => (React__namespace.createElement("div", { className: css(styles$a.wizardHeader) },
|
|
20028
|
+
const WizardHeader = ({ onClose = () => undefined, title, description, hideClose, closeButtonAriaLabel, titleId, descriptionComponent: Component = 'p', descriptionId }) => (React__namespace.createElement("div", { className: css(styles$a.wizardHeader) },
|
|
20011
20029
|
!hideClose && (React__namespace.createElement(Button, { variant: "plain", className: css(styles$a.wizardClose), "aria-label": closeButtonAriaLabel, onClick: onClose },
|
|
20012
20030
|
React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" }))),
|
|
20013
20031
|
React__namespace.createElement(Title, { headingLevel: "h2", size: "3xl", className: css(styles$a.wizardTitle), "aria-label": title, id: titleId }, title || React__namespace.createElement(React__namespace.Fragment, null, "\u00A0")),
|
|
20014
|
-
description && (React__namespace.createElement(
|
|
20032
|
+
description && (React__namespace.createElement(Component, { className: css(styles$a.wizardDescription), id: descriptionId }, description))));
|
|
20015
20033
|
WizardHeader.displayName = 'WizardHeader';
|
|
20016
20034
|
|
|
20017
20035
|
class Wizard extends React__namespace.Component {
|
|
@@ -20176,7 +20194,7 @@
|
|
|
20176
20194
|
render() {
|
|
20177
20195
|
const _a = this.props, {
|
|
20178
20196
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
20179
|
-
width, height, title, description, onClose, onSave, onBack, onNext, onGoToStep, className, steps, startAtStep, nextButtonText = 'Next', backButtonText = 'Back', cancelButtonText = 'Cancel', hideClose, closeButtonAriaLabel = 'Close', navAriaLabel, navAriaLabelledBy, mainAriaLabel, mainAriaLabelledBy, hasNoBodyPadding, footer, appendTo, isOpen, titleId, descriptionId, isNavExpandable } = _a, rest = __rest$1(_a, ["width", "height", "title", "description", "onClose", "onSave", "onBack", "onNext", "onGoToStep", "className", "steps", "startAtStep", "nextButtonText", "backButtonText", "cancelButtonText", "hideClose", "closeButtonAriaLabel", "navAriaLabel", "navAriaLabelledBy", "mainAriaLabel", "mainAriaLabelledBy", "hasNoBodyPadding", "footer", "appendTo", "isOpen", "titleId", "descriptionId", "isNavExpandable"])
|
|
20197
|
+
width, height, title, description, descriptionComponent, onClose, onSave, onBack, onNext, onGoToStep, className, steps, startAtStep, nextButtonText = 'Next', backButtonText = 'Back', cancelButtonText = 'Cancel', hideClose, closeButtonAriaLabel = 'Close', navAriaLabel, navAriaLabelledBy, mainAriaLabel, mainAriaLabelledBy, hasNoBodyPadding, footer, appendTo, isOpen, titleId, descriptionId, isNavExpandable } = _a, rest = __rest$1(_a, ["width", "height", "title", "description", "descriptionComponent", "onClose", "onSave", "onBack", "onNext", "onGoToStep", "className", "steps", "startAtStep", "nextButtonText", "backButtonText", "cancelButtonText", "hideClose", "closeButtonAriaLabel", "navAriaLabel", "navAriaLabelledBy", "mainAriaLabel", "mainAriaLabelledBy", "hasNoBodyPadding", "footer", "appendTo", "isOpen", "titleId", "descriptionId", "isNavExpandable"])
|
|
20180
20198
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
20181
20199
|
;
|
|
20182
20200
|
const { currentStep } = this.state;
|
|
@@ -20239,7 +20257,7 @@
|
|
|
20239
20257
|
const divStyles = Object.assign(Object.assign({}, (height ? { height } : {})), (width ? { width } : {}));
|
|
20240
20258
|
const wizard = (React__namespace.createElement(WizardContextProvider, { value: context },
|
|
20241
20259
|
React__namespace.createElement("div", Object.assign({}, rest, { className: css(styles$a.wizard, activeStep && activeStep.isFinishedStep && 'pf-m-finished', className), style: Object.keys(divStyles).length ? divStyles : undefined }),
|
|
20242
|
-
title && (React__namespace.createElement(WizardHeader, { titleId: this.titleId, descriptionId: this.descriptionId, onClose: onClose, title: title, description: description, closeButtonAriaLabel: closeButtonAriaLabel, hideClose: hideClose })),
|
|
20260
|
+
title && (React__namespace.createElement(WizardHeader, { titleId: this.titleId, descriptionId: this.descriptionId, onClose: onClose, title: title, description: description, descriptionComponent: descriptionComponent, closeButtonAriaLabel: closeButtonAriaLabel, hideClose: hideClose })),
|
|
20243
20261
|
React__namespace.createElement(WizardToggle, { mainAriaLabel: mainAriaLabel, isInPage: isOpen === undefined, mainAriaLabelledBy: (title || mainAriaLabelledBy) && (mainAriaLabelledBy || this.titleId), isNavOpen: this.state.isNavOpen, onNavToggle: isNavOpen => this.setState({ isNavOpen }), nav: nav, steps: steps, activeStep: activeStep, hasNoBodyPadding: hasNoBodyPadding }, footer || (React__namespace.createElement(WizardFooterInternal, { onNext: this.onNext, onBack: this.onBack, onClose: onClose, isValid: isValid, firstStep: firstStep, activeStep: activeStep, nextButtonText: (activeStep && activeStep.nextButtonText) || nextButtonText, backButtonText: backButtonText, cancelButtonText: cancelButtonText }))))));
|
|
20244
20262
|
if (isOpen !== undefined) {
|
|
20245
20263
|
return (React__namespace.createElement(Modal, { width: width !== null ? width : undefined, isOpen: isOpen, variant: exports.ModalVariant.large, "aria-labelledby": this.titleId, "aria-describedby": this.descriptionId, showClose: false, hasNoBodyWrapper: true }, wizard));
|
|
@@ -20252,6 +20270,7 @@
|
|
|
20252
20270
|
Wizard.defaultProps = {
|
|
20253
20271
|
title: null,
|
|
20254
20272
|
description: '',
|
|
20273
|
+
descriptionComponent: 'p',
|
|
20255
20274
|
className: '',
|
|
20256
20275
|
startAtStep: 1,
|
|
20257
20276
|
nextButtonText: 'Next',
|
|
@@ -20687,7 +20706,7 @@
|
|
|
20687
20706
|
const Bullseye = (_a) => {
|
|
20688
20707
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
20689
20708
|
const Component = component;
|
|
20690
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
20709
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$1h.bullseye, className) }, props), children));
|
|
20691
20710
|
};
|
|
20692
20711
|
Bullseye.displayName = 'Bullseye';
|
|
20693
20712
|
|
|
@@ -21636,6 +21655,10 @@
|
|
|
21636
21655
|
__proto__: null
|
|
21637
21656
|
});
|
|
21638
21657
|
|
|
21658
|
+
var brand = /*#__PURE__*/Object.freeze({
|
|
21659
|
+
__proto__: null
|
|
21660
|
+
});
|
|
21661
|
+
|
|
21639
21662
|
var breadcrumb = /*#__PURE__*/Object.freeze({
|
|
21640
21663
|
__proto__: null
|
|
21641
21664
|
});
|