Skip to content

Commit 1795b54

Browse files
committed
essential-stories
1 parent d3e30ae commit 1795b54

34 files changed

+1930
-121
lines changed

config/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module.exports = {
55
],
66
addons: [
77
"@storybook/addon-links",
8-
"@storybook/addon-essentials",
9-
"@storybook/addon-interactions",
8+
"@storybook/addon-essentials"
109
],
1110
};

config/preview.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
parameters: {
3+
previewTabs: {
4+
'storybook/docs/panel': {
5+
hidden: true,
6+
},
7+
},
8+
},
9+
};

dist/.gitkeep

Whitespace-only changes.

package-lock.json

Lines changed: 793 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"license": "MIT",
1414
"private": true,
1515
"dependencies": {
16+
"@emotion/css": "^11.7.1",
17+
"@mui/material": "^5.2.8",
1618
"react": "^17.0.1",
19+
"react-declarative": "^1.6.6",
1720
"react-dom": "^17.0.1"
1821
},
1922
"scripts": {

src/components/Breadcrumbs/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/FieldTemplate.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import React from 'react';
2+
3+
import { action } from '@storybook/addon-actions';
4+
import { Container, CssBaseline, Box } from '@mui/material';
5+
6+
import { OneTyped, TypedField } from 'react-declarative';
7+
8+
interface IFieldTemplateProps {
9+
field: TypedField;
10+
}
11+
12+
export const FieldTemplate = ({
13+
field,
14+
}: IFieldTemplateProps) => (
15+
<Container>
16+
<CssBaseline />
17+
<Box p={1}>
18+
<OneTyped
19+
fields={[field]}
20+
focus={action('focus')}
21+
blur={action('blur')}
22+
change={action('change')}
23+
invalidity={action('invalidity')}
24+
ready={action('ready')}
25+
fallback={action('fallback')}
26+
/>
27+
</Box>
28+
</Container>
29+
);

src/components/LayoutTemplate.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import React from 'react';
2+
3+
import { action } from '@storybook/addon-actions';
4+
import { Container, CssBaseline, Box } from '@mui/material';
5+
6+
import { OneTyped, TypedField } from 'react-declarative';
7+
8+
interface ILayoutTemplateProps {
9+
fields: TypedField[];
10+
}
11+
12+
export const LayoutTemplate = ({
13+
fields,
14+
}: ILayoutTemplateProps) => (
15+
<Container>
16+
<CssBaseline />
17+
<Box p={1}>
18+
<OneTyped
19+
fields={fields}
20+
focus={action('focus')}
21+
blur={action('blur')}
22+
change={action('change')}
23+
invalidity={action('invalidity')}
24+
ready={action('ready')}
25+
fallback={action('fallback')}
26+
/>
27+
</Box>
28+
</Container>
29+
);

src/components/List/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/One/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)