UNPKG

@htmlbricks/hb-bundle

Version:

Single IIFE loader for all HTML Bricks hb-* web components from the jsDelivr CDN, with optional Subresource Integrity; includes agent/LLM docs and theme CSS variables.

55 lines (51 loc) 1.65 kB
import type { IContacts, ISocials, ICompany, IColumn, IPolicies, } from "../footer/webcomponent.type"; import type { IUserMenu } from "../navbar/webcomponent.type"; import type { INavLink } from "../sidenav-link/webcomponent.type"; import type { Events as SidebarDesktopEvents } from "../sidebar-desktop/webcomponent.type"; export type I18nLanguageOption = { code: string; label: string }; export type Component = { id?: string; style?: string; socials?: ISocials; contacts?: IContacts; company?: ICompany; navlinks?: INavLink[]; pagename?: string; page_title?: string; usermenu?: IUserMenu; cookielaw?: "yes" | "true" | "no" | "false" | null | "" | undefined; columns?: IColumn[]; single_screen?: boolean; cookielawuri4more?: string; cookielawallowdecline?: "yes" | "true" | "no" | "false" | null | "" | undefined; cookielawlanguage?: string; sidebar?: { title?: string; logo?: string; type?: string; enablefooter?: "yes" | "no" | "false" | null | "" | undefined; enablethemeswitch?: "yes" | "no" | "false" | null | "" | undefined; }; footer?: { type?: "auto" | "small" | "regular" | "large"; disable_expanding_small?: boolean; }; policies?: IPolicies[]; i18nlang?: string; i18nlanguages?: I18nLanguageOption[] | string; }; export type Events = { offcanvasswitch: { isOpen: boolean }; pageChange: { page: string }; navbarDropDownClick: { key: string }; footerClick: { elClick: string }; navbarSlotClick: { side: "left" | "right" | "center" }; languageChange: SidebarDesktopEvents["languageChange"]; themeChange: SidebarDesktopEvents["themeChange"]; };