viewkitjs 0.24.0 → 0.25.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.
- package/CHANGELOG.md +20 -0
- package/fields/dist/creatable.d.ts +9 -5
- package/fields/dist/creatable.js +8 -1
- package/fields/dist/messages.d.ts +19 -1
- package/fields/dist/messages.js +75 -0
- package/fields/dist/registry.js +4 -7
- package/fields/dist/types.d.ts +4 -2
- package/fields/dist/zod.d.ts +58 -0
- package/fields/dist/zod.js +430 -2
- package/fields/docs/guides/checking-definitions.md +6 -1
- package/fields/docs/guides/field-types.md +5 -1
- package/fields/docs/reference/definitions.md +1 -2
- package/fields/docs/reference/types.md +2 -1
- package/fields/skills/viewkit/SKILL.md +2 -2
- package/package.json +1 -1
- package/views/dist/controls/avatar/avatar.d.ts +58 -0
- package/views/dist/controls/avatar/avatar.js +54 -0
- package/views/dist/controls/avatar/looks.d.ts +4 -0
- package/views/dist/controls/avatar/looks.js +5 -0
- package/views/dist/controls/avatar/tokens.d.ts +131 -0
- package/views/dist/controls/avatar/tokens.js +35 -0
- package/views/dist/controls/avatar.css +163 -0
- package/views/dist/controls/controls.d.ts +2 -0
- package/views/dist/controls/controls.js +2 -0
- package/views/dist/controls/index.d.ts +12 -0
- package/views/dist/controls/index.js +12 -0
- package/views/dist/controls/internal/phone.d.ts +9 -0
- package/views/dist/controls/internal/phone.js +15 -0
- package/views/dist/controls/internal/read-token.d.ts +2 -1
- package/views/dist/controls/internal/read-token.js +1 -1
- package/views/dist/controls/internal/scroll.d.ts +38 -0
- package/views/dist/controls/internal/scroll.js +126 -0
- package/views/dist/controls/list/looks.d.ts +4 -0
- package/views/dist/controls/list/looks.js +12 -0
- package/views/dist/controls/list.css +17 -13
- package/views/dist/controls/menu/map-menu.d.ts +11 -0
- package/views/dist/controls/menu/map-menu.js +47 -0
- package/views/dist/controls/menu/menu.d.ts +75 -0
- package/views/dist/controls/menu/menu.js +105 -0
- package/views/dist/controls/menu/tokens.d.ts +23 -0
- package/views/dist/controls/menu/tokens.js +8 -0
- package/views/dist/controls/menu-list/looks.d.ts +5 -1
- package/views/dist/controls/menu-list/looks.js +6 -4
- package/views/dist/controls/menu-list/menu-list.js +3 -1
- package/views/dist/controls/menu-list.css +39 -31
- package/views/dist/controls/menu.css +25 -0
- package/views/dist/controls/picker/looks.d.ts +19 -0
- package/views/dist/controls/picker/looks.js +32 -0
- package/views/dist/controls/picker/picker.d.ts +153 -0
- package/views/dist/controls/picker/picker.js +773 -0
- package/views/dist/controls/picker/rows.d.ts +129 -0
- package/views/dist/controls/picker/rows.js +90 -0
- package/views/dist/controls/picker/tokens.d.ts +147 -0
- package/views/dist/controls/picker/tokens.js +39 -0
- package/views/dist/controls/picker.css +237 -0
- package/views/dist/controls/popup-line/tokens.d.ts +23 -0
- package/views/dist/controls/popup-line/tokens.js +8 -0
- package/views/dist/controls/popup-line.css +44 -0
- package/views/dist/controls/select/filled.d.ts +7 -0
- package/views/dist/controls/select/filled.js +5 -0
- package/views/dist/controls/select/fit.d.ts +9 -0
- package/views/dist/controls/select/fit.js +11 -0
- package/views/dist/controls/select/select.d.ts +131 -0
- package/views/dist/controls/select/select.js +227 -0
- package/views/dist/controls/select/side.d.ts +3 -0
- package/views/dist/controls/select/side.js +4 -0
- package/views/dist/controls/select/tokens.d.ts +27 -0
- package/views/dist/controls/select/tokens.js +9 -0
- package/views/dist/controls/select.css +91 -0
- package/views/dist/controls/tokens.js +10 -0
- package/views/dist/looks/index.d.ts +4 -0
- package/views/dist/looks/index.js +4 -0
- package/views/dist/looks/pieces.js +6 -0
- package/views/dist/styles.css +586 -62
- package/views/dist/styles.unlayered.css +586 -62
- package/views/docs/controls/avatar.md +38 -0
- package/views/docs/controls/menu.md +11 -0
- package/views/docs/controls/picker.md +42 -0
- package/views/docs/controls/popup-line.md +11 -0
- package/views/docs/controls/select.md +12 -0
- package/views/docs/reference/controls.md +86 -0
- package/views/docs/reference/looks.md +8 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# The Avatar's tokens
|
|
2
|
+
|
|
3
|
+
Every name the Avatar's stylesheet (`avatar.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
| name | kind | the Outright token | default |
|
|
6
|
+
| ---- | ---- | ------------------ | ------- |
|
|
7
|
+
| `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
8
|
+
| `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
9
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
10
|
+
| `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
|
|
11
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
|
|
12
|
+
| `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
|
|
13
|
+
| `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
14
|
+
| `--vk-person-1` | colour | `person-1` | `#d7a77e` |
|
|
15
|
+
| `--vk-person-2` | colour | `person-2` | `#93b6ce` |
|
|
16
|
+
| `--vk-person-3` | colour | `person-3` | `#afc98f` |
|
|
17
|
+
| `--vk-person-4` | colour | `person-4` | `#cfa3c9` |
|
|
18
|
+
| `--vk-person-5` | colour | `person-5` | `#dcc57f` |
|
|
19
|
+
| `--vk-person-6` | colour | `person-6` | `#9dabdd` |
|
|
20
|
+
| `--vk-person-fg` | colour | `person-foreground` | `#10141a` |
|
|
21
|
+
| `--vk-success-bold` | colour | `background-success-bold` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
|
|
22
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
23
|
+
| `--vk-dot-size` | size | `dot-size` | `6px` |
|
|
24
|
+
| `--vk-font-size-2xl` | size | `text-2xl` | `24px` |
|
|
25
|
+
| `--vk-font-size-2xs` | size | `text-2xs` | `10px` |
|
|
26
|
+
| `--vk-font-size-3xs` | size | `text-3xs` | `8px` |
|
|
27
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
28
|
+
| `--vk-font-size-xs` | size | `text-xs` | `12px` |
|
|
29
|
+
| `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
|
|
30
|
+
| `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
|
|
31
|
+
| `--vk-radius-full` | size | `radius-full` | `9999px` |
|
|
32
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
33
|
+
| `--vk-radius-md` | size | `radius-md` | `7.5px` |
|
|
34
|
+
| `--vk-radius-sm` | size | `radius-sm` | `5px` |
|
|
35
|
+
| `--vk-radius-xl` | size | `radius-xl` | `15px` |
|
|
36
|
+
| `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
|
|
37
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
38
|
+
| `--vk-tracking-normal` | size | `tracking-normal` | `0em` |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# The Menu's tokens
|
|
2
|
+
|
|
3
|
+
Every name the Menu's stylesheet (`menu.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
| name | kind | the Outright token | default |
|
|
6
|
+
| ---- | ---- | ------------------ | ------- |
|
|
7
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
8
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
|
|
9
|
+
| `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
10
|
+
| `--vk-layer-popup` | size | `layer-popup` | `50` |
|
|
11
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# The Picker's tokens
|
|
2
|
+
|
|
3
|
+
Every name the Picker's stylesheet (`picker.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. One is a time its script reads, which the stylesheet hands it on the Picker, round every row: `--vk-hold-delay`, how long a finger rests on a phone's row before it lifts to be moved. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
| name | kind | the Outright token | default |
|
|
6
|
+
| ---- | ---- | ------------------ | ------- |
|
|
7
|
+
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
8
|
+
| `--vk-border-bold` | colour | `border-bold` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
|
|
9
|
+
| `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
10
|
+
| `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
11
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
12
|
+
| `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
|
|
13
|
+
| `--vk-fg-inverse` | colour | `text-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 95%)` |
|
|
14
|
+
| `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
|
|
15
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
|
|
16
|
+
| `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
|
|
17
|
+
| `--vk-label-amber` | colour | `label-amber` | `hsl(25 92% 41%)` |
|
|
18
|
+
| `--vk-label-blue` | colour | `label-blue` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
19
|
+
| `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
20
|
+
| `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
|
|
21
|
+
| `--vk-overlay-card` | colour | `surface-overlay-card` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
|
|
22
|
+
| `--vk-overlay-card-pressed` | colour | `surface-overlay-card-pressed` | `hsl(220 7% 90%)` · dark `hsl(220 4% 22%)` |
|
|
23
|
+
| `--vk-overlay-pressed` | colour | `surface-overlay-pressed` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
|
|
24
|
+
| `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
|
|
25
|
+
| `--vk-shadow-xl` | shadow | `shadow-xl` | `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` |
|
|
26
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
27
|
+
| `--vk-font-size-base` | size | `text-base` | `16px` |
|
|
28
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
29
|
+
| `--vk-font-size-xs` | size | `text-xs` | `12px` |
|
|
30
|
+
| `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
|
|
31
|
+
| `--vk-layer-popup` | size | `layer-popup` | `50` |
|
|
32
|
+
| `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
|
|
33
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
34
|
+
| `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
|
|
35
|
+
| `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
|
|
36
|
+
| `--vk-radius-full` | size | `radius-full` | `9999px` |
|
|
37
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
38
|
+
| `--vk-radius-md` | size | `radius-md` | `7.5px` |
|
|
39
|
+
| `--vk-radius-sm` | size | `radius-sm` | `5px` |
|
|
40
|
+
| `--vk-radius-xl` | size | `radius-xl` | `15px` |
|
|
41
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
42
|
+
| `--vk-hold-delay` | motion | `hold-delay` | `500ms` |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# The popup line's tokens
|
|
2
|
+
|
|
3
|
+
Every name the popup line's stylesheet (`popup-line.css`), the line across a popup's top or foot that the Picker's search and an editor's box stand in, reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
| name | kind | the Outright token | default |
|
|
6
|
+
| ---- | ---- | ------------------ | ------- |
|
|
7
|
+
| `--vk-border-danger` | colour | `border-danger` | `hsl(3 87% 68%)` · dark `hsl(1 55% 46.5%)` |
|
|
8
|
+
| `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
9
|
+
| `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
|
|
10
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
11
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# The Select's tokens
|
|
2
|
+
|
|
3
|
+
Every name the Select's stylesheet (`select.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
| name | kind | the Outright token | default |
|
|
6
|
+
| ---- | ---- | ------------------ | ------- |
|
|
7
|
+
| `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
|
|
8
|
+
| `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
|
|
9
|
+
| `--vk-font-size-base` | size | `text-base` | `16px` |
|
|
10
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
11
|
+
| `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
|
|
12
|
+
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
@@ -238,6 +238,92 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
|
|
|
238
238
|
|
|
239
239
|
<!-- The picker's: the Menu, the Select, the Avatar -->
|
|
240
240
|
|
|
241
|
+
## The phone's line and a list's own scrolling
|
|
242
|
+
|
|
243
|
+
- `usePhone` — whether a control takes its phone form: below 640px, outside a computer host; false through the server's first draw.
|
|
244
|
+
- `PhoneHost` — a screen standing on a page as a phone's: what stands in it takes the phone's form, its popups put inside it.
|
|
245
|
+
- `ComputerHost` — inside a box standing for a computer's screen in a phone's window: `usePhone` is false there.
|
|
246
|
+
- `COMPUTER_HOST` — the attribute that marks such a box, `data-computer-host`.
|
|
247
|
+
- `scrollInList` — `scrollInList(row, options?)`: a row brought into sight inside its own list, as `scrollIntoView` would, the window never moving.
|
|
248
|
+
- `keepsToItsList` — a row's ref: whatever asks it to scroll into view scrolls its own list alone, and a focus on it scrolls nothing.
|
|
249
|
+
- `staysInView` — a row's ref where it always stands in view (a list's foot): asked to scroll into view, it scrolls nothing.
|
|
250
|
+
- `focusesInPlace` — an element in a popup whose focus scrolls nothing.
|
|
251
|
+
- `focusWhereItStands` — focuses a box without Safari scrolling the page to it.
|
|
252
|
+
- `tapsInPlace` — `tapsInPlace(doc, within)`: a tap on a box `within` takes focuses it where it stands; returns what lets go.
|
|
253
|
+
- `holdsThePage` — `holdsThePage(doc, popup)`: while a list is open the page behind it never moves; returns what lets the page go.
|
|
254
|
+
- `scrollTopFor` — where a list's `scrollTop` goes to bring a row into sight, in the list's own pixels.
|
|
255
|
+
- `scrollTopForDrag` — where a list's `scrollTop` goes as its Scrollbar is dragged.
|
|
256
|
+
- `overflows` — whether a list of a height holding content of another scrolls: a whole pixel past its room.
|
|
257
|
+
- `scaleOf` — the scale a length is drawn at: on screen over its own.
|
|
258
|
+
- `drawnAt` — the scale an element is drawn at.
|
|
259
|
+
- `typesInto` — whether an element is a box the phone's keyboard rises for.
|
|
260
|
+
|
|
261
|
+
## The Menu
|
|
262
|
+
|
|
263
|
+
- `Menu` — what can be done to one thing, from its ⋯ (or any `trigger`), or opened from outside at an `anchor` (an element, a ref or a point): a popup on a computer, fitting its widest row between 208px and 320px; a Sheet holding the same entries as a menu list on a phone, where a row one level in opens a sheet of its own on top. Its rows are the menu list's entries (`MenuEntry`). `align`, `side`, `open`, `defaultOpen` and `onOpenChange` (with why it opened or closed), `popup` to stay a popup on a phone, `allRows`, `defaultLevel`, `finalFocus` and `standing`, and `frame`, a frame of its own round its rows on a phone (`MENU_LIST_CARD_FRAME`), read there whatever the app picked.
|
|
264
|
+
- `MenuProps` — its props.
|
|
265
|
+
- `MenuChangeDetails` — why it opened or closed, by the controls' one list (`reason`).
|
|
266
|
+
- `ContextMenu` — the same menu at the pointer, from a right-click on what it wraps; on a phone a long press opens the Sheet.
|
|
267
|
+
- `MenuDots` — the ⋯ button: the Button's quiet icon form at 32px, the neutral fill under the pointer and while its menu is open.
|
|
268
|
+
- `useSheetMenus` — whether menus are the Sheet here: on a phone, or in a phone's screen standing on a page.
|
|
269
|
+
- `MapMenu` — the components map's default `Menu` (`CONTROLS.Menu`): ViewKit's menu rows drawn as the Menu at their anchor.
|
|
270
|
+
- `menuEntries` — `menuEntries(items)`: ViewKit's menu rows (`ViewsMenuItem`) as the Menu's own kinds: ticks that close side by side one pick, a group beside its row a level in, a disabled row saying why.
|
|
271
|
+
|
|
272
|
+
## The Avatar
|
|
273
|
+
|
|
274
|
+
- `Avatar` — who or what a row is about: a person a circle on their tone, a thing, the workspace or an agent a square; `size` 16 to 64, a photo or logo by `src`, its kind's `icon`, `presence` or a `badge` on its corner.
|
|
275
|
+
- `AvatarProps` — its props.
|
|
276
|
+
- `AvatarSize` — its sizes, 16, 20, 24, 32, 40 and 64.
|
|
277
|
+
- `AvatarPresence` — whether a person is here now: `here` or `away`.
|
|
278
|
+
- `AvatarStack` — several people on one thing, overlapping, the rest a count; with `onPick` one button opening everyone in a Menu (its card rows pinned on a phone), with `addButton` a dashed + after it.
|
|
279
|
+
- `AvatarStackProps` — its props.
|
|
280
|
+
- `AvatarStackPerson` — one person on it.
|
|
281
|
+
- `initials` — a name's initials: the first letters of the first and last names.
|
|
282
|
+
- `toneOf` — a person's tone, 1 to 6, from their id: the same on every screen.
|
|
283
|
+
|
|
284
|
+
## The Picker's core
|
|
285
|
+
|
|
286
|
+
- `usePicker` — `usePicker(props)`: the Picker's parts for a shell to pour in, its body and on a phone the Sheet head's buttons: a list to pick from, with its search, the empty row, Create, several held, a row's own menu (on a phone in a frame of its own by `menuFrame`), levels one in and rows put in order. Its options are read off the frame round it (`pickerWornOf`).
|
|
287
|
+
- `Picker` — the Picker's body alone.
|
|
288
|
+
- `PickerUnder` — the Picker under a box that opens it, on a computer (the Select's): its root round the box, its list in the box's panel.
|
|
289
|
+
- `PickerProps` — its props.
|
|
290
|
+
- `PickerUnderProps` — `PickerUnder`'s props.
|
|
291
|
+
- `PickerParts` — what `usePicker` hands back: the body, and on a phone the Sheet head's props.
|
|
292
|
+
- `PickerAction` — an action at its foot (New view…).
|
|
293
|
+
- `PickerDoing` — what its list is doing: `searching` or `failed`.
|
|
294
|
+
- `PickerLead` — the row that leads, where its field leads several.
|
|
295
|
+
- `PickerBoxSearch` — what a box that is its search is handed: its keys and what it holds.
|
|
296
|
+
- `PickerItem` — a row handed to it: its value, words, second line, group, level, menu, count.
|
|
297
|
+
- `PickerAs` — what a row is drawn as: an Option, a Status, an Avatar, a sign or a mark.
|
|
298
|
+
- `PickerRow` — a row its list shows.
|
|
299
|
+
- `RowsInput` — what its rows are worked out from.
|
|
300
|
+
- `pickerRows` — what its list shows: the empty row, the headings, the matches, Create, loading more.
|
|
301
|
+
- `searchShown` — whether its search shows.
|
|
302
|
+
- `findItem` — a row found by its value, and the levels it sits in.
|
|
303
|
+
- `itemLabel` — a value's words.
|
|
304
|
+
- `exactMatch` — the row a search names exactly.
|
|
305
|
+
- `openLevels` — the rows one level in that stand open.
|
|
306
|
+
- `orderMoved` — every value in its new order after a row moved.
|
|
307
|
+
- `fold` — words folded for a search: no case, no accents, no spaces round them.
|
|
308
|
+
- `pickerWornOf` — the options worn round an element, each off the nearest frame that sets it.
|
|
309
|
+
- `pickerRead` — the attributes it reads, for an observer.
|
|
310
|
+
- `PickerWorn` — what it reads.
|
|
311
|
+
|
|
312
|
+
## The Select
|
|
313
|
+
|
|
314
|
+
- `Select` — a field to pick one or several from a closed list: the Input's box, its list the Picker under it on a computer and in the full Sheet on a phone; typed into (`searchIn="field"`), with chips, a search, Create, a server search, a clear row; or alone (`opens`), owning no list.
|
|
315
|
+
- `SelectProps` — its props.
|
|
316
|
+
- `SelectListProps` — its props with a list of its own.
|
|
317
|
+
- `SelectAloneProps` — its props alone, owning no list.
|
|
318
|
+
- `SelectItem` — a choice.
|
|
319
|
+
- `SelectShown` — the Select standing open in a page, its list under it.
|
|
320
|
+
- `SelectShownProps` — its props.
|
|
321
|
+
- `toPickerItems` — a Select's choices as the Picker's rows.
|
|
322
|
+
- `listSide` — the side its list opens on.
|
|
323
|
+
- `ListSide` — that side.
|
|
324
|
+
- `chipsThatFit` — how many chips stand on its one line.
|
|
325
|
+
- `filledMatch` — the choice a browser's fill names.
|
|
326
|
+
|
|
241
327
|
<!-- The panels': the Pane, the toolbar button, the Radio, the Modal, the alert dialog, the Toast, the Collapsible, the Alert, the Notice -->
|
|
242
328
|
|
|
243
329
|
## The stylesheets
|
|
@@ -94,6 +94,14 @@ on a frame round the controls as `data-<piece>-*`, which each control's styleshe
|
|
|
94
94
|
|
|
95
95
|
<!-- The picker's: the Menu, the Select, the Avatar -->
|
|
96
96
|
|
|
97
|
+
- `LIST_LOOKS` — the list's, every list that floats (the Select's, the Menu's panel, the Picker on a computer): 9 options (`smoothing`; `edge`; `shadow`, a scale from `none` to `xl`; `padding`, from `0` to `8`; `rows`, a computer's row height from `28` to `40`; `highlight`; `intensity`, from `1` to `3`; `row-corners`, from `input` to `full`; `dividers`) and no looks.
|
|
98
|
+
- `ListOptionId` — the list's option ids.
|
|
99
|
+
- `PICKER_LOOKS` — the Picker's: 9 options (`search`; `picked`, `create`, `doing`, `heading` and `face` a computer's; `mark`; `line`; `kind`) and two looks, `attio` (the defaults) and `mihai`.
|
|
100
|
+
- `PickerOptionId` — the Picker's option ids.
|
|
101
|
+
- `AVATAR_LOOKS` — the Avatar's, for its squares: 2 options (`corners`, a scale from `small` to `xlarge`; `smoothing`) and no looks.
|
|
102
|
+
- `AvatarLookOptionId` — the Avatar's option ids.
|
|
103
|
+
- `MENU_LIST_CARD_FRAME` — the menu list's options as a frame's data attributes, the Stack look's (Card rows, inset lines, 52, xl): a piece whose menu lists are no menu's own sheet (a panel's settings, a list of people) puts it round them, and keeps them whatever the app picks, since with nothing picked a menu's own sheet draws My preset's Words and the nearest frame wins.
|
|
104
|
+
|
|
97
105
|
<!-- The panels': the Pane, the toolbar button, the Radio, the Modal, the alert dialog, the Toast, the Collapsible, the Alert, the Notice -->
|
|
98
106
|
|
|
99
107
|
## The grid's
|