Skip to content

Commit 0cd1c08

Browse files
docs: Add Import Information for every component (#222)
1 parent ed6ae9b commit 0cd1c08

File tree

139 files changed

+578
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+578
-101
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"@storybook/addons": "5.2.3",
2424
"@storybook/cli": "5.2.3",
2525
"@storybook/react": "5.2.3",
26-
"@storybook/theming": "5.2.3"
26+
"@storybook/theming": "5.2.3",
27+
"react-docgen-typescript-loader": "3.3.0"
2728
},
2829
"devDependencies": {
2930
"@babel/core": "^7.4.4",
@@ -79,10 +80,9 @@
7980
"qs": "^6.7.0",
8081
"react": "^16.8.6",
8182
"react-app-polyfill": "^1.0.2",
82-
"react-docgen-typescript-loader": "^3.1.0",
8383
"react-dom": "^16.8.6",
8484
"react-highlight.js": "^1.0.7",
85-
"rimraf": "^2.6.3",
85+
"rimraf": "^3.0.0",
8686
"rollup": "^1.19.4",
8787
"rollup-plugin-babel": "^4.3.2",
8888
"rollup-plugin-node-resolve": "^5.2.0",
@@ -99,7 +99,7 @@
9999
"tslint": "^5.15.0",
100100
"tslint-config-prettier": "^1.18.0",
101101
"tslint-react": "^4.0.0",
102-
"typescript": "^3.4.3",
102+
"typescript": "^3.7.2",
103103
"util": "^0.12.0",
104104
"uuid": "^3.3.2",
105105
"webpack": "^4.39.1",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```jsx
2+
import { BarChart } from '@ui5/webcomponents-react/lib/BarChart';
3+
```

packages/charts/src/components/BarChart/demo.stories.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import React, { useState } from 'react';
21
import { action } from '@storybook/addon-actions';
32
import { boolean } from '@storybook/addon-knobs';
4-
import { BarChart } from './index';
3+
import { BarChart } from '@ui5/webcomponents-react-charts/lib/BarChart';
54
import { Button } from '@ui5/webcomponents-react/lib/Button';
5+
import React, { useState } from 'react';
6+
import notes from './BarChart.md';
67

78
const labels = ['January', 'February', 'March', 'April', 'May', 'June', 'July'];
89
const datasets = [
@@ -36,7 +37,8 @@ const options = {
3637

3738
export default {
3839
title: 'Charts | BarChart',
39-
component: BarChart
40+
component: BarChart,
41+
parameters: { notes }
4042
};
4143

4244
function Demo() {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```jsx
2+
import { ColumnChart } from '@ui5/webcomponents-react/lib/ColumnChart';
3+
```

packages/charts/src/components/ColumnChart/demo.stories.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import React from 'react';
21
import { boolean } from '@storybook/addon-knobs';
3-
import { ColumnChart } from './index';
2+
import { ColumnChart } from '@ui5/webcomponents-react-charts/lib/ColumnChart';
3+
import React from 'react';
4+
import notes from './ColumnChart.md';
45

56
const labels = ['January', 'February', 'March', 'April', 'May', 'June', 'July'];
67
const datasets = [
@@ -69,7 +70,8 @@ const growthLineOptions = {
6970

7071
export default {
7172
title: 'Charts | ColumnChart',
72-
component: ColumnChart
73+
component: ColumnChart,
74+
parameters: { notes }
7375
};
7476

7577
export const defaultStory = () => (
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```jsx
2+
import { DonutChart } from '@ui5/webcomponents-react/lib/DonutChart';
3+
```

packages/charts/src/components/DonutChart/demo.stories.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
import React from 'react';
21
import { boolean } from '@storybook/addon-knobs';
3-
import { DonutChart } from './index';
2+
import { DonutChart } from '@ui5/webcomponents-react-charts/lib/DonutChart';
3+
import React from 'react';
4+
import notes from './DonutChart.md';
45

56
const labels = ['January', 'February', 'March', 'April', 'May', 'June', 'July'];
67
const dataset = [{ data: [65, 59, 80, 81, 56, 55, 40] }];
78

89
export default {
910
title: 'Charts | DonutChart',
10-
component: DonutChart
11+
component: DonutChart,
12+
parameters: { notes }
1113
};
1214

1315
export const defaultStory = () => (
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```jsx
2+
import { LineChart } from '@ui5/webcomponents-react/lib/LineChart';
3+
```

packages/charts/src/components/LineChart/demo.stories.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import React from 'react';
21
import { boolean } from '@storybook/addon-knobs';
3-
import { LineChart } from './index';
2+
import { LineChart } from '@ui5/webcomponents-react-charts/lib/LineChart';
3+
import React from 'react';
4+
import notes from './LineChart.md';
45

56
const labels = ['January', 'February', 'March', 'April', 'May', 'June', 'July'];
67
const datasets = [
@@ -9,6 +10,7 @@ const datasets = [
910
data: [65, 59, 80, 81, 56, 55, 40]
1011
}
1112
];
13+
1214
function renderStory() {
1315
return <LineChart labels={labels} datasets={datasets} loading={boolean('loading', false)} />;
1416
}
@@ -30,7 +32,8 @@ const renderStoryWithCustomColors = () => (
3032

3133
export default {
3234
title: 'Charts | Line Chart',
33-
component: LineChart
35+
component: LineChart,
36+
parameters: { notes }
3437
};
3538

3639
export const defaultStory = renderStory;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```jsx
2+
import { MicroBarChart } from '@ui5/webcomponents-react/lib/MicroBarChart';
3+
```

0 commit comments

Comments
 (0)