/** React components over the elements. */ import * as React from "react"; import type { DefineOptions, ElementEvents, ElementProps, ElementSlotProp } from "../elements/index.js"; import { type ComponentSpec, type DeclarationSpec, type DefaultProps, type FormProps, type Pascal, type RetiredEvents } from "../elements/adapter.js"; export { configure } from "../elements/adapter.js"; export type { DefaultProps, FormProps } from "../elements/adapter.js"; /** `change` → `onChange`, typed with the element's event. */ export type EventProps = { [K in keyof ElementEvents & string as `on${Pascal}`]?: (event: ElementEvents[K]) => void; }; type BaseProps = ElementProps & DefaultProps & EventProps; /** Each named slot as a prop taking nodes (`actions={