/** * Shape of the `width` attribute of {@link KUBATextareaElement}. Normalized * by the `resizing` filter (inherited from the `Width` mixin): numeric * `px`/`%` values pass through, `'hug'` becomes `'auto'`, `'fill'` becomes * `'100%'`, and anything else defaults to `'auto'`. */ type KUBATextareaWidthAttribute = | `${number}px` | `${number}%` | 'hug' | 'fill' | 'auto' /** * How `sink` is applied on {@link KUBATextareaElement}, within its `on` * attribute. */ type KUBATextareaOnAttributeSink = 'method' | 'attribute' | 'setter' /** * Shape of the `on` attribute of {@link KUBATextareaElement} — an arc string * in the form `source/event:type/sink`, optionally followed by one or more * `|filter=value` pairs. Inherited from the `Echo` mixin. * * This only constrains the shape (the four `/`/`:`-separated segments and * the `type` segment); `source`, `event`, `sink`, and filter contents remain * free-form strings, since TypeScript cannot validate the full grammar (e.g. * arbitrary characters, filter repetition) through a template literal type. * The check only applies to string literals — a value assigned from a plain * `string` variable falls back to unchecked `string`. */ type KUBATextareaOnAttribute = `${string}/${string}:${KUBATextareaOnAttributeSink}/${string}${'' | `|${string}`}` /** * Form-associated multi-line text input custom element (``). * * Wraps a native `