@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,26 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { PropsWithSpread } from "../../../types";
|
|
3
|
-
import type { HTMLProps, PropsWithChildren } from "react";
|
|
4
|
-
export type Props = PropsWithSpread<{
|
|
5
|
-
/**
|
|
6
|
-
* Whether the navigation panel should be collapsed.
|
|
7
|
-
*/
|
|
8
|
-
collapsed?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* The navigation drawer content.
|
|
11
|
-
*/
|
|
12
|
-
children?: PropsWithChildren["children"];
|
|
13
|
-
/**
|
|
14
|
-
* Whether the navigation panel should be pinned.
|
|
15
|
-
*/
|
|
16
|
-
pinned?: boolean;
|
|
17
|
-
}, HTMLProps<HTMLDivElement>>;
|
|
18
|
-
/**
|
|
19
|
-
* This is a [React](https://reactjs.org/) component for the navigation panel in the Vanilla
|
|
20
|
-
* [Application Layout](https://vanillaframework.io/docs/layouts/application).
|
|
21
|
-
*
|
|
22
|
-
* This component is used to display the left navigation panel. It should be
|
|
23
|
-
* used alongside [`AppNavigationBar`](/docs/components-applicationlayout-appnavigationbar--docs).
|
|
24
|
-
*/
|
|
25
|
-
declare const AppNavigation: ({ children, className, collapsed, pinned, ...props }: Props) => React.JSX.Element;
|
|
26
|
-
export default AppNavigation;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import AppNavigation from "./AppNavigation";
|
|
3
|
-
declare const meta: Meta<typeof AppNavigation>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AppNavigation>;
|
|
6
|
-
/**
|
|
7
|
-
* In most common cases an `AppNavigation` should contain a `<Panel>` and `<SideNavigation>`.
|
|
8
|
-
*
|
|
9
|
-
* `AppNavigation` should be a direct child of an `<Application>` or when using `ApplicationLayout`
|
|
10
|
-
* it will wrap `navItems` and `sideNavigation`.
|
|
11
|
-
*/
|
|
12
|
-
export declare const Default: Story;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
-
var _Application = _interopRequireDefault(require("../Application"));
|
|
10
|
-
var _AppMain = _interopRequireDefault(require("../AppMain"));
|
|
11
|
-
var _Button = _interopRequireDefault(require("../../Button"));
|
|
12
|
-
var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
13
|
-
var _Panel = _interopRequireDefault(require("../../Panel"));
|
|
14
|
-
var _SideNavigation = _interopRequireDefault(require("../../SideNavigation"));
|
|
15
|
-
var _Strip = _interopRequireDefault(require("../../Strip"));
|
|
16
|
-
var _AppNavigation = _interopRequireDefault(require("./AppNavigation"));
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
-
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 && {}.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; }
|
|
20
|
-
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); } /* eslint-disable react-hooks/rules-of-hooks */
|
|
21
|
-
const meta = {
|
|
22
|
-
component: _AppNavigation.default,
|
|
23
|
-
tags: ["autodocs"]
|
|
24
|
-
};
|
|
25
|
-
var _default = exports.default = meta;
|
|
26
|
-
/**
|
|
27
|
-
* In most common cases an `AppNavigation` should contain a `<Panel>` and `<SideNavigation>`.
|
|
28
|
-
*
|
|
29
|
-
* `AppNavigation` should be a direct child of an `<Application>` or when using `ApplicationLayout`
|
|
30
|
-
* it will wrap `navItems` and `sideNavigation`.
|
|
31
|
-
*/
|
|
32
|
-
const Default = exports.Default = {
|
|
33
|
-
render: args => {
|
|
34
|
-
const [pinned, setPinned] = (0, _react.useState)(false);
|
|
35
|
-
const [collapsed, setCollapsed] = (0, _react.useState)(true);
|
|
36
|
-
return /*#__PURE__*/_react.default.createElement(_Application.default, null, /*#__PURE__*/_react.default.createElement(_AppNavigation.default, _extends({}, args, {
|
|
37
|
-
pinned: pinned,
|
|
38
|
-
collapsed: collapsed
|
|
39
|
-
}), /*#__PURE__*/_react.default.createElement(_Panel.default, {
|
|
40
|
-
dark: true,
|
|
41
|
-
controls: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
42
|
-
hasIcon: true,
|
|
43
|
-
appearance: "base",
|
|
44
|
-
className: (0, _classnames.default)("u-no-margin u-hide--medium", {
|
|
45
|
-
"is-dark": true
|
|
46
|
-
}),
|
|
47
|
-
onClick: evt => {
|
|
48
|
-
setCollapsed(true);
|
|
49
|
-
// The menu stays open while its content has focus, so the
|
|
50
|
-
// close button must blur to actually close the menu.
|
|
51
|
-
evt.currentTarget.blur();
|
|
52
|
-
}
|
|
53
|
-
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
54
|
-
name: "close",
|
|
55
|
-
className: (0, _classnames.default)({
|
|
56
|
-
"is-light": true
|
|
57
|
-
})
|
|
58
|
-
}, "Close menu")), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
59
|
-
hasIcon: true,
|
|
60
|
-
appearance: "base",
|
|
61
|
-
className: (0, _classnames.default)("u-no-margin u-hide--small", {
|
|
62
|
-
"is-dark": true
|
|
63
|
-
}),
|
|
64
|
-
onClick: () => {
|
|
65
|
-
setPinned(!pinned);
|
|
66
|
-
}
|
|
67
|
-
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
68
|
-
name: pinned ? "close" : "pin",
|
|
69
|
-
className: (0, _classnames.default)({
|
|
70
|
-
"is-light": true
|
|
71
|
-
})
|
|
72
|
-
}, pinned ? "Unpin menu" : "Pin menu"))),
|
|
73
|
-
controlsClassName: "u-hide--large",
|
|
74
|
-
stickyHeader: true,
|
|
75
|
-
logo: {
|
|
76
|
-
icon: "https://assets.ubuntu.com/v1/7144ec6d-logo-jaas-icon.svg",
|
|
77
|
-
name: "https://assets.ubuntu.com/v1/2e04d794-logo-jaas.svg",
|
|
78
|
-
nameAlt: "JAAS",
|
|
79
|
-
href: "/"
|
|
80
|
-
}
|
|
81
|
-
}, /*#__PURE__*/_react.default.createElement(_SideNavigation.default, {
|
|
82
|
-
dark: true,
|
|
83
|
-
items: [{
|
|
84
|
-
items: [{
|
|
85
|
-
icon: "drag",
|
|
86
|
-
label: "Models",
|
|
87
|
-
href: "/models"
|
|
88
|
-
}, {
|
|
89
|
-
icon: "menu",
|
|
90
|
-
label: "Controllers",
|
|
91
|
-
href: "/controllers"
|
|
92
|
-
}, {
|
|
93
|
-
icon: "user",
|
|
94
|
-
label: "Permissions",
|
|
95
|
-
href: "/permissions"
|
|
96
|
-
}]
|
|
97
|
-
}]
|
|
98
|
-
}))), /*#__PURE__*/_react.default.createElement(_AppMain.default, null, /*#__PURE__*/_react.default.createElement(_Strip.default, null, /*#__PURE__*/_react.default.createElement("p", null, "These behaviours are only available at smaller screen sizes:"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
99
|
-
onClick: () => setPinned(!pinned)
|
|
100
|
-
}, "Pin"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
101
|
-
onClick: () => setCollapsed(!collapsed)
|
|
102
|
-
}, "Toggle"))));
|
|
103
|
-
}
|
|
104
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { PropsWithSpread } from "../../../types";
|
|
3
|
-
import type { HTMLProps, PropsWithChildren } from "react";
|
|
4
|
-
export type Props = PropsWithSpread<{
|
|
5
|
-
/**
|
|
6
|
-
* The navigation content.
|
|
7
|
-
*/
|
|
8
|
-
children?: PropsWithChildren["children"];
|
|
9
|
-
}, HTMLProps<HTMLElement>>;
|
|
10
|
-
/**
|
|
11
|
-
* This is a [React](https://reactjs.org/) component for navigation bar in the Vanilla
|
|
12
|
-
* [Application Layout](https://vanillaframework.io/docs/layouts/application).
|
|
13
|
-
*
|
|
14
|
-
* This component is used to display the navigation panel on mobile or small
|
|
15
|
-
* screens. It should be used alongside [`AppNavigation`](/docs/components-applicationlayout-appnavigation--docs).
|
|
16
|
-
*/
|
|
17
|
-
declare const AppNavigationBar: ({ children, className, ...props }: Props) => React.JSX.Element;
|
|
18
|
-
export default AppNavigationBar;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import AppNavigationBar from "./AppNavigationBar";
|
|
3
|
-
declare const meta: Meta<typeof AppNavigationBar>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AppNavigationBar>;
|
|
6
|
-
/**
|
|
7
|
-
* In most common cases an `AppNavigationBar` should contain a `<Panel>`.
|
|
8
|
-
*
|
|
9
|
-
* `AppNavigationBar` should be a direct child of an `<Application>` or when using `ApplicationLayout`
|
|
10
|
-
* it will already be included.
|
|
11
|
-
*
|
|
12
|
-
* The toggle state should control the collapsed state of `AppNavigation`.
|
|
13
|
-
*/
|
|
14
|
-
export declare const Default: Story;
|
|
15
|
-
export declare const States: Story;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.States = exports.Default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _Application = _interopRequireDefault(require("../Application"));
|
|
9
|
-
var _AppMain = _interopRequireDefault(require("../AppMain"));
|
|
10
|
-
var _Panel = _interopRequireDefault(require("../../Panel"));
|
|
11
|
-
var _Strip = _interopRequireDefault(require("../../Strip"));
|
|
12
|
-
var _AppNavigationBar = _interopRequireDefault(require("./AppNavigationBar"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
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 && {}.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
|
-
const meta = {
|
|
17
|
-
component: _AppNavigationBar.default,
|
|
18
|
-
tags: ["autodocs"]
|
|
19
|
-
};
|
|
20
|
-
var _default = exports.default = meta;
|
|
21
|
-
/**
|
|
22
|
-
* In most common cases an `AppNavigationBar` should contain a `<Panel>`.
|
|
23
|
-
*
|
|
24
|
-
* `AppNavigationBar` should be a direct child of an `<Application>` or when using `ApplicationLayout`
|
|
25
|
-
* it will already be included.
|
|
26
|
-
*
|
|
27
|
-
* The toggle state should control the collapsed state of `AppNavigation`.
|
|
28
|
-
*/
|
|
29
|
-
const Default = exports.Default = {
|
|
30
|
-
args: {
|
|
31
|
-
children: "AppNavigation"
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const States = exports.States = {
|
|
35
|
-
render: args => {
|
|
36
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
37
|
-
const [collapsed, setCollapsed] = (0, _react.useState)(true);
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_Application.default, null, /*#__PURE__*/_react.default.createElement(_AppNavigationBar.default, args, /*#__PURE__*/_react.default.createElement(_Panel.default, {
|
|
39
|
-
dark: true,
|
|
40
|
-
logo: {
|
|
41
|
-
icon: "https://assets.ubuntu.com/v1/7144ec6d-logo-jaas-icon.svg",
|
|
42
|
-
name: "https://assets.ubuntu.com/v1/2e04d794-logo-jaas.svg",
|
|
43
|
-
nameAlt: "JAAS",
|
|
44
|
-
href: "/"
|
|
45
|
-
},
|
|
46
|
-
toggle: {
|
|
47
|
-
label: "Menu",
|
|
48
|
-
onClick: () => setCollapsed(!collapsed)
|
|
49
|
-
}
|
|
50
|
-
})), /*#__PURE__*/_react.default.createElement(_AppMain.default, null, /*#__PURE__*/_react.default.createElement(_Strip.default, null, /*#__PURE__*/_react.default.createElement("p", null, "Reduce your window size to mobile to see the navigation bar."), /*#__PURE__*/_react.default.createElement("p", null, "Pass the collapsed state to the main menu:", " ", /*#__PURE__*/_react.default.createElement("code", null, "<AppNavigation collapsed={".concat(collapsed, "} />"))))));
|
|
51
|
-
}
|
|
52
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { HTMLProps, PropsWithChildren } from "react";
|
|
3
|
-
export type Props = {
|
|
4
|
-
/**
|
|
5
|
-
* The status content.
|
|
6
|
-
*/
|
|
7
|
-
children?: PropsWithChildren["children"];
|
|
8
|
-
} & HTMLProps<HTMLDivElement>;
|
|
9
|
-
/**
|
|
10
|
-
* This is a [React](https://reactjs.org/) component for status area in the Vanilla
|
|
11
|
-
* [Application Layout](https://vanillaframework.io/docs/layouts/application).
|
|
12
|
-
*/
|
|
13
|
-
declare const AppStatus: ({ children, className, ...props }: Props) => React.JSX.Element;
|
|
14
|
-
export default AppStatus;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import AppStatus from "./AppStatus";
|
|
3
|
-
declare const meta: Meta<typeof AppStatus>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AppStatus>;
|
|
6
|
-
/**
|
|
7
|
-
* `AppStatus` can contain a `<Panel>` to display the content as intended in the
|
|
8
|
-
* application layout.
|
|
9
|
-
*
|
|
10
|
-
* `AppStatus` should be a direct child of an `<Application>` or when using `ApplicationLayout`
|
|
11
|
-
* it will automatically wrap the content passed to the `status` prop.
|
|
12
|
-
*/
|
|
13
|
-
export declare const Default: Story;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Application = _interopRequireDefault(require("../Application"));
|
|
9
|
-
var _Button = _interopRequireDefault(require("../../Button"));
|
|
10
|
-
var _Panel = _interopRequireDefault(require("../../Panel"));
|
|
11
|
-
var _AppStatus = _interopRequireDefault(require("./AppStatus"));
|
|
12
|
-
var _AppMain = _interopRequireDefault(require("../AppMain"));
|
|
13
|
-
var _Strip = _interopRequireDefault(require("../../Strip"));
|
|
14
|
-
var _Spinner = _interopRequireDefault(require("../../Spinner"));
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
-
const meta = {
|
|
17
|
-
component: _AppStatus.default,
|
|
18
|
-
tags: ["autodocs"]
|
|
19
|
-
};
|
|
20
|
-
var _default = exports.default = meta;
|
|
21
|
-
/**
|
|
22
|
-
* `AppStatus` can contain a `<Panel>` to display the content as intended in the
|
|
23
|
-
* application layout.
|
|
24
|
-
*
|
|
25
|
-
* `AppStatus` should be a direct child of an `<Application>` or when using `ApplicationLayout`
|
|
26
|
-
* it will automatically wrap the content passed to the `status` prop.
|
|
27
|
-
*/
|
|
28
|
-
const Default = exports.Default = {
|
|
29
|
-
render: args => {
|
|
30
|
-
return /*#__PURE__*/_react.default.createElement(_Application.default, null, /*#__PURE__*/_react.default.createElement(_AppMain.default, null, /*#__PURE__*/_react.default.createElement(_Strip.default, null, /*#__PURE__*/_react.default.createElement("p", null, "Scroll to the bottom to see the status bar."))), /*#__PURE__*/_react.default.createElement(_AppStatus.default, args, /*#__PURE__*/_react.default.createElement(_Panel.default, {
|
|
31
|
-
wrapContent: false
|
|
32
|
-
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
33
|
-
className: "u-no-margin--bottom"
|
|
34
|
-
}, /*#__PURE__*/_react.default.createElement(_Spinner.default, null), " Update in progress...", " ", /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
35
|
-
appearance: "base",
|
|
36
|
-
onClick: () => {},
|
|
37
|
-
dense: true,
|
|
38
|
-
className: "u-no-margin"
|
|
39
|
-
}, "Retry")))));
|
|
40
|
-
}
|
|
41
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { PropsWithSpread } from "../../../types";
|
|
3
|
-
import type { HTMLProps, PropsWithChildren } from "react";
|
|
4
|
-
export type Props = PropsWithSpread<{
|
|
5
|
-
/**
|
|
6
|
-
* The application content.
|
|
7
|
-
*/
|
|
8
|
-
children?: PropsWithChildren["children"];
|
|
9
|
-
}, HTMLProps<HTMLDivElement>>;
|
|
10
|
-
/**
|
|
11
|
-
* This is a [React](https://reactjs.org/) component for the application wrapper in the Vanilla
|
|
12
|
-
* [Application Layout](https://vanillaframework.io/docs/layouts/application).
|
|
13
|
-
*/
|
|
14
|
-
declare const Application: ({ children, className, ...props }: Props) => React.JSX.Element;
|
|
15
|
-
export default Application;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Default = void 0;
|
|
7
|
-
var _Application = _interopRequireDefault(require("./Application"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
const meta = {
|
|
10
|
-
component: _Application.default,
|
|
11
|
-
tags: ["autodocs"]
|
|
12
|
-
};
|
|
13
|
-
var _default = exports.default = meta;
|
|
14
|
-
const Default = exports.Default = {
|
|
15
|
-
args: {}
|
|
16
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { PropsWithSpread } from "../../types";
|
|
3
|
-
import type { ReactNode } from "react";
|
|
4
|
-
import { type HTMLProps, type PropsWithChildren } from "react";
|
|
5
|
-
import type { PanelProps } from "../Panel";
|
|
6
|
-
import type { PanelLogoDefaultElement } from "../Panel";
|
|
7
|
-
import type { ExclusiveProps } from "../../types";
|
|
8
|
-
import type { SideNavigationProps } from "../SideNavigation";
|
|
9
|
-
import type { SideNavigationLinkDefaultElement } from "../SideNavigation/SideNavigationLink/index";
|
|
10
|
-
export type BaseProps<NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefaultElement> = PropsWithSpread<{
|
|
11
|
-
/**
|
|
12
|
-
* The aside panel. This prop puts the panel in the correct position inside the
|
|
13
|
-
* application layout DOM structure, but does not wrap the content in an aside,
|
|
14
|
-
* so the content provided to this prop should include an `<AppAside>` or equivalent.
|
|
15
|
-
*/
|
|
16
|
-
aside?: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* The content for the main area.
|
|
19
|
-
*/
|
|
20
|
-
children?: PropsWithChildren["children"];
|
|
21
|
-
/**
|
|
22
|
-
* Whether to use the dark theme.
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
dark?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* The logo to appear in the navigation panels.
|
|
28
|
-
*/
|
|
29
|
-
logo?: PanelProps<PL>["logo"];
|
|
30
|
-
/**
|
|
31
|
-
* The component to use to render links inside the navigation e.g. when
|
|
32
|
-
* using react-router you'd pass `Link` to this prop.
|
|
33
|
-
*/
|
|
34
|
-
navLinkComponent?: SideNavigationProps<NI>["linkComponent"];
|
|
35
|
-
/**
|
|
36
|
-
* Whether the navigation menu should be collapsed.
|
|
37
|
-
*/
|
|
38
|
-
menuCollapsed?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the navigation menu should be pinned.
|
|
41
|
-
*/
|
|
42
|
-
menuPinned?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* A function that is called to collapse the navigation menu.
|
|
45
|
-
*/
|
|
46
|
-
onCollapseMenu?: (menuCollapsed: boolean) => void;
|
|
47
|
-
/**
|
|
48
|
-
* A function that is called to pin the navigation menu.
|
|
49
|
-
*/
|
|
50
|
-
onPinMenu?: (menuPinned: boolean) => void;
|
|
51
|
-
/**
|
|
52
|
-
* The content to appear inside the status area.
|
|
53
|
-
*/
|
|
54
|
-
status?: ReactNode;
|
|
55
|
-
/**
|
|
56
|
-
* Classes to apply to the navigation bar.
|
|
57
|
-
*/
|
|
58
|
-
navigationBarClassName?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Classes to apply to the navigation menu.
|
|
61
|
-
*/
|
|
62
|
-
navigationClassName?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Classes to apply to the main area.
|
|
65
|
-
*/
|
|
66
|
-
mainClassName?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Classes to apply to the status area.
|
|
69
|
-
*/
|
|
70
|
-
statusClassName?: string;
|
|
71
|
-
}, HTMLProps<HTMLDivElement>>;
|
|
72
|
-
export type Props<NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefaultElement> = BaseProps<NI, PL> & ExclusiveProps<{
|
|
73
|
-
navItems?: SideNavigationProps<NI>["items"];
|
|
74
|
-
}, {
|
|
75
|
-
sideNavigation?: ReactNode;
|
|
76
|
-
}>;
|
|
77
|
-
/**
|
|
78
|
-
* This is a [React](https://reactjs.org/) component for the Vanilla
|
|
79
|
-
* [Application Layout](https://vanillaframework.io/docs/layouts/application).
|
|
80
|
-
*
|
|
81
|
-
* This component combines the various sub-components that make up the
|
|
82
|
-
* Application Layout to make it easier to consume. For some applications this
|
|
83
|
-
* component maybe not be flexible enough, in which case you may choose to use
|
|
84
|
-
* the sub-components directly. Be aware that the application layout requires a
|
|
85
|
-
* specific structure and states to function correctly so there will be a
|
|
86
|
-
* trade-off when using the sub-components directly.
|
|
87
|
-
*/
|
|
88
|
-
declare const ApplicationLayout: <NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefaultElement>({ aside, children, dark, logo, mainClassName, menuCollapsed, menuPinned, navigationBarClassName, navigationClassName, navItems, navLinkComponent, onCollapseMenu, onPinMenu, sideNavigation, status, statusClassName, ...props }: Props<NI, PL>) => React.JSX.Element;
|
|
89
|
-
export default ApplicationLayout;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import ApplicationLayout from "./ApplicationLayout";
|
|
3
|
-
declare const meta: Meta<typeof ApplicationLayout>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof ApplicationLayout>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
/**
|
|
8
|
-
* The pinned and collapsed states can be handled externally if you need access
|
|
9
|
-
* to these outside the application layout.
|
|
10
|
-
*/
|
|
11
|
-
export declare const ExternalStates: Story;
|
|
12
|
-
/**
|
|
13
|
-
* Menu items can either be provided as an array given to `navItems` or when
|
|
14
|
-
* more control is needed then by proving `sideNavigation`.
|
|
15
|
-
*
|
|
16
|
-
* For more details about how to provide navigation items see the
|
|
17
|
-
* [`SideNavigation`](/docs/components-sidenavigation--docs) docs.
|
|
18
|
-
*/
|
|
19
|
-
export declare const Navigation: Story;
|
|
20
|
-
/**
|
|
21
|
-
* App navigation can also be completely opted out of, for some
|
|
22
|
-
* particular scenarios (e.g. login page, error pages).
|
|
23
|
-
*/
|
|
24
|
-
export declare const NoNavigation: Story;
|