@storybook/react 7.3.2 → 7.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -9
- package/src/__test__/README.md +0 -3
- package/src/typings.d.ts +0 -48
- package/template/components/Button.jsx +0 -13
- package/template/components/Form.jsx +0 -36
- package/template/components/Html.jsx +0 -9
- package/template/components/Pre.jsx +0 -20
- package/template/stories/decorators.stories.tsx +0 -48
- package/template/stories/docgen-components/10017-ts-union/argTypes.snapshot +0 -36
- package/template/stories/docgen-components/10017-ts-union/docgen.snapshot +0 -34
- package/template/stories/docgen-components/10017-ts-union/input.tsx +0 -12
- package/template/stories/docgen-components/10017-ts-union/properties.snapshot +0 -32
- package/template/stories/docgen-components/10278-ts-multiple-components/argTypes.snapshot +0 -26
- package/template/stories/docgen-components/10278-ts-multiple-components/docgen.snapshot +0 -49
- package/template/stories/docgen-components/10278-ts-multiple-components/input.tsx +0 -27
- package/template/stories/docgen-components/10278-ts-multiple-components/properties.snapshot +0 -22
- package/template/stories/docgen-components/8140-js-prop-types-oneof/argTypes.snapshot +0 -127
- package/template/stories/docgen-components/8140-js-prop-types-oneof/docgen.snapshot +0 -97
- package/template/stories/docgen-components/8140-js-prop-types-oneof/input.jsx +0 -27
- package/template/stories/docgen-components/8140-js-prop-types-oneof/properties.snapshot +0 -89
- package/template/stories/docgen-components/8143-ts-imported-types/argTypes.snapshot +0 -27
- package/template/stories/docgen-components/8143-ts-imported-types/docgen.snapshot +0 -22
- package/template/stories/docgen-components/8143-ts-imported-types/input.tsx +0 -10
- package/template/stories/docgen-components/8143-ts-imported-types/properties.snapshot +0 -23
- package/template/stories/docgen-components/8143-ts-imported-types/types.ts +0 -3
- package/template/stories/docgen-components/8143-ts-react-fc-generics/argTypes.snapshot +0 -27
- package/template/stories/docgen-components/8143-ts-react-fc-generics/docgen.snapshot +0 -24
- package/template/stories/docgen-components/8143-ts-react-fc-generics/input.tsx +0 -10
- package/template/stories/docgen-components/8143-ts-react-fc-generics/properties.snapshot +0 -21
- package/template/stories/docgen-components/8428-js-static-prop-types/argTypes.snapshot +0 -25
- package/template/stories/docgen-components/8428-js-static-prop-types/docgen.snapshot +0 -39
- package/template/stories/docgen-components/8428-js-static-prop-types/input.jsx +0 -20
- package/template/stories/docgen-components/8428-js-static-prop-types/properties.snapshot +0 -21
- package/template/stories/docgen-components/8740-ts-multi-props/argTypes.snapshot +0 -27
- package/template/stories/docgen-components/8740-ts-multi-props/docgen.snapshot +0 -49
- package/template/stories/docgen-components/8740-ts-multi-props/input.tsx +0 -23
- package/template/stories/docgen-components/8740-ts-multi-props/properties.snapshot +0 -21
- package/template/stories/docgen-components/8894-9511-ts-forward-ref/argTypes.snapshot +0 -48
- package/template/stories/docgen-components/8894-9511-ts-forward-ref/docgen.snapshot +0 -39
- package/template/stories/docgen-components/8894-9511-ts-forward-ref/input.tsx +0 -31
- package/template/stories/docgen-components/8894-9511-ts-forward-ref/properties.snapshot +0 -34
- package/template/stories/docgen-components/9023-js-hoc/argTypes.snapshot +0 -89
- package/template/stories/docgen-components/9023-js-hoc/docgen.snapshot +0 -84
- package/template/stories/docgen-components/9023-js-hoc/input.jsx +0 -40
- package/template/stories/docgen-components/9023-js-hoc/properties.snapshot +0 -67
- package/template/stories/docgen-components/9399-js-proptypes-shape/argTypes.snapshot +0 -39
- package/template/stories/docgen-components/9399-js-proptypes-shape/docgen.snapshot +0 -48
- package/template/stories/docgen-components/9399-js-proptypes-shape/input.jsx +0 -16
- package/template/stories/docgen-components/9399-js-proptypes-shape/properties.snapshot +0 -35
- package/template/stories/docgen-components/9465-ts-type-props/argTypes.snapshot +0 -28
- package/template/stories/docgen-components/9465-ts-type-props/docgen.snapshot +0 -33
- package/template/stories/docgen-components/9465-ts-type-props/input.tsx +0 -12
- package/template/stories/docgen-components/9465-ts-type-props/properties.snapshot +0 -24
- package/template/stories/docgen-components/9493-ts-display-name/argTypes.snapshot +0 -62
- package/template/stories/docgen-components/9493-ts-display-name/docgen.snapshot +0 -50
- package/template/stories/docgen-components/9493-ts-display-name/input.tsx +0 -30
- package/template/stories/docgen-components/9493-ts-display-name/properties.snapshot +0 -52
- package/template/stories/docgen-components/9556-ts-react-default-exports/argTypes.snapshot +0 -28
- package/template/stories/docgen-components/9556-ts-react-default-exports/docgen.snapshot +0 -32
- package/template/stories/docgen-components/9556-ts-react-default-exports/input.tsx +0 -12
- package/template/stories/docgen-components/9556-ts-react-default-exports/properties.snapshot +0 -24
- package/template/stories/docgen-components/9575-ts-camel-case/argTypes.snapshot +0 -28
- package/template/stories/docgen-components/9575-ts-camel-case/docgen.snapshot +0 -38
- package/template/stories/docgen-components/9575-ts-camel-case/input.tsx +0 -26
- package/template/stories/docgen-components/9575-ts-camel-case/properties.snapshot +0 -24
- package/template/stories/docgen-components/9586-js-react-memo/argTypes.snapshot +0 -41
- package/template/stories/docgen-components/9586-js-react-memo/docgen.snapshot +0 -42
- package/template/stories/docgen-components/9586-js-react-memo/input.jsx +0 -15
- package/template/stories/docgen-components/9586-js-react-memo/properties.snapshot +0 -34
- package/template/stories/docgen-components/9591-ts-import-types/Bar.tsx +0 -3
- package/template/stories/docgen-components/9591-ts-import-types/argTypes.snapshot +0 -25
- package/template/stories/docgen-components/9591-ts-import-types/docgen.snapshot +0 -21
- package/template/stories/docgen-components/9591-ts-import-types/input.tsx +0 -10
- package/template/stories/docgen-components/9591-ts-import-types/properties.snapshot +0 -21
- package/template/stories/docgen-components/9626-js-default-values/argTypes.snapshot +0 -27
- package/template/stories/docgen-components/9626-js-default-values/docgen.snapshot +0 -25
- package/template/stories/docgen-components/9626-js-default-values/input.jsx +0 -5
- package/template/stories/docgen-components/9626-js-default-values/properties.snapshot +0 -21
- package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/argTypes.snapshot +0 -42
- package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/docgen.snapshot +0 -36
- package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/input.jsx +0 -13
- package/template/stories/docgen-components/9668-js-proptypes-no-jsdoc/properties.snapshot +0 -35
- package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/argTypes.snapshot +0 -34
- package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/docgen.snapshot +0 -38
- package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/input.tsx +0 -12
- package/template/stories/docgen-components/9721-ts-deprecated-jsdoc/properties.snapshot +0 -30
- package/template/stories/docgen-components/9764-ts-extend-props/argTypes.snapshot +0 -72
- package/template/stories/docgen-components/9764-ts-extend-props/docgen.snapshot +0 -41
- package/template/stories/docgen-components/9764-ts-extend-props/input.tsx +0 -17
- package/template/stories/docgen-components/9764-ts-extend-props/properties.snapshot +0 -56
- package/template/stories/docgen-components/9827-ts-default-values/argTypes.snapshot +0 -72
- package/template/stories/docgen-components/9827-ts-default-values/docgen.snapshot +0 -52
- package/template/stories/docgen-components/9827-ts-default-values/input.tsx +0 -17
- package/template/stories/docgen-components/9827-ts-default-values/properties.snapshot +0 -56
- package/template/stories/docgen-components/9832-ts-enum-export/argTypes.snapshot +0 -3
- package/template/stories/docgen-components/9832-ts-enum-export/docgen.snapshot +0 -16
- package/template/stories/docgen-components/9832-ts-enum-export/input.tsx +0 -8
- package/template/stories/docgen-components/9832-ts-enum-export/properties.snapshot +0 -7
- package/template/stories/docgen-components/9922-ts-component-props/argTypes.snapshot +0 -25
- package/template/stories/docgen-components/9922-ts-component-props/docgen.snapshot +0 -35
- package/template/stories/docgen-components/9922-ts-component-props/input.tsx +0 -24
- package/template/stories/docgen-components/9922-ts-component-props/properties.snapshot +0 -21
- package/template/stories/docgen-components/js-class-component/argTypes.snapshot +0 -386
- package/template/stories/docgen-components/js-class-component/docgen.snapshot +0 -252
- package/template/stories/docgen-components/js-class-component/input.jsx +0 -57
- package/template/stories/docgen-components/js-class-component/properties.snapshot +0 -286
- package/template/stories/docgen-components/js-function-component/argTypes.snapshot +0 -386
- package/template/stories/docgen-components/js-function-component/docgen.snapshot +0 -236
- package/template/stories/docgen-components/js-function-component/input.jsx +0 -50
- package/template/stories/docgen-components/js-function-component/properties.snapshot +0 -286
- package/template/stories/docgen-components/js-function-component-inline-defaults/argTypes.snapshot +0 -386
- package/template/stories/docgen-components/js-function-component-inline-defaults/docgen.snapshot +0 -247
- package/template/stories/docgen-components/js-function-component-inline-defaults/input.jsx +0 -65
- package/template/stories/docgen-components/js-function-component-inline-defaults/properties.snapshot +0 -286
- package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/argTypes.snapshot +0 -237
- package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/docgen.snapshot +0 -124
- package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/input.jsx +0 -41
- package/template/stories/docgen-components/js-function-component-inline-defaults-no-propTypes/properties.snapshot +0 -151
- package/template/stories/docgen-components/js-proptypes/docgen.snapshot +0 -1770
- package/template/stories/docgen-components/js-proptypes/input.jsx +0 -497
- package/template/stories/docgen-components/jsdoc/argTypes.snapshot +0 -1129
- package/template/stories/docgen-components/jsdoc/docgen.snapshot +0 -548
- package/template/stories/docgen-components/jsdoc/input.jsx +0 -231
- package/template/stories/docgen-components/jsdoc/properties.snapshot +0 -1017
- package/template/stories/docgen-components/ts-function-component/argTypes.snapshot +0 -396
- package/template/stories/docgen-components/ts-function-component/docgen.snapshot +0 -241
- package/template/stories/docgen-components/ts-function-component/input.tsx +0 -52
- package/template/stories/docgen-components/ts-function-component/properties.snapshot +0 -296
- package/template/stories/docgen-components/ts-function-component-inline-defaults/argTypes.snapshot +0 -279
- package/template/stories/docgen-components/ts-function-component-inline-defaults/docgen.snapshot +0 -151
- package/template/stories/docgen-components/ts-function-component-inline-defaults/input.tsx +0 -80
- package/template/stories/docgen-components/ts-function-component-inline-defaults/properties.snapshot +0 -177
- package/template/stories/docgen-components/ts-html/argTypes.snapshot +0 -3
- package/template/stories/docgen-components/ts-html/docgen.snapshot +0 -12
- package/template/stories/docgen-components/ts-html/input.tsx +0 -12
- package/template/stories/docgen-components/ts-html/properties.snapshot +0 -7
- package/template/stories/docgen-components/ts-jsdoc/argTypes.snapshot +0 -3
- package/template/stories/docgen-components/ts-jsdoc/docgen.snapshot +0 -21
- package/template/stories/docgen-components/ts-jsdoc/input.tsx +0 -27
- package/template/stories/docgen-components/ts-jsdoc/properties.snapshot +0 -7
- package/template/stories/docgen-components/ts-types/argTypes.snapshot +0 -656
- package/template/stories/docgen-components/ts-types/docgen.snapshot +0 -317
- package/template/stories/docgen-components/ts-types/input.tsx +0 -130
- package/template/stories/docgen-components/ts-types/properties.snapshot +0 -410
- package/template/stories/errors.stories.tsx +0 -37
- package/template/stories/hooks.stories.tsx +0 -17
- package/template/stories/js-argtypes.stories.jsx +0 -91
- package/template/stories/react-mdx.stories.mdx +0 -26
- package/template/stories/teardown.stories.tsx +0 -23
- package/template/stories/ts-argtypes.stories.tsx +0 -104
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9668-js-proptypes-no-jsdoc 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"heads": Object {
|
|
6
|
-
"control": Object {
|
|
7
|
-
"type": "object",
|
|
8
|
-
},
|
|
9
|
-
"description": "",
|
|
10
|
-
"name": "heads",
|
|
11
|
-
"table": Object {
|
|
12
|
-
"defaultValue": null,
|
|
13
|
-
"jsDocTags": undefined,
|
|
14
|
-
"type": Object {
|
|
15
|
-
"detail": undefined,
|
|
16
|
-
"summary": "array",
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
"type": Object {
|
|
20
|
-
"name": "array",
|
|
21
|
-
"required": true,
|
|
22
|
-
"value": undefined,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
"onAddClick": Object {
|
|
26
|
-
"description": "",
|
|
27
|
-
"name": "onAddClick",
|
|
28
|
-
"table": Object {
|
|
29
|
-
"defaultValue": null,
|
|
30
|
-
"jsDocTags": undefined,
|
|
31
|
-
"type": Object {
|
|
32
|
-
"detail": undefined,
|
|
33
|
-
"summary": "func",
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
"type": Object {
|
|
37
|
-
"name": "function",
|
|
38
|
-
"required": false,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9668-js-proptypes-no-jsdoc 1`] = `
|
|
4
|
-
"/* eslint-disable react/forbid-prop-types */
|
|
5
|
-
/* eslint-disable react/require-default-props */
|
|
6
|
-
/* eslint-disable react/no-unused-prop-types */
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
|
-
const CCTable = props => /*#__PURE__*/React.createElement(React.Fragment, null, JSON.stringify(props));
|
|
10
|
-
CCTable.propTypes = {
|
|
11
|
-
heads: PropTypes.array.isRequired,
|
|
12
|
-
onAddClick: PropTypes.func
|
|
13
|
-
};
|
|
14
|
-
export const component = CCTable;
|
|
15
|
-
CCTable.__docgenInfo = {
|
|
16
|
-
\\"description\\": \\"\\",
|
|
17
|
-
\\"methods\\": [],
|
|
18
|
-
\\"displayName\\": \\"CCTable\\",
|
|
19
|
-
\\"props\\": {
|
|
20
|
-
\\"heads\\": {
|
|
21
|
-
\\"description\\": \\"\\",
|
|
22
|
-
\\"type\\": {
|
|
23
|
-
\\"name\\": \\"array\\"
|
|
24
|
-
},
|
|
25
|
-
\\"required\\": true
|
|
26
|
-
},
|
|
27
|
-
\\"onAddClick\\": {
|
|
28
|
-
\\"description\\": \\"\\",
|
|
29
|
-
\\"type\\": {
|
|
30
|
-
\\"name\\": \\"func\\"
|
|
31
|
-
},
|
|
32
|
-
\\"required\\": false
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};"
|
|
36
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/forbid-prop-types */
|
|
2
|
-
/* eslint-disable react/require-default-props */
|
|
3
|
-
/* eslint-disable react/no-unused-prop-types */
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
|
|
7
|
-
const CCTable = (props) => <>{JSON.stringify(props)}</>;
|
|
8
|
-
CCTable.propTypes = {
|
|
9
|
-
heads: PropTypes.array.isRequired,
|
|
10
|
-
onAddClick: PropTypes.func,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const component = CCTable;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9668-js-proptypes-no-jsdoc 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"rows": Array [
|
|
6
|
-
Object {
|
|
7
|
-
"defaultValue": null,
|
|
8
|
-
"description": "",
|
|
9
|
-
"name": "heads",
|
|
10
|
-
"required": true,
|
|
11
|
-
"sbType": Object {
|
|
12
|
-
"name": "array",
|
|
13
|
-
"value": undefined,
|
|
14
|
-
},
|
|
15
|
-
"type": Object {
|
|
16
|
-
"detail": undefined,
|
|
17
|
-
"summary": "array",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
Object {
|
|
21
|
-
"defaultValue": null,
|
|
22
|
-
"description": "",
|
|
23
|
-
"name": "onAddClick",
|
|
24
|
-
"required": false,
|
|
25
|
-
"sbType": Object {
|
|
26
|
-
"name": "function",
|
|
27
|
-
},
|
|
28
|
-
"type": Object {
|
|
29
|
-
"detail": undefined,
|
|
30
|
-
"summary": "func",
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9721-ts-deprecated-jsdoc 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"size": Object {
|
|
6
|
-
"control": Object {
|
|
7
|
-
"type": "object",
|
|
8
|
-
},
|
|
9
|
-
"description": "The size (replaces width)",
|
|
10
|
-
"name": "size",
|
|
11
|
-
"table": Object {
|
|
12
|
-
"defaultValue": null,
|
|
13
|
-
"jsDocTags": undefined,
|
|
14
|
-
"type": Object {
|
|
15
|
-
"detail": undefined,
|
|
16
|
-
"summary": "signature",
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
"type": Object {
|
|
20
|
-
"name": "object",
|
|
21
|
-
"raw": "{ width: number; height: number }",
|
|
22
|
-
"required": true,
|
|
23
|
-
"value": Object {
|
|
24
|
-
"height": Object {
|
|
25
|
-
"name": "number",
|
|
26
|
-
},
|
|
27
|
-
"width": Object {
|
|
28
|
-
"name": "number",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9721-ts-deprecated-jsdoc 1`] = `
|
|
4
|
-
"import React from 'react';
|
|
5
|
-
const Foo = props => /*#__PURE__*/React.createElement(React.Fragment, null, JSON.stringify(props));
|
|
6
|
-
export const component = Foo;
|
|
7
|
-
Foo.__docgenInfo = {
|
|
8
|
-
\\"description\\": \\"\\",
|
|
9
|
-
\\"methods\\": [],
|
|
10
|
-
\\"displayName\\": \\"Foo\\",
|
|
11
|
-
\\"props\\": {
|
|
12
|
-
\\"size\\": {
|
|
13
|
-
\\"required\\": true,
|
|
14
|
-
\\"tsType\\": {
|
|
15
|
-
\\"name\\": \\"signature\\",
|
|
16
|
-
\\"type\\": \\"object\\",
|
|
17
|
-
\\"raw\\": \\"{ width: number; height: number }\\",
|
|
18
|
-
\\"signature\\": {
|
|
19
|
-
\\"properties\\": [{
|
|
20
|
-
\\"key\\": \\"width\\",
|
|
21
|
-
\\"value\\": {
|
|
22
|
-
\\"name\\": \\"number\\",
|
|
23
|
-
\\"required\\": true
|
|
24
|
-
}
|
|
25
|
-
}, {
|
|
26
|
-
\\"key\\": \\"height\\",
|
|
27
|
-
\\"value\\": {
|
|
28
|
-
\\"name\\": \\"number\\",
|
|
29
|
-
\\"required\\": true
|
|
30
|
-
}
|
|
31
|
-
}]
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
\\"description\\": \\"The size (replaces width)\\"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};"
|
|
38
|
-
`;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface FooProps {
|
|
4
|
-
/**
|
|
5
|
-
* The size (replaces width)
|
|
6
|
-
*/
|
|
7
|
-
size: { width: number; height: number };
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const Foo: React.FC<FooProps> = (props: FooProps) => <>{JSON.stringify(props)}</>;
|
|
11
|
-
|
|
12
|
-
export const component = Foo;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9721-ts-deprecated-jsdoc 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"rows": Array [
|
|
6
|
-
Object {
|
|
7
|
-
"defaultValue": null,
|
|
8
|
-
"description": "The size (replaces width)",
|
|
9
|
-
"name": "size",
|
|
10
|
-
"required": true,
|
|
11
|
-
"sbType": Object {
|
|
12
|
-
"name": "object",
|
|
13
|
-
"raw": "{ width: number; height: number }",
|
|
14
|
-
"value": Object {
|
|
15
|
-
"height": Object {
|
|
16
|
-
"name": "number",
|
|
17
|
-
},
|
|
18
|
-
"width": Object {
|
|
19
|
-
"name": "number",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
"type": Object {
|
|
24
|
-
"detail": undefined,
|
|
25
|
-
"summary": "signature",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9764-ts-extend-props 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"checked": Object {
|
|
6
|
-
"control": Object {
|
|
7
|
-
"type": "boolean",
|
|
8
|
-
},
|
|
9
|
-
"description": "",
|
|
10
|
-
"name": "checked",
|
|
11
|
-
"table": Object {
|
|
12
|
-
"defaultValue": null,
|
|
13
|
-
"jsDocTags": undefined,
|
|
14
|
-
"type": Object {
|
|
15
|
-
"detail": undefined,
|
|
16
|
-
"summary": "boolean",
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
"type": Object {
|
|
20
|
-
"name": "boolean",
|
|
21
|
-
"required": false,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
"defaultChecked": Object {
|
|
25
|
-
"control": Object {
|
|
26
|
-
"type": "boolean",
|
|
27
|
-
},
|
|
28
|
-
"description": "",
|
|
29
|
-
"name": "defaultChecked",
|
|
30
|
-
"table": Object {
|
|
31
|
-
"defaultValue": null,
|
|
32
|
-
"jsDocTags": undefined,
|
|
33
|
-
"type": Object {
|
|
34
|
-
"detail": undefined,
|
|
35
|
-
"summary": "boolean",
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
"type": Object {
|
|
39
|
-
"name": "boolean",
|
|
40
|
-
"required": false,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
"value": Object {
|
|
44
|
-
"control": Object {
|
|
45
|
-
"type": "object",
|
|
46
|
-
},
|
|
47
|
-
"description": "The input content value",
|
|
48
|
-
"name": "value",
|
|
49
|
-
"table": Object {
|
|
50
|
-
"defaultValue": null,
|
|
51
|
-
"jsDocTags": undefined,
|
|
52
|
-
"type": Object {
|
|
53
|
-
"detail": undefined,
|
|
54
|
-
"summary": "union",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
"type": Object {
|
|
58
|
-
"name": "union",
|
|
59
|
-
"raw": "string | number",
|
|
60
|
-
"required": false,
|
|
61
|
-
"value": Array [
|
|
62
|
-
Object {
|
|
63
|
-
"name": "string",
|
|
64
|
-
},
|
|
65
|
-
Object {
|
|
66
|
-
"name": "number",
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9764-ts-extend-props 1`] = `
|
|
4
|
-
"import React from 'react';
|
|
5
|
-
const Radio = props => /*#__PURE__*/React.createElement(React.Fragment, null, JSON.stringify(props));
|
|
6
|
-
export const component = Radio;
|
|
7
|
-
Radio.__docgenInfo = {
|
|
8
|
-
\\"description\\": \\"\\",
|
|
9
|
-
\\"methods\\": [],
|
|
10
|
-
\\"displayName\\": \\"Radio\\",
|
|
11
|
-
\\"props\\": {
|
|
12
|
-
\\"value\\": {
|
|
13
|
-
\\"required\\": false,
|
|
14
|
-
\\"tsType\\": {
|
|
15
|
-
\\"name\\": \\"union\\",
|
|
16
|
-
\\"raw\\": \\"string | number\\",
|
|
17
|
-
\\"elements\\": [{
|
|
18
|
-
\\"name\\": \\"string\\"
|
|
19
|
-
}, {
|
|
20
|
-
\\"name\\": \\"number\\"
|
|
21
|
-
}]
|
|
22
|
-
},
|
|
23
|
-
\\"description\\": \\"The input content value\\"
|
|
24
|
-
},
|
|
25
|
-
\\"defaultChecked\\": {
|
|
26
|
-
\\"required\\": false,
|
|
27
|
-
\\"tsType\\": {
|
|
28
|
-
\\"name\\": \\"boolean\\"
|
|
29
|
-
},
|
|
30
|
-
\\"description\\": \\"\\"
|
|
31
|
-
},
|
|
32
|
-
\\"checked\\": {
|
|
33
|
-
\\"required\\": false,
|
|
34
|
-
\\"tsType\\": {
|
|
35
|
-
\\"name\\": \\"boolean\\"
|
|
36
|
-
},
|
|
37
|
-
\\"description\\": \\"\\"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};"
|
|
41
|
-
`;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface InputProps {
|
|
4
|
-
/**
|
|
5
|
-
* The input content value
|
|
6
|
-
*/
|
|
7
|
-
value?: string | number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface RadioProps extends InputProps {
|
|
11
|
-
defaultChecked?: boolean;
|
|
12
|
-
checked?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const Radio: React.FC<RadioProps> = (props: RadioProps) => <>{JSON.stringify(props)}</>;
|
|
16
|
-
|
|
17
|
-
export const component = Radio;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9764-ts-extend-props 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"rows": Array [
|
|
6
|
-
Object {
|
|
7
|
-
"defaultValue": null,
|
|
8
|
-
"description": "The input content value",
|
|
9
|
-
"name": "value",
|
|
10
|
-
"required": false,
|
|
11
|
-
"sbType": Object {
|
|
12
|
-
"name": "union",
|
|
13
|
-
"raw": "string | number",
|
|
14
|
-
"value": Array [
|
|
15
|
-
Object {
|
|
16
|
-
"name": "string",
|
|
17
|
-
},
|
|
18
|
-
Object {
|
|
19
|
-
"name": "number",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
"type": Object {
|
|
24
|
-
"detail": undefined,
|
|
25
|
-
"summary": "union",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
Object {
|
|
29
|
-
"defaultValue": null,
|
|
30
|
-
"description": "",
|
|
31
|
-
"name": "defaultChecked",
|
|
32
|
-
"required": false,
|
|
33
|
-
"sbType": Object {
|
|
34
|
-
"name": "boolean",
|
|
35
|
-
},
|
|
36
|
-
"type": Object {
|
|
37
|
-
"detail": undefined,
|
|
38
|
-
"summary": "boolean",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
Object {
|
|
42
|
-
"defaultValue": null,
|
|
43
|
-
"description": "",
|
|
44
|
-
"name": "checked",
|
|
45
|
-
"required": false,
|
|
46
|
-
"sbType": Object {
|
|
47
|
-
"name": "boolean",
|
|
48
|
-
},
|
|
49
|
-
"type": Object {
|
|
50
|
-
"detail": undefined,
|
|
51
|
-
"summary": "boolean",
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
}
|
|
56
|
-
`;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9827-ts-default-values 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"bar": Object {
|
|
6
|
-
"control": Object {
|
|
7
|
-
"type": "object",
|
|
8
|
-
},
|
|
9
|
-
"description": "",
|
|
10
|
-
"name": "bar",
|
|
11
|
-
"table": Object {
|
|
12
|
-
"defaultValue": null,
|
|
13
|
-
"jsDocTags": undefined,
|
|
14
|
-
"type": Object {
|
|
15
|
-
"detail": undefined,
|
|
16
|
-
"summary": "Array",
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
"type": Object {
|
|
20
|
-
"name": "array",
|
|
21
|
-
"raw": "string[]",
|
|
22
|
-
"required": false,
|
|
23
|
-
"value": Array [
|
|
24
|
-
Object {
|
|
25
|
-
"name": "string",
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
"foo": Object {
|
|
31
|
-
"control": Object {
|
|
32
|
-
"type": "boolean",
|
|
33
|
-
},
|
|
34
|
-
"description": "",
|
|
35
|
-
"name": "foo",
|
|
36
|
-
"table": Object {
|
|
37
|
-
"defaultValue": null,
|
|
38
|
-
"jsDocTags": undefined,
|
|
39
|
-
"type": Object {
|
|
40
|
-
"detail": undefined,
|
|
41
|
-
"summary": "boolean",
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
"type": Object {
|
|
45
|
-
"name": "boolean",
|
|
46
|
-
"required": true,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
"title": Object {
|
|
50
|
-
"control": Object {
|
|
51
|
-
"type": "text",
|
|
52
|
-
},
|
|
53
|
-
"description": "",
|
|
54
|
-
"name": "title",
|
|
55
|
-
"table": Object {
|
|
56
|
-
"defaultValue": Object {
|
|
57
|
-
"detail": undefined,
|
|
58
|
-
"summary": "'this is the default :)'",
|
|
59
|
-
},
|
|
60
|
-
"jsDocTags": undefined,
|
|
61
|
-
"type": Object {
|
|
62
|
-
"detail": undefined,
|
|
63
|
-
"summary": "string",
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
"type": Object {
|
|
67
|
-
"name": "string",
|
|
68
|
-
"required": false,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9827-ts-default-values 1`] = `
|
|
4
|
-
"import React from 'react';
|
|
5
|
-
const Hello = ({
|
|
6
|
-
title
|
|
7
|
-
}) => {
|
|
8
|
-
return /*#__PURE__*/React.createElement(\\"div\\", {
|
|
9
|
-
className: \\"hello\\"
|
|
10
|
-
}, \\"Hello Component \\", title);
|
|
11
|
-
};
|
|
12
|
-
Hello.defaultProps = {
|
|
13
|
-
title: 'this is the default :)'
|
|
14
|
-
};
|
|
15
|
-
export const component = Hello;
|
|
16
|
-
Hello.__docgenInfo = {
|
|
17
|
-
\\"description\\": \\"\\",
|
|
18
|
-
\\"methods\\": [],
|
|
19
|
-
\\"displayName\\": \\"Hello\\",
|
|
20
|
-
\\"props\\": {
|
|
21
|
-
\\"title\\": {
|
|
22
|
-
\\"defaultValue\\": {
|
|
23
|
-
\\"value\\": \\"'this is the default :)'\\",
|
|
24
|
-
\\"computed\\": false
|
|
25
|
-
},
|
|
26
|
-
\\"required\\": false,
|
|
27
|
-
\\"tsType\\": {
|
|
28
|
-
\\"name\\": \\"string\\"
|
|
29
|
-
},
|
|
30
|
-
\\"description\\": \\"\\"
|
|
31
|
-
},
|
|
32
|
-
\\"foo\\": {
|
|
33
|
-
\\"required\\": true,
|
|
34
|
-
\\"tsType\\": {
|
|
35
|
-
\\"name\\": \\"boolean\\"
|
|
36
|
-
},
|
|
37
|
-
\\"description\\": \\"\\"
|
|
38
|
-
},
|
|
39
|
-
\\"bar\\": {
|
|
40
|
-
\\"required\\": false,
|
|
41
|
-
\\"tsType\\": {
|
|
42
|
-
\\"name\\": \\"Array\\",
|
|
43
|
-
\\"elements\\": [{
|
|
44
|
-
\\"name\\": \\"string\\"
|
|
45
|
-
}],
|
|
46
|
-
\\"raw\\": \\"string[]\\"
|
|
47
|
-
},
|
|
48
|
-
\\"description\\": \\"\\"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};"
|
|
52
|
-
`;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export interface HelloProps {
|
|
4
|
-
title: string;
|
|
5
|
-
foo: boolean;
|
|
6
|
-
bar?: string[];
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const Hello = ({ title }: HelloProps) => {
|
|
10
|
-
return <div className="hello">Hello Component {title}</div>;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
Hello.defaultProps = {
|
|
14
|
-
title: 'this is the default :)',
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const component = Hello;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9827-ts-default-values 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"rows": Array [
|
|
6
|
-
Object {
|
|
7
|
-
"defaultValue": Object {
|
|
8
|
-
"detail": undefined,
|
|
9
|
-
"summary": "'this is the default :)'",
|
|
10
|
-
},
|
|
11
|
-
"description": "",
|
|
12
|
-
"name": "title",
|
|
13
|
-
"required": false,
|
|
14
|
-
"sbType": Object {
|
|
15
|
-
"name": "string",
|
|
16
|
-
},
|
|
17
|
-
"type": Object {
|
|
18
|
-
"detail": undefined,
|
|
19
|
-
"summary": "string",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
Object {
|
|
23
|
-
"defaultValue": null,
|
|
24
|
-
"description": "",
|
|
25
|
-
"name": "foo",
|
|
26
|
-
"required": true,
|
|
27
|
-
"sbType": Object {
|
|
28
|
-
"name": "boolean",
|
|
29
|
-
},
|
|
30
|
-
"type": Object {
|
|
31
|
-
"detail": undefined,
|
|
32
|
-
"summary": "boolean",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
Object {
|
|
36
|
-
"defaultValue": null,
|
|
37
|
-
"description": "",
|
|
38
|
-
"name": "bar",
|
|
39
|
-
"required": false,
|
|
40
|
-
"sbType": Object {
|
|
41
|
-
"name": "array",
|
|
42
|
-
"raw": "string[]",
|
|
43
|
-
"value": Array [
|
|
44
|
-
Object {
|
|
45
|
-
"name": "string",
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
"type": Object {
|
|
50
|
-
"detail": undefined,
|
|
51
|
-
"summary": "Array",
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
}
|
|
56
|
-
`;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`react component properties 9832-ts-enum-export 1`] = `
|
|
4
|
-
"import React from 'react';
|
|
5
|
-
export let EnumWithExtraProps = /*#__PURE__*/function (EnumWithExtraProps) {
|
|
6
|
-
EnumWithExtraProps[\\"key1\\"] = \\"key1\\";
|
|
7
|
-
EnumWithExtraProps[\\"key2\\"] = \\"key2\\";
|
|
8
|
-
return EnumWithExtraProps;
|
|
9
|
-
}({});
|
|
10
|
-
export const component = () => /*#__PURE__*/React.createElement(\\"div\\", null, \\"hello\\");
|
|
11
|
-
component.__docgenInfo = {
|
|
12
|
-
\\"description\\": \\"\\",
|
|
13
|
-
\\"methods\\": [],
|
|
14
|
-
\\"displayName\\": \\"component\\"
|
|
15
|
-
};"
|
|
16
|
-
`;
|