@slotted/react 0.1.0-beta.23 → 0.1.0-beta.25
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/dist/{action-bar-D-V2uWjA.js → action-bar-DckD0Sug.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{cascader-DO1HiJT6.js → cascader-47GYpojH.js} +1 -1
- package/dist/cascader.js +1 -1
- package/dist/{checkbox-Hq1PXk04.js → checkbox-Dw9R1CGR.js} +3 -3
- package/dist/{checkbox-group-Ckoh-2GJ.js → checkbox-group-DDlz-UF4.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{color-picker-BsDplfdK.js → color-picker-BbyW5ALf.js} +3 -3
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-Dm5ZLz6p.js → column-manager-Bz0bb4mq.js} +3 -3
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-vE8dmv4K.js → combobox-BA2nvbnA.js} +1 -1
- package/dist/combobox.js +1 -1
- package/dist/{context-menu-BxbGq4bu.js → context-menu-CfEEqDKr.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-ZvfrfM0z.js → currency-field-CTzBMH8g.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-Bx4J-aC7.js → dashboard-grid-WinSY-q3.js} +1 -1
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-Dez5RojO.js → data-grid-Dh-oaGY7.js} +16 -16
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-B18kLC9Q.js → data-list-iw9K_oiz.js} +2 -2
- package/dist/data-list.js +1 -1
- package/dist/{date-field-EBPrQL6A.js → date-field-B2WG_m4C.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-B5V8NZCT.js → date-picker-B2wqU3Mw.js} +2 -2
- package/dist/date-picker.js +1 -1
- package/dist/{date-range-picker-B89Q973N.js → date-range-picker-BhQwOKkE.js} +2 -2
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-DavJbR0H.js → datetime-field-CvKPkvaE.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-Cx6Z52Ka.js → datetime-picker-C-PwlBW5.js} +2 -2
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-DYshAlgq.js → datetime-range-picker-0xs12Cf1.js} +2 -2
- package/dist/datetime-range-picker.js +1 -1
- package/dist/docs/data-grid.json +1 -1
- package/dist/docs/data-grid.md +1 -1
- package/dist/docs/datetime-picker.json +0 -1
- package/dist/docs/datetime-picker.md +1 -1
- package/dist/docs/field.json +16 -1
- package/dist/docs/field.md +3 -1
- package/dist/docs/form.json +14 -3
- package/dist/docs/form.md +3 -2
- package/dist/docs/guidelines/forms.md +89 -1
- package/dist/docs/guidelines/index.md +7 -0
- package/dist/docs/listbox.json +0 -1
- package/dist/docs/listbox.md +1 -1
- package/dist/docs/menu.json +2 -3
- package/dist/docs/menu.md +2 -2
- package/dist/docs/table.json +1 -0
- package/dist/docs/table.md +1 -1
- package/dist/docs/time-picker.json +0 -1
- package/dist/docs/time-picker.md +1 -1
- package/dist/{entity-picker-DB1HeuvJ.js → entity-picker-BFoKN50H.js} +2 -2
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-CEIyV-fW.js → event-calendar-BaPllnNk.js} +3 -3
- package/dist/event-calendar.js +1 -1
- package/dist/{field-CnSMUZw6.js → field-CSSHwGq_.js} +106 -105
- package/dist/{field-group-RACkEXPp.js → field-group-DeBTueJW.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-CzuAJsSf.js → filter-bar-CPBr_n2c.js} +9 -9
- package/dist/filter-bar.js +1 -1
- package/dist/{form-DEcJ7tHf.js → form-Im9lGi45.js} +13 -3
- package/dist/form.js +2 -2
- package/dist/{import-export-center-tbHmRTGb.js → import-export-center-CzyIlQB_.js} +1 -1
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +82 -82
- package/dist/{listbox-DvwUa0yH.js → listbox-B9cBuitS.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{markdown-Bw6L0Ifo.js → markdown-DX-mBYVT.js} +1 -1
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-7F8syoFE.js +815 -0
- package/dist/menu.js +1 -1
- package/dist/{menubar-hazvXRYd.js → menubar-DzVGFn_I.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-C1GNk4e0.js → multi-select-DnOAXeuF.js} +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/{number-field-BPYe9kLB.js → number-field-C20-8yda.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-CYtF30Q-.js → otp-input-YI-Emc5k.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{prompt-composer-C57BzYrn.js → prompt-composer-DsnPcKa4.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-CLX8D2Ew.js → radio-group-DA8_LbEz.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-BB2k-Fay.js → rating-DSSqi85N.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-B54F_Bk4.js → saved-views-CsVRZTwK.js} +3 -3
- package/dist/saved-views.js +1 -1
- package/dist/{segmented-control-B1U-s58C.js → segmented-control-Dae5wU9X.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/{select-OUGNxyS5.js → select-BTncjDuM.js} +38 -38
- package/dist/select.js +1 -1
- package/dist/{slider-Bp1QjJKu.js → slider-DNRphJot.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-Dg67gBMP.js → split-button-DA1wcDJB.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/styles/action-bar.css +1 -1
- package/dist/styles/cascader.css +1 -1
- package/dist/styles/checkbox-group.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/color-picker.css +2 -2
- package/dist/styles/column-manager.css +2 -2
- package/dist/styles/combobox.css +2 -2
- package/dist/styles/command-palette.css +1 -1
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/currency-field.css +1 -1
- package/dist/styles/dashboard-grid.css +1 -1
- package/dist/styles/data-grid.css +7 -7
- package/dist/styles/data-list.css +2 -2
- package/dist/styles/date-field.css +1 -1
- package/dist/styles/date-picker.css +1 -1
- package/dist/styles/date-range-picker.css +1 -1
- package/dist/styles/datetime-field.css +1 -1
- package/dist/styles/datetime-picker.css +2 -2
- package/dist/styles/datetime-range-picker.css +1 -1
- package/dist/styles/entity-picker.css +2 -2
- package/dist/styles/event-calendar.css +2 -2
- package/dist/styles/field-group.css +1 -1
- package/dist/styles/field.css +1 -1
- package/dist/styles/filter-bar.css +6 -6
- package/dist/styles/form.css +1 -1
- package/dist/styles/import-export-center.css +5 -5
- package/dist/styles/index.css +12 -12
- package/dist/styles/listbox.css +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/menu.css +1 -1
- package/dist/styles/menubar.css +1 -1
- package/dist/styles/multi-select.css +2 -2
- package/dist/styles/number-field.css +1 -1
- package/dist/styles/otp-input.css +1 -1
- package/dist/styles/prompt-composer.css +1 -1
- package/dist/styles/radio-group.css +1 -1
- package/dist/styles/rating.css +1 -1
- package/dist/styles/saved-views.css +2 -2
- package/dist/styles/segmented-control.css +1 -1
- package/dist/styles/select.css +2 -2
- package/dist/styles/slider.css +1 -1
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/table.css +5 -5
- package/dist/styles/tags-input.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/textarea.css +1 -1
- package/dist/styles/time-field.css +1 -1
- package/dist/styles/time-picker.css +2 -2
- package/dist/styles/time-range-picker.css +1 -1
- package/dist/styles/toggle-group.css +1 -1
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/transfer.css +2 -2
- package/dist/styles/upload.css +1 -1
- package/dist/styles/wizard.css +2 -2
- package/dist/styles.css +1 -1
- package/dist/{switch-DmLzDbTb.js → switch-gR_OvGG8.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-Cz9YpgLT.js → table-Boy-0cjy.js} +12 -12
- package/dist/table.js +1 -1
- package/dist/{tags-input-CAmXKSeZ.js → tags-input-DEhtpizX.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-CHYoral_.js → text-field-RGXN7zNu.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-47JGOZKv.js → textarea-AhpUmnMk.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-D1-rNBsB.js → time-field-xkxX8JF6.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-mwCULYh7.js → time-picker-Da_UhP9X.js} +2 -2
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-BKgsEHmd.js → time-range-picker-CfVzD53N.js} +2 -2
- package/dist/time-range-picker.js +1 -1
- package/dist/{toggle-group-Bnig_MWl.js → toggle-group-DoxPLYJ3.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{toolbar-EdmEn_ph.js → toolbar-CtSZ88HI.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/{transfer-CEHIa2XD.js → transfer-BMRyopEw.js} +5 -5
- package/dist/transfer.js +1 -1
- package/dist/types/field/field.d.ts +1 -1
- package/dist/types/field/field.d.ts.map +1 -1
- package/dist/types/field/field.types.d.ts +10 -0
- package/dist/types/field/field.types.d.ts.map +1 -1
- package/dist/types/field/index.d.ts +1 -1
- package/dist/types/field/index.d.ts.map +1 -1
- package/dist/types/form/form-parts.d.ts +7 -1
- package/dist/types/form/form-parts.d.ts.map +1 -1
- package/dist/types/form/form.types.d.ts +3 -0
- package/dist/types/form/form.types.d.ts.map +1 -1
- package/dist/types/form/index.d.ts +2 -2
- package/dist/types/form/index.d.ts.map +1 -1
- package/dist/types/menu/menu-items.d.ts.map +1 -1
- package/dist/{upload-S3d3tUt-.js → upload-BqVBpYaZ.js} +1 -1
- package/dist/upload.js +1 -1
- package/dist/{wizard-gZyH8HIo.js → wizard-CpYwQGQ-.js} +1 -1
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/menu-parts-BDdCTmko.js +0 -805
|
@@ -18,8 +18,26 @@ triggers:
|
|
|
18
18
|
read-only,
|
|
19
19
|
permission,
|
|
20
20
|
conflict,
|
|
21
|
+
layout,
|
|
22
|
+
section,
|
|
23
|
+
width,
|
|
24
|
+
]
|
|
25
|
+
families:
|
|
26
|
+
[
|
|
27
|
+
form,
|
|
28
|
+
field,
|
|
29
|
+
field-group,
|
|
30
|
+
text-field,
|
|
31
|
+
number-field,
|
|
32
|
+
select,
|
|
33
|
+
currency-field,
|
|
34
|
+
checkbox,
|
|
35
|
+
radio-group,
|
|
36
|
+
segmented-control,
|
|
37
|
+
section,
|
|
38
|
+
grid,
|
|
39
|
+
page-header,
|
|
21
40
|
]
|
|
22
|
-
families: [form, field, text-field, select, currency-field, checkbox, section, grid, page-header]
|
|
23
41
|
---
|
|
24
42
|
|
|
25
43
|
# Forms
|
|
@@ -200,3 +218,73 @@ Why: A form whose fields touch reads as one control, and a spacing written field
|
|
|
200
218
|
Do: Write one `field` after another inside the `form`; set `--slotted-form-field-gap` on the theme to change the step for every form.
|
|
201
219
|
Don't: Write a margin or a spacer element between two fields, or wrap each field in an element of the page's own that breaks the run of fields the form spaces.
|
|
202
220
|
Check: Two consecutive fields of a form stand apart by the form's step, and no field or wrapper between them carries its own margin.
|
|
221
|
+
|
|
222
|
+
### FM-18 · One column at a bounded measure
|
|
223
|
+
|
|
224
|
+
Level: SHOULD
|
|
225
|
+
Applies to: every form a page draws, on any page width
|
|
226
|
+
Rule: The fields of a form stand in one column no wider than `--slotted-form-measure` (40rem); a field never spans the page's whole measure, and the page's own width does not widen the column.
|
|
227
|
+
Why: A reader goes down one column without losing their place, and a field as wide as an 80rem page puts the label and the end of the answer a head turn apart (Baymard, "Avoid Multi-Column Forms"; CXL, "Form Field Usability").
|
|
228
|
+
Do: Write the fields as direct children of `form`, which holds them at the measure; let the page keep its own width for the header and the footer.
|
|
229
|
+
Don't: Set the page to `measure` to narrow the form, widen a field past the measure with a style of the page's own, or wrap the fields in a grid that fills the page.
|
|
230
|
+
Check: In a page 80rem wide, no control of the form is wider than 40rem.
|
|
231
|
+
|
|
232
|
+
### FM-19 · Two fields share a row only when they are one answer
|
|
233
|
+
|
|
234
|
+
Level: SHOULD
|
|
235
|
+
Applies to: a row of a form that holds more than one field
|
|
236
|
+
Rule: Two fields stand side by side only when together they answer one question — a start and an end, a frequency and its interval, an amount and its unit — in a `field-group` whose `orientation` is `horizontal`; unrelated fields never share a row to fill width.
|
|
237
|
+
Why: Two unrelated fields side by side make the reading order zig-zag, and a reader skips the field on the right (Baymard, "Avoid Multi-Column Forms").
|
|
238
|
+
Do: Write the pair in one horizontal `field-group` whose legend names the answer they make together; keep every other field on a row of its own.
|
|
239
|
+
Don't: Write a two-column `grid` of fields to fill the width, or pair a name with a date because both are short.
|
|
240
|
+
Check: Every row with two or more fields is one `field-group`, and its legend names one answer the fields make together.
|
|
241
|
+
|
|
242
|
+
### FM-20 · A field's width says what it expects
|
|
243
|
+
|
|
244
|
+
Level: SHOULD
|
|
245
|
+
Applies to: every field whose answer has a known length
|
|
246
|
+
Rule: A field's `width` follows its expected answer: `short` for an integer of up to four digits, `medium` for an amount, a code or a choice among short words, `full` (the default) for free text, a name or a picker of records.
|
|
247
|
+
Why: The width of a control is a cue to the length of its answer, and a two-digit field as wide as a description reads as a request for a sentence (Baymard, "Form Field Usability: Matching User Expectations").
|
|
248
|
+
Do: Set `width` to `short` on a day of the month or an interval, and to `medium` on an amount or a currency; change `--slotted-field-width-short` and `--slotted-field-width-medium` on the theme to change the steps for every form.
|
|
249
|
+
Don't: Write a class or a style that sizes one field, or leave a numeric field of two digits at full width.
|
|
250
|
+
Check: No field whose answer is an integer of up to four digits renders a control wider than `--slotted-field-width-short`.
|
|
251
|
+
|
|
252
|
+
### FM-21 · Sections group a topic
|
|
253
|
+
|
|
254
|
+
Level: SHOULD
|
|
255
|
+
Applies to: a form with more than six fields, or with two or more topics
|
|
256
|
+
Rule: The fields are split by topic into `field-group`s, each with a legend that names the topic; consecutive groups stand apart by `--slotted-form-section-gap`, a step larger than the gap between two fields.
|
|
257
|
+
Why: A long form whose fields all stand at one distance shows no structure, and a reader cannot tell where one topic ends.
|
|
258
|
+
Do: Write each topic as a `field-group` with a `legend`, the groups as direct children of `form`; set `--slotted-form-section-gap` on the theme to change the step.
|
|
259
|
+
Don't: Write a margin, a heading or a separator of the page's own between two groups, or hold seven fields in one run with no group.
|
|
260
|
+
Check: A form with more than six fields holds at least two `field-group`s, and two consecutive groups stand further apart than two fields of one group.
|
|
261
|
+
|
|
262
|
+
### FM-22 · Every set of choices is a question
|
|
263
|
+
|
|
264
|
+
Level: MUST
|
|
265
|
+
Applies to: a `segmented-control`, a `radio-group` or a set of checkboxes in a form
|
|
266
|
+
Rule: A set of choices is a `field-group` whose legend asks the question the choices answer.
|
|
267
|
+
Why: A set of options with no question above it is announced as a list of words, and a reader who sees it out of order cannot tell what is being chosen.
|
|
268
|
+
Do: Write the legend as the question — "How often does it run?" — and the options as its answers.
|
|
269
|
+
Don't: Leave a segmented control or a radio set with no legend, or put the question in a placeholder or a description under the options.
|
|
270
|
+
Check: Every segmented control, radio group and checkbox set of the form has a `field-group` legend as its accessible name.
|
|
271
|
+
|
|
272
|
+
### FM-23 · Necessity is said once, the same way
|
|
273
|
+
|
|
274
|
+
Level: SHOULD
|
|
275
|
+
Applies to: every application whose forms hold required and optional fields
|
|
276
|
+
Rule: One `necessity` holds for the whole application, set once through the field defaults provider; `optional` is preferred, which marks the fields a reader may skip and says nothing on the rest.
|
|
277
|
+
Why: A form that marks some fields with an asterisk and others with a word asks the reader to learn two conventions, and in a form where most fields are required the asterisk on every one says nothing (Adam Silver, "Don't mark required fields with an asterisk").
|
|
278
|
+
Do: Set `necessity` to `optional` on the field defaults provider at the application's root.
|
|
279
|
+
Don't: Set `necessity` field by field, or mix a mark and a word in one form.
|
|
280
|
+
Check: No field of the application sets `necessity` on itself, and every form renders one convention.
|
|
281
|
+
|
|
282
|
+
### FM-24 · Help sits where its question is
|
|
283
|
+
|
|
284
|
+
Level: SHOULD
|
|
285
|
+
Applies to: every text that helps a reader answer a form
|
|
286
|
+
Rule: A format or a consequence of one answer is a one-line `description` under its control; the definition of a term is the field's `help` beside the label; what the whole record will do is the form's `aside`, beside the fields on a wide form and after them on a narrow one.
|
|
287
|
+
Why: Help placed away from its question is read after the answer is given, or not at all, and a paragraph above the form is skipped.
|
|
288
|
+
Do: Write the format under the field it applies to, the definition behind the help control, and the summary of the record in the aside.
|
|
289
|
+
Don't: Write a paragraph of help above the form, a description of more than one line, or a summary of the record in a field's description.
|
|
290
|
+
Check: Every help text of the form is a description, a help hint or the aside, and no description runs past one line.
|
|
@@ -56,6 +56,13 @@ Every active rule, one line each. Load this first; load a topic file when the ta
|
|
|
56
56
|
| FM-15 | SHOULD | The action is written through the command whose record says the same thing, with a fixed prefix that names the document it is about, and the document reads its own entries back by that prefix; no endpoint is invented in the client. | `forms.md` |
|
|
57
57
|
| FM-16 | SHOULD | A date entered in a form is a `date-picker`, which keeps typing in its field and adds the calendar behind its trigger; a `date-field` alone is not used in a form. | `forms.md` |
|
|
58
58
|
| FM-17 | SHOULD | The fields of a form are written as its direct children, in a `field-group` or in a `grid` for fields that stand side by side; the form spaces consecutive fields by `--slotted-form-field-gap`, and no field carries a margin of its own. | `forms.md` |
|
|
59
|
+
| FM-18 | SHOULD | The fields of a form stand in one column no wider than `--slotted-form-measure` (40rem); a field never spans the page's whole measure, and the page's own width does not widen the column. | `forms.md` |
|
|
60
|
+
| FM-19 | SHOULD | Two fields stand side by side only when together they answer one question — a start and an end, a frequency and its interval, an amount and its unit — in a `field-group` whose `orientation` is `horizontal`; unrelated fields never share a row to fill width. | `forms.md` |
|
|
61
|
+
| FM-20 | SHOULD | A field's `width` follows its expected answer: `short` for an integer of up to four digits, `medium` for an amount, a code or a choice among short words, `full` (the default) for free text, a name or a picker of records. | `forms.md` |
|
|
62
|
+
| FM-21 | SHOULD | The fields are split by topic into `field-group`s, each with a legend that names the topic; consecutive groups stand apart by `--slotted-form-section-gap`, a step larger than the gap between two fields. | `forms.md` |
|
|
63
|
+
| FM-22 | MUST | A set of choices is a `field-group` whose legend asks the question the choices answer. | `forms.md` |
|
|
64
|
+
| FM-23 | SHOULD | One `necessity` holds for the whole application, set once through the field defaults provider; `optional` is preferred, which marks the fields a reader may skip and says nothing on the rest. | `forms.md` |
|
|
65
|
+
| FM-24 | SHOULD | A format or a consequence of one answer is a one-line `description` under its control; the definition of a term is the field's `help` beside the label; what the whole record will do is the form's `aside`, beside the fields on a wide form and after them on a narrow one. | `forms.md` |
|
|
59
66
|
| LA-01 | SHOULD | A pager under a paged region is aligned to the end of the line. | `layout-alignment.md` |
|
|
60
67
|
| LA-02 | MUST | A consumer's row in the navigation column's pinned parts is inset by `--slotted-app-shell-row-inset` and starts with a mark column `--slotted-app-shell-row-mark` wide, the avatar centred in it. | `layout-alignment.md` |
|
|
61
68
|
| LA-03 | SHOULD | Below the header's narrow step the header's actions occupy one row: one action beside a plain title becomes its icon-only form, and two or more stand in a `toolbar` that folds into its menu, each item with its counterpart and the primary one without, so it stays. Beside a plain title that row is the title's line; under a rich title (visual, marks, subheading) `page-header` gives the toolbar a full row of its own. | `layout-alignment.md` |
|
package/dist/docs/listbox.json
CHANGED
|
@@ -626,7 +626,6 @@
|
|
|
626
626
|
"--slotted-control-padding-inline-lg",
|
|
627
627
|
"--slotted-control-padding-inline-md",
|
|
628
628
|
"--slotted-control-padding-inline-sm",
|
|
629
|
-
"--slotted-control-radius",
|
|
630
629
|
"--slotted-control-shadow",
|
|
631
630
|
"--slotted-control-transition-duration",
|
|
632
631
|
"--slotted-control-transition-easing",
|
package/dist/docs/listbox.md
CHANGED
|
@@ -148,7 +148,7 @@ Excerpt — not a complete module
|
|
|
148
148
|
|
|
149
149
|
## Tokens
|
|
150
150
|
|
|
151
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-
|
|
151
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-shadow`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-loop`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-listbox-border-color`, `--slotted-listbox-columns`, `--slotted-listbox-group-border-color`, `--slotted-listbox-highlight`, `--slotted-listbox-highlight-active`, `--slotted-listbox-measure`, `--slotted-listbox-option-radius`, `--slotted-listbox-padding-block`, `--slotted-listbox-padding-inline`, `--slotted-listbox-radius`, `--slotted-listbox-rows`, `--slotted-listbox-selected-surface`, `--slotted-listbox-selected-text`, `--slotted-listbox-shadow`, `--slotted-listbox-surface`, `--slotted-listbox-text`, `--slotted-listbox-text-muted`, `--slotted-radius-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
152
152
|
|
|
153
153
|
## Examples
|
|
154
154
|
|
package/dist/docs/menu.json
CHANGED
|
@@ -500,8 +500,8 @@
|
|
|
500
500
|
"name": "description",
|
|
501
501
|
"type": "ReactNode",
|
|
502
502
|
"defaultValue": "—",
|
|
503
|
-
"appliesTo": "MenuItem",
|
|
504
|
-
"description": "The line under the label, referenced with aria-describedby."
|
|
503
|
+
"appliesTo": "MenuItem, MenuCheckboxItem, MenuRadioItem",
|
|
504
|
+
"description": "The line under the label, referenced with aria-describedby; the label alone names the item."
|
|
505
505
|
},
|
|
506
506
|
{
|
|
507
507
|
"name": "meta",
|
|
@@ -660,7 +660,6 @@
|
|
|
660
660
|
"--slotted-control-padding-inline-lg",
|
|
661
661
|
"--slotted-control-padding-inline-md",
|
|
662
662
|
"--slotted-control-padding-inline-sm",
|
|
663
|
-
"--slotted-control-radius",
|
|
664
663
|
"--slotted-control-transition-duration",
|
|
665
664
|
"--slotted-control-transition-easing",
|
|
666
665
|
"--slotted-disabled-foreground",
|
package/dist/docs/menu.md
CHANGED
|
@@ -100,7 +100,7 @@ export default function MenuBasic() {
|
|
|
100
100
|
| `submenuCloseDelay` | `number` | 300 | Menu | How long, in milliseconds, a submenu stays open while the pointer travels toward it without reaching it. |
|
|
101
101
|
| `typeaheadTimeout` | `number` | 500 | Menu | How long, in milliseconds, typed letters keep adding to one search. |
|
|
102
102
|
| `icon` | `ReactNode` | — | MenuItem, MenuTrigger | The icon in the first column of the item. |
|
|
103
|
-
| `description` | `ReactNode` | — | MenuItem | The line under the label, referenced with aria-describedby. |
|
|
103
|
+
| `description` | `ReactNode` | — | MenuItem, MenuCheckboxItem, MenuRadioItem | The line under the label, referenced with aria-describedby; the label alone names the item. |
|
|
104
104
|
| `meta` | `ReactNode` | — | MenuItem, MenuTrigger | A count, a status or the value a submenu holds, in its own column before the shortcut or the chevron. |
|
|
105
105
|
| `shortcut` | `string` | — | MenuItem | A shortcut written as Mod+K, printed for the platform and announced with aria-keyshortcuts. The menu does not bind the key. |
|
|
106
106
|
| `textValue` | `string` | — | MenuItem | The text typeahead matches, when the label does not start with the word a reader would type. |
|
|
@@ -158,7 +158,7 @@ export default function MenuBasic() {
|
|
|
158
158
|
|
|
159
159
|
## Tokens
|
|
160
160
|
|
|
161
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-
|
|
161
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-menu-backdrop-filter`, `--slotted-menu-border-color`, `--slotted-menu-gap`, `--slotted-menu-highlight`, `--slotted-menu-highlight-active`, `--slotted-menu-item-radius`, `--slotted-menu-measure`, `--slotted-menu-measure-lg`, `--slotted-menu-measure-sm`, `--slotted-menu-min-measure`, `--slotted-menu-padding-block`, `--slotted-menu-padding-inline`, `--slotted-menu-radius`, `--slotted-menu-separator-color`, `--slotted-menu-shadow`, `--slotted-menu-surface`, `--slotted-menu-text`, `--slotted-menu-text-muted`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`, `--slotted-z-index-popover`
|
|
162
162
|
|
|
163
163
|
## Examples
|
|
164
164
|
|
package/dist/docs/table.json
CHANGED
package/dist/docs/table.md
CHANGED
|
@@ -267,7 +267,7 @@ export default function TableBasic() {
|
|
|
267
267
|
|
|
268
268
|
## Tokens
|
|
269
269
|
|
|
270
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-surface`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
270
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
271
271
|
|
|
272
272
|
## Examples
|
|
273
273
|
|
package/dist/docs/time-picker.md
CHANGED
|
@@ -108,7 +108,7 @@ Excerpt — not a complete module
|
|
|
108
108
|
|
|
109
109
|
## Tokens
|
|
110
110
|
|
|
111
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-width`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-lg`, `--slotted-
|
|
111
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-width`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-time-picker-content-border-color`, `--slotted-time-picker-content-color`, `--slotted-time-picker-content-min-inline-size`, `--slotted-time-picker-content-padding`, `--slotted-time-picker-content-radius`, `--slotted-time-picker-content-shadow`, `--slotted-time-picker-invalid-focus-ring-color`, `--slotted-time-picker-label-color`, `--slotted-time-picker-list-block-size`, `--slotted-time-picker-now-color`, `--slotted-time-picker-option-current-background`, `--slotted-time-picker-option-hover-background`, `--slotted-time-picker-option-radius`, `--slotted-time-picker-option-selected-background`, `--slotted-time-picker-option-selected-color`, `--slotted-time-picker-option-selected-hover-background`, `--slotted-time-picker-radius`, `--slotted-time-picker-sheet-inline-size`, `--slotted-time-picker-surface`, `--slotted-time-picker-trigger-active-background`, `--slotted-time-picker-trigger-color`, `--slotted-time-picker-trigger-hover-background`, `--slotted-time-picker-trigger-size`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
|
|
112
112
|
|
|
113
113
|
## Examples
|
|
114
114
|
|
|
@@ -4,10 +4,10 @@ import { n, t as r } from "./icon-D04-_QFA.js";
|
|
|
4
4
|
import { t as i } from "./spinner-ring-DyfaYloA.js";
|
|
5
5
|
import { t as a } from "./avatar-DLWElrgg.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { b as o } from "./field-
|
|
7
|
+
import { b as o } from "./field-CSSHwGq_.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { t as s } from "./highlight-9lRPIZ9O.js";
|
|
10
|
-
import { c, i as l, n as ee, o as u, s as te } from "./select-
|
|
10
|
+
import { c, i as l, n as ee, o as u, s as te } from "./select-BTncjDuM.js";
|
|
11
11
|
import { keyedProps as d, selectorKeyProps as ne } from "@slotted/core/selector-key";
|
|
12
12
|
import { createArrowNavigation as re, createRemovalFocus as ie } from "@slotted/core/focus";
|
|
13
13
|
import { createControllable as f } from "@slotted/core/state";
|
package/dist/entity-picker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./entity-picker-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./entity-picker-BFoKN50H.js";
|
|
2
2
|
export { u as CREATE_OPTION, d as ENTITY_PICKER_FALLBACK, a as EntityPicker, n as EntityPickerDefaultsProvider, e as EntityPickerOptionDescription, s as EntityPickerOptionLabel, l as EntityPickerOptionMedia, t as EntityPickerOptionMeta, o as RETRY_OPTION, c as localEntitySource, i as rememberRecent, r as useEntityPickerDefaults };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as e, r as t } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n, t as r } from "./icon-D04-_QFA.js";
|
|
3
|
-
import { _ as i, n as a, r as o, t as s } from "./menu-parts-
|
|
3
|
+
import { _ as i, n as a, r as o, t as s } from "./menu-parts-7F8syoFE.js";
|
|
4
4
|
import { c, d as l, i as u, l as d, n as f, o as p, r as m, s as h } from "./drawer-Du1aC1px.js";
|
|
5
5
|
import { n as g } from "./progress-indicator-D0acshNn.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { a as _, c as v, f as ee, i as te, l as ne, o as re, p as ie, r as ae, u as oe } from "./popover-BfEn2wdZ.js";
|
|
8
|
-
import { n as se, r as y, t as ce } from "./context-menu-
|
|
9
|
-
import { a as le, t as ue } from "./segmented-control-
|
|
8
|
+
import { n as se, r as y, t as ce } from "./context-menu-CfEEqDKr.js";
|
|
9
|
+
import { a as le, t as ue } from "./segmented-control-Dae5wU9X.js";
|
|
10
10
|
import { keyedProps as de, selectorKeyProps as fe, withSelectorKey as pe } from "@slotted/core/selector-key";
|
|
11
11
|
import { createContext as me, createElement as he, useCallback as b, useContext as ge, useEffect as _e, useId as ve, useImperativeHandle as ye, useLayoutEffect as be, useMemo as xe, useRef as x, useState as S } from "react";
|
|
12
12
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
package/dist/event-calendar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./event-calendar-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./event-calendar-BaPllnNk.js";
|
|
2
2
|
export { t as EVENT_CALENDAR_FALLBACK, r as EventCalendar, n as EventCalendarDefaultsProvider, e as useEventCalendarDefaults };
|