UNPKG

@neo4j-ndl/react

Version:

React implementation of Neo4j Design System

121 lines 3.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Full = exports.Disabled = exports.LoadingSpinner = exports.LoadingProgress = exports.CustomExtensions = exports.CsvFiles = exports.Default = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); /** * * 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 = { component: react_1.Dropzone, parameters: { controls: { disable: true }, }, tags: ['docsPage'], title: 'Components/Dropzone', id: 'components-dropzone', decorators: [ (Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-mx-auto n-w-1/2", children: (0, jsx_runtime_1.jsx)(Story, {}) })), ], }; exports.default = componentMeta; exports.Default = { args: {}, render: () => (0, jsx_runtime_1.jsx)(_1.DropzoneDefault, {}), parameters: { docs: { source: { code: _1.DropzoneDefaultSource, }, }, }, }; exports.CsvFiles = { args: {}, name: 'CSV Files Only (MIME type)', render: () => (0, jsx_runtime_1.jsx)(_1.DropzoneCsvFiles, {}), parameters: { docs: { source: { code: _1.DropzoneCsvFilesSource, }, }, }, }; exports.CustomExtensions = { args: {}, name: 'Custom File Extensions (.dump)', render: () => (0, jsx_runtime_1.jsx)(_1.DropzoneCustomExtensions, {}), parameters: { docs: { source: { code: _1.DropzoneCustomExtensionsSource, }, }, }, }; exports.LoadingProgress = { args: {}, name: 'Loading with Progress Bar', render: () => (0, jsx_runtime_1.jsx)(_1.DropzoneLoadingProgress, {}), parameters: { docs: { source: { code: _1.DropzoneLoadingProgressSource, }, }, }, }; exports.LoadingSpinner = { args: {}, name: 'Loading with Spinner', render: () => (0, jsx_runtime_1.jsx)(_1.DropzoneLoadingSpinner, {}), parameters: { docs: { source: { code: _1.DropzoneLoadingSpinnerSource, }, }, }, }; exports.Disabled = { args: {}, render: () => (0, jsx_runtime_1.jsx)(_1.DropzoneDisabled, {}), parameters: { docs: { source: { code: _1.DropzoneDisabledSource, }, }, }, }; exports.Full = { args: {}, render: () => (0, jsx_runtime_1.jsx)(_1.DropzoneFull, {}), parameters: { docs: { source: { code: _1.DropzoneFullSource, }, }, }, }; //# sourceMappingURL=dropzone.stories.js.map