Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 3547924

Browse files
committed
regenerate components
1 parent 4faa9d8 commit 3547924

File tree

131 files changed

+12220
-6310
lines changed

Some content is hidden

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

131 files changed

+12220
-6310
lines changed

lib/metadata.json

Lines changed: 7150 additions & 3710 deletions
Large diffs are not rendered by default.

src/components/A.react.js

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,37 @@ import React from 'react';
33
import PropTypes from 'prop-types';
44

55
const A = (props) => {
6-
if (props.fireEvent || props.setProps) {
7-
return (
8-
<a
9-
onClick={() => {
10-
if (props.setProps) props.setProps({n_clicks: props.n_clicks + 1});
11-
if (props.fireEvent) props.fireEvent({event: 'click'});
12-
}}
13-
{...props}
14-
>
15-
{props.children}
16-
</a>
17-
);
18-
} else {
19-
return (
20-
<a {...props}>
21-
{props.children}
22-
</a>
23-
);
24-
}
6+
return (
7+
<a
8+
onClick={() => {
9+
/* eslint-disable */
10+
console.log('click: ', props);
11+
/* eslint-enable */
12+
13+
if (props.setProps) {
14+
const newProps = {
15+
n_clicks: props.n_clicks + 1
16+
}
17+
if (newProps.n_clicks > 1) {
18+
newProps.n_clicks_previous = props.n_clicks_previous + 1;
19+
}
20+
/* eslint-disable */
21+
console.log('newProps: ', newProps);
22+
/* eslint-enable */
23+
props.setProps(newProps);
24+
}
25+
if (props.fireEvent) props.fireEvent({event: 'click'});
26+
}}
27+
{...props}
28+
>
29+
{props.children}
30+
</a>
31+
);
2532
};
2633

2734
A.defaultProps = {
28-
n_clicks: 0
35+
n_clicks: 0,
36+
n_clicks_previous: 0
2937
};
3038

3139
A.propTypes = {
@@ -47,6 +55,17 @@ A.propTypes = {
4755
*/
4856
'n_clicks': PropTypes.integer,
4957

58+
/**
59+
* An integer that represents the number of times
60+
* that this element was clicked on. If this is the same as
61+
* `n_clicks`, then the button wasn't clicked on.
62+
* If it is less than `n_clicks`, then the button
63+
* was clicked on. This is useful in callbacks that have
64+
* multiple buttons and you need to know _which_ button
65+
* was clicked on.
66+
*/
67+
'n_clicks_previous': PropTypes.integer,
68+
5069
/**
5170
* A unique identifier for the component, used to improve
5271
* performance by React.js while rendering components

src/components/Abbr.react.js

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,37 @@ import React from 'react';
33
import PropTypes from 'prop-types';
44

55
const Abbr = (props) => {
6-
if (props.fireEvent || props.setProps) {
7-
return (
8-
<abbr
9-
onClick={() => {
10-
if (props.setProps) props.setProps({n_clicks: props.n_clicks + 1});
11-
if (props.fireEvent) props.fireEvent({event: 'click'});
12-
}}
13-
{...props}
14-
>
15-
{props.children}
16-
</abbr>
17-
);
18-
} else {
19-
return (
20-
<abbr {...props}>
21-
{props.children}
22-
</abbr>
23-
);
24-
}
6+
return (
7+
<abbr
8+
onClick={() => {
9+
/* eslint-disable */
10+
console.log('click: ', props);
11+
/* eslint-enable */
12+
13+
if (props.setProps) {
14+
const newProps = {
15+
n_clicks: props.n_clicks + 1
16+
}
17+
if (newProps.n_clicks > 1) {
18+
newProps.n_clicks_previous = props.n_clicks_previous + 1;
19+
}
20+
/* eslint-disable */
21+
console.log('newProps: ', newProps);
22+
/* eslint-enable */
23+
props.setProps(newProps);
24+
}
25+
if (props.fireEvent) props.fireEvent({event: 'click'});
26+
}}
27+
{...props}
28+
>
29+
{props.children}
30+
</abbr>
31+
);
2532
};
2633

2734
Abbr.defaultProps = {
28-
n_clicks: 0
35+
n_clicks: 0,
36+
n_clicks_previous: 0
2937
};
3038

3139
Abbr.propTypes = {
@@ -47,6 +55,17 @@ Abbr.propTypes = {
4755
*/
4856
'n_clicks': PropTypes.integer,
4957

58+
/**
59+
* An integer that represents the number of times
60+
* that this element was clicked on. If this is the same as
61+
* `n_clicks`, then the button wasn't clicked on.
62+
* If it is less than `n_clicks`, then the button
63+
* was clicked on. This is useful in callbacks that have
64+
* multiple buttons and you need to know _which_ button
65+
* was clicked on.
66+
*/
67+
'n_clicks_previous': PropTypes.integer,
68+
5069
/**
5170
* A unique identifier for the component, used to improve
5271
* performance by React.js while rendering components

src/components/Acronym.react.js

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,37 @@ import React from 'react';
33
import PropTypes from 'prop-types';
44

55
const Acronym = (props) => {
6-
if (props.fireEvent || props.setProps) {
7-
return (
8-
<acronym
9-
onClick={() => {
10-
if (props.setProps) props.setProps({n_clicks: props.n_clicks + 1});
11-
if (props.fireEvent) props.fireEvent({event: 'click'});
12-
}}
13-
{...props}
14-
>
15-
{props.children}
16-
</acronym>
17-
);
18-
} else {
19-
return (
20-
<acronym {...props}>
21-
{props.children}
22-
</acronym>
23-
);
24-
}
6+
return (
7+
<acronym
8+
onClick={() => {
9+
/* eslint-disable */
10+
console.log('click: ', props);
11+
/* eslint-enable */
12+
13+
if (props.setProps) {
14+
const newProps = {
15+
n_clicks: props.n_clicks + 1
16+
}
17+
if (newProps.n_clicks > 1) {
18+
newProps.n_clicks_previous = props.n_clicks_previous + 1;
19+
}
20+
/* eslint-disable */
21+
console.log('newProps: ', newProps);
22+
/* eslint-enable */
23+
props.setProps(newProps);
24+
}
25+
if (props.fireEvent) props.fireEvent({event: 'click'});
26+
}}
27+
{...props}
28+
>
29+
{props.children}
30+
</acronym>
31+
);
2532
};
2633

2734
Acronym.defaultProps = {
28-
n_clicks: 0
35+
n_clicks: 0,
36+
n_clicks_previous: 0
2937
};
3038

3139
Acronym.propTypes = {
@@ -47,6 +55,17 @@ Acronym.propTypes = {
4755
*/
4856
'n_clicks': PropTypes.integer,
4957

58+
/**
59+
* An integer that represents the number of times
60+
* that this element was clicked on. If this is the same as
61+
* `n_clicks`, then the button wasn't clicked on.
62+
* If it is less than `n_clicks`, then the button
63+
* was clicked on. This is useful in callbacks that have
64+
* multiple buttons and you need to know _which_ button
65+
* was clicked on.
66+
*/
67+
'n_clicks_previous': PropTypes.integer,
68+
5069
/**
5170
* A unique identifier for the component, used to improve
5271
* performance by React.js while rendering components

src/components/Address.react.js

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,37 @@ import React from 'react';
33
import PropTypes from 'prop-types';
44

55
const Address = (props) => {
6-
if (props.fireEvent || props.setProps) {
7-
return (
8-
<address
9-
onClick={() => {
10-
if (props.setProps) props.setProps({n_clicks: props.n_clicks + 1});
11-
if (props.fireEvent) props.fireEvent({event: 'click'});
12-
}}
13-
{...props}
14-
>
15-
{props.children}
16-
</address>
17-
);
18-
} else {
19-
return (
20-
<address {...props}>
21-
{props.children}
22-
</address>
23-
);
24-
}
6+
return (
7+
<address
8+
onClick={() => {
9+
/* eslint-disable */
10+
console.log('click: ', props);
11+
/* eslint-enable */
12+
13+
if (props.setProps) {
14+
const newProps = {
15+
n_clicks: props.n_clicks + 1
16+
}
17+
if (newProps.n_clicks > 1) {
18+
newProps.n_clicks_previous = props.n_clicks_previous + 1;
19+
}
20+
/* eslint-disable */
21+
console.log('newProps: ', newProps);
22+
/* eslint-enable */
23+
props.setProps(newProps);
24+
}
25+
if (props.fireEvent) props.fireEvent({event: 'click'});
26+
}}
27+
{...props}
28+
>
29+
{props.children}
30+
</address>
31+
);
2532
};
2633

2734
Address.defaultProps = {
28-
n_clicks: 0
35+
n_clicks: 0,
36+
n_clicks_previous: 0
2937
};
3038

3139
Address.propTypes = {
@@ -47,6 +55,17 @@ Address.propTypes = {
4755
*/
4856
'n_clicks': PropTypes.integer,
4957

58+
/**
59+
* An integer that represents the number of times
60+
* that this element was clicked on. If this is the same as
61+
* `n_clicks`, then the button wasn't clicked on.
62+
* If it is less than `n_clicks`, then the button
63+
* was clicked on. This is useful in callbacks that have
64+
* multiple buttons and you need to know _which_ button
65+
* was clicked on.
66+
*/
67+
'n_clicks_previous': PropTypes.integer,
68+
5069
/**
5170
* A unique identifier for the component, used to improve
5271
* performance by React.js while rendering components

src/components/Area.react.js

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,37 @@ import React from 'react';
33
import PropTypes from 'prop-types';
44

55
const Area = (props) => {
6-
if (props.fireEvent || props.setProps) {
7-
return (
8-
<area
9-
onClick={() => {
10-
if (props.setProps) props.setProps({n_clicks: props.n_clicks + 1});
11-
if (props.fireEvent) props.fireEvent({event: 'click'});
12-
}}
13-
{...props}
14-
>
15-
{props.children}
16-
</area>
17-
);
18-
} else {
19-
return (
20-
<area {...props}>
21-
{props.children}
22-
</area>
23-
);
24-
}
6+
return (
7+
<area
8+
onClick={() => {
9+
/* eslint-disable */
10+
console.log('click: ', props);
11+
/* eslint-enable */
12+
13+
if (props.setProps) {
14+
const newProps = {
15+
n_clicks: props.n_clicks + 1
16+
}
17+
if (newProps.n_clicks > 1) {
18+
newProps.n_clicks_previous = props.n_clicks_previous + 1;
19+
}
20+
/* eslint-disable */
21+
console.log('newProps: ', newProps);
22+
/* eslint-enable */
23+
props.setProps(newProps);
24+
}
25+
if (props.fireEvent) props.fireEvent({event: 'click'});
26+
}}
27+
{...props}
28+
>
29+
{props.children}
30+
</area>
31+
);
2532
};
2633

2734
Area.defaultProps = {
28-
n_clicks: 0
35+
n_clicks: 0,
36+
n_clicks_previous: 0
2937
};
3038

3139
Area.propTypes = {
@@ -47,6 +55,17 @@ Area.propTypes = {
4755
*/
4856
'n_clicks': PropTypes.integer,
4957

58+
/**
59+
* An integer that represents the number of times
60+
* that this element was clicked on. If this is the same as
61+
* `n_clicks`, then the button wasn't clicked on.
62+
* If it is less than `n_clicks`, then the button
63+
* was clicked on. This is useful in callbacks that have
64+
* multiple buttons and you need to know _which_ button
65+
* was clicked on.
66+
*/
67+
'n_clicks_previous': PropTypes.integer,
68+
5069
/**
5170
* A unique identifier for the component, used to improve
5271
* performance by React.js while rendering components

0 commit comments

Comments
 (0)