@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
183 lines • 4.78 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WithKeyboardShortcuts = exports.Placements = exports.InDialog = exports.InPopover = exports.CustomItems = exports.WithDisabledItem = exports.WithIcon = exports.WithCategory = exports.WithDivider = exports.Nested = exports.Default = void 0;
const jsx_runtime_1 = require("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/>.
*/
const react_1 = require("@neo4j-ndl/react");
const index_1 = require("./index");
const componentMeta = {
component: react_1.Menu,
decorators: [
(Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-gap-token-32 n-flex n-flex-row n-justify-center n-items-center n-h-[200px]", children: (0, jsx_runtime_1.jsx)(Story, {}) })),
],
id: 'components-menu',
parameters: {
controls: { disable: true },
},
tags: ['docsPage'],
title: 'Components/Menu',
};
exports.default = componentMeta;
exports.Default = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuDefaultSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuDefault,
};
exports.Nested = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuNestedSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuNested,
};
exports.WithDivider = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuDividerSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuDivider,
};
exports.WithCategory = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuWithCategorySrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuWithCategory,
};
exports.WithIcon = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuWithIconSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuWithIcon,
};
exports.WithDisabledItem = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuWithDisabledItemSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuWithDisabledItem,
};
exports.CustomItems = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuCustomItemsSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuCustomItems,
};
exports.InPopover = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuInPopoverSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuInPopover,
};
exports.InDialog = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuInDialogSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuInDialog,
};
exports.Placements = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuPlacementsSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuPlacements,
};
exports.WithKeyboardShortcuts = {
args: {},
parameters: {
docs: {
source: {
code: index_1.MenuWithKeyboardShortcutsSrc,
language: 'tsx',
type: 'code',
},
},
},
render: index_1.MenuWithKeyboardShortcuts,
};
//# sourceMappingURL=menu.stories.js.map