@canonical/react-components 1.2.4 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +9 -6
- package/dist/components/Accordion/Accordion.d.ts +0 -46
- package/dist/components/Accordion/Accordion.stories.d.ts +0 -18
- package/dist/components/Accordion/Accordion.stories.js +0 -117
- package/dist/components/Accordion/AccordionSection/AccordionSection.d.ts +0 -34
- package/dist/components/Accordion/AccordionSection/index.d.ts +0 -2
- package/dist/components/Accordion/index.d.ts +0 -2
- package/dist/components/ActionButton/ActionButton.d.ts +0 -48
- package/dist/components/ActionButton/ActionButton.stories.d.ts +0 -7
- package/dist/components/ActionButton/ActionButton.stories.js +0 -36
- package/dist/components/ActionButton/index.d.ts +0 -2
- package/dist/components/ApplicationLayout/AppAside/AppAside.d.ts +0 -33
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.d.ts +0 -13
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.js +0 -116
- package/dist/components/ApplicationLayout/AppAside/index.d.ts +0 -2
- package/dist/components/ApplicationLayout/AppMain/AppMain.d.ts +0 -14
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.d.ts +0 -14
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.js +0 -45
- package/dist/components/ApplicationLayout/AppMain/index.d.ts +0 -2
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.d.ts +0 -26
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.d.ts +0 -12
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +0 -104
- package/dist/components/ApplicationLayout/AppNavigation/index.d.ts +0 -2
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.d.ts +0 -18
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.d.ts +0 -15
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +0 -52
- package/dist/components/ApplicationLayout/AppNavigationBar/index.d.ts +0 -2
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.d.ts +0 -14
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.d.ts +0 -13
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.js +0 -41
- package/dist/components/ApplicationLayout/AppStatus/index.d.ts +0 -2
- package/dist/components/ApplicationLayout/Application/Application.d.ts +0 -15
- package/dist/components/ApplicationLayout/Application/Application.stories.d.ts +0 -6
- package/dist/components/ApplicationLayout/Application/Application.stories.js +0 -16
- package/dist/components/ApplicationLayout/Application/index.d.ts +0 -2
- package/dist/components/ApplicationLayout/ApplicationLayout.d.ts +0 -89
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.d.ts +0 -24
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.js +0 -232
- package/dist/components/ApplicationLayout/index.d.ts +0 -7
- package/dist/components/ArticlePagination/ArticlePagination.d.ts +0 -31
- package/dist/components/ArticlePagination/ArticlePagination.stories.d.ts +0 -6
- package/dist/components/ArticlePagination/ArticlePagination.stories.js +0 -22
- package/dist/components/ArticlePagination/index.d.ts +0 -2
- package/dist/components/Badge/Badge.d.ts +0 -34
- package/dist/components/Badge/Badge.stories.d.ts +0 -15
- package/dist/components/Badge/Badge.stories.js +0 -62
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Button/Button.d.ts +0 -64
- package/dist/components/Button/Button.stories.d.ts +0 -32
- package/dist/components/Button/Button.stories.js +0 -180
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -35
- package/dist/components/Card/Card.stories.d.ts +0 -33
- package/dist/components/Card/Card.stories.js +0 -51
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/CheckboxInput/CheckableInput/CheckableInput.d.ts +0 -27
- package/dist/components/CheckboxInput/CheckableInput/index.d.ts +0 -2
- package/dist/components/CheckboxInput/CheckboxInput.d.ts +0 -9
- package/dist/components/CheckboxInput/CheckboxInput.stories.d.ts +0 -11
- package/dist/components/CheckboxInput/CheckboxInput.stories.js +0 -84
- package/dist/components/CheckboxInput/index.d.ts +0 -2
- package/dist/components/Chip/Chip.d.ts +0 -56
- package/dist/components/Chip/Chip.stories.d.ts +0 -9
- package/dist/components/Chip/Chip.stories.js +0 -45
- package/dist/components/Chip/index.d.ts +0 -2
- package/dist/components/Code/Code.d.ts +0 -13
- package/dist/components/Code/index.d.ts +0 -2
- package/dist/components/CodeSnippet/CodeSnippet.d.ts +0 -21
- package/dist/components/CodeSnippet/CodeSnippet.stories.d.ts +0 -45
- package/dist/components/CodeSnippet/CodeSnippet.stories.js +0 -279
- package/dist/components/CodeSnippet/CodeSnippetBlock.d.ts +0 -40
- package/dist/components/CodeSnippet/CodeSnippetDropdown.d.ts +0 -18
- package/dist/components/CodeSnippet/index.d.ts +0 -5
- package/dist/components/Col/Col.d.ts +0 -53
- package/dist/components/Col/Col.stories.d.ts +0 -11
- package/dist/components/Col/Col.stories.js +0 -154
- package/dist/components/Col/index.d.ts +0 -2
- package/dist/components/ConfirmationButton/ConfirmationButton.d.ts +0 -28
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.d.ts +0 -9
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.js +0 -108
- package/dist/components/ConfirmationButton/index.d.ts +0 -2
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -53
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -18
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +0 -135
- package/dist/components/ConfirmationModal/index.d.ts +0 -2
- package/dist/components/ContextualMenu/ContextualMenu.d.ts +0 -110
- package/dist/components/ContextualMenu/ContextualMenu.stories.d.ts +0 -13
- package/dist/components/ContextualMenu/ContextualMenu.stories.js +0 -107
- package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +0 -43
- package/dist/components/ContextualMenu/ContextualMenuDropdown/index.d.ts +0 -2
- package/dist/components/ContextualMenu/index.d.ts +0 -3
- package/dist/components/EmptyState/EmptyState.d.ts +0 -25
- package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -7
- package/dist/components/EmptyState/EmptyState.stories.js +0 -49
- package/dist/components/EmptyState/index.d.ts +0 -2
- package/dist/components/Field/Field.d.ts +0 -77
- package/dist/components/Field/index.d.ts +0 -2
- package/dist/components/Form/Form.d.ts +0 -21
- package/dist/components/Form/Form.stories.d.ts +0 -12
- package/dist/components/Form/Form.stories.js +0 -179
- package/dist/components/Form/index.d.ts +0 -2
- package/dist/components/FormikField/FormikField.d.ts +0 -25
- package/dist/components/FormikField/FormikField.stories.d.ts +0 -8
- package/dist/components/FormikField/FormikField.stories.js +0 -85
- package/dist/components/FormikField/index.d.ts +0 -1
- package/dist/components/Icon/Icon.d.ts +0 -59
- package/dist/components/Icon/Icon.stories.d.ts +0 -16
- package/dist/components/Icon/Icon.stories.js +0 -49
- package/dist/components/Icon/index.d.ts +0 -2
- package/dist/components/Input/Input.d.ts +0 -70
- package/dist/components/Input/Input.stories.d.ts +0 -14
- package/dist/components/Input/Input.stories.js +0 -148
- package/dist/components/Input/index.d.ts +0 -2
- package/dist/components/Label/Label.d.ts +0 -25
- package/dist/components/Label/index.d.ts +0 -2
- package/dist/components/Link/Link.d.ts +0 -31
- package/dist/components/Link/Link.stories.d.ts +0 -9
- package/dist/components/Link/Link.stories.js +0 -48
- package/dist/components/Link/index.d.ts +0 -2
- package/dist/components/List/List.d.ts +0 -36
- package/dist/components/List/List.stories.d.ts +0 -15
- package/dist/components/List/List.stories.js +0 -122
- package/dist/components/List/index.d.ts +0 -2
- package/dist/components/Loader/Loader.d.ts +0 -6
- package/dist/components/Loader/index.d.ts +0 -1
- package/dist/components/LoginPageLayout/LoginPageLayout.d.ts +0 -17
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.d.ts +0 -9
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.js +0 -58
- package/dist/components/LoginPageLayout/index.d.ts +0 -2
- package/dist/components/MainTable/MainTable.d.ts +0 -102
- package/dist/components/MainTable/MainTable.stories.d.ts +0 -15
- package/dist/components/MainTable/MainTable.stories.js +0 -553
- package/dist/components/MainTable/index.d.ts +0 -2
- package/dist/components/Modal/Modal.d.ts +0 -36
- package/dist/components/Modal/Modal.stories.d.ts +0 -6
- package/dist/components/Modal/Modal.stories.js +0 -57
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/ModularTable/ModularTable.d.ts +0 -105
- package/dist/components/ModularTable/ModularTable.stories.d.ts +0 -27
- package/dist/components/ModularTable/ModularTable.stories.js +0 -343
- package/dist/components/ModularTable/index.d.ts +0 -2
- package/dist/components/MultiSelect/FadeInDown/FadeInDown.d.ts +0 -10
- package/dist/components/MultiSelect/FadeInDown/index.d.ts +0 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +0 -57
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -8
- package/dist/components/MultiSelect/MultiSelect.stories.js +0 -70
- package/dist/components/MultiSelect/index.d.ts +0 -1
- package/dist/components/Navigation/Navigation.d.ts +0 -66
- package/dist/components/Navigation/Navigation.stories.d.ts +0 -43
- package/dist/components/Navigation/Navigation.stories.js +0 -232
- package/dist/components/Navigation/NavigationLink/NavigationLink.d.ts +0 -10
- package/dist/components/Navigation/NavigationLink/index.d.ts +0 -1
- package/dist/components/Navigation/NavigationMenu/NavigationMenu.d.ts +0 -11
- package/dist/components/Navigation/NavigationMenu/index.d.ts +0 -1
- package/dist/components/Navigation/index.d.ts +0 -3
- package/dist/components/Navigation/types.d.ts +0 -64
- package/dist/components/Notification/Notification.d.ts +0 -110
- package/dist/components/Notification/Notification.stories.d.ts +0 -45
- package/dist/components/Notification/Notification.stories.js +0 -201
- package/dist/components/Notification/index.d.ts +0 -2
- package/dist/components/NotificationProvider/NotificationProvider.d.ts +0 -5
- package/dist/components/NotificationProvider/index.d.ts +0 -3
- package/dist/components/NotificationProvider/messageBuilder.d.ts +0 -6
- package/dist/components/NotificationProvider/types.d.ts +0 -35
- package/dist/components/Pagination/Pagination.d.ts +0 -102
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -14
- package/dist/components/Pagination/Pagination.stories.js +0 -94
- package/dist/components/Pagination/PaginationButton/PaginationButton.d.ts +0 -30
- package/dist/components/Pagination/PaginationButton/index.d.ts +0 -2
- package/dist/components/Pagination/PaginationItem/PaginationItem.d.ts +0 -17
- package/dist/components/Pagination/PaginationItem/index.d.ts +0 -2
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/Panel/Panel.d.ts +0 -123
- package/dist/components/Panel/Panel.stories.d.ts +0 -17
- package/dist/components/Panel/Panel.stories.js +0 -60
- package/dist/components/Panel/index.d.ts +0 -1
- package/dist/components/PasswordToggle/PasswordToggle.d.ts +0 -108
- package/dist/components/PasswordToggle/PasswordToggle.stories.d.ts +0 -12
- package/dist/components/PasswordToggle/PasswordToggle.stories.js +0 -74
- package/dist/components/PasswordToggle/index.d.ts +0 -2
- package/dist/components/RadioInput/RadioInput.d.ts +0 -9
- package/dist/components/RadioInput/RadioInput.stories.d.ts +0 -10
- package/dist/components/RadioInput/RadioInput.stories.js +0 -83
- package/dist/components/RadioInput/index.d.ts +0 -2
- package/dist/components/Row/Row.d.ts +0 -19
- package/dist/components/Row/Row.stories.d.ts +0 -9
- package/dist/components/Row/Row.stories.js +0 -29
- package/dist/components/Row/index.d.ts +0 -2
- package/dist/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.d.ts +0 -25
- package/dist/components/SearchAndFilter/FilterPanelSection/index.d.ts +0 -1
- package/dist/components/SearchAndFilter/SearchAndFilter.d.ts +0 -33
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.d.ts +0 -8
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.js +0 -218
- package/dist/components/SearchAndFilter/index.d.ts +0 -2
- package/dist/components/SearchAndFilter/types.d.ts +0 -11
- package/dist/components/SearchAndFilter/utils.d.ts +0 -13
- package/dist/components/SearchBox/SearchBox.d.ts +0 -63
- package/dist/components/SearchBox/SearchBox.stories.d.ts +0 -14
- package/dist/components/SearchBox/SearchBox.stories.js +0 -106
- package/dist/components/SearchBox/index.d.ts +0 -2
- package/dist/components/Select/Select.d.ts +0 -71
- package/dist/components/Select/Select.stories.d.ts +0 -7
- package/dist/components/Select/Select.stories.js +0 -97
- package/dist/components/Select/index.d.ts +0 -2
- package/dist/components/SideNavigation/SideNavigation.d.ts +0 -50
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +0 -14
- package/dist/components/SideNavigation/SideNavigation.stories.js +0 -62
- package/dist/components/SideNavigation/SideNavigationBase/SideNavigationBase.d.ts +0 -31
- package/dist/components/SideNavigation/SideNavigationBase/index.d.ts +0 -1
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.d.ts +0 -20
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.d.ts +0 -22
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +0 -70
- package/dist/components/SideNavigation/SideNavigationItem/index.d.ts +0 -1
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.d.ts +0 -21
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.d.ts +0 -7
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +0 -32
- package/dist/components/SideNavigation/SideNavigationLink/index.d.ts +0 -1
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.d.ts +0 -7
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.d.ts +0 -6
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +0 -25
- package/dist/components/SideNavigation/SideNavigationText/index.d.ts +0 -1
- package/dist/components/SideNavigation/index.d.ts +0 -5
- package/dist/components/Slider/Slider.d.ts +0 -62
- package/dist/components/Slider/Slider.stories.d.ts +0 -10
- package/dist/components/Slider/Slider.stories.js +0 -74
- package/dist/components/Slider/index.d.ts +0 -2
- package/dist/components/Spinner/Spinner.d.ts +0 -29
- package/dist/components/Spinner/Spinner.stories.d.ts +0 -8
- package/dist/components/Spinner/Spinner.stories.js +0 -28
- package/dist/components/Spinner/index.d.ts +0 -2
- package/dist/components/StatusLabel/StatusLabel.d.ts +0 -33
- package/dist/components/StatusLabel/StatusLabel.stories.d.ts +0 -10
- package/dist/components/StatusLabel/StatusLabel.stories.js +0 -61
- package/dist/components/StatusLabel/index.d.ts +0 -2
- package/dist/components/Strip/Strip.d.ts +0 -64
- package/dist/components/Strip/Strip.stories.d.ts +0 -12
- package/dist/components/Strip/Strip.stories.js +0 -130
- package/dist/components/Strip/index.d.ts +0 -2
- package/dist/components/SummaryButton/SummaryButton.d.ts +0 -29
- package/dist/components/SummaryButton/SummaryButton.stories.d.ts +0 -18
- package/dist/components/SummaryButton/SummaryButton.stories.js +0 -59
- package/dist/components/SummaryButton/index.d.ts +0 -2
- package/dist/components/Switch/Switch.d.ts +0 -17
- package/dist/components/Switch/Switch.stories.d.ts +0 -7
- package/dist/components/Switch/Switch.stories.js +0 -26
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Table/Table.d.ts +0 -22
- package/dist/components/Table/index.d.ts +0 -2
- package/dist/components/TableCell/TableCell.d.ts +0 -26
- package/dist/components/TableCell/index.d.ts +0 -2
- package/dist/components/TableHeader/TableHeader.d.ts +0 -14
- package/dist/components/TableHeader/index.d.ts +0 -2
- package/dist/components/TablePagination/TablePagination.d.ts +0 -98
- package/dist/components/TablePagination/TablePagination.stories.d.ts +0 -14
- package/dist/components/TablePagination/TablePagination.stories.js +0 -330
- package/dist/components/TablePagination/TablePaginationControls/TablePaginationControls.d.ts +0 -24
- package/dist/components/TablePagination/TablePaginationControls/index.d.ts +0 -2
- package/dist/components/TablePagination/index.d.ts +0 -2
- package/dist/components/TablePagination/utils.d.ts +0 -27
- package/dist/components/TableRow/TableRow.d.ts +0 -10
- package/dist/components/TableRow/index.d.ts +0 -2
- package/dist/components/Tabs/Tabs.d.ts +0 -45
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -11
- package/dist/components/Tabs/Tabs.stories.js +0 -56
- package/dist/components/Tabs/index.d.ts +0 -2
- package/dist/components/Textarea/Textarea.d.ts +0 -70
- package/dist/components/Textarea/Textarea.stories.d.ts +0 -7
- package/dist/components/Textarea/Textarea.stories.js +0 -62
- package/dist/components/Textarea/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -75
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -12
- package/dist/components/Tooltip/Tooltip.stories.js +0 -71
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/enums.d.ts +0 -13
- package/dist/hooks/index.d.ts +0 -9
- package/dist/hooks/useId.d.ts +0 -4
- package/dist/hooks/useListener.d.ts +0 -11
- package/dist/hooks/useOnClickOutside.d.ts +0 -12
- package/dist/hooks/useOnEscapePressed.d.ts +0 -6
- package/dist/hooks/usePagination.d.ts +0 -19
- package/dist/hooks/usePrevious.d.ts +0 -7
- package/dist/hooks/useThrottle.d.ts +0 -9
- package/dist/hooks/useWindowFitment.d.ts +0 -54
- package/dist/index.d.ts +0 -132
- package/dist/types/index.d.ts +0 -38
- package/dist/utils.d.ts +0 -27
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ReactNode, HTMLProps } from "react";
|
|
2
|
-
import type { GenerateLink, NavItem, LogoProps } from "./types";
|
|
3
|
-
import { PropsWithSpread, SubComponentProps } from "../../types";
|
|
4
|
-
import { SearchBoxProps } from "../SearchBox";
|
|
5
|
-
import { Theme } from "../../enums";
|
|
6
|
-
export type Props = PropsWithSpread<{
|
|
7
|
-
/**
|
|
8
|
-
* By default the header is constrained to the width of the grid. Use this
|
|
9
|
-
* option to make the header take the full width of the page.
|
|
10
|
-
*/
|
|
11
|
-
fullWidth?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* This function can be used to generate link elements when you don't want to
|
|
14
|
-
* use a standard HTML anchor.
|
|
15
|
-
*/
|
|
16
|
-
generateLink?: GenerateLink | null;
|
|
17
|
-
/**
|
|
18
|
-
* The main navigation items that appear on the left hand side next to the logo.
|
|
19
|
-
*/
|
|
20
|
-
items?: NavItem[] | null;
|
|
21
|
-
/**
|
|
22
|
-
* Additional navigation items that appear on the right hand side of the
|
|
23
|
-
* navigation banner.
|
|
24
|
-
*/
|
|
25
|
-
itemsRight?: NavItem[] | null;
|
|
26
|
-
/**
|
|
27
|
-
* Additional props to be applied to the nav element that wraps the main
|
|
28
|
-
* navigation items on the left hand side.
|
|
29
|
-
*/
|
|
30
|
-
leftNavProps?: HTMLProps<HTMLUListElement> | null;
|
|
31
|
-
/**
|
|
32
|
-
* The logo can be defined either by providing props for the standard logo
|
|
33
|
-
* or the full logo markup when a custom logo is needed.
|
|
34
|
-
*/
|
|
35
|
-
logo: LogoProps | ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* Additional props to be applied to the nav element that wraps the
|
|
38
|
-
* left and right nav items.
|
|
39
|
-
*/
|
|
40
|
-
navProps?: HTMLProps<HTMLElement> | null;
|
|
41
|
-
/**
|
|
42
|
-
* Additional props to be applied to the nav element that wraps the
|
|
43
|
-
* navigation items on the right hand side.
|
|
44
|
-
*/
|
|
45
|
-
rightNavProps?: HTMLProps<HTMLUListElement> | null;
|
|
46
|
-
/**
|
|
47
|
-
* Props to pass to the SearchBox component. When these props are provided the
|
|
48
|
-
* search box will appear.
|
|
49
|
-
*/
|
|
50
|
-
searchProps?: SubComponentProps<SearchBoxProps> | null;
|
|
51
|
-
/**
|
|
52
|
-
* The header theme. When this is not provided the header will use the default
|
|
53
|
-
* theme defined in the Vanilla settings.
|
|
54
|
-
*/
|
|
55
|
-
theme?: Theme | null;
|
|
56
|
-
}, HTMLProps<HTMLElement>>;
|
|
57
|
-
/**
|
|
58
|
-
This is the [React](https://reactjs.org/) component for the Vanilla
|
|
59
|
-
[Navigation](https://vanillaframework.io/docs/patterns/navigation) pattern. It
|
|
60
|
-
is a simple navigation bar that you can add to the top of your site or app.
|
|
61
|
-
|
|
62
|
-
The navigation items are collapsed behind a "Menu" link in small screens and
|
|
63
|
-
displayed horizontally on larger screens.
|
|
64
|
-
*/
|
|
65
|
-
declare const Navigation: ({ fullWidth, generateLink, items, itemsRight, leftNavProps, logo, navProps, rightNavProps, searchProps, theme, ...headerProps }: Props) => JSX.Element;
|
|
66
|
-
export default Navigation;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Navigation from "./Navigation";
|
|
3
|
-
declare const meta: Meta<typeof Navigation>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Navigation>;
|
|
6
|
-
/**
|
|
7
|
-
* The default navigation is constrained to the max width of the Vanilla grid and
|
|
8
|
-
uses the light theme.
|
|
9
|
-
*/
|
|
10
|
-
export declare const Default: Story;
|
|
11
|
-
/**
|
|
12
|
-
* You can switch to a dark themed Navigation by using the `dark` prop. This will
|
|
13
|
-
automatically update the Navigation items to use lighter text and hover state
|
|
14
|
-
colours.
|
|
15
|
-
*/
|
|
16
|
-
export declare const Dark: Story;
|
|
17
|
-
/**
|
|
18
|
-
* Sub-navigation dropdown menus can be added to Navigation by adding an `items`
|
|
19
|
-
array instead of a URL. By default, the dropdown items will align to the left of the
|
|
20
|
-
parent item. This can be changed by adding `alignRight` to the subnav
|
|
21
|
-
object.
|
|
22
|
-
*/
|
|
23
|
-
export declare const Dropdown: Story;
|
|
24
|
-
/**
|
|
25
|
-
* Expanding search can be enabled by providing props to the underlying [`SearchBox`](/?path=/docs/searchbox--default-story)
|
|
26
|
-
component. Elements to toggle the Searchbox will be included automatically if
|
|
27
|
-
the SearchBox props are provided.
|
|
28
|
-
*/
|
|
29
|
-
export declare const Search: Story;
|
|
30
|
-
/**
|
|
31
|
-
* Logos can be displayed using the new tag design. In cases where another logo
|
|
32
|
-
style is required then an element can be provided to the `logo` prop.
|
|
33
|
-
*/
|
|
34
|
-
export declare const OverridingTheLogo: Story;
|
|
35
|
-
/**
|
|
36
|
-
* In some cases such as when using [React Router](https://reactrouter.com/) it is
|
|
37
|
-
necessary to use custom components for links. When this is required then a
|
|
38
|
-
function can be passed to `generateLink` which should return your component.
|
|
39
|
-
Bear in mind that some props like classes and on-click events might be passed to
|
|
40
|
-
this function so take care in overriding any link props.
|
|
41
|
-
*/
|
|
42
|
-
export declare const OverridingTheLinkComponent: Story;
|
|
43
|
-
export declare const NoMenuItems: Story;
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Search = exports.OverridingTheLogo = exports.OverridingTheLinkComponent = exports.NoMenuItems = exports.Dropdown = exports.Default = exports.Dark = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Navigation = _interopRequireDefault(require("./Navigation"));
|
|
9
|
-
var _enums = require("../../enums");
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
const meta = {
|
|
12
|
-
component: _Navigation.default,
|
|
13
|
-
tags: ["autodocs"]
|
|
14
|
-
};
|
|
15
|
-
var _default = exports.default = meta;
|
|
16
|
-
/**
|
|
17
|
-
* The default navigation is constrained to the max width of the Vanilla grid and
|
|
18
|
-
uses the light theme.
|
|
19
|
-
*/
|
|
20
|
-
const Default = exports.Default = {
|
|
21
|
-
name: "Default",
|
|
22
|
-
args: {
|
|
23
|
-
items: [{
|
|
24
|
-
label: "Products",
|
|
25
|
-
url: "#"
|
|
26
|
-
}, {
|
|
27
|
-
label: "Services",
|
|
28
|
-
url: "#"
|
|
29
|
-
}, {
|
|
30
|
-
label: "Partners",
|
|
31
|
-
url: "#"
|
|
32
|
-
}],
|
|
33
|
-
logo: {
|
|
34
|
-
src: "https://assets.ubuntu.com/v1/82818827-CoF_white.svg",
|
|
35
|
-
title: "Canonical",
|
|
36
|
-
url: "#"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* You can switch to a dark themed Navigation by using the `dark` prop. This will
|
|
43
|
-
automatically update the Navigation items to use lighter text and hover state
|
|
44
|
-
colours.
|
|
45
|
-
*/
|
|
46
|
-
const Dark = exports.Dark = {
|
|
47
|
-
name: "Dark",
|
|
48
|
-
args: {
|
|
49
|
-
items: [{
|
|
50
|
-
label: "Products",
|
|
51
|
-
url: "#"
|
|
52
|
-
}, {
|
|
53
|
-
label: "Services",
|
|
54
|
-
url: "#"
|
|
55
|
-
}, {
|
|
56
|
-
label: "Partners",
|
|
57
|
-
url: "#"
|
|
58
|
-
}],
|
|
59
|
-
logo: {
|
|
60
|
-
src: "https://assets.ubuntu.com/v1/82818827-CoF_white.svg",
|
|
61
|
-
title: "Canonical",
|
|
62
|
-
url: "#"
|
|
63
|
-
},
|
|
64
|
-
theme: _enums.Theme.DARK
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Sub-navigation dropdown menus can be added to Navigation by adding an `items`
|
|
70
|
-
array instead of a URL. By default, the dropdown items will align to the left of the
|
|
71
|
-
parent item. This can be changed by adding `alignRight` to the subnav
|
|
72
|
-
object.
|
|
73
|
-
*/
|
|
74
|
-
const Dropdown = exports.Dropdown = {
|
|
75
|
-
name: "Dropdown",
|
|
76
|
-
args: {
|
|
77
|
-
items: [{
|
|
78
|
-
items: [{
|
|
79
|
-
label: "Introduction",
|
|
80
|
-
url: "#"
|
|
81
|
-
}, {
|
|
82
|
-
label: "News",
|
|
83
|
-
url: "#"
|
|
84
|
-
}, {
|
|
85
|
-
label: "Getting started - Command line",
|
|
86
|
-
url: "#"
|
|
87
|
-
}, {
|
|
88
|
-
label: "Getting started - OpenStack",
|
|
89
|
-
url: "#"
|
|
90
|
-
}, {
|
|
91
|
-
label: "Getting started - OpenNebula",
|
|
92
|
-
url: "#"
|
|
93
|
-
}],
|
|
94
|
-
label: "LXD"
|
|
95
|
-
}, {
|
|
96
|
-
items: [{
|
|
97
|
-
label: "Introduction",
|
|
98
|
-
url: "#"
|
|
99
|
-
}, {
|
|
100
|
-
label: "News",
|
|
101
|
-
url: "#"
|
|
102
|
-
}, {
|
|
103
|
-
label: "Getting started",
|
|
104
|
-
url: "#"
|
|
105
|
-
}],
|
|
106
|
-
label: "LXCFS"
|
|
107
|
-
}],
|
|
108
|
-
itemsRight: [{
|
|
109
|
-
alignRight: true,
|
|
110
|
-
items: [{
|
|
111
|
-
label: "Sign out",
|
|
112
|
-
url: "#"
|
|
113
|
-
}],
|
|
114
|
-
label: "My account"
|
|
115
|
-
}],
|
|
116
|
-
logo: {
|
|
117
|
-
src: "https://assets.ubuntu.com/v1/82818827-CoF_white.svg",
|
|
118
|
-
title: "LXD",
|
|
119
|
-
url: "#"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Expanding search can be enabled by providing props to the underlying [`SearchBox`](/?path=/docs/searchbox--default-story)
|
|
126
|
-
component. Elements to toggle the Searchbox will be included automatically if
|
|
127
|
-
the SearchBox props are provided.
|
|
128
|
-
*/
|
|
129
|
-
const Search = exports.Search = {
|
|
130
|
-
name: "Search",
|
|
131
|
-
args: {
|
|
132
|
-
items: [{
|
|
133
|
-
label: "Products",
|
|
134
|
-
url: "#"
|
|
135
|
-
}, {
|
|
136
|
-
label: "Services",
|
|
137
|
-
url: "#"
|
|
138
|
-
}, {
|
|
139
|
-
label: "Partners",
|
|
140
|
-
url: "#"
|
|
141
|
-
}],
|
|
142
|
-
logo: {
|
|
143
|
-
src: "https://assets.ubuntu.com/v1/82818827-CoF_white.svg",
|
|
144
|
-
title: "Canonical",
|
|
145
|
-
url: "#"
|
|
146
|
-
},
|
|
147
|
-
searchProps: {
|
|
148
|
-
onSearch: () => null
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Logos can be displayed using the new tag design. In cases where another logo
|
|
155
|
-
style is required then an element can be provided to the `logo` prop.
|
|
156
|
-
*/
|
|
157
|
-
const OverridingTheLogo = exports.OverridingTheLogo = {
|
|
158
|
-
name: "Overriding the logo",
|
|
159
|
-
args: {
|
|
160
|
-
items: [{
|
|
161
|
-
label: "Products",
|
|
162
|
-
url: "#"
|
|
163
|
-
}, {
|
|
164
|
-
label: "Services",
|
|
165
|
-
url: "#"
|
|
166
|
-
}, {
|
|
167
|
-
label: "Partners",
|
|
168
|
-
url: "#"
|
|
169
|
-
}],
|
|
170
|
-
logo: /*#__PURE__*/_react.default.createElement("img", {
|
|
171
|
-
alt: "",
|
|
172
|
-
src: "https://assets.ubuntu.com/v1/5d6da5c4-logo-canonical-aubergine.svg",
|
|
173
|
-
width: "100"
|
|
174
|
-
})
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* In some cases such as when using [React Router](https://reactrouter.com/) it is
|
|
180
|
-
necessary to use custom components for links. When this is required then a
|
|
181
|
-
function can be passed to `generateLink` which should return your component.
|
|
182
|
-
Bear in mind that some props like classes and on-click events might be passed to
|
|
183
|
-
this function so take care in overriding any link props.
|
|
184
|
-
*/
|
|
185
|
-
const OverridingTheLinkComponent = exports.OverridingTheLinkComponent = {
|
|
186
|
-
name: "Overriding the link component",
|
|
187
|
-
args: {
|
|
188
|
-
generateLink: _ref => {
|
|
189
|
-
let {
|
|
190
|
-
label,
|
|
191
|
-
className
|
|
192
|
-
} = _ref;
|
|
193
|
-
return /*#__PURE__*/_react.default.createElement("button", {
|
|
194
|
-
className: className
|
|
195
|
-
}, label);
|
|
196
|
-
},
|
|
197
|
-
items: [{
|
|
198
|
-
label: "Products",
|
|
199
|
-
url: "#"
|
|
200
|
-
}, {
|
|
201
|
-
label: "Services",
|
|
202
|
-
url: "#"
|
|
203
|
-
}, {
|
|
204
|
-
label: "Partners",
|
|
205
|
-
url: "#"
|
|
206
|
-
}],
|
|
207
|
-
logo: {
|
|
208
|
-
src: "https://assets.ubuntu.com/v1/82818827-CoF_white.svg",
|
|
209
|
-
title: "Canonical",
|
|
210
|
-
url: "#"
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
const NoMenuItems = exports.NoMenuItems = {
|
|
215
|
-
name: "No menu items",
|
|
216
|
-
args: {
|
|
217
|
-
generateLink: _ref2 => {
|
|
218
|
-
let {
|
|
219
|
-
label,
|
|
220
|
-
className
|
|
221
|
-
} = _ref2;
|
|
222
|
-
return /*#__PURE__*/_react.default.createElement("button", {
|
|
223
|
-
className: className
|
|
224
|
-
}, label);
|
|
225
|
-
},
|
|
226
|
-
logo: {
|
|
227
|
-
src: "https://assets.ubuntu.com/v1/82818827-CoF_white.svg",
|
|
228
|
-
title: "Canonical",
|
|
229
|
-
url: "#"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { GenerateLink, NavLink } from "../types";
|
|
2
|
-
type Props = {
|
|
3
|
-
generateLink?: GenerateLink;
|
|
4
|
-
link: NavLink;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* This component is used internally to display links inside the Navigation component.
|
|
8
|
-
*/
|
|
9
|
-
declare const NavigationLink: ({ generateLink, link }: Props) => JSX.Element | null;
|
|
10
|
-
export default NavigationLink;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./NavigationLink";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { HTMLProps } from "react";
|
|
2
|
-
import type { GenerateLink, NavMenu } from "../types";
|
|
3
|
-
import { PropsWithSpread } from "../../../types";
|
|
4
|
-
type Props = PropsWithSpread<NavMenu & {
|
|
5
|
-
generateLink?: GenerateLink;
|
|
6
|
-
}, HTMLProps<HTMLLIElement>>;
|
|
7
|
-
/**
|
|
8
|
-
* This component is used internally to display menus inside the Navigation component.
|
|
9
|
-
*/
|
|
10
|
-
declare const NavigationMenu: ({ alignRight, generateLink, items, label, ...props }: Props) => JSX.Element;
|
|
11
|
-
export default NavigationMenu;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./NavigationMenu";
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, HTMLProps, ReactNode } from "react";
|
|
2
|
-
import { PropsWithSpread } from "../../types";
|
|
3
|
-
export type NavLinkBase = {
|
|
4
|
-
/**
|
|
5
|
-
* Whether this nav item is currently selected.
|
|
6
|
-
*/
|
|
7
|
-
isSelected?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* The label of the link.
|
|
10
|
-
*/
|
|
11
|
-
label: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* The URL of the link.
|
|
14
|
-
*/
|
|
15
|
-
url?: string;
|
|
16
|
-
};
|
|
17
|
-
export type NavLinkAnchor = PropsWithSpread<NavLinkBase & {
|
|
18
|
-
url: string;
|
|
19
|
-
}, HTMLAttributes<HTMLAnchorElement>>;
|
|
20
|
-
export type NavLinkButton = PropsWithSpread<NavLinkBase & {
|
|
21
|
-
url?: never;
|
|
22
|
-
}, HTMLAttributes<HTMLButtonElement>>;
|
|
23
|
-
export type NavLink = NavLinkAnchor | NavLinkButton;
|
|
24
|
-
export type NavMenu = {
|
|
25
|
-
/**
|
|
26
|
-
* Whether to align the dropdown to the right edge of the navigation item.
|
|
27
|
-
*/
|
|
28
|
-
alignRight?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The links to appear in the dropdown.
|
|
31
|
-
*/
|
|
32
|
-
items: NavLink[];
|
|
33
|
-
/**
|
|
34
|
-
* The label of the navigation item that opens the menu.
|
|
35
|
-
*/
|
|
36
|
-
label: string;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Navigation items which can be either a link or a menu containing links.
|
|
40
|
-
*/
|
|
41
|
-
export type NavItem = NavLink | NavMenu;
|
|
42
|
-
/**
|
|
43
|
-
* A function that can be used to generate link elements when you don't want to
|
|
44
|
-
* use a standard HTML anchor.
|
|
45
|
-
*/
|
|
46
|
-
export type GenerateLink = (item: NavLink) => ReactNode;
|
|
47
|
-
export type LogoProps = PropsWithSpread<{
|
|
48
|
-
/**
|
|
49
|
-
* An icon to display in the tag.
|
|
50
|
-
*/
|
|
51
|
-
icon?: ReactNode;
|
|
52
|
-
/**
|
|
53
|
-
* The logo image source URL.
|
|
54
|
-
*/
|
|
55
|
-
src?: string;
|
|
56
|
-
/**
|
|
57
|
-
* The site's title.
|
|
58
|
-
*/
|
|
59
|
-
title: string;
|
|
60
|
-
/**
|
|
61
|
-
* The URL to navigate to when the logo is clicked.
|
|
62
|
-
*/
|
|
63
|
-
url: string;
|
|
64
|
-
}, HTMLProps<HTMLDivElement>>;
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { ElementType } from "react";
|
|
2
|
-
import type { HTMLProps, ReactNode } from "react";
|
|
3
|
-
import type { ClassName, PropsWithSpread, ValueOf } from "../../types";
|
|
4
|
-
export declare enum Label {
|
|
5
|
-
Close = "Close notification"
|
|
6
|
-
}
|
|
7
|
-
export declare const NotificationSeverity: {
|
|
8
|
-
readonly CAUTION: "caution";
|
|
9
|
-
readonly INFORMATION: "information";
|
|
10
|
-
readonly NEGATIVE: "negative";
|
|
11
|
-
readonly POSITIVE: "positive";
|
|
12
|
-
};
|
|
13
|
-
export declare const DefaultTitles: {
|
|
14
|
-
caution: string;
|
|
15
|
-
information: string;
|
|
16
|
-
negative: string;
|
|
17
|
-
positive: string;
|
|
18
|
-
};
|
|
19
|
-
type NotificationAction = {
|
|
20
|
-
label: string;
|
|
21
|
-
onClick: () => void;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* The props for the Notification component.
|
|
25
|
-
*/
|
|
26
|
-
export type Props = PropsWithSpread<{
|
|
27
|
-
/**
|
|
28
|
-
* A list of up to two actions that the notification can perform.
|
|
29
|
-
*/
|
|
30
|
-
actions?: NotificationAction[];
|
|
31
|
-
/**
|
|
32
|
-
* Whether the notification should not have a border.
|
|
33
|
-
*/
|
|
34
|
-
borderless?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The notification message content.
|
|
37
|
-
*/
|
|
38
|
-
children?: ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* Optional class(es) to apply to the parent notification element.
|
|
41
|
-
*/
|
|
42
|
-
className?: ClassName;
|
|
43
|
-
/**
|
|
44
|
-
* **Deprecated**. Use `onDismiss` instead.
|
|
45
|
-
*/
|
|
46
|
-
close?: never;
|
|
47
|
-
/**
|
|
48
|
-
* Whether the title should display inline with the message.
|
|
49
|
-
*/
|
|
50
|
-
inline?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* The function to run when dismissing/closing the notification.
|
|
53
|
-
*/
|
|
54
|
-
onDismiss?: () => void;
|
|
55
|
-
/**
|
|
56
|
-
* The severity of the notification.
|
|
57
|
-
*/
|
|
58
|
-
severity?: ValueOf<typeof NotificationSeverity>;
|
|
59
|
-
/**
|
|
60
|
-
* **Deprecated**. Use `title` instead.
|
|
61
|
-
*/
|
|
62
|
-
status?: never;
|
|
63
|
-
/**
|
|
64
|
-
* The amount of time (in ms) until the notification is automatically dismissed.
|
|
65
|
-
*/
|
|
66
|
-
timeout?: number;
|
|
67
|
-
/**
|
|
68
|
-
* A relevant timestamp for the notification, e.g. when it was created.
|
|
69
|
-
*/
|
|
70
|
-
timestamp?: ReactNode;
|
|
71
|
-
/**
|
|
72
|
-
* The title of the notification.
|
|
73
|
-
*/
|
|
74
|
-
title?: ReactNode;
|
|
75
|
-
/**
|
|
76
|
-
* Optional element or component to use for the title.
|
|
77
|
-
*/
|
|
78
|
-
titleElement?: ElementType;
|
|
79
|
-
/**
|
|
80
|
-
* **Deprecated**. Use `severity` instead.
|
|
81
|
-
*/
|
|
82
|
-
type?: never;
|
|
83
|
-
}, HTMLProps<HTMLDivElement>>;
|
|
84
|
-
/**
|
|
85
|
-
This is a [React](https://reactjs.org/) component for the Vanilla [Notification](https://docs.vanillaframework.io/patterns/notification/).
|
|
86
|
-
|
|
87
|
-
Notifications are used to display global information, our notification variants consist of default, caution, negative or positive.
|
|
88
|
-
|
|
89
|
-
The `NotificationProvider` component can be used to manage the notification state globally. Wrap your application components with it and then in any child component you can get the helper with `const notify = useNotify()` to easily trigger notifications:
|
|
90
|
-
|
|
91
|
-
* `notify.info("You should keep this in mind")`
|
|
92
|
-
* `notify.failure("Error when fooing a bar", errorObjectFromCatch)`
|
|
93
|
-
* `notify.success("The bar was foo'd", "Success")`
|
|
94
|
-
|
|
95
|
-
The `NotificationConsumer` component can be used to display notifications. It will automatically display any notifications that are added to the `NotificationProvider` state.
|
|
96
|
-
|
|
97
|
-
The Notification API has changed since v0.18 in order to support new variants
|
|
98
|
-
and align with our component prop naming conventions.
|
|
99
|
-
|
|
100
|
-
| Deprecated prop names | Replaced by |
|
|
101
|
-
| --------------------- | ----------- |
|
|
102
|
-
| `type` | `severity` |
|
|
103
|
-
| `status` | `title` |
|
|
104
|
-
| `close` | `onDismiss` |
|
|
105
|
-
|
|
106
|
-
The `notificationTypes` const has also been replaced with `NotificationSeverity`
|
|
107
|
-
to reflect the new prop name.
|
|
108
|
-
*/
|
|
109
|
-
declare const Notification: ({ actions, borderless, children, className, close, inline, onDismiss, severity, status, timeout, timestamp, title, titleElement: TitleComponent, type, ...props }: Props) => JSX.Element;
|
|
110
|
-
export default Notification;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Notification from "./Notification";
|
|
3
|
-
declare const meta: Meta<typeof Notification>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Notification>;
|
|
6
|
-
/**
|
|
7
|
-
* The information severity should be used to convey an information message.
|
|
8
|
-
*/
|
|
9
|
-
export declare const Information: Story;
|
|
10
|
-
/**
|
|
11
|
-
* The caution severity should be used to convey information that is not critical but the user should be aware of.
|
|
12
|
-
*/
|
|
13
|
-
export declare const Caution: Story;
|
|
14
|
-
/**
|
|
15
|
-
* The negative severity should be used to convey information that is critical and the user should take action.
|
|
16
|
-
*/
|
|
17
|
-
export declare const Negative: Story;
|
|
18
|
-
/**
|
|
19
|
-
* The positive severity should be used to convey success or completion.
|
|
20
|
-
*/
|
|
21
|
-
export declare const Positive: Story;
|
|
22
|
-
/**
|
|
23
|
-
* When vertical space is limited, you can use the inline variant.
|
|
24
|
-
*/
|
|
25
|
-
export declare const Inline: Story;
|
|
26
|
-
/**
|
|
27
|
-
* In cases where a notification sits inside another component, such as a table cell or a card, it may be useful to remove the outer border and highlight bar.
|
|
28
|
-
*/
|
|
29
|
-
export declare const Borderless: Story;
|
|
30
|
-
/**
|
|
31
|
-
* Actions will appear below the notification message.
|
|
32
|
-
*/
|
|
33
|
-
export declare const Actions: Story;
|
|
34
|
-
/**
|
|
35
|
-
* Notifications that can be dismissed should be given an onDismiss function.
|
|
36
|
-
*/
|
|
37
|
-
export declare const Dismissible: Story;
|
|
38
|
-
/**
|
|
39
|
-
* Notifications can be automatically dismissed after a timeout interval.
|
|
40
|
-
*/
|
|
41
|
-
export declare const Timeout: Story;
|
|
42
|
-
/**
|
|
43
|
-
* For notifications in which recency is important, you can include a section for time.
|
|
44
|
-
*/
|
|
45
|
-
export declare const Timestamp: Story;
|