@eldrajs/ui 0.3.6 → 0.3.7

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 (66) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +153 -16
  3. package/dist/{VariantPicker-BB-2Cj32.js → VariantPicker-Cr_AkX47.js} +113 -43
  4. package/dist/componentNames.d.ts +1 -1
  5. package/dist/components/badge/StockBadge.vue.d.ts +1 -1
  6. package/dist/components/chip/Chip.vue.d.ts +2 -0
  7. package/dist/components/dialog/Dialog.vue.d.ts +2 -0
  8. package/dist/components/drawer/Drawer.vue.d.ts +2 -0
  9. package/dist/components/filter-panel/FilterGroup.vue.d.ts +2 -0
  10. package/dist/components/filter-panel/FilterPanel.vue.d.ts +2 -0
  11. package/dist/components/filter-panel/facets/ColourFacet.vue.d.ts +2 -0
  12. package/dist/components/filter-panel/facets/ListFacet.vue.d.ts +2 -0
  13. package/dist/components/filter-panel/facets/RangeFacet.vue.d.ts +2 -0
  14. package/dist/components/filter-panel/facets/SizeFacet.vue.d.ts +2 -0
  15. package/dist/components/filter-panel/facets/ToggleFacet.vue.d.ts +2 -0
  16. package/dist/components/lightbox/Lightbox.vue.d.ts +2 -0
  17. package/dist/components/nav-menu/NavMenu.vue.d.ts +2 -0
  18. package/dist/components/notice/Notice.vue.d.ts +28 -0
  19. package/dist/components/notice/types.d.ts +38 -0
  20. package/dist/components/pagination/Pagination.vue.d.ts +2 -0
  21. package/dist/components/price/Price.vue.d.ts +1 -1
  22. package/dist/components/product-card/ProductCard.vue.d.ts +1 -1
  23. package/dist/components/radio/RadioGroup.vue.d.ts +4 -0
  24. package/dist/components/radio/recipes.d.ts +4 -2
  25. package/dist/components/radio/types.d.ts +8 -1
  26. package/dist/components/range-slider/RangeSlider.vue.d.ts +2 -0
  27. package/dist/components/search-bar/SearchBar.vue.d.ts +2 -0
  28. package/dist/components/search-modal/SearchModal.vue.d.ts +2 -0
  29. package/dist/components/select/MultiSelect.vue.d.ts +2 -0
  30. package/dist/components/select/Select.vue.d.ts +2 -0
  31. package/dist/components/site-form/SiteForm.vue.d.ts +2 -0
  32. package/dist/components/spinner/Spinner.vue.d.ts +4 -1
  33. package/dist/components/spinner/types.d.ts +9 -0
  34. package/dist/components/step-indicator/StepIndicator.vue.d.ts +7 -0
  35. package/dist/components/step-indicator/types.d.ts +30 -0
  36. package/dist/components/toast/Toast.vue.d.ts +2 -0
  37. package/dist/components/toast/Toaster.vue.d.ts +2 -0
  38. package/dist/components.css +89 -0
  39. package/dist/icons/paths.d.ts +8 -0
  40. package/dist/index.d.ts +6 -0
  41. package/dist/index.js +620 -302
  42. package/dist/messages/en-US.d.ts +8 -0
  43. package/dist/messages/is-IS.js +3 -1
  44. package/dist/resolver.js +3 -0
  45. package/dist/style.css +89 -0
  46. package/dist/{useMessages-B5nzZghs.js → useMessages-DOHGfip_.js} +9 -1
  47. package/dist/vee-validate/FieldCheckbox.vue.d.ts +5 -1
  48. package/dist/vee-validate/FieldCheckboxGroup.vue.d.ts +5 -1
  49. package/dist/vee-validate/FieldCurrencyInput.vue.d.ts +5 -1
  50. package/dist/vee-validate/FieldInput.vue.d.ts +5 -1
  51. package/dist/vee-validate/FieldMultiSelect.vue.d.ts +5 -1
  52. package/dist/vee-validate/FieldQuantityStepper.vue.d.ts +5 -1
  53. package/dist/vee-validate/FieldRadioGroup.vue.d.ts +5 -1
  54. package/dist/vee-validate/FieldSearchBar.vue.d.ts +5 -1
  55. package/dist/vee-validate/FieldSelect.vue.d.ts +5 -1
  56. package/dist/vee-validate/FieldSwitch.vue.d.ts +5 -1
  57. package/dist/vee-validate/FieldTextarea.vue.d.ts +5 -1
  58. package/dist/vee-validate/FieldUnitInput.vue.d.ts +5 -1
  59. package/dist/vee-validate/FieldVariantPicker.vue.d.ts +5 -1
  60. package/dist/vee-validate/context.d.ts +32 -7
  61. package/dist/vee-validate/index.d.ts +8 -5
  62. package/dist/vee-validate/types.d.ts +26 -0
  63. package/dist/vee-validate/useFieldControl.d.ts +59 -10
  64. package/dist/vee-validate.js +258 -74
  65. package/dist/vue-i18n.js +1 -1
  66. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ Release-please writes the generated notes from commit messages and does not repl
7
7
 
8
8
  ### Added
9
9
 
10
+ - **`validateOnMount`, `validateOnBlur` and `validateOnValueUpdate` on every `Field*`**, deciding per field when it validates: on mount (default `false`; the message is shown at once), on blur (default `true`), and on every value change once touched or submitted (default `false` for a typed control, `true` for a choice control). A submit always validates every field. They hold with `rules` on the field and with a `validationSchema` on the `Form` alike. `FIELD_VALIDATION_DEFAULTS`, `FIELD_CHOICE_VALIDATION_DEFAULTS` and `FIELD_VALIDATION_PROPS` are exported from `@eldrajs/ui/vee-validate`, and `FIELD_ONLY` now includes the three names.
11
+ - **`Notice`** — an inline message that stays in the page flow: `tone` (`info`, `success`, `warning`, `danger`; `data-tone` on the root), `title`, `text` / default slot, a default icon per tone (`icon` replaces it, `null` removes it), `headingLevel`, an `actions` slot and `classes`. `role="status"` for `info`, `success` and `warning`, `role="alert"` for `danger`; `announce: false` drops the role. New types `NoticeProps`, `NoticePart`, `NoticeTone`; `<EldraNotice>` through the resolver.
12
+ - **`StepIndicator`** — a non-interactive ordered list of steps: `steps` (`{ label, description? }`), `current` (index from 0), `orientation` (`horizontal`, `vertical`) and `classes`. `aria-current="step"` on the current step, "(completed)" / "(not started)" in visually hidden text on the others. New messages `stepCompleted`, `stepNotStarted`; new types `StepIndicatorProps`, `StepIndicatorStep`, `StepIndicatorOrientation`, `StepIndicatorState`, `StepIndicatorPart`; `<EldraStepIndicator>` through the resolver.
13
+ - **`RadioGroup` cards take a leading icon or logo**: `icon` on an option (a decorative 1.25rem icon between the radio and the title) and a `leading` slot (`{ option }`, for a logo or any other content; it wins over `icon`), centred against the title and the hint together. Cards only. New part `leading`. A card with neither renders as before.
14
+ - **`Spinner`** is exported: the circle `Button` and `LoadMore` draw, for a wait outside them. Decorative unless `label` names it (`role="img"`); 1.125rem unless a size class on it says otherwise. New type `SpinnerProps`; `<EldraSpinner>` through the resolver.
10
15
  - **`Skeleton`'s `box` variant and `height` prop**: one plain shimmering shape that is the component itself, sized by `width` / `height` or by classes on it (`<Skeleton variant="box" width="12rem" height="3rem" />`, `<Skeleton variant="box" class="h-24 rounded-full" />`). Unsized, it is full width and `--eldra-skeleton-box-height` tall (default `1rem`).
11
16
  - **`Skeleton` CSS variables**: `--eldra-skeleton-line-height`, `--eldra-skeleton-line-gap` and `--eldra-skeleton-title-height` size the `text` and `title` rows (defaults `0.875rem`, `0.3rem`, `1.5rem`, as before); `--eldra-skeleton-color`, `--eldra-skeleton-highlight` and `--eldra-skeleton-duration` set the fill, the glare and the shimmer's cycle. They apply to `Price`'s loading state too.
12
17
  - **`--eldra-button-border-width`** (default `1px`) sets the border width of every `Button` variant except `link`, at the same height; an attached `ButtonGroup` overlaps its buttons by the same width, so they still share one line.
@@ -74,6 +79,7 @@ Release-please writes the generated notes from commit messages and does not repl
74
79
 
75
80
  ### Changed
76
81
 
82
+ - **`@eldrajs/ui/vee-validate`: typed fields no longer revalidate while typing.** A `Field*` used to validate on every change of its value, so once it had been touched (or the form submitted) its message followed each keystroke. `FieldInput`, `FieldTextarea`, `FieldCurrencyInput`, `FieldUnitInput` and `FieldSearchBar` now validate when they lose focus and when the form is submitted, and never in between: while a value is being typed no message appears, and a message already showing stays until the next blur or submit. The choice controls (`FieldCheckbox`, `FieldCheckboxGroup`, `FieldRadioGroup`, `FieldSwitch`, `FieldSelect`, `FieldMultiSelect`, `FieldVariantPicker`, `FieldQuantityStepper`) keep validating on each change. The `Form`'s error summary and `errors` slot prop now change at the same moments as the fields. Set `validate-on-value-update` on a typed field to get the old live behaviour back.
77
83
  - **`Drawer` opens and closes with a short slide and fade of its panel** instead of sliding the whole viewport-wide root in, and no longer closes instantly. Tune it with `--eldra-drawer-slide` (default `2rem`), `--eldra-drawer-enter-duration` (400ms) and `--eldra-drawer-exit-duration` (260ms); reduced motion fades only. The `animate-eldra-drawer-in-*` classes are no longer on the root.
78
84
  - **The skeleton shimmer is slower and softer**: one sweep over the first 1.8s of a 3s cycle, eased at both ends, then a rest, with the glare a soft band rather than a wash the width of the shape. It was a 1.4s `ease-out` sweep, back to back.
79
85
  - **`Dialog` focuses itself on open, not its first control**, from the keyboard as from a tap, so a form dialog no longer opens with the caret (and, on leaving it, the blur validation) in its first field. `Tab` reaches the first control; mark a field `autofocus` to focus it instead. `useDialog` takes the same behaviour as `focusFirstControl: false`; `Drawer`, `Lightbox` and `SearchModal` are unchanged.
package/README.md CHANGED
@@ -207,6 +207,7 @@ Every component supports all five of these; none hard-codes anything a store mig
207
207
  | `LoadMore` | none — the status/meter/button sizes all reuse shared tokens (`text-body-sm`, `control-h`, `text-button-md`), no per-component variable |
208
208
  | `LogoItem` | `--eldra-logo-image-max-height` (default `2.5rem`), `--eldra-logo-image-max-width` (default `9rem`) — the logo image's contain box; `--eldra-logo-wordmark-size` (default `1.25rem`) — the wordmark fallback's font size (its weight, line-height and letter-spacing reuse `h2`/`h3` tokens directly, see `text-logo-wordmark` in `tailwind.css`) |
209
209
  | `NavMenu` | `--eldra-nav-menu-offset` (default `var(--eldra-space-2)`) — the gap between the bar and a panel, drawn as the panel's own top padding so a hovering pointer never leaves the menu; `--eldra-nav-menu-dropdown-min`/`-max` (defaults `14rem`/`24rem`, capped at `100vw - 2rem`) — a dropdown panel's width; `--eldra-nav-menu-column-min` (default `12rem`) — the narrowest a mega panel's column gets before the grid wraps (`classes.columns: 'grid-cols-5'` fixes the count instead). `--eldra-nav-menu-drawer-row-height` (default `3.5rem`) — every top-level row in the drawer, link, accordion row or section heading; `--eldra-nav-menu-drawer-indent` (default `var(--eldra-space-4)`) — how far a panel's links sit in from their row. The drawer itself and the badges are `Drawer` and `Badge`, each restyled through its own row |
210
+ | `Notice` | none — the three coloured tones tint their fill and border with `color-mix()` over the shared `--eldra-color-success`/`-warning`/`-danger` and `--eldra-color-background` tokens, no per-component variable |
210
211
  | `MultiSelect` | everything `Select` reads, plus `--eldra-select-pill-line` (the "+N" pill's line box) and `--eldra-checkbox-radius`/`--eldra-checkbox-border-width`, shared with `Checkbox` so a consumer restyles both at once; the tags' own colours `--eldra-select-tag-background` (default `var(--color-surface-strong)`), `--eldra-select-tag-text` (default `var(--color-text)`, also the remove button's hover colour and tint) and `--eldra-select-tag-muted` (default `var(--color-muted)`, the remove button at rest) — read by the tag and remove-button parts only, so `Chip` and a `tag` slot's content keep the theme |
211
212
  | `Pagination` | none — every size (the 2.5rem page link/`control-h` previous-next, the `target-touch` compact arrows, the 0.9375rem `text-control` compact status) reuses a shared token or a shared arbitrary spacing multiple, no per-component variable |
212
213
  | `Popover` | `--eldra-z-popover` (default `30`), shared with the other popover panels; `--eldra-popover-background` (default `var(--color-background)`), `--eldra-popover-border` (default `var(--color-border)`) and `--eldra-popover-text` (no default: unset, the panel inherits its colour as before) — the panel chrome's own colours, read by the `panel` part only, so setting them recolours it without re-theming the slotted content the way redefining `--eldra-color-*` there would. No size variable: it has no fixed size to clamp, unlike `Select`'s panel |
@@ -223,6 +224,8 @@ Every component supports all five of these; none hard-codes anything a store mig
223
224
  | `Select` | `--eldra-select-panel-max-height` (default `20rem`), `--eldra-select-panel-max-width` (default `22rem`, clamped to `90vw`), `--eldra-z-popover` (default `30`), `--eldra-field-radius`, `--eldra-field-border-width`, `--eldra-select-group-tracking`, `--eldra-select-option-line`, `--eldra-select-swatch-edge`, the `--eldra-select-match-*` trio, and `--eldra-popover-origin` (`top left` / `bottom left`, set by the panel from the placement it resolved to); and the panel chrome's own colours, the `--eldra-select-panel-*` family `MultiSelect` and `SearchBar` read too: `--eldra-select-panel-background` (default `var(--color-background)`; the panel, `MultiSelect`'s footer and an unchosen option box), `--eldra-select-panel-border` (default `var(--color-border)`; the panel's edge, the search field's divider, group and create-row hairlines, the footer's top line), `--eldra-select-panel-text` (default `var(--color-text)` on the search field, the option and create rows; unset, the panel itself inherits its colour as before), `--eldra-select-panel-muted` (default `var(--color-muted)`; the search icon and placeholder, group headings, disabled rows, hints, untoned meta, the empty and loading rows, the footer count), `--eldra-select-panel-active` (default `var(--color-surface-strong)`; the active row's fill), `--eldra-select-panel-check` (the selected mark: default `var(--color-text)` for `Select`'s check, `var(--color-primary)` for `MultiSelect`'s filled box), `--eldra-select-panel-check-contrast` (default `var(--color-primary-contrast)`, `MultiSelect`'s tick) and `--eldra-select-panel-check-border` (default `var(--color-border-strong)`, an unchosen box's edge) — read by the panel's parts only, so setting them on `:root` or the teleport target recolours the panel without re-theming slotted option content the way redefining `--eldra-color-*` there would |
224
225
  | `SiteForm` | none of its own: it composes `FormLayout`, `FieldWrapper`, `Input`, `Textarea`, `Select`, `Checkbox` and `Button`, each restyled through its own row; its `classes` reach their parts (see [Site forms](#site-forms)) |
225
226
  | `Skeleton` | `--eldra-skeleton-line-height` (default `0.875rem`) and `--eldra-skeleton-line-gap` (default `0.3rem`, above and below) for `text` rows, `--eldra-skeleton-title-height` (default `1.5rem`), `--eldra-skeleton-box-height` (default `1rem`, an unsized `box`), `--eldra-skeleton-color` (default `surface-strong`, the shape's fill), `--eldra-skeleton-highlight` (default `background` at 60%, the glare) and `--eldra-skeleton-duration` (default `3s`, one sweep and its rest; the sweep is its first 60%); `width` still sets an inline style (see the Deviations entry) |
227
+ | `Spinner` | none — it is drawn in `currentColor` and sized by a class on the component (1.125rem without one) |
228
+ | `StepIndicator` | none — reads only the shared tokens from layer 1 |
226
229
  | `StockBadge` | `--eldra-stock-status-line` (default `1.4`) — the status line text's line ratio, no token of its own |
227
230
  | `Switch` | `--eldra-switch-radius` (default `var(--eldra-radius-full)`), `--eldra-switch-track-border-width` (default `1.5px`), `--eldra-switch-thumb-offset` (default `0.1875rem`, the thumb's rest inset from the track's start edge) |
228
231
  | `Tab` | none — reads only the shared tokens from layer 1, plus `VariantPicker`'s `text-variant-pill` type style (no per-component variable of its own; see that component's row) |
@@ -1109,11 +1112,66 @@ Vue refuses a `v-slot` on a component that also has named slot templates as chil
1109
1112
  go in an explicit `<template #default="{ errors }">` whenever there is an actions row — which there
1110
1113
  almost always is.
1111
1114
 
1112
- `errors` is keyed by each field's `name`, and holds only the messages that should currently
1113
- **show**: a field appears there once it has been touched or the form has been submitted. That is
1114
- the same gate each `Field*` puts on its own `aria-invalid`, so the wrapper and the control cannot
1115
- disagree about whether the field is in error. The other default-slot props are `values`, `meta`,
1116
- `isSubmitting` and `submitCount`.
1115
+ `errors` is keyed by each field's `name`, and holds only the messages the fields are currently
1116
+ **showing**: each `Field*` reports the message it shows, and `errors` (and the error summary) is
1117
+ that report. So the wrapper, the control's own `aria-invalid` and the summary cannot disagree about
1118
+ whether a field is in error, and they change at the same moment. The other default-slot props are
1119
+ `values`, `meta`, `isSubmitting` and `submitCount`.
1120
+
1121
+ ### When a field validates
1122
+
1123
+ Three boolean props on every `Field*` decide it, field by field:
1124
+
1125
+ | Prop | Default | What it does |
1126
+ | ----------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
1127
+ | `validateOnBlur` | `true` | Validates the field when it loses focus and shows or clears its message then. `false`: a blur only marks the field touched. |
1128
+ | `validateOnValueUpdate` | `false` typed, `true` choice (below) | Validates on every change of the value; the message follows each change once the field has been touched or the form submitted. |
1129
+ | `validateOnMount` | `false` | Validates as soon as the field mounts **and shows the message at once**, without waiting for a blur or a submit (an edit form over stored data). |
1130
+
1131
+ Submitting the form always validates every field and shows every result, whatever the props say.
1132
+
1133
+ `validateOnValueUpdate` has two defaults, by the kind of control:
1134
+
1135
+ | Kind | Components | `validateOnValueUpdate` | Why |
1136
+ | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1137
+ | Typed | `FieldInput`, `FieldTextarea`, `FieldCurrencyInput`, `FieldUnitInput`, `FieldSearchBar` | `false` | The value is built up one keystroke at a time, so validating each change would judge a half-typed value. |
1138
+ | Choice | `FieldCheckbox`, `FieldCheckboxGroup`, `FieldRadioGroup`, `FieldSwitch`, `FieldSelect`, `FieldMultiSelect`, `FieldVariantPicker`, `FieldQuantityStepper` | `true` | One click or selection is the whole value, often with no blur after it: a box that only validated on blur would go on saying "required" after it had been ticked. |
1139
+
1140
+ `FieldQuantityStepper` is a choice although it has a text field: a `QuantityStepper` writes its
1141
+ value only when a typed number is committed (on blur or `Enter`) or a button is pressed, never per
1142
+ keystroke, so every change it reports is a complete quantity.
1143
+
1144
+ So in a typed field, **typing never changes what the customer sees**: no message appears while a
1145
+ value is being typed, and a message already showing stays until the field is left or the form is
1146
+ submitted. A choice field answers the click: once it has been touched or the form submitted, its
1147
+ message appears or goes with each change. Every default can be overridden per field:
1148
+
1149
+ ```vue
1150
+ <!-- Typed default: on blur, and on submit. -->
1151
+ <FieldInput name="email" type="email" />
1152
+
1153
+ <!-- Live: as the default, plus every change once the field is touched or the form submitted. -->
1154
+ <FieldInput name="email" type="email" validate-on-value-update />
1155
+
1156
+ <!-- Submit only: nothing until the form is submitted, and nothing again until the next submit. -->
1157
+ <FieldInput name="email" type="email" :validate-on-blur="false" />
1158
+
1159
+ <!-- Choice default: live. Turn it off to make a checkbox wait for a blur or a submit. -->
1160
+ <FieldCheckbox name="terms" :validate-on-value-update="false">I agree</FieldCheckbox>
1161
+ ```
1162
+
1163
+ The same holds with `rules` on the field and with a `validationSchema` on the `Form`. A field
1164
+ holds the message it shows and changes it only at its own moments, because vee-validate's own
1165
+ error state can move at others: with a form-level schema, validating one field revalidates every
1166
+ field that has been validated before, so another field's blur would otherwise clear or change the
1167
+ message under a field that is still being typed in. A server error (`apiErrors`) is the exception
1168
+ in both directions: it shows at once, and goes the moment its own field is edited.
1169
+
1170
+ `validateOnValueUpdate` is vee-validate's own `useField` option and is read once, when the field is
1171
+ set up; the other two are read each time. There is no form-level switch: set the props per field.
1172
+ `FIELD_VALIDATION_DEFAULTS` (typed), `FIELD_CHOICE_VALIDATION_DEFAULTS` (choice) and
1173
+ `FIELD_VALIDATION_PROPS` are exported beside `FIELD_ONLY` for a wrapper of your own built on
1174
+ `useFieldControl`.
1117
1175
 
1118
1176
  Three of the controls own an `error` prop of their own — `FieldRadioGroup`, `FieldCheckboxGroup`
1119
1177
  and `FieldQuantityStepper` — and those draw their message themselves **only outside** a
@@ -1273,6 +1331,79 @@ comparing the package against the spec can tell an addition from a drift.
1273
1331
  `tagPlacement: 'inside'` with `maxTagRows`, and `maxSummary: 'fit'`. `Tab`: `disabled`.
1274
1332
  `Switch`: `thumb`/`trackStart`/`trackEnd` slots, `invalid`. `Checkbox`: box alone without a
1275
1333
  label. `Button`: pressed fill on `ghost`, a static string `as` tag, `keepNameWhileLoading`.
1334
+ - **`Notice`, `StepIndicator` and an exported `Spinner`** (operator decision, 2026-11-15, for
1335
+ Eldra's hosted checkout; none is in spec 1, and none holds checkout wording or data). Each is
1336
+ written up here in the spec's own section shape, since the spec has no section to point at.
1337
+
1338
+ **`Notice`** — a message that stays in the page flow: guidance beside a form, or the outcome of
1339
+ something the visitor did. Not a `Toast` (which floats, times out and lives in a `Toaster`'s live
1340
+ region), not an `EmptyState` (a whole region with nothing to show), not a field error
1341
+ (`FieldWrapper`). No close button and no focus movement.
1342
+
1343
+ - _Anatomy_: `root` · `icon` (optional, first in the row) · `content` holding `title` (optional),
1344
+ `text` (the body) and `actions` (optional row of buttons or links).
1345
+ - _Properties_: `tone` (`info` default, `success`, `warning`, `danger`; also `data-tone` on the
1346
+ root), `title`, `text`, `icon` (a component replaces the tone's default, `null` removes it),
1347
+ `headingLevel` (2–6: the title becomes a heading; otherwise a `<p>`), `announce` (default
1348
+ `true`), `classes`. Slots: `default` (body, over `text`), `title`, `actions`.
1349
+ - _Sizes_: padding 0.75rem block / 1rem inline, 0.75rem gap, `radius-md`, 1px border, no shadow;
1350
+ icon 1.25rem at stroke 1.75, nudged 0.125rem down; title and body 0.875rem (`text-body-sm`), the
1351
+ title weight 600; actions 0.5rem below the body, 0.75rem apart.
1352
+ - _States_: `info` is `surface` with a `border` hairline and a `text` icon. The other three fill
1353
+ with their colour role mixed 92% toward `background`, border the same role mixed 60% toward
1354
+ `background`, icon in the full role colour; title and body are `text` on every tone. Default
1355
+ icons: `info-circle`, `circle-check`, `alert-triangle`, `alert-circle` (`Toast`'s own four), so
1356
+ colour is never the only signal (1.4.1).
1357
+ - _Keyboard_: none of its own. `Tab` reaches whatever the `actions` slot or the body holds, in
1358
+ document order.
1359
+ - _Accessibility_: `info`, `success` and `warning` are `role="status"` (polite); `danger` is
1360
+ `role="alert"` (assertive) — the same split `Toast` makes. `announce: false` drops the role,
1361
+ for a notice inside an element that is already a live region (two nested regions announce
1362
+ twice) or one that is static page content from the first render. Icons are `aria-hidden`.
1363
+
1364
+ **`StepIndicator`** — an ordered list showing how far something has come. It reports only: no
1365
+ step is a link or a button. Steps a visitor moves between are `Tabs`.
1366
+
1367
+ - _Anatomy_: `root` (an `<ol>`) · `step` (an `<li>`) holding `marker` and `content`; `content`
1368
+ holds `label` (with `labelIcon`, the check before a done label when horizontal, and `status`,
1369
+ the visually hidden state) and `description` (optional secondary line: a date, a place).
1370
+ - _Properties_: `steps` (`{ label, description? }[]`), `current` (index from 0; `steps.length`
1371
+ marks every step done, a negative number every step upcoming), `orientation` (`horizontal`
1372
+ default, `vertical`; also `data-orientation`), `classes`. Each step carries `data-state`
1373
+ (`done`, `current`, `upcoming`). Attributes reach the `<ol>`: name it with `aria-label`.
1374
+ - _Sizes_: horizontal — equal columns (`minmax(0, 1fr)` each) 0.5rem apart, marker a 0.25rem
1375
+ full-radius bar across the column, 0.5rem above the text. Vertical — steps 0.75rem apart, marker
1376
+ a 1.25rem circle 0.625rem before the text. Label 0.875rem, description 0.8125rem
1377
+ (`text-caption`); check 1rem (horizontal) or 0.875rem (in the circle) at stroke 2.25.
1378
+ - _States_: done — marker `primary`, label `text` weight 400, with a check (before the label
1379
+ when horizontal, inside the circle when vertical). Current — marker `primary` (vertical: a
1380
+ `primary-contrast` dot inside), label `text` weight 600. Upcoming — marker `border` (vertical:
1381
+ an empty `border-strong` ring), label `muted`, no icon. Every marker keeps a border, so it
1382
+ survives forced colours.
1383
+ - _Keyboard_: none. Nothing in it is focusable; `Tab` passes over it.
1384
+ - _Accessibility_: a real `<ol>`, so the count and each position are announced.
1385
+ `aria-current="step"` on the current step; the other two say "(completed)" / "(not started)"
1386
+ in visually hidden text after the label (`messages.stepCompleted`, `messages.stepNotStarted`).
1387
+ Markers and icons are `aria-hidden`. State never rests on colour alone: check, weight, or
1388
+ neither.
1389
+
1390
+ **`Spinner`** — the circle `Button`, `LoadMore`, `Price` and `StockBadge` already drew, exported
1391
+ for a wait that is not inside one of them. One prop, `label`: without it the spinner is
1392
+ decorative (`aria-hidden`), with it `role="img"` named by the label — `Icon`'s own rule. It is
1393
+ never a live region; the busy region around it announces the wait. 1.125rem unless a size class
1394
+ on the component says otherwise (the class replaces the default through `mergeClass`), drawn in
1395
+ `currentColor`. Turning every 700ms; a pulse instead under reduced motion.
1396
+
1397
+ - **`RadioGroup` cards' leading part** (operator decision, 2026-11-15): `icon` on an option and a
1398
+ `leading` slot (`{ option }`), for an icon or a logo between the radio and the title — the spec's
1399
+ card anatomy has radio, title, hint and meta only. Cards only, like `meta`. An option with an
1400
+ `icon`, or any option once the slot is given, takes a fourth grid column
1401
+ (`auto auto 1fr auto`): the `leading` part sits in column 2, centred against the title and the
1402
+ hint together (it spans both rows when there is a hint), and the hint and meta move one column
1403
+ on. A card with neither keeps its three columns and renders exactly as before. The part is
1404
+ inside the option's `<label>`, so a click on it selects the option; the `icon` is drawn
1405
+ `aria-hidden` at 1.25rem / stroke 1.75, and a logo in the slot that only repeats the title
1406
+ should be `alt=""`. Nothing about the keyboard changes.
1276
1407
  - **`SiteForm` and `useSiteForm`**: a form from the platform's Forms API, drawn from its public
1277
1408
  definition with this package's own controls, checked by the platform's rules and submitted
1278
1409
  through `@eldrajs/sdk`. The spec has form controls and a form layout but no platform form; see
@@ -1590,8 +1721,8 @@ children?, layout?, groups? }`, one level of children. Children sharing a `group
1590
1721
  While it is on, the value keeps its text and its place, dimmed to `--eldra-revalidating-opacity`
1591
1722
  (a shared token, default `0.75`, applied through the `eldra-revalidating` utility — per value part,
1592
1723
  never on the root, because CSS opacity composites and a dimmed root would take the spinner down
1593
- with it); a `1em` spinner — the same shape `Button` draws, from the package's own internal
1594
- `Spinner.vue` — is drawn beside it; the root carries `aria-busy="true"`; and a visually hidden
1724
+ with it); a `1em` spinner — the same shape `Button` draws, the package's own `Spinner`
1725
+ — is drawn beside it; the root carries `aria-busy="true"`; and a visually hidden
1595
1726
  `aria-live="polite"` region reads `messages.updatingPrice` / `messages.updatingStock`.
1596
1727
 
1597
1728
  **The spinner reserves no space at all.** It is a flex item of width `0` whose negative
@@ -2520,15 +2651,15 @@ aria-busy aria-label="Loading product"`, `ContentCard`'s loading root now matche
2520
2651
  wrapper is in the root entry and cannot know about vee-validate, and a control cannot write to
2521
2652
  the wrapper that provides its context — so `Form`'s default slot carries `errors`, keyed by field
2522
2653
  `name`, and the wrapper is bound to it (`:error="errors.email"`). It carries only the messages
2523
- that should currently show, on the same "touched, or the form has been submitted" gate each
2524
- `Field*` puts on its own `aria-invalid`, so the two cannot disagree.
2654
+ the fields are currently showing — each `Field*` reports its own — so the wrapper and the
2655
+ control's `aria-invalid` cannot disagree.
2525
2656
  - **`Form` adds `successMessage`, which is not in the spec's Form layout property table.** The
2526
2657
  spec's Success state asks for the confirmation to be "announced in a polite live region", and
2527
2658
  `FormLayout` already has that region (`statusMessage`) — `successMessage` is simply the half a
2528
2659
  form component can own: it fills the region once a submit passes validation. The visible half —
2529
2660
  replacing the form or navigating — stays the page's. An explicit `statusMessage` wins over it.
2530
- - **A server error shows immediately, without waiting for a blur or a submit.** The display gate
2531
- above exists so a rule message does not appear under a half-typed value; an `apiErrors` entry is
2661
+ - **A server error shows immediately, without waiting for a blur or a submit.** A rule message
2662
+ waits for one of those so it does not appear under a half-typed value; an `apiErrors` entry is
2532
2663
  the answer to a submit that has already happened, so there is nothing left to wait for — and a
2533
2664
  form rendered with errors from an earlier round trip would otherwise show none of them.
2534
2665
  - **`FieldSearchBar` takes neither an `id` nor a `name` from the field.** A `SearchBar` sets its
@@ -2546,11 +2677,17 @@ aria-busy aria-label="Loading product"`, `ContentCard`'s loading root now matche
2546
2677
  validate in the browser. `action` and `method` are still forwarded (they are `FormLayout`'s
2547
2678
  props), and the hidden native `<select>` inside every `Select` still carries its value — so a
2548
2679
  scripting-free post is one `FormLayout` away, without this entry.
2549
- - **Fields are revalidated while submitting.** The spec's Submitting state says the fields "stay
2550
- editable but aren't re-validated". vee-validate revalidates on value update regardless of
2551
- `isSubmitting`, and suppressing that would mean a field edited mid-flight keeping a message that
2552
- no longer matches its value. The _display_ gate is unchanged, so nothing new appears while the
2553
- customer is mid-word.
2680
+ - **A field validates on blur from the start, not only "for fields that were invalid after the
2681
+ first submit"** (operator decision, 2026-11-15). The spec's rule is "Validate on submit, then on
2682
+ blur for fields that were invalid after the first submit"; here every `Field*` validates on blur
2683
+ by default (`validateOnBlur`), before a first submit too. A typed field never validates while
2684
+ typing unless `validateOnValueUpdate` is set; a choice field (a checkbox, a select) validates on
2685
+ each change by default. Until 0.3.x a field revalidated on every change and its message
2686
+ followed each keystroke once it had been touched. See [When a field validates](#when-a-field-validates).
2687
+ - **Fields can be revalidated while submitting.** The spec's Submitting state says the fields "stay
2688
+ editable but aren't re-validated". A blur still validates its field while a submit is in flight
2689
+ (and a `validateOnValueUpdate` field still follows its value): suppressing that would leave a
2690
+ field edited mid-flight with a message that no longer matches its value.
2554
2691
  - **A `group` `FieldWrapper` renders `tabindex="-1"` on its `<fieldset>`.** Not in the spec's
2555
2692
  anatomy; it is what makes an error summary's link land. A group has no single control, so the
2556
2693
  summary points `#<id>` at the fieldset itself, and a browser moves focus to a fragment's target