@kirana-ui/web 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 (72) hide show
  1. package/llms.txt +248 -74
  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/alert-dialog.js +6 -2
  6. package/src/alert-dialog.js.map +1 -1
  7. package/src/around.d.ts +21 -4
  8. package/src/around.js +34 -12
  9. package/src/around.js.map +1 -1
  10. package/src/autocomplete.d.ts +6 -3
  11. package/src/autocomplete.js +8 -4
  12. package/src/autocomplete.js.map +1 -1
  13. package/src/avatar.d.ts +11 -5
  14. package/src/avatar.js +39 -10
  15. package/src/avatar.js.map +1 -1
  16. package/src/calendar.d.ts +9 -5
  17. package/src/calendar.js +21 -9
  18. package/src/calendar.js.map +1 -1
  19. package/src/checkbox-group.d.ts +22 -0
  20. package/src/checkbox-group.js +36 -0
  21. package/src/checkbox-group.js.map +1 -0
  22. package/src/checkbox.d.ts +4 -2
  23. package/src/checkbox.js +10 -4
  24. package/src/checkbox.js.map +1 -1
  25. package/src/combobox.d.ts +17 -4
  26. package/src/combobox.js +43 -6
  27. package/src/combobox.js.map +1 -1
  28. package/src/command.d.ts +1 -1
  29. package/src/command.js +2 -1
  30. package/src/command.js.map +1 -1
  31. package/src/context-menu.d.ts +2 -1
  32. package/src/context-menu.js.map +1 -1
  33. package/src/date-picker.d.ts +7 -4
  34. package/src/date-picker.js +12 -3
  35. package/src/date-picker.js.map +1 -1
  36. package/src/dates.d.ts +5 -2
  37. package/src/dates.js +50 -15
  38. package/src/dates.js.map +1 -1
  39. package/src/dialog.d.ts +2 -2
  40. package/src/dialog.js +6 -2
  41. package/src/dialog.js.map +1 -1
  42. package/src/hover-card.d.ts +2 -1
  43. package/src/hover-card.js.map +1 -1
  44. package/src/index.d.ts +7 -3
  45. package/src/index.js +1 -0
  46. package/src/menu.d.ts +2 -1
  47. package/src/menu.js.map +1 -1
  48. package/src/navigation-menu.d.ts +2 -1
  49. package/src/navigation-menu.js.map +1 -1
  50. package/src/number-field.d.ts +5 -2
  51. package/src/number-field.js +23 -3
  52. package/src/number-field.js.map +1 -1
  53. package/src/otp.d.ts +1 -1
  54. package/src/otp.js +2 -1
  55. package/src/otp.js.map +1 -1
  56. package/src/popover.d.ts +8 -7
  57. package/src/popover.js +33 -5
  58. package/src/popover.js.map +1 -1
  59. package/src/radio-group.d.ts +2 -1
  60. package/src/radio-group.js +9 -2
  61. package/src/radio-group.js.map +1 -1
  62. package/src/runtime.d.ts +7 -2
  63. package/src/runtime.js +7 -4
  64. package/src/runtime.js.map +1 -1
  65. package/src/select.d.ts +3 -2
  66. package/src/select.js +2 -1
  67. package/src/select.js.map +1 -1
  68. package/src/slider.d.ts +2 -2
  69. package/src/slider.js +3 -2
  70. package/src/slider.js.map +1 -1
  71. package/src/tooltip.d.ts +2 -1
  72. package/src/tooltip.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/web`. 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/web/agent`, `@kirana-ui/web/testing`).
10
10
 
11
- Its entries: an entry per element (`@kirana-ui/web/tabs`, 48 of them), the package root `@kirana-ui/web` (every element at once), `@kirana-ui/web/runtime` (`defineElement`, for an element of your own), `@kirana-ui/web/agent` and `@kirana-ui/web/testing` (the agent bridge and the testing kit: what they give is the same on every framework, and written out in each framework package's `llms.txt`).
11
+ Its entries: an entry per element (`@kirana-ui/web/tabs`, 49 of them), the package root `@kirana-ui/web` (every element at once), `@kirana-ui/web/runtime` (`defineElement`, for an element of your own), `@kirana-ui/web/agent` and `@kirana-ui/web/testing` (the agent bridge and the testing kit: what they give is the same on every framework, and written out in each framework package's `llms.txt`).
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. It is its own package, and not installed with this one.
14
14
 
@@ -18,7 +18,7 @@ The attributes and CSS variables below are also data and typed selectors, for a
18
18
  - The custom element (`<kui-dialog>`) holds the component and draws nothing: it takes no room (`display: contents`) and has no shadow root. Every part, the root among them, is an element of the page's own inside it, named by `kui-part`: `<button kui-part="trigger">`. So a trigger is a real button, and the page is the page the other adapters draw.
19
19
  - A prop is an attribute in kebab case on the custom element (`default-open`), and a property in camel case (`element.defaultOpen`, `element.open = true`). A prop that is a function or an object is a property only, listed for its element.
20
20
  - A change is an event on the custom element, named for its callback (`open-change`, `value-change`): `event.detail` holds the value under its prop's name (`detail.open`) and `detail.details` (`reason`, `event`, `source`, `cancel()`). `event.preventDefault()` keeps the value as it was. The element then holds the value: it is controlled by writing the property back.
21
- - What a part needs of its own is a `kui-` attribute on the part's element: `kui-value`, `kui-disabled`, `kui-index`, `kui-label`, a positioner's `kui-side`, `kui-align`, `kui-side-offset`, `kui-align-offset`, `kui-collision-padding` and `kui-anchor` (the id of the element the popup is placed against, when that is not its trigger). An `id` for the component is `kui-id` on the custom element.
21
+ - What a part needs of its own is a `kui-` attribute on the part's element: `kui-value`, `kui-disabled`, `kui-index`, `kui-label`, a positioner's `kui-side`, `kui-align`, `kui-side-offset`, `kui-align-offset`, `kui-collision-padding`, `kui-sticky`, `kui-arrow-padding`, `kui-position-method`, `kui-anchor` (the id of the element the popup is placed against, when that is not its trigger) and `kui-collision-boundary` (the id of the element it is held inside). What an attribute cannot say of a positioner (`sideOffset` as a function, `collisionBoundary` as an element or a rectangle, `collisionPadding` a side, `collisionAvoidance`) is the `positioning` property of its custom element, an object of the positioner's options read as the popup comes into the page (`popover.positioning = { sideOffset: ({ anchor }) => anchor.height }`); an attribute on the positioner comes before the same option there. An `id` for the component is `kui-id` on the custom element.
22
22
  - A part that is in the page only some of the time (a closed panel, a popup) is taken out of the page while it is not, and put back where it was; `kui-keep-mounted` on the part keeps it. A portal part (`kui-part="portal"`) is moved to the end of `<body>`.
23
23
  - A list the component draws is written once, as a `<template kui-each="name">` where the list goes: it is stamped for each entry, `{field}` in its text and attributes filled from the entry, and an element with `kui-when` kept only for entries of that type.
24
24
  - A component inside another's custom element is that one's own: a `<kui-menu>` inside a `<kui-menu>` is its submenu, a control inside a `<kui-field>` is the field's control.
@@ -31,6 +31,11 @@ The attributes and CSS variables below are also data and typed selectors, for a
31
31
  - A value is controlled when it is given (`value`) and the component's own when it is not (`defaultValue`). `open`/`defaultOpen` and the others pair the same way.
32
32
  - A control with a `name` is submitted with the form around it and follows the form's reset. Inside a `Field` it is the field's control.
33
33
 
34
+ ### For a design system
35
+
36
+ - A design system's own element (a badge, a breadcrumb's link) is the page's own element, with its own classes and attributes: nothing of the library's is needed for it, and none is given, since a custom element's parts are the page's own elements too and are composed by writing them.
37
+ - 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 writes `delay="0"` on each `<kui-tooltip>`.
38
+
34
39
  ## Elements
35
40
 
36
41
  ### Accordion
@@ -103,7 +108,7 @@ Attributes and CSS variables, by part:
103
108
  import "@kirana-ui/web/alert-dialog"
104
109
  ```
105
110
 
106
- `<kui-alert-dialog>`: `<kui-alert-dialog>`: a dialog that asks, with the dialog's parts. A press outside does not close it. `open`, `default-open`; it tells `open-change`.
111
+ `<kui-alert-dialog>`: `<kui-alert-dialog>`: a dialog that asks, with the dialog's parts, its `viewport` too. A press outside does not close it. `open`, `default-open`; it tells `open-change`.
107
112
 
108
113
  Attributes of the element (each also a property, in camel case):
109
114
 
@@ -118,6 +123,7 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
118
123
 
119
124
  - `trigger`
120
125
  - `backdrop`
126
+ - `viewport`
121
127
  - `popup`
122
128
  - `title`
123
129
  - `description`
@@ -130,10 +136,11 @@ Anatomy:
130
136
  trigger
131
137
  portal
132
138
  backdrop
133
- popup
134
- title
135
- description
136
- close
139
+ viewport (optional)
140
+ popup
141
+ title
142
+ description
143
+ close
137
144
  ```
138
145
 
139
146
  Attributes and CSS variables, by part:
@@ -145,6 +152,13 @@ Attributes and CSS variables, by part:
145
152
  - `data-closed`: Present when it is closed.
146
153
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
147
154
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
155
+ - 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.
156
+ - `data-open`: Present when it is open.
157
+ - `data-closed`: Present when it is closed.
158
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
159
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
160
+ - `data-nested`: Present when the dialog opened over another dialog.
161
+ - `data-nested-dialog-open`: Present when another dialog is open above this one.
148
162
  - popup: The dialog itself.
149
163
  - `data-open`: Present when it is open.
150
164
  - `data-closed`: Present when it is closed.
@@ -159,7 +173,7 @@ Attributes and CSS variables, by part:
159
173
  import "@kirana-ui/web/autocomplete"
160
174
  ```
161
175
 
162
- `<kui-autocomplete>`: `<kui-autocomplete>`: a combobox whose text is the value, with a combobox's parts: the list only suggests. `value`, `default-value`, `open`, `default-open`, `mode`, `open-on-input-click`, `auto-highlight`, `disabled`, `required`, `name`, `form`; `filter` as a property; it tells `value-change` and `open-change`.
176
+ `<kui-autocomplete>`: `<kui-autocomplete>`: a combobox whose text is the value, with a combobox's parts: the list only suggests. `value`, `default-value`, `open`, `default-open`, `mode`, `open-on-input-click`, `auto-highlight`, `disabled`, `read-only`, `required`, `name`, `form`; `filter` and `items` as properties (with `items`, the suggestions are a `<template kui-each="collection">`, as a combobox's); it tells `value-change` and `open-change`.
163
177
 
164
178
  Attributes of the element (each also a property, in camel case):
165
179
 
@@ -171,6 +185,7 @@ Attributes of the element (each also a property, in camel case):
171
185
  - `open-on-input-click` (boolean): Whether a press on the input opens the list. Default: it opens when something is typed.
172
186
  - `auto-highlight` (boolean): The first suggestion for what was typed is highlighted as one types, so Enter takes it. Off by default: no suggestion is highlighted for having been typed at, and Enter is the form's, with the text as typed, until an arrow or the pointer has gone to one.
173
187
  - `disabled` (boolean): Disabled: it cannot be changed.
188
+ - `read-only` (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.
174
189
  - `required` (boolean): Needed: in a `Field`, leaving it empty is then invalid.
175
190
  - `name` (string): The input's name in the form around it.
176
191
  - `form` (string): The id of the form the control belongs to, when it is not inside it.
@@ -178,6 +193,7 @@ Attributes of the element (each also a property, in camel case):
178
193
  Properties only:
179
194
 
180
195
  - `filter`: Whether a suggestion is shown for what was typed; `null` shows every one.
196
+ - `items`: 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.
181
197
 
182
198
  Events:
183
199
 
@@ -188,8 +204,10 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
188
204
 
189
205
  - `input`
190
206
  - `trigger`
207
+ - `value`: `kui-placeholder`
208
+ - `status`
191
209
  - `clear`
192
- - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
210
+ - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
193
211
  - `popup`
194
212
  - `list`
195
213
  - `empty`
@@ -202,6 +220,8 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
202
220
  - `chip-remove`
203
221
  - `item-indicator`: `kui-value`
204
222
 
223
+ Lists (`<template kui-each="…">`): `collection`.
224
+
205
225
  Anatomy:
206
226
 
207
227
  ```
@@ -212,12 +232,19 @@ Anatomy:
212
232
  positioner
213
233
  popup
214
234
  list (optional)
235
+ <template kui-each="collection"> (optional)
236
+ item (repeated, as above)
237
+ group (optional, repeated, as above)
215
238
  group (optional, repeated)
239
+ <template kui-each="collection"> (optional, as above)
216
240
  item (repeated)
217
241
  group-label
218
242
  separator (repeated)
243
+ <template kui-each="collection"> (optional, as above)
219
244
  empty
245
+ status (optional)
220
246
  popup (as above)
247
+ status (optional, as above)
221
248
  clear
222
249
  ```
223
250
 
@@ -226,9 +253,11 @@ Attributes and CSS variables, by part:
226
253
  - input: The text input: its text is the value, and what is typed asks for suggestions.
227
254
  - `data-popup-open`: Present when the list is open.
228
255
  - `data-disabled`: Present when it is disabled.
256
+ - `data-readonly`: Present when it can be read but not changed.
229
257
  - 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.
230
258
  - `data-popup-open`: Present when the list is open.
231
259
  - `data-disabled`: Present when it is disabled.
260
+ - `data-readonly`: Present when it can be read but not changed.
232
261
  - 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.
233
262
  - `data-open`: Present when it is open.
234
263
  - `data-closed`: Present when it is closed.
@@ -285,17 +314,21 @@ Anatomy:
285
314
  import "@kirana-ui/web/avatar"
286
315
  ```
287
316
 
288
- `<kui-avatar>`: `<kui-avatar>` around `kui-part="root"`, an `image` (an `<img>`, in the page once the picture has loaded) and a `fallback`, in the page until then. `src`: the picture's address, on the component, since the image is not in the page to be given one.
317
+ `<kui-avatar>`: `<kui-avatar>` around `kui-part="root"`, an `image` (an `<img>`, in the page once the picture has loaded) and a `fallback`, in the page until then; `kui-delay="600"` on the fallback waits that many milliseconds first. `src`: the picture's address, on the component, since the image is not in the page to be given one. With `kui-keep-mounted` the image stays in the page, as Base UI's `keepMounted` image: its own `src` is the address, it loads the picture itself, and it is `aria-hidden` until it has (`data-loading`, `data-error`). It tells `loading-status-change` (`detail.status`) as the picture loads.
289
318
 
290
319
  Attributes of the element (each also a property, in camel case):
291
320
 
292
321
  - `src` (string)
293
322
 
323
+ Events:
324
+
325
+ - `loading-status-change`: `event.detail.status`, with `event.detail.details`. It reports something that happened: there is nothing to keep.
326
+
294
327
  Parts (`kui-part`), each with the `kui-` attributes its element is read for:
295
328
 
296
329
  - `root`
297
- - `image`
298
- - `fallback`
330
+ - `image`: `kui-keep-mounted`
331
+ - `fallback`: `kui-delay`
299
332
 
300
333
  Anatomy:
301
334
 
@@ -306,6 +339,14 @@ Anatomy:
306
339
  fallback
307
340
  ```
308
341
 
342
+ Attributes and CSS variables, by part:
343
+
344
+ - root: The frame the image and its stand-in share.
345
+ - `data-image-loading-status="idle | loading | loaded | error"`: Where the picture is in its loading: `idle` while it has no address.
346
+ - 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.
347
+ - `data-loading`: Present while the picture loads, on an image kept in the page.
348
+ - `data-error`: Present when the picture cannot load, on an image kept in the page.
349
+
309
350
  ### Button
310
351
 
311
352
  ```
@@ -342,14 +383,20 @@ Attributes and CSS variables, by part:
342
383
  import "@kirana-ui/web/calendar"
343
384
  ```
344
385
 
345
- `<kui-calendar>`: `<kui-calendar>` around `kui-part="root"`, with `previous` and `next` buttons, a `heading` (it says the month) and a `grid` table. The table's head row holds a `<template kui-each="weekdays">` with a `head-cell` (`{short}`, `{narrow}`, `{long}`); its body a `<template kui-each="weeks">` with a row, which holds a `<template kui-each="days">` with a `cell` and its `day` button (`{date}`, `{label}`). `value` and `default-value` (a day as `2026-03-14`; several with commas between), `mode`, `default-focused-value`, `locale`, `calendar-system`, `min`, `max`, `disabled`, `read-only`, `fixed-weeks`; `isDateUnavailable` as a property; it tells `value-change` and `month-change`.
386
+ `<kui-calendar>`: `<kui-calendar>` around `kui-part="root"`, with `previous` and `next` buttons, a `heading` (it says the month) and a `grid` table. The table's head row holds a `<template kui-each="weekdays">` with a `head-cell` (`{short}`, `{narrow}`, `{long}`); its body a `<template kui-each="weeks">` with a row, which holds a `<template kui-each="days">` with a `cell` and its `day` button (`{date}`, `{label}`). With several `months`, a `<template kui-each="months">` (`{index}`, `{month}`, `{title}`) holds each month's `heading` and `grid`. An `<input kui-part="input">` submits the value under `name`. `value` and `default-value` (a day as `2026-03-14`; a range's first and last, or a list's days, with commas between), `mode`, `min-days`, `max-days`, `months`, `paged-navigation`, `month`, `default-month`, `default-focused-value`, `locale`, `calendar-system`, `min`, `max`, `disabled`, `read-only`, `fixed-weeks`, `name`, `form`; `isDateUnavailable` as a property; it tells `value-change` and `month-change`.
346
387
 
347
388
  Attributes of the element (each also a property, in camel case):
348
389
 
349
- - `value` (string): One day, or with `mode: "range"` a first and a last day; `null` for none.
390
+ - `value` (string): 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.
350
391
  - `default-value` (string): The value it starts with, when the caller does not hold `value`. Read once.
351
- - `mode` (string): Whether one day is chosen (the default) or a first and a last.
352
- - `default-focused-value` (string): The day it opens on, when it has no value: its month is the one shown.
392
+ - `mode` (string): 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).
393
+ - `min-days` (number): With `mode: "multiple"`: the fewest days that can be left chosen. A press that would leave fewer does nothing.
394
+ - `max-days` (number): With `mode: "multiple"`: the most days that can be chosen. Once they are, the other days are disabled until one is taken away.
395
+ - `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`.
396
+ - `paged-navigation` (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.
397
+ - `month` (string): 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.
398
+ - `default-month` (string): 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.
399
+ - `default-focused-value` (string): 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.
353
400
  - `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.
354
401
  - `calendar-system` (string): 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.
355
402
  - `min` (string): The first and the last day that can be chosen.
@@ -357,6 +404,8 @@ Attributes of the element (each also a property, in camel case):
357
404
  - `disabled` (boolean): Disabled: no day can be chosen.
358
405
  - `read-only` (boolean): Shown as it is: the days can be moved through, and none can be chosen.
359
406
  - `fixed-weeks` (boolean): Always six rows, so the calendar is one height in every month.
407
+ - `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.
408
+ - `form` (string): The id of the form it belongs to, when it is not inside it.
360
409
 
361
410
  Properties only:
362
411
 
@@ -365,11 +414,12 @@ Properties only:
365
414
  Events:
366
415
 
367
416
  - `value-change`: `event.detail.value`, with `event.detail.details`. `preventDefault()` keeps `value` as it was.
368
- - `month-change`: `event.detail.month`, with `event.detail.details`. It reports something that happened: there is nothing to keep.
417
+ - `month-change`: `event.detail.month`, with `event.detail.details`. `preventDefault()` keeps `month` as it was.
369
418
 
370
419
  Parts (`kui-part`), each with the `kui-` attributes its element is read for:
371
420
 
372
421
  - `root`
422
+ - `input`
373
423
  - `heading`
374
424
  - `previous`
375
425
  - `next`
@@ -378,23 +428,25 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
378
428
  - `cell`
379
429
  - `day`
380
430
 
381
- Lists (`<template kui-each="…">`): `weekdays`, `weeks`, `days`.
431
+ Lists (`<template kui-each="…">`): `weekdays`, `months`, `weeks`, `days`.
382
432
 
383
433
  Anatomy:
384
434
 
385
435
  ```
386
436
  <kui-calendar>
387
437
  root
388
- heading
438
+ <template kui-each="months"> (optional)
439
+ heading
440
+ grid
441
+ <template kui-each="weekdays">
442
+ head-cell (repeated)
443
+ <template kui-each="weeks">
444
+ <template kui-each="days">
445
+ cell (repeated)
446
+ day
389
447
  previous
390
448
  next
391
- grid
392
- <template kui-each="weekdays">
393
- head-cell (repeated)
394
- <template kui-each="weeks">
395
- <template kui-each="days">
396
- cell (repeated)
397
- day
449
+ input
398
450
  ```
399
451
 
400
452
  Attributes and CSS variables, by part:
@@ -407,7 +459,7 @@ Attributes and CSS variables, by part:
407
459
  - next: Shows the month after.
408
460
  - `data-disabled`: Present when it is disabled.
409
461
  - cell: A day's cell.
410
- - `data-selected`: Present on a chosen day, and on every day of a chosen range.
462
+ - `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.
411
463
  - `data-today`: Present on today.
412
464
  - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
413
465
  - `data-disabled`: Present when it is disabled.
@@ -415,7 +467,7 @@ Attributes and CSS variables, by part:
415
467
  - `data-range-start`: Present on the first day of a range.
416
468
  - `data-range-end`: Present on the last day of a range.
417
469
  - day: The button for a day.
418
- - `data-selected`: Present on a chosen day, and on every day of a chosen range.
470
+ - `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.
419
471
  - `data-today`: Present on today.
420
472
  - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
421
473
  - `data-disabled`: Present when it is disabled.
@@ -485,13 +537,14 @@ Attributes and CSS variables, by part:
485
537
  import "@kirana-ui/web/checkbox"
486
538
  ```
487
539
 
488
- `<kui-checkbox>`: `<kui-checkbox>` around a `kui-part="root"` button with an `indicator` inside, which is in the page while the box is checked or indeterminate. The root draws the hidden native input a form and a label reach. `checked`, `default-checked`, `indeterminate`, `disabled`, `read-only`, `required`, `name`, `form`, `value`; it tells `checked-change`.
540
+ `<kui-checkbox>`: `<kui-checkbox>` around a `kui-part="root"` button with an `indicator` inside, which is in the page while the box is checked or indeterminate. The root draws the hidden native input a form and a label reach. Inside a `<kui-checkbox-group>` it is one of the group's boxes, by its `value`, or with `parent` the one that stands for them all. `checked`, `default-checked`, `indeterminate`, `parent`, `disabled`, `read-only`, `required`, `name`, `form`, `value`; it tells `checked-change`.
489
541
 
490
542
  Attributes of the element (each also a property, in camel case):
491
543
 
492
544
  - `checked` (boolean): Whether it is checked, when the caller holds it.
493
545
  - `default-checked` (boolean): Read once.
494
546
  - `indeterminate` (boolean): Neither checked nor unchecked: a parent of boxes that disagree.
547
+ - `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.
495
548
  - `disabled` (boolean): Disabled: it cannot be changed.
496
549
  - `read-only` (boolean): Shown as it is, focusable, not changeable.
497
550
  - `required` (boolean): Needed: in a `Field`, leaving it unchecked is then invalid.
@@ -525,6 +578,7 @@ Attributes and CSS variables, by part:
525
578
  - `data-disabled`: Present when it is disabled.
526
579
  - `data-readonly`: Present when it can be read but not changed.
527
580
  - `data-required`: Present when the form needs it.
581
+ - `data-parent`: Present on the checkbox that stands for every box of its group.
528
582
  - indicator: The mark. In the page while the box is checked or indeterminate.
529
583
  - `data-checked`: Present when it is checked.
530
584
  - `data-unchecked`: Present when it is not checked.
@@ -535,6 +589,41 @@ Attributes and CSS variables, by part:
535
589
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
536
590
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
537
591
 
592
+ ### CheckboxGroup
593
+
594
+ ```
595
+ import "@kirana-ui/web/checkbox-group"
596
+ ```
597
+
598
+ `<kui-checkbox-group>`: `<kui-checkbox-group>` around `kui-part="root"` and its `<kui-checkbox>`es, each with a `value`; one marked `parent` stands for every value of `all-values`. `value`, `default-value` and `all-values` (with commas between), `disabled`; it tells `value-change`.
599
+
600
+ Attributes of the element (each also a property, in camel case):
601
+
602
+ - `value` (string): The values of the checked checkboxes, when the caller holds them.
603
+ - `default-value` (string): The values checked at the start, when the caller does not hold `value`. Read once.
604
+ - `all-values` (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.
605
+ - `disabled` (boolean): Disables every checkbox of the group.
606
+
607
+ Events:
608
+
609
+ - `value-change`: `event.detail.value`, with `event.detail.details`. `preventDefault()` keeps `value` as it was.
610
+
611
+ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
612
+
613
+ - `root`
614
+
615
+ Anatomy:
616
+
617
+ ```
618
+ <kui-checkbox-group>
619
+ root
620
+ ```
621
+
622
+ Attributes and CSS variables, by part:
623
+
624
+ - 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`.
625
+ - `data-disabled`: Present when it is disabled.
626
+
538
627
  ### Collapsible
539
628
 
540
629
  ```
@@ -591,7 +680,7 @@ Attributes and CSS variables, by part:
591
680
  import "@kirana-ui/web/combobox"
592
681
  ```
593
682
 
594
- `<kui-combobox>`: `<kui-combobox>` around an `input`, with a `trigger` and a `clear` button if it has them, and a `portal` with a `positioner` (`kui-side` … and `kui-anchor`, an element's id) around the `popup`, which holds an `item` for each `kui-value` (`kui-disabled`, `kui-label`, `kui-id`) with an `item-indicator`, in `group`s with a `group-label` and `separator`s if it has them, and an `empty` part drawn while nothing matches. The `input` may be inside the `popup`, the items then in a `list` part: the popup is placed against the `trigger`, and the input has focus while it is open. With `multiple`, the input is in a `chips` part with a `<template kui-each="chips">` holding a `chip` (`{value}`) and its `chip-remove` button. With a name it draws the hidden input a form reads. `value`, `default-value`, `input-value`, `default-input-value`, `open`, `default-open`, `disabled`, `required`, `inline`, `auto-highlight`, `multiple`, `values` and `default-values` (with commas between), `name`, `form`; `items` and `filter` as properties; it tells `value-change`, `values-change`, `input-value-change` and `open-change`.
683
+ `<kui-combobox>`: `<kui-combobox>` around an `input`, with a `trigger` and a `clear` button if it has them, and a `portal` with a `positioner` (`kui-side` … and `kui-anchor`, an element's id) around the `popup`, which holds an `item` for each `kui-value` (`kui-disabled`, `kui-label`, `kui-id`) with an `item-indicator`, in `group`s with a `group-label` and `separator`s if it has them, and an `empty` part drawn while nothing matches. The `input` may be inside the `popup`, the items then in a `list` part: the popup is placed against the `trigger`, and the input has focus while it is open. With `multiple`, the input is in a `chips` part with a `<template kui-each="chips">` holding a `chip` (`{value}`) and its `chip-remove` button. With the input in the popup, the `trigger` may hold a `value` part: it says the chosen value's label, or its `kui-placeholder`. A `status` part says how the list stands to software that reads the page, as the page changes its text. With `items` given as data, the list is a `<template kui-each="collection">` holding an `item` (`kui-value="{value}"`, `{label}`; `kui-when="item"` where groups are given too) or a `group` (`kui-when="group"`, `{value}` its name) with a `<template kui-each="collection">` of its own for its items: the element filters, and draws what is left. With a name it draws the hidden input a form reads. `value`, `default-value`, `input-value`, `default-input-value`, `open`, `default-open`, `disabled`, `read-only`, `required`, `inline`, `auto-highlight`, `multiple`, `values` and `default-values` (with commas between), `name`, `form`; `items` and `filter` as properties; it tells `value-change`, `values-change`, `input-value-change` and `open-change`.
595
684
 
596
685
  Attributes of the element (each also a property, in camel case):
597
686
 
@@ -602,6 +691,7 @@ Attributes of the element (each also a property, in camel case):
602
691
  - `open` (boolean): Whether the list is open, when the caller holds it.
603
692
  - `default-open` (boolean): Whether the list starts open, when the caller does not hold `open`. Read once.
604
693
  - `disabled` (boolean): Disabled: it cannot be changed.
694
+ - `read-only` (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.
605
695
  - `required` (boolean): In a field, "none" is then wrong.
606
696
  - `inline` (boolean): The list is always in the page, under the input, with no popup: a command palette. An item chosen is told to the caller, and the input keeps what was typed.
607
697
  - `auto-highlight` (boolean): The first item shown for what was typed is highlighted as one types, so Enter chooses it. Off by default: typing then highlights nothing, and Enter chooses once an arrow or the pointer has gone to an item. Either way a list opened with nothing typed is on its chosen item, if it has one.
@@ -613,8 +703,8 @@ Attributes of the element (each also a property, in camel case):
613
703
 
614
704
  Properties only:
615
705
 
616
- - `items`: 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.
617
- - `filter`: 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.
706
+ - `items`: 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.
707
+ - `filter`: 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).
618
708
 
619
709
  Events:
620
710
 
@@ -627,8 +717,10 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
627
717
 
628
718
  - `input`
629
719
  - `trigger`
720
+ - `value`: `kui-placeholder`
721
+ - `status`
630
722
  - `clear`
631
- - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
723
+ - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
632
724
  - `popup`
633
725
  - `list`
634
726
  - `empty`
@@ -641,7 +733,7 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
641
733
  - `chip-remove`
642
734
  - `item-indicator`: `kui-value`
643
735
 
644
- Lists (`<template kui-each="…">`): `chips`.
736
+ Lists (`<template kui-each="…">`): `chips`, `collection`.
645
737
 
646
738
  Anatomy:
647
739
 
@@ -649,18 +741,26 @@ Anatomy:
649
741
  <kui-combobox>
650
742
  input
651
743
  trigger
744
+ value (optional)
652
745
  portal
653
746
  positioner
654
747
  popup
655
748
  input (as above)
656
749
  list (optional)
750
+ <template kui-each="collection"> (optional)
751
+ item (repeated, as above)
752
+ group (optional, repeated, as above)
657
753
  group (optional, repeated)
754
+ <template kui-each="collection"> (optional, as above)
658
755
  item (repeated)
659
756
  item-indicator
660
757
  group-label
661
758
  separator (repeated)
759
+ <template kui-each="collection"> (optional, as above)
662
760
  empty
761
+ status (optional)
663
762
  popup (as above)
763
+ status (optional, as above)
664
764
  clear
665
765
  chips
666
766
  input (as above)
@@ -673,9 +773,11 @@ Attributes and CSS variables, by part:
673
773
  - 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.
674
774
  - `data-popup-open`: Present when the list is open.
675
775
  - `data-disabled`: Present when it is disabled.
776
+ - `data-readonly`: Present when it can be read but not changed.
676
777
  - 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.
677
778
  - `data-popup-open`: Present when the list is open.
678
779
  - `data-disabled`: Present when it is disabled.
780
+ - `data-readonly`: Present when it can be read but not changed.
679
781
  - 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.
680
782
  - `data-open`: Present when it is open.
681
783
  - `data-closed`: Present when it is closed.
@@ -711,13 +813,14 @@ Attributes and CSS variables, by part:
711
813
  import "@kirana-ui/web/command"
712
814
  ```
713
815
 
714
- `<kui-command>`: `<kui-command>` around `kui-part="root"`, an `input` and a `list` of `item`s (`kui-value`, `kui-disabled`, `kui-label`, `kui-keywords` with commas between, `kui-id`), in `group`s with a `group-heading` and `separator`s (`kui-always-render`) if it has them, and an `empty` part drawn while nothing matches. What is typed filters the list; Enter or a press runs an item. `input-value`, `default-input-value`, `loop`, `disabled`; `filter` as a property; it tells `input-value-change` and `select`.
816
+ `<kui-command>`: `<kui-command>` around `kui-part="root"`, an `input` and a `list` of `item`s (`kui-value`, `kui-disabled`, `kui-label`, `kui-keywords` with commas between, `kui-id`), in `group`s with a `group-heading` and `separator`s (`kui-always-render`) if it has them, and an `empty` part drawn while nothing matches. What is typed filters the list; Enter or a press runs an item. `input-value`, `default-input-value`, `loop`, `auto-highlight` (on unless `="false"`), `disabled`; `filter` as a property; it tells `input-value-change` and `select`.
715
817
 
716
818
  Attributes of the element (each also a property, in camel case):
717
819
 
718
820
  - `input-value` (string): What the input says.
719
821
  - `default-input-value` (string): The text the input starts with, when the caller does not hold `inputValue`. Read once.
720
822
  - `loop` (boolean): Whether a step past an end of the list goes round to the other.
823
+ - `auto-highlight` (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.
721
824
  - `disabled` (boolean): Disabled: nothing can be typed or chosen.
722
825
 
723
826
  Properties only:
@@ -780,7 +883,7 @@ Events:
780
883
 
781
884
  Parts (`kui-part`), each with the `kui-` attributes its element is read for:
782
885
 
783
- - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
886
+ - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
784
887
  - `popup`
785
888
  - `arrow`
786
889
  - `separator`
@@ -936,7 +1039,7 @@ Attributes and CSS variables, by part:
936
1039
  import "@kirana-ui/web/date-picker"
937
1040
  ```
938
1041
 
939
- `<kui-date-picker>`: `<kui-date-picker>`: a date field and a calendar in a popover that are one value. A `kui-part="field"` with a date field's `segments` template and `input`; a `trigger` button; and a `portal` with a `positioner` around the `popup`, which holds the `calendar` with a calendar's parts and templates. `value`, `default-value`, `open`, `default-open`, `locale`, `min`, `max`, `calendar-system`, `fixed-weeks`, `disabled`, `read-only`, `required`, `name`, `form`; `isDateUnavailable` and `placeholders` as properties; it tells `value-change` and `open-change`.
1042
+ `<kui-date-picker>`: `<kui-date-picker>`: a date field and a calendar in a popover that are one value. A `kui-part="field"` with a date field's `segments` template and `input`; a `trigger` button; and a `portal` with a `positioner` around the `popup`, which holds the `calendar` with a calendar's parts and templates. `value`, `default-value`, `open`, `default-open`, `locale`, `min`, `max`, `calendar-system`, `fixed-weeks`, `months` (each drawn in a `<template kui-each="months">`), `paged-navigation`, `month`, `default-month`, `disabled`, `read-only`, `required`, `name`, `form`; `isDateUnavailable` and `placeholders` as properties; it tells `value-change`, `open-change` and `month-change`.
940
1043
 
941
1044
  Attributes of the element (each also a property, in camel case):
942
1045
 
@@ -949,6 +1052,10 @@ Attributes of the element (each also a property, in camel case):
949
1052
  - `max` (string): The last day that can be typed or picked.
950
1053
  - `calendar-system` (string): The calendar its months are laid out in, when it is not the Gregorian one.
951
1054
  - `fixed-weeks` (boolean): Always six rows of days.
1055
+ - `months` (number): How many months the calendar shows side by side (1 by default).
1056
+ - `paged-navigation` (boolean): With several `months`: whether Previous and Next turn them all rather than one month.
1057
+ - `month` (string): The month the calendar shows (the first, with several), when the caller holds it.
1058
+ - `default-month` (string): The month the calendar starts on, when the caller does not hold `month`. Read once.
952
1059
  - `disabled` (boolean): Disabled: it cannot be changed.
953
1060
  - `read-only` (boolean): Shown as it is, focusable, not changeable.
954
1061
  - `required` (boolean): Needed: in a `Field`, leaving it empty is then invalid.
@@ -964,6 +1071,7 @@ Events:
964
1071
 
965
1072
  - `value-change`: `event.detail.value`, with `event.detail.details`. `preventDefault()` keeps `value` as it was.
966
1073
  - `open-change`: `event.detail.open`, with `event.detail.details`. `preventDefault()` keeps `open` as it was.
1074
+ - `month-change`: `event.detail.month`, with `event.detail.details`. `preventDefault()` keeps `month` as it was.
967
1075
 
968
1076
  Parts (`kui-part`), each with the `kui-` attributes its element is read for:
969
1077
 
@@ -971,7 +1079,7 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
971
1079
  - `segment`
972
1080
  - `input`
973
1081
  - `trigger`
974
- - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
1082
+ - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
975
1083
  - `popup`
976
1084
  - `calendar`
977
1085
  - `heading`
@@ -982,7 +1090,7 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
982
1090
  - `cell`
983
1091
  - `day`
984
1092
 
985
- Lists (`<template kui-each="…">`): `segments`, `weekdays`, `weeks`, `days`.
1093
+ Lists (`<template kui-each="…">`): `segments`, `weekdays`, `months`, `weeks`, `days`.
986
1094
 
987
1095
  Anatomy:
988
1096
 
@@ -997,16 +1105,17 @@ Anatomy:
997
1105
  positioner
998
1106
  popup
999
1107
  calendar
1000
- heading
1108
+ <template kui-each="months"> (optional)
1109
+ heading
1110
+ grid
1111
+ <template kui-each="weekdays">
1112
+ head-cell (repeated)
1113
+ <template kui-each="weeks">
1114
+ <template kui-each="days">
1115
+ cell (repeated)
1116
+ day
1001
1117
  previous
1002
1118
  next
1003
- grid
1004
- <template kui-each="weekdays">
1005
- head-cell (repeated)
1006
- <template kui-each="weeks">
1007
- <template kui-each="days">
1008
- cell (repeated)
1009
- day
1010
1119
  ```
1011
1120
 
1012
1121
  Attributes and CSS variables, by part:
@@ -1047,7 +1156,7 @@ Attributes and CSS variables, by part:
1047
1156
  - next: Shows the month after.
1048
1157
  - `data-disabled`: Present when it is disabled.
1049
1158
  - cell: A day's cell.
1050
- - `data-selected`: Present on a chosen day, and on every day of a chosen range.
1159
+ - `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.
1051
1160
  - `data-today`: Present on today.
1052
1161
  - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
1053
1162
  - `data-disabled`: Present when it is disabled.
@@ -1055,7 +1164,7 @@ Attributes and CSS variables, by part:
1055
1164
  - `data-range-start`: Present on the first day of a range.
1056
1165
  - `data-range-end`: Present on the last day of a range.
1057
1166
  - day: The button for a day.
1058
- - `data-selected`: Present on a chosen day, and on every day of a chosen range.
1167
+ - `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.
1059
1168
  - `data-today`: Present on today.
1060
1169
  - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
1061
1170
  - `data-disabled`: Present when it is disabled.
@@ -1069,7 +1178,7 @@ Attributes and CSS variables, by part:
1069
1178
  import "@kirana-ui/web/dialog"
1070
1179
  ```
1071
1180
 
1072
- `<kui-dialog>`: `<kui-dialog>` around a `kui-part="trigger"` button and a `portal`, which is drawn at the end of the page while the dialog is open and holds its `backdrop` and its `popup`, with a `title`, a `description` and a `close` button. `open`, `default-open`, `modal`, `dismissible`; it tells `open-change`.
1181
+ `<kui-dialog>`: `<kui-dialog>` around a `kui-part="trigger"` button and a `portal`, which is drawn at the end of the page while the dialog is open and holds its `backdrop` and its `popup`, with a `title`, a `description` and a `close` button. A long dialog's popup is in a `viewport`, which scrolls. `open`, `default-open`, `modal`, `dismissible`; it tells `open-change`.
1073
1182
 
1074
1183
  Attributes of the element (each also a property, in camel case):
1075
1184
 
@@ -1086,6 +1195,7 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
1086
1195
 
1087
1196
  - `trigger`
1088
1197
  - `backdrop`
1198
+ - `viewport`
1089
1199
  - `popup`
1090
1200
  - `title`
1091
1201
  - `description`
@@ -1098,10 +1208,11 @@ Anatomy:
1098
1208
  trigger
1099
1209
  portal
1100
1210
  backdrop
1101
- popup
1102
- title
1103
- description
1104
- close
1211
+ viewport (optional)
1212
+ popup
1213
+ title
1214
+ description
1215
+ close
1105
1216
  ```
1106
1217
 
1107
1218
  Attributes and CSS variables, by part:
@@ -1113,6 +1224,13 @@ Attributes and CSS variables, by part:
1113
1224
  - `data-closed`: Present when it is closed.
1114
1225
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1115
1226
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1227
+ - 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.
1228
+ - `data-open`: Present when it is open.
1229
+ - `data-closed`: Present when it is closed.
1230
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1231
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1232
+ - `data-nested`: Present when the dialog opened over another dialog.
1233
+ - `data-nested-dialog-open`: Present when another dialog is open above this one.
1116
1234
  - popup: The dialog itself.
1117
1235
  - `data-open`: Present when it is open.
1118
1236
  - `data-closed`: Present when it is closed.
@@ -1375,7 +1493,7 @@ Events:
1375
1493
  Parts (`kui-part`), each with the `kui-` attributes its element is read for:
1376
1494
 
1377
1495
  - `trigger`: `kui-close-delay`, `kui-delay`
1378
- - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
1496
+ - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
1379
1497
  - `popup`
1380
1498
  - `arrow`
1381
1499
 
@@ -1551,7 +1669,7 @@ Events:
1551
1669
 
1552
1670
  Parts (`kui-part`), each with the `kui-` attributes its element is read for:
1553
1671
 
1554
- - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
1672
+ - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
1555
1673
  - `popup`
1556
1674
  - `arrow`
1557
1675
  - `separator`
@@ -1785,7 +1903,7 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
1785
1903
  - `icon`: `kui-value`
1786
1904
  - `content`: `kui-value`
1787
1905
  - `link`: `kui-active`, `kui-close-on-click`
1788
- - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
1906
+ - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
1789
1907
  - `popup`
1790
1908
  - `viewport`
1791
1909
  - `arrow`
@@ -1867,7 +1985,7 @@ Attributes and CSS variables, by part:
1867
1985
  import "@kirana-ui/web/number-field"
1868
1986
  ```
1869
1987
 
1870
- `<kui-number-field>`: `<kui-number-field>` around `kui-part="root"`, a `group`, an `input`, and `increment` and `decrement` buttons. With a name, the root draws the hidden input a form reads. `value`, `default-value`, `min`, `max`, `step`, `small-step`, `large-step`, `snap-on-step`, `allow-wheel-scrub`, `locale`, `disabled`, `read-only`, `required`, `name`, `form`; `format` as a property; it tells `value-change` and `value-committed`.
1988
+ `<kui-number-field>`: `<kui-number-field>` around `kui-part="root"`, a `group`, an `input`, and `increment` and `decrement` buttons. With a name, the root draws the hidden input a form reads. A `scrub-area` (a label, as a rule) is pressed and dragged to change the number, with `kui-direction="vertical"`, `kui-pixel-sensitivity` and `kui-teleport-distance` on it; a `scrub-area-cursor` inside it is drawn at the end of the page while the pointer is locked. `value`, `default-value`, `min`, `max`, `step`, `small-step`, `large-step`, `snap-on-step`, `allow-wheel-scrub`, `locale`, `disabled`, `read-only`, `required`, `name`, `form`; `format` as a property; it tells `value-change` and `value-committed`.
1871
1989
 
1872
1990
  Attributes of the element (each also a property, in camel case):
1873
1991
 
@@ -1903,6 +2021,8 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
1903
2021
  - `input`
1904
2022
  - `increment`
1905
2023
  - `decrement`
2024
+ - `scrub-area`: `kui-direction`, `kui-pixel-sensitivity`, `kui-teleport-distance`
2025
+ - `scrub-area-cursor`
1906
2026
 
1907
2027
  Anatomy:
1908
2028
 
@@ -1913,6 +2033,8 @@ Anatomy:
1913
2033
  input
1914
2034
  increment
1915
2035
  decrement
2036
+ scrub-area
2037
+ scrub-area-cursor
1916
2038
  ```
1917
2039
 
1918
2040
  Attributes and CSS variables, by part:
@@ -1925,6 +2047,7 @@ Attributes and CSS variables, by part:
1925
2047
  - `data-dirty`: Present while the number is not the one it started with.
1926
2048
  - `data-filled`: Present while there is a number.
1927
2049
  - `data-focused`: Present while the input has focus.
2050
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
1928
2051
  - `data-valid`: In a field: present once the number was checked and found right.
1929
2052
  - `data-invalid`: In a field: present while the number is wrong.
1930
2053
  - group: What holds the input and its buttons, as one control.
@@ -1935,6 +2058,7 @@ Attributes and CSS variables, by part:
1935
2058
  - `data-dirty`: Present while the number is not the one it started with.
1936
2059
  - `data-filled`: Present while there is a number.
1937
2060
  - `data-focused`: Present while the input has focus.
2061
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
1938
2062
  - `data-valid`: In a field: present once the number was checked and found right.
1939
2063
  - `data-invalid`: In a field: present while the number is wrong.
1940
2064
  - input: The text input: it takes what its locale writes a number with.
@@ -1945,6 +2069,7 @@ Attributes and CSS variables, by part:
1945
2069
  - `data-dirty`: Present while the number is not the one it started with.
1946
2070
  - `data-filled`: Present while there is a number.
1947
2071
  - `data-focused`: Present while the input has focus.
2072
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
1948
2073
  - `data-valid`: In a field: present once the number was checked and found right.
1949
2074
  - `data-invalid`: In a field: present while the number is wrong.
1950
2075
  - increment: A button that steps the number up. Held, it goes on.
@@ -1955,6 +2080,7 @@ Attributes and CSS variables, by part:
1955
2080
  - `data-dirty`: Present while the number is not the one it started with.
1956
2081
  - `data-filled`: Present while there is a number.
1957
2082
  - `data-focused`: Present while the input has focus.
2083
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
1958
2084
  - `data-valid`: In a field: present once the number was checked and found right.
1959
2085
  - `data-invalid`: In a field: present while the number is wrong.
1960
2086
  - decrement: A button that steps the number down. Held, it goes on.
@@ -1965,6 +2091,29 @@ Attributes and CSS variables, by part:
1965
2091
  - `data-dirty`: Present while the number is not the one it started with.
1966
2092
  - `data-filled`: Present while there is a number.
1967
2093
  - `data-focused`: Present while the input has focus.
2094
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
2095
+ - `data-valid`: In a field: present once the number was checked and found right.
2096
+ - `data-invalid`: In a field: present while the number is wrong.
2097
+ - 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.
2098
+ - `data-disabled`: Present when it is disabled.
2099
+ - `data-readonly`: Present when the number cannot be changed.
2100
+ - `data-required`: Present when a number must be given.
2101
+ - `data-touched`: Present once focus has left the input.
2102
+ - `data-dirty`: Present while the number is not the one it started with.
2103
+ - `data-filled`: Present while there is a number.
2104
+ - `data-focused`: Present while the input has focus.
2105
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
2106
+ - `data-valid`: In a field: present once the number was checked and found right.
2107
+ - `data-invalid`: In a field: present while the number is wrong.
2108
+ - 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.
2109
+ - `data-disabled`: Present when it is disabled.
2110
+ - `data-readonly`: Present when the number cannot be changed.
2111
+ - `data-required`: Present when a number must be given.
2112
+ - `data-touched`: Present once focus has left the input.
2113
+ - `data-dirty`: Present while the number is not the one it started with.
2114
+ - `data-filled`: Present while there is a number.
2115
+ - `data-focused`: Present while the input has focus.
2116
+ - `data-scrubbing`: Present while the number is dragged from its scrub area.
1968
2117
  - `data-valid`: In a field: present once the number was checked and found right.
1969
2118
  - `data-invalid`: In a field: present while the number is wrong.
1970
2119
 
@@ -1974,14 +2123,15 @@ Attributes and CSS variables, by part:
1974
2123
  import "@kirana-ui/web/otp"
1975
2124
  ```
1976
2125
 
1977
- `<kui-otp>`: `<kui-otp>` around `kui-part="root"`, the one `input` that is typed in, and a `slot` for each character (`kui-index`, from 0), which says its character and may hold a `caret`, in the page while the next character goes there. Slots may be in `group`s with a `separator` between. `length`, `value`, `default-value`, `mode`, `disabled`, `name`, `form`; it tells `value-change` and `complete`.
2126
+ `<kui-otp>`: `<kui-otp>` around `kui-part="root"`, the one `input` that is typed in, and a `slot` for each character (`kui-index`, from 0), which says its character and may hold a `caret`, in the page while the next character goes there. Slots may be in `group`s with a `separator` between. `length`, `value`, `default-value`, `mode`, `pattern`, `disabled`, `name`, `form`; it tells `value-change` and `complete`.
1978
2127
 
1979
2128
  Attributes of the element (each also a property, in camel case):
1980
2129
 
1981
2130
  - `length` (number): How many characters the code has. Default: 6.
1982
2131
  - `value` (string): The characters typed so far, when the caller holds them.
1983
2132
  - `default-value` (string): The characters it starts with, when the caller does not hold `value`. Read once.
1984
- - `mode` (string): What a character may be. Default: `numeric`.
2133
+ - `mode` (string): 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.
2134
+ - `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`.
1985
2135
  - `disabled` (boolean): Disabled: it cannot be changed.
1986
2136
  - `name` (string): With a name, the code is submitted with the form around it.
1987
2137
  - `form` (string): The id of the form the input belongs to, when it is not inside it.
@@ -2088,12 +2238,13 @@ Attributes and CSS variables, by part:
2088
2238
  import "@kirana-ui/web/popover"
2089
2239
  ```
2090
2240
 
2091
- `<kui-popover>`: `<kui-popover>` around a `kui-part="trigger"` button and a `portal`, drawn at the end of the page while it is open, with a `positioner` (`kui-side`, `kui-align`, `kui-side-offset`, `kui-align-offset`, `kui-collision-padding`, and `kui-anchor`: the id of the element it is placed against, when that is not the trigger) around the `popup`, which may hold a `title`, a `description` and a `close` button. `open`, `default-open`; it tells `open-change`.
2241
+ `<kui-popover>`: `<kui-popover>` around a `kui-part="trigger"` button and a `portal`, drawn at the end of the page while it is open, with a `positioner` (`kui-side`, `kui-align`, `kui-side-offset`, `kui-align-offset`, `kui-collision-padding`, and `kui-anchor`: the id of the element it is placed against, when that is not the trigger) around the `popup`, which may hold an `arrow`, a `title`, a `description` and a `close` button; the portal may hold a `backdrop` too. The trigger takes `kui-open-on-hover`, with `kui-delay` and `kui-close-delay`. `open`, `default-open`, `modal` (there, or `"trap-focus"`); it tells `open-change`.
2092
2242
 
2093
2243
  Attributes of the element (each also a property, in camel case):
2094
2244
 
2095
2245
  - `open` (boolean): Whether it is open, when the caller holds it.
2096
2246
  - `default-open` (boolean): Whether it starts open, when the caller does not hold `open`. Read once.
2247
+ - `modal` (string): 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.
2097
2248
 
2098
2249
  Events:
2099
2250
 
@@ -2101,9 +2252,11 @@ Events:
2101
2252
 
2102
2253
  Parts (`kui-part`), each with the `kui-` attributes its element is read for:
2103
2254
 
2104
- - `trigger`
2105
- - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
2255
+ - `trigger`: `kui-close-delay`, `kui-delay`, `kui-open-on-hover`
2256
+ - `backdrop`
2257
+ - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
2106
2258
  - `popup`
2259
+ - `arrow`
2107
2260
  - `title`
2108
2261
  - `description`
2109
2262
  - `close`
@@ -2114,17 +2267,24 @@ Anatomy:
2114
2267
  <kui-popover>
2115
2268
  trigger
2116
2269
  portal
2270
+ backdrop
2117
2271
  positioner
2118
2272
  popup
2119
2273
  title
2120
2274
  description
2121
2275
  close
2276
+ arrow
2122
2277
  ```
2123
2278
 
2124
2279
  Attributes and CSS variables, by part:
2125
2280
 
2126
2281
  - trigger: The button that opens the popover, and what it is placed against.
2127
2282
  - `data-popup-open`: Present when the popover is open.
2283
+ - backdrop: A layer over the page behind the popover.
2284
+ - `data-open`: Present when it is open.
2285
+ - `data-closed`: Present when it is closed.
2286
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2287
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2128
2288
  - positioner: Places the popup against the trigger. It carries the geometry.
2129
2289
  - `data-open`: Present when it is open.
2130
2290
  - `data-closed`: Present when it is closed.
@@ -2142,6 +2302,10 @@ Attributes and CSS variables, by part:
2142
2302
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2143
2303
  - `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.
2144
2304
  - `data-align="start | center | end"`: How it is aligned with the anchor.
2305
+ - arrow: An element that points at the trigger, placed along the popup's edge.
2306
+ - `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.
2307
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
2308
+ - `data-uncentered`: Present when the popup was pushed along its edge, so the arrow is not at the trigger's centre.
2145
2309
 
2146
2310
  ### Progress
2147
2311
 
@@ -2244,7 +2408,7 @@ Attributes and CSS variables, by part:
2244
2408
  import "@kirana-ui/web/radio-group"
2245
2409
  ```
2246
2410
 
2247
- `<kui-radio-group>`: `<kui-radio-group>` around `kui-part="root"` and an `item` button for each `value`, with an `indicator` inside that is in the page while its item is the chosen one. An item draws the hidden native radio a form and a label reach. `value`, `default-value`, `disabled`, `read-only`, `required`, `name`, `form`; it tells `value-change`.
2411
+ `<kui-radio-group>`: `<kui-radio-group>` around `kui-part="root"` and an `item` button for each `value`, with an `indicator` inside that is in the page while its item is the chosen one. An item draws the hidden native radio a form and a label reach; an item's `kui-id` is that radio's id, which a `<label for>` names. `value`, `default-value`, `disabled`, `read-only`, `required`, `name`, `form`; it tells `value-change`.
2248
2412
 
2249
2413
  Attributes of the element (each also a property, in camel case):
2250
2414
 
@@ -2263,7 +2427,7 @@ Events:
2263
2427
  Parts (`kui-part`), each with the `kui-` attributes its element is read for:
2264
2428
 
2265
2429
  - `root`
2266
- - `item`: `kui-disabled`, `kui-value`
2430
+ - `item`: `kui-disabled`, `kui-id`, `kui-value`
2267
2431
  - `indicator`: `kui-value`
2268
2432
 
2269
2433
  Anatomy:
@@ -2281,7 +2445,7 @@ Attributes and CSS variables, by part:
2281
2445
  - `data-disabled`: Present when it is disabled.
2282
2446
  - `data-readonly`: Present when it can be read but not changed.
2283
2447
  - `data-required`: Present when the form needs it.
2284
- - item: One choice. It holds a hidden native radio, which a form and a label reach.
2448
+ - 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.
2285
2449
  - `data-checked`: Present when it is checked.
2286
2450
  - `data-unchecked`: Present when it is not checked.
2287
2451
  - `data-disabled`: Present when it is disabled.
@@ -2331,13 +2495,13 @@ Anatomy:
2331
2495
 
2332
2496
  Attributes and CSS variables, by part:
2333
2497
 
2334
- - group: The panels and the bars between them. A design lays it out as a flex box.
2498
+ - 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.
2335
2499
  - `data-orientation="horizontal | vertical"`: Whether the panels are side by side or one over the other.
2336
2500
  - `data-disabled`: Present when it is disabled.
2337
- - panel: One panel. It carries its share of the group.
2501
+ - 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.
2338
2502
  - `data-orientation="horizontal | vertical"`: Whether the panels are side by side or one over the other.
2339
2503
  - `--panel-size`: The panel's share, in hundredths of the group.
2340
- - handle: The bar between two panels: dragged, or moved with the arrows.
2504
+ - 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.
2341
2505
  - `data-orientation="horizontal | vertical"`: Whether the panels are side by side or one over the other.
2342
2506
  - `data-dragging`: Present while the bar is dragged.
2343
2507
  - `data-disabled`: Present when it is disabled.
@@ -2365,7 +2529,8 @@ Anatomy:
2365
2529
  <kui-scroll-area>
2366
2530
  root
2367
2531
  viewport
2368
- content
2532
+ content (optional)
2533
+ scrollbar (repeated, as above)
2369
2534
  scrollbar (repeated)
2370
2535
  thumb
2371
2536
  corner
@@ -2399,7 +2564,7 @@ Attributes and CSS variables, by part:
2399
2564
  import "@kirana-ui/web/select"
2400
2565
  ```
2401
2566
 
2402
- `<kui-select>`: `<kui-select>` around a `kui-part="trigger"` button holding a `value` (it says the chosen item's text, or its `kui-placeholder`; with `multiple`, the chosen items' texts with commas between), and a `portal` with a `positioner` (its `kui-side` and the like, and `kui-align-item-with-trigger`) around the `popup`. The popup holds an `item` for each `kui-value` (`kui-disabled`, `kui-label`), each with an `item-text` and an `item-indicator`; items may be in a `group` with a `group-label`, with `separator`s between, and in a `list` between a `scroll-up-arrow` and a `scroll-down-arrow`. With a name it draws the hidden input a form reads. A `value` part that holds something says what the page wrote there: a `<template kui-each="values">` in it is drawn for each chosen value (`{value}`, `{label}`), in the items' order. `value`, `default-value`, `open`, `default-open`, `disabled`, `required`, `multiple`, `values` and `default-values` (with commas between), `name`, `form`; `items` as a property; it tells `value-change`, `values-change` and `open-change`.
2567
+ `<kui-select>`: `<kui-select>` around a `kui-part="trigger"` button holding a `value` (it says the chosen item's text, or its `kui-placeholder`; with `multiple`, the chosen items' texts with commas between), and a `portal` with a `positioner` (its `kui-side` and the like, and `kui-align-item-with-trigger`) around the `popup`. The popup holds an `item` for each `kui-value` (`kui-disabled`, `kui-label`), each with an `item-text` and an `item-indicator`; items may be in a `group` with a `group-label`, with `separator`s between, and in a `list` between a `scroll-up-arrow` and a `scroll-down-arrow`. With a name it draws the hidden input a form reads. A `value` part that holds something says what the page wrote there: a `<template kui-each="values">` in it is drawn for each chosen value (`{value}`, `{label}`), in the items' order. `value`, `default-value`, `open`, `default-open`, `disabled`, `read-only`, `required`, `multiple`, `values` and `default-values` (with commas between), `name`, `form`; `items` as a property; it tells `value-change`, `values-change` and `open-change`.
2403
2568
 
2404
2569
  Attributes of the element (each also a property, in camel case):
2405
2570
 
@@ -2408,6 +2573,7 @@ Attributes of the element (each also a property, in camel case):
2408
2573
  - `open` (boolean): Whether the list is open, when the caller holds it.
2409
2574
  - `default-open` (boolean): Whether the list starts open, when the caller does not hold `open`. Read once.
2410
2575
  - `disabled` (boolean): Disabled: it cannot be changed.
2576
+ - `read-only` (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.
2411
2577
  - `required` (boolean): In a field, "none" is then wrong.
2412
2578
  - `multiple` (boolean): Several values: an item chosen is added, chosen again taken away, and the list stays open. The values are `values`, not `value`.
2413
2579
  - `values` (string): With `multiple`: the chosen values, in the order they were chosen.
@@ -2429,7 +2595,7 @@ Parts (`kui-part`), each with the `kui-` attributes its element is read for:
2429
2595
 
2430
2596
  - `trigger`
2431
2597
  - `value`: `kui-placeholder`
2432
- - `positioner`: `kui-align`, `kui-align-item-with-trigger`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
2598
+ - `positioner`: `kui-align`, `kui-align-item-with-trigger`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
2433
2599
  - `popup`
2434
2600
  - `list`
2435
2601
  - `scroll-up-arrow`
@@ -2470,6 +2636,7 @@ Attributes and CSS variables, by part:
2470
2636
  - `data-popup-open`: Present when the list is open.
2471
2637
  - `data-placeholder`: Present while nothing is chosen.
2472
2638
  - `data-disabled`: Present when it is disabled.
2639
+ - `data-readonly`: Present when it can be read but not changed.
2473
2640
  - value: The chosen value's label, or the placeholder. With several values, their labels with commas between.
2474
2641
  - `data-placeholder`: Present while nothing is chosen.
2475
2642
  - positioner: Places the list against the trigger. It carries the geometry.
@@ -2540,7 +2707,7 @@ Attributes and CSS variables, by part:
2540
2707
  import "@kirana-ui/web/slider"
2541
2708
  ```
2542
2709
 
2543
- `<kui-slider>`: `<kui-slider>` around `kui-part="root"`, a `value` (which says the value as it is written), a `control` with its `track`, `indicator` and a `thumb` for each value, in the values' order (or each with its `kui-index`). A thumb draws the hidden input a form reads. `value` and `default-value` (a range with a comma), `min`, `max`, `step`, `large-step`, `min-steps-between-values`, `thumb-alignment`, `orientation`, `disabled`, `name`, `form`, `locale`; it tells `value-change` and `value-committed`.
2710
+ `<kui-slider>`: `<kui-slider>` around `kui-part="root"`, a `value` (which says the value as it is written), a `control` with its `track`, `indicator` and a `thumb` for each value, in the values' order (or each with its `kui-index`). A thumb draws the hidden input a form reads. `value` and `default-value` (a range with a comma), `min`, `max`, `step`, `large-step`, `min-steps-between-values`, `thumb-alignment`, `orientation`, `disabled`, `read-only`, `name`, `form`, `locale`; it tells `value-change` and `value-committed`.
2544
2711
 
2545
2712
  Attributes of the element (each also a property, in camel case):
2546
2713
 
@@ -2554,6 +2721,7 @@ Attributes of the element (each also a property, in camel case):
2554
2721
  - `thumb-alignment` (string): 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.
2555
2722
  - `orientation` (string): Whether the track lies across (the default) or stands upright: the arrows that move a thumb follow.
2556
2723
  - `disabled` (boolean): Disabled: it cannot be changed.
2724
+ - `read-only` (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.
2557
2725
  - `name` (string): With a name, each thumb's value is submitted with the form around the slider.
2558
2726
  - `form` (string): The id of the form the control belongs to, when it is not inside it.
2559
2727
  - `locale` (string): The language a value is written in; the page's by default.
@@ -2594,28 +2762,34 @@ Attributes and CSS variables, by part:
2594
2762
  - root: Groups the slider's parts.
2595
2763
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2596
2764
  - `data-disabled`: Present when it is disabled.
2765
+ - `data-readonly`: Present when it can be read but not changed.
2597
2766
  - `data-dragging`: Present while a pointer holds a thumb.
2598
2767
  - value: The value, written.
2599
2768
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2600
2769
  - `data-disabled`: Present when it is disabled.
2770
+ - `data-readonly`: Present when it can be read but not changed.
2601
2771
  - `data-dragging`: Present while a pointer holds a thumb.
2602
2772
  - control: What a pointer presses and drags on. It holds the track and the thumbs.
2603
2773
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2604
2774
  - `data-disabled`: Present when it is disabled.
2775
+ - `data-readonly`: Present when it can be read but not changed.
2605
2776
  - `data-dragging`: Present while a pointer holds a thumb.
2606
2777
  - track: The whole range.
2607
2778
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2608
2779
  - `data-disabled`: Present when it is disabled.
2780
+ - `data-readonly`: Present when it can be read but not changed.
2609
2781
  - `data-dragging`: Present while a pointer holds a thumb.
2610
2782
  - indicator: The filled part: up to the thumb, or from the first thumb to the last. Its place and length are written on it.
2611
2783
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2612
2784
  - `data-disabled`: Present when it is disabled.
2785
+ - `data-readonly`: Present when it can be read but not changed.
2613
2786
  - `data-dragging`: Present while a pointer holds a thumb.
2614
2787
  - `--start-position`: With thumbs that stay inside the control: where the filled part starts, or with one thumb where it ends.
2615
2788
  - `--relative-size`: With thumbs that stay inside the control and a range: the filled part's length.
2616
2789
  - 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.
2617
2790
  - `data-orientation="horizontal | vertical"`: The way the track runs.
2618
2791
  - `data-disabled`: Present when it is disabled.
2792
+ - `data-readonly`: Present when it can be read but not changed.
2619
2793
  - `data-dragging`: Present while a pointer holds a thumb.
2620
2794
  - `data-index`: Which thumb it is, from 0.
2621
2795
  - `--position`: With thumbs that stay inside the control: where the thumb's centre is.
@@ -2957,7 +3131,7 @@ Events:
2957
3131
  Parts (`kui-part`), each with the `kui-` attributes its element is read for:
2958
3132
 
2959
3133
  - `trigger`: `kui-close-delay`, `kui-delay`
2960
- - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-collision-padding`, `kui-side`, `kui-side-offset`
3134
+ - `positioner`: `kui-align`, `kui-align-offset`, `kui-anchor`, `kui-arrow-padding`, `kui-collision-boundary`, `kui-collision-padding`, `kui-position-method`, `kui-side`, `kui-side-offset`, `kui-sticky`
2961
3135
  - `popup`
2962
3136
  - `arrow`
2963
3137