-
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.
- Loading branch information
Showing
3 changed files
with
46 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,5 @@ | ||
export type {ESLPanelShape} from './core/esl-panel.shape'; | ||
export type {ESLPanelGroupShape} from './core/esl-panel-group.shape'; | ||
|
||
export * from './core/esl-panel'; | ||
export * from './core/esl-panel-group'; |
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,26 @@ | ||
/** | ||
* Tag declaration interface of {@link ESLPanelGroup} element | ||
* Used for JSX declaration | ||
*/ | ||
export interface ESLPanelGroupShape { | ||
/** | ||
* Define rendering mode of the component (takes values from the list of supported modes; 'accordion' by default) | ||
* Supported values: `accordion|tabs|open` | ||
*/ | ||
'mode'?: string; | ||
|
||
/** Define element {@link TraversingQuery} selector to add class that identifies the rendering mode (ESLPanelGroup itself by default) */ | ||
'mode-cls-target'?: string; | ||
|
||
/** Define class(es) to be added during animation ('animate' by default) */ | ||
'animation-class'?: string; | ||
|
||
/** Define time to clear animation common params (max-height style + classes) ('auto' by default) */ | ||
'fallback-duration'?: string | number; | ||
|
||
/** Define a list of comma-separated "modes" to disable collapse/expand animation (for both Group and Panel animations)*/ | ||
'no-collapse'?: string; | ||
|
||
/** Allowed children */ | ||
children: any[]; | ||
} |
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,17 @@ | ||
import type {ESLToggleableShape} from '../../esl-toggleable/core/esl-toggleable.shape'; | ||
|
||
/** | ||
* Tag declaration interface of {@link ESLPanel} element | ||
* Used for JSX declaration | ||
*/ | ||
export interface ESLPanelShape extends ESLToggleableShape { | ||
/** Define class(es) to be added for active state ('open' by default) */ | ||
'active-class'?: string; | ||
/** Define class(es) to be added during animation ('animate' by default) */ | ||
'animate-class'?: string; | ||
/** Define class(es) to be added during animation after next render ('post-animate' by default) */ | ||
'post-animate-class'?: string; | ||
|
||
/** Define time to clear animation common params (max-height style + classes) ('auto' by default) */ | ||
'fallback-duration'?: string | number; | ||
} |