An open source design system that's fully customizable and agent ready
TypeScript
spec(Selector): record adaptive as the default presentation (DEC-1) (#6809)
David Petersen384b82ed6174
diff --git a/packages/core/src/Selector/Selector.spec.md b/packages/core/src/Selector/Selector.spec.mdindex 85f3227717..4ee5fa009b 100644--- a/packages/core/src/Selector/Selector.spec.md+++ b/packages/core/src/Selector/Selector.spec.md@@ -45,11 +45,16 @@ connection between the closed trigger and its selection surface.## Compatibility and migration-- Released defaults and behavior remain unchanged by this record.+- Released defaults and behavior are unchanged except the `presentation`+ default, which DEC-1 sets.- `indicatorPosition` defaults to `end`; a rendered selection mark occupiesspace at that logical edge, while an empty resolved indicator occupies none.-- `presentation` defaults to `popover`. `bottom-sheet` is an explicit modal- presentation, and `adaptive` selects it on compact coarse-pointer screens.+- `presentation` defaults to `adaptive` (DEC-1): the modal bottom sheet on+ compact coarse-pointer screens and the anchored popover otherwise. `popover`+ and `bottom-sheet` pin one surface on every device. The default is a+ stable-default change, so it ships as `[breaking]` in a scheduled minor under+ `spec:AST-017`; callers that need the anchored popover on every device pass+ `popover`.- `hasClear` changes the value contract to include `null`; that distinction isalready part of the public type.- `isReadOnly` is additive and defaults to `false`. It preserves the selected@@ -82,15 +87,15 @@ connection between the closed trigger and its selection surface.This table names semantic concepts reviewers need. Prop syntax, complete defaults,and examples remain in `Selector.doc.mjs`.-| Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior |-| ---------------------- | -------------------------------------- | -------------------------------------------------------- | ----------------------------------------- | --------- | -------- | --------- | ------------------------------- |-| trigger variant | `input`, `ghost` | Form-field or toolbar presentation | All trigger states | `input` | Selector | released | TypeScript rejects other values |-| size | `sm`, `md`, `lg` | Trigger and option-row density | All presentations | `md` | Selector | released | TypeScript rejects other values |-| selected-mark position | `start`, `end` | Logical edge containing a rendered selection mark | Every option row | `end` | Selector | released | TypeScript rejects other values |-| presentation | `popover`, `bottom-sheet`, `adaptive` | Anchored pointer surface or modal compact-touch surface | All trigger variants | `popover` | Selector | released | TypeScript rejects other values |-| popup semantics | `listbox`; modal dialog containing one | Semantics follow the active presentation | Popover; bottom sheet | `listbox` | Selector | released | No separate role prop is public |-| option-row state | `selected`, `disabled` | Stable theming state on each option row | Every rendered option | neither | Selector | released | Unknown states are not emitted |-| read-only state | `false`, `true` | Preserves and submits value without selection affordance | Closed trigger | `false` | Caller | additive | Boolean normalization |+| Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior |+| ---------------------- | -------------------------------------- | -------------------------------------------------------- | ----------------------------------------- | ---------- | -------- | --------- | ------------------------------- |+| trigger variant | `input`, `ghost` | Form-field or toolbar presentation | All trigger states | `input` | Selector | released | TypeScript rejects other values |+| size | `sm`, `md`, `lg` | Trigger and option-row density | All presentations | `md` | Selector | released | TypeScript rejects other values |+| selected-mark position | `start`, `end` | Logical edge containing a rendered selection mark | Every option row | `end` | Selector | released | TypeScript rejects other values |+| presentation | `popover`, `bottom-sheet`, `adaptive` | Anchored pointer surface or modal compact-touch surface | All trigger variants | `adaptive` | Selector | released | TypeScript rejects other values |+| popup semantics | `listbox`; modal dialog containing one | Semantics follow the active presentation | Popover; bottom sheet | `listbox` | Selector | released | No separate role prop is public |+| option-row state | `selected`, `disabled` | Stable theming state on each option row | Every rendered option | neither | Selector | released | Unknown states are not emitted |+| read-only state | `false`, `true` | Preserves and submits value without selection affordance | Closed trigger | `false` | Caller | additive | Boolean normalization |## Behavioral and layout contract@@ -124,7 +129,7 @@ These requirements describe shipped behavior on current `main`.| closed with no value | Label and placeholder identify the field | Consumer placeholder text || closed with a value | Selected option is represented in the trigger | Custom `renderValue` content || pointer / popover | Anchored surface exposes the listbox without modal-dialog semantics | Default or explicit placement |-| compact coarse pointer | BottomSheet exposes a modal dialog containing the listbox | Explicit `bottom-sheet` or resolved `adaptive` |+| compact coarse pointer | BottomSheet exposes a modal dialog containing the listbox | Default or explicit `adaptive`, or explicit `bottom-sheet` || searching | Visible options, keyboard navigation, and announced result count use one filter | Consumer search and empty text || loading | Trigger is busy; empty and no-results output is suppressed | Consumer loading duration || disabled with reason | Trigger remains focusable enough to expose the reason while activation stays blocked | Consumer reason text |@@ -294,8 +299,19 @@ new theming target.## Decision log-No component-local future decision is recorded here. FR3 implements the-system decision owned by `spec:AST-004/DEC-1`.+FR3 implements the system decision owned by `spec:AST-004/DEC-1`.++### DEC-1 — Default presentation is `adaptive`++**Reference:** `component:Selector/DEC-1`+**Decider:** `cixzhang`, `2026-10-06`++An omitted `presentation` resolves `adaptive` (FR4): the modal bottom sheet on+compact coarse-pointer screens and the anchored popover elsewhere, so+fine-pointer and large-screen output matches `popover`. `adaptive` keeps its+width-and-pointer query; a pointer-only test belongs to `spec:AST-043` OQ1.+Rejected: keeping `popover` as the default, because a phone then gets a+pointer-sized anchored list unless the caller opts in.## Open questions