@patternfly/react-core 5.2.0-prerelease.5 → 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 +4 -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/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 +2 -2
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/Form/form';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
|
+
import cssMaxWidth from '@patternfly/react-tokens/dist/esm/c_form_m_limit_width_MaxWidth';
|
|
4
5
|
|
|
5
6
|
export interface FormProps extends Omit<React.HTMLProps<HTMLFormElement>, 'ref'> {
|
|
6
7
|
/** Anything that can be rendered as Form content. */
|
|
@@ -30,7 +31,7 @@ const FormBase: React.FunctionComponent<FormProps> = ({
|
|
|
30
31
|
noValidate
|
|
31
32
|
{...(maxWidth && {
|
|
32
33
|
style: {
|
|
33
|
-
|
|
34
|
+
[cssMaxWidth.name]: maxWidth,
|
|
34
35
|
...props.style
|
|
35
36
|
} as React.CSSProperties
|
|
36
37
|
})}
|
|
@@ -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/Form/form';
|
|
3
4
|
|
|
4
5
|
export interface FormAlertProps extends React.HTMLProps<HTMLDivElement> {
|
|
5
6
|
/** An inline PatternFly Alert. */
|
|
@@ -15,7 +16,7 @@ export const FormAlert: React.FunctionComponent<FormAlertProps> = ({
|
|
|
15
16
|
}: FormAlertProps) => (
|
|
16
17
|
// There are currently no associated styles with the pf-v5-c-form_alert class.
|
|
17
18
|
// Therefore, it does not exist in react-styles
|
|
18
|
-
<div {...props} className={css(
|
|
19
|
+
<div {...props} className={css(`${styles.form}__alert`, className)}>
|
|
19
20
|
{children}
|
|
20
21
|
</div>
|
|
21
22
|
);
|
|
@@ -40,6 +40,7 @@ Radio
|
|
|
40
40
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
41
41
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
42
42
|
import TrashIcon from '@patternfly/react-icons/dist/esm/icons/trash-icon';
|
|
43
|
+
import styles from '@patternfly/react-styles/css/components/Form/form';
|
|
43
44
|
|
|
44
45
|
## Examples
|
|
45
46
|
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
FormHelperText
|
|
14
14
|
} from '@patternfly/react-core';
|
|
15
15
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
16
|
+
import styles from '@patternfly/react-styles/css/components/Form/form';
|
|
16
17
|
|
|
17
18
|
export const FormBasic: React.FunctionComponent = () => {
|
|
18
19
|
const [name, setName] = React.useState('');
|
|
@@ -68,7 +69,7 @@ export const FormBasic: React.FunctionComponent = () => {
|
|
|
68
69
|
aria-label="More info for name field"
|
|
69
70
|
onClick={(e) => e.preventDefault()}
|
|
70
71
|
aria-describedby="simple-form-name-01"
|
|
71
|
-
className=
|
|
72
|
+
className={styles.formGroupLabelHelp}
|
|
72
73
|
>
|
|
73
74
|
<HelpIcon />
|
|
74
75
|
</button>
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
FormHelperText
|
|
10
10
|
} from '@patternfly/react-core';
|
|
11
11
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
12
|
+
import styles from '@patternfly/react-styles/css/components/Form/form';
|
|
12
13
|
|
|
13
14
|
export const FormGroupLabelInfo: React.FunctionComponent = () => {
|
|
14
15
|
const [name, setName] = React.useState('');
|
|
@@ -55,7 +56,7 @@ export const FormGroupLabelInfo: React.FunctionComponent = () => {
|
|
|
55
56
|
aria-label="More info for name field"
|
|
56
57
|
onClick={(e) => e.preventDefault()}
|
|
57
58
|
aria-describedby="form-group-label-info"
|
|
58
|
-
className=
|
|
59
|
+
className={styles.formGroupLabelHelp}
|
|
59
60
|
>
|
|
60
61
|
<HelpIcon />
|
|
61
62
|
</button>
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
FormHelperText
|
|
14
14
|
} from '@patternfly/react-core';
|
|
15
15
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
16
|
+
import styles from '@patternfly/react-styles/css/components/Form/form';
|
|
16
17
|
|
|
17
18
|
export const FormLimitWidth: React.FunctionComponent = () => {
|
|
18
19
|
const [name, setName] = React.useState('');
|
|
@@ -68,7 +69,7 @@ export const FormLimitWidth: React.FunctionComponent = () => {
|
|
|
68
69
|
aria-label="More info for name field"
|
|
69
70
|
onClick={(e) => e.preventDefault()}
|
|
70
71
|
aria-describedby="simple-form-name-02"
|
|
71
|
-
className=
|
|
72
|
+
className={styles.formGroupLabelHelp}
|
|
72
73
|
>
|
|
73
74
|
<HelpIcon />
|
|
74
75
|
</button>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import { Hint } from '../Hint';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/Hint/hint';
|
|
4
5
|
|
|
5
6
|
test('renders without children', () => {
|
|
6
7
|
render(<Hint data-testid="Hint" />);
|
|
@@ -14,12 +15,12 @@ test('renders children', () => {
|
|
|
14
15
|
expect(screen.getByText('Test')).toBeVisible();
|
|
15
16
|
});
|
|
16
17
|
|
|
17
|
-
test(
|
|
18
|
+
test(`renders with class ${styles.hint}`, () => {
|
|
18
19
|
render(<Hint>Test</Hint>);
|
|
19
20
|
|
|
20
21
|
const hint = screen.getByText('Test');
|
|
21
22
|
|
|
22
|
-
expect(hint).toHaveClass(
|
|
23
|
+
expect(hint).toHaveClass(styles.hint);
|
|
23
24
|
});
|
|
24
25
|
|
|
25
26
|
test('renders with custom class names provided via prop', () => {
|
|
@@ -46,12 +47,12 @@ test('renders actions options', () => {
|
|
|
46
47
|
expect(actions).toBeVisible();
|
|
47
48
|
});
|
|
48
49
|
|
|
49
|
-
test(
|
|
50
|
+
test(`renders with class ${styles.hintActions} if there is an action prop`, () => {
|
|
50
51
|
render(<Hint actions="actions">Test</Hint>);
|
|
51
52
|
|
|
52
53
|
const hint = screen.getByText('actions');
|
|
53
54
|
|
|
54
|
-
expect(hint).toHaveClass(
|
|
55
|
+
expect(hint).toHaveClass(styles.hintActions);
|
|
55
56
|
});
|
|
56
57
|
|
|
57
58
|
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 '@testing-library/jest-dom';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/Hint/hint';
|
|
4
5
|
|
|
5
6
|
import { HintBody } from '../HintBody';
|
|
6
7
|
|
|
@@ -16,12 +17,12 @@ test('renders children', () => {
|
|
|
16
17
|
expect(screen.getByRole('button', { name: 'Test Me' })).toBeVisible();
|
|
17
18
|
});
|
|
18
19
|
|
|
19
|
-
test(
|
|
20
|
+
test(`renders with class ${styles.hintBody}`, () => {
|
|
20
21
|
render(<HintBody>Hint Body Test</HintBody>);
|
|
21
22
|
|
|
22
23
|
const body = screen.getByText('Hint Body Test');
|
|
23
24
|
|
|
24
|
-
expect(body).toHaveClass(
|
|
25
|
+
expect(body).toHaveClass(styles.hintBody);
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
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 '@testing-library/jest-dom';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/Hint/hint';
|
|
4
5
|
|
|
5
6
|
import { HintFooter } from '../HintFooter';
|
|
6
7
|
|
|
@@ -16,12 +17,12 @@ test('renders children', () => {
|
|
|
16
17
|
expect(screen.getByRole('button', { name: 'Test Me' })).toBeVisible();
|
|
17
18
|
});
|
|
18
19
|
|
|
19
|
-
test(
|
|
20
|
+
test(`renders with class ${styles.hintFooter}`, () => {
|
|
20
21
|
render(<HintFooter>Hint Body Test</HintFooter>);
|
|
21
22
|
|
|
22
23
|
const body = screen.getByText('Hint Body Test');
|
|
23
24
|
|
|
24
|
-
expect(body).toHaveClass(
|
|
25
|
+
expect(body).toHaveClass(styles.hintFooter);
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
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 '@testing-library/jest-dom';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/Hint/hint';
|
|
4
5
|
|
|
5
6
|
import { HintTitle } from '../HintTitle';
|
|
6
7
|
|
|
@@ -16,12 +17,12 @@ test('renders children', () => {
|
|
|
16
17
|
expect(screen.getByRole('button', { name: 'Test Me' })).toBeVisible();
|
|
17
18
|
});
|
|
18
19
|
|
|
19
|
-
test(
|
|
20
|
+
test(`renders with class ${styles.hintTitle}`, () => {
|
|
20
21
|
render(<HintTitle>Hint Body Test</HintTitle>);
|
|
21
22
|
|
|
22
23
|
const body = screen.getByText('Hint Body Test');
|
|
23
24
|
|
|
24
|
-
expect(body).toHaveClass(
|
|
25
|
+
expect(body).toHaveClass(styles.hintTitle);
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
test('renders with custom class names provided via prop', () => {
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import { Icon } from '../Icon';
|
|
4
4
|
import { CheckIcon } from '@patternfly/react-icons';
|
|
5
|
+
import styles from '@patternfly/react-styles/css/components/Icon/icon';
|
|
5
6
|
|
|
6
7
|
test('renders basic icon successfully', () => {
|
|
7
8
|
const { asFragment } = render(
|
|
@@ -19,9 +20,9 @@ test('checks basic icon structure', () => {
|
|
|
19
20
|
</Icon>
|
|
20
21
|
);
|
|
21
22
|
const iconContainer = screen.getByTitle('icon');
|
|
22
|
-
expect(iconContainer).toHaveClass(
|
|
23
|
-
const iconContent = iconContainer.querySelector(
|
|
24
|
-
expect(iconContent).toHaveClass(
|
|
23
|
+
expect(iconContainer).toHaveClass(styles.icon);
|
|
24
|
+
const iconContent = iconContainer.querySelector(`.${styles.iconContent}`);
|
|
25
|
+
expect(iconContent).toHaveClass(styles.iconContent);
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
test('renders without children', () => {
|
|
@@ -47,7 +48,7 @@ Object.values(['sm', 'md', 'lg', 'xl']).forEach((size) => {
|
|
|
47
48
|
<CheckIcon />
|
|
48
49
|
</Icon>
|
|
49
50
|
);
|
|
50
|
-
const iconContainer = screen.getByTitle(`content-${size}-icon`).querySelector(
|
|
51
|
+
const iconContainer = screen.getByTitle(`content-${size}-icon`).querySelector(`.${styles.iconContent}`);
|
|
51
52
|
|
|
52
53
|
expect(iconContainer).toHaveClass(`pf-m-${size}`);
|
|
53
54
|
});
|
|
@@ -59,7 +60,7 @@ test('check icon without iconSize', () => {
|
|
|
59
60
|
<CheckIcon />
|
|
60
61
|
</Icon>
|
|
61
62
|
);
|
|
62
|
-
const iconContainer = screen.getByTitle('no-icon-size').querySelector(
|
|
63
|
+
const iconContainer = screen.getByTitle('no-icon-size').querySelector(`.${styles.iconContent}`);
|
|
63
64
|
expect(Array.from(iconContainer?.classList || []).some((c) => /pf-m-*/.test(c))); // Check no modifier classes have been added
|
|
64
65
|
});
|
|
65
66
|
|
|
@@ -70,7 +71,7 @@ Object.values(['sm', 'md', 'lg', 'xl']).forEach((size) => {
|
|
|
70
71
|
<CheckIcon />
|
|
71
72
|
</Icon>
|
|
72
73
|
);
|
|
73
|
-
const iconContainer = screen.getByTitle(`progress-content-${size}-icon`).querySelector(
|
|
74
|
+
const iconContainer = screen.getByTitle(`progress-content-${size}-icon`).querySelector(`.${styles.iconProgress}`);
|
|
74
75
|
|
|
75
76
|
expect(iconContainer).toHaveClass(`pf-m-${size}`);
|
|
76
77
|
});
|
|
@@ -82,7 +83,7 @@ test('check icon without progress icon size', () => {
|
|
|
82
83
|
<CheckIcon />
|
|
83
84
|
</Icon>
|
|
84
85
|
);
|
|
85
|
-
const iconContainer = screen.getByTitle('no-progress-icon-size').querySelector(
|
|
86
|
+
const iconContainer = screen.getByTitle('no-progress-icon-size').querySelector(`.${styles.iconProgress}`);
|
|
86
87
|
expect(Array.from(iconContainer?.classList || []).some((c) => /pf-m-*/.test(c))); // Check no modifier classes have been added
|
|
87
88
|
});
|
|
88
89
|
|
|
@@ -116,7 +117,7 @@ Object.values(['custom', 'info', 'success', 'warning', 'danger']).forEach((statu
|
|
|
116
117
|
<CheckIcon />
|
|
117
118
|
</Icon>
|
|
118
119
|
);
|
|
119
|
-
const iconContent = screen.getByTitle(`${status}-icon`).querySelector(
|
|
120
|
+
const iconContent = screen.getByTitle(`${status}-icon`).querySelector(`.${styles.iconContent}`);
|
|
120
121
|
|
|
121
122
|
expect(iconContent).toHaveClass(`pf-m-${status}`);
|
|
122
123
|
});
|
|
@@ -128,7 +129,7 @@ test('check icon without status', () => {
|
|
|
128
129
|
<CheckIcon />
|
|
129
130
|
</Icon>
|
|
130
131
|
);
|
|
131
|
-
const iconContent = screen.getByTitle('no-status').querySelector(
|
|
132
|
+
const iconContent = screen.getByTitle('no-status').querySelector(`.${styles.iconContent}`);
|
|
132
133
|
expect(Array.from(iconContent?.classList || []).some((c) => /pf-m-*/.test(c))); // Check no modifier classes have been added
|
|
133
134
|
});
|
|
134
135
|
|
|
@@ -162,8 +163,8 @@ test('sets isInProgress successfully', () => {
|
|
|
162
163
|
const iconContainer = screen.getByTitle('progress-icon');
|
|
163
164
|
expect(iconContainer).toHaveClass('pf-m-in-progress');
|
|
164
165
|
|
|
165
|
-
const iconContent = iconContainer.querySelector(
|
|
166
|
-
expect(iconContent).toHaveClass(
|
|
166
|
+
const iconContent = iconContainer.querySelector(`.${styles.iconProgress}`);
|
|
167
|
+
expect(iconContent).toHaveClass(styles.iconProgress);
|
|
167
168
|
});
|
|
168
169
|
|
|
169
170
|
test('check icon without isInProgress', () => {
|
|
@@ -227,7 +227,7 @@ export const JumpLinks: React.FunctionComponent<JumpLinksProps> = ({
|
|
|
227
227
|
{...props}
|
|
228
228
|
>
|
|
229
229
|
<div className={styles.jumpLinksMain}>
|
|
230
|
-
<div className={css(
|
|
230
|
+
<div className={css(`${styles.jumpLinks}__header`)}>
|
|
231
231
|
{expandable && (
|
|
232
232
|
<div className={styles.jumpLinksToggle}>
|
|
233
233
|
<Button
|
|
@@ -7,6 +7,7 @@ import { Tooltip, TooltipPosition } from '../Tooltip';
|
|
|
7
7
|
import { css } from '@patternfly/react-styles';
|
|
8
8
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
9
9
|
import { useIsomorphicLayoutEffect } from '../../helpers';
|
|
10
|
+
import cssTextMaxWidth from '@patternfly/react-tokens/dist/esm/c_label__text_MaxWidth';
|
|
10
11
|
|
|
11
12
|
export interface LabelProps extends React.HTMLProps<HTMLSpanElement> {
|
|
12
13
|
/** Content rendered inside the label. */
|
|
@@ -230,7 +231,7 @@ export const Label: React.FunctionComponent<LabelProps> = ({
|
|
|
230
231
|
className={css(styles.labelText)}
|
|
231
232
|
{...(textMaxWidth && {
|
|
232
233
|
style: {
|
|
233
|
-
|
|
234
|
+
[cssTextMaxWidth.name]: textMaxWidth
|
|
234
235
|
} as React.CSSProperties
|
|
235
236
|
})}
|
|
236
237
|
>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/Menu/menu';
|
|
3
|
+
import breadcrumbStyles from '@patternfly/react-styles/css/components/Breadcrumb/breadcrumb';
|
|
4
|
+
import dropdownStyles from '@patternfly/react-styles/css/components/Dropdown/dropdown';
|
|
3
5
|
import { css } from '@patternfly/react-styles';
|
|
4
6
|
import { getOUIAProps, OUIAProps, getDefaultOUIAId } from '../../helpers';
|
|
5
7
|
import { MenuContext } from './MenuContext';
|
|
@@ -177,7 +179,7 @@ class MenuBase extends React.Component<MenuProps, MenuState> {
|
|
|
177
179
|
|
|
178
180
|
if (
|
|
179
181
|
(event.target as HTMLElement).closest(`.${styles.menu}`) !== this.activeMenu &&
|
|
180
|
-
!(event.target as HTMLElement).classList.contains(
|
|
182
|
+
!(event.target as HTMLElement).classList.contains(breadcrumbStyles.breadcrumbLink)
|
|
181
183
|
) {
|
|
182
184
|
this.activeMenu = (event.target as HTMLElement).closest(`.${styles.menu}`);
|
|
183
185
|
this.setState({ disableHover: true });
|
|
@@ -190,8 +192,8 @@ class MenuBase extends React.Component<MenuProps, MenuState> {
|
|
|
190
192
|
const parentMenu = this.activeMenu;
|
|
191
193
|
const key = event.key;
|
|
192
194
|
const isFromBreadcrumb =
|
|
193
|
-
activeElement.classList.contains(
|
|
194
|
-
activeElement.classList.contains(
|
|
195
|
+
activeElement.classList.contains(breadcrumbStyles.breadcrumbLink) ||
|
|
196
|
+
activeElement.classList.contains(dropdownStyles.dropdownToggle);
|
|
195
197
|
|
|
196
198
|
if (key === ' ' || key === 'Enter') {
|
|
197
199
|
event.preventDefault();
|
|
@@ -308,8 +310,8 @@ class MenuBase extends React.Component<MenuProps, MenuState> {
|
|
|
308
310
|
}
|
|
309
311
|
noHorizontalArrowHandling={
|
|
310
312
|
document.activeElement &&
|
|
311
|
-
(document.activeElement.classList.contains(
|
|
312
|
-
document.activeElement.classList.contains(
|
|
313
|
+
(document.activeElement.classList.contains(breadcrumbStyles.breadcrumbLink) ||
|
|
314
|
+
document.activeElement.classList.contains(dropdownStyles.dropdownToggle))
|
|
313
315
|
}
|
|
314
316
|
noEnterHandling
|
|
315
317
|
noSpaceHandling
|
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/Menu/menu';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
import { MenuContext } from './MenuContext';
|
|
5
|
+
import cssHeight from '@patternfly/react-tokens/dist/esm/c_menu__content_Height';
|
|
6
|
+
import cssMaxHeight from '@patternfly/react-tokens/dist/esm/c_menu__content_MaxHeight';
|
|
5
7
|
|
|
6
8
|
export interface MenuContentProps extends React.HTMLProps<HTMLElement> {
|
|
7
9
|
/** Items within group */
|
|
@@ -58,8 +60,8 @@ export const MenuContent = React.forwardRef((props: MenuContentProps, ref: React
|
|
|
58
60
|
ref={(el) => refCallback(el, menuId, onGetMenuHeight)}
|
|
59
61
|
style={
|
|
60
62
|
{
|
|
61
|
-
...(menuHeight && {
|
|
62
|
-
...(maxMenuHeight && {
|
|
63
|
+
...(menuHeight && { [cssHeight.name]: menuHeight }),
|
|
64
|
+
...(maxMenuHeight && { [cssMaxHeight.name]: maxMenuHeight })
|
|
63
65
|
} as React.CSSProperties
|
|
64
66
|
}
|
|
65
67
|
>
|
|
@@ -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/Menu/menu';
|
|
3
4
|
|
|
4
5
|
export interface MenuSearchInputProps extends React.HTMLProps<HTMLElement> {
|
|
5
6
|
/** Items within input */
|
|
@@ -10,6 +11,6 @@ export interface MenuSearchInputProps extends React.HTMLProps<HTMLElement> {
|
|
|
10
11
|
|
|
11
12
|
export const MenuSearchInput = React.forwardRef((props: MenuSearchInputProps, ref: React.Ref<HTMLDivElement>) => (
|
|
12
13
|
// Update to use the styles object when core adds the class
|
|
13
|
-
<div {...props} className={css(
|
|
14
|
+
<div {...props} className={css(`${styles.menuSearch}-input`, props.className)} ref={ref} />
|
|
14
15
|
));
|
|
15
16
|
MenuSearchInput.displayName = 'MenuSearchInput';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MenuProps } from '../Menu';
|
|
3
|
+
import cssMenuMinWidth from '@patternfly/react-tokens/dist/esm/c_menu_MinWidth';
|
|
3
4
|
|
|
4
5
|
export const Menu = ({ className, isPlain, isScrollable, style, onSelect, ...props }: MenuProps) => (
|
|
5
6
|
<>
|
|
@@ -7,6 +8,6 @@ export const Menu = ({ className, isPlain, isScrollable, style, onSelect, ...pro
|
|
|
7
8
|
<div onClick={onSelect}>{'Mock item'}</div>
|
|
8
9
|
<p>{`isPlain: ${isPlain}`}</p>
|
|
9
10
|
<p>{`isScrollable: ${isScrollable}`}</p>
|
|
10
|
-
<p>{`minWidth: ${style?.[
|
|
11
|
+
<p>{`minWidth: ${style?.[cssMenuMinWidth.name]}`}</p>
|
|
11
12
|
</>
|
|
12
13
|
);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
#ws-react-c-menu-toggle-primary .pf-v5-c-menu-toggle,
|
|
2
|
-
|
|
1
|
+
#ws-react-c-menu-toggle-primary .pf-v5-c-menu-toggle,
|
|
2
|
+
#ws-react-c-menu-toggle-secondary .pf-v5-c-menu-toggle {
|
|
3
|
+
vertical-align: bottom;
|
|
3
4
|
}
|
|
@@ -21,7 +21,7 @@ export const ModalBoxHeader: React.FunctionComponent<ModalBoxHeaderProps> = ({
|
|
|
21
21
|
{help && (
|
|
22
22
|
<React.Fragment>
|
|
23
23
|
<div className={css(styles.modalBoxHeaderMain)}>{children}</div>
|
|
24
|
-
<div className=
|
|
24
|
+
<div className={`${styles.modalBoxHeader}-help`}>{help}</div>
|
|
25
25
|
</React.Fragment>
|
|
26
26
|
)}
|
|
27
27
|
{!help && children}
|
|
@@ -10,6 +10,8 @@ import WarningTriangleIcon from '@patternfly/react-icons/dist/esm/icons/warning-
|
|
|
10
10
|
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
11
11
|
import BullhornIcon from '@patternfly/react-icons/dist/esm/icons/bullhorn-icon';
|
|
12
12
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
13
|
+
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
14
|
+
import formStyles from '@patternfly/react-styles/css/components/Form/form';
|
|
13
15
|
|
|
14
16
|
## Examples
|
|
15
17
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Modal, ModalVariant, Button, Title, TitleSizes } from '@patternfly/react-core';
|
|
3
3
|
import WarningTriangleIcon from '@patternfly/react-icons/dist/esm/icons/warning-triangle-icon';
|
|
4
|
+
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
4
5
|
|
|
5
6
|
export const ModalCustomHeaderFooter: React.FunctionComponent = () => {
|
|
6
7
|
const [isModalOpen, setIsModalOpen] = React.useState(false);
|
|
@@ -14,14 +15,14 @@ export const ModalCustomHeaderFooter: React.FunctionComponent = () => {
|
|
|
14
15
|
<Title id="modal-custom-header-label" headingLevel="h1" size={TitleSizes['2xl']}>
|
|
15
16
|
Custom header/footer modal
|
|
16
17
|
</Title>
|
|
17
|
-
<p className=
|
|
18
|
+
<p className={spacing.ptSm}>Allows for custom content in the header and/or footer by passing components.</p>
|
|
18
19
|
</React.Fragment>
|
|
19
20
|
);
|
|
20
21
|
|
|
21
22
|
const footer = (
|
|
22
23
|
<Title headingLevel="h4" size={TitleSizes.md}>
|
|
23
24
|
<WarningTriangleIcon />
|
|
24
|
-
<span className=
|
|
25
|
+
<span className={spacing.plSm}>Custom modal footer.</span>
|
|
25
26
|
</Title>
|
|
26
27
|
);
|
|
27
28
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Modal, ModalVariant, Button, Form, FormGroup, Popover, TextInput } from '@patternfly/react-core';
|
|
3
3
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
4
|
+
import formStyles from '@patternfly/react-styles/css/components/Form/form';
|
|
4
5
|
|
|
5
6
|
export const ModalWithForm: React.FunctionComponent = () => {
|
|
6
7
|
const [isModalOpen, setModalOpen] = React.useState(false);
|
|
@@ -79,7 +80,7 @@ export const ModalWithForm: React.FunctionComponent = () => {
|
|
|
79
80
|
aria-label="More info for name field"
|
|
80
81
|
onClick={(e) => e.preventDefault()}
|
|
81
82
|
aria-describedby="modal-with-form-form-name"
|
|
82
|
-
className=
|
|
83
|
+
className={formStyles.formGroupLabelHelp}
|
|
83
84
|
>
|
|
84
85
|
<HelpIcon />
|
|
85
86
|
</button>
|
|
@@ -128,7 +129,7 @@ export const ModalWithForm: React.FunctionComponent = () => {
|
|
|
128
129
|
aria-label="More info for e-mail field"
|
|
129
130
|
onClick={(e) => e.preventDefault()}
|
|
130
131
|
aria-describedby="modal-with-form-form-email"
|
|
131
|
-
className=
|
|
132
|
+
className={formStyles.formGroupLabelHelp}
|
|
132
133
|
>
|
|
133
134
|
<HelpIcon />
|
|
134
135
|
</button>
|
|
@@ -176,7 +177,7 @@ export const ModalWithForm: React.FunctionComponent = () => {
|
|
|
176
177
|
aria-label="More info for address field"
|
|
177
178
|
onClick={(e) => e.preventDefault()}
|
|
178
179
|
aria-describedby="modal-with-form-form-address"
|
|
179
|
-
className=
|
|
180
|
+
className={formStyles.formGroupLabelHelp}
|
|
180
181
|
>
|
|
181
182
|
<HelpIcon />
|
|
182
183
|
</button>
|
|
@@ -75,7 +75,7 @@ export const MultipleFileUploadStatus: React.FunctionComponent<MultipleFileUploa
|
|
|
75
75
|
isExpanded={isOpen}
|
|
76
76
|
onToggle={toggleExpandableSection}
|
|
77
77
|
>
|
|
78
|
-
<ul className=
|
|
78
|
+
<ul className={`${styles.multipleFileUploadStatus}-list`} role="list" aria-label={ariaLabel}>
|
|
79
79
|
{children}
|
|
80
80
|
</ul>
|
|
81
81
|
</ExpandableSection>
|
|
@@ -111,7 +111,7 @@ export const NotificationDrawerGroup: React.FunctionComponent<NotificationDrawer
|
|
|
111
111
|
<Badge isRead={isRead}>{count}</Badge>
|
|
112
112
|
</div>
|
|
113
113
|
|
|
114
|
-
<span className=
|
|
114
|
+
<span className={styles.notificationDrawerGroupToggleIcon}>
|
|
115
115
|
<AngleRightIcon />
|
|
116
116
|
</span>
|
|
117
117
|
</button>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/NotificationDrawer/notification-drawer';
|
|
4
5
|
|
|
5
6
|
export interface NotificationDrawerListProps extends React.HTMLProps<HTMLUListElement> {
|
|
6
7
|
/** Content rendered inside the notification drawer list body */
|
|
@@ -22,7 +23,7 @@ export const NotificationDrawerList: React.FunctionComponent<NotificationDrawerL
|
|
|
22
23
|
}: NotificationDrawerListProps) => (
|
|
23
24
|
<ul
|
|
24
25
|
{...props}
|
|
25
|
-
className={css(
|
|
26
|
+
className={css(`${styles.notificationDrawer}__list`, className)}
|
|
26
27
|
hidden={isHidden}
|
|
27
28
|
role="list"
|
|
28
29
|
aria-label={ariaLabel}
|
|
@@ -31,9 +31,7 @@ export const NotificationDrawerListItem: React.FunctionComponent<NotificationDra
|
|
|
31
31
|
...props
|
|
32
32
|
}: NotificationDrawerListItemProps) => {
|
|
33
33
|
const onKeyDown = (event: React.KeyboardEvent) => {
|
|
34
|
-
if (
|
|
35
|
-
!(event.target as HTMLElement).parentElement.classList.contains('pf-v5-c-notification-drawer__list-item-action')
|
|
36
|
-
) {
|
|
34
|
+
if (!(event.target as HTMLElement).parentElement.classList.contains(styles.notificationDrawerListItemAction)) {
|
|
37
35
|
// Accessibility function. Click on the list item when pressing Enter or Space on it.
|
|
38
36
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
39
37
|
(event.target as HTMLElement).click();
|
|
@@ -7,6 +7,7 @@ import { InputGroup, InputGroupItem } from '../InputGroup';
|
|
|
7
7
|
import { Button, ButtonProps } from '../Button';
|
|
8
8
|
import { KeyTypes, ValidatedOptions } from '../../helpers';
|
|
9
9
|
import { TextInput } from '../TextInput';
|
|
10
|
+
import cssFormControlWidthChars from '@patternfly/react-tokens/dist/esm/c_number_input_c_form_control_width_chars';
|
|
10
11
|
|
|
11
12
|
export interface NumberInputProps extends React.HTMLProps<HTMLDivElement> {
|
|
12
13
|
/** Value of the number input */
|
|
@@ -108,7 +109,7 @@ export const NumberInput: React.FunctionComponent<NumberInputProps> = ({
|
|
|
108
109
|
className={css(styles.numberInput, validated !== 'default' && styles.modifiers.status, className)}
|
|
109
110
|
{...(widthChars && {
|
|
110
111
|
style: {
|
|
111
|
-
|
|
112
|
+
[cssFormControlWidthChars.name]: widthChars,
|
|
112
113
|
...props.style
|
|
113
114
|
} as React.CSSProperties
|
|
114
115
|
})}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
3
|
import { PageSidebarBody } from '../PageSidebarBody';
|
|
4
|
+
import styles from '@patternfly/react-styles/css/components/Page/page';
|
|
4
5
|
|
|
5
6
|
test('Renders without children', () => {
|
|
6
7
|
render(
|
|
@@ -18,10 +19,10 @@ test('Renders with children', () => {
|
|
|
18
19
|
expect(screen.getByText('Test')).toBeVisible();
|
|
19
20
|
});
|
|
20
21
|
|
|
21
|
-
test(
|
|
22
|
+
test(`Renders with class ${styles.pageSidebarBody} by default`, () => {
|
|
22
23
|
render(<PageSidebarBody>Test</PageSidebarBody>);
|
|
23
24
|
|
|
24
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
25
|
+
expect(screen.getByText('Test')).toHaveClass(styles.pageSidebarBody);
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
test('Renders with custom class', () => {
|
|
@@ -30,40 +31,40 @@ test('Renders with custom class', () => {
|
|
|
30
31
|
expect(screen.getByText('Test')).toHaveClass('tester');
|
|
31
32
|
});
|
|
32
33
|
|
|
33
|
-
test(
|
|
34
|
+
test(`Renders without ${styles.modifiers.pageInsets} by default`, () => {
|
|
34
35
|
render(<PageSidebarBody>Test</PageSidebarBody>);
|
|
35
36
|
|
|
36
|
-
expect(screen.getByText('Test')).not.toHaveClass(
|
|
37
|
+
expect(screen.getByText('Test')).not.toHaveClass(styles.modifiers.pageInsets);
|
|
37
38
|
});
|
|
38
39
|
|
|
39
|
-
test(
|
|
40
|
+
test(`Renders with ${styles.modifiers.pageInsets} when usePageInsets is passed`, () => {
|
|
40
41
|
render(<PageSidebarBody usePageInsets>Test</PageSidebarBody>);
|
|
41
42
|
|
|
42
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
43
|
+
expect(screen.getByText('Test')).toHaveClass(styles.modifiers.pageInsets);
|
|
43
44
|
});
|
|
44
45
|
|
|
45
|
-
test(
|
|
46
|
+
test(`Renders without ${styles.modifiers.fill} by default`, () => {
|
|
46
47
|
render(<PageSidebarBody>Test</PageSidebarBody>);
|
|
47
48
|
|
|
48
|
-
expect(screen.getByText('Test')).not.toHaveClass(
|
|
49
|
+
expect(screen.getByText('Test')).not.toHaveClass(styles.modifiers.fill);
|
|
49
50
|
});
|
|
50
51
|
|
|
51
|
-
test(
|
|
52
|
+
test(`Renders with ${styles.modifiers.fill} when isFilled={true} is passed`, () => {
|
|
52
53
|
render(<PageSidebarBody isFilled={true}>Test</PageSidebarBody>);
|
|
53
54
|
|
|
54
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
55
|
+
expect(screen.getByText('Test')).toHaveClass(styles.modifiers.fill);
|
|
55
56
|
});
|
|
56
57
|
|
|
57
|
-
test(
|
|
58
|
+
test(`Renders without ${styles.modifiers.noFill} by default`, () => {
|
|
58
59
|
render(<PageSidebarBody>Test</PageSidebarBody>);
|
|
59
60
|
|
|
60
|
-
expect(screen.getByText('Test')).not.toHaveClass(
|
|
61
|
+
expect(screen.getByText('Test')).not.toHaveClass(styles.modifiers.noFill);
|
|
61
62
|
});
|
|
62
63
|
|
|
63
|
-
test(
|
|
64
|
+
test(`Renders with ${styles.modifiers.noFill} when isFilled={false} is passed`, () => {
|
|
64
65
|
render(<PageSidebarBody isFilled={false}>Test</PageSidebarBody>);
|
|
65
66
|
|
|
66
|
-
expect(screen.getByText('Test')).toHaveClass(
|
|
67
|
+
expect(screen.getByText('Test')).toHaveClass(styles.modifiers.noFill);
|
|
67
68
|
});
|
|
68
69
|
|
|
69
70
|
test('Renders with additional props', () => {
|