Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Added data-* attribute to all components
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarren1 committed Mar 30, 2018
1 parent c507b4f commit dca6276
Show file tree
Hide file tree
Showing 133 changed files with 4,869 additions and 4,785 deletions.
8,998 changes: 4,213 additions & 4,785 deletions lib/metadata.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions scripts/data/elements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ map
track
video
embed
iframe
object
param
picture
Expand Down
5 changes: 5 additions & 0 deletions scripts/generate-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ function generatePropTypes(element, attributes) {
*/
'children': PropTypes.node,
/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,
/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/A.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ A.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Abbr.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Abbr.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Acronym.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Acronym.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Address.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Address.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Area.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Area.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Article.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Article.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Aside.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Aside.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Audio.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Audio.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/B.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ B.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Base.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Base.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Basefont.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Basefont.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Bdi.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Bdi.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Bdo.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Bdo.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Big.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Big.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Blink.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Blink.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Blockquote.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Blockquote.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Br.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Br.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Button.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Button.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Canvas.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Canvas.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Caption.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Caption.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Center.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Center.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Cite.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Cite.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Code.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Code.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Col.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Col.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Colgroup.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Colgroup.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Command.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Command.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Content.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Content.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Data.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Data.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Datalist.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Datalist.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Dd.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Dd.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
5 changes: 5 additions & 0 deletions src/components/Del.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Del.propTypes = {
*/
'children': PropTypes.node,

/**
* A wild-card data-* attribute
*/
'data-*': PropTypes.string,

/**
* An integer that represents the number of times
* that this element has been clicked on.
Expand Down
Loading

0 comments on commit dca6276

Please sign in to comment.