@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
144 lines (143 loc) • 3.64 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/>.
*/
import { jsx as _jsx } from "react/jsx-runtime";
import isChromatic from 'chromatic/isChromatic';
import { Dialog } from '../../index';
import { DialogDanger, DialogDangerSrc, DialogDefault, DialogDefaultSrc, DialogImage, DialogImageSrc, DialogInfo, DialogInfoSrc, DialogTopAligned, DialogTopAlignedSrc, DialogVariants, DialogVariantsSrc, DialogWarning, DialogWarningSrc, } from '.';
const componentMeta = {
component: Dialog,
decorators: [
(storyFn) => (_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',
};
export default componentMeta;
export const Default = {
args: {
isOpen: isChromatic(),
},
parameters: {
docs: {
source: {
code: DialogDefaultSrc,
language: 'tsx',
type: 'code',
},
},
},
render: DialogDefault,
};
export const TopAligned = {
args: {
isOpen: isChromatic(),
},
parameters: {
docs: {
source: {
code: DialogTopAlignedSrc,
language: 'tsx',
type: 'code',
},
},
},
render: DialogTopAligned,
};
export const Variants = {
args: {
isOpen: isChromatic(),
},
parameters: {
docs: {
source: {
code: DialogVariantsSrc,
language: 'tsx',
type: 'code',
},
},
},
render: DialogVariants,
};
export const Image = {
args: {
isOpen: isChromatic(),
},
parameters: {
docs: {
source: {
code: DialogImageSrc,
language: 'tsx',
type: 'code',
},
},
},
render: DialogImage,
};
export const Info = {
args: {
isOpen: isChromatic(),
},
parameters: {
docs: {
source: {
code: DialogInfoSrc,
language: 'tsx',
type: 'code',
},
},
},
render: DialogInfo,
};
export const Warning = {
args: {
isOpen: isChromatic(),
},
parameters: {
docs: {
source: {
code: DialogWarningSrc,
language: 'tsx',
type: 'code',
},
},
},
render: DialogWarning,
};
export const Danger = {
args: {
isOpen: isChromatic(),
},
parameters: {
docs: {
source: {
code: DialogDangerSrc,
language: 'tsx',
type: 'code',
},
},
},
render: DialogDanger,
};
//# sourceMappingURL=dialog.stories.js.map