@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
180 lines • 4.66 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/**
*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Menu } from '@neo4j-ndl/react';
import { MenuCustomItems, MenuCustomItemsSrc, MenuDefault, MenuDefaultSrc, MenuDivider, MenuDividerSrc, MenuInDialog, MenuInDialogSrc, MenuInPopover, MenuInPopoverSrc, MenuNested, MenuNestedSrc, MenuPlacements, MenuPlacementsSrc, MenuWithCategory, MenuWithCategorySrc, MenuWithDisabledItem, MenuWithDisabledItemSrc, MenuWithIcon, MenuWithIconSrc, MenuWithKeyboardShortcuts, MenuWithKeyboardShortcutsSrc, } from './index';
const componentMeta = {
component: Menu,
decorators: [
(Story) => (_jsx("div", { className: "n-gap-token-32 n-flex n-flex-row n-justify-center n-items-center n-h-[200px]", children: _jsx(Story, {}) })),
],
id: 'components-menu',
parameters: {
controls: { disable: true },
},
tags: ['docsPage'],
title: 'Components/Menu',
};
export default componentMeta;
export const Default = {
args: {},
parameters: {
docs: {
source: {
code: MenuDefaultSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuDefault,
};
export const Nested = {
args: {},
parameters: {
docs: {
source: {
code: MenuNestedSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuNested,
};
export const WithDivider = {
args: {},
parameters: {
docs: {
source: {
code: MenuDividerSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuDivider,
};
export const WithCategory = {
args: {},
parameters: {
docs: {
source: {
code: MenuWithCategorySrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuWithCategory,
};
export const WithIcon = {
args: {},
parameters: {
docs: {
source: {
code: MenuWithIconSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuWithIcon,
};
export const WithDisabledItem = {
args: {},
parameters: {
docs: {
source: {
code: MenuWithDisabledItemSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuWithDisabledItem,
};
export const CustomItems = {
args: {},
parameters: {
docs: {
source: {
code: MenuCustomItemsSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuCustomItems,
};
export const InPopover = {
args: {},
parameters: {
docs: {
source: {
code: MenuInPopoverSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuInPopover,
};
export const InDialog = {
args: {},
parameters: {
docs: {
source: {
code: MenuInDialogSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuInDialog,
};
export const Placements = {
args: {},
parameters: {
docs: {
source: {
code: MenuPlacementsSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuPlacements,
};
export const WithKeyboardShortcuts = {
args: {},
parameters: {
docs: {
source: {
code: MenuWithKeyboardShortcutsSrc,
language: 'tsx',
type: 'code',
},
},
},
render: MenuWithKeyboardShortcuts,
};
//# sourceMappingURL=menu.stories.js.map