{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "text-area",
  "type": "registry:ui",
  "title": "<ui-text-area>",
  "description": "Carbon-style text area (`TextArea`): a multi-line field with the same label / helper / warning / error wiring as ui-text-input, an optional character counter (`max-count`) and vertical resize. Copied from @purpurabog/ui 2.3.0; the package is the maintained source, this copy is yours to change. Icons from the Carbon Design System (Apache-2.0, © IBM Corp.; see THIRD-PARTY-NOTICES.md in the package).",
  "dependencies": [
    "lit@^3.3.0"
  ],
  "registryDependencies": [
    "@kanok-ui/core-auto-grow",
    "@kanok-ui/core-field",
    "@kanok-ui/shared-element",
    "@kanok-ui/shared-field",
    "@kanok-ui/shared-form-control",
    "@kanok-ui/shared-localize",
    "@kanok-ui/shared-skeleton",
    "@kanok-ui/shared-slots",
    "@kanok-ui/tokens"
  ],
  "files": [
    {
      "path": "src/primitives/text-area/text-area-skeleton.ts",
      "type": "registry:ui",
      "target": "components/ui/primitives/text-area/text-area-skeleton.ts",
      "content": "import { css, html } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { UiFieldSkeleton } from '../shared/skeleton.ts';\n\n/**\n * Carbon `TextAreaSkeleton` (`cds-textarea-skeleton`): the shape of a `<ui-text-area>` while its data loads — a 75×14\n * label bar, 8px, then a 100px field bar. `fluid` (Carbon `FluidTextAreaSkeleton`): a box padded 16px in\n * skeleton-background with a 1px line below — a 75×8 label bar, 12px, then an 80% × 64px bar. Hidden from assistive tech.\n *\n * @csspart label - The label bar\n * @csspart field - The field bar\n */\n@customElement('ui-text-area-skeleton')\nexport class UiTextAreaSkeleton extends UiFieldSkeleton {\n    static override readonly styles = [\n        ...UiFieldSkeleton.styles,\n        css`\n            .field {\n                block-size: 100px;\n            }\n\n            .fluid-area {\n                box-sizing: border-box;\n                padding: var(--ui-space-md);\n                border-block-end: 1px solid var(--ui-skeleton-element);\n                background-color: var(--ui-skeleton-background);\n            }\n\n            .fluid-area .label {\n                block-size: 8px;\n                margin-block-end: var(--ui-space-sm);\n            }\n\n            .fluid-area .field {\n                inline-size: 80%;\n                block-size: 64px;\n                border-radius: var(--ui-skeleton-radius); /* a bar in the box, not the field's corners */\n            }\n        `,\n    ];\n\n    override render() {\n        if (!this.isFluid) return super.render();\n        return html`<div class=\"fluid-area\" part=\"box\"><span class=\"bone label\" part=\"label\"></span><div class=\"bone field\" part=\"field\"></div></div>`;\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'ui-text-area-skeleton': UiTextAreaSkeleton;\n    }\n}\n"
    },
    {
      "path": "src/primitives/text-area/text-area.ts",
      "type": "registry:ui",
      "target": "components/ui/primitives/text-area/text-area.ts",
      "content": "import { LitElement, html, css, nothing, type PropertyValues } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { fieldTextStyles, messageId, pickMessage, renderMessage, renderStatusIcon, uid, renderLabelText, barWhenDisabled, customErrorMessage, nativeValidationMessage, syncFluid, fluidFieldStyles, markStatus, type MessageKind } from '../shared/field.ts';\nimport { FormControlController } from '../shared/form-control.ts';\nimport { SlotController } from '../shared/slots.ts';\nimport { LocalizeController } from '../shared/localize.ts';\nimport { UiElement } from '../shared/element.ts';\nimport { characterCount, countOf, type CounterMode } from '../../core/field.ts';\nimport { fitTextArea, unfitTextArea } from '../../core/auto-grow.ts';\n\n/**\n * Carbon-style text area (`TextArea`): a multi-line field with the same label / helper / warning /\n * error wiring as ui-text-input, an optional character counter (`max-count`) and vertical resize.\n *\n * Follows Carbon `_text-area.scss`: 11px / 16px padding, 40px minimum height, body-01 type, the\n * status icon in the top-right corner, `resize: vertical` (none while disabled). `rows` sets the\n * initial height like the native attribute (Carbon default 4).\n *\n * `counter-mode=\"word\"` (Carbon `counterMode`) counts words instead of characters — Thai words\n * whole, by the browser's word segmenter (Carbon's letter runs split Thai apart) — and, like our\n * characters, a soft limit: going over is an error, nothing is blocked or cut. `auto-grow` (no\n * Carbon counterpart) sizes the field to its text, from `rows` up to `max-rows` lines (then it\n * scrolls), without the resize handle.\n *\n * Form-associated: submits under `name`, resets with the form, native constraint validation\n * (`required`, `minlength`, `maxlength`). Errors appear after the user leaves the field or tries\n * to submit, except \"over the limit\", which shows at once.\n *\n * State on the host for styling: `data-show-error` while the error shows (over the limit included),\n * `data-show-warn` while the warning shows.\n *\n * @cssstate show-error - While its error message shows (also `[data-show-error]`)\n * @cssstate show-warn - While its warning message shows (also `[data-show-warn]`)\n * @slot label - Label content with markup; the `label` attribute is the plain-text fallback\n * @slot helper-text - Helper text with markup (links, bold); overrides `helper-text`\n * @slot warn-text - Warning text shown while `warn`; overrides `warn-text`\n * @slot invalid-text - Error text shown while invalid; overrides `invalid-text`\n * @fires change - Re-dispatched from the native textarea (native change is not composed)\n * @fires input - Native input event (already composed, so it reaches the host)\n * @csspart base - The field box around the textarea\n * @csspart label - The label\n * @csspart input - The native textarea\n * @csspart counter - The character (or word) counter\n * @csspart status-icon - The error / warning icon\n * @csspart helper-text - The helper line\n * @csspart warning-text - The warning line\n * @csspart warn-text - Same line as `warning-text` (named after the `warn-text` attribute / slot)\n * @csspart error-text - The error line\n * @csspart invalid-text - Same line as `error-text` (named after the `invalid-text` attribute / slot)\n * @cssprop --ui-field-border - Border on every side of the box (default none: Carbon's underline only; Kanok: a 1px outline)\n * @cssprop --ui-field-disabled-border-color - Border colour when disabled (default: the underline transparent)\n * @cssprop --ui-field-readonly-border-color - Border colour when read-only (default: a hairline underline)\n * @cssprop --ui-field-radius - Corner radius of the box (default 0; Kanok: 6px)\n * @cssprop --ui-field-background - Fill of the box (default `--ui-surface-1`; Kanok: transparent)\n * @cssprop --ui-label-font - Font of the label (default `--ui-font-caption`; Kanok: 14px semibold)\n * @cssprop --ui-label-color - Colour of the label (default `--ui-ink-muted`; Kanok: `--ui-ink`)\n * @cssprop --ui-field-readonly-background - The box's fill when read-only (default transparent; Kanok: a faint ink tint, so read-only reads as set and never weaker than disabled)\n * @cssprop --ui-fluid-background / --ui-fluid-gap - A fluid box's fill and the space under it (default the layer's fill, 0: boxes that touch; Kanok: transparent, 8px)\n */\n@customElement('ui-text-area')\nexport class UiTextArea extends UiElement {\n    static override hostStates: readonly string[] = ['show-error', 'show-warn'];\n\n    static readonly formAssociated = true;\n\n    static override readonly shadowRootOptions: ShadowRootInit = {\n        ...LitElement.shadowRootOptions,\n        delegatesFocus: true,\n    };\n\n    static override readonly styles = [\n        fieldTextStyles,\n        css`\n            :host {\n                display: block;\n                font-family: var(--ui-font-family);\n            }\n\n            .field {\n                position: relative;\n            }\n\n            .top {\n                display: flex;\n                justify-content: space-between;\n                gap: var(--ui-space-xs);\n            }\n\n            .counter {\n                margin-inline-start: auto;\n                font: var(--ui-font-caption);\n                letter-spacing: var(--ui-tracking-caption);\n                color: var(--ui-ink-muted);\n            }\n\n            .counter.over {\n                color: var(--ui-error);\n            }\n\n            /* Carbon text-area: 11px/16px padding, 40px min, body-01, vertical resize */\n            textarea {\n                box-sizing: border-box;\n                display: block;\n                width: 100%;\n                min-width: 10rem;\n                min-height: 40px;\n                margin: 0;\n                padding: 11px var(--ui-space-md);\n                /* Carbon: an underline only; --ui-field-border (all sides), --ui-field-radius and --ui-field-background let a design outline the box */\n                border: var(--ui-field-border, none);\n                border-bottom: 1px solid var(--ui-field-underline-color, var(--ui-ink-subtle));\n                border-radius: var(--ui-field-radius, var(--ui-radius-none));\n                background-color: var(--ui-field-background, var(--ui-surface-1));\n                color: var(--ui-ink);\n                font: var(--ui-font-body-sm);\n                font-size: var(--ui-field-font-size, 14px);\n                line-height: 20px; /* body-01 */\n                letter-spacing: var(--ui-tracking-body);\n                resize: vertical;\n                outline: var(--ui-field-focus-width, 2px) solid transparent; /* the ring's width (Kanok: 1.5px, on the field's own border) */\n                outline-offset: calc(-1 * var(--ui-field-focus-width, 2px));\n                /* Carbon text-area: background-color and outline at fast-01 */\n                transition:\n                    background-color var(--ui-duration-fast) var(--ui-easing),\n                    outline-color var(--ui-duration-fast) var(--ui-easing);\n            }\n\n            textarea:hover:not(:disabled):not(:focus) {\n                border-color: var(--ui-field-hover-border-color, var(--ui-border-strong-1));\n                border-bottom-color: var(--ui-field-hover-border-color, var(--ui-border-strong-1));\n            }\n\n            /* room for the status icon so text doesn't run under it */\n            .has-status textarea {\n                padding-inline-end: calc(var(--ui-space-md) * 2 + 16px);\n            }\n\n            textarea::placeholder {\n                color: var(--ui-ink-placeholder);\n                opacity: 1;\n            }\n\n            textarea:focus {\n                border-color: var(--ui-field-focus-border-color, inherit);\n                border-bottom-color: var(--ui-field-focus-border-color, var(--ui-ink-subtle));\n                outline-color: var(--ui-focus);\n                box-shadow: var(--ui-field-focus-halo, none); /* a design's halo outside the ring (Kanok: none) */\n            }\n\n            .invalid textarea {\n                outline-color: var(--ui-error);\n                box-shadow: var(--ui-field-invalid-halo, none); /* a design's error halo (Kanok: Pixiv's red ring) */\n            }\n\n            .invalid textarea:focus {\n                border-color: var(--ui-field-focus-border-color, inherit);\n                border-bottom-color: var(--ui-field-focus-border-color, var(--ui-ink-subtle));\n                outline-color: var(--ui-focus);\n                box-shadow: var(--ui-field-invalid-halo, var(--ui-field-focus-halo, none)); /* an error keeps its halo while focused (Kanok: Pixiv's red) */\n            }\n\n            textarea:disabled {\n                border-color: var(--ui-field-disabled-border-color, currentColor currentColor transparent);\n                color: var(--ui-ink-disabled);\n                cursor: not-allowed;\n                resize: none;\n            }\n\n            textarea:disabled::placeholder {\n                color: var(--ui-ink-disabled);\n            }\n\n            /* sized by its text, not by hand */\n            :host([auto-grow]) textarea {\n                resize: none;\n            }\n\n            textarea:read-only:not(:disabled) {\n                background-color: var(--ui-field-readonly-background, transparent);\n                border-color: var(--ui-field-readonly-border-color, currentColor currentColor var(--ui-hairline));\n            }\n\n            /* Carbon: the icon sits in the top-right corner, not vertically centred */\n            .status {\n                position: absolute;\n                top: var(--ui-space-xs);\n                inset-inline-end: var(--ui-space-md);\n                display: flex;\n                pointer-events: none;\n            }\n\n            @media (forced-colors: active) {\n                textarea {\n                    border: 1px solid FieldText;\n                }\n                textarea:focus {\n                    outline-color: Highlight;\n                }\n            }\n        `,\n        fluidFieldStyles,\n        css`\n            /* Carbon fluid text area: the text starts 32px down, under the label */\n            :host([data-fluid]) textarea {\n                margin-block-start: 32px;\n                padding-block: 0 13px;\n            }\n\n            :host([data-fluid]) .has-status textarea {\n                padding-inline-end: var(--ui-space-md);\n            }\n\n            :host([data-fluid]) .status {\n                --ui-fluid-icon-end: var(--ui-space-md);\n                inset-block: 0;\n                inset-inline-end: 0;\n            }\n        `,\n    ];\n\n    /** Visible label text; the `label` slot replaces it when markup is needed. */\n    @property() label = '';\n\n    private readonly localize = new LocalizeController(this);\n    /** Keep the label for screen readers but don't show it. */\n    @property({ type: Boolean, attribute: 'hide-label' }) hideLabel = false;\n    /** Helper text under the field, shown while there is no error or warning. */\n    @property({ attribute: 'helper-text' }) helperText = '';\n    /** Error text shown while `invalid` or while the field fails validation. */\n    @property({ attribute: 'invalid-text' }) invalidText = '';\n    /** Forces the error state, e.g. after server-side validation. */\n    @property({ type: Boolean, reflect: true }) invalid = false;\n    /** Non-blocking warning; shown when there is no error. */\n    @property({ type: Boolean, reflect: true }) warn = false;\n    /** Text of the warning shown while `warn`. */\n    @property({ attribute: 'warn-text' }) warnText = '';\n    @property() value = '';\n    /** Reflected: form-associated elements submit under the `name` attribute. */\n    @property({ reflect: true }) name = '';\n    @property() placeholder = '';\n    /** Initial number of text rows (Carbon default 4); the user can still resize. */\n    @property({ type: Number }) rows = 4;\n    @property({ type: Number }) minlength?: number;\n    @property({ type: Number }) maxlength?: number;\n\n    /** Passed to the textarea (`off`, or an autofill token). */\n    @property() autocomplete = '';\n\n    /** Passed to the text box: the virtual keyboard to show (`numeric`, `decimal`, `email`, `tel`, `url`, `search`…). */\n    @property() inputmode = '';\n\n    /** Passed to the text box: the label of the virtual keyboard's Enter key (`search`, `send`, `next`, `done`…). */\n    @property() enterkeyhint = '';\n    /** Soft limit with a visible counter (unlike maxlength, extra text isn't blocked). */\n    @property({ type: Number, attribute: 'max-count' }) maxCount?: number;\n    /** What `max-count` counts: `character` (default) or `word` (Carbon `counterMode`). */\n    @property({ attribute: 'counter-mode' }) counterMode: CounterMode = 'character';\n    /** Grows with the text from `rows` (no Carbon counterpart); `max-rows` caps it, then it scrolls. */\n    @property({ type: Boolean, reflect: true, attribute: 'auto-grow' }) autoGrow = false;\n    /** The most lines `auto-grow` shows before scrolling (default: no cap). */\n    @property({ type: Number, attribute: 'max-rows' }) maxRows?: number;\n    /** Error when over `max-count`; `{max}` is replaced with the limit (default: the translation's, for characters or words). */\n    @property({ attribute: 'too-long-text' }) tooLongText = '';\n    /** Announced once when what is left of the limit drops to 10% or less. */\n    @property({ attribute: 'near-limit-text' }) nearLimitText = '';\n    /** Disables the control; a disabled `<fieldset>` ancestor does the same. */\n    @property({ type: Boolean, reflect: true }) disabled = false;\n    /** Shows and submits the value but blocks changes. */\n    @property({ type: Boolean, reflect: true }) readonly = false;\n\n    /** Carbon `FluidTextArea`: the label inside a 64px box, an error / warning inside it. `<ui-fluid-form>` sets it for every field inside. */\n    @property({ type: Boolean, reflect: true }) fluid = false;\n    /** Blocks form submission while the field is empty. */\n    @property({ type: Boolean, reflect: true }) required = false;\n\n    @state() private touched = false;\n    /** Disabled, reset defaults, validation on submit and the name given from outside (shared by the form fields). */\n    private readonly formControl = new FormControlController(this, { reveal: () => (this.touched = true) });\n\n    @query('textarea') private readonly textarea!: HTMLTextAreaElement;\n\n\n    /** Message from `setCustomValidity()`; '' = none. */\n    private customValidityMessage = '';\n\n    /** Like `<input>.setCustomValidity()`: a non-empty message makes the field invalid (and is shown as its error once touched) until cleared with ''. */\n    setCustomValidity(message: string) {\n        this.customValidityMessage = message;\n        if (!this.hasUpdated) return;\n        this.syncFormState();\n        this.requestUpdate();\n    }\n    private readonly inputId = uid('ui-text-area');\n    private readonly slots = new SlotController(this);\n    private defaultValue = '';\n\n    protected override willUpdate() {\n        syncFluid(this, this.fluid);\n    }\n\n    override connectedCallback() {\n        super.connectedCallback();\n        syncFluid(this, this.fluid);\n        // first connection only: moving the element must not change what reset goes back to\n        this.formControl.captureDefaults(() => {\n            this.defaultValue = this.value;\n        });\n    }\n\n    override disconnectedCallback() {\n        super.disconnectedCallback();\n        this.widthObserver?.disconnect();\n        this.widthObserver = undefined;\n    }\n\n    /** With `auto-grow`, a new width rewraps the text: fit again. */\n    private widthObserver?: ResizeObserver;\n    private lastWidth = 0;\n\n    private fit() {\n        if (!this.autoGrow) return;\n        fitTextArea(this.textarea, this.maxRows);\n        this.widthObserver ??= new ResizeObserver(([entry]) => {\n            const width = entry.contentRect.width;\n            if (width === this.lastWidth) return;\n            this.lastWidth = width;\n            fitTextArea(this.textarea, this.maxRows);\n        });\n        this.widthObserver.observe(this.textarea);\n    }\n\n    get validity() {\n        return this.internals.validity;\n    }\n\n    get validationMessage() {\n        return this.internals.validationMessage;\n    }\n\n    get form() {\n        return this.internals.form;\n    }\n\n    /** Whether the field takes part in constraint validation (not while disabled), as natively. */\n    get willValidate() {\n        return this.internals.willValidate;\n    }\n\n    /** The `<label>`s that point at this field. */\n    get labels() {\n        return this.internals.labels;\n    }\n\n    checkValidity() {\n        return this.internals.checkValidity();\n    }\n\n    reportValidity() {\n        this.touched = true;\n        return this.formControl.reportValidity(this.internals);\n    }\n\n    protected override updated(changed: PropertyValues<this>) {\n        this.syncFormState();\n        if (this.autoGrow) this.fit();\n        else if (changed.get('autoGrow')) {\n            this.widthObserver?.disconnect();\n            unfitTextArea(this.textarea);\n        }\n        this.syncHostState();\n    }\n\n    /** Kind of the message the last render showed, for the host state attributes. */\n    private shownKind?: MessageKind;\n\n    private syncHostState() {\n        this.toggleAttribute('data-show-error', this.shownKind === 'error');\n        this.toggleAttribute('data-show-warn', this.shownKind === 'warn');\n    }\n\n    formResetCallback() {\n        this.value = this.defaultValue;\n        this.touched = false;\n    }\n\n    formStateRestoreCallback(state: string | File | FormData | null) {\n        if (typeof state === 'string') this.value = state;\n    }\n\n    formDisabledCallback(disabled: boolean) {\n        this.formControl.setFieldsetDisabled(disabled);\n    }\n\n    private get isDisabled() {\n        return this.formControl.disabled;\n    }\n\n    private get interactive() {\n        return !this.isDisabled && !this.readonly;\n    }\n\n    /** Characters or words, as `counter-mode` says. */\n    private get counted() {\n        return countOf(this.value, this.counterMode, this.localize.lang());\n    }\n\n    /** core/field: over the soft limit (an error) / within its last 10% (announced). */\n    private get count() {\n        return characterCount(this.counted, this.maxCount);\n    }\n\n    private get overLimit() {\n        return this.count.over;\n    }\n\n    private get tooLongMessage() {\n        const t = this.localize.t.field;\n        return (this.tooLongText || (this.counterMode === 'word' ? t.tooManyWords : t.tooLong)).replace('{max}', String(this.maxCount));\n    }\n\n    private syncFormState() {\n        if (barWhenDisabled(this.internals, this.isDisabled)) return;\n        this.internals.setFormValue(this.value);\n        const customError = customErrorMessage(this.invalid, this.invalidText, this.customValidityMessage);\n        if (customError) {\n            this.internals.setValidity({ customError: true }, customError, this.textarea);\n        } else if (this.overLimit) {\n            this.internals.setValidity({ tooLong: true }, this.tooLongMessage, this.textarea);\n        } else if (this.textarea.validity.valid) {\n            this.internals.setValidity({});\n        } else {\n            this.internals.setValidity(this.textarea.validity, nativeValidationMessage(this.textarea, this.localize.t.field.required), this.textarea);\n        }\n    }\n\n    private onInput(event: Event) {\n        this.value = (event.target as HTMLTextAreaElement).value;\n    }\n\n    private onChange() {\n        this.dispatchEvent(new Event('change', { bubbles: true }));\n    }\n\n    /** Over the limit shows at once (the counter already turned red); other errors wait for blur. */\n    private get showError() {\n        if (!this.interactive) return false;\n        if (this.invalid || this.overLimit) return true;\n        return this.touched && (!!this.customValidityMessage || (!!this.textarea && !this.textarea.validity.valid));\n    }\n\n    private get counterAnnouncement() {\n        if (this.count.over) return this.tooLongMessage;\n        if (!this.count.near) return '';\n        const t = this.localize.t.field;\n        return this.nearLimitText || (this.counterMode === 'word' ? t.nearWordLimit : t.nearLimit);\n    }\n\n    private get errorText() {\n        if (this.customValidityMessage && !this.invalid) return this.customValidityMessage;\n        if (this.invalidText) return this.invalidText;\n        if (this.overLimit) return this.tooLongMessage;\n        return this.textarea ? nativeValidationMessage(this.textarea, this.localize.t.field.required) : '';\n    }\n\n    private renderLabel() {\n        // no label of its own: an unseen one with the name given from outside (aria-label, a <label for>), if any\n        const unlabelled = !this.label && !this.slots.has('label');\n        const outside = unlabelled ? this.formControl.fallbackName(this.label, this.internals) : '';\n        if (unlabelled && !outside) return nothing;\n        return html`<label class=${this.hideLabel || unlabelled ? 'sr-only' : 'label'} part=\"label\" for=${this.inputId}>${renderLabelText(this.label, outside)}</label>`;\n    }\n\n    private renderCounter() {\n        if (this.maxCount === undefined) return nothing;\n        return html`<span class=\"counter ${this.overLimit ? 'over' : ''}\" part=\"counter\" aria-hidden=\"true\">\n                ${this.counted}/${this.maxCount}\n            </span>\n            <span class=\"sr-only\" aria-live=\"polite\">${this.counterAnnouncement}</span>`;\n    }\n\n    override render() {\n        const showError = this.showError;\n        const message = pickMessage({\n            showError,\n            errorText: this.errorText,\n            showWarn: this.warn && this.interactive,\n            warnText: this.warnText,\n            helperText: this.helperText,\n            slots: this.slots,\n        });\n        markStatus(this, message);\n        this.shownKind = message?.kind;\n        const classes = [showError ? 'invalid' : '', message && message.kind !== 'helper' ? 'has-status' : ''].filter(Boolean).join(' ');\n\n        return html`\n            <div class=\"top\">${this.renderLabel()}${this.renderCounter()}</div>\n            <div class=\"field ${classes}\" part=\"base\">\n                <textarea\n                    part=\"input\"\n                    id=${this.inputId}\n                    autocomplete=${this.autocomplete || nothing}\n                    inputmode=${this.inputmode || nothing}\n                    enterkeyhint=${this.enterkeyhint || nothing}\n                    .value=${this.value}\n                    name=${this.name || nothing}\n                    placeholder=${this.placeholder || nothing}\n                    rows=${this.rows}\n                    minlength=${this.minlength ?? nothing}\n                    maxlength=${this.maxlength ?? nothing}\n                    ?disabled=${this.isDisabled}\n                    ?readonly=${this.readonly}\n                    ?required=${this.required}\n                    aria-invalid=${showError ? 'true' : 'false'}\n                    aria-describedby=${messageId(this.inputId, message) ?? nothing}\n                    @input=${this.onInput}\n                    @change=${this.onChange}\n                    @blur=${() => (this.touched = true)}\n                ></textarea>\n                <span class=\"status\">${renderStatusIcon(message)}</span>\n            </div>\n            ${renderMessage(this.inputId, message)}\n        `;\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'ui-text-area': UiTextArea;\n    }\n}\n"
    }
  ]
}
