@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
160 lines (159 loc) • 4.16 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";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Fluid = exports.WithPlaceholder = exports.WithEditIcon = exports.NoConfirmOnBlur = exports.ControlledValue = exports.ControlledEditing = exports.Header = exports.Disabled = exports.Default = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const InlineEdit_1 = require("../InlineEdit");
const _1 = require(".");
const meta = {
component: InlineEdit_1.InlineEdit,
decorators: [
(storyFn) => ((0, jsx_runtime_1.jsx)("div", { style: {
maxWidth: '600px',
}, children: storyFn() })),
],
id: 'components-inline-edit',
parameters: {
controls: { disable: true },
},
tags: ['docsPage'],
title: 'Components/InlineEdit',
};
exports.default = meta;
exports.Default = {
args: {},
parameters: {
docs: {
source: {
code: _1.InlineEditDefaultSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.InlineEditDefault,
};
exports.Disabled = {
args: {},
parameters: {
docs: {
source: {
code: _1.InlineEditDisabledSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.InlineEditDisabled,
};
exports.Header = {
args: {},
parameters: {
docs: {
source: {
code: _1.InlineEditHeaderSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.InlineEditHeader,
};
exports.ControlledEditing = {
args: {},
parameters: {
docs: {
source: {
code: _1.InlineEditControlledEditingSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.InlineEditControlledEditing,
};
exports.ControlledValue = {
args: {},
parameters: {
docs: {
source: {
code: _1.InlineEditControlledValueSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.InlineEditControlledValue,
};
exports.NoConfirmOnBlur = {
args: {},
parameters: {
docs: {
source: {
code: _1.InlineEditNoConfirmOnBlurSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.InlineEditNoConfirmOnBlur,
};
exports.WithEditIcon = {
args: {},
parameters: {
docs: {
source: {
code: _1.InlineEditWithEditIconSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.InlineEditWithEditIcon,
};
exports.WithPlaceholder = {
args: {},
parameters: {
docs: {
source: {
code: _1.InlineEditWithPlaceholderSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.InlineEditWithPlaceholder,
};
exports.Fluid = {
args: {},
parameters: {
docs: {
source: {
code: _1.InlineEditFluidSrc,
language: 'tsx',
type: 'code',
},
},
},
render: _1.InlineEditFluid,
};
//# sourceMappingURL=inline-edit.stories.js.map