@citrusworx/juiceui 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +42 -7
  2. package/dist/index.css +1383 -114
  3. package/dist/index.d.ts +16 -0
  4. package/dist/index.js +2174 -913
  5. package/dist/js/juice.d.ts +16 -0
  6. package/dist/js/src/disclosure/disclosure-runtime.d.ts +51 -0
  7. package/dist/js/src/drawer/drawer-runtime.d.ts +6 -0
  8. package/dist/js/src/field/field-runtime.d.ts +53 -0
  9. package/dist/js/src/input/input-runtime.d.ts +55 -0
  10. package/dist/js/src/modal/modal-runtime.d.ts +6 -0
  11. package/dist/js/src/pagination/pagination-runtime.d.ts +79 -0
  12. package/dist/js/src/popover/popover-runtime.d.ts +5 -0
  13. package/dist/js/src/select/select-runtime.d.ts +52 -0
  14. package/dist/js/src/shared/motion.d.ts +48 -0
  15. package/dist/js/src/spinner/spinner-runtime.d.ts +51 -0
  16. package/dist/js/src/textarea/textarea-runtime.d.ts +51 -0
  17. package/dist/js/src/toast/toast-runtime.d.ts +5 -0
  18. package/dist/themes/aquaflux.css +411 -0
  19. package/dist/themes/citrusmint.css +404 -0
  20. package/dist/themes/kiwipress.css +410 -0
  21. package/dist/themes/retro-afterburn.css +2019 -0
  22. package/dist/themes/retro-arcade-glow.css +2019 -0
  23. package/dist/themes/retro-boardwalk.css +2082 -0
  24. package/dist/themes/retro-denim-dial.css +1871 -0
  25. package/dist/themes/retro-forest-radio.css +1871 -0
  26. package/dist/themes/retro-orchard-club.css +1871 -0
  27. package/dist/themes/retro-poolside-pop.css +1871 -0
  28. package/dist/themes/retro-signal-garden.css +1871 -0
  29. package/dist/themes/retro-sunset-motel.css +1871 -0
  30. package/dist/themes/retro-violet-parlor.css +1871 -0
  31. package/dist/themes/tide.css +403 -0
  32. package/package.json +92 -2
package/README.md CHANGED
@@ -53,7 +53,7 @@ import "@citrusworx/juiceui/styles/themes/aquaflux";
53
53
 
54
54
  ```html
55
55
  <body theme="aquaflux">
56
- <!-- or theme="kiwipress" | theme="citrusmint" | theme="tide" -->
56
+ <!-- or theme="kiwipress" | theme="citrusmint" | theme="tide" | theme="retro-afterburn" | theme="retro-arcade-glow" | theme="retro-boardwalk" | theme="retro-denim-dial" | theme="retro-forest-radio" | theme="retro-orchard-club" | theme="retro-poolside-pop" | theme="retro-signal-garden" | theme="retro-sunset-motel" | theme="retro-violet-parlor" -->
57
57
  </body>
58
58
  ```
59
59
 
@@ -144,6 +144,34 @@ import {
144
144
  initProgress,
145
145
  startProgressRuntime,
146
146
  stopProgressRuntime,
147
+ createPagination,
148
+ initPagination,
149
+ startPaginationRuntime,
150
+ stopPaginationRuntime,
151
+ createDisclosure,
152
+ initDisclosure,
153
+ startDisclosureRuntime,
154
+ stopDisclosureRuntime,
155
+ createSpinner,
156
+ initSpinner,
157
+ startSpinnerRuntime,
158
+ stopSpinnerRuntime,
159
+ createSelect,
160
+ initSelect,
161
+ startSelectRuntime,
162
+ stopSelectRuntime,
163
+ createInput,
164
+ initInput,
165
+ startInputRuntime,
166
+ stopInputRuntime,
167
+ createTextarea,
168
+ initTextarea,
169
+ startTextareaRuntime,
170
+ stopTextareaRuntime,
171
+ createField,
172
+ initField,
173
+ startFieldRuntime,
174
+ stopFieldRuntime,
147
175
  createNavigation,
148
176
  initNavigation,
149
177
  startNavigationRuntime,
@@ -154,23 +182,23 @@ import {
154
182
 
155
183
  The top-level JS entrypoint is intentionally small. Those named exports are the stable runtime API Juice currently promises.
156
184
 
157
- Importing that entry auto-starts the navigation, accordion, tabs, modal, drawer, toast, popover, wizard, tooltip, combobox, banner, menu, switch, slider, checkbox, radio, breadcrumb, and progress runtimes in the browser. Valid `[accordion]`, `[tabs]`, `[modal-overlay]`, `[drawer-overlay]`, `[toast-region]`, `[popover-root]`, `[wizard-shell]`, `[tooltip-root]`, `[combobox]`, `[banner]`, `[menu-root]`, `[switch]`, `[slider]`, `[checkbox]`, `[radiogroup]`, `[breadcrumb]`, and `[progress]` markup work without app init. See [docs/juice/juice-accordion-runtime.md](../../docs/juice/juice-accordion-runtime.md), [docs/juice/juice-tabs-runtime.md](../../docs/juice/juice-tabs-runtime.md), [docs/juice/juice-modal-runtime.md](../../docs/juice/juice-modal-runtime.md), [docs/juice/juice-drawer-runtime.md](../../docs/juice/juice-drawer-runtime.md), [docs/juice/juice-toast-runtime.md](../../docs/juice/juice-toast-runtime.md), [docs/juice/juice-popover-runtime.md](../../docs/juice/juice-popover-runtime.md), [docs/juice/juice-wizard-runtime.md](../../docs/juice/juice-wizard-runtime.md), [docs/juice/juice-tooltip-runtime.md](../../docs/juice/juice-tooltip-runtime.md), [docs/juice/juice-combobox-runtime.md](../../docs/juice/juice-combobox-runtime.md), [docs/juice/juice-banner-runtime.md](../../docs/juice/juice-banner-runtime.md), [docs/juice/juice-menu-runtime.md](../../docs/juice/juice-menu-runtime.md), [docs/juice/juice-switch-runtime.md](../../docs/juice/juice-switch-runtime.md), [docs/juice/juice-slider-runtime.md](../../docs/juice/juice-slider-runtime.md), [docs/juice/juice-checkbox-runtime.md](../../docs/juice/juice-checkbox-runtime.md), [docs/juice/juice-radio-runtime.md](../../docs/juice/juice-radio-runtime.md), [docs/juice/juice-breadcrumb-runtime.md](../../docs/juice/juice-breadcrumb-runtime.md), and [docs/juice/juice-progress-runtime.md](../../docs/juice/juice-progress-runtime.md). Banner is an inline alert / callout (`show` / `dismiss`, `[banner-close]`), not a toast stack. Menu is an APG menu button (`open` / `close` / `toggle` / `select`), not a popover and not a menubar. Switch is an APG switch (`toggle` / `check` / `uncheck` / `setChecked`), not a layered overlay. Slider is an APG slider (`setValue` / `getValue` / `increment` / `decrement`), not a layered overlay. Checkbox is an APG checkbox (`toggle` / `check` / `uncheck` / `setChecked`), not a layered overlay. Radio is an APG radio group (`select` / `getChecked`), not a layered overlay. Breadcrumb is a light trail (`sync` / `setCurrent`), not a router. Progress is an APG-inspired progressbar (`setValue` / `getValue` / `setIndeterminate`), not a slider. Switch, slider, checkbox, radio, breadcrumb, and progress are on master and are not in the 0.8.0 npm cut. Checkbox and radio are two runtimes.
185
+ Importing that entry auto-starts the navigation, accordion, tabs, modal, drawer, toast, popover, wizard, tooltip, combobox, banner, menu, switch, slider, checkbox, radio, breadcrumb, progress, pagination, disclosure, spinner, select, input, textarea, and field runtimes in the browser. Valid `[accordion]`, `[tabs]`, `[modal-overlay]`, `[drawer-overlay]`, `[toast-region]`, `[popover-root]`, `[wizard-shell]`, `[tooltip-root]`, `[combobox]`, `[banner]`, `[menu-root]`, `[switch]`, `[slider]`, `[checkbox]`, `[radiogroup]`, `[breadcrumb]`, `[progress]`, `[pagination]`, `[disclosure]`, `[spinner]`, `<select select>`, `<input input>`, `<textarea textarea>`, and `[field]` markup work without app init. See [docs/juice/juice-accordion-runtime.md](../../docs/juice/juice-accordion-runtime.md), [docs/juice/juice-tabs-runtime.md](../../docs/juice/juice-tabs-runtime.md), [docs/juice/juice-modal-runtime.md](../../docs/juice/juice-modal-runtime.md), [docs/juice/juice-drawer-runtime.md](../../docs/juice/juice-drawer-runtime.md), [docs/juice/juice-toast-runtime.md](../../docs/juice/juice-toast-runtime.md), [docs/juice/juice-popover-runtime.md](../../docs/juice/juice-popover-runtime.md), [docs/juice/juice-wizard-runtime.md](../../docs/juice/juice-wizard-runtime.md), [docs/juice/juice-tooltip-runtime.md](../../docs/juice/juice-tooltip-runtime.md), [docs/juice/juice-combobox-runtime.md](../../docs/juice/juice-combobox-runtime.md), [docs/juice/juice-banner-runtime.md](../../docs/juice/juice-banner-runtime.md), [docs/juice/juice-menu-runtime.md](../../docs/juice/juice-menu-runtime.md), [docs/juice/juice-switch-runtime.md](../../docs/juice/juice-switch-runtime.md), [docs/juice/juice-slider-runtime.md](../../docs/juice/juice-slider-runtime.md), [docs/juice/juice-checkbox-runtime.md](../../docs/juice/juice-checkbox-runtime.md), [docs/juice/juice-radio-runtime.md](../../docs/juice/juice-radio-runtime.md), [docs/juice/juice-breadcrumb-runtime.md](../../docs/juice/juice-breadcrumb-runtime.md), [docs/juice/juice-progress-runtime.md](../../docs/juice/juice-progress-runtime.md), [docs/juice/juice-pagination-runtime.md](../../docs/juice/juice-pagination-runtime.md), [docs/juice/juice-disclosure-runtime.md](../../docs/juice/juice-disclosure-runtime.md), [docs/juice/juice-spinner-runtime.md](../../docs/juice/juice-spinner-runtime.md), [docs/juice/juice-select-runtime.md](../../docs/juice/juice-select-runtime.md), and [docs/juice/juice-input-runtime.md](../../docs/juice/juice-input-runtime.md), and [docs/juice/juice-textarea-runtime.md](../../docs/juice/juice-textarea-runtime.md), and [docs/juice/juice-field-runtime.md](../../docs/juice/juice-field-runtime.md). Banner is an inline alert / callout (`show` / `dismiss`, `[banner-close]`), not a toast stack. Menu is an APG menu button (`open` / `close` / `toggle` / `select`), not a popover and not a menubar. Switch is an APG switch (`toggle` / `check` / `uncheck` / `setChecked`), not a layered overlay. Slider is an APG slider (`setValue` / `getValue` / `increment` / `decrement`), not a layered overlay. Checkbox is an APG checkbox (`toggle` / `check` / `uncheck` / `setChecked`), not a layered overlay. Radio is an APG radio group (`select` / `getChecked`), not a layered overlay. Breadcrumb is a light trail (`sync` / `setCurrent`), not a router. Progress is an APG-inspired progressbar (`setValue` / `getValue` / `setIndeterminate`), not a slider. Pagination is a page set (`sync` / `setCurrent`): one current page, prev/next disabled at inferable ends, and Arrow/Home/End among enabled controls. Pagination is the nineteenth Emerging auto-enhance runtime. Disclosure is the twentieth Emerging auto-enhance runtime and is unpublished versus 0.9.1. Checkbox and radio are two runtimes. Breadcrumb is a light trail. Progress is a progressbar. Pagination is a page set. Disclosure is a standalone one-trigger / one-panel expand-collapse (`[disclosure]` / `[disclosure-trigger]` / `[disclosure-panel]`), distinct from accordion. Spinner is an indeterminate busy indicator (`show` / `hide`): `role="status"` and `aria-busy` while shown, and a hidden spinner does not announce as busy. Authors supply the accessible name when there is no visible `[spinner-label]`. It is not a progress bar and not a disclosure. No value, no keyboard, no Escape, no focus trap, and no Sig Spinner factory. Spinner is the twenty-first Emerging auto-enhance runtime and is unpublished versus 0.9.1. Select is a native `<select select>` (`sync`): a visible associated label, wrapping label, or `[select-label]` names the control when the author has not set one. `[multiple]` and `size` stay native selects. The open list stays the platform popup. It is not a combobox. No keyboard rewrite, no Escape, no focus trap, and no Sig Select factory. Select is the twenty-second Emerging auto-enhance runtime and is unpublished versus 0.9.1. Input is a native `<input input>` of a text-like type (`sync`): a visible associated label, wrapping label, or `[input-label]` names the control when the author has not set one. Missing, empty, text, email, password, search, tel, url, and number are named. Checkbox, radio, range, file, date, time, datetime-local, month, week, color, hidden, button, submit, reset, and image are ignored. A separate label is referenced with `aria-labelledby`. A wrapping label is copied into `aria-label` as its visible text excluding the input value. Hidden or empty labels are skipped. No name is invented when nothing visible is there. It is not a combobox and not a select. No mask, no validation engine, no floating label, no keyboard rewrite, no Escape, no focus trap, and no Sig Input factory. Input is the twenty-third Emerging auto-enhance runtime and is unpublished versus 0.9.1. Textarea is a native `<textarea textarea>` (`sync`): a visible associated label, wrapping label, or `[textarea-label]` names the control when the author has not set one. A separate label is referenced with `aria-labelledby`. A wrapping label is copied into `aria-label` as its visible text excluding the textarea's own value. Hidden or empty labels are skipped. No name is invented when nothing visible is there. It is not an input, not a select, and not a combobox. No auto-grow, no character count, no validation, no floating label, no keyboard rewrite, no Escape, no focus trap, and no Sig Textarea factory. Textarea is the twenty-fourth Emerging auto-enhance runtime and is unpublished versus 0.9.1. Field is a `[field]` wrapper (`sync`): the first input, textarea, or select is described by visible `[field-help]` and `[field-error]` when the author has not set `aria-describedby`, and `[invalid]` sets `aria-invalid="true"` when the author has not set it. Hidden or empty help and error text are skipped. Author `aria-describedby` and `aria-invalid` are kept. Runtime-written state is removed when its source goes away or on destroy. `[field-label]` is chrome only; naming stays with the input, textarea, and select runtimes. Typing, change, and the keyboard stay native. No validation engine, no floating label, no focus trap, no Escape, and no Sig Field factory. Field is the twenty-fifth Emerging auto-enhance runtime and is unpublished versus 0.9.1. All twenty-five stay Emerging.
158
186
  ## Use the built files directly
159
187
 
160
188
  If you are hosting Juice assets yourself, the main built files are:
161
189
 
162
190
  - `dist/index.css` (core)
163
- - `dist/themes/aquaflux.css`, `dist/themes/kiwipress.css`, `dist/themes/citrusmint.css`, `dist/themes/tide.css`
191
+ - `dist/themes/aquaflux.css`, `dist/themes/kiwipress.css`, `dist/themes/citrusmint.css`, `dist/themes/tide.css`, `dist/themes/retro-afterburn.css`, `dist/themes/retro-arcade-glow.css`, `dist/themes/retro-boardwalk.css`, `dist/themes/retro-denim-dial.css`, `dist/themes/retro-forest-radio.css`, `dist/themes/retro-orchard-club.css`, `dist/themes/retro-poolside-pop.css`, `dist/themes/retro-signal-garden.css`, `dist/themes/retro-sunset-motel.css`, `dist/themes/retro-violet-parlor.css`
164
192
  - `dist/index.js`
165
193
 
166
194
  Load core plus at least one theme CSS file when using `theme="..."` on the root element.
167
195
 
168
- There is no first-party Juice CDN. Those `dist/` files are on npm, so jsDelivr and unpkg serve them (verified for `@citrusworx/juiceui@0.8.0`):
196
+ There is no first-party Juice CDN. Those `dist/` files are on npm, so jsDelivr and unpkg serve them (verified for `@citrusworx/juiceui@0.9.1`):
169
197
 
170
198
  ```html
171
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.8.0/dist/index.css" />
172
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.8.0/dist/themes/kiwipress.css" />
173
- <script type="module" src="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.8.0/dist/index.js"></script>
199
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.9.1/dist/index.css" />
200
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.9.1/dist/themes/kiwipress.css" />
201
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.9.1/dist/index.js"></script>
174
202
  ```
175
203
 
176
204
  The JS module is optional. Pin a version. You can also copy the same files out of `node_modules/@citrusworx/juiceui/dist/` next to a plain HTML page.
@@ -229,6 +257,13 @@ Juice keeps styling attribute-first, but interactive patterns still need accessi
229
257
  - radio chrome colors come from `--juice-radio-*` roles bound by the active theme. `[radio]` is an APG radio on a button host inside `[radiogroup]` (a native `<input type="radio" radio>` is allowed). `[radiogroup]` is layout only. The runtime auto-enhances exclusive selection (`select` / `getChecked`, roving tabindex, arrows plus Space/Enter/click). Orphans outside `[radiogroup]` are ignored. Authors supply the accessible name. It is not `[switch]`, not `[checkbox]`, and not a layered overlay: no focus trap and no Escape. See [docs/juice/juice-radio-runtime.md](../../docs/juice/juice-radio-runtime.md).
230
258
  - breadcrumb chrome colors come from `--juice-breadcrumb-*` roles bound by the active theme. `[breadcrumb]` is an APG-inspired trail on `<nav>` or `<ol>`, with `[breadcrumb-item]` crumbs. Current page is `aria-current="page"` inside the trail. `surface` stays transparent unless crumbs sit on a bar. It is not site nav, `nav[type="breadcrumb"]`, tabs, a wizard step tracker, or pagination, and it is not a layered overlay. The light runtime auto-enhances `[breadcrumb]` (`sync` / `setCurrent`): an unlabeled navigation landmark is named `Breadcrumb`, and a single `aria-current="page"` is filled on the last crumb when none is set. It does not remove `href`, trap focus, steal Escape, or listen to history. `<ol breadcrumb>` stays a list. See [docs/juice/juice-breadcrumb-runtime.md](../../docs/juice/juice-breadcrumb-runtime.md). No Sig Breadcrumb factory.
231
259
  - progress chrome colors come from `--juice-progress-*` roles bound by the active theme. `[progress]` is an APG-inspired progressbar track on `<div progress>`, with `[progress-fill]` for the completed portion and optional `[progress-label]`. The runtime auto-enhances that markup (`setValue` / `getValue` / `setIndeterminate`, `role="progressbar"`, `aria-valuemin` / `aria-valuemax` / `aria-valuenow`, `--juice-progress-ratio`). `progress="indeterminate"` slides the fill and omits `aria-valuenow`. Authors supply the accessible name; `aria-valuetext` is kept when the author set it. It is not a slider, not a spinner, and not a native `<progress>` restyle. Authors do not style the HTML `<progress>` element alone. Inline status chrome — no overlay, no focus trap, no Escape. See [docs/juice/juice-progress-runtime.md](../../docs/juice/juice-progress-runtime.md). No Sig Progress factory.
260
+ - pagination chrome colors come from `--juice-pagination-*` roles bound by the active theme. `[pagination]` is an APG-inspired page set on `<nav pagination>` or `<ol pagination>`, with `[pagination-item]` cells, `[pagination-prev]` / `[pagination-next]`, and optional `[pagination-link]`, `[pagination-ellipsis]`, and `[pagination-status]`. Current page is `aria-current="page"` on the control. Disabled prev/next use `aria-disabled="true"`, native `disabled`, or `[disabled]`. The trail stays transparent; `surface` is the page control, not a bar. It is not site nav, `nav[type="pagination"]`, a breadcrumb, tabs, or a wizard step tracker, and it is not a layered overlay. The runtime auto-enhances `[pagination]` (`sync` / `setCurrent`): an unlabeled navigation landmark is named `Pagination`, a single `aria-current="page"` is kept (author current wins; otherwise the first page control), and prev/next are disabled at ends when page controls and optional ellipsis make that inferable. Author-owned disabled is kept. Arrow / Home / End move focus among enabled controls. It does not remove `href`, trap focus, steal Escape, or activate links on Enter/Space. `<ol pagination>` stays a list. See [docs/juice/juice-pagination-runtime.md](../../docs/juice/juice-pagination-runtime.md). Pagination is the nineteenth Emerging auto-enhance runtime. No Sig Pagination factory.
261
+ - disclosure chrome colors come from `--juice-disclosure-*` roles bound by the active theme. `[disclosure]` is a standalone APG disclosure: one `[disclosure-trigger]` and one `[disclosure-panel]`. Pair the panel with `aria-controls`, or place it as the next sibling of the trigger. Expanded state is `aria-expanded` on the trigger plus native `hidden` and `aria-hidden` on the panel. The runtime never writes layout `content=`. Orphans outside `[disclosure]` are ignored. Click toggles. Enter and Space toggle non-button triggers. Escape collapses the focused or last-opened disclosure and yields to an open modal, drawer, or popover. There is no exclusive group and no arrow roving. It is not an accordion (`[accordion]` / `[accordion-item]` stays multi-item and multi-open) and not a layered overlay. See [docs/juice/juice-disclosure-runtime.md](../../docs/juice/juice-disclosure-runtime.md). Disclosure is the twentieth Emerging auto-enhance runtime. Unpublished versus 0.9.1. No Sig Disclosure factory.
262
+ - spinner chrome colors come from `--juice-spinner-*` roles bound by the active theme. `[spinner]` is a standalone indeterminate busy indicator. The ring is `::before` on the host. Optional `[spinner-label]` is author text. CSS owns the spin (`juice-spinner-spin`). `prefers-reduced-motion` stops that animation and leaves the indicator. The runtime auto-enhances `[spinner]` (`sync` / `show` / `hide` / `isShown`): a shown host is `role="status"` and `aria-busy="true"`, and `hide` sets native `hidden` and clears both so a hidden spinner does not announce as busy. The runtime does not invent `aria-label` when there is no visible label, and it does not copy a label into a name. It is not a progress bar and not a disclosure. Inline status chrome — no overlay, no focus trap, no Escape. See [docs/juice/juice-spinner-runtime.md](../../docs/juice/juice-spinner-runtime.md). Spinner is the twenty-first Emerging auto-enhance runtime. Unpublished versus 0.9.1. No Sig Spinner factory.
263
+ - select chrome colors come from `--juice-select-*` roles bound by the active theme. `<select select>` is a styled native dropdown. Optional `[select-label]` is a visible label. The chevron is a `background-image`. `[multiple]` and `size` listboxes stay native selects. `[multiple]` and `size` other than `1` drop the chevron. The open list stays the platform popup. The runtime auto-enhances `<select select>` (`sync`): a visible associated label, wrapping label, or `[select-label]` names the control when the author has not set `aria-label` or `aria-labelledby`. A separate label is referenced with `aria-labelledby`. A wrapping label is copied into `aria-label` as its visible text excluding the select, so the selected option is not part of the name. Hidden or empty labels are skipped. No name is invented when nothing visible is there. Change events and the keyboard stay native. It is not a combobox. Inline field chrome — no overlay, no listbox, no focus trap, no Escape. See [docs/juice/juice-select-runtime.md](../../docs/juice/juice-select-runtime.md). Select is the twenty-second Emerging auto-enhance runtime. Unpublished versus 0.9.1. No Sig Select factory.
264
+ - input chrome colors come from `--juice-input-*` roles bound by the active theme. `<input input>` is a styled native text field. Optional `[input-label]` is a visible label. Text-like controls only: missing type, empty type, text, email, password, search, tel, url, and number. Checkbox, radio, range, file, date, time, datetime-local, month, week, color, hidden, button, submit, reset, and image are ignored. The runtime auto-enhances `<input input>` (`sync`): a visible associated label, wrapping label, or `[input-label]` names the control when the author has not set `aria-label` or `aria-labelledby`. A separate label is referenced with `aria-labelledby`. A wrapping label is copied into `aria-label` as its visible text excluding the input's own value. Hidden or empty labels are skipped. No name is invented when nothing visible is there. Typing, change, and the keyboard stay native. It is not a combobox and not a select. Textarea and the field wrapper are not this runtime. Inline field chrome — no overlay, no mask, no validation, no floating label, no focus trap, no Escape. See [docs/juice/juice-input-runtime.md](../../docs/juice/juice-input-runtime.md). Input is the twenty-third Emerging auto-enhance runtime. Unpublished versus 0.9.1. No Sig Input factory.
265
+ - textarea chrome colors come from `--juice-textarea-*` roles bound by the active theme. `<textarea textarea>` is a styled native multiline field. Optional `[textarea-label]` is a visible label. The runtime auto-enhances `<textarea textarea>` (`sync`): a visible associated label, wrapping label, or `[textarea-label]` names the control when the author has not set `aria-label` or `aria-labelledby`. A separate label is referenced with `aria-labelledby`. A wrapping label is copied into `aria-label` as its visible text excluding the textarea's own value. Hidden or empty labels are skipped. No name is invented when nothing visible is there. Typing, change, and the keyboard stay native. It is not an input, not a select, and not a combobox. The field wrapper is not this runtime. Inline field chrome — no overlay, no auto-grow, no character count, no validation, no floating label, no focus trap, no Escape. See [docs/juice/juice-textarea-runtime.md](../../docs/juice/juice-textarea-runtime.md). Textarea is the twenty-fourth Emerging auto-enhance runtime. Unpublished versus 0.9.1. No Sig Textarea factory.
266
+ - field chrome colors come from `--juice-field-*` roles bound by the active theme. `[field]` is a wrapper around a control. Optional `[field-label]`, `[field-help]`, and `[field-error]` are parts. `[invalid]` paints the wrapper border. The runtime auto-enhances `[field]` (`sync` / `destroy`): the first input, textarea, or select inside the wrapper is described by visible `[field-help]` and `[field-error]` when the author has not set `aria-describedby`. Hidden or empty parts are skipped, and missing ids are added only for parts the runtime references. `[invalid]` sets `aria-invalid="true"` on that control when the author has not set `aria-invalid`. Clearing `[invalid]`, removing a part, or calling `destroy` removes only what the runtime wrote. `[field-label]` is chrome only. Naming stays with the input, textarea, and select runtimes. Typing, change, and the keyboard stay native. It is not a validation engine, not a floating label, and not a restyle of input, textarea, select, or combobox. Inline wrapper chrome — no overlay, no focus trap, no Escape. See [docs/juice/juice-field-runtime.md](../../docs/juice/juice-field-runtime.md). Field is the twenty-fifth Emerging auto-enhance runtime. Unpublished versus 0.9.1. No Sig Field factory.
232
267
 
233
268
  ```html
234
269
  <div tabs name="settings">