@kirana-ui/vue 0.2.0 → 0.3.0

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 (50) hide show
  1. package/llms.txt +303 -82
  2. package/package.json +6 -2
  3. package/skills/kirana-ui-primitives/SKILL.md +29 -8
  4. package/src/alert-dialog.d.ts +2 -2
  5. package/src/autocomplete.d.ts +2 -2
  6. package/src/avatar.d.ts +31 -4
  7. package/src/avatar.js +39 -15
  8. package/src/avatar.js.map +1 -1
  9. package/src/calendar.d.ts +17 -11
  10. package/src/calendar.js +76 -11
  11. package/src/calendar.js.map +1 -1
  12. package/src/checkbox-group-context.d.ts +5 -0
  13. package/src/checkbox-group-context.js +6 -0
  14. package/src/checkbox-group-context.js.map +1 -0
  15. package/src/checkbox-group.d.ts +12 -0
  16. package/src/checkbox-group.js +44 -0
  17. package/src/checkbox-group.js.map +1 -0
  18. package/src/checkbox.d.ts +1 -0
  19. package/src/checkbox.js +9 -2
  20. package/src/checkbox.js.map +1 -1
  21. package/src/combobox.d.ts +23 -1
  22. package/src/combobox.js +51 -3
  23. package/src/combobox.js.map +1 -1
  24. package/src/command.js +2 -0
  25. package/src/command.js.map +1 -1
  26. package/src/date-picker.d.ts +8 -5
  27. package/src/date-picker.js +12 -1
  28. package/src/date-picker.js.map +1 -1
  29. package/src/dialog.d.ts +19 -0
  30. package/src/dialog.js +4 -1
  31. package/src/dialog.js.map +1 -1
  32. package/src/drawer.d.ts +2 -2
  33. package/src/index.d.ts +6 -3
  34. package/src/index.js +2 -1
  35. package/src/number-field.d.ts +33 -1
  36. package/src/number-field.js +98 -68
  37. package/src/number-field.js.map +1 -1
  38. package/src/otp.js +2 -0
  39. package/src/otp.js.map +1 -1
  40. package/src/popover.d.ts +26 -3
  41. package/src/popover.js +36 -4
  42. package/src/popover.js.map +1 -1
  43. package/src/radio-group.js +6 -2
  44. package/src/radio-group.js.map +1 -1
  45. package/src/select.d.ts +1 -0
  46. package/src/select.js +2 -0
  47. package/src/select.js.map +1 -1
  48. package/src/slider.d.ts +5 -0
  49. package/src/slider.js +1 -0
  50. package/src/slider.js.map +1 -1
package/llms.txt CHANGED
@@ -8,7 +8,7 @@ Generated from the library's own source (`bun scripts/llms.ts`), and checked aga
8
8
 
9
9
  Install `@kirana-ui/vue`. It is enough: the core it is built on comes with it, and what the core gives an application is also an entry of this package (`@kirana-ui/vue/agent`, `@kirana-ui/vue/testing`), so nothing is imported from a package the project did not install.
10
10
 
11
- Its entries: an entry per component (`@kirana-ui/vue/tabs`, 48 of them, each named under its component below), the package root `@kirana-ui/vue` (every component at once, for a bundler that shakes trees), and `@kirana-ui/vue/runtime`, `@kirana-ui/vue/agent`, `@kirana-ui/vue/testing`, `@kirana-ui/vue/primitive` and `@kirana-ui/vue/direction`. No other path is an entry: `DirectionProvider` and `useDirection` are in `@kirana-ui/vue/direction`, `PortalProvider` in the package root.
11
+ Its entries: an entry per component (`@kirana-ui/vue/tabs`, 49 of them, each named under its component below), the package root `@kirana-ui/vue` (every component at once, for a bundler that shakes trees), and `@kirana-ui/vue/runtime`, `@kirana-ui/vue/agent`, `@kirana-ui/vue/testing`, `@kirana-ui/vue/primitive` and `@kirana-ui/vue/direction`. No other path is an entry: `DirectionProvider` and `useDirection` are in `@kirana-ui/vue/direction`, `PortalProvider` in the package root.
12
12
 
13
13
  The attributes and CSS variables below are also data and typed selectors, for a design system: install `@kirana-ui/vocabulary` for them (`import { vocabulary } from "@kirana-ui/vocabulary"`, `import { Dialog } from "@kirana-ui/vocabulary/keys"`: `Dialog.Popup.open` is `"[data-open]"`). It is its own package, and not installed with this one.
14
14
 
@@ -20,9 +20,14 @@ What every `Positioner` takes, beside its own props where a component's section
20
20
 
21
21
  - `side?: Side`: The side of the anchor the popup is on. `inline-start` and `inline-end` follow the reading direction the popup is placed in, and `data-side` then says the side in the same words. Default `"bottom"`.
22
22
  - `align?: Align`: Where along that side the popup is: at the anchor's start, its centre or its end. Default `"center"`.
23
- - `sideOffset?: number`: The gap between the anchor and the popup, measured without any arrow. Default `0`.
24
- - `alignOffset?: number`: How far the popup is moved along the side from where `align` puts it, in pixels. Default `0`.
25
- - `collisionPadding?: number`: Kept between the popup and the viewport's edges. Default `5`.
23
+ - `sideOffset?: number | OffsetFunction`: The gap between the anchor and the popup, measured without any arrow: a number of pixels, or a function of what was measured (`({ side, align, anchor, positioner }) => number`). Default `0`.
24
+ - `alignOffset?: number | OffsetFunction`: How far the popup is moved along the side from where `align` puts it: a number of pixels, or a function of what was measured (`({ side, align, anchor, positioner }) => number`). Default `0`.
25
+ - `collisionPadding?: CollisionPadding`: Kept between the popup and the edges it is held inside: one number, or one for each side (`{ top, right, bottom, left }`, a side left out is 0). Default `5`.
26
+ - `collisionBoundary?: CollisionBoundary`: What the popup is held inside: an element, several, or a rectangle of the viewport. Left out or `"clipping-ancestors"`: the ancestors that clip it, and the viewport.
27
+ - `collisionAvoidance?: CollisionAvoidance`: What the popup does when it does not fit: `side` and `align` each `"flip"`, `"shift"` or `"none"`, and `fallbackAxisSide`. Left out: it flips to the opposite side and is moved along its side.
28
+ - `sticky?: boolean`: Keeps the popup in view once its anchor has been scrolled out of it. Otherwise the popup leaves with its anchor. Default `false`.
29
+ - `arrowPadding?: number`: Kept between an arrow and the ends of the popup's edge, so the arrow does not stand on a rounded corner. Default `5`.
30
+ - `positionMethod?: "absolute" | "fixed"`: The CSS `position` the positioner is given: `"absolute"` or `"fixed"`. Default `"absolute"`.
26
31
  - `anchor?: PositionerAnchor`: What the popup is placed against, when that is not its trigger. It may change while the popup is open: the popup follows.
27
32
 
28
33
  A component's own defaults lie over those: `Autocomplete` `{ align: "start" }`; `Combobox` `{ align: "start" }`; `ContextMenu` `{ align: "start" }`, and `{ side: "inline-end", align: "start" }` for a submenu or for a menu in a vertical menubar; `HoverCard` `{ side: "top" }`; `Menu` `{ align: "start" }`, and `{ side: "inline-end", align: "start" }` for a submenu or for a menu in a vertical menubar; `NavigationMenu` `{ align: "start" }`; `Select` `{ align: "start" }`; `Tooltip` `{ side: "top" }`.
@@ -33,11 +38,17 @@ The named types the props below mention, each with the entry of this package it
33
38
 
34
39
  - `Align` (`@kirana-ui/vue`): `"start" | "center" | "end"`. Where along its side a popup is: at the anchor's start, its centre or its end.
35
40
  - `Anchor` (`@kirana-ui/vue`): `Element | VirtualElement`. What a popup is placed against: an element, or a place in the viewport that is none.
36
- - `CalendarDay` (`@kirana-ui/vue`): A day in the grid of the month shown.
41
+ - `CalendarDay` (`@kirana-ui/vue`): A day in the grid of a month shown.
37
42
  - `date: IsoDate`
38
43
  - `label: string`: The day of the month as the locale writes it.
39
- - `outside: boolean`: Not of the month shown: the days that fill its first and last weeks.
40
- - `CalendarValue` (`@kirana-ui/vue`): `IsoDate | DateRange | null`. What a calendar holds: a day, a range of days in `mode: "range"`, or `null` for none.
44
+ - `outside: boolean`: Not of the month it is drawn in: the days that fill its first and last weeks.
45
+ - `CalendarMonth` (`@kirana-ui/vue`): One of the months shown, as `Calendar.Months` gives it.
46
+ - `index: number`: Its place among the months shown, from 0.
47
+ - `month: IsoDate`: Its first day.
48
+ - `title: string`: Its name as the locale writes it (`"March 2026"`).
49
+ - `weekdays: readonly CalendarWeekday[]`
50
+ - `weeks: readonly (readonly CalendarDay[])[]`
51
+ - `CalendarValueOf<Mode extends CalendarMode | undefined>` (`@kirana-ui/vue`): `Mode extends "range" ? DateRange | null : Mode extends "multiple" ? readonly IsoDate[] : IsoDate | null`. The value of one mode: a day or `null`, a range or `null`, or a list (empty for none). What `value` and `onValueChange` are typed by, from the `mode` a root is given.
41
52
  - `CalendarWeekday` (`@kirana-ui/vue`): A day of the week, as a column's heading names it.
42
53
  - `index: number`: Its place in the week as the locale orders it, from 0.
43
54
  - `narrow: string`: Its name as a column's heading (`"M"`, `"Mo"`), and in full (`"Monday"`).
@@ -51,6 +62,34 @@ The named types the props below mention, each with the entry of this package it
51
62
  - `canceled: boolean`
52
63
  - `Changes<Name extends string, Value, Details = ChangeDetails>` (`@kirana-ui/vue/runtime`): `{ [Event in `update:${Name}`]: (value: Value) => void } & { [Event in `${Name}Change`]: (value: Value, details: Details) => void }`. The two events of a value its caller may hold: `update:open`, which `v-model:open` hears, and `openChange`, which also carries the details and may cancel the change.
53
64
  - `ChangeSource` (`@kirana-ui/vue`): `"mouse" | "touch" | "pen" | "keyboard" | "virtual" | "programmatic" | "agent"`. What made a change: a kind of pointer, the keyboard, a press with no pointer (`virtual`), code with no event (`programmatic`), or an agent acting through the bridge.
65
+ - `CollisionAvoidance` (`@kirana-ui/vue`): What a popup does when it does not fit where it was asked to be.
66
+ - `side?: "flip" | "shift" | "none"`: Across from the anchor: `"flip"` goes to the opposite side, `"shift"` keeps the side and moves over the anchor to stay in view, `"none"` lets it overflow. Default `"flip"`.
67
+ - `align?: "flip" | "shift" | "none"`: Along its side: `"flip"` swaps `start` and `end`, `"shift"` moves the popup along the side to stay in view, `"none"` lets it overflow. Default `"flip"`. With `side: "shift"` it is `"shift"` or `"none"`.
68
+ - `fallbackAxisSide?: "start" | "end" | "none"`: Where it goes when neither the side asked for nor its opposite fits: to the other axis, its `"start"` or its `"end"` first, or nowhere (`"none"`). Default `"end"`.
69
+ - `CollisionBoundary` (`@kirana-ui/vue`): `"clipping-ancestors" | Element | Element[] | { x: number; y: number; width: number; height: number }`. What a popup is held inside: the ancestors that clip it (`"clipping-ancestors"`), an element, several, or a rectangle of the viewport.
70
+ - `CollisionPadding` (`@kirana-ui/vue`): `number | Partial<Record<PhysicalSide, number>>`. The room kept between a popup and the edges it is held inside: one number, or one a side.
71
+ - `ComboboxEntry<Value = unknown>` (`@kirana-ui/vue`): `ComboboxItemEntry<Value> | ComboboxGroupEntry<Value>`. What a `Collection` hands to be drawn: an item that is left, or a group that has items left.
72
+ - `ComboboxGroupData<Value = unknown>` (`@kirana-ui/vue`): Items given as data that belong together: `value` is the group's name.
73
+ - `value: string`
74
+ - `items: readonly ComboboxItemData<Value>[]`
75
+ - `ComboboxGroupEntry<Value = unknown>` (`@kirana-ui/vue`): A group that has items left, with those items.
76
+ - `type: "group"`
77
+ - `key: string`: What it is known by from one drawing to the next.
78
+ - `value: string`: The group's name, as it was given.
79
+ - `label: string`: The same name: an entry of either kind has a `label`.
80
+ - `disabled: false`: Never: an entry of either kind says whether it is disabled.
81
+ - `items: readonly ComboboxItemEntry<Value>[]`: The items of the group that are left.
82
+ - `ComboboxItemData<Value = unknown>` (`@kirana-ui/vue`): One item given as data: its value, and what it is called.
83
+ - `value: Value`
84
+ - `label: string`
85
+ - `disabled?: boolean`: It cannot be chosen: its entry says so, for the item drawn for it.
86
+ - `ComboboxItemEntry<Value = unknown>` (`@kirana-ui/vue`): One item left of the `items` given as data, as a `Collection` hands it to be drawn.
87
+ - `type: "item"`
88
+ - `key: string`: What it is known by from one drawing to the next.
89
+ - `value: Value`
90
+ - `label: string`
91
+ - `disabled: boolean`
92
+ - `item: ComboboxItemData<Value>`: The item as it was given, with whatever else it carries.
54
93
  - `DateFieldSegment` (`@kirana-ui/vue`): One piece of the field, in the locale's order: a part that is typed, or what stands between.
55
94
  - `type: DateUnit | "literal"`
56
95
  - `literal: string`: What stands between two parts (`"/"`); empty for a part that is typed.
@@ -68,6 +107,7 @@ The named types the props below mention, each with the entry of this package it
68
107
  - `value: string`: The value that was checked.
69
108
  - `FormErrors` (`@kirana-ui/vue`): `Record<string, string | readonly string[]>`. A form's errors as a server sends them: each field's name with its message, or messages.
70
109
  - `FormValues` (`@kirana-ui/vue`): `Record<string, FormDataEntryValue | FormDataEntryValue[]>`. A form's values by field name, as `FormData` holds them: a list where a name is there more than once.
110
+ - `ImageStatus` (`@kirana-ui/vue`): `"idle" | "loading" | "loaded" | "error"`. Where an avatar's picture is in its loading: `idle` while it has no address, `loading`, then `loaded` or `error`. Base UI's `ImageLoadingStatus`.
71
111
  - `IsoDate` (`@kirana-ui/vue`): `string`. A day as `YYYY-MM-DD`, in the calendar the world's data is kept in (ISO 8601).
72
112
  - `ListCollection` (`@kirana-ui/vue`): Every row of a list of which only some are in the page: a virtualizer draws the ones in view. The keys then move by place, and ask for a row that is not drawn to be brought into the page.
73
113
  - `count: number`: How many rows there are, drawn or not.
@@ -75,6 +115,12 @@ The named types the props below mention, each with the entry of this package it
75
115
  - `disabled?(index: number): boolean`
76
116
  - `indexOf?(value: unknown): number`: The place of a value, or -1: where a list opens on what is chosen.
77
117
  - `scrollToIndex(index: number): void`: Brings a row into the page: the virtualizer's own scroll.
118
+ - `OffsetData` (`@kirana-ui/vue`): What an offset given as a function is told: where the popup is, and the two sizes.
119
+ - `side: Side`: The side of the anchor the popup is on, in the words it was asked for in.
120
+ - `align: Align`: Where along that side the popup is.
121
+ - `anchor: { width: number; height: number }`: The anchor's size, in pixels.
122
+ - `positioner: { width: number; height: number }`: The positioner's size, in pixels.
123
+ - `OffsetFunction` (`@kirana-ui/vue`): `(data: OffsetData) => number`. A gap worked out from what was measured: `({ side, align, anchor, positioner }) => number`.
78
124
  - `Orientation` (`@kirana-ui/vue`): `"horizontal" | "vertical"`. The way a row of things is laid out, and so which arrow keys move along it.
79
125
  - `PaginationEntry` (`@kirana-ui/vue`): `{ readonly type: "page"; readonly page: number; readonly key: string } | { readonly type: "ellipsis"; readonly key: "start" | "end" }`. One piece of the list of pages: a page, or the mark for pages left out.
80
126
  - `PhysicalSide` (`@kirana-ui/vue`): `"top" | "right" | "bottom" | "left"`. A side of the anchor as the page is drawn.
@@ -136,6 +182,9 @@ What the entries export beside the components, their parts' props types and the
136
182
 
137
183
  - `AnchorOption`, from `@kirana-ui/vue`: A positioner's own anchor: an element, a place in the viewport (`getBoundingClientRect`), or a function that gives one, asked each time the popup is placed. `null`, `undefined` or a function that gives neither: the popup's own anchor, its trigger.
138
184
  - `Bindable`, from `@kirana-ui/vue`: A value that is the caller's while they give one and the part's own otherwise, as a signal that is asked to change.
185
+ - `CalendarMode`, from `@kirana-ui/vue`: How many days it chooses: one, a first and a last, or any number.
186
+ - `CalendarValue`, from `@kirana-ui/vue`: What a calendar holds: a day, a range of days in `mode: "range"`, a list of days in `mode: "multiple"`, or `null` for none.
187
+ - `ComboboxShown`, from `@kirana-ui/vue`: What a combobox's value part shows: what is chosen, and how it is named.
139
188
  - `ComponentDefinition`, from `@kirana-ui/vue`: A component in the vocabulary: its parts by name.
140
189
  - `Direction`, from `@kirana-ui/vue`: The reading direction: left to right, or right to left.
141
190
  - `ItemLabels`, from `@kirana-ui/vue`: The labels of a control's values, as its caller gives them: a list of values with their labels, or, for values that are text, the labels by value (`{ apple: "Apple" }`).
@@ -219,6 +268,7 @@ A component in a snapshot (`AgentComponent`):
219
268
  - `max?: number`
220
269
  - `items?: readonly AgentItem[]`: Its choices, where they are in the page. `query({ within })` reads a closed list's.
221
270
  - `disabled?: boolean`
271
+ - `readOnly?: boolean`: It can be read and not changed: it then has no action.
222
272
  - `confirm?: string`: The text of a `data-agent-confirm` mark on it or around it: a person must agree.
223
273
  - `actions: readonly string[]`: What it can be asked to do now.
224
274
 
@@ -316,19 +366,18 @@ Its other types:
316
366
  - With `as-child` there are three layers of props, lowest first: the attributes on the part, the slotted element's own, the part's own (its role, ARIA, state attributes and listeners). A higher layer wins an attribute it gives, and one it leaves `undefined` stays; classes are joined; styles are merged, the higher layer winning a property; every listener of an event runs, lowest first (the part's caller's, the element's, the part's), and `event.preventKiranaHandler()` called in either of the first two stops only the part's own. So `<Button as-child data-slot="button"><a data-slot="link" href="/x">Next</a></Button>` is `<a data-slot="link" href="/x">Next</a>` with the button's role and listeners. Without `as-child` there are two layers: the attributes on the part, then the part's own.
317
367
  - A part's default slot is given the part's state, with `as-child` and without: `v-slot="{ state }"`, read from the part's `data-*` attributes listed below, camel-cased: `data-open` is `state.open === true`, `data-side="bottom"` is `state.side === "bottom"`, `data-starting-style` is `state.startingStyle`, and a state that does not hold is absent.
318
368
  - With `as-child`, what a part keeps in its element is in the slotted element: a form control's hidden native input as its last child, and the text a part writes (`Meter.Value`, `Select.Value`, `Calendar.Heading`, a toast's `Title`) while the slotted element has no content of its own: `<Meter.Value as-child><b /></Meter.Value>` is `<b>40%</b>`. A listener given to a part is typed with the event's `preventKiranaHandler()`: `PartEvent<MouseEvent>`, exported by the package.
319
- - For an element of your own that takes `as` and `as-child` (a badge, a breadcrumb's link): `import { Primitive } from "@kirana-ui/vue/primitive"`. `<Primitive as="span">` draws that element (a `div` by default) with the attributes it is given; `<Primitive as-child>` draws the element in its slot, by the same rule: the slotted element's own props lie over the attributes on the `Primitive`, classes joined, styles merged, both listeners of an event run.
320
369
  - Props are written in kebab case (`default-value`). A value binds with `v-model:value` (`v-model:open`, `v-model:page` …); the matching event carries the details: `@value-change="(value, details) => …"`. Below, a prop marked `v-model` binds so, and an event is written as its listener: `@value-change`.
321
370
  - A part that draws a list gives each entry to its slot: `v-slot="{ segment }"`.
322
371
  - A part that says a value gives it to its slot, to draw something else: `<Select.Value v-slot="{ value, label }">` (with `multiple`, `{ values, labels }`, in the items' order), `<Slider.Value v-slot="{ text, values }">`.
323
372
  - A `Positioner`'s `anchor` is a template ref to an element or a component (`:anchor="box"`), an element, an object with `getBoundingClientRect`, or a function that gives one of those.
324
373
  - Each part's props are a type of the same entry, named for the part, and its events another: `import type { RootProps, RootEmits } from "@kirana-ui/vue/tabs"`. A part also takes `as`, `as-child` and the attributes of the element it draws.
325
374
  - Each component's "Anatomy" is where its parts go: a part is written inside the part it is indented under, with elements of your own between them where the design needs any. `(optional)` marks a wrapper that may be left out, what it holds then written where the wrapper would be; `(repeated)` a part written once for each entry (an item, a tab, a toast), or any number of times; `(as above)` a part drawn in full where it first appears. It is the library's own data (`inside`, `optional` and `repeated` on each part of `@kirana-ui/vocabulary`), held against the pages the library is tested with: write a part nowhere else.
326
- - These parts draw no element, and take no attributes: every `Portal` (what is inside is drawn at the end of `<body>`), `AlertDialog.Root`, `Autocomplete.Root`, `Calendar.Weekdays`, `Calendar.Weeks`, `Combobox.Root`, `ContextMenu.Root`, `ContextMenu.SubmenuRoot`, `DateField.Segments`, `DatePicker.Root`, `DatePicker.Segments`, `DatePicker.Weekdays`, `DatePicker.Weeks`, `Dialog.Root`, `Drawer.Root`, `Field.Validity`, `HoverCard.Root`, `Menu.Root`, `Menu.SubmenuRoot`, `Pagination.Items`, `Popover.Root`, `Select.Root`, `Toast.List` and `Tooltip.Root`. Every other part draws the element named for it below.
327
- - A popup is drawn in a portal at the end of `<body>`. In `Autocomplete`, `Combobox`, `ContextMenu`, `DatePicker`, `HoverCard`, `Menu`, `NavigationMenu`, `Popover`, `Select` and `Tooltip` it is `Portal` > `Positioner` > `Popup`: the `Positioner` places it against its trigger and carries `--anchor-width`, `--available-height`, `--transform-origin` and `data-side`. `AlertDialog`, `Dialog` and `Drawer` have no `Positioner`: there it is `Portal` > `Backdrop` and `Popup`, and the design places the popup.
328
- - Every `Positioner` takes the same options (`side`, `align`, `sideOffset`, `alignOffset`, `collisionPadding`, `anchor`), listed once under "Positioner options" with their defaults. An anchor may change while the popup is open, and the popup follows.
329
- - Every change callback of a value the component holds is `(value, details)`: `details.reason`, `details.event`, `details.source` (mouse, touch, pen, keyboard, virtual, programmatic, agent), and `details.cancel()` to keep the value as it was (`@at-bottom-change`, `@checked-change`, `@index-change`, `@input-value-change`, `@open-change`, `@page-change`, `@pressed-change`, `@select`, `@sizes-change`, `@snap-point-change`, `@value-change`, `@value-committed`, `@values-change` and `onFormSubmit`). A callback that reports something that happened takes only that, and cannot be refused: `@complete`, `@month-change` and `onClearErrors`.
330
- - A part that is in the page only while it is open, chosen or checked leaves it otherwise. `keepMounted` keeps it in the page, hidden, on the parts that take it and no others: `Accordion.Panel`, `Autocomplete.Clear`, `Checkbox.Indicator`, `Collapsible.Panel`, `Combobox.Clear`, `Combobox.ItemIndicator`, `ContextMenu.CheckboxItemIndicator`, `ContextMenu.RadioItemIndicator`, `Listbox.ItemIndicator`, `Menu.CheckboxItemIndicator`, `Menu.RadioItemIndicator`, `RadioGroup.Indicator`, `ScrollArea.Scrollbar`, `Select.ItemIndicator` and `Tabs.Panel`.
331
- - `readOnly` (shown, focusable, not changeable) is a prop of `Calendar`, `Checkbox`, `DateField`, `DatePicker`, `NumberField`, `RadioGroup` and `Switch` and of no other component.
375
+ - These parts draw no element, and take no attributes: every `Portal` (what is inside is drawn at the end of `<body>`), `AlertDialog.Root`, `Autocomplete.Root`, `Autocomplete.Collection`, `Calendar.Months`, `Calendar.Weekdays`, `Calendar.Weeks`, `Combobox.Root`, `Combobox.Value`, `Combobox.Collection`, `ContextMenu.Root`, `ContextMenu.SubmenuRoot`, `DateField.Segments`, `DatePicker.Root`, `DatePicker.Segments`, `DatePicker.Months`, `DatePicker.Weekdays`, `DatePicker.Weeks`, `Dialog.Root`, `Drawer.Root`, `Field.Validity`, `HoverCard.Root`, `Menu.Root`, `Menu.SubmenuRoot`, `Pagination.Items`, `Popover.Root`, `Select.Root`, `Toast.List` and `Tooltip.Root`. Every other part draws the element named for it below.
376
+ - A popup is drawn in a portal at the end of `<body>`. In `Autocomplete`, `Combobox`, `ContextMenu`, `DatePicker`, `HoverCard`, `Menu`, `NavigationMenu`, `Popover`, `Select` and `Tooltip` it is `Portal` > `Positioner` > `Popup`: the `Positioner` places it against its trigger and carries `--anchor-width`, `--available-height`, `--transform-origin` and `data-side`. `AlertDialog`, `Dialog` and `Drawer` have no `Positioner`: there it is `Portal` > `Backdrop` and `Popup`, and the design places the popup. A dialog and an alert dialog may put the `Popup` in a `Viewport`, the box a long one scrolls in.
377
+ - Every `Positioner` takes the same options (`side`, `align`, `sideOffset`, `alignOffset`, `collisionPadding`, `collisionBoundary`, `collisionAvoidance`, `sticky`, `arrowPadding`, `positionMethod`, `anchor`), listed once under "Positioner options" with their defaults. An anchor may change while the popup is open, and the popup follows.
378
+ - Every change callback of a value the component holds is `(value, details)`: `details.reason`, `details.event`, `details.source` (mouse, touch, pen, keyboard, virtual, programmatic, agent), and `details.cancel()` to keep the value as it was (`@at-bottom-change`, `@checked-change`, `@index-change`, `@input-value-change`, `@month-change`, `@open-change`, `@page-change`, `@pressed-change`, `@select`, `@sizes-change`, `@snap-point-change`, `@value-change`, `@value-committed`, `@values-change` and `onFormSubmit`). A callback that reports something that happened takes only that, and cannot be refused: `@complete`, `@loading-status-change` and `onClearErrors`.
379
+ - A part that is in the page only while it is open, chosen or checked leaves it otherwise. `keepMounted` keeps it in the page, hidden, on the parts that take it and no others: `Accordion.Panel`, `Autocomplete.Clear`, `Avatar.Image`, `Checkbox.Indicator`, `Collapsible.Panel`, `Combobox.Clear`, `Combobox.ItemIndicator`, `ContextMenu.CheckboxItemIndicator`, `ContextMenu.RadioItemIndicator`, `Listbox.ItemIndicator`, `Menu.CheckboxItemIndicator`, `Menu.RadioItemIndicator`, `RadioGroup.Indicator`, `ScrollArea.Scrollbar`, `Select.ItemIndicator` and `Tabs.Panel`.
380
+ - `readOnly` (shown, focusable, not changeable) is a prop of `Autocomplete`, `Calendar`, `Checkbox`, `Combobox`, `DateField`, `DatePicker`, `NumberField`, `RadioGroup`, `Select`, `Slider` and `Switch` and of no other component.
332
381
  - No CSS is shipped and no styles are injected. A part is styled by its element, its `class`, and the attributes and CSS variables listed for it below.
333
382
  - A boolean state is an attribute that is present or absent (`[data-open]`), never `="false"`.
334
383
  - An entrance starts from `[data-starting-style]` and an exit ends at `[data-ending-style]`: write the hidden style under both and transition between. A part leaves the page when its own motion has ended.
@@ -337,6 +386,11 @@ Its other types:
337
386
  - `PortalProvider` (`container`) says where the popups inside it are drawn, in place of the end of `<body>`: a shadow root's host, a full-screen element.
338
387
  - An agent can read and use a page built with these: `createAgent()` from `@kirana-ui/vue/agent` gives `snapshot()`, `act({ steps })`, `query()`, `history()`, `undo()` and `redo()`; what it changes reaches the same callbacks with `details.source === "agent"`. "Agent", above, has the whole of it.
339
388
 
389
+ ### For a design system
390
+
391
+ - For an element of your own that takes `as` and `as-child` (a badge, a breadcrumb's link): `import { Primitive } from "@kirana-ui/vue/primitive"`. `<Primitive as="span">` draws that element (a `div` by default) with the attributes it is given; `<Primitive as-child>` draws the element in its slot, by the same rule: the slotted element's own props lie over the attributes on the `Primitive`, classes joined, styles merged, both listeners of an event run.
392
+ - Tooltips need no provider: one is open at a time across the page, and while one shows the next opens without its wait, by themselves. A tooltip waits 600 ms before it opens (a hover card 600 ms, and 300 ms before it closes). A design system whose tooltips open at once passes `delay` on its own root: `<Tooltip.Root :delay="0" v-bind="$attrs">` in its own component (its caller's `delay` still wins).
393
+
340
394
  ## Components
341
395
 
342
396
  ### Accordion
@@ -408,7 +462,7 @@ Attributes and CSS variables, by part:
408
462
  import { AlertDialog } from "@kirana-ui/vue/alert-dialog"
409
463
  ```
410
464
 
411
- Parts: `<AlertDialog.Root>`, `<AlertDialog.Trigger>`, `<AlertDialog.Portal>`, `<AlertDialog.Backdrop>`, `<AlertDialog.Popup>`, `<AlertDialog.Title>`, `<AlertDialog.Description>`, `<AlertDialog.Close>`.
465
+ Parts: `<AlertDialog.Root>`, `<AlertDialog.Trigger>`, `<AlertDialog.Portal>`, `<AlertDialog.Backdrop>`, `<AlertDialog.Viewport>`, `<AlertDialog.Popup>`, `<AlertDialog.Title>`, `<AlertDialog.Description>`, `<AlertDialog.Close>`.
412
466
 
413
467
  Anatomy:
414
468
 
@@ -417,10 +471,11 @@ Anatomy:
417
471
  <AlertDialog.Trigger>
418
472
  <AlertDialog.Portal>
419
473
  <AlertDialog.Backdrop>
420
- <AlertDialog.Popup>
421
- <AlertDialog.Title>
422
- <AlertDialog.Description>
423
- <AlertDialog.Close>
474
+ <AlertDialog.Viewport> (optional)
475
+ <AlertDialog.Popup>
476
+ <AlertDialog.Title>
477
+ <AlertDialog.Description>
478
+ <AlertDialog.Close>
424
479
  ```
425
480
 
426
481
  Props of its root:
@@ -435,6 +490,7 @@ Each part, and its own props:
435
490
  - `<AlertDialog.Trigger>` draws a `<button>`.
436
491
  - `<AlertDialog.Portal>` draws no element. A portal takes nothing: where it is drawn is its `PortalProvider`'s to say.
437
492
  - `<AlertDialog.Backdrop>` draws a `<div>`.
493
+ - `<AlertDialog.Viewport>` draws a `<div>`.
438
494
  - `<AlertDialog.Popup>` draws a `<div>`.
439
495
  - `<AlertDialog.Title>` draws a `<h2>`. The heading that names the dialog.
440
496
  - `<AlertDialog.Description>` draws a `<p>`. The text that describes the dialog.
@@ -449,6 +505,13 @@ Attributes and CSS variables, by part:
449
505
  - `data-closed`: Present when it is closed.
450
506
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
451
507
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
508
+ - viewport: What a long dialog scrolls in: it lies over the page, between the backdrop and the popup. A press on it beside the popup is a press outside the dialog; a press on its scrollbar is not.
509
+ - `data-open`: Present when it is open.
510
+ - `data-closed`: Present when it is closed.
511
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
512
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
513
+ - `data-nested`: Present when the dialog opened over another dialog.
514
+ - `data-nested-dialog-open`: Present when another dialog is open above this one.
452
515
  - popup: The dialog itself.
453
516
  - `data-open`: Present when it is open.
454
517
  - `data-closed`: Present when it is closed.
@@ -463,7 +526,7 @@ Attributes and CSS variables, by part:
463
526
  import { Autocomplete } from "@kirana-ui/vue/autocomplete"
464
527
  ```
465
528
 
466
- Parts: `<Autocomplete.Root>`, `<Autocomplete.Input>`, `<Autocomplete.Trigger>`, `<Autocomplete.Clear>`, `<Autocomplete.Portal>`, `<Autocomplete.Positioner>`, `<Autocomplete.Popup>`, `<Autocomplete.List>`, `<Autocomplete.Group>`, `<Autocomplete.GroupLabel>`, `<Autocomplete.Separator>`, `<Autocomplete.Item>`, `<Autocomplete.Empty>`.
529
+ Parts: `<Autocomplete.Root>`, `<Autocomplete.Input>`, `<Autocomplete.Trigger>`, `<Autocomplete.Clear>`, `<Autocomplete.Portal>`, `<Autocomplete.Positioner>`, `<Autocomplete.Popup>`, `<Autocomplete.List>`, `<Autocomplete.Collection>`, `<Autocomplete.Group>`, `<Autocomplete.GroupLabel>`, `<Autocomplete.Separator>`, `<Autocomplete.Item>`, `<Autocomplete.Empty>`, `<Autocomplete.Status>`.
467
530
 
468
531
  Anatomy:
469
532
 
@@ -475,12 +538,19 @@ Anatomy:
475
538
  <Autocomplete.Positioner>
476
539
  <Autocomplete.Popup>
477
540
  <Autocomplete.List> (optional)
541
+ <Autocomplete.Collection> (optional)
542
+ <Autocomplete.Item> (repeated, as above)
543
+ <Autocomplete.Group> (optional, repeated, as above)
478
544
  <Autocomplete.Group> (optional, repeated)
545
+ <Autocomplete.Collection> (optional, as above)
479
546
  <Autocomplete.Item> (repeated)
480
547
  <Autocomplete.GroupLabel>
481
548
  <Autocomplete.Separator> (repeated)
549
+ <Autocomplete.Collection> (optional, as above)
482
550
  <Autocomplete.Empty>
551
+ <Autocomplete.Status> (optional)
483
552
  <Autocomplete.Popup> (as above)
553
+ <Autocomplete.Status> (optional, as above)
484
554
  <Autocomplete.Clear>
485
555
  ```
486
556
 
@@ -493,6 +563,8 @@ Props of its root:
493
563
  - `filter?: ((label: string, query: string) => boolean) | null`: Whether a suggestion is shown for what was typed; `null` shows every one.
494
564
  - `openOnInputClick?: boolean`: Whether a press on the input opens the list. Default: it opens when something is typed.
495
565
  - `disabled?: boolean`: Disabled: it cannot be changed.
566
+ - `readOnly?: boolean`: Its text can be read and not changed: nothing typed is taken, no suggestion pressed is written in, and its clear button does nothing. The list still opens (by its button, the arrows, or a press with `openOnInputClick`) and can be gone through. It keeps focus, and its text is still submitted.
567
+ - `items?: readonly ComboboxItemData<Value>[] | readonly ComboboxGroupData<Value>[] | Readonly<Record<string, string>>`: The suggestions as data, for a `Collection` to draw: a list of them with their labels, groups of them (`{ value, items }`, `value` the group's name), or the labels by value. The autocomplete filters them by what is typed (not with `mode: "none"`), and the `Collection` draws what is left.
496
568
  - `required?: boolean`: Needed: in a `Field`, leaving it empty is then invalid.
497
569
  - `name?: string`: The input's name in the form around it.
498
570
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
@@ -513,6 +585,8 @@ Each part, and its own props:
513
585
  - `<Autocomplete.Positioner>` draws a `<div>`. A positioner's own props: where its popup goes, and what it is placed against. Takes the positioner options ("Positioner options", above).
514
586
  - `<Autocomplete.Popup>` draws a `<div>`.
515
587
  - `<Autocomplete.List>` draws a `<div>`.
588
+ - `<Autocomplete.Collection>` draws no element. Draws the suggestions from the root's `items`: its content once for each one left for what was typed, or for each group that has some left; given a group, for each of that group's. The root then filters. Its default slot is also given `entry: ComboboxEntry`.
589
+ - `of?: ComboboxEntry`: A group the root's `items` gave: its items left are then what is drawn.
516
590
  - `<Autocomplete.Group>` draws a `<div>`. Items that belong together, named by their label. Hidden while none is shown.
517
591
  - `<Autocomplete.GroupLabel>` draws a `<div>`. The name of a group. Outside a group it is plain text, and names nothing.
518
592
  - `<Autocomplete.Separator>` draws a `<div>`. A line between groups.
@@ -522,15 +596,18 @@ Each part, and its own props:
522
596
  - `index?: number`: Its place among all the rows, in a virtualized list.
523
597
  - `value: unknown`: Required. What the combobox's value is while this item is the chosen one.
524
598
  - `<Autocomplete.Empty>` draws a `<div>`. What is shown when no item is.
599
+ - `<Autocomplete.Status>` draws a `<div>`. Says how the list stands ("3 results", "Loading") to software that reads the page, as its text changes. It stays in the page while its text changes: inside the popup, or beside the input.
525
600
 
526
601
  Attributes and CSS variables, by part:
527
602
 
528
603
  - input: The text input: its text is the value, and what is typed asks for suggestions.
529
604
  - `data-popup-open`: Present when the list is open.
530
605
  - `data-disabled`: Present when it is disabled.
606
+ - `data-readonly`: Present when it can be read but not changed.
531
607
  - trigger: A button that opens and closes the list. With the input inside the popup it is the combobox: a stop for Tab, and what the popup is placed against.
532
608
  - `data-popup-open`: Present when the list is open.
533
609
  - `data-disabled`: Present when it is disabled.
610
+ - `data-readonly`: Present when it can be read but not changed.
534
611
  - positioner: Places the list against the input: against the chips' box when the input is in one, the button when the input is inside the popup, or its own `anchor`. It carries the geometry.
535
612
  - `data-open`: Present when it is open.
536
613
  - `data-closed`: Present when it is closed.
@@ -598,10 +675,21 @@ Anatomy:
598
675
 
599
676
  Each part, and its own props:
600
677
 
601
- - `<Avatar.Root>` draws a `<span>`. The frame the image and its stand-in share.
602
- - `<Avatar.Image>` draws a `<img>`. The picture. In the page once it has loaded.
678
+ - `<Avatar.Root>` draws a `<span>`.
679
+ - `<Avatar.Image>` draws a `<img>`.
603
680
  - `src?: string`: The picture's address: the part is in the page once it has loaded.
604
- - `<Avatar.Fallback>` draws a `<span>`. What shows until the picture has loaded, or when it cannot.
681
+ - `keepMounted?: boolean`: Keeps the element in the page while the picture loads, as Base UI's: it loads the picture itself (`loading="lazy"` works), and until it has loaded it is `aria-hidden`, with `data-loading` or `data-error` for the design to hide or fade it by. Default: `false`, the element is drawn once the picture has loaded.
682
+ - `@loading-status-change: (status: ImageStatus) => void`: `@loading-status-change`: each time the picture's loading status changes, `loading` once it has an address, then `loaded` or `error`; `idle` again when its address is taken away. The root says the same in `data-image-loading-status`.
683
+ - `<Avatar.Fallback>` draws a `<span>`. What shows until the picture has loaded, or when it cannot; after its `delay`, when it has one.
684
+ - `delay?: number`: How long to wait before showing, in milliseconds, so a picture that loads sooner never lets the fallback be seen. Read once. Default: `0`, at once.
685
+
686
+ Attributes and CSS variables, by part:
687
+
688
+ - root: The frame the image and its stand-in share.
689
+ - `data-image-loading-status="idle | loading | loaded | error"`: Where the picture is in its loading: `idle` while it has no address.
690
+ - image: The picture. In the page once it has loaded; with `keepMounted` (on Angular, the attribute form) in the page all along, `aria-hidden` until it has loaded.
691
+ - `data-loading`: Present while the picture loads, on an image kept in the page.
692
+ - `data-error`: Present when the picture cannot load, on an image kept in the page.
605
693
 
606
694
  ### Button
607
695
 
@@ -628,30 +716,38 @@ Attributes and CSS variables, by part:
628
716
  import { Calendar } from "@kirana-ui/vue/calendar"
629
717
  ```
630
718
 
631
- Parts: `<Calendar.Root>`, `<Calendar.Heading>`, `<Calendar.Previous>`, `<Calendar.Next>`, `<Calendar.Grid>`, `<Calendar.Weekdays>`, `<Calendar.HeadCell>`, `<Calendar.Weeks>`, `<Calendar.Cell>`, `<Calendar.Day>`.
719
+ Parts: `<Calendar.Root>`, `<Calendar.Heading>`, `<Calendar.Previous>`, `<Calendar.Next>`, `<Calendar.Months>`, `<Calendar.Grid>`, `<Calendar.Weekdays>`, `<Calendar.HeadCell>`, `<Calendar.Weeks>`, `<Calendar.Cell>`, `<Calendar.Day>`, `<Calendar.Input>`.
632
720
 
633
721
  Anatomy:
634
722
 
635
723
  ```
636
724
  <Calendar.Root>
637
- <Calendar.Heading>
725
+ <Calendar.Months> (optional)
726
+ <Calendar.Heading>
727
+ <Calendar.Grid>
728
+ <Calendar.Weekdays>
729
+ <Calendar.HeadCell> (repeated)
730
+ <Calendar.Weeks>
731
+ <Calendar.Cell> (repeated)
732
+ <Calendar.Day>
638
733
  <Calendar.Previous>
639
734
  <Calendar.Next>
640
- <Calendar.Grid>
641
- <Calendar.Weekdays>
642
- <Calendar.HeadCell> (repeated)
643
- <Calendar.Weeks>
644
- <Calendar.Cell> (repeated)
645
- <Calendar.Day>
735
+ <Calendar.Input>
646
736
  ```
647
737
 
648
738
  Props of its root:
649
739
 
650
- - `value?: CalendarValue`: `v-model:value`. One day, or with `mode: "range"` a first and a last day; `null` for none.
651
- - `defaultValue?: CalendarValue`: The value it starts with, when the caller does not hold `value`. Read once.
652
- - `mode?: "single" | "range"`: Whether one day is chosen (the default) or a first and a last.
653
- - `defaultFocusedValue?: IsoDate`: The day it opens on, when it has no value: its month is the one shown.
654
- - `locale?: string`: The language and region its names, numbers, first day of the week and calendar follow (`"en-US"`, `"fa-IR"`). Give it: a server does not know the reader's.
740
+ - `value?: CalendarValueOf<Mode>`: `v-model:value`. One day; with `mode: "range"` a first and a last day; with `mode: "multiple"` a list of days, in the order they were chosen. `null` (or an empty list) for none.
741
+ - `defaultValue?: CalendarValueOf<Mode>`: The value it starts with, when the caller does not hold `value`. Read once.
742
+ - `mode?: Mode`: Whether one day is chosen (the default), a first and a last (`"range"`), or any number (`"multiple"`: a day pressed is added, and pressed again is taken away).
743
+ - `minDays?: number`: With `mode: "multiple"`: the fewest days that can be left chosen. A press that would leave fewer does nothing.
744
+ - `maxDays?: number`: With `mode: "multiple"`: the most days that can be chosen. Once they are, the other days are disabled until one is taken away.
745
+ - `months?: number`: How many months are shown side by side (1 by default): one selection and one grid for the keys, which go from a month into the next. Each is drawn in `Calendar.Months`.
746
+ - `pagedNavigation?: boolean`: With several `months`: whether Previous and Next turn them all (a page) rather than one month. Off by default, as in react-day-picker.
747
+ - `month?: IsoDate`: `v-model:month`. The month shown (the first of them, with several `months`), when the caller holds it: any day of it. A caption's month and year menus, or a "today" button, set it.
748
+ - `defaultMonth?: IsoDate`: The month it starts on, when the caller does not hold `month`. Read once. Without it, the month of `defaultFocusedValue`, of the value, or of today.
749
+ - `defaultFocusedValue?: IsoDate`: The day it opens on, focusable when Tab reaches the grid. It is also the month it opens on, unless `month` or `defaultMonth` says another: then the stop for Tab is a chosen day of the months shown, today, or their first day.
750
+ - `locale?: string`: The language and region its names, numbers, first day of the week and calendar follow (`"en-US"`, `"fa-IR"`). Give it: a server does not know the reader's. Default `"en-US"`.
655
751
  - `calendarSystem?: CalendarSystem`: The calendar its months are laid out in, when it is not the Gregorian one: an instance from `@internationalized/date` (`new PersianCalendar()`). Given, not found from the locale: a page then carries only the calendars it uses.
656
752
  - `min?: IsoDate`: The first and the last day that can be chosen.
657
753
  - `max?: IsoDate`: The last day that can be chosen.
@@ -659,16 +755,19 @@ Props of its root:
659
755
  - `disabled?: boolean`: Disabled: no day can be chosen.
660
756
  - `readOnly?: boolean`: Shown as it is: the days can be moved through, and none can be chosen.
661
757
  - `fixedWeeks?: boolean`: Always six rows, so the calendar is one height in every month.
662
- - `@value-change: (value: CalendarValue, details: ChangeDetails) => void`: Heard as a day is about to be chosen: `details.cancel()` keeps the value as it was.
663
- - `@month-change: (month: string) => void`: The month shown has changed: its first day.
758
+ - `name?: string`: The name its hidden input submits the value under: a day; the first and the last of a range, as two entries; each day of a list.
759
+ - `form?: string`: The id of the form it belongs to, when it is not inside it.
760
+ - `@value-change: (value: CalendarValueOf<Mode>, details: ChangeDetails) => void`: Heard as a day is about to be chosen: `details.cancel()` keeps the value as it was.
761
+ - `@month-change: (value: string, details: ChangeDetails) => void`: Heard as another month is about to be shown (the keys, the buttons, a day of another month pressed): its first day. `details.cancel()` keeps the month as it was.
664
762
 
665
763
  Each part, and its own props:
666
764
 
667
- - `<Calendar.Root>` draws a `<div>`. Its props are above.
765
+ - `<Calendar.Root>` draws a `<div>`. Generic: `<Mode extends CalendarMode = "single">`. `value` and its events are typed by `mode`: a day, a range, or a list of days. Its props are above.
668
766
  - `<Calendar.Heading>` draws a `<div>`. Names the month shown. Read out when it changes.
669
767
  - `<Calendar.Previous>` draws a `<button>`.
670
768
  - `<Calendar.Next>` draws a `<button>`.
671
- - `<Calendar.Grid>` draws a `<table>`. The table of days: a grid the arrows move in.
769
+ - `<Calendar.Months>` draws no element. The months shown, with several: each is given to draw its heading and its grid. It draws no element, and is left out for one month. Its default slot is also given `month: CalendarMonth`.
770
+ - `<Calendar.Grid>` draws a `<table>`. The table of a month's days: a grid the arrows move in, from one month shown into the next.
672
771
  - `<Calendar.Weekdays>` draws no element. The days of the week: each is given to draw its head cell. Its default slot is also given `weekday: CalendarWeekday`.
673
772
  - `<Calendar.HeadCell>` draws a `<th>`. A column's heading: a day of the week.
674
773
  - `weekday: CalendarWeekday`: Required. The day of the week it names, as `Calendar.Weekdays` gives it.
@@ -677,6 +776,7 @@ Each part, and its own props:
677
776
  - `date: string`: Required. The day it is for, as a week of `Calendar.Weeks` gives it.
678
777
  - `<Calendar.Day>` draws a `<button>`.
679
778
  - `date: string`: Required. The day it is for, as a week of `Calendar.Weeks` gives it.
779
+ - `<Calendar.Input>` draws a `<input>`. The hidden input it is submitted by, when it has a name: one more is drawn after it for each other day.
680
780
 
681
781
  Attributes and CSS variables, by part:
682
782
 
@@ -688,7 +788,7 @@ Attributes and CSS variables, by part:
688
788
  - next: Shows the month after.
689
789
  - `data-disabled`: Present when it is disabled.
690
790
  - cell: A day's cell.
691
- - `data-selected`: Present on a chosen day, and on every day of a chosen range.
791
+ - `data-selected`: Present on a chosen day, on every day of a chosen range, and on each day of a list. Never on a copy: a day of the month before or after shown in its own month too.
692
792
  - `data-today`: Present on today.
693
793
  - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
694
794
  - `data-disabled`: Present when it is disabled.
@@ -696,7 +796,7 @@ Attributes and CSS variables, by part:
696
796
  - `data-range-start`: Present on the first day of a range.
697
797
  - `data-range-end`: Present on the last day of a range.
698
798
  - day: The button for a day.
699
- - `data-selected`: Present on a chosen day, and on every day of a chosen range.
799
+ - `data-selected`: Present on a chosen day, on every day of a chosen range, and on each day of a list. Never on a copy: a day of the month before or after shown in its own month too.
700
800
  - `data-today`: Present on today.
701
801
  - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
702
802
  - `data-disabled`: Present when it is disabled.
@@ -726,7 +826,7 @@ Anatomy:
726
826
  Props of its root:
727
827
 
728
828
  - `index?: number`: `v-model:index`. Which slide is at the start of the view, from 0.
729
- - `defaultIndex?: number`: The slide it starts at, when the caller does not hold `index`. Read once.
829
+ - `defaultIndex?: number`: The slide it starts at, when the caller does not hold `index`. Read once. Default `0`.
730
830
  - `orientation?: Orientation`: Whether the slides go across (the default) or down.
731
831
  - `loop?: boolean`: Whether going on from the last slide comes round to the first.
732
832
  - `@index-change: (value: number, details: ChangeDetails) => void`: Heard as another slide is about to be at the start of the view: `details.cancel()` keeps the index as it was.
@@ -784,6 +884,7 @@ Props of its root:
784
884
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
785
885
  - `value?: string`: What is submitted. Default `"on"`, as a native checkbox's.
786
886
  - `indeterminate?: boolean`: Neither checked nor unchecked: a parent of boxes that disagree.
887
+ - `parent?: boolean`: In a checkbox group with `allValues`: the box that stands for them all. It is checked when every one is, mixed when some are, a press on it sets them all, and it is not submitted. Read once.
787
888
  - `@checked-change: (value: boolean, details: ChangeDetails) => void`: Heard as it is about to be checked or unchecked: `details.cancel()` keeps it as it was.
788
889
 
789
890
  Each part, and its own props:
@@ -801,6 +902,7 @@ Attributes and CSS variables, by part:
801
902
  - `data-disabled`: Present when it is disabled.
802
903
  - `data-readonly`: Present when it can be read but not changed.
803
904
  - `data-required`: Present when the form needs it.
905
+ - `data-parent`: Present on the checkbox that stands for every box of its group.
804
906
  - indicator: The mark. In the page while the box is checked or indeterminate.
805
907
  - `data-checked`: Present when it is checked.
806
908
  - `data-unchecked`: Present when it is not checked.
@@ -811,6 +913,27 @@ Attributes and CSS variables, by part:
811
913
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
812
914
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
813
915
 
916
+ ### CheckboxGroup
917
+
918
+ ```
919
+ import { CheckboxGroup } from "@kirana-ui/vue/checkbox-group"
920
+ ```
921
+
922
+ Props:
923
+
924
+ - `value?: readonly string[]`: `v-model:value`. The values of the checked checkboxes, when the caller holds them.
925
+ - `defaultValue?: readonly string[]`: The values checked at the start, when the caller does not hold `value`. Read once.
926
+ - `allValues?: readonly string[]`: The value of every checkbox of the group, for a checkbox marked `parent`: it is checked when all of them are, mixed when some are, and a press on it sets them all.
927
+ - `disabled?: boolean`: Disables every checkbox of the group.
928
+ - `@value-change: (value: string[], details: ChangeDetails) => void`: Heard as a checkbox of the group is about to be checked or unchecked, with the values that would then be checked: `details.cancel()` keeps them as they were.
929
+
930
+ `<CheckboxGroup>` draws a `<div>`.
931
+
932
+ Attributes and CSS variables, by part:
933
+
934
+ - root: The group. A checkbox inside it with a `value` is checked while the group's value holds it; one marked `parent` stands for every value of `allValues`.
935
+ - `data-disabled`: Present when it is disabled.
936
+
814
937
  ### Collapsible
815
938
 
816
939
  ```
@@ -864,7 +987,7 @@ Attributes and CSS variables, by part:
864
987
  import { Combobox } from "@kirana-ui/vue/combobox"
865
988
  ```
866
989
 
867
- Parts: `<Combobox.Root>`, `<Combobox.Input>`, `<Combobox.Trigger>`, `<Combobox.Clear>`, `<Combobox.Chips>`, `<Combobox.Chip>`, `<Combobox.ChipRemove>`, `<Combobox.Portal>`, `<Combobox.Positioner>`, `<Combobox.Popup>`, `<Combobox.List>`, `<Combobox.Group>`, `<Combobox.GroupLabel>`, `<Combobox.Separator>`, `<Combobox.Item>`, `<Combobox.ItemIndicator>`, `<Combobox.Empty>`.
990
+ Parts: `<Combobox.Root>`, `<Combobox.Input>`, `<Combobox.Trigger>`, `<Combobox.Value>`, `<Combobox.Clear>`, `<Combobox.Chips>`, `<Combobox.Chip>`, `<Combobox.ChipRemove>`, `<Combobox.Portal>`, `<Combobox.Positioner>`, `<Combobox.Popup>`, `<Combobox.List>`, `<Combobox.Collection>`, `<Combobox.Group>`, `<Combobox.GroupLabel>`, `<Combobox.Separator>`, `<Combobox.Item>`, `<Combobox.ItemIndicator>`, `<Combobox.Empty>`, `<Combobox.Status>`.
868
991
 
869
992
  Anatomy:
870
993
 
@@ -872,18 +995,26 @@ Anatomy:
872
995
  <Combobox.Root>
873
996
  <Combobox.Input>
874
997
  <Combobox.Trigger>
998
+ <Combobox.Value> (optional)
875
999
  <Combobox.Portal>
876
1000
  <Combobox.Positioner>
877
1001
  <Combobox.Popup>
878
1002
  <Combobox.Input> (as above)
879
1003
  <Combobox.List> (optional)
1004
+ <Combobox.Collection> (optional)
1005
+ <Combobox.Item> (repeated, as above)
1006
+ <Combobox.Group> (optional, repeated, as above)
880
1007
  <Combobox.Group> (optional, repeated)
1008
+ <Combobox.Collection> (optional, as above)
881
1009
  <Combobox.Item> (repeated)
882
1010
  <Combobox.ItemIndicator>
883
1011
  <Combobox.GroupLabel>
884
1012
  <Combobox.Separator> (repeated)
1013
+ <Combobox.Collection> (optional, as above)
885
1014
  <Combobox.Empty>
1015
+ <Combobox.Status> (optional)
886
1016
  <Combobox.Popup> (as above)
1017
+ <Combobox.Status> (optional, as above)
887
1018
  <Combobox.Clear>
888
1019
  <Combobox.Chips>
889
1020
  <Combobox.Input> (as above)
@@ -900,10 +1031,11 @@ Props of its root:
900
1031
  - `open?: boolean`: `v-model:open`. Whether the list is open, when the caller holds it.
901
1032
  - `defaultOpen?: boolean`: Whether the list starts open, when the caller does not hold `open`. Read once.
902
1033
  - `disabled?: boolean`: Disabled: it cannot be changed.
1034
+ - `readOnly?: boolean`: Its value can be read and not changed. The list still opens and can be gone through, by the pointer and the arrows, but no press and no Enter chooses; nothing typed is taken, and its clear and chip buttons do nothing. It keeps focus, and its value is still submitted.
903
1035
  - `name?: string`: With a name, the value is submitted with the form around it.
904
1036
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
905
- - `items?: readonly { value: Value; label: string }[] | Readonly<Record<string, string>>`: The labels of the values, for the input to show a value before the list has ever been opened: a list of values with their labels, or, for values that are text, the labels by value (`{ apple: "Apple" }`). Not needed for the list itself: its items are read from the markup.
906
- - `filter?: ((label: string, query: string) => boolean) | null`: Whether an item is shown for what was typed. Default: its label holds the text, without regard to case. `null`: every item is shown, and the caller draws the ones it wants.
1037
+ - `items?: readonly ComboboxItemData<Value>[] | readonly ComboboxGroupData<Value>[] | Readonly<Record<string, string>>`: The values with their labels: a list of them, groups of them (`{ value, items }`, `value` the group's name), or, for values that are text, the labels by value (`{ apple: "Apple" }`). The input shows a value by its label from here before the list has ever been opened. With the items written in the markup that is all it is for. With a `Collection` it is the list itself: the combobox filters it by what is typed, and the `Collection` draws what is left.
1038
+ - `filter?: ((label: string, query: string) => boolean) | null`: Whether an item is shown for what was typed. Default: its label holds the text, without regard to case. `null`: every item is shown, and the caller draws the ones it wants (or gives the `items` it wants, when they are loaded for what was typed).
907
1039
  - `multiple?: boolean`: Several values, each shown as a chip beside the input: an item chosen is added, chosen again taken away, and the list stays open. The values are `values`, not `value`.
908
1040
  - `values?: readonly Value[]`: `v-model:values`. With `multiple`: the chosen values, in the order they were chosen.
909
1041
  - `defaultValues?: readonly Value[]`: With `multiple`: the values it starts with, when the caller does not hold `values`. Read once.
@@ -921,6 +1053,8 @@ Each part, and its own props:
921
1053
  - `<Combobox.Root>` draws no element. Generic: `<Value = unknown>`. Holds the combobox: its value, what is typed and whether the list is open. Its props are above.
922
1054
  - `<Combobox.Input>` draws a `<input>`.
923
1055
  - `<Combobox.Trigger>` draws a `<button>`.
1056
+ - `<Combobox.Value>` draws no element. The chosen value's label, or a placeholder while nothing is chosen, for a button that is the combobox (its input inside the popup). With several values, their labels with commas between. Its default slot is also given `value: Value | null`, `label: string`, `values: readonly Value[]`, `labels: readonly string[]`.
1057
+ - `placeholder?: string`: What it shows while nothing is chosen.
924
1058
  - `<Combobox.Clear>` draws a `<button>`.
925
1059
  - `keepMounted?: boolean`: Keeps the button in the page while there is nothing to clear.
926
1060
  - `<Combobox.Chips>` draws a `<div>`. With several values: what holds the chips and the input, and what the list is placed against.
@@ -931,6 +1065,8 @@ Each part, and its own props:
931
1065
  - `<Combobox.Positioner>` draws a `<div>`. A positioner's own props: where its popup goes, and what it is placed against. Takes the positioner options ("Positioner options", above).
932
1066
  - `<Combobox.Popup>` draws a `<div>`.
933
1067
  - `<Combobox.List>` draws a `<div>`.
1068
+ - `<Combobox.Collection>` draws no element. Draws the list from the root's `items`: its content once for each item left for what was typed, or for each group that has items left; given a group, for each of that group's items left. The root then filters, and no item hides itself. Its default slot is also given `entry: ComboboxEntry`.
1069
+ - `of?: ComboboxEntry`: A group the root's `items` gave: its items left are then what is drawn.
934
1070
  - `<Combobox.Group>` draws a `<div>`. Items that belong together, named by their label. Hidden while none is shown.
935
1071
  - `<Combobox.GroupLabel>` draws a `<div>`. The name of a group. Outside a group it is plain text, and names nothing.
936
1072
  - `<Combobox.Separator>` draws a `<div>`. A line between groups.
@@ -942,15 +1078,18 @@ Each part, and its own props:
942
1078
  - `<Combobox.ItemIndicator>` draws a `<span>`. A mark an item shows while it is the chosen one.
943
1079
  - `keepMounted?: boolean`: Keeps the mark in the page while its item is not chosen.
944
1080
  - `<Combobox.Empty>` draws a `<div>`. What is shown when no item is.
1081
+ - `<Combobox.Status>` draws a `<div>`. Says how the list stands ("3 results", "Loading") to software that reads the page, as its text changes. It stays in the page while its text changes: inside the popup, or beside the input.
945
1082
 
946
1083
  Attributes and CSS variables, by part:
947
1084
 
948
1085
  - input: The text input. What is typed filters the list, which is placed against it, or against the chips' box when it is in one. Inside the popup, it takes focus while the popup is open.
949
1086
  - `data-popup-open`: Present when the list is open.
950
1087
  - `data-disabled`: Present when it is disabled.
1088
+ - `data-readonly`: Present when it can be read but not changed.
951
1089
  - trigger: A button that opens and closes the list. With the input inside the popup it is the combobox: a stop for Tab, and what the popup is placed against.
952
1090
  - `data-popup-open`: Present when the list is open.
953
1091
  - `data-disabled`: Present when it is disabled.
1092
+ - `data-readonly`: Present when it can be read but not changed.
954
1093
  - positioner: Places the list against the input: against the chips' box when the input is in one, the button when the input is inside the popup, or its own `anchor`. It carries the geometry.
955
1094
  - `data-open`: Present when it is open.
956
1095
  - `data-closed`: Present when it is closed.
@@ -1004,10 +1143,11 @@ Anatomy:
1004
1143
  Props of its root:
1005
1144
 
1006
1145
  - `inputValue?: string`: `v-model:inputValue`. What the input says.
1007
- - `defaultInputValue?: string`: The text the input starts with, when the caller does not hold `inputValue`. Read once.
1146
+ - `defaultInputValue?: string`: The text the input starts with, when the caller does not hold `inputValue`. Read once. Default `""`.
1008
1147
  - `filter?: ((label: string, query: string, keywords: readonly string[]) => boolean) | null`: Whether an item is shown for what was typed. Default: its label or one of its keywords holds the text, without regard to case. `null`: every item is shown, and the caller draws the ones it wants.
1009
1148
  - `loop?: boolean`: Whether a step past an end of the list goes round to the other.
1010
1149
  - `disabled?: boolean`: Disabled: nothing can be typed or chosen.
1150
+ - `autoHighlight?: boolean`: Whether the first item shown is highlighted from the start and again whenever the text changes, so Enter does it with no arrow key first, as a command palette is used. Default: `true`. With `false`, nothing is highlighted until the input has focus or an arrow or the pointer moves to an item.
1011
1151
  - `@input-value-change: (value: string, details: ChangeDetails) => void`: Heard as the input's text is about to change: `details.cancel()` keeps it as it was.
1012
1152
  - `@select: (value: string, details: ChangeDetails) => void`: An item was chosen: its value.
1013
1153
 
@@ -1204,7 +1344,7 @@ Props of its root:
1204
1344
 
1205
1345
  - `value?: IsoDate | null`: `v-model:value`. The day typed, once all of it is; `null` until then.
1206
1346
  - `defaultValue?: IsoDate | null`: The value it starts with, when the caller does not hold `value`. Read once.
1207
- - `locale?: string`: The language and region that order the day, the month and the year and put what stands between them (`"en-US"`: month/day/year). Give it: a server does not know the reader's.
1347
+ - `locale?: string`: The language and region that order the day, the month and the year and put what stands between them (`"en-US"`: month/day/year). Give it: a server does not know the reader's. Default `"en-US"`.
1208
1348
  - `min?: IsoDate`: The first and the last day it takes: outside them it says it is invalid.
1209
1349
  - `max?: IsoDate`: The last day it takes.
1210
1350
  - `placeholders?: Partial<Record<DateUnit, string>>`: What an empty part shows. Default: `dd`, `mm`, `yyyy`.
@@ -1241,7 +1381,7 @@ Attributes and CSS variables, by part:
1241
1381
  import { DatePicker } from "@kirana-ui/vue/date-picker"
1242
1382
  ```
1243
1383
 
1244
- Parts: `<DatePicker.Root>`, `<DatePicker.Field>`, `<DatePicker.Segments>`, `<DatePicker.Segment>`, `<DatePicker.Input>`, `<DatePicker.Trigger>`, `<DatePicker.Portal>`, `<DatePicker.Positioner>`, `<DatePicker.Popup>`, `<DatePicker.Calendar>`, `<DatePicker.Heading>`, `<DatePicker.Previous>`, `<DatePicker.Next>`, `<DatePicker.Grid>`, `<DatePicker.Weekdays>`, `<DatePicker.HeadCell>`, `<DatePicker.Weeks>`, `<DatePicker.Cell>`, `<DatePicker.Day>`.
1384
+ Parts: `<DatePicker.Root>`, `<DatePicker.Field>`, `<DatePicker.Segments>`, `<DatePicker.Segment>`, `<DatePicker.Input>`, `<DatePicker.Trigger>`, `<DatePicker.Portal>`, `<DatePicker.Positioner>`, `<DatePicker.Popup>`, `<DatePicker.Calendar>`, `<DatePicker.Heading>`, `<DatePicker.Previous>`, `<DatePicker.Next>`, `<DatePicker.Months>`, `<DatePicker.Grid>`, `<DatePicker.Weekdays>`, `<DatePicker.HeadCell>`, `<DatePicker.Weeks>`, `<DatePicker.Cell>`, `<DatePicker.Day>`.
1245
1385
 
1246
1386
  Anatomy:
1247
1387
 
@@ -1256,15 +1396,16 @@ Anatomy:
1256
1396
  <DatePicker.Positioner>
1257
1397
  <DatePicker.Popup>
1258
1398
  <DatePicker.Calendar>
1259
- <DatePicker.Heading>
1399
+ <DatePicker.Months> (optional)
1400
+ <DatePicker.Heading>
1401
+ <DatePicker.Grid>
1402
+ <DatePicker.Weekdays>
1403
+ <DatePicker.HeadCell> (repeated)
1404
+ <DatePicker.Weeks>
1405
+ <DatePicker.Cell> (repeated)
1406
+ <DatePicker.Day>
1260
1407
  <DatePicker.Previous>
1261
1408
  <DatePicker.Next>
1262
- <DatePicker.Grid>
1263
- <DatePicker.Weekdays>
1264
- <DatePicker.HeadCell> (repeated)
1265
- <DatePicker.Weeks>
1266
- <DatePicker.Cell> (repeated)
1267
- <DatePicker.Day>
1268
1409
  ```
1269
1410
 
1270
1411
  Props of its root:
@@ -1279,6 +1420,10 @@ Props of its root:
1279
1420
  - `isDateUnavailable?: (date: IsoDate) => boolean`: Days that cannot be picked in the calendar.
1280
1421
  - `calendarSystem?: CalendarSystem`: The calendar its months are laid out in, when it is not the Gregorian one.
1281
1422
  - `fixedWeeks?: boolean`: Always six rows of days.
1423
+ - `months?: number`: How many months the calendar shows side by side (1 by default).
1424
+ - `pagedNavigation?: boolean`: With several `months`: whether Previous and Next turn them all rather than one month.
1425
+ - `month?: IsoDate`: `v-model:month`. The month the calendar shows (the first, with several), when the caller holds it.
1426
+ - `defaultMonth?: IsoDate`: The month the calendar starts on, when the caller does not hold `month`. Read once.
1282
1427
  - `placeholders?: Partial<Record<DateUnit, string>>`: What an empty part of the field shows.
1283
1428
  - `disabled?: boolean`: Disabled: it cannot be changed.
1284
1429
  - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
@@ -1287,6 +1432,7 @@ Props of its root:
1287
1432
  - `form?: string`: The id of the form it belongs to, when it is not inside it.
1288
1433
  - `@value-change: (value: string | null, details: ChangeDetails) => void`: Heard as the day is about to change, typed or picked: `details.cancel()` keeps the value as it was.
1289
1434
  - `@open-change: (value: boolean, details: ChangeDetails) => void`: Heard as the calendar is about to open or close: `details.cancel()` keeps it as it was.
1435
+ - `@month-change: (value: string, details: ChangeDetails) => void`: Heard as the calendar is about to show another month, a day typed or picked included: its first day. `details.cancel()` keeps the month as it was.
1290
1436
 
1291
1437
  Each part, and its own props:
1292
1438
 
@@ -1297,6 +1443,9 @@ Each part, and its own props:
1297
1443
  - `segment: DateFieldSegment`: Required. The piece it draws, as `DateField.Segments` gives it.
1298
1444
  - `<DatePicker.Input>` draws a `<input>`. The hidden input it is submitted by.
1299
1445
  - `<DatePicker.Trigger>` draws a `<button>`.
1446
+ - `openOnHover?: boolean`: Whether the pointer resting on the trigger opens the popover too. A press and the keyboard still open it, and a press on one the pointer opened keeps it open. Default `false`.
1447
+ - `delay?: number`: How long the pointer rests on the trigger before the popover opens, in milliseconds. Default 300.
1448
+ - `closeDelay?: number`: How long after the pointer leaves a popover it opened closes, in milliseconds. Default 0.
1300
1449
  - `<DatePicker.Portal>` draws no element. A portal takes nothing: where it is drawn is its `PortalProvider`'s to say.
1301
1450
  - `<DatePicker.Positioner>` draws a `<div>`. A positioner's own props: where its popup goes, and what it is placed against. Takes the positioner options ("Positioner options", above).
1302
1451
  - `<DatePicker.Popup>` draws a `<div>`.
@@ -1304,7 +1453,8 @@ Each part, and its own props:
1304
1453
  - `<DatePicker.Heading>` draws a `<div>`. Names the month shown. Read out when it changes.
1305
1454
  - `<DatePicker.Previous>` draws a `<button>`.
1306
1455
  - `<DatePicker.Next>` draws a `<button>`.
1307
- - `<DatePicker.Grid>` draws a `<table>`. The table of days: a grid the arrows move in.
1456
+ - `<DatePicker.Months>` draws no element. The months shown, with several: each is given to draw its heading and its grid. It draws no element, and is left out for one month. Its default slot is also given `month: CalendarMonth`.
1457
+ - `<DatePicker.Grid>` draws a `<table>`. The table of a month's days: a grid the arrows move in, from one month shown into the next.
1308
1458
  - `<DatePicker.Weekdays>` draws no element. The days of the week: each is given to draw its head cell. Its default slot is also given `weekday: CalendarWeekday`.
1309
1459
  - `<DatePicker.HeadCell>` draws a `<th>`. A column's heading: a day of the week.
1310
1460
  - `weekday: CalendarWeekday`: Required. The day of the week it names, as `Calendar.Weekdays` gives it.
@@ -1352,7 +1502,7 @@ Attributes and CSS variables, by part:
1352
1502
  - next: Shows the month after.
1353
1503
  - `data-disabled`: Present when it is disabled.
1354
1504
  - cell: A day's cell.
1355
- - `data-selected`: Present on a chosen day, and on every day of a chosen range.
1505
+ - `data-selected`: Present on a chosen day, on every day of a chosen range, and on each day of a list. Never on a copy: a day of the month before or after shown in its own month too.
1356
1506
  - `data-today`: Present on today.
1357
1507
  - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
1358
1508
  - `data-disabled`: Present when it is disabled.
@@ -1360,7 +1510,7 @@ Attributes and CSS variables, by part:
1360
1510
  - `data-range-start`: Present on the first day of a range.
1361
1511
  - `data-range-end`: Present on the last day of a range.
1362
1512
  - day: The button for a day.
1363
- - `data-selected`: Present on a chosen day, and on every day of a chosen range.
1513
+ - `data-selected`: Present on a chosen day, on every day of a chosen range, and on each day of a list. Never on a copy: a day of the month before or after shown in its own month too.
1364
1514
  - `data-today`: Present on today.
1365
1515
  - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
1366
1516
  - `data-disabled`: Present when it is disabled.
@@ -1374,7 +1524,7 @@ Attributes and CSS variables, by part:
1374
1524
  import { Dialog } from "@kirana-ui/vue/dialog"
1375
1525
  ```
1376
1526
 
1377
- Parts: `<Dialog.Root>`, `<Dialog.Trigger>`, `<Dialog.Portal>`, `<Dialog.Backdrop>`, `<Dialog.Popup>`, `<Dialog.Title>`, `<Dialog.Description>`, `<Dialog.Close>`.
1527
+ Parts: `<Dialog.Root>`, `<Dialog.Trigger>`, `<Dialog.Portal>`, `<Dialog.Backdrop>`, `<Dialog.Viewport>`, `<Dialog.Popup>`, `<Dialog.Title>`, `<Dialog.Description>`, `<Dialog.Close>`.
1378
1528
 
1379
1529
  Anatomy:
1380
1530
 
@@ -1383,10 +1533,11 @@ Anatomy:
1383
1533
  <Dialog.Trigger>
1384
1534
  <Dialog.Portal>
1385
1535
  <Dialog.Backdrop>
1386
- <Dialog.Popup>
1387
- <Dialog.Title>
1388
- <Dialog.Description>
1389
- <Dialog.Close>
1536
+ <Dialog.Viewport> (optional)
1537
+ <Dialog.Popup>
1538
+ <Dialog.Title>
1539
+ <Dialog.Description>
1540
+ <Dialog.Close>
1390
1541
  ```
1391
1542
 
1392
1543
  Props of its root:
@@ -1403,6 +1554,7 @@ Each part, and its own props:
1403
1554
  - `<Dialog.Trigger>` draws a `<button>`.
1404
1555
  - `<Dialog.Portal>` draws no element. A portal takes nothing: where it is drawn is its `PortalProvider`'s to say.
1405
1556
  - `<Dialog.Backdrop>` draws a `<div>`.
1557
+ - `<Dialog.Viewport>` draws a `<div>`.
1406
1558
  - `<Dialog.Popup>` draws a `<div>`.
1407
1559
  - `<Dialog.Title>` draws a `<h2>`. The heading that names the dialog.
1408
1560
  - `<Dialog.Description>` draws a `<p>`. The text that describes the dialog.
@@ -1417,6 +1569,13 @@ Attributes and CSS variables, by part:
1417
1569
  - `data-closed`: Present when it is closed.
1418
1570
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1419
1571
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1572
+ - viewport: What a long dialog scrolls in: it lies over the page, between the backdrop and the popup. A press on it beside the popup is a press outside the dialog; a press on its scrollbar is not.
1573
+ - `data-open`: Present when it is open.
1574
+ - `data-closed`: Present when it is closed.
1575
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1576
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1577
+ - `data-nested`: Present when the dialog opened over another dialog.
1578
+ - `data-nested-dialog-open`: Present when another dialog is open above this one.
1420
1579
  - popup: The dialog itself.
1421
1580
  - `data-open`: Present when it is open.
1422
1581
  - `data-closed`: Present when it is closed.
@@ -1533,7 +1692,7 @@ Props of its root:
1533
1692
  - `invalid?: boolean`: Invalid whatever the value: an error known from elsewhere.
1534
1693
  - `validate?: ( value: string ) => string | readonly string[] | null | Promise<string | readonly string[] | null>`: The field's own check, after the browser's: a message or several when the value is wrong, `null` when it is right. It may answer later, with a promise.
1535
1694
  - `validationMode?: ValidationMode`: When the value is checked; the form's by default, else `"onSubmit"`.
1536
- - `validationDebounceTime?: number`: With `"onChange"`, how long the value must rest before it is checked, in milliseconds.
1695
+ - `validationDebounceTime?: number`: With `"onChange"`, how long the value must rest before it is checked, in milliseconds. Default `0`.
1537
1696
 
1538
1697
  Each part, and its own props:
1539
1698
 
@@ -1659,8 +1818,8 @@ Props of its root:
1659
1818
 
1660
1819
  - `open?: boolean`: `v-model:open`. Whether it is open, when the caller holds it.
1661
1820
  - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
1662
- - `delay?: number`: How long the pointer rests on the trigger before the popup opens, in milliseconds.
1663
- - `closeDelay?: number`: How long after the pointer leaves the popup closes, in milliseconds.
1821
+ - `delay?: number`: How long the pointer rests on the trigger before the popup opens, in milliseconds. Default `600`.
1822
+ - `closeDelay?: number`: How long after the pointer leaves the popup closes, in milliseconds. Default `300`.
1664
1823
  - `disabled?: boolean`: Disabled: the pointer and focus do not open it.
1665
1824
  - `@open-change: (value: boolean, details: ChangeDetails) => void`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
1666
1825
 
@@ -2071,8 +2230,8 @@ Props of its root:
2071
2230
 
2072
2231
  - `value?: Value | null`: `v-model:value`. The item whose content is shown; `null` is "none".
2073
2232
  - `defaultValue?: Value | null`: The item whose content it starts with, when the caller does not hold `value`. Read once.
2074
- - `delay?: number`: How long the pointer rests on a trigger before its content shows, in milliseconds.
2075
- - `closeDelay?: number`: How long after the pointer leaves the content goes, in milliseconds.
2233
+ - `delay?: number`: How long the pointer rests on a trigger before its content shows, in milliseconds. Default `50`.
2234
+ - `closeDelay?: number`: How long after the pointer leaves the content goes, in milliseconds. Default `50`.
2076
2235
  - `orientation?: Orientation`: Whether the triggers are laid out across (the default) or down: the arrows that move between them follow.
2077
2236
  - `@value-change: (value: Value | null, details: ChangeDetails) => void`: Heard as another item's content is about to show, or none: `details.cancel()` keeps the value as it was.
2078
2237
 
@@ -2150,7 +2309,7 @@ Attributes and CSS variables, by part:
2150
2309
  import { NumberField } from "@kirana-ui/vue/number-field"
2151
2310
  ```
2152
2311
 
2153
- Parts: `<NumberField.Root>`, `<NumberField.Group>`, `<NumberField.Input>`, `<NumberField.Increment>`, `<NumberField.Decrement>`.
2312
+ Parts: `<NumberField.Root>`, `<NumberField.Group>`, `<NumberField.Input>`, `<NumberField.Increment>`, `<NumberField.Decrement>`, `<NumberField.ScrubArea>`, `<NumberField.ScrubAreaCursor>`.
2154
2313
 
2155
2314
  Anatomy:
2156
2315
 
@@ -2160,6 +2319,8 @@ Anatomy:
2160
2319
  <NumberField.Input>
2161
2320
  <NumberField.Increment>
2162
2321
  <NumberField.Decrement>
2322
+ <NumberField.ScrubArea>
2323
+ <NumberField.ScrubAreaCursor>
2163
2324
  ```
2164
2325
 
2165
2326
  Props of its root:
@@ -2190,6 +2351,11 @@ Each part, and its own props:
2190
2351
  - `<NumberField.Input>` draws a `<input>`.
2191
2352
  - `<NumberField.Increment>` draws a `<button>`.
2192
2353
  - `<NumberField.Decrement>` draws a `<button>`.
2354
+ - `<NumberField.ScrubArea>` draws a `<span>`. What a scrub area takes of its own: which way it is dragged, and how fast.
2355
+ - `direction?: "horizontal" | "vertical"`: The way the pointer is dragged to change the number: `"horizontal"`, where right is more, or `"vertical"`, where up is more. Default `"horizontal"`.
2356
+ - `pixelSensitivity?: number`: How many pixels the pointer moves before the number changes: more is slower. Default 2.
2357
+ - `teleportDistance?: number`: How far past the scrub area's edges the drawn cursor goes before it comes back in at the other side, in pixels, half of it at each edge. Default: the edges of the window.
2358
+ - `<NumberField.ScrubAreaCursor>` draws a `<span>`.
2193
2359
 
2194
2360
  Attributes and CSS variables, by part:
2195
2361
 
@@ -2201,6 +2367,7 @@ Attributes and CSS variables, by part:
2201
2367
  - `data-dirty`: Present while the number is not the one it started with.
2202
2368
  - `data-filled`: Present while there is a number.
2203
2369
  - `data-focused`: Present while the input has focus.
2370
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
2204
2371
  - `data-valid`: In a field: present once the number was checked and found right.
2205
2372
  - `data-invalid`: In a field: present while the number is wrong.
2206
2373
  - group: What holds the input and its buttons, as one control.
@@ -2211,6 +2378,7 @@ Attributes and CSS variables, by part:
2211
2378
  - `data-dirty`: Present while the number is not the one it started with.
2212
2379
  - `data-filled`: Present while there is a number.
2213
2380
  - `data-focused`: Present while the input has focus.
2381
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
2214
2382
  - `data-valid`: In a field: present once the number was checked and found right.
2215
2383
  - `data-invalid`: In a field: present while the number is wrong.
2216
2384
  - input: The text input: it takes what its locale writes a number with.
@@ -2221,6 +2389,7 @@ Attributes and CSS variables, by part:
2221
2389
  - `data-dirty`: Present while the number is not the one it started with.
2222
2390
  - `data-filled`: Present while there is a number.
2223
2391
  - `data-focused`: Present while the input has focus.
2392
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
2224
2393
  - `data-valid`: In a field: present once the number was checked and found right.
2225
2394
  - `data-invalid`: In a field: present while the number is wrong.
2226
2395
  - increment: A button that steps the number up. Held, it goes on.
@@ -2231,6 +2400,7 @@ Attributes and CSS variables, by part:
2231
2400
  - `data-dirty`: Present while the number is not the one it started with.
2232
2401
  - `data-filled`: Present while there is a number.
2233
2402
  - `data-focused`: Present while the input has focus.
2403
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
2234
2404
  - `data-valid`: In a field: present once the number was checked and found right.
2235
2405
  - `data-invalid`: In a field: present while the number is wrong.
2236
2406
  - decrement: A button that steps the number down. Held, it goes on.
@@ -2241,6 +2411,29 @@ Attributes and CSS variables, by part:
2241
2411
  - `data-dirty`: Present while the number is not the one it started with.
2242
2412
  - `data-filled`: Present while there is a number.
2243
2413
  - `data-focused`: Present while the input has focus.
2414
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
2415
+ - `data-valid`: In a field: present once the number was checked and found right.
2416
+ - `data-invalid`: In a field: present while the number is wrong.
2417
+ - scrubArea: An area that is pressed and dragged to change the number: the field's label, as a rule. It takes `direction`, `pixelSensitivity` and `teleportDistance`. A mouse's pointer is locked for the drag where the browser has that (not in Safari); a finger drags as it is.
2418
+ - `data-disabled`: Present when it is disabled.
2419
+ - `data-readonly`: Present when the number cannot be changed.
2420
+ - `data-required`: Present when a number must be given.
2421
+ - `data-touched`: Present once focus has left the input.
2422
+ - `data-dirty`: Present while the number is not the one it started with.
2423
+ - `data-filled`: Present while there is a number.
2424
+ - `data-focused`: Present while the input has focus.
2425
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
2426
+ - `data-valid`: In a field: present once the number was checked and found right.
2427
+ - `data-invalid`: In a field: present while the number is wrong.
2428
+ - scrubAreaCursor: What is drawn in place of the pointer while it is locked for a drag: in the page only then, at the end of `<body>`, placed by the component.
2429
+ - `data-disabled`: Present when it is disabled.
2430
+ - `data-readonly`: Present when the number cannot be changed.
2431
+ - `data-required`: Present when a number must be given.
2432
+ - `data-touched`: Present once focus has left the input.
2433
+ - `data-dirty`: Present while the number is not the one it started with.
2434
+ - `data-filled`: Present while there is a number.
2435
+ - `data-focused`: Present while the input has focus.
2436
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
2244
2437
  - `data-valid`: In a field: present once the number was checked and found right.
2245
2438
  - `data-invalid`: In a field: present while the number is wrong.
2246
2439
 
@@ -2267,8 +2460,9 @@ Props of its root:
2267
2460
 
2268
2461
  - `length?: number`: How many characters the code has. Default: 6.
2269
2462
  - `value?: string`: `v-model:value`. The characters typed so far, when the caller holds them.
2270
- - `defaultValue?: string`: The characters it starts with, when the caller does not hold `value`. Read once.
2271
- - `mode?: "numeric" | "alphanumeric" | "text"`: What a character may be. Default: `numeric`.
2463
+ - `defaultValue?: string`: The characters it starts with, when the caller does not hold `value`. Read once. Default `""`.
2464
+ - `mode?: "numeric" | "alphabetic" | "alphanumeric" | "text"`: What a character may be: a digit (`numeric`), a letter (`alphabetic`, `a` to `z` either case), either (`alphanumeric`), or anything but white space (`text`). It also says which keyboard a phone shows: the digits' for `numeric`, letters' otherwise. Default: `numeric`, on purpose: a one-time code is digits, and its keyboard is then the one to type them on.
2465
+ - `pattern?: string`: What else a character may be: a regular expression, as text, that one character must match whole (`"[A-F0-9]"`), in place of `mode`'s rule. Text, as an attribute can only be, so it is given the same way on every framework and on a custom element. With a pattern, `mode` only says the keyboard, and defaults to `text`.
2272
2466
  - `disabled?: boolean`: Disabled: it cannot be changed.
2273
2467
  - `name?: string`: With a name, the code is submitted with the form around it.
2274
2468
  - `form?: string`: The id of the form the input belongs to, when it is not inside it.
@@ -2321,7 +2515,7 @@ Anatomy:
2321
2515
  Props of its root:
2322
2516
 
2323
2517
  - `page?: number`: `v-model:page`. The page shown, from 1.
2324
- - `defaultPage?: number`: The page it starts at, when the caller does not hold `page`. Read once.
2518
+ - `defaultPage?: number`: The page it starts at, when the caller does not hold `page`. Read once. Default `1`.
2325
2519
  - `count: number`: Required. How many items there are in all.
2326
2520
  - `pageSize?: number`: How many items a page holds. Default 10.
2327
2521
  - `siblingCount?: number`: How many pages are listed each side of the one shown. Default 1.
@@ -2357,7 +2551,7 @@ Attributes and CSS variables, by part:
2357
2551
  import { Popover } from "@kirana-ui/vue/popover"
2358
2552
  ```
2359
2553
 
2360
- Parts: `<Popover.Root>`, `<Popover.Trigger>`, `<Popover.Portal>`, `<Popover.Positioner>`, `<Popover.Popup>`, `<Popover.Title>`, `<Popover.Description>`, `<Popover.Close>`.
2554
+ Parts: `<Popover.Root>`, `<Popover.Trigger>`, `<Popover.Portal>`, `<Popover.Backdrop>`, `<Popover.Positioner>`, `<Popover.Popup>`, `<Popover.Arrow>`, `<Popover.Title>`, `<Popover.Description>`, `<Popover.Close>`.
2361
2555
 
2362
2556
  Anatomy:
2363
2557
 
@@ -2365,26 +2559,34 @@ Anatomy:
2365
2559
  <Popover.Root>
2366
2560
  <Popover.Trigger>
2367
2561
  <Popover.Portal>
2562
+ <Popover.Backdrop>
2368
2563
  <Popover.Positioner>
2369
2564
  <Popover.Popup>
2370
2565
  <Popover.Title>
2371
2566
  <Popover.Description>
2372
2567
  <Popover.Close>
2568
+ <Popover.Arrow>
2373
2569
  ```
2374
2570
 
2375
2571
  Props of its root:
2376
2572
 
2377
2573
  - `open?: boolean`: `v-model:open`. Whether it is open, when the caller holds it.
2378
2574
  - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
2575
+ - `modal?: boolean | "trap-focus"`: What the page behind it may do while it is open. `false` (the default): everything. `true`: nothing, the page is inert and does not scroll, and Tab stays inside the popover. `"trap-focus"`: Tab stays inside the popover, and the page can still be pressed and scrolled. A popover the pointer opened holds nothing until it is pressed. Read as it opens.
2379
2576
  - `@open-change: (value: boolean, details: ChangeDetails) => void`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
2380
2577
 
2381
2578
  Each part, and its own props:
2382
2579
 
2383
2580
  - `<Popover.Root>` draws no element. Holds the popover: whether it is open. Its props are above.
2384
2581
  - `<Popover.Trigger>` draws a `<button>`.
2582
+ - `openOnHover?: boolean`: Whether the pointer resting on the trigger opens the popover too. A press and the keyboard still open it, and a press on one the pointer opened keeps it open. Default `false`.
2583
+ - `delay?: number`: How long the pointer rests on the trigger before the popover opens, in milliseconds. Default 300.
2584
+ - `closeDelay?: number`: How long after the pointer leaves a popover it opened closes, in milliseconds. Default 0.
2385
2585
  - `<Popover.Portal>` draws no element. A portal takes nothing: where it is drawn is its `PortalProvider`'s to say.
2586
+ - `<Popover.Backdrop>` draws a `<div>`.
2386
2587
  - `<Popover.Positioner>` draws a `<div>`. A positioner's own props: where its popup goes, and what it is placed against. Takes the positioner options ("Positioner options", above).
2387
2588
  - `<Popover.Popup>` draws a `<div>`.
2589
+ - `<Popover.Arrow>` draws a `<div>`.
2388
2590
  - `<Popover.Title>` draws a `<h2>`. The heading that names the popover.
2389
2591
  - `<Popover.Description>` draws a `<p>`. The text that describes the popover.
2390
2592
  - `<Popover.Close>` draws a `<button>`. A button that closes the popover.
@@ -2393,6 +2595,11 @@ Attributes and CSS variables, by part:
2393
2595
 
2394
2596
  - trigger: The button that opens the popover, and what it is placed against.
2395
2597
  - `data-popup-open`: Present when the popover is open.
2598
+ - backdrop: A layer over the page behind the popover.
2599
+ - `data-open`: Present when it is open.
2600
+ - `data-closed`: Present when it is closed.
2601
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2602
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2396
2603
  - positioner: Places the popup against the trigger. It carries the geometry.
2397
2604
  - `data-open`: Present when it is open.
2398
2605
  - `data-closed`: Present when it is closed.
@@ -2410,6 +2617,10 @@ Attributes and CSS variables, by part:
2410
2617
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2411
2618
  - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
2412
2619
  - `data-align="start | center | end"`: How it is aligned with the anchor.
2620
+ - arrow: An element that points at the trigger, placed along the popup's edge.
2621
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
2622
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
2623
+ - `data-uncentered`: Present when the popup was pushed along its edge, so the arrow is not at the trigger's centre.
2413
2624
 
2414
2625
  ### Progress
2415
2626
 
@@ -2543,7 +2754,7 @@ Attributes and CSS variables, by part:
2543
2754
  - `data-disabled`: Present when it is disabled.
2544
2755
  - `data-readonly`: Present when it can be read but not changed.
2545
2756
  - `data-required`: Present when the form needs it.
2546
- - item: One choice. It holds a hidden native radio, which a form and a label reach.
2757
+ - item: One choice. It holds a hidden native radio, which a form and a label reach: the item's `id` (`kpId` on Angular, `kui-id` on a custom element) is the radio's, which a `<label for>` names.
2547
2758
  - `data-checked`: Present when it is checked.
2548
2759
  - `data-unchecked`: Present when it is not checked.
2549
2760
  - `data-disabled`: Present when it is disabled.
@@ -2593,13 +2804,13 @@ Each part, and its own props:
2593
2804
 
2594
2805
  Attributes and CSS variables, by part:
2595
2806
 
2596
- - group: The panels and the bars between them. A design lays it out as a flex box.
2807
+ - group: The panels and the bars between them. A design lays it out as a flex box: `display: flex`, and `flex-direction: column` when it is vertical. A group in a panel that is a flex box itself takes `min-width: 0` and `min-height: 0`, or what it holds widens the panel.
2597
2808
  - `data-orientation="horizontal | vertical"`: Whether the panels are side by side or one over the other.
2598
2809
  - `data-disabled`: Present when it is disabled.
2599
- - panel: One panel. It carries its share of the group.
2810
+ - panel: One panel. It carries its share of the group, written as its `flex` with `min-width: 0` and `min-height: 0`, so what it holds cannot keep it past its share. Its `overflow` is the design's.
2600
2811
  - `data-orientation="horizontal | vertical"`: Whether the panels are side by side or one over the other.
2601
2812
  - `--panel-size`: The panel's share, in hundredths of the group.
2602
- - handle: The bar between two panels: dragged, or moved with the arrows.
2813
+ - handle: The bar between two panels: dragged, or moved with the arrows. A design gives it its thickness and `flex-shrink: 0`, so the panels do not squeeze it.
2603
2814
  - `data-orientation="horizontal | vertical"`: Whether the panels are side by side or one over the other.
2604
2815
  - `data-dragging`: Present while the bar is dragged.
2605
2816
  - `data-disabled`: Present when it is disabled.
@@ -2617,7 +2828,8 @@ Anatomy:
2617
2828
  ```
2618
2829
  <ScrollArea.Root>
2619
2830
  <ScrollArea.Viewport>
2620
- <ScrollArea.Content>
2831
+ <ScrollArea.Content> (optional)
2832
+ <ScrollArea.Scrollbar> (repeated, as above)
2621
2833
  <ScrollArea.Scrollbar> (repeated)
2622
2834
  <ScrollArea.Thumb>
2623
2835
  <ScrollArea.Corner>
@@ -2627,7 +2839,7 @@ Each part, and its own props:
2627
2839
 
2628
2840
  - `<ScrollArea.Root>` draws a `<div>`.
2629
2841
  - `<ScrollArea.Viewport>` draws a `<div>`.
2630
- - `<ScrollArea.Content>` draws a `<div>`. What is scrolled.
2842
+ - `<ScrollArea.Content>` draws a `<div>`. A box around what is scrolled, as wide as what it holds. Not needed to measure: the viewport's children are watched as they are. For content whose own box does not grow with what is in it (a block holding a wider table, or bare text).
2631
2843
  - `<ScrollArea.Scrollbar>` draws a `<div>`.
2632
2844
  - `orientation?: Orientation`: Which way it scrolls; `vertical` when left out.
2633
2845
  - `keepMounted?: boolean`: Keeps the bar in the page while there is nothing to scroll that way.
@@ -2691,6 +2903,7 @@ Props of its root:
2691
2903
  - `open?: boolean`: `v-model:open`. Whether the list is open, when the caller holds it.
2692
2904
  - `defaultOpen?: boolean`: Whether the list starts open, when the caller does not hold `open`. Read once.
2693
2905
  - `disabled?: boolean`: Disabled: it cannot be changed.
2906
+ - `readOnly?: boolean`: Shown as it is, focusable, not changeable: the list still opens to be read, and no item can be chosen. Its value is still submitted with the form.
2694
2907
  - `required?: boolean`: In a field, "none" is then wrong.
2695
2908
  - `name?: string`: With a name, the value is submitted with the form around it.
2696
2909
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
@@ -2734,6 +2947,7 @@ Attributes and CSS variables, by part:
2734
2947
  - `data-popup-open`: Present when the list is open.
2735
2948
  - `data-placeholder`: Present while nothing is chosen.
2736
2949
  - `data-disabled`: Present when it is disabled.
2950
+ - `data-readonly`: Present when it can be read but not changed.
2737
2951
  - value: The chosen value's label, or the placeholder. With several values, their labels with commas between.
2738
2952
  - `data-placeholder`: Present while nothing is chosen.
2739
2953
  - positioner: Places the list against the trigger. It carries the geometry.
@@ -2816,6 +3030,7 @@ Props of its root:
2816
3030
  - `orientation?: Orientation`: Whether the track lies across (the default) or stands upright: the arrows that move a thumb follow.
2817
3031
  - `thumbAlignment?: "center" | "edge" | "edge-client-only"`: Where a thumb is at the ends of its range. `"center"` (the default): its centre on the control's edge, so half of it lies outside. `"edge"`: its edge on the control's edge, so it stays inside. `"edge-client-only"` is the same here: nothing waits for the browser.
2818
3032
  - `disabled?: boolean`: Disabled: it cannot be changed.
3033
+ - `readOnly?: boolean`: Shown as it is, focusable, not changeable: no key and no pointer moves a thumb, and its value is still submitted with the form.
2819
3034
  - `name?: string`: With a name, each thumb's value is submitted with the form around the slider.
2820
3035
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
2821
3036
  - `format?: Intl.NumberFormatOptions`: How a value is written.
@@ -2841,28 +3056,34 @@ Attributes and CSS variables, by part:
2841
3056
  - root: Groups the slider's parts.
2842
3057
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2843
3058
  - `data-disabled`: Present when it is disabled.
3059
+ - `data-readonly`: Present when it can be read but not changed.
2844
3060
  - `data-dragging`: Present while a pointer holds a thumb.
2845
3061
  - value: The value, written.
2846
3062
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2847
3063
  - `data-disabled`: Present when it is disabled.
3064
+ - `data-readonly`: Present when it can be read but not changed.
2848
3065
  - `data-dragging`: Present while a pointer holds a thumb.
2849
3066
  - control: What a pointer presses and drags on. It holds the track and the thumbs.
2850
3067
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2851
3068
  - `data-disabled`: Present when it is disabled.
3069
+ - `data-readonly`: Present when it can be read but not changed.
2852
3070
  - `data-dragging`: Present while a pointer holds a thumb.
2853
3071
  - track: The whole range.
2854
3072
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2855
3073
  - `data-disabled`: Present when it is disabled.
3074
+ - `data-readonly`: Present when it can be read but not changed.
2856
3075
  - `data-dragging`: Present while a pointer holds a thumb.
2857
3076
  - indicator: The filled part: up to the thumb, or from the first thumb to the last. Its place and length are written on it.
2858
3077
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2859
3078
  - `data-disabled`: Present when it is disabled.
3079
+ - `data-readonly`: Present when it can be read but not changed.
2860
3080
  - `data-dragging`: Present while a pointer holds a thumb.
2861
3081
  - `--start-position`: With thumbs that stay inside the control: where the filled part starts, or with one thumb where it ends.
2862
3082
  - `--relative-size`: With thumbs that stay inside the control and a range: the filled part's length.
2863
3083
  - thumb: What is dragged, and what the keyboard moves: a slider to assistive technology. Its place on the track is written on it. It holds a hidden input, which a form reads. A thumb that is given no `index` is the value at its place among the slider's thumbs, in the order they are written.
2864
3084
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2865
3085
  - `data-disabled`: Present when it is disabled.
3086
+ - `data-readonly`: Present when it can be read but not changed.
2866
3087
  - `data-dragging`: Present while a pointer holds a thumb.
2867
3088
  - `data-index`: Which thumb it is, from 0.
2868
3089
  - `--position`: With thumbs that stay inside the control: where the thumb's centre is.
@@ -3172,8 +3393,8 @@ Props of its root:
3172
3393
 
3173
3394
  - `open?: boolean`: `v-model:open`. Whether it is open, when the caller holds it.
3174
3395
  - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
3175
- - `delay?: number`: How long the pointer rests on the trigger before the popup opens, in milliseconds.
3176
- - `closeDelay?: number`: How long after the pointer leaves the popup closes, in milliseconds.
3396
+ - `delay?: number`: How long the pointer rests on the trigger before the popup opens, in milliseconds. Default `600`.
3397
+ - `closeDelay?: number`: How long after the pointer leaves the popup closes, in milliseconds. Default `0`.
3177
3398
  - `disabled?: boolean`: Disabled: the pointer and focus do not open it.
3178
3399
  - `@open-change: (value: boolean, details: ChangeDetails) => void`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
3179
3400