1 | import React from 'react';
|
2 | import { Source, SourceError } from './Source';
|
3 | export default {
|
4 | title: 'Docs/Source',
|
5 | component: Source
|
6 | };
|
7 | var jsxCode = "\n<MyComponent boolProp scalarProp={1} complexProp={{ foo: 1, bar: '2' }}>\n <SomeOtherComponent funcProp={(a) => a.id} />\n</MyComponent>\n";
|
8 | export var JSX = function JSX(args) {
|
9 | return React.createElement(Source, args);
|
10 | };
|
11 | JSX.displayName = "JSX";
|
12 | JSX.args = {
|
13 | code: jsxCode,
|
14 | language: 'jsx',
|
15 | format: false
|
16 | };
|
17 | var cssCode = "\n@-webkit-keyframes blinker {\n from { opacity: 1.0; }\n to { opacity: 0.0; }\n}\n\n.waitingForConnection {\n -webkit-animation-name: blinker;\n -webkit-animation-iteration-count: infinite;\n -webkit-animation-timing-function: cubic-bezier(.5, 0, 1, 1);\n -webkit-animation-duration: 1.7s;\n}\n";
|
18 | export var CSS = function CSS(args) {
|
19 | return React.createElement(Source, args);
|
20 | };
|
21 | CSS.displayName = "CSS";
|
22 | CSS.args = {
|
23 | code: cssCode,
|
24 | language: 'css',
|
25 | format: false
|
26 | };
|
27 | export var NoStory = function NoStory(args) {
|
28 | return React.createElement(Source, args);
|
29 | };
|
30 | NoStory.displayName = "NoStory";
|
31 | NoStory.args = {
|
32 | error: SourceError.NO_STORY,
|
33 | format: false
|
34 | };
|
35 | export var SourceUnavailable = function SourceUnavailable(args) {
|
36 | return React.createElement(Source, args);
|
37 | };
|
38 | SourceUnavailable.displayName = "SourceUnavailable";
|
39 | SourceUnavailable.args = {
|
40 | error: SourceError.SOURCE_UNAVAILABLE,
|
41 | format: false
|
42 | }; |
\ | No newline at end of file |