@canonical/react-components 3.12.1 → 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 +5 -6
- 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.js +4 -4
- 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 +3 -3
- 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.js +3 -3
- 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
|
@@ -8,9 +8,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _SummaryButton = _interopRequireDefault(require("../SummaryButton"));
|
|
9
9
|
var _ModularTable = _interopRequireDefault(require("./ModularTable"));
|
|
10
10
|
var _Icon = require("../Icon");
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
13
|
const getSampleData = function () {
|
|
15
14
|
let i = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
16
15
|
return [{
|
|
@@ -313,10 +312,10 @@ const Subheading = exports.Subheading = {
|
|
|
313
312
|
columns: _react.default.useMemo(() => [{
|
|
314
313
|
Header: "ID",
|
|
315
314
|
accessor: "buildId",
|
|
316
|
-
Cell:
|
|
315
|
+
Cell: _ref0 => {
|
|
317
316
|
let {
|
|
318
317
|
value
|
|
319
|
-
} =
|
|
318
|
+
} = _ref0;
|
|
320
319
|
return /*#__PURE__*/_react.default.createElement("a", {
|
|
321
320
|
href: "#test"
|
|
322
321
|
}, "#", value);
|
|
@@ -331,10 +330,10 @@ const Subheading = exports.Subheading = {
|
|
|
331
330
|
}, {
|
|
332
331
|
Header: "Result",
|
|
333
332
|
accessor: "result",
|
|
334
|
-
Cell:
|
|
333
|
+
Cell: _ref1 => {
|
|
335
334
|
let {
|
|
336
335
|
value
|
|
337
|
-
} =
|
|
336
|
+
} = _ref1;
|
|
338
337
|
switch (value) {
|
|
339
338
|
case "released":
|
|
340
339
|
return "Released";
|
|
@@ -344,10 +343,10 @@ const Subheading = exports.Subheading = {
|
|
|
344
343
|
return "Unknown";
|
|
345
344
|
}
|
|
346
345
|
},
|
|
347
|
-
getCellIcon:
|
|
346
|
+
getCellIcon: _ref10 => {
|
|
348
347
|
let {
|
|
349
348
|
value
|
|
350
|
-
} =
|
|
349
|
+
} = _ref10;
|
|
351
350
|
switch (value) {
|
|
352
351
|
case "released":
|
|
353
352
|
return _Icon.ICONS.success;
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _ModularTable = _interopRequireDefault(require("./ModularTable"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -8,7 +8,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
require("./FadeInDown.scss");
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
/**
|
|
13
13
|
* EXPERIMENTAL: This component is experimental and should be used internally only.
|
|
14
14
|
*/
|
|
@@ -11,12 +11,11 @@ require("./MultiSelect.scss");
|
|
|
11
11
|
var _index = require("../../index");
|
|
12
12
|
var _FadeInDown = require("./FadeInDown");
|
|
13
13
|
const _excluded = ["items", "selectedItems", "disabledItems", "header", "updateItems", "onSelectItem", "onDeselectItem", "isOpen", "footer", "sortFn", "groupFn", "hasSelectedItemsFirst"];
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
function
|
|
19
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
18
|
+
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; }
|
|
20
19
|
const sortAlphabetically = (a, b) => {
|
|
21
20
|
return a.label.localeCompare(b.label, "en", {
|
|
22
21
|
numeric: true
|
|
@@ -6,14 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.WithoutSorting = exports.WithDisabledItems = exports.SearchExample = exports.HelpText = exports.Disabled = exports.CondensedExample = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _MultiSelect = require("./MultiSelect");
|
|
9
|
-
function
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
10
|
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; }
|
|
12
11
|
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; }
|
|
13
|
-
function _defineProperty(
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
12
|
+
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; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
15
14
|
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); }
|
|
16
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
15
|
+
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); }
|
|
17
16
|
const Template = props => {
|
|
18
17
|
const [selectedItems, setSelectedItems] = (0, _react.useState)(props.selectedItems || []);
|
|
19
18
|
return /*#__PURE__*/_react.default.createElement(_MultiSelect.MultiSelect, _extends({}, props, {
|
|
@@ -13,17 +13,16 @@ var _hooks = require("../../hooks");
|
|
|
13
13
|
var _enums = require("../../enums");
|
|
14
14
|
const _excluded = ["url", "src", "title", "icon", "aria-current", "aria-label"],
|
|
15
15
|
_excluded2 = ["fullWidth", "generateLink", "items", "itemsRight", "leftNavProps", "logo", "navProps", "rightNavProps", "searchProps", "theme"];
|
|
16
|
-
function _interopRequireDefault(
|
|
17
|
-
function
|
|
18
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
19
18
|
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; }
|
|
20
19
|
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; }
|
|
21
|
-
function _defineProperty(
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
20
|
+
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; }
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23
22
|
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); }
|
|
24
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
25
|
-
function _objectWithoutProperties(
|
|
26
|
-
function _objectWithoutPropertiesLoose(
|
|
23
|
+
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); }
|
|
24
|
+
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; }
|
|
25
|
+
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; }
|
|
27
26
|
/**
|
|
28
27
|
* Narrow the type of the nav item to a NavMenu.
|
|
29
28
|
*/
|
|
@@ -7,7 +7,7 @@ exports.default = exports.Search = exports.OverridingTheLogo = exports.Overridin
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Navigation = _interopRequireDefault(require("./Navigation"));
|
|
9
9
|
var _enums = require("../../enums");
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const meta = {
|
|
12
12
|
component: _Navigation.default,
|
|
13
13
|
tags: ["autodocs"]
|
|
@@ -10,15 +10,15 @@ var _utils = require("../../../utils");
|
|
|
10
10
|
const _excluded = ["isSelected"],
|
|
11
11
|
_excluded2 = ["isSelected", "label", "url"],
|
|
12
12
|
_excluded3 = ["isSelected", "label", "url"];
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
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); }
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
|
-
function _defineProperty(
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
17
|
+
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; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19
19
|
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); }
|
|
20
|
-
function _objectWithoutProperties(
|
|
21
|
-
function _objectWithoutPropertiesLoose(
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
22
|
/**
|
|
23
23
|
* This component is used internally to display links inside the Navigation component.
|
|
24
24
|
*/
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _NavigationLink = _interopRequireDefault(require("./NavigationLink"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -9,17 +9,16 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
9
9
|
var _NavigationLink = _interopRequireDefault(require("../NavigationLink"));
|
|
10
10
|
var _hooks = require("../../../hooks");
|
|
11
11
|
const _excluded = ["alignRight", "generateLink", "items", "label"];
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
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); }
|
|
16
15
|
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; }
|
|
17
16
|
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; }
|
|
18
|
-
function _defineProperty(
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
17
|
+
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; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
20
19
|
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); }
|
|
21
|
-
function _objectWithoutProperties(
|
|
22
|
-
function _objectWithoutPropertiesLoose(
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
23
22
|
/**
|
|
24
23
|
* This component is used internally to display menus inside the Navigation component.
|
|
25
24
|
*/
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _NavigationMenu = _interopRequireDefault(require("./NavigationMenu"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _Navigation = _interopRequireDefault(require("./Navigation"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -10,9 +10,8 @@ var _fastDeepEqual = _interopRequireDefault(require("fast-deep-equal"));
|
|
|
10
10
|
var _messageBuilder = require("./messageBuilder");
|
|
11
11
|
var _Notifications = _interopRequireDefault(require("../Notifications"));
|
|
12
12
|
var _Notification = require("../Notifications/Notification/Notification");
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
-
function
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
15
|
const NotifyContext = /*#__PURE__*/(0, _react.createContext)({
|
|
17
16
|
notification: null,
|
|
18
17
|
clear: () => undefined,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.success = exports.queue = exports.info = exports.formatErrorMessage = exports.failure = exports.caution = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Notifications = require("../Notifications");
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
const queue = notification => {
|
|
11
11
|
return {
|
|
12
12
|
state: {
|
|
@@ -9,12 +9,11 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _Button = _interopRequireWildcard(require("../../Button"));
|
|
10
10
|
var _utils = require("../../../utils");
|
|
11
11
|
const _excluded = ["actions", "borderless", "children", "className", "close", "inline", "onDismiss", "severity", "status", "timeout", "timestamp", "title", "titleElement", "type"];
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
function
|
|
17
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
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; }
|
|
18
17
|
let Label = exports.Label = /*#__PURE__*/function (Label) {
|
|
19
18
|
Label["Close"] = "Close notification";
|
|
20
19
|
return Label;
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.Timestamp = exports.Timeout = exports.Positive = exports.Negative = exports.Inline = exports.Information = exports.Dismissible = exports.Caution = exports.Borderless = exports.Actions = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _Notification = _interopRequireWildcard(require("./Notification"));
|
|
9
|
-
function
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
10
|
const meta = {
|
|
12
11
|
component: _Notification.default,
|
|
13
12
|
tags: ["autodocs"],
|
|
@@ -16,5 +16,4 @@ Object.defineProperty(exports, "default", {
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
var _Notification = _interopRequireWildcard(require("./Notification"));
|
|
19
|
-
function
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _hooks = require("../../../hooks");
|
|
9
|
-
function
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
10
|
const Animate = _ref => {
|
|
12
11
|
let {
|
|
13
12
|
show,
|
|
@@ -11,7 +11,7 @@ var _reactDom = require("react-dom");
|
|
|
11
11
|
var _Animate = _interopRequireDefault(require("./Animate"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
require("./Toast.scss");
|
|
14
|
-
function _interopRequireDefault(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
const ToastNotification = _ref => {
|
|
16
16
|
var _notification$title;
|
|
17
17
|
let {
|
|
@@ -24,7 +24,7 @@ const ToastNotification = _ref => {
|
|
|
24
24
|
if (!notification) {
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/(0, _reactDom.createPortal)(
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react.default.createElement(_Animate.default, {
|
|
28
28
|
show: show,
|
|
29
29
|
from: {
|
|
30
30
|
opacity: 0
|
|
@@ -7,9 +7,8 @@ exports.default = exports.Default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _index = require("./index");
|
|
9
9
|
var _Button = _interopRequireDefault(require("../../Button"));
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
12
|
const meta = {
|
|
14
13
|
component: _index.ToastNotificationProvider,
|
|
15
14
|
tags: ["autodocs"],
|
|
@@ -14,9 +14,8 @@ var _reactDom = require("react-dom");
|
|
|
14
14
|
var _Animate = _interopRequireDefault(require("./Animate"));
|
|
15
15
|
var _hooks = require("../../../hooks");
|
|
16
16
|
require("./Toast.scss");
|
|
17
|
-
function
|
|
18
|
-
function
|
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
19
|
const severityOrder = exports.severityOrder = ["positive", "caution", "negative", "information"];
|
|
21
20
|
const iconLookup = exports.iconLookup = {
|
|
22
21
|
positive: _Icon.ICONS.success,
|
|
@@ -185,7 +184,7 @@ const ToastNotificationList = _ref => {
|
|
|
185
184
|
titleElement: "div"
|
|
186
185
|
}, notification.message));
|
|
187
186
|
});
|
|
188
|
-
return /*#__PURE__*/(0, _reactDom.createPortal)(
|
|
187
|
+
return /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react.default.createElement(_Animate.default, {
|
|
189
188
|
show: show,
|
|
190
189
|
from: {
|
|
191
190
|
opacity: 0,
|
|
@@ -8,13 +8,12 @@ var _NotificationProvider = require("../../NotificationProvider");
|
|
|
8
8
|
var _ToastNotification = _interopRequireDefault(require("./ToastNotification"));
|
|
9
9
|
var _ToastNotificationList = _interopRequireDefault(require("./ToastNotificationList"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
13
|
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; }
|
|
15
14
|
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; }
|
|
16
|
-
function _defineProperty(
|
|
17
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
15
|
+
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; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
18
17
|
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); }
|
|
19
18
|
const HIDE_NOTIFICATION_DELAY = 5000;
|
|
20
19
|
const initialNotification = {
|
|
@@ -30,6 +30,5 @@ Object.defineProperty(exports, "useToastNotification", {
|
|
|
30
30
|
var _ToastNotificationProvider = _interopRequireWildcard(require("./ToastNotificationProvider"));
|
|
31
31
|
var _ToastNotification = _interopRequireDefault(require("./ToastNotification"));
|
|
32
32
|
var _ToastNotificationList = _interopRequireDefault(require("./ToastNotificationList"));
|
|
33
|
-
function _interopRequireDefault(
|
|
34
|
-
function
|
|
35
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
33
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
34
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -41,5 +41,4 @@ Object.defineProperty(exports, "useToastNotification", {
|
|
|
41
41
|
});
|
|
42
42
|
var _Notification = _interopRequireWildcard(require("./Notification"));
|
|
43
43
|
var _ToastNotification = require("./ToastNotification");
|
|
44
|
-
function
|
|
45
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
44
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -9,10 +9,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _PaginationButton = _interopRequireDefault(require("./PaginationButton"));
|
|
10
10
|
var _PaginationItem = _interopRequireDefault(require("./PaginationItem"));
|
|
11
11
|
const _excluded = ["itemsPerPage", "totalItems", "paginate", "currentPage", "scrollToTop", "truncateThreshold", "centered", "showLabels", "hideNumbers", "onForward", "onBack", "forwardDisabled", "backDisabled", "forwardLabel", "backLabel"];
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
14
|
-
function _objectWithoutProperties(
|
|
15
|
-
function _objectWithoutPropertiesLoose(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
16
|
const scrollTop = () => window.scrollTo(0, 0);
|
|
17
17
|
const generatePaginationItems = (pageNumbers, currentPage, truncateThreshold, changePage) => {
|
|
18
18
|
const lastPage = pageNumbers.length;
|
|
@@ -44,14 +44,14 @@ const generatePaginationItems = (pageNumbers, currentPage, truncateThreshold, ch
|
|
|
44
44
|
const items = [];
|
|
45
45
|
if (truncated) {
|
|
46
46
|
// render first in sequence
|
|
47
|
-
items.push(
|
|
47
|
+
items.push(/*#__PURE__*/_react.default.createElement(_PaginationItem.default, {
|
|
48
48
|
key: 1,
|
|
49
49
|
number: 1,
|
|
50
50
|
isActive: currentPage === 1,
|
|
51
51
|
onClick: () => changePage(1)
|
|
52
52
|
}));
|
|
53
53
|
if (!visiblePages.includes(2)) {
|
|
54
|
-
items.push(
|
|
54
|
+
items.push(/*#__PURE__*/_react.default.createElement(PaginationItemSeparator, {
|
|
55
55
|
key: "sep1"
|
|
56
56
|
}));
|
|
57
57
|
}
|
|
@@ -65,11 +65,11 @@ const generatePaginationItems = (pageNumbers, currentPage, truncateThreshold, ch
|
|
|
65
65
|
if (truncated) {
|
|
66
66
|
// render last in sequence
|
|
67
67
|
if (!visiblePages.includes(lastPage - 1)) {
|
|
68
|
-
items.push(
|
|
68
|
+
items.push(/*#__PURE__*/_react.default.createElement(PaginationItemSeparator, {
|
|
69
69
|
key: "sep2"
|
|
70
70
|
}));
|
|
71
71
|
}
|
|
72
|
-
items.push(
|
|
72
|
+
items.push(/*#__PURE__*/_react.default.createElement(_PaginationItem.default, {
|
|
73
73
|
key: lastPage,
|
|
74
74
|
number: lastPage,
|
|
75
75
|
isActive: currentPage === lastPage,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.TruncatedNumberedPagination = exports.DisabledPaginationItemsNumberedPagination = exports.DisabledControlsNumberedPagination = exports.DefaultButtonsOnlyPagination = exports.DefaultButtonLabelsButtonsOnlyPagination = exports.Default = exports.CustomButtonLabelsButtonsOnlyPagination = exports.CenteredNumberedPagination = exports.CenteredButtonsOnlyPagination = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
const meta = {
|
|
11
11
|
component: _Pagination.default,
|
|
12
12
|
tags: ["autodocs"]
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.Label = void 0;
|
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
let Label = exports.Label = /*#__PURE__*/function (Label) {
|
|
11
11
|
Label["Next"] = "Next page";
|
|
12
12
|
Label["Previous"] = "Previous page";
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _PaginationButton = _interopRequireDefault(require("./PaginationButton"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
const PaginationItem = _ref => {
|
|
11
11
|
let {
|
|
12
12
|
number,
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _PaginationItem = _interopRequireDefault(require("./PaginationItem"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|