-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(esl-footnotes): shape to support TSX is missing in module
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 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,29 @@ | ||
import type {ESLBaseElementShape} from '../../esl-base-element/core/esl-base-element.shape'; | ||
import type {ESLFootnotes} from './esl-footnotes'; | ||
|
||
/** | ||
* Tag declaration interface of ESL Footnotes element | ||
* Used for TSX declaration | ||
*/ | ||
export interface ESLFootnotesTagShape extends ESLBaseElementShape<ESLFootnotes> { | ||
/** Label for 'return to note' button title */ | ||
'back-to-note-label'?: string; | ||
|
||
/** Grouping note instances with identical content enable/disable */ | ||
'grouping'?: string; | ||
|
||
/** Target element {@link ESLTraversingQuery} to define scope */ | ||
'scope-target'?: string; | ||
|
||
/** Children are not allowed for ESLShare */ | ||
children?: never[]; | ||
} | ||
|
||
declare global { | ||
namespace JSX { | ||
export interface IntrinsicElements { | ||
/** {@link ESLFootnotes} custom tag */ | ||
'esl-footnotes': ESLFootnotesTagShape; | ||
} | ||
} | ||
} |
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,40 @@ | ||
import type {ESLBaseElementShape} from '../../esl-base-element/core/esl-base-element.shape'; | ||
import type {ESLNote} from './esl-note'; | ||
|
||
/** | ||
* Tag declaration interface of ESL Note element | ||
* Used for TSX declaration | ||
*/ | ||
export interface ESLNoteTagShape extends ESLBaseElementShape<ESLNote> { | ||
/** Target to container element {@link ESLTraversingQuery} to define bounds of tooltip visibility (window by default) */ | ||
'container'?: string; | ||
|
||
/** Media query to specify that footnotes must ignore this note. Default: `not all` */ | ||
'ignore'?: string; | ||
|
||
/** Tooltip content */ | ||
'html'?: string; | ||
|
||
/** | ||
* Note label in stand-alone mode (detached from footnotes), | ||
* in the connected state it is a numeric index that is calculated automatically | ||
*/ | ||
'standalone-label'?: string; | ||
|
||
/** Define click event tracking media query */ | ||
'track-click'?: boolean | string; | ||
/** Define hover event tracking media query */ | ||
'track-hover'?: boolean | string; | ||
|
||
/** Allowed children */ | ||
children?: any; | ||
} | ||
|
||
declare global { | ||
namespace JSX { | ||
export interface IntrinsicElements { | ||
/** {@link ESLNote} custom tag */ | ||
'esl-note': ESLNoteTagShape; | ||
} | ||
} | ||
} |