/* * _____ _ *|_ _|_ _____ _ __ | |_ _ _ * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file * | | \ V V / __/ | | | |_| |_| | Any edits to this will be overridden * |_| \_/\_/ \___|_| |_|\__|\__, | * |___/ */ import { createRemoteElement, RemoteRootElement, RemoteFragmentElement, type RemoteEvent, } from '@remote-dom/core/elements'; export type HtmlCommonProperties = { id?: string; className?: string; style?: string; title?: string; tabIndex?: number; role?: string; 'aria-label'?: string; 'aria-hidden'?: boolean; 'data-testid'?: string; }; export type HtmlCommonEvents = { click(event: RemoteEvent): void; dblclick(event: RemoteEvent): void; mousedown(event: RemoteEvent): void; mouseup(event: RemoteEvent): void; mouseover(event: RemoteEvent): void; mouseout(event: RemoteEvent): void; mouseenter(event: RemoteEvent): void; mouseleave(event: RemoteEvent): void; keydown(event: RemoteEvent): void; keyup(event: RemoteEvent): void; keypress(event: RemoteEvent): void; focus(event: RemoteEvent): void; blur(event: RemoteEvent): void; change(event: RemoteEvent): void; input(event: RemoteEvent): void; submit(event: RemoteEvent): void; scroll(event: RemoteEvent): void; wheel(event: RemoteEvent): void; contextmenu(event: RemoteEvent): void; drag(event: RemoteEvent): void; }; const HTML_COMMON_EVENTS_ARRAY = [ 'click', 'dblclick', 'mousedown', 'mouseup', 'mouseover', 'mouseout', 'mouseenter', 'mouseleave', 'keydown', 'keyup', 'keypress', 'focus', 'blur', 'change', 'input', 'submit', 'scroll', 'wheel', 'contextmenu', 'drag', ] as const; const HTML_COMMON_PROPERTIES_CONFIG = { id: { type: String }, className: { type: String }, style: { type: String }, title: { type: String }, tabIndex: { type: Number }, role: { type: String }, 'aria-label': { type: String }, 'aria-hidden': { type: Boolean }, 'data-testid': { type: String }, }; export const HtmlDivElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlSpanElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlSectionElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlArticleElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlHeaderElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlFooterElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlMainElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlNavElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlAsideElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlPElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlH1Element = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlH2Element = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlH3Element = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlH4Element = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlH5Element = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlH6Element = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlStrongElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlEmElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlSmallElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlCodeElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlPreElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlBlockquoteElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlAProperties = HtmlCommonProperties & { href?: string; target?: string; rel?: string; }; export const HtmlAElement = createRemoteElement< HtmlAProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, href: { type: String }, target: { type: String }, rel: { type: String }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlImgProperties = HtmlCommonProperties & { src?: string; alt?: string; width?: number; height?: number; }; export const HtmlImgElement = createRemoteElement< HtmlImgProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, src: { type: String }, alt: { type: String }, width: { type: Number }, height: { type: Number }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlUlElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlOlElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlLiElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlFormProperties = HtmlCommonProperties & { action?: string; method?: string; }; export const HtmlFormElement = createRemoteElement< HtmlFormProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, action: { type: String }, method: { type: String }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlLabelProperties = HtmlCommonProperties & { htmlFor?: string; }; export const HtmlLabelElement = createRemoteElement< HtmlLabelProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, htmlFor: { type: String }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlInputProperties = HtmlCommonProperties & { type?: string; name?: string; value?: string; placeholder?: string; disabled?: boolean; checked?: boolean; readOnly?: boolean; }; export const HtmlInputElement = createRemoteElement< HtmlInputProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, type: { type: String }, name: { type: String }, value: { type: String }, placeholder: { type: String }, disabled: { type: Boolean }, checked: { type: Boolean }, readOnly: { type: Boolean }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlTextareaProperties = HtmlCommonProperties & { name?: string; value?: string; placeholder?: string; disabled?: boolean; readOnly?: boolean; rows?: number; cols?: number; }; export const HtmlTextareaElement = createRemoteElement< HtmlTextareaProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, name: { type: String }, value: { type: String }, placeholder: { type: String }, disabled: { type: Boolean }, readOnly: { type: Boolean }, rows: { type: Number }, cols: { type: Number }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlSelectProperties = HtmlCommonProperties & { name?: string; value?: string; disabled?: boolean; multiple?: boolean; }; export const HtmlSelectElement = createRemoteElement< HtmlSelectProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, name: { type: String }, value: { type: String }, disabled: { type: Boolean }, multiple: { type: Boolean }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlOptionProperties = HtmlCommonProperties & { value?: string; disabled?: boolean; selected?: boolean; }; export const HtmlOptionElement = createRemoteElement< HtmlOptionProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, value: { type: String }, disabled: { type: Boolean }, selected: { type: Boolean }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlButtonProperties = HtmlCommonProperties & { type?: string; disabled?: boolean; }; export const HtmlButtonElement = createRemoteElement< HtmlButtonProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, type: { type: String }, disabled: { type: Boolean }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlTableElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlTheadElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlTbodyElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlTfootElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlTrElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlThProperties = HtmlCommonProperties & { colSpan?: number; rowSpan?: number; }; export const HtmlThElement = createRemoteElement< HtmlThProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, colSpan: { type: Number }, rowSpan: { type: Number }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type HtmlTdProperties = HtmlCommonProperties & { colSpan?: number; rowSpan?: number; }; export const HtmlTdElement = createRemoteElement< HtmlTdProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, colSpan: { type: Number }, rowSpan: { type: Number }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlBrElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export const HtmlHrElement = createRemoteElement< HtmlCommonProperties, Record, Record, HtmlCommonEvents >({ properties: HTML_COMMON_PROPERTIES_CONFIG, events: [...HTML_COMMON_EVENTS_ARRAY], }); export type TwentyUiButtonProperties = HtmlCommonProperties & { variant?: string; accent?: string; size?: string; disabled?: boolean; fullWidth?: boolean; }; export const TwentyUiButtonElement = createRemoteElement< TwentyUiButtonProperties, Record, Record, HtmlCommonEvents >({ properties: { ...HTML_COMMON_PROPERTIES_CONFIG, variant: { type: String }, accent: { type: String }, size: { type: String }, disabled: { type: Boolean }, fullWidth: { type: Boolean }, }, events: [...HTML_COMMON_EVENTS_ARRAY], }); customElements.define('html-div', HtmlDivElement); customElements.define('html-span', HtmlSpanElement); customElements.define('html-section', HtmlSectionElement); customElements.define('html-article', HtmlArticleElement); customElements.define('html-header', HtmlHeaderElement); customElements.define('html-footer', HtmlFooterElement); customElements.define('html-main', HtmlMainElement); customElements.define('html-nav', HtmlNavElement); customElements.define('html-aside', HtmlAsideElement); customElements.define('html-p', HtmlPElement); customElements.define('html-h1', HtmlH1Element); customElements.define('html-h2', HtmlH2Element); customElements.define('html-h3', HtmlH3Element); customElements.define('html-h4', HtmlH4Element); customElements.define('html-h5', HtmlH5Element); customElements.define('html-h6', HtmlH6Element); customElements.define('html-strong', HtmlStrongElement); customElements.define('html-em', HtmlEmElement); customElements.define('html-small', HtmlSmallElement); customElements.define('html-code', HtmlCodeElement); customElements.define('html-pre', HtmlPreElement); customElements.define('html-blockquote', HtmlBlockquoteElement); customElements.define('html-a', HtmlAElement); customElements.define('html-img', HtmlImgElement); customElements.define('html-ul', HtmlUlElement); customElements.define('html-ol', HtmlOlElement); customElements.define('html-li', HtmlLiElement); customElements.define('html-form', HtmlFormElement); customElements.define('html-label', HtmlLabelElement); customElements.define('html-input', HtmlInputElement); customElements.define('html-textarea', HtmlTextareaElement); customElements.define('html-select', HtmlSelectElement); customElements.define('html-option', HtmlOptionElement); customElements.define('html-button', HtmlButtonElement); customElements.define('html-table', HtmlTableElement); customElements.define('html-thead', HtmlTheadElement); customElements.define('html-tbody', HtmlTbodyElement); customElements.define('html-tfoot', HtmlTfootElement); customElements.define('html-tr', HtmlTrElement); customElements.define('html-th', HtmlThElement); customElements.define('html-td', HtmlTdElement); customElements.define('html-br', HtmlBrElement); customElements.define('html-hr', HtmlHrElement); customElements.define('twenty-ui-button', TwentyUiButtonElement); customElements.define('remote-root', RemoteRootElement); customElements.define('remote-fragment', RemoteFragmentElement); export { RemoteRootElement, RemoteFragmentElement }; declare global { interface HTMLElementTagNameMap { 'html-div': InstanceType; 'html-span': InstanceType; 'html-section': InstanceType; 'html-article': InstanceType; 'html-header': InstanceType; 'html-footer': InstanceType; 'html-main': InstanceType; 'html-nav': InstanceType; 'html-aside': InstanceType; 'html-p': InstanceType; 'html-h1': InstanceType; 'html-h2': InstanceType; 'html-h3': InstanceType; 'html-h4': InstanceType; 'html-h5': InstanceType; 'html-h6': InstanceType; 'html-strong': InstanceType; 'html-em': InstanceType; 'html-small': InstanceType; 'html-code': InstanceType; 'html-pre': InstanceType; 'html-blockquote': InstanceType; 'html-a': InstanceType; 'html-img': InstanceType; 'html-ul': InstanceType; 'html-ol': InstanceType; 'html-li': InstanceType; 'html-form': InstanceType; 'html-label': InstanceType; 'html-input': InstanceType; 'html-textarea': InstanceType; 'html-select': InstanceType; 'html-option': InstanceType; 'html-button': InstanceType; 'html-table': InstanceType; 'html-thead': InstanceType; 'html-tbody': InstanceType; 'html-tfoot': InstanceType; 'html-tr': InstanceType; 'html-th': InstanceType; 'html-td': InstanceType; 'html-br': InstanceType; 'html-hr': InstanceType; 'twenty-ui-button': InstanceType; 'remote-root': InstanceType; 'remote-fragment': InstanceType; } }