UNPKG

@omni-door/tpl-component-library-react

Version:
9 lines (8 loc) 946 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var utils_1 = require("@omni-door/utils"); var tpl = "`import * as React from 'react';\nimport { storiesOf } from '@storybook/react';\nimport { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';\nimport { themes } from '@storybook/theming';\nimport { ${componentName} } from '../index';\n${style ? \"import '../style';\" : ''}\n\nstoriesOf('${componentName}', module)\n .addParameters({\n readme: {\n sidebar: require('../README.md').default,\n highlightSidebar: true,\n codeTheme: 'github'\n },\n options: { theme: themes.light },\n viewport: {\n viewports: INITIAL_VIEWPORTS,\n defaultViewport: 'iphone6'\n }\n })\n .add('with text', () => <${componentName}>Hello ${componentName}</${componentName}>);\n`"; exports.tpl_new_story = { tpl: tpl }; exports.default = utils_1.tpl_engine_new(exports.tpl_new_story, 'tpl');