UNPKG

@lucidclient/elements

Version:

A lightweight, reactive UI library that bridges HTML and JavaScript through attributes, powered by SolidJS. Adds reactive state and dynamic behaviors to markup while maintaining simplicity.

44 lines (39 loc) 1.32 kB
import { H as Handler } from './handlers-BYlZMRtR.js'; import { a as StoreState, b as StoreActions, d as StoreModule } from './store-fbNplHct.js'; export { createEffect, createMemo, createSignal } from 'solid-js'; import './directives-DK-Zzqy-.js'; import 'solid-js/store'; /** * Register store module for custom state and actions */ declare const storeModule: <S extends StoreState, A extends StoreActions>(key: string, storeModule: StoreModule<S, A>) => void; /** * Registerss handlers for Elements */ declare const registerHandler: (handler: Handler) => void; declare const _default: { start: (options?: { debug?: boolean; handlers?: Array<Handler>; attributes?: { prefix?: string; selectors?: { store?: string; state?: string; bind?: string; handler?: string; ref?: string; effect?: string; loop?: string; }; seperators?: { scope?: string; handler?: string; }; }; }) => void; destroy: () => void; refresh: (targetStore?: string) => void; sync: (target: Element, childrenOnly?: true) => void; }; export { _default as default, registerHandler, storeModule };