@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.
29 lines (26 loc) • 791 B
TypeScript
export type TToastButton = {
type: "confirm" | "cancel"
color?: string,
themeColor?: "info" | "success" | "warning" | "danger" | "primary" | "secondary" | "light" | "dark";
icon?: string;
action?: string;
text?: string;
}
export type Component = {
id?: string;
style?: string;
show: "yes" | "no";
title: string;
img: string;
small?: string;
content: string;
timeout?: string | number;
progress?: string;
level?: "info" | "success" | "warning" | "danger" | "primary" | "secondary" | "light" | "dark";
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
buttons?: TToastButton[];
};
export type Events = {
changeVisibility: { id: string; show: boolean; disappear?: boolean };
action: { id: string; action?: string };
};