forked from brahmosjs/brahmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Support dangerouslySetInnerHTML prop - Bug fixes around attributes. Remove attribute when false value is provided. - Refactor attributes and config code.
- Loading branch information
Showing
5 changed files
with
122 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
// reserved props which cannot be forward to component props | ||
export const RESERVED_ATTRIBUTES = { | ||
key: 1, | ||
ref: 1, | ||
}; | ||
|
||
export const MODIFIED_ATTRIBUTES = { | ||
className: 'class', | ||
htmlFor: 'for', | ||
acceptCharset: 'accept-charset', | ||
httpEquiv: 'http-equiv', | ||
}; | ||
|
||
export const RENAMED_EVENTS = { | ||
doubleclick: 'dblclick', | ||
}; | ||
|
||
/** | ||
* Regex taken from Preact. (https://github.com/preactjs/preact/blob/master/src/constants.js) | ||
*/ | ||
export const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i; | ||
|
||
/** | ||
* xlink namespace for svgs | ||
*/ | ||
export const XLINK_NS = 'http://www.w3.org/1999/xlink'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters