Skip to content

Commit cd6d058

Browse files
authored
Merge pull request #1028 from rvsia/providedMappers
Extract provided mappers to seperate menu subsection
2 parents 715f3de + 8e9d471 commit cd6d058

Some content is hidden

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

43 files changed

+128
-82
lines changed

packages/react-renderer-demo/src/components/common/example-link.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const ExampleLink = ({ to, text = 'To example' }) => {
1515
return (
1616
<React.Fragment>
1717
<div style={{ float: 'right' }}>
18-
<RouterLink href={`/mappers/${to}?mapper=mui`}>
19-
<a className={classes.toExampleLink} href={`/mappers/${to}?mapper=mui`}>
18+
<RouterLink href={`/provider-mappers/${to}?mapper=mui`}>
19+
<a className={classes.toExampleLink} href={`/provided-mappers/${to}?mapper=mui`}>
2020
<Button color="primary">{text}</Button>
2121
</a>
2222
</RouterLink>

packages/react-renderer-demo/src/components/landing-page/landing-page-cards.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const buildFeatures = [
8989
{
9090
text: 'Multiple provided libraries - MaterialUI included!',
9191
Icon: LocalLibraryIcon,
92-
link: '/mappers/component-api'
92+
link: '/provided-mappers/component-api'
9393
},
9494
{
9595
text: 'Validation - basic types are provided, supports async validators!',
@@ -249,8 +249,8 @@ const LandingPageCards = () => {
249249
<Typography variant="h6" className={classes.textBottom}>
250250
MaterialUI
251251
</Typography>
252-
<RouterLink href="/mappers/mui-component-mapper">
253-
<a href="/mappers/mui-component-mapper">
252+
<RouterLink href="/provided-mappers/mui-component-mapper">
253+
<a href="/provided-mappers/mui-component-mapper">
254254
<img className={classes.logo} alt="material ui logo" src="/mui-logo.svg" />
255255
</a>
256256
</RouterLink>
@@ -259,8 +259,8 @@ const LandingPageCards = () => {
259259
<Typography variant="h6" className={classes.textBottom}>
260260
PatternFly 4
261261
</Typography>
262-
<RouterLink href="/mappers/pf4-component-mapper">
263-
<a href="/mappers/pf4-component-mapper">
262+
<RouterLink href="/provided-mappers/pf4-component-mapper">
263+
<a href="/provided-mappers/pf4-component-mapper">
264264
<img className={classes.logo} alt="pf4 logo" src="/pf4-logo.svg" />
265265
</a>
266266
</RouterLink>
@@ -269,8 +269,8 @@ const LandingPageCards = () => {
269269
<Typography variant="h6" className={classes.textBottom}>
270270
BlueprintJS
271271
</Typography>
272-
<RouterLink href="/mappers/blueprint-component-mapper">
273-
<a href="/mappers/blueprint-component-mapper">
272+
<RouterLink href="/provided-mappers/blueprint-component-mapper">
273+
<a href="/provided-mappers/blueprint-component-mapper">
274274
<img className={classes.logo} alt="blueprintjs logo" src="/blueprintjs-logo.svg" />
275275
</a>
276276
</RouterLink>
@@ -279,8 +279,8 @@ const LandingPageCards = () => {
279279
<Typography variant="h6" className={classes.textBottom}>
280280
Semantic UI
281281
</Typography>
282-
<RouterLink href="/mappers/suir-component-mapper">
283-
<a href="/mappers/suir-component-mapper">
282+
<RouterLink href="/provided-mappers/suir-component-mapper">
283+
<a href="/provided-mappers/suir-component-mapper">
284284
<img className={classes.logo} alt="semantic ui logo" src="/semantic-ui-logo.svg" />
285285
</a>
286286
</RouterLink>
@@ -289,8 +289,8 @@ const LandingPageCards = () => {
289289
<Typography variant="h6" className={classes.textBottom}>
290290
Ant Design
291291
</Typography>
292-
<RouterLink href="/mappers/ant-component-mapper">
293-
<a href="/mappers/ant-component-mapper">
292+
<RouterLink href="/provided-mappers/ant-component-mapper">
293+
<a href="/provided-mappers/ant-component-mapper">
294294
<img className={classes.logo} alt="ant logo" src="/ant-logo.svg" />
295295
</a>
296296
</RouterLink>
@@ -299,8 +299,8 @@ const LandingPageCards = () => {
299299
<Typography variant="h6" className={classes.textBottom}>
300300
Carbon Design System
301301
</Typography>
302-
<RouterLink href="/mappers/carbon-component-mapper">
303-
<a href="/mappers/carbon-component-mapper">
302+
<RouterLink href="/provided-mappers/carbon-component-mapper">
303+
<a href="/provided-mappers/carbon-component-mapper">
304304
<img className={classes.logo} alt="ant logo" src="/carbon-logo.svg" />
305305
</a>
306306
</RouterLink>

packages/react-renderer-demo/src/components/navigation/schemas/mappers.schema.js

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { baseExamples } from '../examples-definitions';
2-
31
const mappersSchema = [
42
{
53
subHeader: true,
@@ -22,41 +20,6 @@ const mappersSchema = [
2220
linkText: 'Common components API',
2321
link: 'component-api'
2422
},
25-
{
26-
subHeader: true,
27-
noRoute: true,
28-
title: 'Provided mappers'
29-
},
30-
{
31-
link: 'ant-component-mapper',
32-
linkText: 'Ant Design Mapper'
33-
},
34-
{
35-
link: 'blueprint-component-mapper',
36-
linkText: 'Blueprint mapper'
37-
},
38-
{
39-
link: 'carbon-component-mapper',
40-
linkText: 'Carbon mapper'
41-
},
42-
{
43-
link: 'mui-component-mapper',
44-
linkText: 'Material UI mapper'
45-
},
46-
{
47-
link: 'pf4-component-mapper',
48-
linkText: 'PF4 mapper'
49-
},
50-
{
51-
link: 'suir-component-mapper',
52-
linkText: 'Semantic UI mapper'
53-
},
54-
{
55-
subHeader: true,
56-
noRoute: true,
57-
title: 'Mapper components'
58-
},
59-
...baseExamples.sort((a, b) => a.linkText.localeCompare(b.linkText)),
6023
{
6124
subHeader: true,
6225
noRoute: true,
@@ -72,8 +35,7 @@ const mappersSchema = [
7235
},
7336
{
7437
link: 'validator-mapper',
75-
linkText: 'Validator mapper',
76-
divider: true
38+
linkText: 'Validator mapper'
7739
}
7840
];
7941

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { baseExamples } from '../examples-definitions';
2+
3+
const providedMappersSchema = [
4+
{
5+
linkText: 'Common components API',
6+
link: 'component-api'
7+
},
8+
{
9+
subHeader: true,
10+
noRoute: true,
11+
title: 'Mappers'
12+
},
13+
{
14+
link: 'ant-component-mapper',
15+
linkText: 'Ant Design Mapper'
16+
},
17+
{
18+
link: 'blueprint-component-mapper',
19+
linkText: 'Blueprint mapper'
20+
},
21+
{
22+
link: 'carbon-component-mapper',
23+
linkText: 'Carbon mapper'
24+
},
25+
{
26+
link: 'mui-component-mapper',
27+
linkText: 'Material UI mapper'
28+
},
29+
{
30+
link: 'pf4-component-mapper',
31+
linkText: 'PF4 mapper'
32+
},
33+
{
34+
link: 'suir-component-mapper',
35+
linkText: 'Semantic UI mapper'
36+
},
37+
{
38+
subHeader: true,
39+
noRoute: true,
40+
title: 'Mapper components'
41+
},
42+
...baseExamples.sort((a, b) => a.linkText.localeCompare(b.linkText))
43+
];
44+
45+
export default providedMappersSchema;

packages/react-renderer-demo/src/components/navigation/schemas/schema.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import schemaNav from './schema.schema';
44
import schemaHooks from './hooks.schema';
55
import mappersSchema from './mappers.schema';
66
import customExamplesSchema from './custom-examples.schema';
7+
import providedMappersSchema from './provider-mappers.schema';
78

89
const schema = [
910
{
@@ -38,6 +39,18 @@ const schema = [
3839
noRoute: true,
3940
fields: mappersSchema
4041
},
42+
{
43+
title: 'Provided mappers',
44+
link: 'provided-mappers',
45+
noRoute: true,
46+
fields: providedMappersSchema
47+
},
48+
{
49+
title: 'Examples',
50+
link: 'examples',
51+
noRoute: true,
52+
fields: customExamplesSchema
53+
},
4154
{
4255
linkText: 'Form builder',
4356
link: 'live-editor'
@@ -58,12 +71,6 @@ const schema = [
5871
linkText: 'Optimization',
5972
link: 'optimization'
6073
},
61-
{
62-
title: 'Examples',
63-
link: 'examples',
64-
noRoute: true,
65-
fields: customExamplesSchema
66-
},
6774
{
6875
linkText: 'Releases',
6976
link: 'releases'

packages/react-renderer-demo/src/doc-components/examples-texts/blueprint/date-picker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Please check the [original component](https://blueprintjs.com/docs/#datetime/dat
22

33
## Props
44

5-
DatePicker is wrapped in a form group, so it accepts all [form group props](/mappers/component-api#formgroupwrappedcomponents).
5+
DatePicker is wrapped in a form group, so it accepts all [form group props](/provided-mappers/component-api#formgroupwrappedcomponents).
66

77
|Props|Type|Description|
88
|-----|----|-----------|

packages/react-renderer-demo/src/doc-components/examples-texts/blueprint/dual-list-select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ This a custom component with a custom design.
22

33
## Props
44

5-
Dual list select is wrapped in a form group, so it accepts all [form group props](/mappers/component-api#formgroupwrappedcomponents).
5+
Dual list select is wrapped in a form group, so it accepts all [form group props](/provided-mappers/component-api#formgroupwrappedcomponents).
66

77
|Props|Type|Default|Description|
88
|-----|----|-------|-----------|

packages/react-renderer-demo/src/doc-components/examples-texts/carbon/date-picker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Please check the [original component](https://react.carbondesignsystem.com/?path
22

33
## Props
44

5-
DatePicker is wrapped in a form group, so it accepts all [form group props](/mappers/component-api#formgroupwrappedcomponents).
5+
DatePicker is wrapped in a form group, so it accepts all [form group props](/provided-mappers/component-api#formgroupwrappedcomponents).
66

77
|Props|Type|Description|
88
|-----|----|-----------|

packages/react-renderer-demo/src/doc-components/examples-texts/carbon/dual-list-select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ This a custom component with a custom design.
22

33
## Props
44

5-
Dual list select is wrapped in a form group, so it accepts all [form group props](/mappers/component-api#formgroupwrappedcomponents).
5+
Dual list select is wrapped in a form group, so it accepts all [form group props](/provided-mappers/component-api#formgroupwrappedcomponents).
66

77
|Props|Type|Default|Description|
88
|-----|----|-------|-----------|

packages/react-renderer-demo/src/doc-components/examples-texts/mui/dual-list-select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ This a custom component with a custom design.
22

33
## Props
44

5-
Dual list select is wrapped in a form group, so it accepts all [form group props](/mappers/component-api#formgroupwrappedcomponents).
5+
Dual list select is wrapped in a form group, so it accepts all [form group props](/provided-mappers/component-api#formgroupwrappedcomponents).
66

77
|Props|Type|Default|Description|
88
|-----|----|-------|-----------|

0 commit comments

Comments
 (0)