-
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.
feat(esl-toggleable): add jsx tag shape
- Loading branch information
Showing
3 changed files
with
44 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export type {ESLToggleableShape} from './core/esl-toggleable.shape'; | ||
export type {ESLToggleableDispatcherShape} from './core/esl-toggleable-dispatcher.shape'; | ||
export * from './core/esl-toggleable'; | ||
export * from './core/esl-toggleable-dispatcher'; |
8 changes: 8 additions & 0 deletions
8
src/modules/esl-toggleable/core/esl-toggleable-dispatcher.shape.ts
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,8 @@ | ||
/** | ||
* Tag declaration interface of {@link ESLToggleableDispatcher} element | ||
* Used for JSX declaration | ||
*/ | ||
export interface ESLToggleableDispatcherShape { | ||
/** Allowed children */ | ||
children: []; | ||
} |
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,34 @@ | ||
/** | ||
* Tag declaration interface of {@link ESLToggleable} element | ||
* Used for JSX declaration | ||
*/ | ||
export interface ESLToggleableShape { | ||
/** Define CSS class to add on the body element */ | ||
'body-class'?: string; | ||
/** Define CSS class to add when the Toggleable is active */ | ||
'active-class'?: string; | ||
|
||
/** Define Toggleable group meta information to organize groups */ | ||
'group-name'?: string; | ||
|
||
/** Define selector to mark inner close triggers */ | ||
'close-trigger'?: string; | ||
|
||
/** Enable close the Toggleable on ESC keyboard event */ | ||
'close-on-esc'?: boolean; | ||
/** Enable close the Toggleable on a click/tap outside */ | ||
'close-on-outside-action'?: boolean; | ||
|
||
/** Define selector of inner target element to place aria attributes */ | ||
'a11y-target'?: string; | ||
|
||
/** Define JSON of initial params to pass to show/hide action on the start */ | ||
'initial-params'?: string | number; | ||
/** Define JSON of default params to merge into passed action params */ | ||
'default-params'?: string | number; | ||
/** Define JSON of hover params to pass from track hover listener */ | ||
'track-hover-params'?: string | number; | ||
|
||
/** Allowed children */ | ||
children: any[]; | ||
} |