@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
223 lines (222 loc) • 5.49 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.Full = exports.Loading = exports.Sizes = exports.Password = exports.WithIcons = exports.Number = exports.Email = exports.InformationIcon = exports.Error = exports.Readonly = exports.Disabled = exports.Optional = exports.Required = exports.Default = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const index_1 = require("../../index");
const _1 = require(".");
const componentMeta = {
title: 'Components/Text Input',
id: 'components-text-input',
component: index_1.TextInput,
tags: ['docsPage'],
parameters: {
controls: { disable: true },
},
decorators: [
(Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-justify-center", children: (0, jsx_runtime_1.jsx)(Story, {}) })),
],
};
exports.default = componentMeta;
exports.Default = {
args: {},
render: _1.TextInputDefault,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputDefaultSource,
},
},
},
};
exports.Required = {
args: {},
render: _1.TextInputRequired,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputRequiredSource,
},
},
},
};
exports.Optional = {
args: {},
render: _1.TextInputOptional,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputOptionalSource,
},
},
},
};
exports.Disabled = {
args: {},
render: _1.TextInputDisabled,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputDisabledSource,
},
},
},
};
exports.Readonly = {
args: {},
render: _1.TextInputReadonly,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputReadonlySource,
},
},
},
};
exports.Error = {
args: {},
render: _1.TextInputError,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputErrorSource,
},
},
},
};
exports.InformationIcon = {
args: {},
render: _1.TextInputInformationIcon,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputInformationIconSource,
},
},
},
};
exports.Email = {
args: {},
render: _1.TextInputEmail,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputEmailSource,
},
},
},
};
exports.Number = {
args: {},
render: _1.TextInputNumber,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputNumberSource,
},
},
},
};
exports.WithIcons = {
args: {},
render: _1.TextInputWithIcons,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputWithIconsSource,
},
},
},
};
exports.Password = {
args: {},
render: _1.TextInputPassword,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputPasswordSource,
},
},
},
};
exports.Sizes = {
args: {},
render: _1.TextInputSizes,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputSizesSource,
},
},
},
};
exports.Loading = {
args: {},
render: _1.TextInputLoading,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputLoadingSource,
},
},
},
};
exports.Full = {
args: {},
render: _1.TextInputFull,
parameters: {
docs: {
source: {
language: 'tsx',
type: 'code',
code: _1.TextInputFullSource,
},
},
},
};
//# sourceMappingURL=text-input.stories.js.map