UNPKG

@neo4j-ndl/react

Version:

React implementation of Neo4j Design System

157 lines (156 loc) 4.27 kB
/** * * 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 { InlineEdit } from '../InlineEdit'; import { InlineEditControlledEditing, InlineEditControlledEditingSrc, InlineEditControlledValue, InlineEditControlledValueSrc, InlineEditDefault, InlineEditDefaultSrc, InlineEditDisabled, InlineEditDisabledSrc, InlineEditFluid, InlineEditFluidSrc, InlineEditHeader, InlineEditHeaderSrc, InlineEditNoConfirmOnBlur, InlineEditNoConfirmOnBlurSrc, InlineEditWithEditIcon, InlineEditWithEditIconSrc, InlineEditWithPlaceholder, InlineEditWithPlaceholderSrc, } from '.'; const meta = { component: InlineEdit, decorators: [ (storyFn) => (_jsx("div", { style: { maxWidth: '600px', }, children: storyFn() })), ], id: 'components-inline-edit', parameters: { controls: { disable: true }, }, tags: ['docsPage'], title: 'Components/InlineEdit', }; export default meta; export const Default = { args: {}, parameters: { docs: { source: { code: InlineEditDefaultSrc, language: 'tsx', type: 'code', }, }, }, render: InlineEditDefault, }; export const Disabled = { args: {}, parameters: { docs: { source: { code: InlineEditDisabledSrc, language: 'tsx', type: 'code', }, }, }, render: InlineEditDisabled, }; export const Header = { args: {}, parameters: { docs: { source: { code: InlineEditHeaderSrc, language: 'tsx', type: 'code', }, }, }, render: InlineEditHeader, }; export const ControlledEditing = { args: {}, parameters: { docs: { source: { code: InlineEditControlledEditingSrc, language: 'tsx', type: 'code', }, }, }, render: InlineEditControlledEditing, }; export const ControlledValue = { args: {}, parameters: { docs: { source: { code: InlineEditControlledValueSrc, language: 'tsx', type: 'code', }, }, }, render: InlineEditControlledValue, }; export const NoConfirmOnBlur = { args: {}, parameters: { docs: { source: { code: InlineEditNoConfirmOnBlurSrc, language: 'tsx', type: 'code', }, }, }, render: InlineEditNoConfirmOnBlur, }; export const WithEditIcon = { args: {}, parameters: { docs: { source: { code: InlineEditWithEditIconSrc, language: 'tsx', type: 'code', }, }, }, render: InlineEditWithEditIcon, }; export const WithPlaceholder = { args: {}, parameters: { docs: { source: { code: InlineEditWithPlaceholderSrc, language: 'tsx', type: 'code', }, }, }, render: InlineEditWithPlaceholder, }; export const Fluid = { args: {}, parameters: { docs: { source: { code: InlineEditFluidSrc, language: 'tsx', type: 'code', }, }, }, render: InlineEditFluid, }; //# sourceMappingURL=inline-edit.stories.js.map