@patternfly/react-core 5.2.0-prerelease.4 → 5.2.0-prerelease.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/Chip/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/DragDrop/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
- package/dist/dynamic/deprecated/components/Select/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/favorites/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/esm/components/AboutModal/AboutModalBoxContent.js +1 -1
- package/dist/esm/components/AboutModal/AboutModalBoxContent.js.map +1 -1
- package/dist/esm/components/ActionList/ActionListItem.d.ts.map +1 -1
- package/dist/esm/components/ActionList/ActionListItem.js +2 -1
- package/dist/esm/components/ActionList/ActionListItem.js.map +1 -1
- package/dist/esm/components/BackgroundImage/BackgroundImage.d.ts.map +1 -1
- package/dist/esm/components/BackgroundImage/BackgroundImage.js +2 -1
- package/dist/esm/components/BackgroundImage/BackgroundImage.js.map +1 -1
- package/dist/esm/components/Brand/Brand.d.ts.map +1 -1
- package/dist/esm/components/Brand/Brand.js +4 -2
- package/dist/esm/components/Brand/Brand.js.map +1 -1
- package/dist/esm/components/Chip/Chip.d.ts +1 -1
- package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
- package/dist/esm/components/Chip/Chip.js +2 -1
- package/dist/esm/components/Chip/Chip.js.map +1 -1
- package/dist/esm/components/CodeBlock/CodeBlockAction.d.ts.map +1 -1
- package/dist/esm/components/CodeBlock/CodeBlockAction.js +2 -1
- package/dist/esm/components/CodeBlock/CodeBlockAction.js.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.js +2 -1
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/DescriptionList/DescriptionList.d.ts.map +1 -1
- package/dist/esm/components/DescriptionList/DescriptionList.js +6 -3
- package/dist/esm/components/DescriptionList/DescriptionList.js.map +1 -1
- package/dist/esm/components/DragDrop/Draggable.d.ts.map +1 -1
- package/dist/esm/components/DragDrop/Draggable.js +2 -1
- package/dist/esm/components/DragDrop/Draggable.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.js +8 -5
- package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorControl.d.ts.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorControl.js +2 -1
- package/dist/esm/components/DualListSelector/DualListSelectorControl.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorPane.d.ts.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorPane.js +4 -3
- package/dist/esm/components/DualListSelector/DualListSelectorPane.js.map +1 -1
- package/dist/esm/components/EmptyState/EmptyStateHeader.js +2 -2
- package/dist/esm/components/EmptyState/EmptyStateHeader.js.map +1 -1
- package/dist/esm/components/EmptyState/EmptyStateIcon.d.ts.map +1 -1
- package/dist/esm/components/EmptyState/EmptyStateIcon.js +2 -2
- package/dist/esm/components/EmptyState/EmptyStateIcon.js.map +1 -1
- package/dist/esm/components/Form/Form.d.ts.map +1 -1
- package/dist/esm/components/Form/Form.js +2 -1
- package/dist/esm/components/Form/Form.js.map +1 -1
- package/dist/esm/components/Form/FormAlert.d.ts.map +1 -1
- package/dist/esm/components/Form/FormAlert.js +2 -1
- package/dist/esm/components/Form/FormAlert.js.map +1 -1
- package/dist/esm/components/JumpLinks/JumpLinks.js +1 -1
- package/dist/esm/components/JumpLinks/JumpLinks.js.map +1 -1
- package/dist/esm/components/Label/Label.d.ts.map +1 -1
- package/dist/esm/components/Label/Label.js +2 -1
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
- package/dist/esm/components/Menu/Menu.js +7 -5
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/esm/components/Menu/MenuContent.js +3 -1
- package/dist/esm/components/Menu/MenuContent.js.map +1 -1
- package/dist/esm/components/Menu/MenuSearchInput.d.ts.map +1 -1
- package/dist/esm/components/Menu/MenuSearchInput.js +2 -1
- package/dist/esm/components/Menu/MenuSearchInput.js.map +1 -1
- package/dist/esm/components/Modal/ModalBoxHeader.js +1 -1
- package/dist/esm/components/Modal/ModalBoxHeader.js.map +1 -1
- package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js +1 -1
- package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerGroup.js +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerGroup.js.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerList.d.ts.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerList.js +2 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerList.js.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.d.ts.map +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.js +1 -1
- package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.js.map +1 -1
- package/dist/esm/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/esm/components/NumberInput/NumberInput.js +2 -1
- package/dist/esm/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/esm/components/Panel/PanelMain.d.ts.map +1 -1
- package/dist/esm/components/Panel/PanelMain.js +2 -1
- package/dist/esm/components/Panel/PanelMain.js.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.js +2 -1
- package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/esm/components/Skeleton/Skeleton.js +3 -1
- package/dist/esm/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
- package/dist/esm/components/Slider/Slider.js +8 -6
- package/dist/esm/components/Slider/Slider.js.map +1 -1
- package/dist/esm/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/esm/components/Spinner/Spinner.js +2 -1
- package/dist/esm/components/Spinner/Spinner.js.map +1 -1
- package/dist/esm/components/Tabs/OverflowTab.js +1 -1
- package/dist/esm/components/Tabs/OverflowTab.js.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.js +2 -1
- package/dist/esm/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/esm/components/Timestamp/Timestamp.js +1 -1
- package/dist/esm/components/Timestamp/Timestamp.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.js +2 -1
- package/dist/esm/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/esm/components/TreeView/TreeViewList.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeViewList.js +2 -1
- package/dist/esm/components/TreeView/TreeViewList.js.map +1 -1
- package/dist/esm/components/TreeView/TreeViewRoot.d.ts.map +1 -1
- package/dist/esm/components/TreeView/TreeViewRoot.js +7 -7
- package/dist/esm/components/TreeView/TreeViewRoot.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.js +4 -2
- package/dist/esm/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts.map +1 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js +2 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js.map +1 -1
- package/dist/esm/deprecated/components/Select/SelectMenu.js +1 -1
- package/dist/esm/deprecated/components/Select/SelectMenu.js.map +1 -1
- package/dist/esm/layouts/Gallery/Gallery.d.ts.map +1 -1
- package/dist/esm/layouts/Gallery/Gallery.js +6 -2
- package/dist/esm/layouts/Gallery/Gallery.js.map +1 -1
- package/dist/js/components/AboutModal/AboutModalBoxContent.js +1 -1
- package/dist/js/components/AboutModal/AboutModalBoxContent.js.map +1 -1
- package/dist/js/components/ActionList/ActionListItem.d.ts.map +1 -1
- package/dist/js/components/ActionList/ActionListItem.js +2 -1
- package/dist/js/components/ActionList/ActionListItem.js.map +1 -1
- package/dist/js/components/BackgroundImage/BackgroundImage.d.ts.map +1 -1
- package/dist/js/components/BackgroundImage/BackgroundImage.js +2 -1
- package/dist/js/components/BackgroundImage/BackgroundImage.js.map +1 -1
- package/dist/js/components/Brand/Brand.d.ts.map +1 -1
- package/dist/js/components/Brand/Brand.js +4 -2
- package/dist/js/components/Brand/Brand.js.map +1 -1
- package/dist/js/components/Chip/Chip.d.ts +1 -1
- package/dist/js/components/Chip/Chip.d.ts.map +1 -1
- package/dist/js/components/Chip/Chip.js +2 -1
- package/dist/js/components/Chip/Chip.js.map +1 -1
- package/dist/js/components/CodeBlock/CodeBlockAction.d.ts.map +1 -1
- package/dist/js/components/CodeBlock/CodeBlockAction.js +2 -1
- package/dist/js/components/CodeBlock/CodeBlockAction.js.map +1 -1
- package/dist/js/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/js/components/DatePicker/DatePicker.js +2 -1
- package/dist/js/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/js/components/DescriptionList/DescriptionList.d.ts.map +1 -1
- package/dist/js/components/DescriptionList/DescriptionList.js +6 -3
- package/dist/js/components/DescriptionList/DescriptionList.js.map +1 -1
- package/dist/js/components/DragDrop/Draggable.d.ts.map +1 -1
- package/dist/js/components/DragDrop/Draggable.js +2 -1
- package/dist/js/components/DragDrop/Draggable.js.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.js +8 -5
- package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorControl.d.ts.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorControl.js +2 -1
- package/dist/js/components/DualListSelector/DualListSelectorControl.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorPane.d.ts.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorPane.js +4 -3
- package/dist/js/components/DualListSelector/DualListSelectorPane.js.map +1 -1
- package/dist/js/components/EmptyState/EmptyStateHeader.js +2 -2
- package/dist/js/components/EmptyState/EmptyStateHeader.js.map +1 -1
- package/dist/js/components/EmptyState/EmptyStateIcon.d.ts.map +1 -1
- package/dist/js/components/EmptyState/EmptyStateIcon.js +2 -2
- package/dist/js/components/EmptyState/EmptyStateIcon.js.map +1 -1
- package/dist/js/components/Form/Form.d.ts.map +1 -1
- package/dist/js/components/Form/Form.js +2 -1
- package/dist/js/components/Form/Form.js.map +1 -1
- package/dist/js/components/Form/FormAlert.d.ts.map +1 -1
- package/dist/js/components/Form/FormAlert.js +2 -1
- package/dist/js/components/Form/FormAlert.js.map +1 -1
- package/dist/js/components/JumpLinks/JumpLinks.js +1 -1
- package/dist/js/components/JumpLinks/JumpLinks.js.map +1 -1
- package/dist/js/components/Label/Label.d.ts.map +1 -1
- package/dist/js/components/Label/Label.js +2 -1
- package/dist/js/components/Label/Label.js.map +1 -1
- package/dist/js/components/Menu/Menu.d.ts.map +1 -1
- package/dist/js/components/Menu/Menu.js +7 -5
- package/dist/js/components/Menu/Menu.js.map +1 -1
- package/dist/js/components/Menu/MenuContent.d.ts.map +1 -1
- package/dist/js/components/Menu/MenuContent.js +3 -1
- package/dist/js/components/Menu/MenuContent.js.map +1 -1
- package/dist/js/components/Menu/MenuSearchInput.d.ts.map +1 -1
- package/dist/js/components/Menu/MenuSearchInput.js +2 -1
- package/dist/js/components/Menu/MenuSearchInput.js.map +1 -1
- package/dist/js/components/Modal/ModalBoxHeader.js +1 -1
- package/dist/js/components/Modal/ModalBoxHeader.js.map +1 -1
- package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js +1 -1
- package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerGroup.js +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerGroup.js.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerList.d.ts.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerList.js +2 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerList.js.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.d.ts.map +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.js +1 -1
- package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.js.map +1 -1
- package/dist/js/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/js/components/NumberInput/NumberInput.js +2 -1
- package/dist/js/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/js/components/Panel/PanelMain.d.ts.map +1 -1
- package/dist/js/components/Panel/PanelMain.js +2 -1
- package/dist/js/components/Panel/PanelMain.js.map +1 -1
- package/dist/js/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/js/components/SearchInput/SearchInput.js +2 -1
- package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/js/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/js/components/Skeleton/Skeleton.js +3 -1
- package/dist/js/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/js/components/Slider/Slider.d.ts.map +1 -1
- package/dist/js/components/Slider/Slider.js +8 -6
- package/dist/js/components/Slider/Slider.js.map +1 -1
- package/dist/js/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/js/components/Spinner/Spinner.js +2 -1
- package/dist/js/components/Spinner/Spinner.js.map +1 -1
- package/dist/js/components/Tabs/OverflowTab.js +1 -1
- package/dist/js/components/Tabs/OverflowTab.js.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.js +2 -1
- package/dist/js/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/js/components/Timestamp/Timestamp.js +1 -1
- package/dist/js/components/Timestamp/Timestamp.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.js +2 -1
- package/dist/js/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/js/components/TreeView/TreeViewList.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeViewList.js +2 -1
- package/dist/js/components/TreeView/TreeViewList.js.map +1 -1
- package/dist/js/components/TreeView/TreeViewRoot.d.ts.map +1 -1
- package/dist/js/components/TreeView/TreeViewRoot.js +7 -7
- package/dist/js/components/TreeView/TreeViewRoot.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.js +4 -2
- package/dist/js/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts.map +1 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js +2 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js.map +1 -1
- package/dist/js/deprecated/components/Select/SelectMenu.js +1 -1
- package/dist/js/deprecated/components/Select/SelectMenu.js.map +1 -1
- package/dist/js/layouts/Gallery/Gallery.d.ts.map +1 -1
- package/dist/js/layouts/Gallery/Gallery.js +6 -2
- package/dist/js/layouts/Gallery/Gallery.js.map +1 -1
- package/dist/styles/assets/images/logo__pf--reverse-on-md.svg +1 -1
- package/dist/styles/assets/images/pf-c-brand__logo-on-lg-white.svg +32 -0
- package/dist/styles/assets/images/pf-c-brand__logo-on-md-white.svg +42 -0
- package/dist/styles/assets/images/pf-c-brand__logo-on-sm-white.svg +17 -0
- package/dist/styles/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
- package/dist/styles/assets/images/pf-c-brand__logo-on-xl-white.svg +39 -0
- package/dist/styles/assets/images/pf_logo_white.hbs +35 -0
- package/dist/styles/assets/images/pf_logo_white.svg +38 -0
- package/dist/umd/react-core.min.js +3 -3
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -6
- package/src/components/AboutModal/AboutModalBoxContent.tsx +1 -1
- package/src/components/AboutModal/examples/AboutModal.md +1 -0
- package/src/components/AboutModal/examples/AboutModalComplexUserPositionedContent.tsx +3 -2
- package/src/components/Accordion/__tests__/Accordion.test.tsx +3 -2
- package/src/components/Accordion/__tests__/AccordionContent.test.tsx +3 -2
- package/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx +3 -2
- package/src/components/Accordion/__tests__/AccordionToggle.test.tsx +7 -6
- package/src/components/ActionList/ActionListItem.tsx +2 -1
- package/src/components/ActionList/__tests__/ActionList.test.tsx +7 -6
- package/src/components/ActionList/__tests__/ActionListGroup.test.tsx +3 -2
- package/src/components/ActionList/__tests__/ActionListItem.test.tsx +3 -2
- package/src/components/Alert/__tests__/Alert.test.tsx +15 -13
- package/src/components/Alert/__tests__/AlertIcon.test.tsx +3 -2
- package/src/components/Alert/__tests__/AlertToggleExpandButton.test.tsx +3 -2
- package/src/components/Alert/examples/Alert.md +1 -0
- package/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +2 -1
- package/src/components/Alert/examples/AlertGroupAsync.tsx +2 -1
- package/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx +2 -1
- package/src/components/Alert/examples/AlertGroupSingularDynamic.tsx +2 -1
- package/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx +2 -1
- package/src/components/Alert/examples/AlertGroupToast.tsx +2 -1
- package/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx +2 -1
- package/src/components/Avatar/__tests__/Avatar.test.tsx +2 -1
- package/src/components/BackToTop/__tests__/BackToTop.test.tsx +2 -1
- package/src/components/Backdrop/__tests__/Backdrop.test.tsx +5 -4
- package/src/components/BackgroundImage/BackgroundImage.tsx +2 -1
- package/src/components/BackgroundImage/__tests__/BackgroundImage.test.tsx +2 -5
- package/src/components/Badge/__tests__/Badge.test.tsx +5 -4
- package/src/components/Banner/__tests__/Banner.test.tsx +4 -3
- package/src/components/Brand/Brand.tsx +5 -2
- package/src/components/Checkbox/__tests__/Checkbox.test.tsx +2 -1
- package/src/components/Chip/Chip.tsx +2 -1
- package/src/components/CodeBlock/CodeBlockAction.tsx +2 -1
- package/src/components/DataList/__tests__/DataList.test.tsx +6 -5
- package/src/components/DataList/examples/DataList.md +4 -0
- package/src/components/DataList/examples/DataListWidthModifiers.tsx +8 -3
- package/src/components/DatePicker/DatePicker.tsx +2 -1
- package/src/components/DescriptionList/DescriptionList.tsx +6 -3
- package/src/components/DragDrop/Draggable.tsx +2 -1
- package/src/components/Drawer/DrawerPanelContent.tsx +8 -5
- package/src/components/Drawer/examples/Drawer.md +2 -0
- package/src/components/Drawer/examples/DrawerStackedContentBodyElements.tsx +4 -3
- package/src/components/Drawer/examples/DrawerStatic.tsx +2 -1
- package/src/components/DualListSelector/DualListSelectorControl.tsx +2 -1
- package/src/components/DualListSelector/DualListSelectorPane.tsx +4 -3
- package/src/components/EmptyState/EmptyStateHeader.tsx +2 -2
- package/src/components/EmptyState/EmptyStateIcon.tsx +2 -2
- package/src/components/EmptyState/__tests__/EmptyState.test.tsx +5 -8
- package/src/components/EmptyState/examples/EmptyState.md +1 -0
- package/src/components/EmptyState/examples/EmptyStateCustomIconColor.tsx +3 -1
- package/src/components/FileUpload/examples/FileUploadCustomPreview.tsx +2 -1
- package/src/components/FileUpload/examples/FileUploadCustomUpload.tsx +2 -1
- package/src/components/Form/Form.tsx +2 -1
- package/src/components/Form/FormAlert.tsx +2 -1
- package/src/components/Form/examples/Form.md +1 -0
- package/src/components/Form/examples/FormBasic.tsx +2 -1
- package/src/components/Form/examples/FormGroupLabelInfo.tsx +2 -1
- package/src/components/Form/examples/FormLimitWidth.tsx +2 -1
- package/src/components/Hint/__tests__/Hint.test.tsx +5 -4
- package/src/components/Hint/__tests__/HintBody.test.tsx +3 -2
- package/src/components/Hint/__tests__/HintFooter.test.tsx +3 -2
- package/src/components/Hint/__tests__/HintTitle.test.tsx +3 -2
- package/src/components/Icon/__tests__/Icon.test.tsx +12 -11
- package/src/components/JumpLinks/JumpLinks.tsx +1 -1
- package/src/components/Label/Label.tsx +2 -1
- package/src/components/Menu/Menu.tsx +7 -5
- package/src/components/Menu/MenuContent.tsx +4 -2
- package/src/components/Menu/MenuSearchInput.tsx +2 -1
- package/src/components/Menu/__mocks__/Menu.tsx +2 -1
- package/src/components/MenuToggle/examples/MenuToggle.css +3 -2
- package/src/components/Modal/ModalBoxHeader.tsx +1 -1
- package/src/components/Modal/examples/Modal.md +2 -0
- package/src/components/Modal/examples/ModalCustomHeaderFooter.tsx +3 -2
- package/src/components/Modal/examples/ModalWithForm.tsx +4 -3
- package/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx +1 -1
- package/src/components/NotificationDrawer/NotificationDrawerGroup.tsx +1 -1
- package/src/components/NotificationDrawer/NotificationDrawerList.tsx +2 -1
- package/src/components/NotificationDrawer/NotificationDrawerListItem.tsx +1 -3
- package/src/components/NumberInput/NumberInput.tsx +2 -1
- package/src/components/Page/__tests__/PageSidebarBody.test.tsx +15 -14
- package/src/components/Page/examples/Page.md +1 -0
- package/src/components/Page/examples/PageCenteredSection.tsx +3 -2
- package/src/components/Panel/PanelMain.tsx +2 -1
- package/src/components/Panel/__tests__/Panel.test.tsx +11 -10
- package/src/components/Panel/__tests__/PanelFooter.test.tsx +5 -4
- package/src/components/Panel/__tests__/PanelHeader.test.tsx +5 -4
- package/src/components/Panel/__tests__/PanelMain.test.tsx +7 -5
- package/src/components/Panel/__tests__/PanelMainBody.test.tsx +5 -4
- package/src/components/Progress/__tests__/ProgressHelperText.test.tsx +3 -2
- package/src/components/ProgressStepper/__tests__/ProgressStep.test.tsx +10 -9
- package/src/components/ProgressStepper/__tests__/ProgressStepper.test.tsx +5 -4
- package/src/components/SearchInput/SearchInput.tsx +2 -1
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +5 -3
- package/src/components/Sidebar/__tests__/Sidebar.test.tsx +7 -6
- package/src/components/Sidebar/__tests__/SidebarContent.test.tsx +5 -4
- package/src/components/Sidebar/__tests__/SidebarPanel.test.tsx +5 -4
- package/src/components/Skeleton/Skeleton.tsx +4 -2
- package/src/components/Skeleton/examples/Skeleton.md +8 -0
- package/src/components/Skeleton/examples/SkeletonText.tsx +15 -7
- package/src/components/Slider/Slider.tsx +8 -6
- package/src/components/Spinner/Spinner.tsx +2 -1
- package/src/components/Tabs/OverflowTab.tsx +1 -1
- package/src/components/Tabs/__tests__/OverflowTab.test.tsx +9 -8
- package/src/components/Text/__tests__/TextContent.test.tsx +3 -2
- package/src/components/TextArea/__tests__/TextArea.test.tsx +2 -1
- package/src/components/TextInputGroup/__tests__/TextInputGroup.test.tsx +3 -2
- package/src/components/TextInputGroup/__tests__/TextInputGroupMain.test.tsx +10 -9
- package/src/components/TextInputGroup/__tests__/TextInputGroupUtilities.test.tsx +3 -3
- package/src/components/TimePicker/TimePicker.tsx +3 -1
- package/src/components/Timestamp/Timestamp.tsx +1 -1
- package/src/components/Timestamp/__tests__/Timestamp.test.tsx +5 -4
- package/src/components/Title/__tests__/Title.test.tsx +5 -4
- package/src/components/Toolbar/ToolbarItem.tsx +2 -1
- package/src/components/TreeView/TreeViewList.tsx +2 -1
- package/src/components/TreeView/TreeViewRoot.tsx +7 -11
- package/src/components/Truncate/__tests__/Truncate.test.tsx +10 -9
- package/src/components/Truncate/examples/Truncate.md +8 -5
- package/src/components/Truncate/examples/TruncateExamples.css +1 -1
- package/src/components/Wizard/WizardNavItem.tsx +4 -2
- package/src/components/Wizard/examples/Wizard.md +2 -0
- package/src/components/Wizard/examples/WizardStepDrawerContent.tsx +2 -1
- package/src/components/Wizard/examples/WizardValidateOnButtonPress.tsx +2 -1
- package/src/components/Wizard/examples/WizardWithCustomNavItem.tsx +1 -1
- package/src/components/Wizard/examples/WizardWithSubmitProgress.tsx +2 -1
- package/src/demos/Banner.md +20 -12
- package/src/demos/CardDemos.md +103 -72
- package/src/demos/CustomMenus/CustomMenus.md +1 -0
- package/src/demos/CustomMenus/examples/ComposableDateSelect.tsx +5 -4
- package/src/demos/CustomMenus/examples/DateSelectDemo.tsx +5 -4
- package/src/demos/JumpLinks.md +4 -1
- package/src/demos/PasswordStrength.md +1 -0
- package/src/demos/ProgressDemo.md +2 -2
- package/src/demos/Tabs.md +6 -2
- package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +3 -2
- package/src/demos/examples/Tabs/NestedTabs.tsx +2 -1
- package/src/demos/examples/Tabs/TabsAndTable.tsx +2 -1
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherText.tsx +2 -1
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherRouterLink.tsx +3 -1
- package/src/deprecated/components/Select/SelectMenu.tsx +1 -1
- package/src/deprecated/components/Wizard/examples/WizardFinished.tsx +2 -1
- package/src/deprecated/components/Wizard/examples/WizardValidateOnButtonPress.tsx +2 -1
- package/src/layouts/Flex/__tests__/Flex.test.tsx +2 -1
- package/src/layouts/Gallery/Gallery.tsx +6 -6
package/helpers/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"5.2.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"5.2.0-prerelease.5","private":true}
|
package/layouts/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"5.2.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"5.2.0-prerelease.5","private":true}
|
package/next/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"5.2.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"5.2.0-prerelease.5","private":true}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "5.2.0-prerelease.
|
|
3
|
+
"version": "5.2.0-prerelease.6",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@patternfly/react-icons": "^5.2.0-prerelease.
|
|
49
|
-
"@patternfly/react-styles": "^5.2.0-prerelease.
|
|
50
|
-
"@patternfly/react-tokens": "^5.2.0-prerelease.
|
|
48
|
+
"@patternfly/react-icons": "^5.2.0-prerelease.3",
|
|
49
|
+
"@patternfly/react-styles": "^5.2.0-prerelease.2",
|
|
50
|
+
"@patternfly/react-tokens": "^5.2.0-prerelease.3",
|
|
51
51
|
"focus-trap": "7.5.2",
|
|
52
52
|
"react-dropzone": "^14.2.3",
|
|
53
53
|
"tslib": "^2.5.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@patternfly/patternfly": "5.2.0-prerelease.
|
|
56
|
+
"@patternfly/patternfly": "5.2.0-prerelease.2",
|
|
57
57
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
58
58
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
59
59
|
"@rollup/plugin-replace": "^5.0.2",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"react": "^17 || ^18",
|
|
72
72
|
"react-dom": "^17 || ^18"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "50f5acd4ba1650ceb3634d249777a840186e4ee4"
|
|
75
75
|
}
|
|
@@ -19,7 +19,7 @@ export const AboutModalBoxContent: React.FunctionComponent<AboutModalBoxContentP
|
|
|
19
19
|
...props
|
|
20
20
|
}: AboutModalBoxContentProps) => (
|
|
21
21
|
<div className={css(styles.aboutModalBoxContent)} {...props}>
|
|
22
|
-
<div className={css(
|
|
22
|
+
<div className={css(`${styles.aboutModalBox}__body`)}>
|
|
23
23
|
{hasNoContentContainer ? children : <div className={css(contentStyles.content)}>{children}</div>}
|
|
24
24
|
</div>
|
|
25
25
|
<p className={css(styles.aboutModalBoxStrapline)}>{trademark}</p>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AboutModal, Alert, Button, TextContent, TextList, TextListItem } from '@patternfly/react-core';
|
|
3
3
|
import brandImg from '../../assets/brandImg.svg';
|
|
4
|
+
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
4
5
|
|
|
5
6
|
export const AboutModalComplexUserPositionedContent: React.FunctionComponent = () => {
|
|
6
7
|
const [isModalOpen, setIsModalOpen] = React.useState(false);
|
|
@@ -24,12 +25,12 @@ export const AboutModalComplexUserPositionedContent: React.FunctionComponent = (
|
|
|
24
25
|
hasNoContentContainer={true}
|
|
25
26
|
productName="Product Name"
|
|
26
27
|
>
|
|
27
|
-
<TextContent id="test1" className=
|
|
28
|
+
<TextContent id="test1" className={spacing.pyXl}>
|
|
28
29
|
<h4>About</h4>
|
|
29
30
|
<p>Content here</p>
|
|
30
31
|
</TextContent>
|
|
31
32
|
<Alert variant="info" title="Updates available" />
|
|
32
|
-
<TextContent id="test2" className=
|
|
33
|
+
<TextContent id="test2" className={spacing.pyXl}>
|
|
33
34
|
<TextList component="dl">
|
|
34
35
|
<TextListItem component="dt">CFME Version</TextListItem>
|
|
35
36
|
<TextListItem component="dd">5.5.3.4.20102789036450</TextListItem>
|
|
@@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react';
|
|
|
4
4
|
|
|
5
5
|
import { Accordion } from '../Accordion';
|
|
6
6
|
import { AccordionContext } from '../AccordionContext';
|
|
7
|
+
import styles from '@patternfly/react-styles/css/components/Accordion/accordion';
|
|
7
8
|
|
|
8
9
|
test('Renders without children', () => {
|
|
9
10
|
render(<Accordion data-testid="accordion" />);
|
|
@@ -34,10 +35,10 @@ test('Renders with inherited element props spread to the component', () => {
|
|
|
34
35
|
expect(screen.getByText('Test')).toHaveAccessibleName('Label');
|
|
35
36
|
});
|
|
36
37
|
|
|
37
|
-
test(
|
|
38
|
+
test(`Renders with class name ${styles.accordion}`, () => {
|
|
38
39
|
render(<Accordion>Test</Accordion>);
|
|
39
40
|
|
|
40
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
41
|
+
expect(screen.getByText('Test')).toHaveClass(styles.accordion);
|
|
41
42
|
});
|
|
42
43
|
|
|
43
44
|
test('Renders with custom class names provided via prop', () => {
|
|
@@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react';
|
|
|
4
4
|
|
|
5
5
|
import { AccordionContent } from '../AccordionContent';
|
|
6
6
|
import { AccordionContext } from '../AccordionContext';
|
|
7
|
+
import styles from '@patternfly/react-styles/css/components/Accordion/accordion';
|
|
7
8
|
|
|
8
9
|
jest.mock('../AccordionExpandableContentBody', () => ({
|
|
9
10
|
AccordionExpandableContentBody: ({ children }) => <div aria-label="Expanded content body mock">{children}</div>
|
|
@@ -85,14 +86,14 @@ test('Renders with inherited element props spread to the component', () => {
|
|
|
85
86
|
expect(screen.getByRole('heading')).toHaveAccessibleName('Label');
|
|
86
87
|
});
|
|
87
88
|
|
|
88
|
-
test(
|
|
89
|
+
test(`Renders with class name ${styles.accordionExpandableContent}`, () => {
|
|
89
90
|
render(
|
|
90
91
|
<AccordionContext.Provider value={{ ContentContainer: 'h3' }}>
|
|
91
92
|
<AccordionContent>Test</AccordionContent>
|
|
92
93
|
</AccordionContext.Provider>
|
|
93
94
|
);
|
|
94
95
|
|
|
95
|
-
expect(screen.getByRole('heading')).toHaveClass(
|
|
96
|
+
expect(screen.getByRole('heading')).toHaveClass(styles.accordionExpandableContent);
|
|
96
97
|
});
|
|
97
98
|
|
|
98
99
|
test('Renders with custom class names provided via prop', () => {
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
|
|
5
5
|
import { AccordionExpandableContentBody } from '../AccordionExpandableContentBody';
|
|
6
|
+
import styles from '@patternfly/react-styles/css/components/Accordion/accordion';
|
|
6
7
|
|
|
7
8
|
test('Renders without children', () => {
|
|
8
9
|
const { asFragment } = render(<AccordionExpandableContentBody />);
|
|
@@ -19,10 +20,10 @@ test('Renders children', () => {
|
|
|
19
20
|
expect(screen.getByText('Test')).toBeVisible();
|
|
20
21
|
});
|
|
21
22
|
|
|
22
|
-
test(
|
|
23
|
+
test(`Renders with class name ${styles.accordionExpandableContentBody}`, () => {
|
|
23
24
|
render(<AccordionExpandableContentBody>Test</AccordionExpandableContentBody>);
|
|
24
25
|
|
|
25
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
26
|
+
expect(screen.getByText('Test')).toHaveClass(styles.accordionExpandableContentBody);
|
|
26
27
|
});
|
|
27
28
|
|
|
28
29
|
test('Matches the snapshot', () => {
|
|
@@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react';
|
|
|
4
4
|
|
|
5
5
|
import { AccordionToggle } from '../AccordionToggle';
|
|
6
6
|
import { AccordionContext } from '../AccordionContext';
|
|
7
|
+
import styles from '@patternfly/react-styles/css/components/Accordion/accordion';
|
|
7
8
|
|
|
8
9
|
jest.mock('@patternfly/react-icons/dist/esm/icons/angle-right-icon', () => () => 'Icon mock');
|
|
9
10
|
|
|
@@ -42,7 +43,7 @@ test('Renders with inherited element props spread to the component', () => {
|
|
|
42
43
|
expect(screen.getByRole('button')).toHaveAccessibleName('Label');
|
|
43
44
|
});
|
|
44
45
|
|
|
45
|
-
test(
|
|
46
|
+
test(`Renders the accordion toggle with class ${styles.accordionToggle}`, () => {
|
|
46
47
|
render(
|
|
47
48
|
<AccordionContext.Provider value={{ ToggleContainer: 'h3' }}>
|
|
48
49
|
<AccordionToggle id="accordion-toggle" aria-label="Accordion test">
|
|
@@ -51,7 +52,7 @@ test('Renders the accordion toggle with class pf-v5-c-accordion__toggle', () =>
|
|
|
51
52
|
</AccordionContext.Provider>
|
|
52
53
|
);
|
|
53
54
|
|
|
54
|
-
expect(screen.getByRole('button')).toHaveClass(
|
|
55
|
+
expect(screen.getByRole('button')).toHaveClass(styles.accordionToggle);
|
|
55
56
|
});
|
|
56
57
|
|
|
57
58
|
test('Renders the accordion toggle with custom class names provided via prop', () => {
|
|
@@ -66,7 +67,7 @@ test('Renders the accordion toggle with custom class names provided via prop', (
|
|
|
66
67
|
expect(screen.getByRole('button')).toHaveClass('test-class');
|
|
67
68
|
});
|
|
68
69
|
|
|
69
|
-
test(
|
|
70
|
+
test(`Renders with children inside class ${styles.accordionToggleText}`, () => {
|
|
70
71
|
render(
|
|
71
72
|
<AccordionContext.Provider value={{ ToggleContainer: 'h3' }}>
|
|
72
73
|
<AccordionToggle id="accordion-toggle" aria-label="Accordion test">
|
|
@@ -75,10 +76,10 @@ test('Renders with children inside class pf-v5-c-accordion__toggle-text', () =>
|
|
|
75
76
|
</AccordionContext.Provider>
|
|
76
77
|
);
|
|
77
78
|
|
|
78
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
79
|
+
expect(screen.getByText('Test')).toHaveClass(styles.accordionToggleText);
|
|
79
80
|
});
|
|
80
81
|
|
|
81
|
-
test(
|
|
82
|
+
test(`Renders with the toggle icon inside class ${styles.accordionToggleIcon}`, () => {
|
|
82
83
|
render(
|
|
83
84
|
<AccordionContext.Provider value={{ ToggleContainer: 'h3' }}>
|
|
84
85
|
<AccordionToggle id="accordion-toggle" aria-label="Accordion test">
|
|
@@ -87,7 +88,7 @@ test('Renders with the toggle icon inside class pf-v5-c-accordion__toggle-icon',
|
|
|
87
88
|
</AccordionContext.Provider>
|
|
88
89
|
);
|
|
89
90
|
|
|
90
|
-
expect(screen.getByText('Icon mock')).toHaveClass(
|
|
91
|
+
expect(screen.getByText('Icon mock')).toHaveClass(styles.accordionToggleIcon);
|
|
91
92
|
});
|
|
92
93
|
|
|
93
94
|
test('Renders with the id prop passed to the toggle', () => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { css } from '@patternfly/react-styles';
|
|
3
|
+
import styles from '@patternfly/react-styles/css/components/ActionList/action-list';
|
|
3
4
|
|
|
4
5
|
export interface ActionListItemProps extends React.HTMLProps<HTMLDivElement> {
|
|
5
6
|
/** Children of the action list item */
|
|
@@ -13,7 +14,7 @@ export const ActionListItem: React.FunctionComponent<ActionListItemProps> = ({
|
|
|
13
14
|
className = '',
|
|
14
15
|
...props
|
|
15
16
|
}: ActionListItemProps) => (
|
|
16
|
-
<div className={css(
|
|
17
|
+
<div className={css(`${styles.actionList}__item`, className)} {...props}>
|
|
17
18
|
{children}
|
|
18
19
|
</div>
|
|
19
20
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import { ActionList } from '../ActionList';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/ActionList/action-list';
|
|
4
5
|
|
|
5
6
|
test('Renders without children', () => {
|
|
6
7
|
render(<ActionList data-testid="action-list" />);
|
|
@@ -13,10 +14,10 @@ test('Renders children', () => {
|
|
|
13
14
|
expect(screen.getByText('Test')).toBeVisible();
|
|
14
15
|
});
|
|
15
16
|
|
|
16
|
-
test(
|
|
17
|
+
test(`Renders with class ${styles.actionList}`, () => {
|
|
17
18
|
render(<ActionList>Test</ActionList>);
|
|
18
19
|
|
|
19
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
20
|
+
expect(screen.getByText('Test')).toHaveClass(styles.actionList);
|
|
20
21
|
});
|
|
21
22
|
|
|
22
23
|
test('Renders with custom class names provided via prop', () => {
|
|
@@ -25,16 +26,16 @@ test('Renders with custom class names provided via prop', () => {
|
|
|
25
26
|
expect(screen.getByText('Test')).toHaveClass('custom-class');
|
|
26
27
|
});
|
|
27
28
|
|
|
28
|
-
test(
|
|
29
|
+
test(`Does not render with class ${styles.modifiers.icons} by default`, () => {
|
|
29
30
|
render(<ActionList>Test</ActionList>);
|
|
30
31
|
|
|
31
|
-
expect(screen.getByText('Test')).not.toHaveClass(
|
|
32
|
+
expect(screen.getByText('Test')).not.toHaveClass(styles.modifiers.icons);
|
|
32
33
|
});
|
|
33
34
|
|
|
34
|
-
test(
|
|
35
|
+
test(`Renders with class ${styles.modifiers.icons} when isIconList is true`, () => {
|
|
35
36
|
render(<ActionList isIconList={true}>Test</ActionList>);
|
|
36
37
|
|
|
37
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
38
|
+
expect(screen.getByText('Test')).toHaveClass(styles.modifiers.icons);
|
|
38
39
|
});
|
|
39
40
|
|
|
40
41
|
test('Renders with inherited element props spread to the component', () => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import { ActionListGroup } from '../ActionListGroup';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/ActionList/action-list';
|
|
4
5
|
|
|
5
6
|
test('Renders without children', () => {
|
|
6
7
|
render(<ActionListGroup data-testid="action-list-group" />);
|
|
@@ -13,10 +14,10 @@ test('Renders children', () => {
|
|
|
13
14
|
expect(screen.getByText('Test')).toBeVisible();
|
|
14
15
|
});
|
|
15
16
|
|
|
16
|
-
test(
|
|
17
|
+
test(`Renders with class ${styles.actionListGroup}`, () => {
|
|
17
18
|
render(<ActionListGroup>Test</ActionListGroup>);
|
|
18
19
|
|
|
19
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
20
|
+
expect(screen.getByText('Test')).toHaveClass(styles.actionListGroup);
|
|
20
21
|
});
|
|
21
22
|
|
|
22
23
|
test('Renders with custom class names provided via prop', () => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import { ActionListItem } from '../ActionListItem';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/ActionList/action-list';
|
|
4
5
|
|
|
5
6
|
test('Renders without children', () => {
|
|
6
7
|
render(<ActionListItem data-testid="action-list-item" />);
|
|
@@ -13,10 +14,10 @@ test('Renders children', () => {
|
|
|
13
14
|
expect(screen.getByText('Test')).toBeVisible();
|
|
14
15
|
});
|
|
15
16
|
|
|
16
|
-
test(
|
|
17
|
+
test(`Renders with class ${styles.actionList}__item`, () => {
|
|
17
18
|
render(<ActionListItem>Test</ActionListItem>);
|
|
18
19
|
|
|
19
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
20
|
+
expect(screen.getByText('Test')).toHaveClass(`${styles.actionList}__item`);
|
|
20
21
|
});
|
|
21
22
|
|
|
22
23
|
test('Renders with custom class names provided via prop', () => {
|
|
@@ -6,6 +6,8 @@ import { act } from 'react-dom/test-utils';
|
|
|
6
6
|
import { Alert, AlertVariant } from '../Alert';
|
|
7
7
|
import { AlertContext } from '../AlertContext';
|
|
8
8
|
import { capitalize } from '../../../helpers';
|
|
9
|
+
import cssAlertTitleMaxLines from '@patternfly/react-tokens/dist/esm/c_alert__title_max_lines';
|
|
10
|
+
import styles from '@patternfly/react-styles/css/components/Alert/alert';
|
|
9
11
|
|
|
10
12
|
jest.mock('../AlertToggleExpandButton', () => ({
|
|
11
13
|
AlertToggleExpandButton: ({ isExpanded, onToggleExpand, ...props }) => (
|
|
@@ -34,18 +36,18 @@ test('Renders without children', () => {
|
|
|
34
36
|
expect(screen.getByTestId('container').firstChild).toBeVisible();
|
|
35
37
|
});
|
|
36
38
|
|
|
37
|
-
test(
|
|
39
|
+
test(`Renders with class ${styles.alert} on the containing div`, () => {
|
|
38
40
|
render(
|
|
39
41
|
<Alert title="Some title" data-testid="Alert-test-id">
|
|
40
42
|
Some alert
|
|
41
43
|
</Alert>
|
|
42
44
|
);
|
|
43
|
-
expect(screen.getByTestId('Alert-test-id')).toHaveClass(
|
|
45
|
+
expect(screen.getByTestId('Alert-test-id')).toHaveClass(styles.alert);
|
|
44
46
|
});
|
|
45
47
|
|
|
46
|
-
test(
|
|
48
|
+
test(`Renders with class ${styles.alertTitle} on the div containing the title`, () => {
|
|
47
49
|
render(<Alert title="Some title">Some alert</Alert>);
|
|
48
|
-
expect(screen.getByRole('heading', { name: 'Custom alert: Some title' })).toHaveClass(
|
|
50
|
+
expect(screen.getByRole('heading', { name: 'Custom alert: Some title' })).toHaveClass(styles.alertTitle);
|
|
49
51
|
});
|
|
50
52
|
|
|
51
53
|
test('Renders with Custom hidden text of "Custom alert:"', () => {
|
|
@@ -199,14 +201,14 @@ test('Renders the element passed via the actionClose prop', () => {
|
|
|
199
201
|
expect(screen.getByRole('button', { name: 'Action close' })).toBeVisible();
|
|
200
202
|
});
|
|
201
203
|
|
|
202
|
-
test(
|
|
204
|
+
test(`Renders the actionClose element inside ${styles.alertAction}`, () => {
|
|
203
205
|
render(
|
|
204
206
|
<Alert title="Some title" actionClose="Action close">
|
|
205
207
|
Some alert
|
|
206
208
|
</Alert>
|
|
207
209
|
);
|
|
208
210
|
|
|
209
|
-
expect(screen.getByText('Action close')).toHaveClass(
|
|
211
|
+
expect(screen.getByText('Action close')).toHaveClass(styles.alertAction);
|
|
210
212
|
});
|
|
211
213
|
|
|
212
214
|
test('Provides the actionClose element access to the title via a context', () => {
|
|
@@ -239,14 +241,14 @@ test('Renders the element passed via the actionLinks prop', () => {
|
|
|
239
241
|
expect(screen.getByRole('button', { name: 'Action link' })).toBeVisible();
|
|
240
242
|
});
|
|
241
243
|
|
|
242
|
-
test(
|
|
244
|
+
test(`Renders the actionLinks element inside ${styles.alertActionGroup}`, () => {
|
|
243
245
|
render(
|
|
244
246
|
<Alert title="Some title" actionLinks="Action link">
|
|
245
247
|
Some alert
|
|
246
248
|
</Alert>
|
|
247
249
|
);
|
|
248
250
|
|
|
249
|
-
expect(screen.getByText('Action link')).toHaveClass(
|
|
251
|
+
expect(screen.getByText('Action link')).toHaveClass(styles.alertActionGroup);
|
|
250
252
|
});
|
|
251
253
|
|
|
252
254
|
test('Renders children', () => {
|
|
@@ -255,10 +257,10 @@ test('Renders children', () => {
|
|
|
255
257
|
expect(screen.getByText('Some alert')).toBeVisible();
|
|
256
258
|
});
|
|
257
259
|
|
|
258
|
-
test(
|
|
260
|
+
test(`Renders children inside ${styles.alertDescription}`, () => {
|
|
259
261
|
render(<Alert title="Some title">Some alert</Alert>);
|
|
260
262
|
|
|
261
|
-
expect(screen.getByText('Some alert')).toHaveClass(
|
|
263
|
+
expect(screen.getByText('Some alert')).toHaveClass(styles.alertDescription);
|
|
262
264
|
});
|
|
263
265
|
|
|
264
266
|
test('Renders with the aria label passed via prop', () => {
|
|
@@ -578,7 +580,7 @@ test('Renders titles with the expected truncation styling when truncateTitle is
|
|
|
578
580
|
const title = screen.getByRole('heading');
|
|
579
581
|
|
|
580
582
|
expect(title).toHaveClass('pf-m-truncate');
|
|
581
|
-
expect(title).toHaveAttribute('style',
|
|
583
|
+
expect(title).toHaveAttribute('style', `${cssAlertTitleMaxLines.name}: 3;`);
|
|
582
584
|
});
|
|
583
585
|
|
|
584
586
|
test('Passes customIcon value to AlertIcon', () => {
|
|
@@ -609,14 +611,14 @@ test('Renders with class pf-m-expandable when isExpandable = true', () => {
|
|
|
609
611
|
expect(screen.getByTestId('Alert-test-id')).toHaveClass('pf-m-expandable');
|
|
610
612
|
});
|
|
611
613
|
|
|
612
|
-
test(
|
|
614
|
+
test(`Renders AlertToggleExpandButton inside ${styles.alertToggle}`, () => {
|
|
613
615
|
render(
|
|
614
616
|
<Alert isExpandable title="Some title">
|
|
615
617
|
Some alert
|
|
616
618
|
</Alert>
|
|
617
619
|
);
|
|
618
620
|
|
|
619
|
-
expect(screen.getByRole('button').parentElement).toHaveClass(
|
|
621
|
+
expect(screen.getByRole('button').parentElement).toHaveClass(styles.alertToggle);
|
|
620
622
|
});
|
|
621
623
|
|
|
622
624
|
test('Does not render with class pf-m-expanded when AlertToggleExpandButton has not been clicked', () => {
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
|
|
4
4
|
import { AlertIcon } from '../AlertIcon';
|
|
5
|
+
import styles from '@patternfly/react-styles/css/components/Alert/alert';
|
|
5
6
|
|
|
6
7
|
jest.mock('@patternfly/react-icons/dist/esm/icons/check-circle-icon', () => () => 'Check circle icon mock');
|
|
7
8
|
jest.mock('@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon', () => () => 'Exclamation circle icon mock');
|
|
@@ -65,10 +66,10 @@ test('Renders with the passed custom icon when one is passed rather than the ico
|
|
|
65
66
|
expect(screen.getByText('Custom icon')).toBeVisible();
|
|
66
67
|
});
|
|
67
68
|
|
|
68
|
-
test(
|
|
69
|
+
test(`Renders the icon inside class ${styles.alertIcon}`, () => {
|
|
69
70
|
render(<AlertIcon variant="custom" />);
|
|
70
71
|
|
|
71
|
-
expect(screen.getByText('Bell icon mock')).toHaveClass(
|
|
72
|
+
expect(screen.getByText('Bell icon mock')).toHaveClass(styles.alertIcon);
|
|
72
73
|
});
|
|
73
74
|
|
|
74
75
|
test('Renders with inherited element props spread to the component', () => {
|
|
@@ -4,6 +4,7 @@ import userEvent from '@testing-library/user-event';
|
|
|
4
4
|
|
|
5
5
|
import { AlertToggleExpandButton } from '../AlertToggleExpandButton';
|
|
6
6
|
import { AlertContext } from '../AlertContext';
|
|
7
|
+
import styles from '@patternfly/react-styles/css/components/Alert/alert';
|
|
7
8
|
|
|
8
9
|
jest.mock('../../Button');
|
|
9
10
|
|
|
@@ -108,14 +109,14 @@ test('Renders a Button with variant: ButtonVariant.plain', () => {
|
|
|
108
109
|
expect(screen.getByText('variant: plain')).toBeVisible();
|
|
109
110
|
});
|
|
110
111
|
|
|
111
|
-
test(
|
|
112
|
+
test(`Renders with the toggle icon inside class ${styles.alertToggleIcon}`, () => {
|
|
112
113
|
render(
|
|
113
114
|
<AlertContext.Provider value={{ title: 'title', variantLabel: 'variantLabel' }}>
|
|
114
115
|
<AlertToggleExpandButton />
|
|
115
116
|
</AlertContext.Provider>
|
|
116
117
|
);
|
|
117
118
|
|
|
118
|
-
expect(screen.getByText('Icon mock')).toHaveClass(
|
|
119
|
+
expect(screen.getByText('Icon mock')).toHaveClass(styles.alertToggleIcon);
|
|
119
120
|
});
|
|
120
121
|
|
|
121
122
|
test('Renders with inherited element props spread to the component', () => {
|
|
@@ -12,6 +12,7 @@ import BoxIcon from '@patternfly/react-icons/dist/esm/icons/box-icon';
|
|
|
12
12
|
import DatabaseIcon from '@patternfly/react-icons/dist/esm/icons/database-icon';
|
|
13
13
|
import ServerIcon from '@patternfly/react-icons/dist/esm/icons/server-icon';
|
|
14
14
|
import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon';
|
|
15
|
+
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
15
16
|
|
|
16
17
|
## Alert examples
|
|
17
18
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Alert, AlertGroup, AlertVariant, InputGroup } from '@patternfly/react-core';
|
|
3
|
+
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
3
4
|
|
|
4
5
|
interface AlertInfo {
|
|
5
6
|
title: string;
|
|
@@ -10,7 +11,7 @@ interface AlertInfo {
|
|
|
10
11
|
export const DynamicLiveRegionAlert: React.FunctionComponent = () => {
|
|
11
12
|
const [alerts, setAlerts] = React.useState<AlertInfo[]>([]);
|
|
12
13
|
const getUniqueId: () => number = () => new Date().getTime();
|
|
13
|
-
const btnClasses = [
|
|
14
|
+
const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
|
|
14
15
|
|
|
15
16
|
const addAlert = (alertInfo: AlertInfo) => {
|
|
16
17
|
setAlerts((prevAlertInfo) => [...prevAlertInfo, alertInfo]);
|
|
@@ -9,12 +9,13 @@ import {
|
|
|
9
9
|
InputGroupItem,
|
|
10
10
|
useInterval
|
|
11
11
|
} from '@patternfly/react-core';
|
|
12
|
+
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
12
13
|
|
|
13
14
|
export const AlertGroupAsync: React.FunctionComponent = () => {
|
|
14
15
|
const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
|
|
15
16
|
const [isRunning, setIsRunning] = React.useState(false);
|
|
16
17
|
|
|
17
|
-
const btnClasses = [
|
|
18
|
+
const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
|
|
18
19
|
|
|
19
20
|
const getUniqueId = () => new Date().getTime();
|
|
20
21
|
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
InputGroup,
|
|
9
9
|
InputGroupItem
|
|
10
10
|
} from '@patternfly/react-core';
|
|
11
|
+
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
11
12
|
|
|
12
13
|
export const AlertGroupMultipleDynamic: React.FunctionComponent = () => {
|
|
13
14
|
const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
|
|
@@ -20,7 +21,7 @@ export const AlertGroupMultipleDynamic: React.FunctionComponent = () => {
|
|
|
20
21
|
setAlerts((prevAlerts) => [...prevAlerts.filter((alert) => alert.key !== key)]);
|
|
21
22
|
};
|
|
22
23
|
|
|
23
|
-
const btnClasses = [
|
|
24
|
+
const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
|
|
24
25
|
|
|
25
26
|
const getUniqueId = () => String.fromCharCode(65 + Math.floor(Math.random() * 26)) + Date.now();
|
|
26
27
|
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
InputGroup,
|
|
9
9
|
InputGroupItem
|
|
10
10
|
} from '@patternfly/react-core';
|
|
11
|
+
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
11
12
|
|
|
12
13
|
export const AlertGroupSingularDynamic: React.FunctionComponent = () => {
|
|
13
14
|
const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
|
|
@@ -20,7 +21,7 @@ export const AlertGroupSingularDynamic: React.FunctionComponent = () => {
|
|
|
20
21
|
setAlerts((prevAlerts) => [...prevAlerts.filter((alert) => alert.key !== key)]);
|
|
21
22
|
};
|
|
22
23
|
|
|
23
|
-
const btnClasses = [
|
|
24
|
+
const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
|
|
24
25
|
|
|
25
26
|
const getUniqueId = () => new Date().getTime();
|
|
26
27
|
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
InputGroup,
|
|
9
9
|
InputGroupItem
|
|
10
10
|
} from '@patternfly/react-core';
|
|
11
|
+
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
11
12
|
|
|
12
13
|
export const AlertGroupSingularDynamicOverflow: React.FunctionComponent = () => {
|
|
13
14
|
const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
|
|
@@ -34,7 +35,7 @@ export const AlertGroupSingularDynamicOverflow: React.FunctionComponent = () =>
|
|
|
34
35
|
setOverflowMessage(getOverflowMessage(newAlerts.length));
|
|
35
36
|
};
|
|
36
37
|
|
|
37
|
-
const btnClasses = [
|
|
38
|
+
const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
|
|
38
39
|
|
|
39
40
|
const getUniqueId = () => new Date().getTime();
|
|
40
41
|
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
InputGroup,
|
|
9
9
|
InputGroupItem
|
|
10
10
|
} from '@patternfly/react-core';
|
|
11
|
+
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
11
12
|
|
|
12
13
|
export const AlertGroupToast: React.FunctionComponent = () => {
|
|
13
14
|
const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
|
|
@@ -20,7 +21,7 @@ export const AlertGroupToast: React.FunctionComponent = () => {
|
|
|
20
21
|
setAlerts((prevAlerts) => [...prevAlerts.filter((alert) => alert.key !== key)]);
|
|
21
22
|
};
|
|
22
23
|
|
|
23
|
-
const btnClasses = [
|
|
24
|
+
const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
|
|
24
25
|
|
|
25
26
|
const getUniqueId = () => new Date().getTime();
|
|
26
27
|
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
InputGroup,
|
|
9
9
|
InputGroupItem
|
|
10
10
|
} from '@patternfly/react-core';
|
|
11
|
+
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
11
12
|
|
|
12
13
|
export const AlertGroupToastOverflowCapture: React.FunctionComponent = () => {
|
|
13
14
|
const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
|
|
@@ -34,7 +35,7 @@ export const AlertGroupToastOverflowCapture: React.FunctionComponent = () => {
|
|
|
34
35
|
setOverflowMessage(getOverflowMessage(newAlerts.length));
|
|
35
36
|
};
|
|
36
37
|
|
|
37
|
-
const btnClasses = [
|
|
38
|
+
const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
|
|
38
39
|
|
|
39
40
|
const getUniqueId = () => new Date().getTime();
|
|
40
41
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import { Avatar } from '../Avatar';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/Avatar/avatar';
|
|
4
5
|
|
|
5
6
|
test('Renders simple avatar', () => {
|
|
6
7
|
render(
|
|
@@ -13,7 +14,7 @@ test('Renders simple avatar', () => {
|
|
|
13
14
|
|
|
14
15
|
test('Renders without any modifier class when border and size props are not passed', () => {
|
|
15
16
|
render(<Avatar alt="avatar" />);
|
|
16
|
-
expect(screen.getByRole('img')).toHaveClass(
|
|
17
|
+
expect(screen.getByRole('img')).toHaveClass(styles.avatar, { exact: true });
|
|
17
18
|
});
|
|
18
19
|
|
|
19
20
|
test('Renders with class name pf-m-light when "light" is passed as border prop', () => {
|