forked from elastic/eui
-
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.
Show extended interfaces in docs page (elastic#3941)
* Add all exported types * Add some common interfaces * Add extends to interfaces * Remove comment * Fixed issue when extendedInterfaces is empty * Use sass variables and remove font weight * Include HTMLElement in Props tab if not superseded by another element * Fixed missing key issue * Fix display of extends (including mobile) Co-authored-by: Chandler Prall <[email protected]> Co-authored-by: cchaos <[email protected]>
- Loading branch information
Showing
3 changed files
with
69 additions
and
12 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
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
27 changes: 27 additions & 0 deletions
27
src-docs/src/components/guide_section/guide_section_extends.js
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 @@ | ||
export const extendedTypesInfo = { | ||
// HTMLAttributes is removed from display if any of the following elements also exist | ||
HTMLAttributes: { | ||
name: 'HTMLElement', | ||
url: 'https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement', | ||
}, | ||
SelectHTMLAttributes: { | ||
name: 'HTMLSelectElement', | ||
url: 'https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement', | ||
}, | ||
TextareaHTMLAttributes: { | ||
name: 'HTMLTextAreaElement', | ||
url: 'https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement', | ||
}, | ||
InputHTMLAttributes: { | ||
name: 'HTMLInputElement', | ||
url: 'https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement', | ||
}, | ||
AnchorHTMLAttributes: { | ||
name: 'HTMLAnchorElement', | ||
url: 'https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement', | ||
}, | ||
ButtonHTMLAttributes: { | ||
name: 'HTMLButtonElement', | ||
url: 'https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement', | ||
}, | ||
}; |