UNPKG

@neo4j-ndl/react

Version:

React implementation of Neo4j Design System

172 lines (171 loc) 4.52 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 isChromatic from 'chromatic'; import { Spotlight, SpotlightProvider } from '../../index'; import { SpotlightFixedPositioning, SpotlightFixedPositioningSrc, SpotlightInDialog, SpotlightInDialogSrc, SpotlightInSideNav, SpotlightInSideNavSrc, SpotlightOnTabs, SpotlightOnTabsSrc, SpotlightTour, SpotlightTourSrc, SpotlightWithIcon, SpotlightWithIconSrc, SpotlightWithImage, SpotlightWithImageSrc, SpotlightWithLabel, SpotlightWithLabelSrc, SpotlightWithPointer, SpotlightWithPointerSrc, } from '.'; const componentMeta = { component: Spotlight, decorators: [ (StoryFn) => (_jsx(SpotlightProvider, { hasOverlay: true, children: _jsx(StoryFn, {}) })), ], id: 'components-spotlight', parameters: { controls: { disable: true }, }, tags: ['docsPage'], title: 'Components/Spotlight', }; export default componentMeta; export const WithLabel = { args: { isChromatic: isChromatic(), }, parameters: { docs: { source: { code: SpotlightWithLabelSrc, language: 'tsx', type: 'code', }, }, }, render: SpotlightWithLabel, }; export const WithIcon = { args: { isChromatic: isChromatic(), }, parameters: { docs: { source: { code: SpotlightWithIconSrc, language: 'tsx', type: 'code', }, }, }, render: SpotlightWithIcon, }; export const WithImage = { args: { isChromatic: isChromatic(), }, parameters: { docs: { source: { code: SpotlightWithImageSrc, language: 'tsx', type: 'code', }, }, }, render: SpotlightWithImage, }; export const WithPointerIndicator = { args: { isChromatic: isChromatic(), }, parameters: { docs: { source: { code: SpotlightWithPointerSrc, language: 'tsx', type: 'code', }, }, }, render: SpotlightWithPointer, }; export const Tour = { args: {}, parameters: { docs: { source: { code: SpotlightTourSrc, language: 'tsx', type: 'code', }, }, }, render: SpotlightTour, }; export const InSideNav = { args: { isChromatic: isChromatic(), }, parameters: { docs: { source: { code: SpotlightInSideNavSrc, language: 'tsx', type: 'code', }, }, }, render: SpotlightInSideNav, }; export const TargetInDialog = { args: { isChromatic: isChromatic(), }, parameters: { docs: { source: { code: SpotlightInDialogSrc, language: 'tsx', type: 'code', }, }, }, render: SpotlightInDialog, }; export const FixedPositioning = { args: { isChromatic: isChromatic(), }, parameters: { docs: { source: { code: SpotlightFixedPositioningSrc, language: 'tsx', type: 'code', }, }, }, render: SpotlightFixedPositioning, }; export const OnTabs = { args: { isChromatic: isChromatic(), }, parameters: { docs: { source: { code: SpotlightOnTabsSrc, language: 'tsx', type: 'code', }, }, }, render: SpotlightOnTabs, }; //# sourceMappingURL=spotlight.stories.js.map