UNPKG

@engie-group/fluid-design-system

Version:

The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.

44 lines (43 loc) 2.33 kB
import { Accordion, AutocompleteInput, BeforeHideEventSource, Collapse, displayTooltipOnHoverAndFocus, Fab, Header, IMenuOptions, initAllTooltips, InlineMessage, InputNumber, ITooltipOptions, Modal, Navbar, njTooltip, openMenu, Password, Search, SegmentedControl, Select, SelectInput, SidebarDeprecated, Slider, Tab, Tag, Tooltip } from './components'; import 'fluid-styles/css'; /** * Main class of Fluid Design System library */ export default class NJ { private static readonly AUTOINIT_COMPONENTS; static readonly Accordion: typeof Accordion; static readonly Collapse: typeof Collapse; static readonly Fab: typeof Fab; static readonly Header: typeof Header; static readonly InlineMessage: typeof InlineMessage; static readonly InputNumber: typeof InputNumber; static readonly Search: typeof Search; static readonly Modal: typeof Modal; static readonly Navbar: typeof Navbar; static readonly Select: typeof Select; static readonly SidebarDeprecated: typeof SidebarDeprecated; static readonly Slider: typeof Slider; static readonly Tab: typeof Tab; static readonly Tag: typeof Tag; static readonly njTooltip: (anchorElement: HTMLElement, content?: string | HTMLElement, options?: ITooltipOptions) => Tooltip; static readonly initAllTooltips: (element?: HTMLElement, querySelector?: string) => { tooltips: Tooltip[]; unmount: () => void; }; static readonly displayTooltipOnHoverAndFocus: (tooltip: Tooltip, triggerElement?: HTMLElement) => () => void; static readonly Tooltip: typeof Tooltip; static readonly Password: typeof Password; static readonly SelectInput: typeof SelectInput; static readonly AutocompleteInput: typeof AutocompleteInput; static readonly openMenu: typeof openMenu; /** * Initialize the components listed in the AUTOINIT_COMPONENTS variable */ static AutoInit(): void; } export { Accordion, AutocompleteInput, BeforeHideEventSource, Collapse, displayTooltipOnHoverAndFocus, Fab, Header, IMenuOptions, initAllTooltips, InlineMessage, InputNumber, ITooltipOptions, Modal, Navbar, njTooltip, openMenu, Password, Search, SegmentedControl, Select, SelectInput, SidebarDeprecated, Slider, Tab, Tag, Tooltip }; declare global { interface Window { NJ: any; } }