@citrusworx/juiceui 0.9.2 → 0.9.3

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 (37) hide show
  1. package/README.md +34 -11
  2. package/dist/components/accordion/accordion.d.ts +2 -1
  3. package/dist/index.css +1499 -89
  4. package/dist/index.d.ts +33 -25
  5. package/dist/index.js +3035 -2253
  6. package/dist/js/juice.d.ts +33 -25
  7. package/dist/js/src/accordion/accordion-runtime.d.ts +6 -0
  8. package/dist/js/src/avatar/avatar-runtime.d.ts +74 -0
  9. package/dist/js/src/banner/banner-runtime.d.ts +5 -0
  10. package/dist/js/src/breadcrumb/breadcrumb-runtime.d.ts +6 -0
  11. package/dist/js/src/checkbox/checkbox-runtime.d.ts +4 -0
  12. package/dist/js/src/combobox/combobox-runtime.d.ts +6 -0
  13. package/dist/js/src/disclosure/disclosure-runtime.d.ts +5 -0
  14. package/dist/js/src/drawer/drawer-runtime.d.ts +5 -0
  15. package/dist/js/src/field/field-runtime.d.ts +5 -0
  16. package/dist/js/src/icon-button/icon-button-runtime.d.ts +67 -0
  17. package/dist/js/src/input/input-runtime.d.ts +8 -0
  18. package/dist/js/src/menu/menu-runtime.d.ts +5 -0
  19. package/dist/js/src/modal/modal-runtime.d.ts +5 -0
  20. package/dist/js/src/nav/navigation.d.ts +5 -0
  21. package/dist/js/src/pagination/pagination-runtime.d.ts +6 -0
  22. package/dist/js/src/popover/popover-runtime.d.ts +5 -0
  23. package/dist/js/src/progress/progress-runtime.d.ts +5 -0
  24. package/dist/js/src/radio/radio-runtime.d.ts +7 -0
  25. package/dist/js/src/select/select-runtime.d.ts +9 -0
  26. package/dist/js/src/shared/change.d.ts +32 -0
  27. package/dist/js/src/slider/slider-runtime.d.ts +4 -0
  28. package/dist/js/src/spinner/spinner-runtime.d.ts +4 -0
  29. package/dist/js/src/switch/switch-runtime.d.ts +4 -0
  30. package/dist/js/src/table/table-runtime.d.ts +99 -0
  31. package/dist/js/src/tabs/tabs-runtime.d.ts +6 -0
  32. package/dist/js/src/textarea/textarea-runtime.d.ts +8 -0
  33. package/dist/js/src/toast/toast-runtime.d.ts +5 -0
  34. package/dist/js/src/tooltip/tooltip-runtime.d.ts +5 -0
  35. package/dist/js/src/wizard/wizard-runtime.d.ts +4 -0
  36. package/dist/themes/tide.css +7 -0
  37. package/package.json +2 -2
package/README.md CHANGED
@@ -172,6 +172,18 @@ import {
172
172
  initField,
173
173
  startFieldRuntime,
174
174
  stopFieldRuntime,
175
+ createIconButton,
176
+ initIconButton,
177
+ startIconButtonRuntime,
178
+ stopIconButtonRuntime,
179
+ createAvatar,
180
+ initAvatar,
181
+ startAvatarRuntime,
182
+ stopAvatarRuntime,
183
+ createTable,
184
+ initTable,
185
+ startTableRuntime,
186
+ stopTableRuntime,
175
187
  createNavigation,
176
188
  initNavigation,
177
189
  startNavigationRuntime,
@@ -182,7 +194,10 @@ import {
182
194
 
183
195
  The top-level JS entrypoint is intentionally small. Those named exports are the stable runtime API Juice currently promises.
184
196
 
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.
197
+ 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, field, icon button, avatar, and table 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>`, `[field]`, `[icon-button]`, `[avatar]`, and `[table]` 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), [docs/juice/juice-field-runtime.md](../../docs/juice/juice-field-runtime.md), and [docs/juice/juice-icon-button-runtime.md](../../docs/juice/juice-icon-button-runtime.md), and [docs/juice/juice-avatar.md](../../docs/juice/juice-avatar.md), and [docs/juice/juice-table.md](../../docs/juice/juice-table.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 shipped in 0.9.2. 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 shipped in 0.9.2. 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 shipped in 0.9.2. 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 shipped in 0.9.2. 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 shipped in 0.9.2. 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 shipped in 0.9.2. Icon button is a square `[icon-button]` on button chrome (`sync` / `toggle` / `getState`): `[toggle]` keeps `aria-pressed` and `[pressed]` in sync, disabled hosts do not flip, and a missing accessible name warns once in development. `title` does not count. No name is invented. It is not a switch and not a checkbox. No focus trap, no Escape, and no Sig IconButton factory. `@citrusworx/sigjs/juice` `bind` does not accept it. Icon button is the twenty-sixth Emerging auto-enhance runtime and is on master, not in the published npm 0.9.2 release. Avatar is an initials-or-photo mark (`[avatar]`, `sync` / `getState`): a broken, empty, or already-failed image sets `[fallback]` and hides the image, a later load clears both, and an empty `src` with a real `srcset` waits. `getState()` is `{ loaded, fallback, hasImage }`. `destroy()` keeps the fallback. The runtime does not touch `alt`, labels, or initials. `[avatar-more]` stays plain text. It is not a badge and not `[skeleton="circle"]`. No keyboard, no Escape, and no Sig Avatar factory. `@citrusworx/sigjs/juice` `bind` does not accept it. A follow-up is pending. Avatar is the twenty-seventh Emerging auto-enhance runtime and is on master, not in the published npm 0.9.2 release. Table is a native `<table table>` grid (`createTable` / `sync` / `getState`): `th[sortable]` cycles ascending, descending, and none, sets `aria-sort`, and reorders each `tbody`. `column` is null when direction is none. A canceled `juice:sort` updates state without reordering. `cellIndex` is not a visual column. No Sig Table factory. `@citrusworx/sigjs/juice` `bind` does not accept it. A follow-up is pending. Table is the twenty-eighth Emerging auto-enhance runtime and is on master, not in the published npm 0.9.2 release. All twenty-eight stay Emerging.
198
+
199
+ Interactive runtimes dispatch a bubbling `juice:change` event from the widget host when observable state actually changes. `detail` is `{ runtime, state }`. `getState()` reads that same shape. Select, input, and textarea publish value changes through the native `input` and `change` events and still expose `getState()`. The contract stays Emerging, covers all twenty-eight runtimes, and is on master, unreleased after 0.9.2. `@citrusworx/sigjs/juice` `bind` still names twenty-five of them. Icon button, avatar, and table are not `JuiceRuntimeName` values. `bind` does not accept them. A follow-up for avatar is pending. A follow-up for table is pending. Juice works without Sig: any page can listen or call `getState()`. The optional Sig adapter is `@citrusworx/sigjs/juice` only. See [juice:change](../../docs/juice/juice-runtime-behavior.md#juicechange) and [Sig.js + Juice](../../docs/sigjs/sig-juice-integration.md#runtime-binding).
200
+
186
201
  ## Use the built files directly
187
202
 
188
203
  If you are hosting Juice assets yourself, the main built files are:
@@ -193,12 +208,12 @@ If you are hosting Juice assets yourself, the main built files are:
193
208
 
194
209
  Load core plus at least one theme CSS file when using `theme="..."` on the root element.
195
210
 
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`):
211
+ 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.2`):
197
212
 
198
213
  ```html
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>
214
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.9.2/dist/index.css" />
215
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.9.2/dist/themes/kiwipress.css" />
216
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.9.2/dist/index.js"></script>
202
217
  ```
203
218
 
204
219
  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.
@@ -226,6 +241,11 @@ The JS module is optional. Pin a version. You can also copy the same files out o
226
241
  - attribute selectors for color, spacing, width, height, gradients, shadows, and icons
227
242
  - layout primitives for `stack`, `row`, `grid`, `gap`, and `span`
228
243
  - FontAwesome Free icon integration across the solid, regular, and brands sets
244
+ - CSS-only `[skeleton]` loading chrome in core CSS (rect, text, circle). On master, not in the published npm 0.9.2 release. Not a runtime. See [docs/juice/juice-skeleton.md](../../docs/juice/juice-skeleton.md)
245
+ - CSS-only `[list]` stacked rows in core CSS (`ul` / `ol` / `div`, `[divided]`, `[dense]`, `[list-item]` slots). On master, not in the published npm 0.9.2 release. Not a runtime. See [docs/juice/juice-list.md](../../docs/juice/juice-list.md)
246
+ - CSS-only `[badge]` pill (`[badge="square"]`, `[badge="ribbon"]`). The base layout shipped in npm 0.9.2. Core `--juice-badge-*` roles are on master and are not in that cut. Not a runtime. See [docs/juice/juice-badge.md](../../docs/juice/juice-badge.md)
247
+ - `[avatar]` initials-or-photo chrome and image-fallback runtime (`createAvatar` / `initAvatar` / `startAvatarRuntime` / `stopAvatarRuntime`). On master, not in the published npm 0.9.2 release. The twenty-seventh Emerging auto-enhance runtime. See [docs/juice/juice-avatar.md](../../docs/juice/juice-avatar.md)
248
+ - `[table]` sortable grid chrome and runtime (`createTable` / `initTable` / `startTableRuntime` / `stopTableRuntime`). On master, not in the published npm 0.9.2 release. The twenty-eighth Emerging auto-enhance runtime. See [docs/juice/juice-table.md](../../docs/juice/juice-table.md)
229
249
 
230
250
  ## Accessibility
231
251
 
@@ -258,12 +278,15 @@ Juice keeps styling attribute-first, but interactive patterns still need accessi
258
278
  - 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.
259
279
  - 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
280
  - 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.
281
+ - 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. Shipped in 0.9.2. No Sig Disclosure factory.
282
+ - 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. Shipped in 0.9.2. No Sig Spinner factory.
283
+ - 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. Shipped in 0.9.2. No Sig Select factory.
284
+ - 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. Shipped in 0.9.2. No Sig Input factory.
285
+ - 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. Shipped in 0.9.2. No Sig Textarea factory.
286
+ - skeleton chrome is CSS-only. `[skeleton]` is a loading placeholder (boolean and `skeleton="rect"` are the rectangle, `skeleton="text"` is a line, `skeleton="circle"` is a circle). `[lines="1"`…`"8"]` or stacked element children supply the lines. A `width` on the last child shortens it. `[scale="sm"|"lg"]` steps the shape. `[static]` and `prefers-reduced-motion` remove the sheen and keep the base. Roles are `--juice-skeleton-*` on core. Color is restated on `[theme]` (inherited ink mixed into the muted surface). The highlight is a translucent white sheen; tune `--juice-skeleton-highlight` on a pale surface. Shipped themes are not required to bind the roles. Copy stays in the accessibility tree and does not paint. Authors own `aria-busy` on the loading region. There is no runtime and no auto-enhance. On master, not in the published npm 0.9.2 release. Not one of the twenty-eight Emerging auto-enhance runtimes. See [docs/juice/juice-skeleton.md](../../docs/juice/juice-skeleton.md)
287
+ - badge chrome is CSS-only. `[badge]` is a pill (`inline-flex`, radius `999px`, `0.8125rem` at weight 600). `[badge="square"]` uses radius `0.375rem`. `[badge="ribbon"]` is absolutely positioned (`top: -0.75rem`, centered). There is no `[scale]`. Color roles are `--juice-badge-bg` (currentColor at 1%), `--juice-badge-ink` (`currentColor`), and `--juice-badge-border` (currentColor at 24%), on `:root` and again on `[theme]`. Layout roles stay on `:root`. Shipped themes are not required to bind them. Outside `[cta]`, KiwiPress still paints the default, `[warm]`, ribbon, and `[wizard-header] [brand] [badge]`. `[card="pricing"]` is the positioned parent for a ribbon. `[dev-hero-header] > [badge]` switches that child to `inline-block`. There is no runtime, no `juice:change`, no `getState()`, and no auto-enhance. The base layout shipped in npm 0.9.2. The roles are on master and are not in that cut. Not one of the twenty-eight Emerging auto-enhance runtimes. See [docs/juice/juice-badge.md](../../docs/juice/juice-badge.md)
288
+ - list chrome is CSS-only. `[list]` on `ul`, `ol`, or `div` stacks rows (`:where(ul, ol, div)[list]`, so `<input list>` is left alone). `[divided]` is a hairline between direct children. `[dense]` tightens row padding and the slot margin and does not change the stack gap. `[list-item]` holds `[list-leading]`, `[list-content]`, `[list-secondary]`, and `[list-trailing]`. `[leading]` stays letter-spacing. An `a` or `button` row hovers, presses, and takes a 2px `currentColor` `:focus-visible` outline, offset 2px. `[selected]` and `aria-current` other than `"false"` share the selected wash. Disabled interactive rows are `opacity: 0.5`. `[selected]` is visual only. Color roles are `--juice-list-*` mixes of `currentColor`, restated on `[theme]`. Layout roles stay on `:root`. Shipped themes are not required to bind them. Background and color use `--juice-motion-duration-fast` and `--juice-motion-ease-standard`, and `prefers-reduced-motion` sets `transition: none`. There is no runtime, no `juice:change`, no `getState()`, and no auto-enhance. On master, not in the published npm 0.9.2 release. Not one of the twenty-eight Emerging auto-enhance runtimes. See [docs/juice/juice-list.md](../../docs/juice/juice-list.md)
289
+ - 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. Shipped in 0.9.2. No Sig Field factory.
267
290
 
268
291
  ```html
269
292
  <div tabs name="settings">
@@ -1,8 +1,9 @@
1
+ import { type Child } from "@citrusworx/sigjs";
1
2
  interface AccordionProps {
2
3
  name: string;
3
4
  title?: string;
4
5
  defaultExpanded?: boolean;
5
- children?: unknown;
6
+ children?: Child;
6
7
  attributes: Record<string, string>;
7
8
  }
8
9
  export declare function Accordion(props: AccordionProps): HTMLElement;