@patternfly/react-core 6.2.0-prerelease.33 → 6.2.0-prerelease.34
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 +16 -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/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/Content/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/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/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/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/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
- package/dist/dynamic/deprecated/components/Tile/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/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/styles/package.json +1 -1
- package/dist/dynamic-modules.json +1 -0
- package/dist/esm/components/Alert/Alert.d.ts +3 -3
- package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
- package/dist/esm/components/Alert/Alert.js +31 -5
- package/dist/esm/components/Alert/Alert.js.map +1 -1
- package/dist/esm/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
- package/dist/esm/components/Alert/AlertActionCloseButton.js +18 -1
- package/dist/esm/components/Alert/AlertActionCloseButton.js.map +1 -1
- package/dist/esm/components/Alert/AlertGroup.d.ts +4 -0
- package/dist/esm/components/Alert/AlertGroup.d.ts.map +1 -1
- package/dist/esm/components/Alert/AlertGroup.js +3 -3
- package/dist/esm/components/Alert/AlertGroup.js.map +1 -1
- package/dist/esm/components/Alert/AlertGroupContext.d.ts +8 -0
- package/dist/esm/components/Alert/AlertGroupContext.d.ts.map +1 -0
- package/dist/esm/components/Alert/AlertGroupContext.js +6 -0
- package/dist/esm/components/Alert/AlertGroupContext.js.map +1 -0
- package/dist/esm/components/Alert/AlertGroupInline.d.ts.map +1 -1
- package/dist/esm/components/Alert/AlertGroupInline.js +28 -6
- package/dist/esm/components/Alert/AlertGroupInline.js.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts +2 -2
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/esm/components/Card/Card.d.ts +2 -2
- package/dist/esm/components/Card/Card.d.ts.map +1 -1
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.d.ts +2 -0
- package/dist/esm/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/esm/components/Card/CardHeader.js +2 -2
- package/dist/esm/components/Card/CardHeader.js.map +1 -1
- package/dist/esm/components/Card/CardTitle.d.ts +2 -2
- package/dist/esm/components/Card/CardTitle.d.ts.map +1 -1
- package/dist/esm/components/Card/CardTitle.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts +4 -0
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +15 -9
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts +7 -0
- package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
- package/dist/esm/components/NotificationBadge/NotificationBadge.js +21 -4
- package/dist/esm/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/esm/components/Page/Page.d.ts.map +1 -1
- package/dist/esm/components/Page/Page.js.map +1 -1
- package/dist/esm/components/Page/PageSection.d.ts +2 -2
- package/dist/esm/components/Page/PageSection.d.ts.map +1 -1
- package/dist/esm/components/Page/PageSection.js.map +1 -1
- package/dist/esm/components/Toolbar/Toolbar.d.ts +3 -0
- package/dist/esm/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/Toolbar.js +3 -2
- package/dist/esm/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/esm/components/Truncate/Truncate.d.ts +6 -2
- package/dist/esm/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/esm/components/Truncate/Truncate.js +4 -3
- package/dist/esm/components/Truncate/Truncate.js.map +1 -1
- package/dist/esm/helpers/resizeObserver.d.ts +2 -2
- package/dist/esm/helpers/resizeObserver.js +2 -2
- package/dist/js/components/Alert/Alert.d.ts +3 -3
- package/dist/js/components/Alert/Alert.d.ts.map +1 -1
- package/dist/js/components/Alert/Alert.js +30 -4
- package/dist/js/components/Alert/Alert.js.map +1 -1
- package/dist/js/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
- package/dist/js/components/Alert/AlertActionCloseButton.js +18 -1
- package/dist/js/components/Alert/AlertActionCloseButton.js.map +1 -1
- package/dist/js/components/Alert/AlertGroup.d.ts +4 -0
- package/dist/js/components/Alert/AlertGroup.d.ts.map +1 -1
- package/dist/js/components/Alert/AlertGroup.js +3 -3
- package/dist/js/components/Alert/AlertGroup.js.map +1 -1
- package/dist/js/components/Alert/AlertGroupContext.d.ts +8 -0
- package/dist/js/components/Alert/AlertGroupContext.d.ts.map +1 -0
- package/dist/js/components/Alert/AlertGroupContext.js +9 -0
- package/dist/js/components/Alert/AlertGroupContext.js.map +1 -0
- package/dist/js/components/Alert/AlertGroupInline.d.ts.map +1 -1
- package/dist/js/components/Alert/AlertGroupInline.js +27 -5
- package/dist/js/components/Alert/AlertGroupInline.js.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts +2 -2
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/js/components/Card/Card.d.ts +2 -2
- package/dist/js/components/Card/Card.d.ts.map +1 -1
- package/dist/js/components/Card/Card.js.map +1 -1
- package/dist/js/components/Card/CardHeader.d.ts +2 -0
- package/dist/js/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/js/components/Card/CardHeader.js +2 -2
- package/dist/js/components/Card/CardHeader.js.map +1 -1
- package/dist/js/components/Card/CardTitle.d.ts +2 -2
- package/dist/js/components/Card/CardTitle.d.ts.map +1 -1
- package/dist/js/components/Card/CardTitle.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +4 -0
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js +14 -8
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/js/components/NotificationBadge/NotificationBadge.d.ts +7 -0
- package/dist/js/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
- package/dist/js/components/NotificationBadge/NotificationBadge.js +21 -4
- package/dist/js/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/js/components/Page/Page.d.ts.map +1 -1
- package/dist/js/components/Page/Page.js.map +1 -1
- package/dist/js/components/Page/PageSection.d.ts +2 -2
- package/dist/js/components/Page/PageSection.d.ts.map +1 -1
- package/dist/js/components/Page/PageSection.js.map +1 -1
- package/dist/js/components/Toolbar/Toolbar.d.ts +3 -0
- package/dist/js/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/js/components/Toolbar/Toolbar.js +3 -2
- package/dist/js/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/js/components/Truncate/Truncate.d.ts +6 -2
- package/dist/js/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/js/components/Truncate/Truncate.js +4 -3
- package/dist/js/components/Truncate/Truncate.js.map +1 -1
- package/dist/js/helpers/resizeObserver.d.ts +2 -2
- package/dist/js/helpers/resizeObserver.js +2 -2
- package/dist/umd/assets/{output-CL2wZaU8.css → output-DwKAaf_N.css} +19297 -19158
- 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/Accordion/examples/Accordion.md +1 -0
- package/src/components/Accordion/examples/AccordionBordered.tsx +3 -2
- package/src/components/Accordion/examples/AccordionDefinitionList.tsx +2 -1
- package/src/components/Accordion/examples/AccordionFixedWithMultipleExpandBehavior.tsx +2 -1
- package/src/components/Accordion/examples/AccordionSingleExpandBehavior.tsx +2 -1
- package/src/components/Accordion/examples/AccordionToggleIconAtStart.tsx +2 -1
- package/src/components/ActionList/examples/ActionList.md +1 -1
- package/src/components/ActionList/examples/ActionListSingleGroup.tsx +2 -2
- package/src/components/Alert/Alert.tsx +36 -7
- package/src/components/Alert/AlertActionCloseButton.tsx +34 -14
- package/src/components/Alert/AlertGroup.tsx +6 -0
- package/src/components/Alert/AlertGroupContext.tsx +11 -0
- package/src/components/Alert/AlertGroupInline.tsx +61 -22
- package/src/components/Alert/__tests__/AlertActionCloseButton.test.tsx +20 -2
- package/src/components/Alert/__tests__/AlertGroup.test.tsx +48 -5
- package/src/components/Alert/examples/Alert.md +42 -33
- package/src/components/Alert/examples/AlertAsyncLiveRegion.tsx +5 -5
- package/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +1 -1
- package/src/components/Alert/examples/AlertGroupAsync.tsx +5 -5
- package/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx +3 -3
- package/src/components/Alert/examples/AlertGroupSingularDynamic.tsx +3 -3
- package/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx +4 -4
- package/src/components/Alert/examples/AlertGroupToast.tsx +3 -3
- package/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx +4 -4
- package/src/components/Breadcrumb/examples/Breadcrumb.md +1 -0
- package/src/components/Breadcrumb/examples/BreadcrumbDropdown.tsx +3 -2
- package/src/components/Button/examples/Button.md +1 -1
- package/src/components/Button/examples/ButtonProgress.tsx +5 -4
- package/src/components/CalendarMonth/CalendarMonth.tsx +2 -2
- package/src/components/CalendarMonth/examples/CalendarMonth.md +1 -0
- package/src/components/CalendarMonth/examples/CalendarMonthSelectableDate.tsx +2 -1
- package/src/components/Card/Card.tsx +2 -2
- package/src/components/Card/CardHeader.tsx +9 -1
- package/src/components/Card/CardTitle.tsx +2 -2
- package/src/components/Card/__tests__/Card.test.tsx +1 -3
- package/src/components/Card/__tests__/CardBody.test.tsx +1 -2
- package/src/components/Card/__tests__/CardFooter.test.tsx +1 -2
- package/src/components/Card/__tests__/CardHeader.test.tsx +14 -0
- package/src/components/Card/examples/Card.md +1 -1
- package/src/components/Card/examples/CardClickable.tsx +2 -1
- package/src/components/Card/examples/CardClickableSelectable.tsx +6 -5
- package/src/components/Card/examples/CardExpandable.tsx +5 -5
- package/src/components/Card/examples/CardExpandableWithIcon.tsx +4 -3
- package/src/components/Card/examples/CardHeaderInCardHead.tsx +3 -2
- package/src/components/Card/examples/CardOnlyActionsInCardHead.tsx +3 -2
- package/src/components/Card/examples/CardSelectable.tsx +5 -4
- package/src/components/Card/examples/CardSingleSelectable.tsx +2 -1
- package/src/components/Card/examples/CardTile.tsx +2 -1
- package/src/components/Card/examples/CardTileMulti.tsx +4 -3
- package/src/components/Card/examples/CardWithImageAndActions.tsx +4 -3
- package/src/components/Card/examples/CardWithModifiers.tsx +2 -2
- package/src/components/Checkbox/examples/Checkbox.md +1 -1
- package/src/components/Checkbox/examples/CheckboxControlled.tsx +7 -7
- package/src/components/ClipboardCopy/ClipboardCopy.tsx +35 -12
- package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +187 -1
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +1 -1
- package/src/components/ClipboardCopy/examples/ClipboardCopy.md +7 -0
- package/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactTruncation.tsx +15 -0
- package/src/components/DescriptionList/examples/DescriptionList.md +1 -0
- package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +3 -2
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +3 -2
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +3 -2
- package/src/components/Dropdown/examples/Dropdown.md +1 -0
- package/src/components/Dropdown/examples/DropdownBasic.tsx +2 -1
- package/src/components/Dropdown/examples/DropdownWithDescriptions.tsx +2 -1
- package/src/components/Dropdown/examples/DropdownWithGroups.tsx +2 -1
- package/src/components/Dropdown/examples/DropdownWithKebabToggle.tsx +2 -1
- package/src/components/EmptyState/examples/EmptyState.md +2 -0
- package/src/components/EmptyState/examples/EmptyStateWithStatus.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionBasic.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionCustomToggle.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionDetached.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionDisclosure.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionTruncateExpansion.tsx +2 -1
- package/src/components/FileUpload/examples/FileUpload.md +1 -0
- package/src/components/FileUpload/examples/FileUploadCustomPreview.tsx +3 -2
- package/src/components/FileUpload/examples/FileUploadCustomUpload.tsx +12 -11
- package/src/components/FileUpload/examples/FileUploadSimpleFile.tsx +3 -2
- package/src/components/FileUpload/examples/FileUploadSimpleText.tsx +4 -3
- package/src/components/FileUpload/examples/FileUploadTextWithEdits.tsx +4 -3
- package/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx +6 -5
- package/src/components/FileUpload/examples/FileUploadWithHelperText.tsx +4 -3
- package/src/components/FormSelect/examples/FormSelect.md +1 -0
- package/src/components/FormSelect/examples/FormSelectBasic.tsx +2 -1
- package/src/components/FormSelect/examples/FormSelectDisabled.tsx +2 -1
- package/src/components/FormSelect/examples/FormSelectGrouped.tsx +2 -1
- package/src/components/FormSelect/examples/FormSelectValidated.tsx +4 -3
- package/src/components/Hint/examples/Hint.md +1 -1
- package/src/components/Hint/examples/HintActionsWithNoOffset.tsx +2 -1
- package/src/components/Hint/examples/HintBasicWithTitle.tsx +2 -1
- package/src/components/Hint/examples/HintBasicWithoutTitle.tsx +2 -2
- package/src/components/Icon/examples/Icon.md +1 -1
- package/src/components/Icon/examples/IconCustomProgress.tsx +2 -2
- package/src/components/Icon/examples/IconProgress.tsx +2 -2
- package/src/components/InputGroup/examples/InputGroup.md +1 -1
- package/src/components/InputGroup/examples/InputGroupWithDropdown.tsx +2 -2
- package/src/components/InputGroup/examples/InputGroupWithPopover.tsx +3 -3
- package/src/components/Label/examples/Label.md +1 -1
- package/src/components/Label/examples/LabelEditable.tsx +3 -3
- package/src/components/Label/examples/LabelGroupCategoryRemovable.tsx +2 -1
- package/src/components/Label/examples/LabelGroupEditableAdd.tsx +3 -2
- package/src/components/Label/examples/LabelGroupEditableAddDropdown.tsx +8 -7
- package/src/components/Label/examples/LabelGroupEditableAddModal.tsx +21 -20
- package/src/components/Label/examples/LabelGroupEditableLabels.tsx +4 -3
- package/src/components/Label/examples/LabelGroupVerticalCategoryOverflowRemovable.tsx +2 -1
- package/src/components/LoginPage/examples/LoginPage.md +1 -1
- package/src/components/LoginPage/examples/LoginPageBasic.tsx +7 -7
- package/src/components/LoginPage/examples/LoginPageLanguageSelect.tsx +9 -9
- package/src/components/LoginPage/examples/LoginPageShowHidePassword.tsx +7 -7
- package/src/components/Menu/examples/Menu.md +1 -1
- package/src/components/Menu/examples/MenuBasic.tsx +3 -3
- package/src/components/Menu/examples/MenuDangerMenuItem.tsx +2 -1
- package/src/components/Menu/examples/MenuFilterDrilldown.tsx +7 -6
- package/src/components/Menu/examples/MenuFilteringWithSearchInput.tsx +3 -2
- package/src/components/Menu/examples/MenuOptionMultiSelect.tsx +2 -1
- package/src/components/Menu/examples/MenuOptionSingleSelect.tsx +3 -2
- package/src/components/Menu/examples/MenuScrollable.tsx +2 -1
- package/src/components/Menu/examples/MenuScrollableCustomMenuHeight.tsx +2 -1
- package/src/components/Menu/examples/MenuWithActions.tsx +2 -1
- package/src/components/Menu/examples/MenuWithCheckbox.tsx +2 -1
- package/src/components/Menu/examples/MenuWithDescription.tsx +2 -1
- package/src/components/Menu/examples/MenuWithDrilldown.tsx +5 -4
- package/src/components/Menu/examples/MenuWithDrilldownBreadcrumbs.tsx +3 -3
- package/src/components/Menu/examples/MenuWithDrilldownInitialState.tsx +5 -4
- package/src/components/Menu/examples/MenuWithDrilldownSubmenuFunctions.tsx +5 -4
- package/src/components/Menu/examples/MenuWithFavorites.tsx +3 -3
- package/src/components/Menu/examples/MenuWithFooter.tsx +2 -1
- package/src/components/Menu/examples/MenuWithIcons.tsx +2 -1
- package/src/components/Menu/examples/MenuWithLinks.tsx +2 -1
- package/src/components/Menu/examples/MenuWithSeparators.tsx +2 -1
- package/src/components/Menu/examples/MenuWithTitledGroups.tsx +2 -1
- package/src/components/Menu/examples/MenuWithViewMore.tsx +9 -8
- package/src/components/MenuToggle/examples/MenuToggle.md +19 -13
- package/src/components/MenuToggle/examples/MenuToggleTypeahead.tsx +2 -1
- package/src/components/Modal/examples/Modal.md +1 -1
- package/src/components/Modal/examples/ModalBasic.tsx +2 -2
- package/src/components/Modal/examples/ModalCustomFocus.tsx +2 -2
- package/src/components/Modal/examples/ModalCustomHeader.tsx +2 -2
- package/src/components/Modal/examples/ModalCustomTitleIcon.tsx +2 -2
- package/src/components/Modal/examples/ModalCustomWidth.tsx +2 -2
- package/src/components/Modal/examples/ModalNoHeaderFooter.tsx +2 -2
- package/src/components/Modal/examples/ModalSize.tsx +3 -3
- package/src/components/Modal/examples/ModalTitleIcon.tsx +2 -2
- package/src/components/Modal/examples/ModalTopAligned.tsx +2 -2
- package/src/components/Modal/examples/ModalWithDescription.tsx +2 -2
- package/src/components/Modal/examples/ModalWithDropdown.tsx +3 -3
- package/src/components/Modal/examples/ModalWithForm.tsx +8 -8
- package/src/components/Modal/examples/ModalWithHelp.tsx +2 -2
- package/src/components/Modal/examples/ModalWithOverflowingContent.tsx +2 -2
- package/src/components/Modal/examples/ModalWithWizard.tsx +2 -2
- package/src/components/MultipleFileUpload/examples/MultipleFileUpload.md +1 -0
- package/src/components/MultipleFileUpload/examples/MultipleFileUploadBasic.tsx +8 -7
- package/src/components/Nav/examples/Nav.md +1 -0
- package/src/components/Nav/examples/NavDefault.tsx +2 -1
- package/src/components/Nav/examples/NavDrilldown.tsx +2 -4
- package/src/components/Nav/examples/NavExpandable.tsx +3 -2
- package/src/components/Nav/examples/NavExpandableThirdLevel.tsx +3 -2
- package/src/components/Nav/examples/NavFlyout.tsx +2 -1
- package/src/components/Nav/examples/NavGrouped.tsx +2 -1
- package/src/components/Nav/examples/NavHorizontalNav.tsx +2 -1
- package/src/components/Nav/examples/NavHorizontalSubNav.tsx +2 -1
- package/src/components/Nav/examples/NavIcons.tsx +2 -1
- package/src/components/Nav/examples/NavMixed.tsx +3 -2
- package/src/components/NotificationBadge/NotificationBadge.tsx +34 -6
- package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +18 -3
- package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +34 -0
- package/src/components/NotificationBadge/examples/NotificationBadge.md +9 -1
- package/src/components/NotificationBadge/examples/NotificationBadgeBasic.tsx +4 -3
- package/src/components/NotificationBadge/examples/NotificationBadgeWithAnimation.tsx +48 -0
- package/src/components/NotificationBadge/examples/NotificationBadgeWithCount.tsx +4 -3
- package/src/components/NotificationDrawer/examples/NotificationDrawer.md +1 -0
- package/src/components/NotificationDrawer/examples/NotificationDrawerBasic.tsx +2 -1
- package/src/components/NotificationDrawer/examples/NotificationDrawerGroups.tsx +5 -4
- package/src/components/NotificationDrawer/examples/NotificationDrawerLightweight.tsx +4 -3
- package/src/components/NumberInput/examples/NumberInput.md +1 -1
- package/src/components/NumberInput/examples/NumberInputCustomStep.tsx +2 -1
- package/src/components/NumberInput/examples/NumberInputCustomStepAndThreshold.tsx +2 -1
- package/src/components/NumberInput/examples/NumberInputDefault.tsx +2 -1
- package/src/components/NumberInput/examples/NumberInputDisabled.tsx +2 -1
- package/src/components/NumberInput/examples/NumberInputUnit.tsx +3 -3
- package/src/components/NumberInput/examples/NumberInputUnitThreshold.tsx +2 -2
- package/src/components/NumberInput/examples/NumberInputVaryingSizes.tsx +5 -5
- package/src/components/NumberInput/examples/NumberInputWithStatus.tsx +3 -2
- package/src/components/OverflowMenu/examples/OverflowMenu.md +1 -0
- package/src/components/OverflowMenu/examples/OverflowMenuBreakpointOnContainer.tsx +4 -3
- package/src/components/OverflowMenu/examples/OverflowMenuGroupTypes.tsx +2 -1
- package/src/components/OverflowMenu/examples/OverflowMenuMultiGroup.tsx +2 -1
- package/src/components/OverflowMenu/examples/OverflowMenuPersistent.tsx +2 -1
- package/src/components/OverflowMenu/examples/OverflowMenuSimple.tsx +2 -1
- package/src/components/Page/Page.tsx +2 -2
- package/src/components/Page/PageSection.tsx +2 -2
- package/src/components/Page/examples/Page.md +1 -0
- package/src/components/Page/examples/PageCenteredSection.tsx +2 -1
- package/src/components/Page/examples/PageGroupSection.tsx +2 -1
- package/src/components/Page/examples/PageMainSectionPadding.tsx +2 -1
- package/src/components/Page/examples/PageMainSectionVariations.tsx +2 -1
- package/src/components/Page/examples/PageMultipleSidebarBody.tsx +2 -1
- package/src/components/Page/examples/PageVerticalNav.tsx +2 -1
- package/src/components/Page/examples/PageWithOrWithoutFill.tsx +2 -1
- package/src/components/Pagination/examples/Pagination.md +1 -1
- package/src/components/Pagination/examples/PaginationBottom.tsx +3 -2
- package/src/components/Pagination/examples/PaginationCompact.tsx +3 -2
- package/src/components/Pagination/examples/PaginationDisabled.tsx +3 -2
- package/src/components/Pagination/examples/PaginationIndeterminate.tsx +3 -3
- package/src/components/Pagination/examples/PaginationInset.tsx +3 -2
- package/src/components/Pagination/examples/PaginationNoItems.tsx +3 -2
- package/src/components/Pagination/examples/PaginationOffset.tsx +3 -2
- package/src/components/Pagination/examples/PaginationOnePage.tsx +3 -2
- package/src/components/Pagination/examples/PaginationSticky.tsx +4 -4
- package/src/components/Pagination/examples/PaginationTop.tsx +3 -2
- package/src/components/Popover/examples/Popover.md +1 -0
- package/src/components/Popover/examples/PopoverAdvanced.tsx +4 -3
- package/src/components/Popover/examples/PopoverAlert.tsx +2 -1
- package/src/components/Popover/examples/PopoverCloseControlled.tsx +2 -1
- package/src/components/Popover/examples/PopoverReactRef.tsx +2 -1
- package/src/components/Progress/examples/Progress.md +2 -0
- package/src/components/Progress/examples/ProgressHelperText.tsx +2 -1
- package/src/components/ProgressStepper/examples/ProgressStepper.md +1 -1
- package/src/components/ProgressStepper/examples/ProgressStepperBasicWithAlignment.tsx +3 -3
- package/src/components/ProgressStepper/examples/ProgressStepperCompact.tsx +3 -3
- package/src/components/Radio/examples/Radio.md +1 -1
- package/src/components/Radio/examples/RadioControlled.tsx +2 -2
- package/src/components/SearchInput/examples/SearchInput.md +1 -0
- package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +4 -3
- package/src/components/SearchInput/examples/SearchInputBasic.tsx +2 -1
- package/src/components/SearchInput/examples/SearchInputFocusSearch.tsx +3 -2
- package/src/components/SearchInput/examples/SearchInputWithExpandable.tsx +3 -2
- package/src/components/SearchInput/examples/SearchInputWithNavigableOptions.tsx +4 -3
- package/src/components/SearchInput/examples/SearchInputWithResultCount.tsx +3 -2
- package/src/components/SearchInput/examples/SearchInputWithSubmitButton.tsx +2 -1
- package/src/components/Select/examples/Select.md +1 -1
- package/src/components/Select/examples/SelectBasic.tsx +4 -4
- package/src/components/Select/examples/SelectCheckbox.tsx +3 -2
- package/src/components/Select/examples/SelectFooter.tsx +3 -2
- package/src/components/Select/examples/SelectGrouped.tsx +3 -2
- package/src/components/Select/examples/SelectMultiTypeahead.tsx +9 -8
- package/src/components/Select/examples/SelectMultiTypeaheadCheckbox.tsx +11 -10
- package/src/components/Select/examples/SelectMultiTypeaheadCreatable.tsx +10 -9
- package/src/components/Select/examples/SelectOptionVariations.tsx +3 -2
- package/src/components/Select/examples/SelectTypeahead.tsx +10 -9
- package/src/components/Select/examples/SelectTypeaheadCreatable.tsx +10 -9
- package/src/components/Select/examples/SelectValidated.tsx +4 -4
- package/src/components/Select/examples/SelectViewMore.tsx +12 -11
- package/src/components/SimpleList/examples/SimpleList.md +1 -0
- package/src/components/SimpleList/examples/SimpleListUncontrolled.tsx +2 -1
- package/src/components/Slider/examples/Slider.md +1 -0
- package/src/components/Slider/examples/SliderActions.tsx +5 -4
- package/src/components/Slider/examples/SliderContinuous.tsx +4 -3
- package/src/components/Slider/examples/SliderDisabled.tsx +2 -1
- package/src/components/Slider/examples/SliderDiscrete.tsx +2 -1
- package/src/components/Slider/examples/SliderThumbValueInput.tsx +3 -2
- package/src/components/Slider/examples/SliderValueInput.tsx +7 -6
- package/src/components/Switch/examples/Switch.md +1 -1
- package/src/components/Switch/examples/SwitchBasic.tsx +2 -1
- package/src/components/Switch/examples/SwitchCheckedWithLabel.tsx +2 -1
- package/src/components/Switch/examples/SwitchReversed.tsx +2 -1
- package/src/components/Switch/examples/SwitchWithoutLabel.tsx +2 -1
- package/src/components/Tabs/examples/Tabs.md +2 -2
- package/src/components/Tabs/examples/TabsBoxSecondary.tsx +3 -2
- package/src/components/Tabs/examples/TabsChildrenMounting.tsx +2 -1
- package/src/components/Tabs/examples/TabsContentWithBodyPadding.tsx +5 -5
- package/src/components/Tabs/examples/TabsDefault.tsx +3 -2
- package/src/components/Tabs/examples/TabsDefaultOverflow.tsx +3 -2
- package/src/components/Tabs/examples/TabsDynamic.tsx +7 -6
- package/src/components/Tabs/examples/TabsFilled.tsx +3 -2
- package/src/components/Tabs/examples/TabsFilledWithIcons.tsx +3 -2
- package/src/components/Tabs/examples/TabsHelp.tsx +3 -2
- package/src/components/Tabs/examples/TabsHelpAndClose.tsx +7 -6
- package/src/components/Tabs/examples/TabsHorizontalOverflow.tsx +3 -2
- package/src/components/Tabs/examples/TabsIconAndText.tsx +2 -1
- package/src/components/Tabs/examples/TabsInset.tsx +3 -2
- package/src/components/Tabs/examples/TabsNav.tsx +2 -1
- package/src/components/Tabs/examples/TabsNavSubtab.tsx +3 -2
- package/src/components/Tabs/examples/TabsPageInsets.tsx +3 -2
- package/src/components/Tabs/examples/TabsSeparateContent.tsx +5 -5
- package/src/components/Tabs/examples/TabsSubtabs.tsx +4 -3
- package/src/components/Tabs/examples/TabsToggledSeparateContent.tsx +6 -6
- package/src/components/Tabs/examples/TabsTooltipReactRef.tsx +4 -3
- package/src/components/Tabs/examples/TabsUnmountingInvisibleChildren.tsx +2 -1
- package/src/components/Tabs/examples/TabsVertical.tsx +3 -2
- package/src/components/Tabs/examples/TabsVerticalExpandable.tsx +3 -2
- package/src/components/Tabs/examples/TabsVerticalExpandableUncontrolled.tsx +2 -1
- package/src/components/TextArea/examples/TextArea.md +1 -1
- package/src/components/TextArea/examples/TextAreaAutoResizing.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaBasic.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaHorizontallyResizable.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaInvalid.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaReadOnly.tsx +2 -2
- package/src/components/TextArea/examples/TextAreaResizableNone.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaValidated.tsx +5 -4
- package/src/components/TextArea/examples/TextAreaVerticallyResizable.tsx +2 -1
- package/src/components/TextInput/examples/TextInput.md +1 -0
- package/src/components/TextInput/examples/TextInputBasic.tsx +2 -1
- package/src/components/TextInput/examples/TextInputCustomIcon.tsx +3 -2
- package/src/components/TextInput/examples/TextInputCustomIconInvalid.tsx +2 -1
- package/src/components/TextInput/examples/TextInputInvalid.tsx +2 -1
- package/src/components/TextInput/examples/TextInputReadOnly.tsx +2 -1
- package/src/components/TextInput/examples/TextInputSelectUsingRef.tsx +3 -2
- package/src/components/TextInput/examples/TextInputStartTruncated.tsx +2 -1
- package/src/components/TextInputGroup/examples/TextInputGroup.md +1 -0
- package/src/components/TextInputGroup/examples/TextInputGroupBasic.tsx +2 -1
- package/src/components/TextInputGroup/examples/TextInputGroupFilters.tsx +3 -2
- package/src/components/TextInputGroup/examples/TextInputGroupUtilitiesAndIcon.tsx +2 -1
- package/src/components/TextInputGroup/examples/TextInputGroupWithStatus.tsx +4 -5
- package/src/components/ToggleGroup/examples/ToggleGroup.md +1 -0
- package/src/components/ToggleGroup/examples/ToggleGroupCompact.tsx +2 -1
- package/src/components/ToggleGroup/examples/ToggleGroupDefaultMultiple.tsx +3 -2
- package/src/components/ToggleGroup/examples/ToggleGroupDefaultSingle.tsx +2 -1
- package/src/components/ToggleGroup/examples/ToggleGroupIcon.tsx +2 -1
- package/src/components/ToggleGroup/examples/ToggleGroupTextIcon.tsx +2 -1
- package/src/components/Toolbar/Toolbar.tsx +5 -0
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +29 -0
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +1 -1
- package/src/components/Toolbar/examples/Toolbar.md +1 -1
- package/src/components/Toolbar/examples/ToolbarComponentManagedToggleGroups.tsx +6 -6
- package/src/components/Toolbar/examples/ToolbarConsumerManagedToggleGroups.tsx +7 -7
- package/src/components/Toolbar/examples/ToolbarCustomLabelGroupContent.tsx +4 -4
- package/src/components/Toolbar/examples/ToolbarGroups.tsx +7 -7
- package/src/components/Toolbar/examples/ToolbarStacked.tsx +9 -9
- package/src/components/Toolbar/examples/ToolbarSticky.tsx +3 -3
- package/src/components/Toolbar/examples/ToolbarWithFilters.tsx +6 -6
- package/src/components/Tooltip/examples/Tooltip.md +1 -0
- package/src/components/Tooltip/examples/TooltipIcon.tsx +2 -1
- package/src/components/Tooltip/examples/TooltipOptions.tsx +14 -13
- package/src/components/Tooltip/examples/TooltipReactRef.tsx +2 -1
- package/src/components/TreeView/examples/TreeView.md +1 -1
- package/src/components/TreeView/examples/TreeViewMultiselectable.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewSelectionExpansion.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewSingleSelectable.tsx +3 -3
- package/src/components/TreeView/examples/TreeViewWithActionItems.tsx +3 -2
- package/src/components/TreeView/examples/TreeViewWithBadges.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewWithCheckboxes.tsx +3 -2
- package/src/components/TreeView/examples/TreeViewWithCustomBadges.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewWithIconPerItem.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewWithIcons.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewWithMemoization.tsx +3 -3
- package/src/components/TreeView/examples/TreeViewWithSearch.tsx +4 -3
- package/src/components/Truncate/Truncate.tsx +12 -3
- package/src/components/Wizard/examples/Wizard.md +1 -0
- package/src/components/Wizard/examples/WizardEnabledOnFormValidation.tsx +3 -2
- package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +2 -1
- package/src/components/Wizard/examples/WizardStepDrawerContent.tsx +3 -2
- package/src/components/Wizard/examples/WizardStepStatus.tsx +5 -4
- package/src/components/Wizard/examples/WizardToggleStepVisibility.tsx +4 -3
- package/src/components/Wizard/examples/WizardValidateOnButtonPress.tsx +8 -7
- package/src/components/Wizard/examples/WizardWithCustomFooter.tsx +3 -2
- package/src/components/Wizard/examples/WizardWithSubmitProgress.tsx +5 -4
- package/src/components/Wizard/examples/WizardWithinModal.tsx +2 -1
- package/src/demos/AlertGroup.md +1 -1
- package/src/demos/BackToTop.md +1 -0
- package/src/demos/Button.md +3 -1
- package/src/demos/CustomMenus/ApplicationLauncher.md +2 -0
- package/src/demos/CustomMenus/ContextSelector.md +1 -0
- package/src/demos/CustomMenus/CustomMenus.md +2 -0
- package/src/demos/CustomMenus/OptionsMenu.md +1 -0
- package/src/demos/CustomMenus/examples/ActionsMenuDemo.tsx +4 -3
- package/src/demos/CustomMenus/examples/ApplicationLauncherDemo.tsx +9 -9
- package/src/demos/CustomMenus/examples/ContextSelectorDemo.tsx +7 -6
- package/src/demos/CustomMenus/examples/DateSelectDemo.tsx +4 -3
- package/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx +8 -7
- package/src/demos/CustomMenus/examples/FavoritesDemo.tsx +2 -2
- package/src/demos/CustomMenus/examples/FlyoutDemo.tsx +4 -3
- package/src/demos/CustomMenus/examples/InlineSearchFilterMenuDemo.tsx +6 -5
- package/src/demos/CustomMenus/examples/OptionsMenuDemo.tsx +4 -3
- package/src/demos/CustomMenus/examples/TreeViewMenuDemo.tsx +5 -4
- package/src/demos/DataList/examples/DataListActionable.tsx +3 -2
- package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +6 -6
- package/src/demos/DataList/examples/DataListStaticBottomPagination.tsx +4 -4
- package/src/demos/DataListDemo.md +2 -0
- package/src/demos/DatePicker/DatePicker.md +3 -2
- package/src/demos/DateTimePicker.md +4 -2
- package/src/demos/DescriptionList/DescriptionList.md +1 -0
- package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +4 -3
- package/src/demos/ExpandableSection/ExpandableSection.md +2 -0
- package/src/demos/ExpandableSection/examples/ExpandableTextDemo.tsx +2 -1
- package/src/demos/Filters/FilterDemos.md +1 -1
- package/src/demos/Filters/examples/FilterAttributeSearch.tsx +29 -29
- package/src/demos/Filters/examples/FilterCheckboxSelect.tsx +16 -16
- package/src/demos/Filters/examples/FilterFaceted.tsx +17 -17
- package/src/demos/Filters/examples/FilterMixedSelectGroup.tsx +22 -22
- package/src/demos/Filters/examples/FilterSameSelectGroup.tsx +22 -22
- package/src/demos/Filters/examples/FilterSearchInput.tsx +11 -11
- package/src/demos/Filters/examples/FilterSingleSelect.tsx +17 -17
- package/src/demos/HelperText.md +1 -0
- package/src/demos/JumpLinks.md +5 -3
- package/src/demos/LabelGroupDemos.md +1 -0
- package/src/demos/Masthead.md +1 -0
- package/src/demos/MultipleFileUploadDemos.md +1 -1
- package/src/demos/Nav.md +1 -0
- package/src/demos/NotificationDrawer/NotificationDrawer.md +2 -0
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +10 -13
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +13 -16
- package/src/demos/Page.md +1 -0
- package/src/demos/PasswordGenerator.md +9 -7
- package/src/demos/PasswordStrength.md +1 -0
- package/src/demos/PrimaryDetail.md +1 -0
- package/src/demos/ProgressDemo.md +5 -3
- package/src/demos/ProgressStepperDemo.md +3 -1
- package/src/demos/RTL/RTL.md +1 -0
- package/src/demos/RTL/examples/PaginatedTable.jsx +16 -15
- package/src/demos/SearchInput/SearchInput.md +24 -22
- package/src/demos/Tabs.md +6 -3
- package/src/demos/TextInputGroupDemo.md +1 -0
- package/src/demos/Toolbar.md +1 -0
- package/src/demos/Wizard/WizardDemo.md +2 -0
- package/src/demos/examples/Card/CardAggregateStatus.tsx +2 -2
- package/src/demos/examples/Card/CardEventsView.tsx +2 -2
- package/src/demos/examples/Card/CardHorizontalGrid.tsx +3 -2
- package/src/demos/examples/Card/CardLogView.tsx +2 -2
- package/src/demos/examples/Card/CardNested.tsx +5 -4
- package/src/demos/examples/Card/CardStatus.tsx +3 -2
- package/src/demos/examples/Card/CardStatusTabbed.tsx +2 -1
- package/src/demos/examples/Card/CardWithAccordion.tsx +2 -1
- package/src/demos/examples/DateTimePicker/DateTimePicker.tsx +5 -4
- package/src/demos/examples/HelperText/HelperTextDynamic.tsx +4 -3
- package/src/demos/examples/HelperText/HelperTextStatic.tsx +2 -1
- package/src/demos/examples/HelperText/HelperTextStaticTextDynamicVariant.tsx +4 -3
- package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +9 -8
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +16 -16
- package/src/demos/examples/MultipleFileUpload/MultipleFileUploadRejectedFile.tsx +8 -7
- package/src/demos/examples/Nav/NavDrilldown.tsx +3 -3
- package/src/demos/examples/Nav/NavExpandable.tsx +3 -3
- package/src/demos/examples/Nav/NavFlyout.tsx +8 -7
- package/src/demos/examples/Nav/NavGrouped.tsx +2 -1
- package/src/demos/examples/Nav/NavHorizontal.tsx +5 -5
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +6 -6
- package/src/demos/examples/Nav/NavManual.tsx +8 -8
- package/src/demos/examples/Nav/NavWithSubnav.tsx +3 -3
- package/src/demos/examples/Page/PageContextSelector.tsx +7 -6
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +5 -4
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +5 -4
- package/src/demos/examples/PasswordStrength/PasswordStrengthDemo.tsx +2 -2
- package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +15 -15
- package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +9 -9
- package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +5 -5
- package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +9 -9
- package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +9 -9
- package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +3 -3
- package/src/demos/examples/Tabs/ModalTabs.tsx +7 -7
- package/src/demos/examples/Tabs/NestedTabs.tsx +3 -2
- package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +3 -2
- package/src/demos/examples/Tabs/TabsAndTable.tsx +5 -5
- package/src/demos/examples/TextInputGroup/AttributeValueFiltering.tsx +10 -9
- package/src/demos/examples/TextInputGroup/AutoCompleteSearch.tsx +9 -8
- package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +17 -17
- package/src/demos/examples/Wizard/InModalWithDrawer.tsx +3 -2
- package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +3 -2
- package/src/demos/examples/Wizard/InPageWithDrawer.tsx +4 -4
- package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +4 -4
- package/src/deprecated/components/Chip/examples/Chip.md +1 -1
- package/src/deprecated/components/Chip/examples/ChipDefault.tsx +2 -2
- package/src/deprecated/components/Chip/examples/ChipGroupInline.tsx +2 -1
- package/src/deprecated/components/Chip/examples/ChipGroupRemovableCategories.tsx +3 -3
- package/src/deprecated/components/Chip/examples/ChipGroupWithCategories.tsx +2 -1
- package/src/deprecated/components/DragDrop/examples/DragDrop.md +1 -0
- package/src/deprecated/components/DragDrop/examples/DragDropBasic.tsx +2 -1
- package/src/deprecated/components/DragDrop/examples/DragDropMultipleLists.tsx +2 -1
- package/src/deprecated/components/Modal/examples/Modal.md +1 -1
- package/src/deprecated/components/Modal/examples/ModalBasic.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalCustomFocus.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalCustomHeaderFooter.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalCustomTitleIcon.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalCustomWidth.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalLarge.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalMedium.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalNoHeaderFooter.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalSmall.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalTitleIcon.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalTopAligned.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalWithDescription.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalWithDropdown.tsx +3 -3
- package/src/deprecated/components/Modal/examples/ModalWithForm.tsx +8 -8
- package/src/deprecated/components/Modal/examples/ModalWithHelp.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalWithOverflowingContent.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalWithWizard.tsx +2 -2
- package/src/deprecated/components/Tile/examples/Tile.md +5 -2
- package/src/deprecated/components/Wizard/examples/Wizard.md +1 -1
- package/src/deprecated/components/Wizard/examples/WizardEnabledOnFormValidation.tsx +8 -7
- package/src/deprecated/components/Wizard/examples/WizardFinished.tsx +3 -2
- package/src/deprecated/components/Wizard/examples/WizardInModal.tsx +2 -2
- package/src/deprecated/components/Wizard/examples/WizardIncrementallyEnabledSteps.tsx +2 -1
- package/src/deprecated/components/Wizard/examples/WizardValidateOnButtonPress.tsx +9 -8
- package/src/deprecated/components/Wizard/examples/WizardWithDrawer.tsx +3 -3
- package/src/helpers/resizeObserver.tsx +2 -2
- package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +1 -2
|
@@ -18,7 +18,7 @@ exports[`Matches snapshot 1`] = `
|
|
|
18
18
|
<input
|
|
19
19
|
aria-invalid="false"
|
|
20
20
|
aria-label="Copyable input"
|
|
21
|
-
data-ouia-component-id="OUIA-Generated-TextInputBase-
|
|
21
|
+
data-ouia-component-id="OUIA-Generated-TextInputBase-34"
|
|
22
22
|
data-ouia-component-type="PF6/TextInput"
|
|
23
23
|
data-ouia-safe="true"
|
|
24
24
|
id="text-input-generated-id"
|
|
@@ -65,3 +65,10 @@ import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
|
|
|
65
65
|
|
|
66
66
|
```ts file="./ClipboardCopyInlineCompactInSentence.tsx"
|
|
67
67
|
```
|
|
68
|
+
|
|
69
|
+
### Inline compact with truncation
|
|
70
|
+
|
|
71
|
+
You can control the truncation for an `inline-compact` variant by passing the `truncation` property. The following example shows the different ways to use the property: passing a boolean will apply default truncation, while passing an object of `TruncateProps` offers more fine-tuned control over the truncation behavior.
|
|
72
|
+
|
|
73
|
+
```ts file="./ClipboardCopyInlineCompactTruncation.tsx"
|
|
74
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClipboardCopy } from '@patternfly/react-core';
|
|
2
|
+
export const ClipboardCopyInlineCompactTruncation: React.FunctionComponent = () => (
|
|
3
|
+
<>
|
|
4
|
+
<ClipboardCopy truncation hoverTip="Copy" clickTip="Copied" variant="inline-compact">
|
|
5
|
+
This lengthy, copyable content will be truncated with default settings when the truncation prop is simply set to
|
|
6
|
+
true. This is useful for quickly applying truncation without needing to worry about any other properties to set.
|
|
7
|
+
</ClipboardCopy>
|
|
8
|
+
<br />
|
|
9
|
+
<br />
|
|
10
|
+
<ClipboardCopy truncation={{ position: 'start' }} hoverTip="Copy" clickTip="Copied" variant="inline-compact">
|
|
11
|
+
This lengthy, copyable content will be truncated with customized settings when the truncation prop is passed an
|
|
12
|
+
object containing Truncate props. This is useful for finetuning truncation for your particular use-case.
|
|
13
|
+
</ClipboardCopy>
|
|
14
|
+
</>
|
|
15
|
+
);
|
|
@@ -15,6 +15,7 @@ propComponents:
|
|
|
15
15
|
]
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
+
import { useState } from 'react';
|
|
18
19
|
import { Button, DescriptionList, DescriptionListTerm, DescriptionListDescription, DescriptionListGroup, DescriptionListTermHelpText, DescriptionListTermHelpTextButton, Popover, Checkbox, Card } from '@patternfly/react-core';
|
|
19
20
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
20
21
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Button,
|
|
3
4
|
DescriptionList,
|
|
@@ -9,8 +10,8 @@ import {
|
|
|
9
10
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
10
11
|
|
|
11
12
|
export const DescriptionListWithCard: React.FunctionComponent = () => {
|
|
12
|
-
const [isChecked, setIsChecked] =
|
|
13
|
-
const [isSelectable, setSelectable] =
|
|
13
|
+
const [isChecked, setIsChecked] = useState<boolean>(false);
|
|
14
|
+
const [isSelectable, setSelectable] = useState<boolean>(false);
|
|
14
15
|
|
|
15
16
|
const toggleSelectable = (checked: boolean) => {
|
|
16
17
|
setSelectable(checked ? true : false);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Button,
|
|
3
4
|
DescriptionList,
|
|
@@ -9,8 +10,8 @@ import {
|
|
|
9
10
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
10
11
|
|
|
11
12
|
export const DescriptionListWithLargeDisplaySize: React.FunctionComponent = () => {
|
|
12
|
-
const [isChecked, setIsChecked] =
|
|
13
|
-
const [displaySize, setDisplaySize] =
|
|
13
|
+
const [isChecked, setIsChecked] = useState<boolean>(false);
|
|
14
|
+
const [displaySize, setDisplaySize] = useState<'lg' | '2xl'>('lg');
|
|
14
15
|
|
|
15
16
|
const toggleDisplaySize = (checked: boolean) => {
|
|
16
17
|
setDisplaySize(checked ? '2xl' : 'lg');
|
package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Button,
|
|
3
4
|
DescriptionList,
|
|
@@ -9,8 +10,8 @@ import {
|
|
|
9
10
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
10
11
|
|
|
11
12
|
export const DescriptionListWithLargeDisplaySizeAndCard: React.FunctionComponent = () => {
|
|
12
|
-
const [isChecked, setIsChecked] =
|
|
13
|
-
const [displaySize, setDisplaySize] =
|
|
13
|
+
const [isChecked, setIsChecked] = useState<boolean>(false);
|
|
14
|
+
const [displaySize, setDisplaySize] = useState<'lg' | '2xl'>('lg');
|
|
14
15
|
|
|
15
16
|
const toggleDisplaySize = (checked: boolean) => {
|
|
16
17
|
setDisplaySize(checked ? '2xl' : 'lg');
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { Dropdown, DropdownItem, DropdownList, Divider, MenuToggle, MenuToggleElement } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const DropdownBasic: React.FunctionComponent = () => {
|
|
4
|
-
const [isOpen, setIsOpen] =
|
|
5
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
5
6
|
|
|
6
7
|
const onToggleClick = () => {
|
|
7
8
|
setIsOpen(!isOpen);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { Dropdown, DropdownItem, DropdownList, MenuToggle, MenuToggleElement } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const DropdownWithDescriptions: React.FunctionComponent = () => {
|
|
4
|
-
const [isOpen, setIsOpen] =
|
|
5
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
5
6
|
|
|
6
7
|
const onToggleClick = () => {
|
|
7
8
|
setIsOpen(!isOpen);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Dropdown,
|
|
3
4
|
DropdownGroup,
|
|
@@ -9,7 +10,7 @@ import {
|
|
|
9
10
|
} from '@patternfly/react-core';
|
|
10
11
|
|
|
11
12
|
export const DropdownWithGroups: React.FunctionComponent = () => {
|
|
12
|
-
const [isOpen, setIsOpen] =
|
|
13
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
13
14
|
|
|
14
15
|
const onToggleClick = () => {
|
|
15
16
|
setIsOpen(!isOpen);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { Dropdown, DropdownItem, DropdownList, Divider, MenuToggle, MenuToggleElement } from '@patternfly/react-core';
|
|
2
3
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
3
4
|
|
|
4
5
|
export const DropdownWithKebab: React.FunctionComponent = () => {
|
|
5
|
-
const [isOpen, setIsOpen] =
|
|
6
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
6
7
|
|
|
7
8
|
const onToggleClick = () => {
|
|
8
9
|
setIsOpen(!isOpen);
|
|
@@ -4,6 +4,8 @@ section: components
|
|
|
4
4
|
cssPrefix: pf-v6-c-empty-state
|
|
5
5
|
propComponents: ['EmptyState', 'EmptyStateBody', 'EmptyStateFooter', 'EmptyStateActions']
|
|
6
6
|
---
|
|
7
|
+
|
|
8
|
+
import { useState } from 'react';
|
|
7
9
|
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
|
|
8
10
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
9
11
|
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
EmptyState,
|
|
3
4
|
EmptyStateBody,
|
|
@@ -8,7 +9,7 @@ import {
|
|
|
8
9
|
} from '@patternfly/react-core';
|
|
9
10
|
|
|
10
11
|
export const EmptyStateWithStatus: React.FunctionComponent = () => {
|
|
11
|
-
const [status, setStatus] =
|
|
12
|
+
const [status, setStatus] = useState<EmptyStateStatus>(EmptyStateStatus.success);
|
|
12
13
|
|
|
13
14
|
const toggleStatus = () => {
|
|
14
15
|
interface StatusToggleMap {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ExpandableSection } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const ExpandableSectionBasic: React.FunctionComponent = () => {
|
|
4
|
-
const [isExpanded, setIsExpanded] =
|
|
5
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
5
6
|
|
|
6
7
|
const onToggle = (_event: React.MouseEvent, isExpanded: boolean) => {
|
|
7
8
|
setIsExpanded(isExpanded);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ExpandableSection, Badge } from '@patternfly/react-core';
|
|
2
3
|
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
3
4
|
|
|
4
5
|
export const ExpandableSectionCustomToggle: React.FunctionComponent = () => {
|
|
5
|
-
const [isExpanded, setIsExpanded] =
|
|
6
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
6
7
|
|
|
7
8
|
const onToggle = (_event: React.MouseEvent, isExpanded: boolean) => {
|
|
8
9
|
setIsExpanded(isExpanded);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ExpandableSection, ExpandableSectionToggle, Stack, StackItem } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const ExpandableSectionDetached: React.FunctionComponent = () => {
|
|
4
|
-
const [isExpanded, setIsExpanded] =
|
|
5
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
5
6
|
|
|
6
7
|
const onToggle = (isExpanded: boolean) => {
|
|
7
8
|
setIsExpanded(isExpanded);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ExpandableSection } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const ExpandableSectionDisclosure: React.FunctionComponent = () => {
|
|
4
|
-
const [isExpanded, setIsExpanded] =
|
|
5
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
5
6
|
|
|
6
7
|
const onToggle = (_event: React.MouseEvent, isExpanded: boolean) => {
|
|
7
8
|
setIsExpanded(isExpanded);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ExpandableSection, ExpandableSectionVariant } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const ExpandableSectionTruncateExpansion: React.FunctionComponent = () => {
|
|
4
|
-
const [isExpanded, setIsExpanded] =
|
|
5
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
5
6
|
|
|
6
7
|
const onToggle = (_event: React.MouseEvent, isExpanded: boolean) => {
|
|
7
8
|
setIsExpanded(isExpanded);
|
|
@@ -6,6 +6,7 @@ section: components
|
|
|
6
6
|
subsection: file-upload
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
import { useState } from 'react';
|
|
9
10
|
import FileUploadIcon from '@patternfly/react-icons/dist/esm/icons/file-upload-icon';
|
|
10
11
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
11
12
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { FileUpload } from '@patternfly/react-core';
|
|
2
3
|
import FileUploadIcon from '@patternfly/react-icons/dist/esm/icons/file-upload-icon';
|
|
3
4
|
|
|
4
5
|
export const CustomPreviewFileUpload: React.FunctionComponent = () => {
|
|
5
|
-
const [value, setValue] =
|
|
6
|
-
const [filename, setFilename] =
|
|
6
|
+
const [value, setValue] = useState<File>();
|
|
7
|
+
const [filename, setFilename] = useState('');
|
|
7
8
|
|
|
8
9
|
const handleFileInputChange = (_, file: File) => {
|
|
9
10
|
setValue(file);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { FileUploadField, FileUploadHelperText, HelperText, HelperTextItem, Checkbox } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const CustomPreviewFileUpload: React.FunctionComponent = () => {
|
|
@@ -13,17 +14,17 @@ export const CustomPreviewFileUpload: React.FunctionComponent = () => {
|
|
|
13
14
|
'hasPlaceholderText'
|
|
14
15
|
];
|
|
15
16
|
|
|
16
|
-
const [value, setValue] =
|
|
17
|
-
const [filename, setFilename] =
|
|
18
|
-
const [isBrowseButtonDisabled, setIsBrowseButtonDisabled] =
|
|
19
|
-
const [isClearButtonDisabled, setIsClearButtonDisabled] =
|
|
20
|
-
const [isLoading, setIsLoading] =
|
|
21
|
-
const [isDragActive, setIsDragActive] =
|
|
22
|
-
const [hideDefaultPreview, setHideDefaultPreview] =
|
|
23
|
-
const [hasCustomFilePreview, setHasCustomFilePreview] =
|
|
24
|
-
const [hasHelperText, setHasHelperText] =
|
|
25
|
-
const [hasPlaceholderText, setHasPlaceholderText] =
|
|
26
|
-
const [checkedState, setCheckedState] =
|
|
17
|
+
const [value, setValue] = useState('');
|
|
18
|
+
const [filename, setFilename] = useState(false);
|
|
19
|
+
const [isBrowseButtonDisabled, setIsBrowseButtonDisabled] = useState(true);
|
|
20
|
+
const [isClearButtonDisabled, setIsClearButtonDisabled] = useState(true);
|
|
21
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
22
|
+
const [isDragActive, setIsDragActive] = useState(false);
|
|
23
|
+
const [hideDefaultPreview, setHideDefaultPreview] = useState(false);
|
|
24
|
+
const [hasCustomFilePreview, setHasCustomFilePreview] = useState(false);
|
|
25
|
+
const [hasHelperText, setHasHelperText] = useState(false);
|
|
26
|
+
const [hasPlaceholderText, setHasPlaceholderText] = useState(false);
|
|
27
|
+
const [checkedState, setCheckedState] = useState([
|
|
27
28
|
filename,
|
|
28
29
|
isBrowseButtonDisabled,
|
|
29
30
|
isClearButtonDisabled,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { FileUpload } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const SimpleFileUpload: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
-
const [filename, setFilename] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
6
|
+
const [filename, setFilename] = useState('');
|
|
6
7
|
|
|
7
8
|
const handleFileInputChange = (_, file: File) => {
|
|
8
9
|
setFilename(file.name);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { FileUpload, DropEvent } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const SimpleTextFileUpload: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
-
const [filename, setFilename] =
|
|
6
|
-
const [isLoading, setIsLoading] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
6
|
+
const [filename, setFilename] = useState('');
|
|
7
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
7
8
|
|
|
8
9
|
const handleFileInputChange = (_, file: File) => {
|
|
9
10
|
setFilename(file.name);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { FileUpload, DropEvent } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextFileWithEditsAllowed: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
-
const [filename, setFilename] =
|
|
6
|
-
const [isLoading, setIsLoading] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
6
|
+
const [filename, setFilename] = useState('');
|
|
7
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
7
8
|
|
|
8
9
|
const handleFileInputChange = (_, file: File) => {
|
|
9
10
|
setFilename(file.name);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
FileUpload,
|
|
3
4
|
DropzoneErrorCode,
|
|
@@ -10,11 +11,11 @@ import {
|
|
|
10
11
|
} from '@patternfly/react-core';
|
|
11
12
|
|
|
12
13
|
export const TextFileUploadWithRestrictions: React.FunctionComponent = () => {
|
|
13
|
-
const [value, setValue] =
|
|
14
|
-
const [filename, setFilename] =
|
|
15
|
-
const [isLoading, setIsLoading] =
|
|
16
|
-
const [isRejected, setIsRejected] =
|
|
17
|
-
const [message, setMessage] =
|
|
14
|
+
const [value, setValue] = useState('');
|
|
15
|
+
const [filename, setFilename] = useState('');
|
|
16
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
17
|
+
const [isRejected, setIsRejected] = useState(false);
|
|
18
|
+
const [message, setMessage] = useState('Must be a CSV file no larger than 1 KB');
|
|
18
19
|
|
|
19
20
|
const handleFileInputChange = (_, file: File) => {
|
|
20
21
|
setFilename(file.name);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { FileUpload, FileUploadHelperText, HelperText, HelperTextItem, DropEvent } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const FileUploadWithHelperText: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
-
const [filename, setFilename] =
|
|
6
|
-
const [isLoading, setIsLoading] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
6
|
+
const [filename, setFilename] = useState('');
|
|
7
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
7
8
|
|
|
8
9
|
const handleFileInputChange = (_, file: File) => {
|
|
9
10
|
setFilename(file.name);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { FormSelect, FormSelectOption } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const FormSelectBasic: React.FunctionComponent = () => {
|
|
4
|
-
const [formSelectValue, setFormSelectValue] =
|
|
5
|
+
const [formSelectValue, setFormSelectValue] = useState('mrs');
|
|
5
6
|
|
|
6
7
|
const onChange = (_event: React.FormEvent<HTMLSelectElement>, value: string) => {
|
|
7
8
|
setFormSelectValue(value);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { FormSelect, FormSelectOption } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const FormSelectDisabled: React.FunctionComponent = () => {
|
|
4
|
-
const [formSelectValue, setFormSelectValue] =
|
|
5
|
+
const [formSelectValue, setFormSelectValue] = useState('mrs');
|
|
5
6
|
|
|
6
7
|
const onChange = (_event: React.FormEvent<HTMLSelectElement>, value: string) => {
|
|
7
8
|
setFormSelectValue(value);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { FormSelect, FormSelectOption, FormSelectOptionGroup } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const FormSelectGrouped: React.FunctionComponent = () => {
|
|
4
|
-
const [formSelectValue, setFormSelectValue] =
|
|
5
|
+
const [formSelectValue, setFormSelectValue] = useState('2');
|
|
5
6
|
|
|
6
7
|
const onChange = (_event: React.FormEvent<HTMLSelectElement>, value: string) => {
|
|
7
8
|
setFormSelectValue(value);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Form,
|
|
3
4
|
FormGroup,
|
|
@@ -10,9 +11,9 @@ import {
|
|
|
10
11
|
} from '@patternfly/react-core';
|
|
11
12
|
|
|
12
13
|
export const FormSelectValidated: React.FunctionComponent = () => {
|
|
13
|
-
const [formValue, setFormValue] =
|
|
14
|
-
const [helperText, setHelperText] =
|
|
15
|
-
const [validated, setValidated] =
|
|
14
|
+
const [formValue, setFormValue] = useState('');
|
|
15
|
+
const [helperText, setHelperText] = useState('');
|
|
16
|
+
const [validated, setValidated] = useState<ValidatedOptions>(ValidatedOptions.default);
|
|
16
17
|
|
|
17
18
|
const simulateNetworkCall = (callback: () => void) => {
|
|
18
19
|
setTimeout(callback, 2000);
|
|
@@ -5,7 +5,7 @@ cssPrefix: pf-v6-c-hint
|
|
|
5
5
|
propComponents: ['Hint', 'HintTitle', 'HintBody', 'HintFooter']
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { Fragment } from 'react';
|
|
8
|
+
import { Fragment, useState } from 'react';
|
|
9
9
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
10
10
|
|
|
11
11
|
## Examples
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { Hint, HintTitle, HintBody, Button, Checkbox } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const HintActionsWithNoOffset: React.FunctionComponent = () => {
|
|
4
|
-
const [hasNoActionsOffset, setHasNoActionsOffset] =
|
|
5
|
+
const [hasNoActionsOffset, setHasNoActionsOffset] = useState<boolean>(false);
|
|
5
6
|
|
|
6
7
|
const toggleOffset = (checked: boolean) => {
|
|
7
8
|
setHasNoActionsOffset(checked);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Hint,
|
|
3
4
|
HintTitle,
|
|
@@ -14,7 +15,7 @@ import {
|
|
|
14
15
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
15
16
|
|
|
16
17
|
export const HintBasicWithTitle: React.FunctionComponent = () => {
|
|
17
|
-
const [isOpen, setIsOpen] =
|
|
18
|
+
const [isOpen, setIsOpen] = useState<boolean>(false);
|
|
18
19
|
|
|
19
20
|
const onToggle = () => {
|
|
20
21
|
setIsOpen(!isOpen);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Hint,
|
|
4
4
|
HintBody,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
15
15
|
|
|
16
16
|
export const HintBasicWithoutTitle: React.FunctionComponent = () => {
|
|
17
|
-
const [isOpen, setIsOpen] =
|
|
17
|
+
const [isOpen, setIsOpen] = useState<boolean>(false);
|
|
18
18
|
|
|
19
19
|
const onToggle = () => {
|
|
20
20
|
setIsOpen(!isOpen);
|
|
@@ -5,7 +5,7 @@ cssPrefix: pf-v6-c-icon
|
|
|
5
5
|
propComponents: ['Icon']
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { Fragment } from 'react';
|
|
8
|
+
import { Fragment, useState } from 'react';
|
|
9
9
|
import LongArrowAltDownIcon from '@patternfly/react-icons/dist/esm/icons/long-arrow-alt-down-icon';
|
|
10
10
|
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
11
11
|
import AngleDownIcon from '@patternfly/react-icons/dist/esm/icons/angle-down-icon';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import { Icon, Spinner, Checkbox } from '@patternfly/react-core';
|
|
3
3
|
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
4
4
|
|
|
5
5
|
export const IconProgress: React.FunctionComponent = () => {
|
|
6
|
-
const [isInProgress, setIsInProgress] =
|
|
6
|
+
const [isInProgress, setIsInProgress] = useState<boolean>(false);
|
|
7
7
|
return (
|
|
8
8
|
<Fragment>
|
|
9
9
|
<div style={{ marginBottom: '12px' }}>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import { Icon, Checkbox } from '@patternfly/react-core';
|
|
3
3
|
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
4
4
|
|
|
5
5
|
export const IconProgress: React.FunctionComponent = () => {
|
|
6
|
-
const [isInProgress, setIsInProgress] =
|
|
6
|
+
const [isInProgress, setIsInProgress] = useState<boolean>(false);
|
|
7
7
|
return (
|
|
8
8
|
<Fragment>
|
|
9
9
|
<div style={{ marginBottom: '12px' }}>
|
|
@@ -5,7 +5,7 @@ cssPrefix: pf-v6-c-input-group
|
|
|
5
5
|
propComponents: ['InputGroup', 'InputGroupItem', 'InputGroupText']
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { Fragment } from 'react';
|
|
8
|
+
import { Fragment, useRef, useState } from 'react';
|
|
9
9
|
import AtIcon from '@patternfly/react-icons/dist/esm/icons/at-icon';
|
|
10
10
|
import DollarSignIcon from '@patternfly/react-icons/dist/esm/icons/dollar-sign-icon';
|
|
11
11
|
import CalendarAltIcon from '@patternfly/react-icons/dist/esm/icons/calendar-alt-icon';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
4
|
InputGroup,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from '@patternfly/react-core';
|
|
13
13
|
|
|
14
14
|
export const InputGroupWithDropdown: React.FunctionComponent = () => {
|
|
15
|
-
const [isOpen, setIsOpen] =
|
|
15
|
+
const [isOpen, setIsOpen] = useState<boolean>(false);
|
|
16
16
|
|
|
17
17
|
const onToggle = () => {
|
|
18
18
|
setIsOpen(!isOpen);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useRef } from 'react';
|
|
2
2
|
import QuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/question-circle-icon';
|
|
3
3
|
import { Button, InputGroup, InputGroupItem, TextInput, Popover, PopoverPosition } from '@patternfly/react-core';
|
|
4
4
|
|
|
5
5
|
export const InputGroupWithPopover: React.FunctionComponent = () => {
|
|
6
|
-
const inputGroupRef1 =
|
|
7
|
-
const inputGroupRef2 =
|
|
6
|
+
const inputGroupRef1 = useRef(null);
|
|
7
|
+
const inputGroupRef2 = useRef(null);
|
|
8
8
|
return (
|
|
9
9
|
<Fragment>
|
|
10
10
|
<InputGroup ref={inputGroupRef1}>
|
|
@@ -5,7 +5,7 @@ cssPrefix: ['pf-v6-c-label', 'pf-v6-c-label-group']
|
|
|
5
5
|
propComponents: ['Label', 'LabelGroup']
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { Fragment } from 'react';
|
|
8
|
+
import { Fragment, useEffect, useRef, useState } from 'react';
|
|
9
9
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
10
10
|
import InfoCircleIcon from '@patternfly/react-icons/dist/esm/icons/info-circle-icon';
|
|
11
11
|
import './Label.css';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import { Label } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const LabelEditable: React.FunctionComponent = () => {
|
|
5
|
-
const [labelText, setLabelText] =
|
|
6
|
-
const [compactLabelText, setCompactLabelText] =
|
|
5
|
+
const [labelText, setLabelText] = useState('Editable label');
|
|
6
|
+
const [compactLabelText, setCompactLabelText] = useState('Compact editable label');
|
|
7
7
|
|
|
8
8
|
const onEditCancel = (_event: KeyboardEvent, prevText: string) => {
|
|
9
9
|
setLabelText(prevText);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { Label, LabelGroup, LabelProps } from '@patternfly/react-core';
|
|
2
3
|
import InfoCircleIcon from '@patternfly/react-icons/dist/esm/icons/info-circle-icon';
|
|
3
4
|
|
|
4
5
|
export const LabelGroupCategoryRemovable: React.FunctionComponent = () => {
|
|
5
|
-
const [labels, setLabels] =
|
|
6
|
+
const [labels, setLabels] = useState([
|
|
6
7
|
['Label 1', 'grey'],
|
|
7
8
|
['Label 2', 'blue'],
|
|
8
9
|
['Label 3', 'green'],
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { LabelGroup, Label } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const LabelGroupEditableAdd: React.FunctionComponent = () => {
|
|
4
|
-
const [idIndex, setIdIndex] =
|
|
5
|
-
const [labels, setLabels] =
|
|
5
|
+
const [idIndex, setIdIndex] = useState<number>(3);
|
|
6
|
+
const [labels, setLabels] = useState<any>([
|
|
6
7
|
{ name: 'Label 1', id: 0 },
|
|
7
8
|
{ name: 'Label 2', id: 1 },
|
|
8
9
|
{
|