UNPKG

@neo4j-ndl/react

Version:

React implementation of Neo4j Design System

167 lines 4.59 kB
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 { ContextMenuCustomItems, ContextMenuCustomItemsSrc, ContextMenuDefault, ContextMenuDefaultSrc, ContextMenuDivider, ContextMenuDividerSrc, ContextMenuInModal, ContextMenuInModalSrc, ContextMenuInPopover, ContextMenuInPopoverSrc, ContextMenuNested, ContextMenuNestedSrc, ContextMenuPlacements, ContextMenuPlacementsSrc, ContextMenuWithDisabledItem, ContextMenuWithDisabledItemSrc, ContextMenuWithHeader, ContextMenuWithHeaderSrc, ContextMenuWithIcon, ContextMenuWithIconSrc, } from './index'; const componentMeta = { title: 'Components/ContextMenu', id: 'components-context-menu', component: Menu, tags: ['docsPage'], parameters: { controls: { disable: true }, }, decorators: [ (Story) => (_jsx("div", { className: "n-gap-token-4 n-flex n-flex-row n-justify-center n-items-center n-h-[200px]", children: _jsx(Story, {}) })), ], }; export default componentMeta; export const Default = { args: {}, parameters: { docs: { source: { code: ContextMenuDefaultSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuDefault, }; export const Nested = { args: {}, parameters: { docs: { source: { code: ContextMenuNestedSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuNested, }; export const WithDivider = { args: {}, parameters: { docs: { source: { code: ContextMenuDividerSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuDivider, }; export const WithHeader = { args: {}, parameters: { docs: { source: { code: ContextMenuWithHeaderSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuWithHeader, }; export const WithIcon = { args: {}, parameters: { docs: { source: { code: ContextMenuWithIconSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuWithIcon, }; export const WithDisabledItem = { args: {}, parameters: { docs: { source: { code: ContextMenuWithDisabledItemSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuWithDisabledItem, }; export const CustomItems = { args: {}, parameters: { docs: { source: { code: ContextMenuCustomItemsSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuCustomItems, }; export const InPopover = { args: {}, parameters: { docs: { source: { code: ContextMenuInPopoverSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuInPopover, }; export const InModal = { args: {}, parameters: { docs: { source: { code: ContextMenuInModalSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuInModal, }; export const Placements = { args: {}, parameters: { docs: { source: { code: ContextMenuPlacementsSrc, language: 'tsx', type: 'code', }, }, }, render: ContextMenuPlacements, }; //# sourceMappingURL=context-menu.stories.js.map