@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
150 lines (149 loc) • 3.94 kB
JavaScript
/**
*
* 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/>.
*/
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Danger = exports.Warning = exports.Info = exports.Image = exports.Variants = exports.TopAligned = exports.Default = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const isChromatic_1 = __importDefault(require("chromatic/isChromatic"));
const index_1 = require("../../index");
const _1 = require(".");
const componentMeta = {
component: index_1.Dialog,
decorators: [
(storyFn) => ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-flex-col n-items-center n-justify-center", children: storyFn() })),
],
id: 'components-dialog',
parameters: {
controls: { disable: true },
},
tags: ['docsPage'],
title: 'Components/Dialog',
};
exports.default = componentMeta;
exports.Default = {
args: {
isOpen: (0, isChromatic_1.default)(),
},
parameters: {
docs: {
source: {
code: _1.DialogDefaultSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.DialogDefault,
};
exports.TopAligned = {
args: {
isOpen: (0, isChromatic_1.default)(),
},
parameters: {
docs: {
source: {
code: _1.DialogTopAlignedSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.DialogTopAligned,
};
exports.Variants = {
args: {
isOpen: (0, isChromatic_1.default)(),
},
parameters: {
docs: {
source: {
code: _1.DialogVariantsSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.DialogVariants,
};
exports.Image = {
args: {
isOpen: (0, isChromatic_1.default)(),
},
parameters: {
docs: {
source: {
code: _1.DialogImageSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.DialogImage,
};
exports.Info = {
args: {
isOpen: (0, isChromatic_1.default)(),
},
parameters: {
docs: {
source: {
code: _1.DialogInfoSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.DialogInfo,
};
exports.Warning = {
args: {
isOpen: (0, isChromatic_1.default)(),
},
parameters: {
docs: {
source: {
code: _1.DialogWarningSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.DialogWarning,
};
exports.Danger = {
args: {
isOpen: (0, isChromatic_1.default)(),
},
parameters: {
docs: {
source: {
code: _1.DialogDangerSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.DialogDanger,
};
//# sourceMappingURL=dialog.stories.js.map