@carbon/react 1.29.1 → 1.30.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 +153 -175
- 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 +5 -12
- package/es/components/FileUploader/Filename.js +6 -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 +1 -46
- 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 +0 -1
- 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 +153 -175
- 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 +5 -31
- package/lib/components/FileUploader/Filename.js +6 -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 +1 -46
- 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 +0 -1
- 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
|
@@ -21,7 +21,6 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
22
|
|
|
23
23
|
/** @type any */
|
|
24
|
-
|
|
25
24
|
const InlineCheckbox = /*#__PURE__*/React__default["default"].forwardRef(function InlineCheckbox(props, forwardRef) {
|
|
26
25
|
const {
|
|
27
26
|
['aria-label']: ariaLabel,
|
|
@@ -53,11 +52,9 @@ const InlineCheckbox = /*#__PURE__*/React__default["default"].forwardRef(functio
|
|
|
53
52
|
ref,
|
|
54
53
|
type: 'checkbox'
|
|
55
54
|
};
|
|
56
|
-
|
|
57
55
|
if (indeterminate) {
|
|
58
56
|
inputProps.checked = false;
|
|
59
57
|
}
|
|
60
|
-
|
|
61
58
|
React.useEffect(() => {
|
|
62
59
|
inputRef.current.indeterminate = indeterminate;
|
|
63
60
|
}, [indeterminate]);
|
|
@@ -65,7 +62,6 @@ const InlineCheckbox = /*#__PURE__*/React__default["default"].forwardRef(functio
|
|
|
65
62
|
className: `${prefix}--checkbox--inline`
|
|
66
63
|
}, /*#__PURE__*/React__default["default"].createElement("input", inputProps),
|
|
67
64
|
/*#__PURE__*/
|
|
68
|
-
|
|
69
65
|
/* eslint-disable jsx-a11y/label-has-for,jsx-a11y/label-has-associated-control,jsx-a11y/click-events-have-key-events,jsx-a11y/no-noninteractive-element-interactions */
|
|
70
66
|
React__default["default"].createElement("label", {
|
|
71
67
|
htmlFor: id,
|
|
@@ -82,53 +78,43 @@ InlineCheckbox.propTypes = {
|
|
|
82
78
|
* Specify the label for the control
|
|
83
79
|
*/
|
|
84
80
|
['aria-label']: PropTypes__default["default"].string.isRequired,
|
|
85
|
-
|
|
86
81
|
/**
|
|
87
82
|
* Deprecated, please use `aria-label` instead.
|
|
88
83
|
* Specify the label for the control
|
|
89
84
|
*/
|
|
90
85
|
ariaLabel: deprecate["default"](PropTypes__default["default"].string.isRequired, 'The `ariaLabel` prop has been deprecated in favor of `aria-label`. This prop will be removed in the next major release.'),
|
|
91
|
-
|
|
92
86
|
/**
|
|
93
87
|
* Specify whether the underlying control is checked, or not
|
|
94
88
|
*/
|
|
95
89
|
checked: PropTypes__default["default"].bool,
|
|
96
|
-
|
|
97
90
|
/**
|
|
98
91
|
* Specify whether the underlying input control should be disabled
|
|
99
92
|
*/
|
|
100
93
|
disabled: PropTypes__default["default"].bool,
|
|
101
|
-
|
|
102
94
|
/**
|
|
103
95
|
* Provide an `id` for the underlying input control
|
|
104
96
|
*/
|
|
105
97
|
id: PropTypes__default["default"].string.isRequired,
|
|
106
|
-
|
|
107
98
|
/**
|
|
108
99
|
* Specify whether the control is in an indterminate state
|
|
109
100
|
*/
|
|
110
101
|
indeterminate: PropTypes__default["default"].bool,
|
|
111
|
-
|
|
112
102
|
/**
|
|
113
103
|
* Provide a `name` for the underlying input control
|
|
114
104
|
*/
|
|
115
105
|
name: PropTypes__default["default"].string.isRequired,
|
|
116
|
-
|
|
117
106
|
/**
|
|
118
107
|
* Provide an optional hook that is called each time the input is updated
|
|
119
108
|
*/
|
|
120
109
|
onChange: PropTypes__default["default"].func,
|
|
121
|
-
|
|
122
110
|
/**
|
|
123
111
|
* Provide a handler that is invoked when a user clicks on the control
|
|
124
112
|
*/
|
|
125
113
|
onClick: PropTypes__default["default"].func,
|
|
126
|
-
|
|
127
114
|
/**
|
|
128
115
|
* Provide a handler that is invoked on the key down event for the control
|
|
129
116
|
*/
|
|
130
117
|
onKeyDown: PropTypes__default["default"].func,
|
|
131
|
-
|
|
132
118
|
/**
|
|
133
119
|
* Provide an optional tooltip for the InlineCheckbox
|
|
134
120
|
*/
|
|
@@ -35,16 +35,13 @@ function InlineLoading(_ref) {
|
|
|
35
35
|
} = _ref;
|
|
36
36
|
const prefix = usePrefix.usePrefix();
|
|
37
37
|
const loadingClasses = cx__default["default"](`${prefix}--inline-loading`, className);
|
|
38
|
-
|
|
39
38
|
const getLoading = () => {
|
|
40
39
|
let iconLabel = iconDescription ? iconDescription : status;
|
|
41
|
-
|
|
42
40
|
if (status === 'error') {
|
|
43
41
|
return /*#__PURE__*/React__default["default"].createElement(iconsReact.ErrorFilled, {
|
|
44
42
|
className: `${prefix}--inline-loading--error`
|
|
45
43
|
}, /*#__PURE__*/React__default["default"].createElement("title", null, iconLabel));
|
|
46
44
|
}
|
|
47
|
-
|
|
48
45
|
if (status === 'finished') {
|
|
49
46
|
setTimeout(() => {
|
|
50
47
|
if (onSuccess) {
|
|
@@ -55,12 +52,10 @@ function InlineLoading(_ref) {
|
|
|
55
52
|
className: `${prefix}--inline-loading__checkmark-container`
|
|
56
53
|
}, /*#__PURE__*/React__default["default"].createElement("title", null, iconLabel));
|
|
57
54
|
}
|
|
58
|
-
|
|
59
55
|
if (status === 'inactive' || status === 'active') {
|
|
60
56
|
if (!iconDescription) {
|
|
61
57
|
iconLabel = status === 'active' ? 'loading' : 'not loading';
|
|
62
58
|
}
|
|
63
|
-
|
|
64
59
|
return /*#__PURE__*/React__default["default"].createElement(Loading["default"], {
|
|
65
60
|
small: true,
|
|
66
61
|
description: iconLabel,
|
|
@@ -68,10 +63,8 @@ function InlineLoading(_ref) {
|
|
|
68
63
|
active: status === 'active'
|
|
69
64
|
});
|
|
70
65
|
}
|
|
71
|
-
|
|
72
66
|
return undefined;
|
|
73
67
|
};
|
|
74
|
-
|
|
75
68
|
const loadingText = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
76
69
|
className: `${prefix}--inline-loading__text`
|
|
77
70
|
}, description);
|
|
@@ -90,28 +83,23 @@ InlineLoading.propTypes = {
|
|
|
90
83
|
* Specify a custom className to be applied to the container node
|
|
91
84
|
*/
|
|
92
85
|
className: PropTypes__default["default"].string,
|
|
93
|
-
|
|
94
86
|
/**
|
|
95
87
|
* Specify the description for the inline loading text
|
|
96
88
|
*/
|
|
97
89
|
description: PropTypes__default["default"].node,
|
|
98
|
-
|
|
99
90
|
/**
|
|
100
91
|
* Specify the description for the inline loading text
|
|
101
92
|
*/
|
|
102
93
|
iconDescription: PropTypes__default["default"].string,
|
|
103
|
-
|
|
104
94
|
/**
|
|
105
95
|
* Provide an optional handler to be invoked when <InlineLoading> is
|
|
106
96
|
* successful
|
|
107
97
|
*/
|
|
108
98
|
onSuccess: PropTypes__default["default"].func,
|
|
109
|
-
|
|
110
99
|
/**
|
|
111
100
|
* Specify the loading status
|
|
112
101
|
*/
|
|
113
102
|
status: PropTypes__default["default"].oneOf(['inactive', 'active', 'finished', 'error']),
|
|
114
|
-
|
|
115
103
|
/**
|
|
116
104
|
* Provide a delay for the `setTimeout` for success
|
|
117
105
|
*/
|
|
@@ -24,12 +24,12 @@ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
|
24
24
|
|
|
25
25
|
const levels = ['one', 'two', 'three'];
|
|
26
26
|
const MAX_LEVEL = levels.length - 1;
|
|
27
|
+
|
|
27
28
|
/**
|
|
28
29
|
* A custom hook that will return information about the current layer. A common
|
|
29
30
|
* field to pull from this is the `level` for the layer that the component that
|
|
30
31
|
* calls this hook is currently in
|
|
31
32
|
*/
|
|
32
|
-
|
|
33
33
|
function useLayer() {
|
|
34
34
|
const level = React__default["default"].useContext(LayerContext.LayerContext);
|
|
35
35
|
return {
|
|
@@ -47,8 +47,8 @@ function Layer(_ref) {
|
|
|
47
47
|
const contextLevel = React__default["default"].useContext(LayerContext.LayerContext);
|
|
48
48
|
const level = overrideLevel ?? contextLevel;
|
|
49
49
|
const prefix = usePrefix.usePrefix();
|
|
50
|
-
const className = cx__default["default"](`${prefix}--layer-${levels[level]}`, customClassName);
|
|
51
|
-
|
|
50
|
+
const className = cx__default["default"](`${prefix}--layer-${levels[level]}`, customClassName);
|
|
51
|
+
// The level should be between 0 and MAX_LEVEL
|
|
52
52
|
const value = Math.max(0, Math.min(level + 1, MAX_LEVEL));
|
|
53
53
|
return /*#__PURE__*/React__default["default"].createElement(LayerContext.LayerContext.Provider, {
|
|
54
54
|
value: value
|
|
@@ -62,18 +62,15 @@ Layer.propTypes = {
|
|
|
62
62
|
* element in the component
|
|
63
63
|
*/
|
|
64
64
|
as: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].string, PropTypes__default["default"].elementType]),
|
|
65
|
-
|
|
66
65
|
/**
|
|
67
66
|
* Provide child elements to be rendered inside of `Theme`
|
|
68
67
|
*/
|
|
69
68
|
children: PropTypes__default["default"].node,
|
|
70
|
-
|
|
71
69
|
/**
|
|
72
70
|
* Provide a custom class name to be used on the outermost element rendered by
|
|
73
71
|
* the component
|
|
74
72
|
*/
|
|
75
73
|
className: PropTypes__default["default"].string,
|
|
76
|
-
|
|
77
74
|
/**
|
|
78
75
|
* Specify the layer level and override any existing levels based on hierarchy
|
|
79
76
|
*/
|
|
@@ -37,19 +37,16 @@ function LayoutDirection(_ref) {
|
|
|
37
37
|
dir: dir
|
|
38
38
|
}, rest), children));
|
|
39
39
|
}
|
|
40
|
-
|
|
41
40
|
LayoutDirection.propTypes = {
|
|
42
41
|
/**
|
|
43
42
|
* Customize the element type used to render the outermost node
|
|
44
43
|
*/
|
|
45
44
|
as: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].string, PropTypes__default["default"].elementType]),
|
|
46
|
-
|
|
47
45
|
/**
|
|
48
46
|
* Provide child elements or components to be rendered inside of this
|
|
49
47
|
* component
|
|
50
48
|
*/
|
|
51
49
|
children: PropTypes__default["default"].node,
|
|
52
|
-
|
|
53
50
|
/**
|
|
54
51
|
* Specify the layout direction of this part of the page
|
|
55
52
|
*/
|
|
@@ -44,16 +44,16 @@ const Link = /*#__PURE__*/React__default["default"].forwardRef(function Link(_re
|
|
|
44
44
|
const linkProps = {
|
|
45
45
|
className,
|
|
46
46
|
rel
|
|
47
|
-
};
|
|
48
|
-
// https://www.scottohara.me/blog/2021/05/28/disabled-links.html
|
|
47
|
+
};
|
|
49
48
|
|
|
49
|
+
// Reference for disabled links:
|
|
50
|
+
// https://www.scottohara.me/blog/2021/05/28/disabled-links.html
|
|
50
51
|
if (!disabled) {
|
|
51
52
|
linkProps.href = href;
|
|
52
53
|
} else {
|
|
53
54
|
linkProps.role = 'link';
|
|
54
55
|
linkProps['aria-disabled'] = true;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
57
|
return /*#__PURE__*/React__default["default"].createElement("a", _rollupPluginBabelHelpers["extends"]({
|
|
58
58
|
ref: ref
|
|
59
59
|
}, linkProps, rest), children, !inline && Icon && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -66,38 +66,31 @@ Link.propTypes = {
|
|
|
66
66
|
* Provide the content for the Link
|
|
67
67
|
*/
|
|
68
68
|
children: PropTypes__default["default"].node,
|
|
69
|
-
|
|
70
69
|
/**
|
|
71
70
|
* Provide a custom className to be applied to the containing `<a>` node
|
|
72
71
|
*/
|
|
73
72
|
className: PropTypes__default["default"].string,
|
|
74
|
-
|
|
75
73
|
/**
|
|
76
74
|
* Specify if the control should be disabled, or not
|
|
77
75
|
*/
|
|
78
76
|
disabled: PropTypes__default["default"].bool,
|
|
79
|
-
|
|
80
77
|
/**
|
|
81
78
|
* Provide the `href` attribute for the `<a>` node
|
|
82
79
|
*/
|
|
83
80
|
href: PropTypes__default["default"].string,
|
|
84
|
-
|
|
85
81
|
/**
|
|
86
82
|
* Specify whether you want the inline version of this control
|
|
87
83
|
*/
|
|
88
84
|
inline: PropTypes__default["default"].bool,
|
|
89
|
-
|
|
90
85
|
/**
|
|
91
86
|
* Optional prop to render an icon next to the link.
|
|
92
87
|
* Can be a React component class
|
|
93
88
|
*/
|
|
94
89
|
renderIcon: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].object]),
|
|
95
|
-
|
|
96
90
|
/**
|
|
97
91
|
* Specify the size of the Link. Currently supports either `sm`, 'md' (default) or 'lg` as an option.
|
|
98
92
|
*/
|
|
99
93
|
size: PropTypes__default["default"].oneOf(['sm', 'md', 'lg']),
|
|
100
|
-
|
|
101
94
|
/**
|
|
102
95
|
* Specify whether you want the link to receive visited styles after the link has been clicked
|
|
103
96
|
*/
|
|
@@ -30,12 +30,10 @@ const handleOnKeyDown = event => {
|
|
|
30
30
|
event.stopPropagation();
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
|
|
34
33
|
const handleClick = event => {
|
|
35
34
|
event.preventDefault();
|
|
36
35
|
event.stopPropagation();
|
|
37
36
|
};
|
|
38
|
-
|
|
39
37
|
/**
|
|
40
38
|
* `ListBox` is a generic container component that handles creating the
|
|
41
39
|
* container class name in response to certain props.
|
|
@@ -60,7 +58,8 @@ const ListBox = /*#__PURE__*/React__default["default"].forwardRef(function ListB
|
|
|
60
58
|
isFluid
|
|
61
59
|
} = React.useContext(FormContext.FormContext);
|
|
62
60
|
const showWarning = !invalid && warn;
|
|
63
|
-
const className = cx__default["default"]({
|
|
61
|
+
const className = cx__default["default"]({
|
|
62
|
+
...(containerClassName && {
|
|
64
63
|
[containerClassName]: true
|
|
65
64
|
}),
|
|
66
65
|
[`${prefix}--list-box`]: true,
|
|
@@ -92,54 +91,44 @@ ListBox.propTypes = {
|
|
|
92
91
|
* Provide the contents of your ListBox
|
|
93
92
|
*/
|
|
94
93
|
children: PropTypes__default["default"].node,
|
|
95
|
-
|
|
96
94
|
/**
|
|
97
95
|
* Specify a class name to be applied on the containing list box node
|
|
98
96
|
*/
|
|
99
97
|
className: PropTypes__default["default"].string,
|
|
100
|
-
|
|
101
98
|
/**
|
|
102
99
|
* Specify whether the ListBox is currently disabled
|
|
103
100
|
*/
|
|
104
101
|
disabled: PropTypes__default["default"].bool.isRequired,
|
|
105
|
-
|
|
106
102
|
/**
|
|
107
103
|
* Specify whether the control is currently invalid
|
|
108
104
|
*/
|
|
109
105
|
invalid: PropTypes__default["default"].bool,
|
|
110
|
-
|
|
111
106
|
/**
|
|
112
107
|
* Specify the text to be displayed when the control is invalid
|
|
113
108
|
*/
|
|
114
109
|
invalidText: PropTypes__default["default"].node,
|
|
115
|
-
|
|
116
110
|
/**
|
|
117
111
|
* Specify if the control should render open
|
|
118
112
|
*/
|
|
119
113
|
isOpen: PropTypes__default["default"].bool,
|
|
120
|
-
|
|
121
114
|
/**
|
|
122
115
|
* `true` to use the light version. For use on $ui-01 backgrounds only.
|
|
123
116
|
* Don't use this to make tile background color same as container background color.
|
|
124
117
|
*/
|
|
125
118
|
light: deprecate["default"](PropTypes__default["default"].bool, 'The `light` prop for `ListBox` has ' + 'been deprecated in favor of the new `Layer` component. It will be removed in the next major release.'),
|
|
126
|
-
|
|
127
119
|
/**
|
|
128
120
|
* Specify the size of the ListBox. Currently supports either `sm`, `md` or `lg` as an option.
|
|
129
121
|
*/
|
|
130
122
|
size: ListBoxPropTypes.ListBoxSize,
|
|
131
|
-
|
|
132
123
|
/**
|
|
133
124
|
* Specify the "type" of the ListBox. Currently supports either `default` or
|
|
134
125
|
* `inline` as an option.
|
|
135
126
|
*/
|
|
136
127
|
type: ListBoxPropTypes.ListBoxType.isRequired,
|
|
137
|
-
|
|
138
128
|
/**
|
|
139
129
|
* Specify whether the control is currently in warning state
|
|
140
130
|
*/
|
|
141
131
|
warn: PropTypes__default["default"].bool,
|
|
142
|
-
|
|
143
132
|
/**
|
|
144
133
|
* Provide the text that is displayed when the control is in warning state
|
|
145
134
|
*/
|
|
@@ -37,30 +37,25 @@ function ListBoxField(_ref) {
|
|
|
37
37
|
tabIndex: !disabled && tabIndex || -1
|
|
38
38
|
}, rest), children);
|
|
39
39
|
}
|
|
40
|
-
|
|
41
40
|
ListBoxField.propTypes = {
|
|
42
41
|
/**
|
|
43
42
|
* Typically set by `getToggleButtonProps`, this should specify whether the
|
|
44
43
|
* field has a popup.
|
|
45
44
|
*/
|
|
46
45
|
'aria-haspopup': PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].bool]),
|
|
47
|
-
|
|
48
46
|
/**
|
|
49
47
|
* Provide the contents of your ListBoxField
|
|
50
48
|
*/
|
|
51
49
|
children: PropTypes__default["default"].node,
|
|
52
|
-
|
|
53
50
|
/**
|
|
54
51
|
* Specify if the parent <ListBox> is disabled
|
|
55
52
|
*/
|
|
56
53
|
disabled: PropTypes__default["default"].bool,
|
|
57
|
-
|
|
58
54
|
/**
|
|
59
55
|
* The role for the component, should be set by `getToggleButtonProps` coming
|
|
60
56
|
* from Downshift
|
|
61
57
|
*/
|
|
62
58
|
role: PropTypes__default["default"].string,
|
|
63
|
-
|
|
64
59
|
/**
|
|
65
60
|
* Optional prop to specify the tabIndex of the <ListBox> trigger button
|
|
66
61
|
*/
|
|
@@ -29,9 +29,7 @@ const defaultTranslations = {
|
|
|
29
29
|
[translationIds['close.menu']]: 'Close menu',
|
|
30
30
|
[translationIds['open.menu']]: 'Open menu'
|
|
31
31
|
};
|
|
32
|
-
|
|
33
32
|
const defaultTranslateWithId = id => defaultTranslations[id];
|
|
34
|
-
|
|
35
33
|
/**
|
|
36
34
|
* `ListBoxMenuIcon` is used to orient the icon up or down depending on the
|
|
37
35
|
* state of the menu for a given `ListBox`
|
|
@@ -53,14 +51,12 @@ const ListBoxMenuIcon = _ref => {
|
|
|
53
51
|
"aria-label": description
|
|
54
52
|
}, /*#__PURE__*/React__default["default"].createElement("title", null, description)));
|
|
55
53
|
};
|
|
56
|
-
|
|
57
54
|
ListBoxMenuIcon.propTypes = {
|
|
58
55
|
/**
|
|
59
56
|
* Specify whether the menu is currently open, which will influence the
|
|
60
57
|
* direction of the menu icon
|
|
61
58
|
*/
|
|
62
59
|
isOpen: PropTypes__default["default"].bool.isRequired,
|
|
63
|
-
|
|
64
60
|
/**
|
|
65
61
|
* i18n hook used to provide the appropriate description for the given menu
|
|
66
62
|
* icon. This function takes in an id defined in `translationIds` and should
|
|
@@ -32,7 +32,6 @@ function useIsTruncated(ref) {
|
|
|
32
32
|
}, [ref, setIsTruncated]);
|
|
33
33
|
return isTruncated;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
35
|
/**
|
|
37
36
|
* `ListBoxMenuItem` is a helper component for managing the container class
|
|
38
37
|
* name, alongside any classes for any corresponding states, for a generic list
|
|
@@ -48,7 +47,7 @@ const ListBoxMenuItem = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
|
48
47
|
} = _ref;
|
|
49
48
|
const prefix = usePrefix.usePrefix();
|
|
50
49
|
const ref = React.useRef(null);
|
|
51
|
-
const isTruncated = useIsTruncated(
|
|
50
|
+
const isTruncated = useIsTruncated(forwardedRef?.menuItemOptionRef || ref);
|
|
52
51
|
const className = cx__default["default"](`${prefix}--list-box__menu-item`, {
|
|
53
52
|
[`${prefix}--list-box__menu-item--active`]: isActive,
|
|
54
53
|
[`${prefix}--list-box__menu-item--highlighted`]: isHighlighted
|
|
@@ -59,7 +58,7 @@ const ListBoxMenuItem = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
|
59
58
|
tabIndex: -1
|
|
60
59
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61
60
|
className: `${prefix}--list-box__menu-item__option`,
|
|
62
|
-
ref:
|
|
61
|
+
ref: forwardedRef?.menuItemOptionRef || ref
|
|
63
62
|
}, children));
|
|
64
63
|
});
|
|
65
64
|
ListBoxMenuItem.displayName = 'ListBoxMenuItem';
|
|
@@ -69,17 +68,14 @@ ListBoxMenuItem.propTypes = {
|
|
|
69
68
|
* Menu Item
|
|
70
69
|
*/
|
|
71
70
|
children: PropTypes__default["default"].node,
|
|
72
|
-
|
|
73
71
|
/**
|
|
74
72
|
* Specify whether the current menu item is "active".
|
|
75
73
|
*/
|
|
76
74
|
isActive: PropTypes__default["default"].bool.isRequired,
|
|
77
|
-
|
|
78
75
|
/**
|
|
79
76
|
* Specify whether the current menu item is "highlighted".
|
|
80
77
|
*/
|
|
81
78
|
isHighlighted: PropTypes__default["default"].bool.isRequired,
|
|
82
|
-
|
|
83
79
|
/**
|
|
84
80
|
* Provide an optional tooltip for the ListBoxMenuItem
|
|
85
81
|
*/
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
declare const listBoxTypes: readonly ["default", "inline"];
|
|
9
9
|
declare const listBoxSizes: readonly ["sm", "md", "lg"];
|
|
10
|
-
export type ListBoxType = typeof listBoxTypes[number];
|
|
11
|
-
export type ListBoxSize = typeof listBoxSizes[number];
|
|
10
|
+
export type ListBoxType = (typeof listBoxTypes)[number];
|
|
11
|
+
export type ListBoxSize = (typeof listBoxSizes)[number];
|
|
12
12
|
export declare const ListBoxType: PropTypes.Requireable<"default" | "inline">;
|
|
13
13
|
export declare const ListBoxSize: PropTypes.Requireable<"md" | "sm" | "lg">;
|
|
14
14
|
export {};
|
|
@@ -22,7 +22,6 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
22
22
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
23
23
|
|
|
24
24
|
var _Close, _Close2;
|
|
25
|
-
|
|
26
25
|
/**
|
|
27
26
|
* `ListBoxSelection` is used to provide controls for clearing a selection, in
|
|
28
27
|
* addition to conditionally rendering a badge if the control has more than one
|
|
@@ -42,27 +41,22 @@ const ListBoxSelection = _ref => {
|
|
|
42
41
|
[`${prefix}--tag--filter`]: selectionCount,
|
|
43
42
|
[`${prefix}--list-box__selection--multi`]: selectionCount
|
|
44
43
|
});
|
|
45
|
-
|
|
46
44
|
const handleOnClick = event => {
|
|
47
45
|
event.stopPropagation();
|
|
48
|
-
|
|
49
46
|
if (disabled || readOnly) {
|
|
50
47
|
return;
|
|
51
48
|
}
|
|
52
|
-
|
|
53
49
|
clearSelection(event);
|
|
54
|
-
|
|
55
50
|
if (onClearSelection) {
|
|
56
51
|
onClearSelection(event);
|
|
57
52
|
}
|
|
58
53
|
};
|
|
59
|
-
|
|
60
54
|
const description = selectionCount ? t('clear.all') : t('clear.selection');
|
|
61
55
|
const tagClasses = cx__default["default"](`${prefix}--tag`, `${prefix}--tag--filter`, `${prefix}--tag--high-contrast`, {
|
|
62
56
|
[`${prefix}--tag--disabled`]: disabled
|
|
63
57
|
});
|
|
64
|
-
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
65
58
|
|
|
59
|
+
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
66
60
|
return selectionCount ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
67
61
|
className: tagClasses
|
|
68
62
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -85,7 +79,6 @@ const ListBoxSelection = _ref => {
|
|
|
85
79
|
title: description
|
|
86
80
|
}, selectionCount, _Close2 || (_Close2 = /*#__PURE__*/React__default["default"].createElement(iconsReact.Close, null)));
|
|
87
81
|
};
|
|
88
|
-
|
|
89
82
|
const translationIds = {
|
|
90
83
|
'clear.all': 'clear.all',
|
|
91
84
|
'clear.selection': 'clear.selection'
|
|
@@ -100,29 +93,24 @@ ListBoxSelection.propTypes = {
|
|
|
100
93
|
* selection element.
|
|
101
94
|
*/
|
|
102
95
|
clearSelection: PropTypes__default["default"].func.isRequired,
|
|
103
|
-
|
|
104
96
|
/**
|
|
105
97
|
* Specify whether or not the clear selection element should be disabled
|
|
106
98
|
*/
|
|
107
99
|
disabled: PropTypes__default["default"].bool,
|
|
108
|
-
|
|
109
100
|
/**
|
|
110
101
|
* Specify an optional `onClearSelection` handler that is called when the underlying
|
|
111
102
|
* element is cleared
|
|
112
103
|
*/
|
|
113
104
|
onClearSelection: PropTypes__default["default"].func,
|
|
114
|
-
|
|
115
105
|
/**
|
|
116
106
|
* Whether or not the Dropdown is readonly
|
|
117
107
|
*/
|
|
118
108
|
readOnly: PropTypes__default["default"].bool,
|
|
119
|
-
|
|
120
109
|
/**
|
|
121
110
|
* Specify an optional `selectionCount` value that will be used to determine
|
|
122
111
|
* whether the selection should display a badge or a single clear icon.
|
|
123
112
|
*/
|
|
124
113
|
selectionCount: PropTypes__default["default"].number,
|
|
125
|
-
|
|
126
114
|
/**
|
|
127
115
|
* i18n hook used to provide the appropriate description for the given menu
|
|
128
116
|
* icon. This function takes in an id defined in `translationIds` and should
|
|
@@ -23,12 +23,12 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
23
23
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
24
24
|
|
|
25
25
|
var _Close, _Close2;
|
|
26
|
+
|
|
26
27
|
/**
|
|
27
28
|
* `ListBoxSelection` is used to provide controls for clearing a selection, in
|
|
28
29
|
* addition to conditionally rendering a badge if the control has more than one
|
|
29
30
|
* selection.
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
32
|
function ListBoxSelection(_ref) {
|
|
33
33
|
let {
|
|
34
34
|
clearSelection,
|
|
@@ -47,21 +47,16 @@ function ListBoxSelection(_ref) {
|
|
|
47
47
|
const tagClasses = cx__default["default"](`${prefix}--tag`, `${prefix}--tag--filter`, `${prefix}--tag--high-contrast`, {
|
|
48
48
|
[`${prefix}--tag--disabled`]: disabled
|
|
49
49
|
});
|
|
50
|
-
|
|
51
50
|
function onClick(event) {
|
|
52
51
|
event.stopPropagation();
|
|
53
|
-
|
|
54
52
|
if (disabled) {
|
|
55
53
|
return;
|
|
56
54
|
}
|
|
57
|
-
|
|
58
55
|
clearSelection(event);
|
|
59
|
-
|
|
60
56
|
if (onClearSelection) {
|
|
61
57
|
onClearSelection(event);
|
|
62
58
|
}
|
|
63
59
|
}
|
|
64
|
-
|
|
65
60
|
if (selectionCount) {
|
|
66
61
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
67
62
|
className: tagClasses
|
|
@@ -78,7 +73,6 @@ function ListBoxSelection(_ref) {
|
|
|
78
73
|
type: "button"
|
|
79
74
|
}, _Close || (_Close = /*#__PURE__*/React__default["default"].createElement(iconsReact.Close, null))));
|
|
80
75
|
}
|
|
81
|
-
|
|
82
76
|
return /*#__PURE__*/React__default["default"].createElement("button", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
|
83
77
|
"aria-label": description,
|
|
84
78
|
className: className,
|
|
@@ -89,7 +83,6 @@ function ListBoxSelection(_ref) {
|
|
|
89
83
|
type: "button"
|
|
90
84
|
}), _Close2 || (_Close2 = /*#__PURE__*/React__default["default"].createElement(iconsReact.Close, null)));
|
|
91
85
|
}
|
|
92
|
-
|
|
93
86
|
const translationIds = {
|
|
94
87
|
'clear.all': 'clear.all',
|
|
95
88
|
'clear.selection': 'clear.selection'
|
|
@@ -104,36 +97,30 @@ ListBoxSelection.propTypes = {
|
|
|
104
97
|
* selection element.
|
|
105
98
|
*/
|
|
106
99
|
clearSelection: PropTypes__default["default"].func.isRequired,
|
|
107
|
-
|
|
108
100
|
/**
|
|
109
101
|
* Specify whether or not the clear selection element should be disabled
|
|
110
102
|
*/
|
|
111
103
|
disabled: PropTypes__default["default"].bool,
|
|
112
|
-
|
|
113
104
|
/**
|
|
114
105
|
* Specify an optional `onClearSelection` handler that is called when the underlying
|
|
115
106
|
* element is cleared
|
|
116
107
|
*/
|
|
117
108
|
onClearSelection: PropTypes__default["default"].func,
|
|
118
|
-
|
|
119
109
|
/**
|
|
120
110
|
* Specify an optional `onClick` handler that is called when the underlying
|
|
121
111
|
* clear selection element is clicked
|
|
122
112
|
*/
|
|
123
113
|
onClick: PropTypes__default["default"].func,
|
|
124
|
-
|
|
125
114
|
/**
|
|
126
115
|
* Specify an optional `onKeyDown` handler that is called when the underlying
|
|
127
116
|
* clear selection element fires a keydown event
|
|
128
117
|
*/
|
|
129
118
|
onKeyDown: PropTypes__default["default"].func,
|
|
130
|
-
|
|
131
119
|
/**
|
|
132
120
|
* Specify an optional `selectionCount` value that will be used to determine
|
|
133
121
|
* whether the selection should display a badge or a single clear icon.
|
|
134
122
|
*/
|
|
135
123
|
selectionCount: PropTypes__default["default"].number,
|
|
136
|
-
|
|
137
124
|
/**
|
|
138
125
|
* i18n hook used to provide the appropriate description for the given menu
|
|
139
126
|
* icon. This function takes in an id defined in `translationIds` and should
|
|
@@ -31,11 +31,11 @@ const defaultTranslations = {
|
|
|
31
31
|
[translationIds['close.menu']]: 'Close',
|
|
32
32
|
[translationIds['open.menu']]: 'Open'
|
|
33
33
|
};
|
|
34
|
+
|
|
34
35
|
/**
|
|
35
36
|
* `ListBoxTrigger` is used to orient the icon up or down depending on the
|
|
36
37
|
* state of the menu for a given `ListBox`
|
|
37
38
|
*/
|
|
38
|
-
|
|
39
39
|
const ListBoxTrigger = _ref => {
|
|
40
40
|
let {
|
|
41
41
|
isOpen,
|
|
@@ -56,14 +56,12 @@ const ListBoxTrigger = _ref => {
|
|
|
56
56
|
tabIndex: "-1"
|
|
57
57
|
}), _ChevronDown || (_ChevronDown = /*#__PURE__*/React__default["default"].createElement(iconsReact.ChevronDown, null)));
|
|
58
58
|
};
|
|
59
|
-
|
|
60
59
|
ListBoxTrigger.propTypes = {
|
|
61
60
|
/**
|
|
62
61
|
* Specify whether the menu is currently open, which will influence the
|
|
63
62
|
* direction of the menu icon
|
|
64
63
|
*/
|
|
65
64
|
isOpen: PropTypes__default["default"].bool.isRequired,
|
|
66
|
-
|
|
67
65
|
/**
|
|
68
66
|
* i18n hook used to provide the appropriate description for the given menu
|
|
69
67
|
* icon. This function takes in an id defined in `translationIds` and should
|