@carbon/react 1.29.0 → 1.30.0-rc.0
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/es/_virtual/_rollupPluginBabelHelpers.js +16 -5
- package/es/components/Accordion/Accordion.Skeleton.js +0 -7
- package/es/components/Accordion/Accordion.js +1 -8
- package/es/components/Accordion/AccordionItem.js +5 -19
- package/es/components/AspectRatio/AspectRatio.js +0 -5
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +0 -3
- package/es/components/Breadcrumb/Breadcrumb.js +0 -3
- package/es/components/Breadcrumb/BreadcrumbItem.js +0 -7
- package/es/components/Button/Button.Skeleton.js +2 -7
- package/es/components/Button/Button.js +2 -36
- package/es/components/ButtonSet/ButtonSet.js +0 -2
- package/es/components/Checkbox/Checkbox.Skeleton.js +0 -1
- package/es/components/Checkbox/Checkbox.js +4 -20
- package/es/components/CheckboxGroup/CheckboxGroup.js +0 -11
- package/es/components/ClassPrefix/index.d.ts +26 -0
- package/es/components/ClassPrefix/index.js +0 -2
- package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +0 -5
- package/es/components/CodeSnippet/CodeSnippet.js +6 -45
- package/es/components/ComboBox/ComboBox.js +12 -79
- package/es/components/ComboBox/tools/filter.js +0 -1
- package/es/components/ComboButton/index.js +0 -14
- package/es/components/ComposedModal/ComposedModal.js +2 -32
- package/es/components/ComposedModal/ModalFooter.js +0 -21
- package/es/components/ComposedModal/ModalHeader.js +0 -12
- package/es/components/ContainedList/ContainedList.js +5 -32
- package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +0 -6
- package/es/components/ContentSwitcher/ContentSwitcher.js +11 -23
- package/es/components/ContextMenu/useContextMenu.js +1 -6
- package/es/components/Copy/Copy.js +8 -31
- package/es/components/CopyButton/CopyButton.js +0 -4
- package/es/components/DangerButton/DangerButton.js +0 -1
- package/es/components/DataTable/DataTable.js +171 -91
- package/es/components/DataTable/Table.js +0 -6
- package/es/components/DataTable/TableBatchAction.js +0 -4
- package/es/components/DataTable/TableBatchActions.js +0 -8
- package/es/components/DataTable/TableBody.js +0 -1
- package/es/components/DataTable/TableContainer.js +0 -5
- package/es/components/DataTable/TableExpandHeader.js +0 -7
- package/es/components/DataTable/TableExpandRow.js +0 -6
- package/es/components/DataTable/TableExpandedRow.js +0 -6
- package/es/components/DataTable/TableHeader.d.ts +1 -1
- package/es/components/DataTable/TableHeader.js +3 -19
- package/es/components/DataTable/TableRow.js +4 -5
- package/es/components/DataTable/TableSelectAll.js +0 -8
- package/es/components/DataTable/TableSelectRow.js +2 -10
- package/es/components/DataTable/TableToolbar.js +0 -3
- package/es/components/DataTable/TableToolbarMenu.d.ts +1 -1
- package/es/components/DataTable/TableToolbarMenu.js +3 -6
- package/es/components/DataTable/TableToolbarSearch.js +2 -30
- package/es/components/DataTable/state/getDerivedStateFromProps.js +0 -4
- package/es/components/DataTable/state/sorting.js +5 -8
- package/es/components/DataTable/tools/denormalize.js +2 -2
- package/es/components/DataTable/tools/filter.js +0 -2
- package/es/components/DataTable/tools/instanceId.js +0 -1
- package/es/components/DataTable/tools/normalize.js +10 -10
- package/es/components/DataTable/tools/sorting.js +5 -13
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +5 -20
- package/es/components/DatePicker/DatePicker.Skeleton.js +0 -6
- package/es/components/DatePicker/DatePicker.js +154 -177
- package/es/components/DatePicker/plugins/appendToPlugin.js +3 -7
- package/es/components/DatePicker/plugins/fixEventsPlugin.js +14 -25
- package/es/components/DatePicker/plugins/rangePlugin.js +2 -7
- package/es/components/DatePickerInput/DatePickerInput.js +2 -28
- package/es/components/Dropdown/Dropdown.Skeleton.js +0 -2
- package/es/components/Dropdown/Dropdown.js +43 -52
- package/es/components/ErrorBoundary/ErrorBoundary.js +0 -10
- package/es/components/ErrorBoundary/ErrorBoundaryContext.js +0 -1
- package/es/components/ExpandableSearch/ExpandableSearch.js +1 -10
- package/es/components/FeatureFlags/index.js +8 -20
- package/es/components/FileUploader/FileUploader.Skeleton.js +0 -2
- package/es/components/FileUploader/FileUploader.js +3 -38
- package/es/components/FileUploader/FileUploaderButton.js +3 -24
- package/es/components/FileUploader/FileUploaderDropContainer.js +1 -28
- package/es/components/FileUploader/FileUploaderItem.js +1 -11
- package/es/components/FileUploader/Filename.js +0 -10
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +0 -1
- package/es/components/FluidComboBox/FluidComboBox.js +0 -18
- package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +0 -2
- package/es/components/FluidDatePicker/FluidDatePicker.js +0 -6
- package/es/components/FluidDatePickerInput/FluidDatePickerInput.js +2 -1
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +0 -1
- package/es/components/FluidDropdown/FluidDropdown.js +0 -18
- package/es/components/FluidForm/FluidForm.js +0 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +0 -1
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +0 -19
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +0 -1
- package/es/components/FluidSelect/FluidSelect.js +0 -10
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +0 -1
- package/es/components/FluidTextArea/FluidTextArea.js +0 -20
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +0 -1
- package/es/components/FluidTextInput/FluidTextInput.js +0 -14
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +0 -3
- package/es/components/FluidTimePicker/FluidTimePicker.js +1 -11
- package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +0 -6
- package/es/components/Form/Form.d.ts +23 -0
- package/es/components/Form/Form.js +3 -6
- package/es/components/Form/index.d.ts +7 -0
- package/es/components/FormGroup/FormGroup.js +0 -7
- package/es/components/FormItem/FormItem.js +0 -2
- package/es/components/FormLabel/FormLabel.js +1 -7
- package/es/components/Grid/CSSGrid.js +2 -15
- package/es/components/Grid/Column.js +18 -59
- package/es/components/Grid/ColumnHang.js +2 -5
- package/es/components/Grid/FlexGrid.js +2 -8
- package/es/components/Grid/Grid.js +0 -8
- package/es/components/Grid/GridContext.js +1 -3
- package/es/components/Grid/Row.js +2 -7
- package/es/components/Heading/index.js +0 -4
- package/es/components/Icon/Icon.Skeleton.js +2 -2
- package/es/components/IconButton/index.js +0 -10
- package/es/components/IdPrefix/index.js +0 -2
- package/es/components/InlineCheckbox/InlineCheckbox.js +0 -14
- package/es/components/InlineLoading/InlineLoading.js +0 -12
- package/es/components/Layer/index.js +3 -6
- package/es/components/Layout/LayoutDirection.js +0 -3
- package/es/components/Layout/useLayoutDirection.js +0 -1
- package/es/components/Link/Link.js +3 -10
- package/es/components/ListBox/ListBox.js +2 -13
- package/es/components/ListBox/ListBoxField.js +0 -5
- package/es/components/ListBox/ListBoxMenuIcon.js +0 -4
- package/es/components/ListBox/ListBoxMenuItem.js +2 -6
- package/es/components/ListBox/ListBoxPropTypes.d.ts +2 -2
- package/es/components/ListBox/ListBoxSelection.js +1 -13
- package/es/components/ListBox/next/ListBoxSelection.js +1 -14
- package/es/components/ListBox/next/ListBoxTrigger.js +1 -3
- package/es/components/ListItem/ListItem.d.ts +23 -0
- package/es/components/ListItem/ListItem.js +4 -8
- package/es/components/ListItem/index.d.ts +7 -0
- package/es/components/Loading/Loading.js +0 -6
- package/es/components/Menu/Menu.js +22 -40
- package/es/components/Menu/MenuContext.js +4 -5
- package/es/components/Menu/MenuItem.js +5 -39
- package/es/components/MenuButton/index.js +0 -9
- package/es/components/Modal/Modal.js +0 -43
- package/es/components/ModalWrapper/ModalWrapper.js +2 -15
- package/es/components/MultiSelect/FilterableMultiSelect.js +2 -60
- package/es/components/MultiSelect/MultiSelect.js +22 -70
- package/es/components/MultiSelect/MultiSelectPropTypes.js +0 -1
- package/es/components/MultiSelect/index.js +0 -1
- package/es/components/MultiSelect/tools/itemToString.js +0 -2
- package/es/components/MultiSelect/tools/sorting.js +3 -4
- package/es/components/Notification/Notification.js +0 -78
- package/es/components/NumberInput/NumberInput.Skeleton.js +0 -2
- package/es/components/NumberInput/NumberInput.js +3 -60
- package/es/components/OrderedList/OrderedList.d.ts +39 -0
- package/es/components/OrderedList/OrderedList.js +7 -19
- package/es/components/{Form/index.js → OrderedList/index.d.ts} +1 -3
- package/es/components/OverflowMenu/OverflowMenu.js +65 -86
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +6 -23
- package/es/components/OverflowMenuV2/index.js +0 -5
- package/es/components/Pagination/Pagination.Skeleton.js +0 -2
- package/es/components/Pagination/Pagination.js +11 -47
- package/es/components/Pagination/experimental/PageSelector.js +0 -10
- package/es/components/Pagination/experimental/Pagination.js +2 -48
- package/es/components/PaginationNav/PaginationNav.js +15 -59
- package/es/components/Popover/index.d.ts +14 -8
- package/es/components/Popover/index.js +44 -48
- package/es/components/PrimaryButton/PrimaryButton.js +0 -1
- package/es/components/ProgressBar/ProgressBar.js +0 -15
- package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +0 -4
- package/es/components/ProgressIndicator/ProgressIndicator.js +2 -40
- package/es/components/RadioButton/RadioButton.Skeleton.js +0 -1
- package/es/components/RadioButton/RadioButton.js +0 -13
- package/es/components/RadioButtonGroup/RadioButtonGroup.js +3 -23
- package/es/components/RadioTile/RadioTile.js +0 -12
- package/es/components/Search/Search.Skeleton.js +0 -2
- package/es/components/Search/Search.js +1 -28
- package/es/components/SecondaryButton/SecondaryButton.js +0 -1
- package/es/components/Select/Select.Skeleton.js +0 -2
- package/es/components/Select/Select.d.ts +1 -1
- package/es/components/Select/Select.js +6 -33
- package/es/components/SelectItem/SelectItem.js +0 -5
- package/es/components/SelectItemGroup/SelectItemGroup.d.ts +0 -1
- package/es/components/SelectItemGroup/SelectItemGroup.js +1 -7
- package/es/components/SkeletonIcon/SkeletonIcon.js +0 -2
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +0 -1
- package/es/components/SkeletonText/SkeletonText.js +0 -12
- package/es/components/Slider/Slider.Skeleton.js +0 -2
- package/es/components/Slider/Slider.d.ts +0 -1
- package/es/components/Slider/Slider.js +112 -135
- package/es/components/Stack/Stack.js +1 -8
- package/es/components/StructuredList/StructuredList.Skeleton.js +0 -5
- package/es/components/StructuredList/StructuredList.js +1 -25
- package/es/components/Switch/IconSwitch.js +0 -18
- package/es/components/Switch/Switch.js +0 -11
- package/es/components/TabContent/TabContent.js +2 -6
- package/es/components/Tabs/Tabs.Skeleton.js +0 -4
- package/es/components/Tabs/Tabs.js +135 -104
- package/es/components/Tabs/usePressable.js +18 -31
- package/es/components/Tag/Tag.Skeleton.js +0 -2
- package/es/components/Tag/Tag.js +0 -15
- package/es/components/Text/Text.js +5 -18
- package/es/components/Text/TextDirection.js +0 -3
- package/es/components/Text/TextDirectionContext.js +0 -1
- package/es/components/Text/createTextComponent.js +0 -3
- package/es/components/TextArea/TextArea.Skeleton.js +0 -2
- package/es/components/TextArea/TextArea.js +11 -33
- package/es/components/TextInput/ControlledPasswordInput.js +0 -20
- package/es/components/TextInput/PasswordInput.js +0 -25
- package/es/components/TextInput/TextInput.Skeleton.js +0 -2
- package/es/components/TextInput/TextInput.d.ts +1 -1
- package/es/components/TextInput/TextInput.js +5 -33
- package/es/components/TextInput/util.js +3 -5
- package/es/components/Theme/index.js +1 -6
- package/es/components/Tile/Tile.js +32 -59
- package/es/components/TileGroup/TileGroup.js +1 -22
- package/es/components/TimePicker/TimePicker.js +6 -32
- package/es/components/TimePickerSelect/TimePickerSelect.js +2 -5
- package/es/components/Toggle/Toggle.Skeleton.js +0 -8
- package/es/components/Toggle/Toggle.js +0 -16
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +0 -7
- package/es/components/Toggletip/index.d.ts +148 -0
- package/es/components/Toggletip/index.js +20 -44
- package/es/components/Tooltip/DefinitionTooltip.js +0 -11
- package/es/components/Tooltip/Tooltip.d.ts +1 -1
- package/es/components/Tooltip/Tooltip.js +4 -21
- package/es/components/TreeView/TreeNode.js +21 -66
- package/es/components/TreeView/TreeView.js +11 -67
- package/es/components/UIShell/Content.js +2 -4
- package/es/components/UIShell/Header.js +0 -2
- package/es/components/UIShell/HeaderContainer.d.ts +33 -0
- package/es/components/UIShell/HeaderContainer.js +13 -11
- package/es/components/UIShell/HeaderGlobalAction.js +0 -6
- package/es/components/UIShell/HeaderGlobalBar.js +0 -1
- package/es/components/UIShell/HeaderMenu.js +32 -31
- package/es/components/UIShell/HeaderMenuButton.js +2 -4
- package/es/components/UIShell/HeaderMenuItem.js +0 -8
- package/es/components/UIShell/HeaderName.js +0 -5
- package/es/components/UIShell/HeaderNavigation.js +0 -2
- package/es/components/UIShell/HeaderPanel.js +0 -2
- package/es/components/UIShell/HeaderSideNavItems.js +0 -2
- package/es/components/UIShell/Link.js +2 -3
- package/es/components/UIShell/SideNav.d.ts +3 -1
- package/es/components/UIShell/SideNav.js +44 -36
- package/es/components/UIShell/SideNavDetails.js +0 -3
- package/es/components/UIShell/SideNavDivider.js +0 -1
- package/es/components/UIShell/SideNavFooter.js +1 -4
- package/es/components/UIShell/SideNavHeader.js +0 -4
- package/es/components/UIShell/SideNavIcon.js +0 -3
- package/es/components/UIShell/SideNavItem.js +0 -3
- package/es/components/UIShell/SideNavItems.js +2 -6
- package/es/components/UIShell/SideNavLink.js +3 -7
- package/es/components/UIShell/SideNavLinkText.js +0 -2
- package/es/components/UIShell/SideNavMenu.js +0 -16
- package/es/components/UIShell/SideNavMenuItem.js +0 -2
- package/es/components/UIShell/SideNavSwitcher.js +2 -5
- package/es/components/UIShell/SkipToContent.d.ts +32 -0
- package/es/components/UIShell/SkipToContent.js +8 -15
- package/es/components/UIShell/Switcher.js +0 -2
- package/es/components/UIShell/SwitcherDivider.js +0 -1
- package/es/components/UIShell/SwitcherItem.js +0 -3
- package/es/components/UnorderedList/UnorderedList.d.ts +34 -0
- package/es/components/UnorderedList/UnorderedList.js +6 -16
- package/es/components/UnorderedList/index.d.ts +7 -0
- package/es/index.js +7 -8
- package/es/internal/ClickListener.js +3 -13
- package/es/internal/FloatingMenu.js +57 -63
- package/es/internal/OptimizedResize.js +6 -12
- package/es/internal/Selection.js +2 -25
- package/es/internal/createClassWrapper.js +0 -2
- package/es/internal/deprecateFieldOnObject.js +0 -4
- package/es/internal/focus/index.js +0 -1
- package/es/internal/keyboard/keys.js +2 -1
- package/es/internal/keyboard/match.js +1 -6
- package/es/internal/keyboard/navigation.js +8 -7
- package/es/internal/useAnnouncer.js +0 -1
- package/es/internal/useAttachedMenu.js +1 -9
- package/es/internal/useControllableState.js +6 -13
- package/es/internal/useDelayedState.js +2 -4
- package/es/internal/useEffectOnce.js +0 -1
- package/es/internal/useEvent.js +61 -3
- package/es/internal/useId.js +2 -5
- package/es/internal/useIsomorphicEffect.js +1 -0
- package/es/internal/useMergedRefs.js +2 -2
- package/es/internal/useNoInteractiveChildren.js +2 -13
- package/es/internal/useNormalizedInputProps.js +0 -3
- package/es/internal/useSavedCallback.js +1 -2
- package/es/internal/warning.js +0 -3
- package/es/internal/wrapFocus.js +1 -8
- package/es/prop-types/deprecate.js +2 -5
- package/es/prop-types/isRequiredOneOf.js +2 -5
- package/es/prop-types/requiredIfGivenPropIsTruthy.js +0 -2
- package/es/tools/array.js +0 -3
- package/es/tools/events.js +0 -3
- package/es/tools/mergeRefs.js +0 -2
- package/es/tools/wrapComponent.js +2 -5
- package/lib/_virtual/_rollupPluginBabelHelpers.js +17 -4
- package/lib/components/Accordion/Accordion.Skeleton.js +0 -7
- package/lib/components/Accordion/Accordion.js +1 -27
- package/lib/components/Accordion/AccordionItem.js +5 -19
- package/lib/components/AspectRatio/AspectRatio.js +0 -5
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +0 -3
- package/lib/components/Breadcrumb/Breadcrumb.js +0 -3
- package/lib/components/Breadcrumb/BreadcrumbItem.js +0 -7
- package/lib/components/Button/Button.Skeleton.js +2 -26
- package/lib/components/Button/Button.js +2 -36
- package/lib/components/ButtonSet/ButtonSet.js +0 -2
- package/lib/components/Checkbox/Checkbox.Skeleton.js +0 -1
- package/lib/components/Checkbox/Checkbox.js +4 -20
- package/lib/components/CheckboxGroup/CheckboxGroup.js +0 -11
- package/lib/components/ClassPrefix/index.d.ts +26 -0
- package/lib/components/ClassPrefix/index.js +0 -2
- package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +0 -5
- package/lib/components/CodeSnippet/CodeSnippet.js +6 -45
- package/lib/components/ComboBox/ComboBox.js +19 -86
- package/lib/components/ComboBox/tools/filter.js +0 -1
- package/lib/components/ComboButton/index.js +0 -14
- package/lib/components/ComposedModal/ComposedModal.js +2 -32
- package/lib/components/ComposedModal/ModalFooter.js +0 -21
- package/lib/components/ComposedModal/ModalHeader.js +0 -12
- package/lib/components/ContainedList/ContainedList.js +5 -32
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +0 -6
- package/lib/components/ContentSwitcher/ContentSwitcher.js +11 -23
- package/lib/components/ContextMenu/useContextMenu.js +1 -6
- package/lib/components/Copy/Copy.js +8 -50
- package/lib/components/CopyButton/CopyButton.js +0 -4
- package/lib/components/DangerButton/DangerButton.js +0 -1
- package/lib/components/DataTable/DataTable.js +171 -91
- package/lib/components/DataTable/Table.js +0 -6
- package/lib/components/DataTable/TableBatchAction.js +0 -4
- package/lib/components/DataTable/TableBatchActions.js +0 -8
- package/lib/components/DataTable/TableBody.js +0 -1
- package/lib/components/DataTable/TableContainer.js +0 -5
- package/lib/components/DataTable/TableExpandHeader.js +0 -7
- package/lib/components/DataTable/TableExpandRow.js +0 -6
- package/lib/components/DataTable/TableExpandedRow.js +0 -6
- package/lib/components/DataTable/TableHeader.d.ts +1 -1
- package/lib/components/DataTable/TableHeader.js +3 -19
- package/lib/components/DataTable/TableRow.js +4 -5
- package/lib/components/DataTable/TableSelectAll.js +0 -8
- package/lib/components/DataTable/TableSelectRow.js +2 -10
- package/lib/components/DataTable/TableToolbar.js +0 -3
- package/lib/components/DataTable/TableToolbarMenu.d.ts +1 -1
- package/lib/components/DataTable/TableToolbarMenu.js +3 -6
- package/lib/components/DataTable/TableToolbarSearch.js +2 -30
- package/lib/components/DataTable/state/getDerivedStateFromProps.js +0 -4
- package/lib/components/DataTable/state/sorting.js +5 -8
- package/lib/components/DataTable/tools/denormalize.js +2 -2
- package/lib/components/DataTable/tools/filter.js +0 -2
- package/lib/components/DataTable/tools/instanceId.js +0 -1
- package/lib/components/DataTable/tools/normalize.js +10 -10
- package/lib/components/DataTable/tools/sorting.js +5 -13
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +5 -20
- package/lib/components/DatePicker/DatePicker.Skeleton.js +0 -6
- package/lib/components/DatePicker/DatePicker.js +154 -177
- package/lib/components/DatePicker/plugins/appendToPlugin.js +3 -7
- package/lib/components/DatePicker/plugins/fixEventsPlugin.js +14 -25
- package/lib/components/DatePicker/plugins/rangePlugin.js +2 -7
- package/lib/components/DatePickerInput/DatePickerInput.js +2 -28
- package/lib/components/Dropdown/Dropdown.Skeleton.js +0 -2
- package/lib/components/Dropdown/Dropdown.js +50 -59
- package/lib/components/ErrorBoundary/ErrorBoundary.js +0 -10
- package/lib/components/ErrorBoundary/ErrorBoundaryContext.js +0 -1
- package/lib/components/ExpandableSearch/ExpandableSearch.js +1 -10
- package/lib/components/FeatureFlags/index.js +8 -20
- package/lib/components/FileUploader/FileUploader.Skeleton.js +0 -2
- package/lib/components/FileUploader/FileUploader.js +3 -57
- package/lib/components/FileUploader/FileUploaderButton.js +3 -43
- package/lib/components/FileUploader/FileUploaderDropContainer.js +1 -28
- package/lib/components/FileUploader/FileUploaderItem.js +1 -30
- package/lib/components/FileUploader/Filename.js +0 -10
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +0 -1
- package/lib/components/FluidComboBox/FluidComboBox.js +0 -18
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +0 -2
- package/lib/components/FluidDatePicker/FluidDatePicker.js +0 -6
- package/lib/components/FluidDatePickerInput/FluidDatePickerInput.js +2 -1
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +0 -1
- package/lib/components/FluidDropdown/FluidDropdown.js +0 -18
- package/lib/components/FluidForm/FluidForm.js +0 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +0 -1
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +0 -19
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +0 -1
- package/lib/components/FluidSelect/FluidSelect.js +0 -10
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +0 -1
- package/lib/components/FluidTextArea/FluidTextArea.js +0 -20
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +0 -1
- package/lib/components/FluidTextInput/FluidTextInput.js +0 -14
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +0 -3
- package/lib/components/FluidTimePicker/FluidTimePicker.js +1 -11
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +0 -6
- package/lib/components/Form/Form.d.ts +23 -0
- package/lib/components/Form/Form.js +3 -6
- package/lib/components/Form/index.d.ts +7 -0
- package/lib/components/FormGroup/FormGroup.js +0 -7
- package/lib/components/FormItem/FormItem.js +0 -2
- package/lib/components/FormLabel/FormLabel.js +1 -26
- package/lib/components/Grid/CSSGrid.js +2 -15
- package/lib/components/Grid/Column.js +18 -59
- package/lib/components/Grid/ColumnHang.js +2 -5
- package/lib/components/Grid/FlexGrid.js +2 -8
- package/lib/components/Grid/Grid.js +0 -8
- package/lib/components/Grid/GridContext.js +1 -3
- package/lib/components/Grid/Row.js +2 -7
- package/lib/components/Heading/index.js +0 -4
- package/lib/components/Icon/Icon.Skeleton.js +2 -2
- package/lib/components/IconButton/index.js +0 -10
- package/lib/components/IdPrefix/index.js +0 -2
- package/lib/components/InlineCheckbox/InlineCheckbox.js +0 -14
- package/lib/components/InlineLoading/InlineLoading.js +0 -12
- package/lib/components/Layer/index.js +3 -6
- package/lib/components/Layout/LayoutDirection.js +0 -3
- package/lib/components/Layout/useLayoutDirection.js +0 -1
- package/lib/components/Link/Link.js +3 -10
- package/lib/components/ListBox/ListBox.js +2 -13
- package/lib/components/ListBox/ListBoxField.js +0 -5
- package/lib/components/ListBox/ListBoxMenuIcon.js +0 -4
- package/lib/components/ListBox/ListBoxMenuItem.js +2 -6
- package/lib/components/ListBox/ListBoxPropTypes.d.ts +2 -2
- package/lib/components/ListBox/ListBoxSelection.js +1 -13
- package/lib/components/ListBox/next/ListBoxSelection.js +1 -14
- package/lib/components/ListBox/next/ListBoxTrigger.js +1 -3
- package/lib/components/ListItem/ListItem.d.ts +23 -0
- package/lib/components/ListItem/ListItem.js +4 -8
- package/lib/components/ListItem/index.d.ts +7 -0
- package/lib/components/Loading/Loading.js +0 -6
- package/lib/components/Menu/Menu.js +22 -40
- package/lib/components/Menu/MenuContext.js +4 -5
- package/lib/components/Menu/MenuItem.js +5 -39
- package/lib/components/MenuButton/index.js +0 -9
- package/lib/components/Modal/Modal.js +0 -43
- package/lib/components/ModalWrapper/ModalWrapper.js +2 -15
- package/lib/components/MultiSelect/FilterableMultiSelect.js +8 -66
- package/lib/components/MultiSelect/MultiSelect.js +30 -78
- package/lib/components/MultiSelect/MultiSelectPropTypes.js +0 -1
- package/lib/components/MultiSelect/index.js +0 -1
- package/lib/components/MultiSelect/tools/itemToString.js +0 -2
- package/lib/components/MultiSelect/tools/sorting.js +3 -4
- package/lib/components/Notification/Notification.js +0 -78
- package/lib/components/NumberInput/NumberInput.Skeleton.js +0 -2
- package/lib/components/NumberInput/NumberInput.js +3 -60
- package/lib/components/OrderedList/OrderedList.d.ts +39 -0
- package/lib/components/OrderedList/OrderedList.js +7 -19
- package/lib/components/OrderedList/index.d.ts +7 -0
- package/lib/components/OverflowMenu/OverflowMenu.js +65 -86
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +6 -23
- package/lib/components/OverflowMenuV2/index.js +0 -5
- package/lib/components/Pagination/Pagination.Skeleton.js +0 -2
- package/lib/components/Pagination/Pagination.js +11 -47
- package/lib/components/Pagination/experimental/PageSelector.js +0 -10
- package/lib/components/Pagination/experimental/Pagination.js +2 -67
- package/lib/components/PaginationNav/PaginationNav.js +15 -78
- package/lib/components/Popover/index.d.ts +14 -8
- package/lib/components/Popover/index.js +44 -48
- package/lib/components/PrimaryButton/PrimaryButton.js +0 -1
- package/lib/components/ProgressBar/ProgressBar.js +0 -15
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +0 -4
- package/lib/components/ProgressIndicator/ProgressIndicator.js +2 -40
- package/lib/components/RadioButton/RadioButton.Skeleton.js +0 -1
- package/lib/components/RadioButton/RadioButton.js +0 -13
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js +3 -23
- package/lib/components/RadioTile/RadioTile.js +0 -12
- package/lib/components/Search/Search.Skeleton.js +0 -2
- package/lib/components/Search/Search.js +1 -28
- package/lib/components/SecondaryButton/SecondaryButton.js +0 -1
- package/lib/components/Select/Select.Skeleton.js +0 -2
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/Select.js +6 -33
- package/lib/components/SelectItem/SelectItem.js +0 -5
- package/lib/components/SelectItemGroup/SelectItemGroup.d.ts +0 -1
- package/lib/components/SelectItemGroup/SelectItemGroup.js +1 -26
- package/lib/components/SkeletonIcon/SkeletonIcon.js +0 -2
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +0 -1
- package/lib/components/SkeletonText/SkeletonText.js +0 -12
- package/lib/components/Slider/Slider.Skeleton.js +0 -2
- package/lib/components/Slider/Slider.d.ts +0 -1
- package/lib/components/Slider/Slider.js +112 -154
- package/lib/components/Stack/Stack.js +1 -8
- package/lib/components/StructuredList/StructuredList.Skeleton.js +0 -5
- package/lib/components/StructuredList/StructuredList.js +1 -25
- package/lib/components/Switch/IconSwitch.js +0 -18
- package/lib/components/Switch/Switch.js +0 -11
- package/lib/components/TabContent/TabContent.js +2 -6
- package/lib/components/Tabs/Tabs.Skeleton.js +0 -4
- package/lib/components/Tabs/Tabs.js +133 -102
- package/lib/components/Tabs/usePressable.js +18 -31
- package/lib/components/Tag/Tag.Skeleton.js +0 -2
- package/lib/components/Tag/Tag.js +0 -15
- package/lib/components/Text/Text.js +5 -18
- package/lib/components/Text/TextDirection.js +0 -3
- package/lib/components/Text/TextDirectionContext.js +0 -1
- package/lib/components/Text/createTextComponent.js +0 -3
- package/lib/components/TextArea/TextArea.Skeleton.js +0 -2
- package/lib/components/TextArea/TextArea.js +10 -32
- package/lib/components/TextInput/ControlledPasswordInput.js +0 -20
- package/lib/components/TextInput/PasswordInput.js +0 -25
- package/lib/components/TextInput/TextInput.Skeleton.js +0 -2
- package/lib/components/TextInput/TextInput.d.ts +1 -1
- package/lib/components/TextInput/TextInput.js +5 -52
- package/lib/components/TextInput/util.js +3 -5
- package/lib/components/Theme/index.js +1 -6
- package/lib/components/Tile/Tile.js +31 -58
- package/lib/components/TileGroup/TileGroup.js +1 -22
- package/lib/components/TimePicker/TimePicker.js +6 -32
- package/lib/components/TimePickerSelect/TimePickerSelect.js +2 -5
- package/lib/components/Toggle/Toggle.Skeleton.js +0 -8
- package/lib/components/Toggle/Toggle.js +0 -16
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +0 -7
- package/lib/components/Toggletip/index.d.ts +148 -0
- package/lib/components/Toggletip/index.js +20 -44
- package/lib/components/Tooltip/DefinitionTooltip.js +0 -11
- package/lib/components/Tooltip/Tooltip.d.ts +1 -1
- package/lib/components/Tooltip/Tooltip.js +4 -21
- package/lib/components/TreeView/TreeNode.js +21 -66
- package/lib/components/TreeView/TreeView.js +11 -67
- package/lib/components/UIShell/Content.js +2 -4
- package/lib/components/UIShell/Header.js +0 -2
- package/lib/components/UIShell/HeaderContainer.d.ts +33 -0
- package/lib/components/UIShell/HeaderContainer.js +13 -11
- package/lib/components/UIShell/HeaderGlobalAction.js +0 -6
- package/lib/components/UIShell/HeaderGlobalBar.js +0 -1
- package/lib/components/UIShell/HeaderMenu.js +32 -31
- package/lib/components/UIShell/HeaderMenuButton.js +2 -4
- package/lib/components/UIShell/HeaderMenuItem.js +0 -8
- package/lib/components/UIShell/HeaderName.js +0 -5
- package/lib/components/UIShell/HeaderNavigation.js +0 -2
- package/lib/components/UIShell/HeaderPanel.js +0 -2
- package/lib/components/UIShell/HeaderSideNavItems.js +0 -2
- package/lib/components/UIShell/Link.js +2 -3
- package/lib/components/UIShell/SideNav.d.ts +3 -1
- package/lib/components/UIShell/SideNav.js +43 -35
- package/lib/components/UIShell/SideNavDetails.js +0 -3
- package/lib/components/UIShell/SideNavDivider.js +0 -1
- package/lib/components/UIShell/SideNavFooter.js +1 -4
- package/lib/components/UIShell/SideNavHeader.js +0 -4
- package/lib/components/UIShell/SideNavIcon.js +0 -3
- package/lib/components/UIShell/SideNavItem.js +0 -3
- package/lib/components/UIShell/SideNavItems.js +2 -6
- package/lib/components/UIShell/SideNavLink.js +3 -7
- package/lib/components/UIShell/SideNavLinkText.js +0 -2
- package/lib/components/UIShell/SideNavMenu.js +0 -16
- package/lib/components/UIShell/SideNavMenuItem.js +0 -2
- package/lib/components/UIShell/SideNavSwitcher.js +2 -5
- package/lib/components/UIShell/SkipToContent.d.ts +32 -0
- package/lib/components/UIShell/SkipToContent.js +8 -15
- package/lib/components/UIShell/Switcher.js +0 -2
- package/lib/components/UIShell/SwitcherDivider.js +0 -1
- package/lib/components/UIShell/SwitcherItem.js +0 -3
- package/lib/components/UnorderedList/UnorderedList.d.ts +34 -0
- package/lib/components/UnorderedList/UnorderedList.js +6 -16
- package/lib/components/UnorderedList/index.d.ts +7 -0
- package/lib/index.js +42 -43
- package/lib/internal/ClickListener.js +3 -13
- package/lib/internal/FloatingMenu.js +57 -63
- package/lib/internal/OptimizedResize.js +6 -12
- package/lib/internal/Selection.js +2 -25
- package/lib/internal/createClassWrapper.js +0 -2
- package/lib/internal/deprecateFieldOnObject.js +0 -4
- package/lib/internal/focus/index.js +0 -1
- package/lib/internal/keyboard/keys.js +2 -1
- package/lib/internal/keyboard/match.js +1 -6
- package/lib/internal/keyboard/navigation.js +8 -7
- package/lib/internal/useAnnouncer.js +0 -1
- package/lib/internal/useAttachedMenu.js +1 -9
- package/lib/internal/useControllableState.js +6 -13
- package/lib/internal/useDelayedState.js +2 -4
- package/lib/internal/useEffectOnce.js +0 -1
- package/lib/internal/useEvent.js +61 -2
- package/lib/internal/useId.js +2 -5
- package/lib/internal/useIsomorphicEffect.js +1 -0
- package/lib/internal/useMergedRefs.js +2 -2
- package/lib/internal/useNoInteractiveChildren.js +2 -13
- package/lib/internal/useNormalizedInputProps.js +0 -3
- package/lib/internal/useSavedCallback.js +1 -2
- package/lib/internal/warning.js +0 -3
- package/lib/internal/wrapFocus.js +1 -8
- package/lib/prop-types/deprecate.js +2 -5
- package/lib/prop-types/isRequiredOneOf.js +2 -5
- package/lib/prop-types/requiredIfGivenPropIsTruthy.js +0 -2
- package/lib/tools/array.js +0 -3
- package/lib/tools/events.js +0 -3
- package/lib/tools/mergeRefs.js +0 -2
- package/lib/tools/wrapComponent.js +2 -5
- package/package.json +9 -9
- package/es/components/Tab/Tab.js +0 -185
- package/es/components/Tab/index.js +0 -14
- package/es/components/TimePickerSelect/index.js +0 -13
- package/lib/components/Form/index.js +0 -17
- package/lib/components/Tab/Tab.js +0 -214
- package/lib/components/Tab/index.js +0 -39
- package/lib/components/TimePickerSelect/index.js +0 -38
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2023
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
interface HeaderContainerRenderProps {
|
|
10
|
+
isSideNavExpanded: boolean;
|
|
11
|
+
onClickSideNavExpand: () => void;
|
|
12
|
+
}
|
|
13
|
+
interface HeaderContainerProps {
|
|
14
|
+
isSideNavExpanded?: boolean;
|
|
15
|
+
render: React.ComponentType<HeaderContainerRenderProps>;
|
|
16
|
+
}
|
|
17
|
+
declare function HeaderContainer({ render: Children, isSideNavExpanded, }: HeaderContainerProps): JSX.Element;
|
|
18
|
+
declare namespace HeaderContainer {
|
|
19
|
+
var propTypes: {
|
|
20
|
+
/**
|
|
21
|
+
* Optionally provide a custom class name that is applied to the underlying <header>
|
|
22
|
+
*/
|
|
23
|
+
isSideNavExpanded: PropTypes.Requireable<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* A function or component that is passed an object parameter with two
|
|
26
|
+
* properties: `isSideNavExpanded` and `onClickSideNavExpand`. The function or
|
|
27
|
+
* component can then use those properties to within the components it
|
|
28
|
+
* returns, such as with the HeaderMenuButton and SideNav components.
|
|
29
|
+
*/
|
|
30
|
+
render: PropTypes.Validator<NonNullable<PropTypes.ReactComponentLike>>;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export default HeaderContainer;
|
|
@@ -20,10 +20,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function HeaderContainer(_ref) {
|
|
24
24
|
let {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
render: Children,
|
|
26
|
+
isSideNavExpanded = false
|
|
27
27
|
} = _ref;
|
|
28
28
|
//state for expandable sidenav
|
|
29
29
|
const [isSideNavExpandedState, setIsSideNavExpandedState] = React.useState(isSideNavExpanded);
|
|
@@ -39,17 +39,19 @@ const HeaderContainer = _ref => {
|
|
|
39
39
|
isSideNavExpanded: isSideNavExpandedState,
|
|
40
40
|
onClickSideNavExpand: handleHeaderMenuButtonClick
|
|
41
41
|
});
|
|
42
|
-
}
|
|
43
|
-
|
|
42
|
+
}
|
|
44
43
|
HeaderContainer.propTypes = {
|
|
45
44
|
/**
|
|
46
45
|
* Optionally provide a custom class name that is applied to the underlying <header>
|
|
47
46
|
*/
|
|
48
|
-
isSideNavExpanded: PropTypes__default["default"].bool
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
isSideNavExpanded: PropTypes__default["default"].bool,
|
|
48
|
+
/**
|
|
49
|
+
* A function or component that is passed an object parameter with two
|
|
50
|
+
* properties: `isSideNavExpanded` and `onClickSideNavExpand`. The function or
|
|
51
|
+
* component can then use those properties to within the components it
|
|
52
|
+
* returns, such as with the HeaderMenuButton and SideNav components.
|
|
53
|
+
*/
|
|
54
|
+
render: PropTypes__default["default"].elementType.isRequired
|
|
52
55
|
};
|
|
53
|
-
var HeaderContainer$1 = HeaderContainer;
|
|
54
56
|
|
|
55
|
-
exports["default"] = HeaderContainer
|
|
57
|
+
exports["default"] = HeaderContainer;
|
|
@@ -31,7 +31,6 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
31
31
|
*
|
|
32
32
|
* Note: children passed to this component should be an Icon.
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
34
|
const HeaderGlobalAction = /*#__PURE__*/React__default["default"].forwardRef(function HeaderGlobalAction(_ref, ref) {
|
|
36
35
|
let {
|
|
37
36
|
'aria-label': ariaLabel,
|
|
@@ -69,29 +68,24 @@ HeaderGlobalAction.propTypes = {
|
|
|
69
68
|
* Required props for the accessibility label of the button
|
|
70
69
|
*/
|
|
71
70
|
...AriaPropTypes.AriaLabelPropType,
|
|
72
|
-
|
|
73
71
|
/**
|
|
74
72
|
* Provide a custom icon for this global action
|
|
75
73
|
*/
|
|
76
74
|
children: PropTypes__default["default"].node.isRequired,
|
|
77
|
-
|
|
78
75
|
/**
|
|
79
76
|
* Optionally provide a custom class name that is applied to the underlying
|
|
80
77
|
* button
|
|
81
78
|
*/
|
|
82
79
|
className: PropTypes__default["default"].string,
|
|
83
|
-
|
|
84
80
|
/**
|
|
85
81
|
* Specify whether the action is currently active
|
|
86
82
|
*/
|
|
87
83
|
isActive: PropTypes__default["default"].bool,
|
|
88
|
-
|
|
89
84
|
/**
|
|
90
85
|
* Optionally provide an onClick handler that is called when the underlying
|
|
91
86
|
* button fires it's onclick event
|
|
92
87
|
*/
|
|
93
88
|
onClick: PropTypes__default["default"].func,
|
|
94
|
-
|
|
95
89
|
/**
|
|
96
90
|
* Specify the alignment of the tooltip to the icon-only button.
|
|
97
91
|
* Can be one of: start, center, or end.
|
|
@@ -14,7 +14,6 @@ var wrapComponent = require('../../tools/wrapComponent.js');
|
|
|
14
14
|
/**
|
|
15
15
|
* Generic container for `HeaderGlobalAction` components
|
|
16
16
|
*/
|
|
17
|
-
|
|
18
17
|
var HeaderGlobalBar = wrapComponent["default"]({
|
|
19
18
|
name: 'HeaderGlobalBar',
|
|
20
19
|
className: prefix => `${prefix}--header__global`,
|
|
@@ -32,27 +32,21 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
32
32
|
* with managing focus. It also passes along refs to each child so that it can
|
|
33
33
|
* help manage focus state of its children.
|
|
34
34
|
*/
|
|
35
|
-
|
|
36
35
|
class HeaderMenu extends React__default["default"].Component {
|
|
37
36
|
constructor(props) {
|
|
38
37
|
super(props);
|
|
39
|
-
|
|
40
38
|
_rollupPluginBabelHelpers.defineProperty(this, "_subMenus", /*#__PURE__*/React__default["default"].createRef());
|
|
41
|
-
|
|
42
39
|
_rollupPluginBabelHelpers.defineProperty(this, "handleOnClick", e => {
|
|
43
40
|
const {
|
|
44
41
|
current: subMenusNode
|
|
45
42
|
} = this._subMenus;
|
|
46
|
-
|
|
47
43
|
if (!subMenusNode || !subMenusNode.contains(e.target)) {
|
|
48
44
|
e.preventDefault();
|
|
49
45
|
}
|
|
50
|
-
|
|
51
46
|
this.setState(prevState => ({
|
|
52
47
|
expanded: !prevState.expanded
|
|
53
48
|
}));
|
|
54
49
|
});
|
|
55
|
-
|
|
56
50
|
_rollupPluginBabelHelpers.defineProperty(this, "handleOnKeyDown", event => {
|
|
57
51
|
// Handle enter or space key for toggling the expanded state of the menu.
|
|
58
52
|
if (match.matches(event, [keys.Enter, keys.Space])) {
|
|
@@ -64,34 +58,27 @@ class HeaderMenu extends React__default["default"].Component {
|
|
|
64
58
|
return;
|
|
65
59
|
}
|
|
66
60
|
});
|
|
67
|
-
|
|
68
61
|
_rollupPluginBabelHelpers.defineProperty(this, "handleOnBlur", event => {
|
|
69
62
|
// Rough guess for a blur event that is triggered outside of our menu or
|
|
70
63
|
// menubar context
|
|
71
64
|
const itemTriggeredBlur = this.items.find(element => element === event.relatedTarget);
|
|
72
|
-
|
|
73
65
|
if (event.relatedTarget && (event.relatedTarget.getAttribute('href') && event.relatedTarget.getAttribute('href') !== '#' || itemTriggeredBlur)) {
|
|
74
66
|
return;
|
|
75
67
|
}
|
|
76
|
-
|
|
77
68
|
this.setState({
|
|
78
69
|
expanded: false,
|
|
79
70
|
selectedIndex: null
|
|
80
71
|
});
|
|
81
72
|
});
|
|
82
|
-
|
|
83
73
|
_rollupPluginBabelHelpers.defineProperty(this, "handleMenuButtonRef", node => {
|
|
84
74
|
if (this.props.focusRef) {
|
|
85
75
|
this.props.focusRef(node);
|
|
86
76
|
}
|
|
87
|
-
|
|
88
77
|
this.menuButtonRef = node;
|
|
89
78
|
});
|
|
90
|
-
|
|
91
79
|
_rollupPluginBabelHelpers.defineProperty(this, "handleItemRef", index => node => {
|
|
92
80
|
this.items[index] = node;
|
|
93
81
|
});
|
|
94
|
-
|
|
95
82
|
_rollupPluginBabelHelpers.defineProperty(this, "handleMenuClose", event => {
|
|
96
83
|
// Handle ESC keydown for closing the expanded menu.
|
|
97
84
|
if (match.matches(event, [keys.Escape]) && this.state.expanded) {
|
|
@@ -100,13 +87,13 @@ class HeaderMenu extends React__default["default"].Component {
|
|
|
100
87
|
this.setState(() => ({
|
|
101
88
|
expanded: false,
|
|
102
89
|
selectedIndex: null
|
|
103
|
-
}));
|
|
90
|
+
}));
|
|
104
91
|
|
|
92
|
+
// Return focus to menu button when the user hits ESC.
|
|
105
93
|
this.menuButtonRef.focus();
|
|
106
94
|
return;
|
|
107
95
|
}
|
|
108
96
|
});
|
|
109
|
-
|
|
110
97
|
_rollupPluginBabelHelpers.defineProperty(this, "_renderMenuItem", (item, index) => {
|
|
111
98
|
if ( /*#__PURE__*/React__default["default"].isValidElement(item)) {
|
|
112
99
|
return /*#__PURE__*/React__default["default"].cloneElement(item, {
|
|
@@ -114,7 +101,6 @@ class HeaderMenu extends React__default["default"].Component {
|
|
|
114
101
|
});
|
|
115
102
|
}
|
|
116
103
|
});
|
|
117
|
-
|
|
118
104
|
this.state = {
|
|
119
105
|
// Used to manage the expansion state of the menu
|
|
120
106
|
expanded: false,
|
|
@@ -124,10 +110,34 @@ class HeaderMenu extends React__default["default"].Component {
|
|
|
124
110
|
};
|
|
125
111
|
this.items = [];
|
|
126
112
|
}
|
|
113
|
+
|
|
127
114
|
/**
|
|
128
115
|
* Toggle the expanded state of the menu on click.
|
|
129
116
|
*/
|
|
130
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Keyboard event handler for the entire menu.
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Handle our blur event from our underlying menuitems. Will mostly be used
|
|
124
|
+
* for toggling the expansion status of our menu in response to a user
|
|
125
|
+
* clicking off of the menu or menubar.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* ref handler for our menu button. If we are supplied a `focusRef` prop, we also
|
|
130
|
+
* forward along the node.
|
|
131
|
+
*
|
|
132
|
+
* This is useful when this component is a child in a
|
|
133
|
+
* menu or menubar as it will allow the parent to explicitly focus the menu
|
|
134
|
+
* button node when that child should receive focus.
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Handles individual menuitem refs. We assign them to a class instance
|
|
139
|
+
* property so that we can properly manage focus of our children.
|
|
140
|
+
*/
|
|
131
141
|
|
|
132
142
|
render() {
|
|
133
143
|
const prefix = this.context;
|
|
@@ -144,6 +154,7 @@ class HeaderMenu extends React__default["default"].Component {
|
|
|
144
154
|
// eslint-disable-line no-unused-vars
|
|
145
155
|
...rest
|
|
146
156
|
} = this.props;
|
|
157
|
+
const hasActiveChildren = React__default["default"].Children.toArray(children).some(child => child.props.isActive || child.props.isCurrentPage);
|
|
147
158
|
const accessibilityLabel = {
|
|
148
159
|
'aria-label': ariaLabel,
|
|
149
160
|
'aria-labelledby': ariaLabelledBy
|
|
@@ -158,15 +169,16 @@ class HeaderMenu extends React__default["default"].Component {
|
|
|
158
169
|
[`${prefix}--header__menu-title`]: true,
|
|
159
170
|
// We set the current class only if `isActive` is passed in and we do
|
|
160
171
|
// not have an `aria-current="page"` set for the breadcrumb item
|
|
161
|
-
[`${prefix}--header__menu-item--current`]: isActivePage
|
|
162
|
-
});
|
|
172
|
+
[`${prefix}--header__menu-item--current`]: isActivePage || hasActiveChildren && !this.state.expanded
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
// Notes on eslint comments and based on the examples in:
|
|
163
176
|
// https://www.w3.org/TR/wai-aria-practices/examples/menubar/menubar-1/menubar-1.html#
|
|
164
177
|
// - The focus is handled by the <a> menuitem, onMouseOver is for mouse
|
|
165
178
|
// users
|
|
166
179
|
// - aria-haspopup can definitely have the value "menu"
|
|
167
180
|
// - aria-expanded is on their example node with role="menuitem"
|
|
168
181
|
// - href can be set to javascript:void(0), ideally this will be a button
|
|
169
|
-
|
|
170
182
|
return /*#__PURE__*/React__default["default"].createElement("li", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
|
171
183
|
className: itemClassName,
|
|
172
184
|
onKeyDown: this.handleMenuClose,
|
|
@@ -189,61 +201,50 @@ class HeaderMenu extends React__default["default"].Component {
|
|
|
189
201
|
className: `${prefix}--header__menu`
|
|
190
202
|
}), React__default["default"].Children.map(children, this._renderMenuItem)));
|
|
191
203
|
}
|
|
204
|
+
|
|
192
205
|
/**
|
|
193
206
|
* We capture the `ref` for each child inside of `this.items` to properly
|
|
194
207
|
* manage focus. In addition to this focus management, all items receive a
|
|
195
208
|
* `tabIndex: -1` so the user won't hit a large number of items in their tab
|
|
196
209
|
* sequence when they might not want to go through all the items.
|
|
197
210
|
*/
|
|
198
|
-
|
|
199
|
-
|
|
200
211
|
}
|
|
201
|
-
|
|
202
212
|
_rollupPluginBabelHelpers.defineProperty(HeaderMenu, "propTypes", {
|
|
203
213
|
/**
|
|
204
214
|
* Required props for the accessibility label of the menu
|
|
205
215
|
*/
|
|
206
216
|
...AriaPropTypes.AriaLabelPropType,
|
|
207
|
-
|
|
208
217
|
/**
|
|
209
218
|
* Optionally provide a custom class to apply to the underlying `<li>` node
|
|
210
219
|
*/
|
|
211
220
|
className: PropTypes__default["default"].string,
|
|
212
|
-
|
|
213
221
|
/**
|
|
214
222
|
* Provide a custom ref handler for the menu button
|
|
215
223
|
*/
|
|
216
224
|
focusRef: PropTypes__default["default"].func,
|
|
217
|
-
|
|
218
225
|
/**
|
|
219
226
|
* Applies selected styles to the item if a user sets this to true and `aria-current !== 'page'`.
|
|
220
227
|
*/
|
|
221
228
|
isActive: PropTypes__default["default"].bool,
|
|
222
|
-
|
|
223
229
|
/**
|
|
224
230
|
* Applies selected styles to the item if a user sets this to true and `aria-current !== 'page'`.
|
|
225
231
|
* @deprecated Please use `isActive` instead. This will be removed in the next major release.
|
|
226
232
|
*/
|
|
227
233
|
isCurrentPage: deprecate["default"](PropTypes__default["default"].bool, 'The `isCurrentPage` prop for `HeaderMenu` has ' + 'been deprecated. Please use `isActive` instead. This will be removed in the next major release.'),
|
|
228
|
-
|
|
229
234
|
/**
|
|
230
235
|
* Provide a label for the link text
|
|
231
236
|
*/
|
|
232
237
|
menuLinkName: PropTypes__default["default"].string.isRequired,
|
|
233
|
-
|
|
234
238
|
/**
|
|
235
239
|
* Optional component to render instead of string
|
|
236
240
|
*/
|
|
237
241
|
renderMenuContent: PropTypes__default["default"].func,
|
|
238
|
-
|
|
239
242
|
/**
|
|
240
243
|
* Optionally provide a tabIndex for the underlying menu button
|
|
241
244
|
*/
|
|
242
245
|
tabIndex: PropTypes__default["default"].number
|
|
243
246
|
});
|
|
244
|
-
|
|
245
247
|
_rollupPluginBabelHelpers.defineProperty(HeaderMenu, "contextType", usePrefix.PrefixContext);
|
|
246
|
-
|
|
247
248
|
const HeaderMenuForwardRef = /*#__PURE__*/React__default["default"].forwardRef((props, ref) => {
|
|
248
249
|
return /*#__PURE__*/React__default["default"].createElement(HeaderMenu, _rollupPluginBabelHelpers["extends"]({}, props, {
|
|
249
250
|
focusRef: ref
|
|
@@ -36,7 +36,8 @@ function HeaderMenuButton(_ref) {
|
|
|
36
36
|
...rest
|
|
37
37
|
} = _ref;
|
|
38
38
|
const prefix = usePrefix.usePrefix();
|
|
39
|
-
const className = cx__default["default"]({
|
|
39
|
+
const className = cx__default["default"]({
|
|
40
|
+
...(typeof customClassName === 'string' && {
|
|
40
41
|
[customClassName]: !!customClassName
|
|
41
42
|
}),
|
|
42
43
|
[`${prefix}--header__action`]: true,
|
|
@@ -64,18 +65,15 @@ HeaderMenuButton.propTypes = {
|
|
|
64
65
|
* Required props for accessibility label on the underlying menu button
|
|
65
66
|
*/
|
|
66
67
|
...AriaPropTypes.AriaLabelPropType,
|
|
67
|
-
|
|
68
68
|
/**
|
|
69
69
|
* Optionally provide a custom class name that is applied to the underlying
|
|
70
70
|
* button
|
|
71
71
|
*/
|
|
72
72
|
className: PropTypes__default["default"].string,
|
|
73
|
-
|
|
74
73
|
/**
|
|
75
74
|
* Specify whether the menu button is "active".
|
|
76
75
|
*/
|
|
77
76
|
isActive: PropTypes__default["default"].bool,
|
|
78
|
-
|
|
79
77
|
/**
|
|
80
78
|
* Optionally provide an onClick handler that is called when the underlying
|
|
81
79
|
* button fires it's onclick event
|
|
@@ -35,11 +35,9 @@ const HeaderMenuItem = /*#__PURE__*/React__default["default"].forwardRef(functio
|
|
|
35
35
|
...rest
|
|
36
36
|
} = _ref;
|
|
37
37
|
const prefix = usePrefix.usePrefix();
|
|
38
|
-
|
|
39
38
|
if (isCurrentPage) {
|
|
40
39
|
isActive = isCurrentPage;
|
|
41
40
|
}
|
|
42
|
-
|
|
43
41
|
const linkClassName = cx__default["default"]({
|
|
44
42
|
[`${prefix}--header__menu-item`]: true,
|
|
45
43
|
// We set the current class only if `isActive` is passed in and we do
|
|
@@ -65,35 +63,29 @@ HeaderMenuItem.propTypes = {
|
|
|
65
63
|
* custom `Link` element
|
|
66
64
|
*/
|
|
67
65
|
...Link.LinkPropTypes,
|
|
68
|
-
|
|
69
66
|
/**
|
|
70
67
|
* Pass in children that are either a string or can be read as a string by
|
|
71
68
|
* screen readers
|
|
72
69
|
*/
|
|
73
70
|
children: PropTypes__default["default"].node.isRequired,
|
|
74
|
-
|
|
75
71
|
/**
|
|
76
72
|
* Optionally provide a custom class to apply to the underlying `<li>` node
|
|
77
73
|
*/
|
|
78
74
|
className: PropTypes__default["default"].string,
|
|
79
|
-
|
|
80
75
|
/**
|
|
81
76
|
* Applies selected styles to the item if a user sets this to true and `aria-current !== 'page'`.
|
|
82
77
|
*/
|
|
83
78
|
isActive: PropTypes__default["default"].bool,
|
|
84
|
-
|
|
85
79
|
/**
|
|
86
80
|
* Applies selected styles to the item if a user sets this to true and `aria-current !== 'page'`.
|
|
87
81
|
* @deprecated Please use `isActive` instead. This will be removed in the next major release.
|
|
88
82
|
*/
|
|
89
83
|
isCurrentPage: deprecate["default"](PropTypes__default["default"].bool, 'The `isCurrentPage` prop for `HeaderMenuItem` has ' + 'been deprecated. Please use `isActive` instead. This will be removed in the next major release.'),
|
|
90
|
-
|
|
91
84
|
/**
|
|
92
85
|
* Optionally supply a role for the underlying `<li>` node. Useful for resetting
|
|
93
86
|
* `<ul>` semantics for menus.
|
|
94
87
|
*/
|
|
95
88
|
role: PropTypes__default["default"].string,
|
|
96
|
-
|
|
97
89
|
/**
|
|
98
90
|
* Specify the tab index of the Link
|
|
99
91
|
*/
|
|
@@ -39,30 +39,25 @@ function HeaderName(_ref) {
|
|
|
39
39
|
className: `${selectorPrefix}--header__name--prefix`
|
|
40
40
|
}, prefix), "\xA0"), children);
|
|
41
41
|
}
|
|
42
|
-
|
|
43
42
|
HeaderName.propTypes = {
|
|
44
43
|
/**
|
|
45
44
|
* Pass in a valid `element` to replace the underlying `<a>` tag with a
|
|
46
45
|
* custom `Link` element
|
|
47
46
|
*/
|
|
48
47
|
...Link.LinkPropTypes,
|
|
49
|
-
|
|
50
48
|
/**
|
|
51
49
|
* Pass in children that are either a string or can be read as a string by
|
|
52
50
|
* screen readers
|
|
53
51
|
*/
|
|
54
52
|
children: PropTypes__default["default"].node.isRequired,
|
|
55
|
-
|
|
56
53
|
/**
|
|
57
54
|
* Optionally provide a custom class to apply to the underlying `<li>` node
|
|
58
55
|
*/
|
|
59
56
|
className: PropTypes__default["default"].string,
|
|
60
|
-
|
|
61
57
|
/**
|
|
62
58
|
* Provide an href for the name to link to
|
|
63
59
|
*/
|
|
64
60
|
href: PropTypes__default["default"].string,
|
|
65
|
-
|
|
66
61
|
/**
|
|
67
62
|
* Optionally specify a prefix to your header name. Useful for companies, for
|
|
68
63
|
* example: IBM [Product Name] versus solely [Product Name]
|
|
@@ -45,13 +45,11 @@ HeaderNavigation.propTypes = {
|
|
|
45
45
|
* Required props for accessibility label on the underlying menu
|
|
46
46
|
*/
|
|
47
47
|
...AriaPropTypes.AriaLabelPropType,
|
|
48
|
-
|
|
49
48
|
/**
|
|
50
49
|
* Provide valid children of HeaderNavigation, for example `HeaderMenuItem`
|
|
51
50
|
* or `HeaderMenu`
|
|
52
51
|
*/
|
|
53
52
|
children: PropTypes__default["default"].node,
|
|
54
|
-
|
|
55
53
|
/**
|
|
56
54
|
* Optionally provide a custom class to apply to the underlying <nav> node
|
|
57
55
|
*/
|
|
@@ -51,12 +51,10 @@ HeaderPanel.propTypes = {
|
|
|
51
51
|
* Required props for accessibility label on the underlying menu
|
|
52
52
|
*/
|
|
53
53
|
...AriaPropTypes.AriaLabelPropType,
|
|
54
|
-
|
|
55
54
|
/**
|
|
56
55
|
* Optionally provide a custom class to apply to the underlying `<li>` node
|
|
57
56
|
*/
|
|
58
57
|
className: PropTypes__default["default"].string,
|
|
59
|
-
|
|
60
58
|
/**
|
|
61
59
|
* Specify whether the panel is expanded
|
|
62
60
|
*/
|
|
@@ -40,13 +40,11 @@ HeaderSideNavItems.propTypes = {
|
|
|
40
40
|
* The child nodes to be rendered
|
|
41
41
|
*/
|
|
42
42
|
children: PropTypes__default["default"].node,
|
|
43
|
-
|
|
44
43
|
/**
|
|
45
44
|
* Optionally provide a custom class name that is applied to the underlying
|
|
46
45
|
* button
|
|
47
46
|
*/
|
|
48
47
|
className: PropTypes__default["default"].string,
|
|
49
|
-
|
|
50
48
|
/**
|
|
51
49
|
* Optionally specify if container will have a bottom divider to differentiate
|
|
52
50
|
* between original sidenav items and header menu items. False by default.
|
|
@@ -23,7 +23,6 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
23
23
|
* in their own components to support use-cases like `react-router` or
|
|
24
24
|
* `@reach/router`
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
26
|
const Link = /*#__PURE__*/React__default["default"].forwardRef(function Link(props, ref) {
|
|
28
27
|
const {
|
|
29
28
|
element,
|
|
@@ -31,7 +30,8 @@ const Link = /*#__PURE__*/React__default["default"].forwardRef(function Link(pro
|
|
|
31
30
|
// eslint-disable-line no-unused-vars
|
|
32
31
|
...rest
|
|
33
32
|
} = props;
|
|
34
|
-
return /*#__PURE__*/React__default["default"].createElement(element, {
|
|
33
|
+
return /*#__PURE__*/React__default["default"].createElement(element, {
|
|
34
|
+
...rest,
|
|
35
35
|
ref
|
|
36
36
|
});
|
|
37
37
|
});
|
|
@@ -41,7 +41,6 @@ const LinkPropTypes = {
|
|
|
41
41
|
* alternative tag names or custom components like `Link` from `react-router`.
|
|
42
42
|
*/
|
|
43
43
|
element: PropTypes__default["default"].elementType,
|
|
44
|
-
|
|
45
44
|
/**
|
|
46
45
|
* Property to indicate if the side nav container is open (or not). Use to
|
|
47
46
|
* keep local state and styling in step with the SideNav expansion state.
|
|
@@ -10,12 +10,14 @@ interface SideNavProps extends ComponentProps<'nav'> {
|
|
|
10
10
|
defaultExpanded?: boolean | undefined;
|
|
11
11
|
isChildOfHeader?: boolean | undefined;
|
|
12
12
|
onToggle?: (event: FocusEvent<HTMLElement> | KeyboardEvent<HTMLElement> | boolean, value: boolean) => void | undefined;
|
|
13
|
+
href?: string | undefined;
|
|
13
14
|
isFixedNav?: boolean | undefined;
|
|
14
15
|
isRail?: boolean | undefined;
|
|
15
16
|
isPersistent?: boolean | undefined;
|
|
16
17
|
addFocusListeners?: boolean | undefined;
|
|
17
18
|
addMouseListeners?: boolean | undefined;
|
|
18
19
|
onOverlayClick?: MouseEventHandler<HTMLDivElement> | undefined;
|
|
20
|
+
onSideNavBlur?: () => void | undefined;
|
|
19
21
|
}
|
|
20
|
-
declare const SideNav: React.ForwardRefExoticComponent<Pick<SideNavProps, "children" | "className" | "slot" | "style" | "title" | "dir" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "onToggle" | "key" | "id" | "onAnimationEnd" | "aria-controls" | "aria-expanded" | "onClick" | "onKeyDown" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "expanded" | "defaultExpanded" | "isChildOfHeader" | "isFixedNav" | "isRail" | "isPersistent" | "addFocusListeners" | "addMouseListeners" | "onOverlayClick"> & React.RefAttributes<HTMLElement>>;
|
|
22
|
+
declare const SideNav: React.ForwardRefExoticComponent<Pick<SideNavProps, "children" | "className" | "slot" | "style" | "title" | "dir" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "onToggle" | "key" | "id" | "onAnimationEnd" | "aria-controls" | "aria-expanded" | "onClick" | "onKeyDown" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "href" | "expanded" | "defaultExpanded" | "isChildOfHeader" | "isFixedNav" | "isRail" | "isPersistent" | "addFocusListeners" | "addMouseListeners" | "onOverlayClick" | "onSideNavBlur"> & React.RefAttributes<HTMLElement>>;
|
|
21
23
|
export default SideNav;
|