UNPKG

finpro

Version:
61 lines 2.13 kB
import { CSSResultGroup, LitElement, TemplateResult } from 'lit'; import './fp-tab-panel/fp-tab-panel'; import './fp-tab/fp-tab'; import FpTabPanel from './fp-tab-panel/fp-tab-panel'; import FpTab from './fp-tab/fp-tab'; export declare type TabGroupOverflow = 'auto' | 'clip' | 'hidden' | 'inherit' | 'initial' | 'overlay' | 'revert' | 'scroll' | 'unset' | 'visible'; export declare type TabGroupBorderRadius = 'n' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl'; /** * @tag fp-tab-group * @summary Finpro Tab group component */ export default class FpTabGroup extends LitElement { static get styles(): CSSResultGroup; /** * Sets the tab group overflow-x */ overflowX: TabGroupOverflow; /** * Sets the tab group overflow-y */ overflowY: TabGroupOverflow; /** * Sets the tab group border radius */ borderRadius: TabGroupBorderRadius; private _connectedTabs; private _connectedPanels; get tabs(): FpTab[]; get panels(): FpTabPanel[]; /** * This method is used by `tab` component to register them self to the tab group. * @param tab FpTab reference to be registered */ registerTab(tab: FpTab): void; /** * This method is used by `tab` component to unregister them self to the tab group. * @param tab FpTab reference to be unregistered */ unregisterTab(tab: FpTab): void; /** * This method is used by `tab-panel` component to register them self to the tab group. * @param panel FpTabPanel reference to be registered */ registerTabPanel(panel: FpTabPanel): void; /** * This method is used by `tab-panel` component to unregister them self to the tab group. * @param panel FpTabPanel reference to be unregistered */ unregisterTabPanel(panel: FpTabPanel): void; private _selectedTabName; get selectedTabName(): string; set selectedTabName(name: string); private _handleTabSelected; render(): TemplateResult; } declare global { interface HTMLElementTagNameMap { 'fp-tab-group': FpTabGroup; } } //# sourceMappingURL=fp-tab-group.d.ts.map