@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
137 lines • 3.38 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Controlled = exports.Custom = exports.ProgressBar = exports.Closeable = exports.Action = exports.Error = exports.Success = exports.Neutral = void 0;
/**
*
* 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 _1 = require(".");
const componentMeta = {
title: 'Components/Toast',
id: 'components-toast',
component: react_1.Toaster,
tags: ['docsPage'],
};
exports.default = componentMeta;
exports.Neutral = {
args: {},
render: _1.ToastNeutral,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.ToastNeutralSrc,
},
},
},
};
exports.Success = {
args: {},
render: _1.ToastSuccess,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.ToastSuccessSrc,
},
},
},
};
exports.Error = {
args: {},
render: _1.ToastDanger,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.ToastDangerSrc,
},
},
},
};
exports.Action = {
args: {},
render: _1.ToastAction,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.ToastActionSrc,
},
},
},
};
exports.Closeable = {
args: {},
render: _1.ToastCloseable,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.ToastCloseableSrc,
},
},
},
};
exports.ProgressBar = {
args: {},
render: _1.ToastProgressBar,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.ToastProgressBarSrc,
},
},
},
};
exports.Custom = {
args: {},
render: _1.ToastCustom,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.ToastCustomSrc,
},
},
},
};
exports.Controlled = {
args: {},
render: _1.ToastControlled,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.ToastControlledSrc,
},
},
},
};
//# sourceMappingURL=toast.stories.js.map