@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
122 lines (121 loc) • 3.68 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 { Avatar } from '../../index';
import { AvatarDefault, AvatarDefaultSource, AvatarDisabled, AvatarDisabledSource, AvatarShapes, AvatarShapesSource, AvatarSizes, AvatarSizesSource, AvatarStatuses, AvatarStatusesSource, AvatarTypes, AvatarTypesSource, } from '.';
const componentMeta = {
title: 'Components/Avatar',
id: 'components-avatar',
component: Avatar,
tags: ['docsPage'],
parameters: {
controls: { disable: true },
},
decorators: [
(Story) => (_jsx("div", { className: "n-flex n-justify-center", children: _jsx(Story, {}) })),
],
};
export default componentMeta;
export const Default = {
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
args: {},
render: AvatarDefault,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: AvatarDefaultSource,
},
},
},
};
export const Disabled = {
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
args: {},
render: AvatarDisabled,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: AvatarDisabledSource,
},
},
},
};
export const Shapes = {
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
args: {},
render: AvatarShapes,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: AvatarShapesSource,
},
},
},
};
export const Sizes = {
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
args: {},
render: AvatarSizes,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: AvatarSizesSource,
},
},
},
};
export const Statuses = {
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
args: {},
render: AvatarStatuses,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: AvatarStatusesSource,
},
},
},
};
export const Types = {
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
args: {},
render: AvatarTypes,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: AvatarTypesSource,
},
},
},
};
//# sourceMappingURL=avatar.stories.js.map