@canonical/react-components 3.12.0 → 3.12.2
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/dist/components/Accordion/Accordion.js +5 -6
- package/dist/components/Accordion/Accordion.stories.js +2 -3
- package/dist/components/Accordion/AccordionSection/AccordionSection.js +1 -2
- package/dist/components/Accordion/AccordionSection/index.js +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/ActionButton/ActionButton.js +5 -6
- package/dist/components/ActionButton/ActionButton.stories.js +1 -1
- package/dist/components/ActionButton/index.js +1 -1
- package/dist/components/ApplicationLayout/AppAside/AppAside.js +4 -4
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.js +3 -4
- package/dist/components/ApplicationLayout/AppAside/index.js +1 -1
- package/dist/components/ApplicationLayout/AppMain/AppMain.js +4 -4
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.js +1 -1
- package/dist/components/ApplicationLayout/AppMain/index.js +1 -1
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.js +4 -4
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +3 -4
- package/dist/components/ApplicationLayout/AppNavigation/index.js +1 -1
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +4 -4
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +2 -3
- package/dist/components/ApplicationLayout/AppNavigationBar/index.js +1 -1
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.js +4 -4
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.js +1 -1
- package/dist/components/ApplicationLayout/AppStatus/index.js +1 -1
- package/dist/components/ApplicationLayout/Application/Application.js +4 -4
- package/dist/components/ApplicationLayout/Application/Application.stories.js +1 -1
- package/dist/components/ApplicationLayout/Application/index.js +1 -1
- package/dist/components/ApplicationLayout/ApplicationLayout.js +4 -5
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.js +2 -3
- package/dist/components/ApplicationLayout/index.js +1 -1
- package/dist/components/ArticlePagination/ArticlePagination.js +4 -4
- package/dist/components/ArticlePagination/ArticlePagination.stories.js +1 -1
- package/dist/components/ArticlePagination/index.js +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/Badge/Badge.stories.js +2 -3
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Button/Button.js +4 -4
- package/dist/components/Button/Button.stories.js +2 -3
- package/dist/components/Button/index.js +1 -2
- package/dist/components/Card/Card.js +5 -6
- package/dist/components/Card/Card.stories.js +3 -3
- package/dist/components/Card/index.js +1 -1
- package/dist/components/CheckboxInput/CheckableInput/CheckableInput.js +5 -6
- package/dist/components/CheckboxInput/CheckableInput/index.js +1 -1
- package/dist/components/CheckboxInput/CheckboxInput.js +4 -4
- package/dist/components/CheckboxInput/CheckboxInput.stories.js +1 -1
- package/dist/components/CheckboxInput/index.js +1 -1
- package/dist/components/Chip/Chip.js +4 -4
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/Code/Code.js +5 -6
- package/dist/components/Code/index.js +1 -1
- package/dist/components/CodeSnippet/CodeSnippet.js +4 -4
- package/dist/components/CodeSnippet/CodeSnippet.stories.js +2 -3
- package/dist/components/CodeSnippet/CodeSnippetBlock.js +2 -2
- package/dist/components/CodeSnippet/CodeSnippetDropdown.js +4 -4
- package/dist/components/CodeSnippet/index.js +1 -1
- package/dist/components/Col/Col.js +4 -4
- package/dist/components/Col/Col.stories.js +1 -1
- package/dist/components/Col/index.js +1 -2
- package/dist/components/ColumnSelector/ColumnSelector.js +2 -2
- package/dist/components/ColumnSelector/ColumnSelector.stories.js +2 -3
- package/dist/components/ColumnSelector/ColumnSelectorStoriesHelper.js +1 -1
- package/dist/components/ColumnSelector/columnSelectorHelper.js +2 -2
- package/dist/components/ColumnSelector/index.js +1 -1
- package/dist/components/ConfirmationButton/ConfirmationButton.js +4 -4
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.js +2 -3
- package/dist/components/ConfirmationButton/index.js +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.js +4 -4
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +2 -3
- package/dist/components/ConfirmationModal/index.js +1 -1
- package/dist/components/ContextualMenu/ContextualMenu.d.ts +10 -5
- package/dist/components/ContextualMenu/ContextualMenu.js +109 -14
- package/dist/components/ContextualMenu/ContextualMenu.stories.js +2 -2
- package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +1 -1
- package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +10 -9
- package/dist/components/ContextualMenu/ContextualMenuDropdown/index.js +1 -1
- package/dist/components/ContextualMenu/index.js +1 -1
- package/dist/components/CustomLayout/CustomLayout.js +1 -1
- package/dist/components/CustomLayout/CustomLayout.stories.js +1 -1
- package/dist/components/CustomLayout/index.js +1 -1
- package/dist/components/CustomSelect/CustomSelect.js +6 -6
- package/dist/components/CustomSelect/CustomSelect.stories.d.ts +1 -1
- package/dist/components/CustomSelect/CustomSelect.stories.js +6 -7
- package/dist/components/CustomSelect/CustomSelectDropdown/CustomSelectDropdown.js +2 -3
- package/dist/components/CustomSelect/CustomSelectDropdown/index.js +1 -2
- package/dist/components/CustomSelect/index.js +1 -1
- package/dist/components/DoughnutChart/DoughnutChart.js +31 -14
- package/dist/components/DoughnutChart/DoughnutChart.stories.js +1 -1
- package/dist/components/DoughnutChart/index.js +1 -1
- package/dist/components/EmptyState/EmptyState.js +4 -4
- package/dist/components/EmptyState/EmptyState.stories.js +2 -3
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/EventQueue/EventQueue.js +1 -2
- package/dist/components/EventQueue/EventQueue.stories.js +2 -3
- package/dist/components/Field/Field.js +4 -4
- package/dist/components/Field/index.js +1 -1
- package/dist/components/Form/Form.js +4 -4
- package/dist/components/Form/Form.stories.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/FormikField/FormikField.js +4 -4
- package/dist/components/FormikField/FormikField.stories.js +1 -1
- package/dist/components/FormikField/index.js +1 -1
- package/dist/components/Icon/Icon.js +4 -4
- package/dist/components/Icon/Icon.stories.js +2 -3
- package/dist/components/Icon/index.js +1 -2
- package/dist/components/Input/Input.js +7 -8
- package/dist/components/Input/Input.stories.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Label/Label.js +4 -4
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Link/Link.js +4 -4
- package/dist/components/Link/Link.stories.js +1 -1
- package/dist/components/Link/index.js +1 -1
- package/dist/components/List/List.js +5 -5
- package/dist/components/List/List.stories.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/Loader/Loader.js +1 -1
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/LoginPageLayout/LoginPageLayout.js +1 -1
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.js +1 -1
- package/dist/components/LoginPageLayout/index.js +1 -1
- package/dist/components/MainTable/MainTable.js +6 -7
- package/dist/components/MainTable/MainTable.stories.js +2 -3
- package/dist/components/MainTable/index.js +1 -1
- package/dist/components/Modal/Modal.js +5 -6
- package/dist/components/Modal/Modal.stories.js +2 -3
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/ModularTable/ModularTable.js +9 -10
- package/dist/components/ModularTable/ModularTable.stories.js +8 -9
- package/dist/components/ModularTable/index.js +1 -1
- package/dist/components/MultiSelect/FadeInDown/FadeInDown.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +5 -6
- package/dist/components/MultiSelect/MultiSelect.stories.js +4 -5
- package/dist/components/Navigation/Navigation.js +7 -8
- package/dist/components/Navigation/Navigation.stories.js +1 -1
- package/dist/components/Navigation/NavigationLink/NavigationLink.js +6 -6
- package/dist/components/Navigation/NavigationLink/index.js +1 -1
- package/dist/components/Navigation/NavigationMenu/NavigationMenu.js +7 -8
- package/dist/components/Navigation/NavigationMenu/index.js +1 -1
- package/dist/components/Navigation/index.js +1 -1
- package/dist/components/NotificationProvider/NotificationProvider.js +2 -3
- package/dist/components/NotificationProvider/messageBuilder.js +1 -1
- package/dist/components/Notifications/Notification/Notification.js +5 -6
- package/dist/components/Notifications/Notification/Notification.stories.js +1 -2
- package/dist/components/Notifications/Notification/index.js +1 -2
- package/dist/components/Notifications/ToastNotification/Animate.js +1 -2
- package/dist/components/Notifications/ToastNotification/ToastNotification.js +2 -2
- package/dist/components/Notifications/ToastNotification/ToastNotification.stories.js +2 -3
- package/dist/components/Notifications/ToastNotification/ToastNotificationList.js +3 -4
- package/dist/components/Notifications/ToastNotification/ToastNotificationProvider.js +4 -5
- package/dist/components/Notifications/ToastNotification/index.js +2 -3
- package/dist/components/Notifications/index.js +1 -2
- package/dist/components/Pagination/Pagination.js +8 -8
- package/dist/components/Pagination/Pagination.stories.js +1 -1
- package/dist/components/Pagination/PaginationButton/PaginationButton.js +1 -1
- package/dist/components/Pagination/PaginationButton/index.js +1 -1
- package/dist/components/Pagination/PaginationItem/PaginationItem.js +1 -1
- package/dist/components/Pagination/PaginationItem/index.js +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/Panel/Panel.js +4 -4
- package/dist/components/Panel/Panel.stories.js +1 -1
- package/dist/components/Panel/index.js +1 -1
- package/dist/components/PasswordToggle/PasswordToggle.js +5 -6
- package/dist/components/PasswordToggle/PasswordToggle.stories.js +1 -1
- package/dist/components/PasswordToggle/index.js +1 -1
- package/dist/components/PrefixedInput/PrefixedInput.js +5 -6
- package/dist/components/PrefixedInput/PrefixedInput.stories.js +1 -1
- package/dist/components/PrefixedInput/index.js +1 -1
- package/dist/components/PrefixedIpInput/PrefixedIpInput.js +4 -4
- package/dist/components/PrefixedIpInput/PrefixedIpInput.stories.js +3 -4
- package/dist/components/PrefixedIpInput/index.js +1 -1
- package/dist/components/RadioInput/RadioInput.js +4 -4
- package/dist/components/RadioInput/RadioInput.stories.js +1 -1
- package/dist/components/RadioInput/index.js +1 -1
- package/dist/components/Row/Row.js +4 -4
- package/dist/components/Row/Row.stories.js +1 -1
- package/dist/components/Row/index.js +1 -1
- package/dist/components/ScrollableContainer/ScrollableContainer.js +2 -3
- package/dist/components/ScrollableContainer/ScrollableContainer.stories.js +1 -1
- package/dist/components/ScrollableContainer/index.js +1 -1
- package/dist/components/ScrollableTable/ScrollableTable.js +1 -2
- package/dist/components/ScrollableTable/ScrollableTable.stories.js +3 -3
- package/dist/components/ScrollableTable/index.js +1 -1
- package/dist/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +4 -5
- package/dist/components/SearchAndFilter/FilterPanelSection/index.js +1 -1
- package/dist/components/SearchAndFilter/SearchAndFilter.js +5 -6
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.js +1 -1
- package/dist/components/SearchAndFilter/index.js +1 -1
- package/dist/components/SearchBox/SearchBox.js +5 -6
- package/dist/components/SearchBox/SearchBox.stories.js +1 -1
- package/dist/components/SearchBox/index.js +1 -1
- package/dist/components/Select/Select.js +5 -6
- package/dist/components/Select/Select.stories.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SideNavigation/SideNavigation.js +4 -4
- package/dist/components/SideNavigation/SideNavigation.stories.js +1 -1
- package/dist/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +4 -4
- package/dist/components/SideNavigation/SideNavigationBase/index.js +1 -1
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +4 -4
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +2 -2
- package/dist/components/SideNavigation/SideNavigationItem/index.js +1 -1
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +4 -4
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +1 -1
- package/dist/components/SideNavigation/SideNavigationLink/index.js +1 -1
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.js +4 -4
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +1 -1
- package/dist/components/SideNavigation/SideNavigationText/index.js +1 -1
- package/dist/components/SideNavigation/index.js +1 -1
- package/dist/components/SidePanel/SidePanel.js +3 -4
- package/dist/components/SidePanel/SidePanel.stories.js +2 -3
- package/dist/components/SidePanel/common/Content.js +1 -1
- package/dist/components/SidePanel/common/Footer.js +1 -1
- package/dist/components/SidePanel/common/Header.js +1 -1
- package/dist/components/SidePanel/common/HeaderControls.js +1 -1
- package/dist/components/SidePanel/common/HeaderTitle.js +1 -1
- package/dist/components/SidePanel/common/Sticky.js +1 -1
- package/dist/components/SidePanel/index.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.stories.js +1 -1
- package/dist/components/SkipLink/index.js +1 -1
- package/dist/components/Slider/Slider.js +5 -6
- package/dist/components/Slider/Slider.stories.js +3 -4
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +4 -4
- package/dist/components/Spinner/Spinner.stories.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/StatusLabel/StatusLabel.js +4 -4
- package/dist/components/StatusLabel/StatusLabel.stories.js +2 -3
- package/dist/components/StatusLabel/index.js +1 -2
- package/dist/components/Stepper/Step/Step.js +4 -4
- package/dist/components/Stepper/Step/Step.stories.js +2 -2
- package/dist/components/Stepper/Step/index.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/Stepper.stories.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Strip/Strip.js +4 -4
- package/dist/components/Strip/Strip.stories.js +1 -1
- package/dist/components/Strip/index.js +1 -1
- package/dist/components/SummaryButton/SummaryButton.js +1 -1
- package/dist/components/SummaryButton/SummaryButton.stories.js +1 -1
- package/dist/components/SummaryButton/index.js +1 -1
- package/dist/components/Switch/Switch.js +5 -6
- package/dist/components/Switch/Switch.stories.js +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Table/Table.js +4 -4
- package/dist/components/Table/index.js +1 -1
- package/dist/components/TableCell/TableCell.js +4 -4
- package/dist/components/TableCell/index.js +1 -1
- package/dist/components/TableHeader/TableHeader.d.ts +3 -1
- package/dist/components/TableHeader/TableHeader.js +12 -7
- package/dist/components/TableHeader/index.js +1 -1
- package/dist/components/TablePagination/TablePagination.js +5 -6
- package/dist/components/TablePagination/TablePagination.stories.js +1 -1
- package/dist/components/TablePagination/TablePaginationControls/TablePaginationControls.js +4 -4
- package/dist/components/TablePagination/TablePaginationControls/index.js +1 -1
- package/dist/components/TablePagination/index.js +1 -1
- package/dist/components/TableRow/TableRow.js +4 -4
- package/dist/components/TableRow/index.js +1 -1
- package/dist/components/Tabs/Tabs.js +4 -4
- package/dist/components/Tabs/Tabs.stories.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Textarea/Textarea.js +7 -8
- package/dist/components/Textarea/Textarea.stories.js +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/ThemeSwitcher/ThemeSwitcher.js +1 -2
- package/dist/components/ThemeSwitcher/ThemeSwitcher.stories.js +1 -1
- package/dist/components/ThemeSwitcher/index.js +1 -2
- package/dist/components/Tooltip/Tooltip.js +2 -3
- package/dist/components/Tooltip/Tooltip.stories.js +2 -3
- package/dist/components/Tooltip/index.js +1 -2
- package/dist/esm/components/Accordion/Accordion.js +3 -3
- package/dist/esm/components/ActionButton/ActionButton.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppAside/AppAside.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppAside/AppAside.stories.js +1 -1
- package/dist/esm/components/ApplicationLayout/AppMain/AppMain.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +1 -1
- package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.js +3 -3
- package/dist/esm/components/ApplicationLayout/Application/Application.js +3 -3
- package/dist/esm/components/ApplicationLayout/ApplicationLayout.js +2 -2
- package/dist/esm/components/ArticlePagination/ArticlePagination.js +3 -3
- package/dist/esm/components/Badge/Badge.js +3 -3
- package/dist/esm/components/Button/Button.js +3 -3
- package/dist/esm/components/Card/Card.js +3 -3
- package/dist/esm/components/Card/Card.stories.js +2 -2
- package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.js +3 -3
- package/dist/esm/components/CheckboxInput/CheckboxInput.js +3 -3
- package/dist/esm/components/Chip/Chip.js +3 -3
- package/dist/esm/components/Code/Code.js +3 -3
- package/dist/esm/components/CodeSnippet/CodeSnippet.js +3 -3
- package/dist/esm/components/CodeSnippet/CodeSnippetBlock.js +1 -1
- package/dist/esm/components/CodeSnippet/CodeSnippetDropdown.js +3 -3
- package/dist/esm/components/Col/Col.js +3 -3
- package/dist/esm/components/ColumnSelector/ColumnSelector.js +1 -1
- package/dist/esm/components/ColumnSelector/columnSelectorHelper.js +2 -2
- package/dist/esm/components/ConfirmationButton/ConfirmationButton.js +3 -3
- package/dist/esm/components/ConfirmationModal/ConfirmationModal.js +3 -3
- package/dist/esm/components/ContextualMenu/ContextualMenu.d.ts +10 -5
- package/dist/esm/components/ContextualMenu/ContextualMenu.js +107 -11
- package/dist/esm/components/ContextualMenu/ContextualMenu.stories.js +1 -1
- package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +1 -1
- package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +8 -6
- package/dist/esm/components/CustomSelect/CustomSelect.js +4 -3
- package/dist/esm/components/CustomSelect/CustomSelect.stories.d.ts +1 -1
- package/dist/esm/components/CustomSelect/CustomSelect.stories.js +4 -4
- package/dist/esm/components/DoughnutChart/DoughnutChart.js +29 -11
- package/dist/esm/components/EmptyState/EmptyState.js +3 -3
- package/dist/esm/components/Field/Field.js +3 -3
- package/dist/esm/components/Form/Form.js +3 -3
- package/dist/esm/components/FormikField/FormikField.js +3 -3
- package/dist/esm/components/Icon/Icon.js +3 -3
- package/dist/esm/components/Input/Input.js +5 -5
- package/dist/esm/components/Label/Label.js +3 -3
- package/dist/esm/components/Link/Link.js +3 -3
- package/dist/esm/components/List/List.js +4 -4
- package/dist/esm/components/MainTable/MainTable.js +4 -4
- package/dist/esm/components/Modal/Modal.js +3 -3
- package/dist/esm/components/ModularTable/ModularTable.js +7 -7
- package/dist/esm/components/ModularTable/ModularTable.stories.js +6 -6
- package/dist/esm/components/MultiSelect/MultiSelect.js +3 -3
- package/dist/esm/components/MultiSelect/MultiSelect.stories.js +3 -3
- package/dist/esm/components/Navigation/Navigation.js +5 -5
- package/dist/esm/components/Navigation/NavigationLink/NavigationLink.js +5 -5
- package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.js +5 -5
- package/dist/esm/components/Notifications/Notification/Notification.js +3 -3
- package/dist/esm/components/Notifications/ToastNotification/ToastNotification.js +1 -1
- package/dist/esm/components/Notifications/ToastNotification/ToastNotificationList.js +1 -1
- package/dist/esm/components/Notifications/ToastNotification/ToastNotificationProvider.js +2 -2
- package/dist/esm/components/Pagination/Pagination.js +7 -7
- package/dist/esm/components/Panel/Panel.js +3 -3
- package/dist/esm/components/PasswordToggle/PasswordToggle.js +3 -3
- package/dist/esm/components/PrefixedInput/PrefixedInput.js +3 -3
- package/dist/esm/components/PrefixedIpInput/PrefixedIpInput.js +3 -3
- package/dist/esm/components/PrefixedIpInput/PrefixedIpInput.stories.js +1 -1
- package/dist/esm/components/RadioInput/RadioInput.js +3 -3
- package/dist/esm/components/Row/Row.js +3 -3
- package/dist/esm/components/ScrollableTable/ScrollableTable.stories.js +2 -2
- package/dist/esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +3 -3
- package/dist/esm/components/SearchAndFilter/SearchAndFilter.js +3 -3
- package/dist/esm/components/SearchBox/SearchBox.js +3 -3
- package/dist/esm/components/Select/Select.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigation.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +1 -1
- package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.js +3 -3
- package/dist/esm/components/SidePanel/SidePanel.js +1 -1
- package/dist/esm/components/Slider/Slider.js +3 -3
- package/dist/esm/components/Slider/Slider.stories.js +1 -1
- package/dist/esm/components/Spinner/Spinner.js +3 -3
- package/dist/esm/components/StatusLabel/StatusLabel.js +3 -3
- package/dist/esm/components/Stepper/Step/Step.js +3 -3
- package/dist/esm/components/Stepper/Step/Step.stories.js +1 -1
- package/dist/esm/components/Strip/Strip.js +3 -3
- package/dist/esm/components/Switch/Switch.js +3 -3
- package/dist/esm/components/Table/Table.js +3 -3
- package/dist/esm/components/TableCell/TableCell.js +3 -3
- package/dist/esm/components/TableHeader/TableHeader.d.ts +3 -1
- package/dist/esm/components/TableHeader/TableHeader.js +11 -6
- package/dist/esm/components/TablePagination/TablePagination.js +3 -3
- package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.js +3 -3
- package/dist/esm/components/TableRow/TableRow.js +3 -3
- package/dist/esm/components/Tabs/Tabs.js +3 -3
- package/dist/esm/components/Textarea/Textarea.js +5 -5
- package/dist/esm/external/useSSR.js +2 -2
- package/dist/esm/hooks/usePagination.js +9 -5
- package/dist/external/useSSR.js +2 -2
- package/dist/hooks/usePagination.js +8 -4
- package/dist/index.js +2 -3
- package/package.json +17 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["aside", "children", "dark", "logo", "mainClassName", "menuCollapsed", "menuPinned", "navigationBarClassName", "navigationClassName", "navItems", "navLinkComponent", "onCollapseMenu", "onPinMenu", "sideNavigation", "status", "statusClassName", "mainId"];
|
|
2
|
-
function _objectWithoutProperties(
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React from "react";
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import { useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["className", "nextURL", "nextLabel", "previousURL", "previousLabel"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React from "react";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["value", "badgeType", "className", "isNegative"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React from "react";
|
|
7
7
|
export var BadgeType = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["appearance", "children", "className", "dense", "disabled", "element", "hasIcon", "inline", "onClick", "small"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React from "react";
|
|
7
7
|
export var ButtonAppearance = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className", "highlighted", "overlay", "thumbnail", "title"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React, { useId } from "react";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
2
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
-
function _defineProperty(
|
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
5
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
6
|
import React from "react";
|
|
7
7
|
import Card from "./";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["inputType", "label", "labelClassName", "indeterminate", "inline"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React, { useEffect, useRef, useId } from "react";
|
|
7
7
|
var CheckableInput = _ref => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["label", "indeterminate"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import CheckableInput from "./CheckableInput";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["appearance", "lead", "onClick", "onDismiss", "quoteValue", "selected", "subString", "isReadOnly", "isDense", "isInline", "iconName", "badge", "value"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { highlightSubString } from "../../utils";
|
|
7
7
|
import classNames from "classnames";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _pt from "prop-types";
|
|
2
2
|
var _excluded = ["children", "className", "inline", "copyable", "numbered"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
6
|
import React from "react";
|
|
7
7
|
import CodeSnippet, { CodeSnippetBlockAppearance } from "../CodeSnippet";
|
|
8
8
|
import { IS_DEV } from "../../utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["className", "blocks"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import CodeSnippetBlock from "./CodeSnippetBlock";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import CodeSnippetDropdown from "./CodeSnippetDropdown";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _excluded = ["options", "onChange"],
|
|
2
2
|
_excluded2 = ["label", "value"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
6
|
import React from "react";
|
|
7
7
|
export default function CodeSnippetDropdown(_ref) {
|
|
8
8
|
var {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className", "element", "emptyLarge", "emptyMedium", "emptySmall", "large", "medium", "size", "small"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React from "react";
|
|
7
7
|
export var colSizes = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
@@ -63,7 +63,7 @@ var ColumnSelector = _ref => {
|
|
|
63
63
|
}
|
|
64
64
|
}), /*#__PURE__*/React.createElement("hr", null), columns.map(column => /*#__PURE__*/React.createElement("div", {
|
|
65
65
|
key: column
|
|
66
|
-
}, wrapTooltip(
|
|
66
|
+
}, wrapTooltip(/*#__PURE__*/React.createElement(CheckboxInput, {
|
|
67
67
|
"aria-label": column,
|
|
68
68
|
labelClassName: classnames({
|
|
69
69
|
"size-hidden": sizeHidden.includes(column)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
2
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
-
function _defineProperty(
|
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
5
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
6
|
export var visibleRowColumns = (rows, hiddenCols) => {
|
|
7
7
|
return rows.map(row => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _excluded = ["confirmationModalProps", "onHoverText", "shiftClickEnabled", "showShiftClickHint", "preModalOpenHook"],
|
|
2
2
|
_excluded2 = ["renderInPortal", "portalRenderer"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
6
|
import React from "react";
|
|
7
7
|
import ActionButton from "../ActionButton";
|
|
8
8
|
import ConfirmationModal from "../ConfirmationModal";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["cancelButtonLabel", "cancelButtonProps", "children", "confirmButtonAppearance", "confirmButtonLabel", "confirmExtra", "onConfirm", "confirmButtonLoading", "confirmButtonDisabled", "confirmButtonProps", "renderInPortal", "portalRenderer"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import Button from "../Button";
|
|
7
7
|
import Modal from "../Modal";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type { HTMLProps, ReactNode } from "react";
|
|
3
|
-
import
|
|
4
|
-
import type { ContextualMenuDropdownProps } from "./ContextualMenuDropdown";
|
|
5
|
-
import type { MenuLink, Position } from "./ContextualMenuDropdown";
|
|
2
|
+
import React from "react";
|
|
6
3
|
import { ClassName, ExclusiveProps, PropsWithSpread, SubComponentProps } from "../../types";
|
|
4
|
+
import type { ButtonProps } from "../Button";
|
|
5
|
+
import type { ContextualMenuDropdownProps, MenuLink, Position } from "./ContextualMenuDropdown";
|
|
7
6
|
export declare enum Label {
|
|
8
7
|
Toggle = "Toggle menu"
|
|
9
8
|
}
|
|
@@ -60,6 +59,12 @@ export type BaseProps<L> = PropsWithSpread<{
|
|
|
60
59
|
* Whether the dropdown should scroll if it is too long to fit on the screen.
|
|
61
60
|
*/
|
|
62
61
|
scrollOverflow?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to focus the first interactive element within the menu when it opens.
|
|
64
|
+
* This defaults to true.
|
|
65
|
+
* In instances where the user needs to interact with some other element on opening the menu (like a text input), set this to false.
|
|
66
|
+
*/
|
|
67
|
+
focusFirstItemOnOpen?: boolean;
|
|
63
68
|
/**
|
|
64
69
|
* Whether the menu should be visible.
|
|
65
70
|
*/
|
|
@@ -106,5 +111,5 @@ export type Props<L> = BaseProps<L> & ExclusiveProps<{
|
|
|
106
111
|
*
|
|
107
112
|
* A contextual menu can be used in conjunction with any page element to provide a contextual menu.
|
|
108
113
|
*/
|
|
109
|
-
declare const ContextualMenu: <L>({ autoAdjust, children, className, closeOnEsc, closeOnOutsideClick, constrainPanelWidth, dropdownClassName, dropdownProps, hasToggleIcon, links, onToggleMenu, position, positionNode, scrollOverflow, toggle, toggleAppearance, toggleClassName, toggleDisabled, toggleLabel, toggleLabelFirst, toggleProps, visible, ...wrapperProps }: Props<L>) => React.JSX.Element;
|
|
114
|
+
declare const ContextualMenu: <L>({ autoAdjust, children, className, closeOnEsc, closeOnOutsideClick, constrainPanelWidth, dropdownClassName, dropdownProps, hasToggleIcon, links, onToggleMenu, position, positionNode, scrollOverflow, toggle, toggleAppearance, toggleClassName, toggleDisabled, toggleLabel, toggleLabelFirst, toggleProps, visible, focusFirstItemOnOpen, ...wrapperProps }: Props<L>) => React.JSX.Element;
|
|
110
115
|
export default ContextualMenu;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
var _excluded = ["autoAdjust", "children", "className", "closeOnEsc", "closeOnOutsideClick", "constrainPanelWidth", "dropdownClassName", "dropdownProps", "hasToggleIcon", "links", "onToggleMenu", "position", "positionNode", "scrollOverflow", "toggle", "toggleAppearance", "toggleClassName", "toggleDisabled", "toggleLabel", "toggleLabelFirst", "toggleProps", "visible"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
1
|
+
var _excluded = ["autoAdjust", "children", "className", "closeOnEsc", "closeOnOutsideClick", "constrainPanelWidth", "dropdownClassName", "dropdownProps", "hasToggleIcon", "links", "onToggleMenu", "position", "positionNode", "scrollOverflow", "toggle", "toggleAppearance", "toggleClassName", "toggleDisabled", "toggleLabel", "toggleLabelFirst", "toggleProps", "visible", "focusFirstItemOnOpen"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
|
-
import
|
|
6
|
+
import { usePortal } from "../../external";
|
|
7
7
|
import { useListener, usePrevious } from "../../hooks";
|
|
8
|
+
import React, { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
8
9
|
import Button from "../Button";
|
|
9
10
|
import ContextualMenuDropdown from "./ContextualMenuDropdown";
|
|
10
|
-
|
|
11
|
+
var focusableElementSelectors = 'a[href]:not([tabindex="-1"]), button:not([disabled]):not([aria-disabled="true"]), textarea:not([disabled]):not([aria-disabled="true"]):not([tabindex="-1"]), input:not([disabled]):not([aria-disabled="true"]):not([tabindex="-1"]), select:not([disabled]):not([aria-disabled="true"]):not([tabindex="-1"]), area[href]:not([tabindex="-1"]), iframe:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]), [contentEditable=true]:not([tabindex="-1"])';
|
|
11
12
|
export var Label = /*#__PURE__*/function (Label) {
|
|
12
13
|
Label["Toggle"] = "Toggle menu";
|
|
13
14
|
return Label;
|
|
@@ -72,13 +73,15 @@ var ContextualMenu = _ref => {
|
|
|
72
73
|
toggleLabel,
|
|
73
74
|
toggleLabelFirst = true,
|
|
74
75
|
toggleProps,
|
|
75
|
-
visible = false
|
|
76
|
+
visible = false,
|
|
77
|
+
focusFirstItemOnOpen = true
|
|
76
78
|
} = _ref,
|
|
77
79
|
wrapperProps = _objectWithoutProperties(_ref, _excluded);
|
|
78
|
-
var
|
|
80
|
+
var dropdownId = useId();
|
|
79
81
|
var wrapper = useRef(null);
|
|
80
82
|
var [positionCoords, setPositionCoords] = useState();
|
|
81
83
|
var [adjustedPosition, setAdjustedPosition] = useState(position);
|
|
84
|
+
var focusAnimationFrameId = useRef(null);
|
|
82
85
|
useEffect(() => {
|
|
83
86
|
setAdjustedPosition(position);
|
|
84
87
|
}, [position, autoAdjust]);
|
|
@@ -91,6 +94,60 @@ var ContextualMenu = _ref => {
|
|
|
91
94
|
}
|
|
92
95
|
setPositionCoords(parent.getBoundingClientRect());
|
|
93
96
|
}, [wrapper, positionNode]);
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Gets the dropdopwn element (`ContextualMenuDropdown`).
|
|
100
|
+
* @returns The dropdown element or null if it does not exist.
|
|
101
|
+
*/
|
|
102
|
+
var getDropdown = useCallback(() => {
|
|
103
|
+
if (typeof document === "undefined") return null;
|
|
104
|
+
/**
|
|
105
|
+
* This is Using `document` instead of refs because `dropdownProps` may include a ref,
|
|
106
|
+
* while `dropdownId` is unique and controlled by us.
|
|
107
|
+
*/
|
|
108
|
+
return document.getElementById(dropdownId);
|
|
109
|
+
}, [dropdownId]);
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Gets all focusable items in the dropdown element.
|
|
113
|
+
* @returns Array of focusable items in the dropdown element.
|
|
114
|
+
*/
|
|
115
|
+
var getFocusableDropdownItems = useCallback(() => {
|
|
116
|
+
var _getDropdown;
|
|
117
|
+
return Array.from(((_getDropdown = getDropdown()) === null || _getDropdown === void 0 ? void 0 : _getDropdown.querySelectorAll(focusableElementSelectors)) || []);
|
|
118
|
+
}, [getDropdown]);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Focuses the first focusable item in the dropdown element.
|
|
122
|
+
* This is useful for keyboard users (who expect focus to move into the menu when it opens).
|
|
123
|
+
*/
|
|
124
|
+
var focusFirstDropdownItem = useCallback(() => {
|
|
125
|
+
var _focusableElements$;
|
|
126
|
+
var focusableElements = getFocusableDropdownItems();
|
|
127
|
+
(_focusableElements$ = focusableElements[0]) === null || _focusableElements$ === void 0 || _focusableElements$.focus();
|
|
128
|
+
}, [getFocusableDropdownItems]);
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Cleans up any pending dropdown focus animation frames.
|
|
132
|
+
*/
|
|
133
|
+
var cleanupDropdownFocus = () => {
|
|
134
|
+
if (focusAnimationFrameId.current) {
|
|
135
|
+
cancelAnimationFrame(focusAnimationFrameId.current);
|
|
136
|
+
focusAnimationFrameId.current = null;
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
var returnFocusToTrigger = () => {
|
|
140
|
+
var _wrapper$current;
|
|
141
|
+
// Button element does not accept refs.
|
|
142
|
+
var trigger = (_wrapper$current = wrapper.current) === null || _wrapper$current === void 0 ? void 0 : _wrapper$current.querySelector(".p-contextual-menu__toggle");
|
|
143
|
+
// return focus to the trigger button when the menu closes
|
|
144
|
+
if (trigger) {
|
|
145
|
+
trigger.focus();
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
useEffect(() => {
|
|
149
|
+
return () => cleanupDropdownFocus();
|
|
150
|
+
}, []);
|
|
94
151
|
var {
|
|
95
152
|
openPortal,
|
|
96
153
|
closePortal,
|
|
@@ -100,18 +157,57 @@ var ContextualMenu = _ref => {
|
|
|
100
157
|
closeOnEsc,
|
|
101
158
|
closeOnOutsideClick,
|
|
102
159
|
isOpen: visible,
|
|
103
|
-
onOpen:
|
|
160
|
+
onOpen: event => {
|
|
104
161
|
// Call the toggle callback, if supplied.
|
|
105
162
|
onToggleMenu === null || onToggleMenu === void 0 || onToggleMenu(true);
|
|
106
163
|
// When the menu opens then update the coordinates of the parent.
|
|
107
164
|
updatePositionCoords();
|
|
165
|
+
if (focusFirstItemOnOpen && // Don't focus the item unless it was opened by a keyboard event
|
|
166
|
+
// This type silliness is because `detail` isn't on the type for `event.nativeEvent` passed from `usePortal`,
|
|
167
|
+
// as we are using `CustomEvent<HTMLElement>` which does not have `detail` defined.
|
|
168
|
+
event !== null && event !== void 0 && event.nativeEvent && "detail" in event.nativeEvent && event.nativeEvent.detail === 0) {
|
|
169
|
+
cleanupDropdownFocus();
|
|
170
|
+
// We need to wait a frame for any pending focus events to complete.
|
|
171
|
+
focusAnimationFrameId.current = requestAnimationFrame(() => focusFirstDropdownItem());
|
|
172
|
+
}
|
|
108
173
|
},
|
|
109
174
|
onClose: () => {
|
|
110
175
|
// Call the toggle callback, if supplied.
|
|
111
176
|
onToggleMenu === null || onToggleMenu === void 0 || onToggleMenu(false);
|
|
177
|
+
cleanupDropdownFocus();
|
|
178
|
+
returnFocusToTrigger();
|
|
112
179
|
},
|
|
113
180
|
programmaticallyOpen: true
|
|
114
181
|
});
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Trap focus within the dropdown
|
|
185
|
+
*/
|
|
186
|
+
useEffect(() => {
|
|
187
|
+
var handleKeyDown = e => {
|
|
188
|
+
if (e.key !== "Tab" || !isOpen) return;
|
|
189
|
+
var items = getFocusableDropdownItems();
|
|
190
|
+
if (items.length === 0) return;
|
|
191
|
+
var active = document.activeElement;
|
|
192
|
+
var first = items[0];
|
|
193
|
+
var last = items[items.length - 1];
|
|
194
|
+
if (!e.shiftKey && active === last) {
|
|
195
|
+
// Tab on the last item: wrap back to the first focusable item
|
|
196
|
+
e.preventDefault();
|
|
197
|
+
first.focus();
|
|
198
|
+
} else if (e.shiftKey && active === first) {
|
|
199
|
+
// Shift+Tab on the first item: wrap back to the last focusable item
|
|
200
|
+
e.preventDefault();
|
|
201
|
+
last.focus();
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
var dropdown = getDropdown();
|
|
205
|
+
if (!dropdown) return undefined;
|
|
206
|
+
dropdown.addEventListener("keydown", handleKeyDown);
|
|
207
|
+
return () => {
|
|
208
|
+
dropdown.removeEventListener("keydown", handleKeyDown);
|
|
209
|
+
};
|
|
210
|
+
}, [getDropdown, getFocusableDropdownItems, isOpen]);
|
|
115
211
|
var previousVisible = usePrevious(visible);
|
|
116
212
|
var labelNode = toggleLabel && typeof toggleLabel === "string" ? /*#__PURE__*/React.createElement("span", null, toggleLabel) : /*#__PURE__*/React.isValidElement(toggleLabel) ? toggleLabel : null;
|
|
117
213
|
var contextualMenuClassName = classNames(className, "p-contextual-menu", {
|
|
@@ -176,7 +272,7 @@ var ContextualMenu = _ref => {
|
|
|
176
272
|
} else if (hasToggleIcon || toggleLabel) {
|
|
177
273
|
toggleNode = /*#__PURE__*/React.createElement(Button, _extends({
|
|
178
274
|
appearance: toggleAppearance,
|
|
179
|
-
"aria-controls":
|
|
275
|
+
"aria-controls": dropdownId,
|
|
180
276
|
"aria-expanded": isOpen ? "true" : "false",
|
|
181
277
|
"aria-label": toggleLabel ? null : Label.Toggle,
|
|
182
278
|
"aria-pressed": isOpen ? "true" : "false",
|
|
@@ -208,7 +304,7 @@ var ContextualMenu = _ref => {
|
|
|
208
304
|
constrainPanelWidth: constrainPanelWidth,
|
|
209
305
|
dropdownClassName: dropdownClassName,
|
|
210
306
|
dropdownContent: children,
|
|
211
|
-
id:
|
|
307
|
+
id: dropdownId,
|
|
212
308
|
isOpen: isOpen,
|
|
213
309
|
links: links,
|
|
214
310
|
position: position,
|