@slotted/react 0.1.0-beta.2 → 0.1.0-beta.3
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-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{action-sheet-DgwzC3iY.js → action-sheet-C60BWUW8.js} +1 -1
- package/dist/action-sheet.js +1 -1
- package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
- package/dist/app-shell.js +1 -1
- package/dist/button-Db9f3Bxn.js +99 -0
- package/dist/button.js +2 -2
- package/dist/cascader-D1AhTyBL.js +1097 -0
- package/dist/cascader.js +1 -1
- package/dist/{chart-Gb_P3Kdq.js → chart-O0ZhkzJe.js} +381 -374
- package/dist/chart.js +1 -1
- package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
- package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-B7_a_jDK.js → column-manager-CTtizVhm.js} +6 -6
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-C66dNlMR.js → combobox-BVMI9lg8.js} +266 -266
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/currency-field-DD9A5U3D.js +455 -0
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-CKdyO4j6.js → dashboard-grid-CBMP_-JV.js} +2 -2
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-rWMDNl-6.js → data-grid-BKaGMqIm.js} +19 -19
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
- package/dist/data-list.js +1 -1
- package/dist/{date-field-D_kLLTfL.js → date-field-CYcN6diW.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/date-picker-4X-_2ltN.js +264 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-CNOAtHwU.js +471 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/datetime-picker-HDVlUhzy.js +629 -0
- package/dist/datetime-picker.js +1 -1
- package/dist/datetime-range-picker-IqOFJtdW.js +994 -0
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
- package/dist/dialog.js +1 -1
- package/dist/docs/app-shell.json +1 -1
- package/dist/docs/button-group.json +1 -0
- package/dist/docs/button-group.md +1 -1
- package/dist/docs/button.json +45 -11
- package/dist/docs/button.md +10 -6
- package/dist/docs/chart.json +7 -0
- package/dist/docs/chart.md +1 -0
- package/dist/docs/currency-field.json +32 -1
- package/dist/docs/currency-field.md +4 -1
- package/dist/docs/dialog.examples.md +26 -0
- package/dist/docs/dialog.json +14 -2
- package/dist/docs/dialog.md +1 -1
- package/dist/docs/list.json +26 -1
- package/dist/docs/list.md +4 -1
- package/dist/docs/popover.json +1 -1
- package/dist/docs/segmented-control.json +29 -1
- package/dist/docs/segmented-control.md +17 -1
- package/dist/docs/side-navigation.json +2 -2
- package/dist/docs/side-navigation.md +19 -4
- package/dist/docs/skills/theme-app/SKILL.md +5 -0
- package/dist/docs/split-button.json +1 -0
- package/dist/docs/split-button.md +1 -1
- package/dist/docs/stat-card.json +1 -0
- package/dist/docs/stat-card.md +1 -1
- package/dist/docs/table.examples.md +1 -1
- package/dist/docs/table.json +78 -2
- package/dist/docs/table.md +12 -1
- package/dist/docs/tabs.examples.md +1 -1
- package/dist/docs/tabs.json +1 -1
- package/dist/docs/toggle-group.json +14 -3
- package/dist/docs/toggle-group.md +3 -3
- package/dist/docs/toggle.json +12 -3
- package/dist/docs/toggle.md +3 -3
- package/dist/docs/tokens.md +25 -1
- package/dist/docs/top-navigation.examples.md +23 -5
- package/dist/docs/top-navigation.json +2 -2
- package/dist/docs/tour.json +1 -1
- package/dist/drawer-LXM44eso.js +757 -0
- package/dist/drawer.js +1 -1
- package/dist/entity-picker-CPDd73JR.js +1110 -0
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-DYjVwTI6.js → event-calendar-CnF3iIZD.js} +5 -5
- package/dist/event-calendar.js +1 -1
- package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
- package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-Bh7cbqDE.js → filter-bar-D_xDcAp2.js} +20 -20
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
- package/dist/import-export-center-DpY2DGBZ.js +813 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +85 -84
- package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
- package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
- package/dist/list-item.js +1 -1
- package/dist/list.js +1 -1
- package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
- package/dist/loading-overlay.js +1 -1
- package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-W58pVNUt.js +786 -0
- package/dist/menu.js +1 -1
- package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-B-tuIwAu.js → multi-select-DQ5ds0fX.js} +390 -390
- package/dist/multi-select.js +1 -1
- package/dist/{notification-center-C4pEHJ3h.js → notification-center-Sz54IziY.js} +2 -2
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/popover-Be7JWbGJ.js +475 -0
- package/dist/popover.js +1 -1
- package/dist/press-selection-DjOllE2B.js +29 -0
- package/dist/press-selection.js +2 -0
- package/dist/{prompt-composer-B7MMcER0.js → prompt-composer-BxpdkTpZ.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-BFpjhDkV.js → radio-group-BaVIP9UH.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-D1EsADFM.js → rating-DYBQBzwB.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-BueW-Lyb.js → saved-views-DlE_--Z9.js} +5 -5
- package/dist/saved-views.js +1 -1
- package/dist/{segmented-control-Cy_5D3Nj.js → segmented-control-DmuOGiu6.js} +28 -24
- package/dist/segmented-control.js +1 -1
- package/dist/{select-hRFp8nCj.js → select-DOFqPy26.js} +273 -273
- package/dist/select.js +1 -1
- package/dist/{side-navigation-YUiJRpng.js → side-navigation-CBLtCzuJ.js} +186 -187
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-B432T6nD.js → slider-DTes4HLF.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-DHF3v3PJ.js → split-button-CPgHiy9G.js} +2 -2
- package/dist/split-button.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{switch-4MHwKmkz.js → switch-DQzuIhPX.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-Bd79IwDC.js → table-Cipi2c5X.js} +206 -173
- package/dist/table.js +2 -2
- package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
- package/dist/time-range-picker.js +1 -1
- package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
- package/dist/toast.js +1 -1
- package/dist/toggle-group-7iBR9Rn1.js +142 -0
- package/dist/toggle-group.js +1 -1
- package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
- package/dist/tooltip.js +1 -1
- package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
- package/dist/top-navigation.js +1 -1
- package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
- package/dist/tour.js +1 -1
- package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
- package/dist/transfer.js +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/button/button-link.d.ts +1 -1
- package/dist/types/button/button-link.d.ts.map +1 -1
- package/dist/types/button/button-root.d.ts +5 -3
- package/dist/types/button/button-root.d.ts.map +1 -1
- package/dist/types/button/button.constants.d.ts +2 -1
- package/dist/types/button/button.constants.d.ts.map +1 -1
- package/dist/types/button/button.d.ts +1 -1
- package/dist/types/button/button.d.ts.map +1 -1
- package/dist/types/button/button.types.d.ts +9 -2
- package/dist/types/button/button.types.d.ts.map +1 -1
- package/dist/types/button/index.d.ts +1 -1
- package/dist/types/button/index.d.ts.map +1 -1
- package/dist/types/button/toggle-button.d.ts +1 -1
- package/dist/types/button/toggle-button.d.ts.map +1 -1
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.d.ts +1 -1
- package/dist/types/currency-field/currency-field.d.ts.map +1 -1
- package/dist/types/currency-field/currency-field.types.d.ts +14 -0
- package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
- package/dist/types/currency-field/index.d.ts +1 -1
- package/dist/types/currency-field/index.d.ts.map +1 -1
- package/dist/types/dialog/dialog-demo.d.ts +8 -0
- package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/list/index.d.ts +1 -1
- package/dist/types/list/index.d.ts.map +1 -1
- package/dist/types/list/list-parts.d.ts +1 -1
- package/dist/types/list/list-parts.d.ts.map +1 -1
- package/dist/types/list/list.types.d.ts +12 -0
- package/dist/types/list/list.types.d.ts.map +1 -1
- package/dist/types/press-selection/index.d.ts +3 -0
- package/dist/types/press-selection/index.d.ts.map +1 -0
- package/dist/types/press-selection/press-selection.d.ts +23 -0
- package/dist/types/press-selection/press-selection.d.ts.map +1 -0
- package/dist/types/segmented-control/index.d.ts +1 -1
- package/dist/types/segmented-control/index.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts +1 -1
- package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
- package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
- package/dist/types/table/index.d.ts +2 -2
- package/dist/types/table/index.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts +8 -2
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/table/table.types.d.ts +28 -1
- package/dist/types/table/table.types.d.ts.map +1 -1
- package/dist/types/toggle/toggle.types.d.ts +1 -1
- package/dist/types/toggle/toggle.types.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
- package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
- package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
- package/dist/upload.js +1 -1
- package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
- package/dist/wizard.js +1 -1
- package/package.json +12 -7
- package/dist/button-DakQ-7Tm.js +0 -97
- package/dist/cascader-CARCYdHh.js +0 -1097
- package/dist/currency-field-B7OZ0hk7.js +0 -436
- package/dist/date-picker-DQ5SIhdA.js +0 -264
- package/dist/date-range-picker-lpB08hK_.js +0 -471
- package/dist/datetime-picker-0F0kDW-8.js +0 -629
- package/dist/datetime-range-picker-ClnEleth.js +0 -994
- package/dist/drawer-Dtospdqk.js +0 -758
- package/dist/entity-picker-Dm-y0RNE.js +0 -1111
- package/dist/import-export-center-CkZ_Ar9w.js +0 -813
- package/dist/menu-parts-BQej6eU9.js +0 -787
- package/dist/popover-DE22lSpV.js +0 -476
- package/dist/react-dom-DzrKNxo6.js +0 -273
- package/dist/toggle-group-DQBlI1TV.js +0 -140
package/dist/docs/button.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"tone": [
|
|
11
11
|
"accent",
|
|
12
12
|
"secondary",
|
|
13
|
+
"neutral",
|
|
13
14
|
"success",
|
|
14
15
|
"warning",
|
|
15
16
|
"danger"
|
|
@@ -27,6 +28,10 @@
|
|
|
27
28
|
"shape": [
|
|
28
29
|
"square",
|
|
29
30
|
"circle"
|
|
31
|
+
],
|
|
32
|
+
"justify": [
|
|
33
|
+
"center",
|
|
34
|
+
"between"
|
|
30
35
|
]
|
|
31
36
|
},
|
|
32
37
|
"members": {
|
|
@@ -38,6 +43,7 @@
|
|
|
38
43
|
"size": "md",
|
|
39
44
|
"type": "button",
|
|
40
45
|
"fullWidth": false,
|
|
46
|
+
"justify": "center",
|
|
41
47
|
"disabled": false,
|
|
42
48
|
"focusableWhenDisabled": false,
|
|
43
49
|
"loading": false,
|
|
@@ -73,6 +79,7 @@
|
|
|
73
79
|
"variant": "solid",
|
|
74
80
|
"size": "md",
|
|
75
81
|
"fullWidth": false,
|
|
82
|
+
"justify": "center",
|
|
76
83
|
"disabled": false
|
|
77
84
|
},
|
|
78
85
|
"capabilities": [
|
|
@@ -138,6 +145,7 @@
|
|
|
138
145
|
"size": "md",
|
|
139
146
|
"type": "button",
|
|
140
147
|
"fullWidth": false,
|
|
148
|
+
"justify": "center",
|
|
141
149
|
"disabled": false,
|
|
142
150
|
"focusableWhenDisabled": false,
|
|
143
151
|
"loading": false,
|
|
@@ -180,7 +188,7 @@
|
|
|
180
188
|
"part": "root",
|
|
181
189
|
"element": "button, or the element render returns",
|
|
182
190
|
"required": true,
|
|
183
|
-
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-full-width, data-disabled and data-loading when they apply."
|
|
191
|
+
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-justify, and data-full-width, data-disabled and data-loading when they apply."
|
|
184
192
|
},
|
|
185
193
|
{
|
|
186
194
|
"part": "start",
|
|
@@ -210,10 +218,10 @@
|
|
|
210
218
|
"api": [
|
|
211
219
|
{
|
|
212
220
|
"name": "tone",
|
|
213
|
-
"type": "accent | secondary | success | warning | danger",
|
|
221
|
+
"type": "accent | secondary | neutral | success | warning | danger",
|
|
214
222
|
"defaultValue": "accent",
|
|
215
223
|
"appliesTo": "Button",
|
|
216
|
-
"description": "The semantic colour: accent for the primary action, secondary for a neutral one, and success, warning or danger for what the action does."
|
|
224
|
+
"description": "The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does."
|
|
217
225
|
},
|
|
218
226
|
{
|
|
219
227
|
"name": "variant",
|
|
@@ -250,6 +258,13 @@
|
|
|
250
258
|
"appliesTo": "Button",
|
|
251
259
|
"description": "Fills the inline size of the container."
|
|
252
260
|
},
|
|
261
|
+
{
|
|
262
|
+
"name": "justify",
|
|
263
|
+
"type": "center | between",
|
|
264
|
+
"defaultValue": "center",
|
|
265
|
+
"appliesTo": "Button",
|
|
266
|
+
"description": "Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document."
|
|
267
|
+
},
|
|
253
268
|
{
|
|
254
269
|
"name": "disabled",
|
|
255
270
|
"type": "boolean",
|
|
@@ -329,7 +344,7 @@
|
|
|
329
344
|
"part": "root",
|
|
330
345
|
"element": "a, or the element render returns",
|
|
331
346
|
"required": true,
|
|
332
|
-
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-full-width and data-disabled when they apply."
|
|
347
|
+
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-justify, and data-full-width and data-disabled when they apply."
|
|
333
348
|
},
|
|
334
349
|
{
|
|
335
350
|
"part": "start",
|
|
@@ -367,10 +382,10 @@
|
|
|
367
382
|
},
|
|
368
383
|
{
|
|
369
384
|
"name": "tone",
|
|
370
|
-
"type": "accent | secondary | success | warning | danger",
|
|
385
|
+
"type": "accent | secondary | neutral | success | warning | danger",
|
|
371
386
|
"defaultValue": "accent",
|
|
372
387
|
"appliesTo": "ButtonLink",
|
|
373
|
-
"description": "The semantic colour: accent for the primary action, secondary for a neutral one, and success, warning or danger for what the action does."
|
|
388
|
+
"description": "The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does."
|
|
374
389
|
},
|
|
375
390
|
{
|
|
376
391
|
"name": "variant",
|
|
@@ -407,6 +422,13 @@
|
|
|
407
422
|
"appliesTo": "ButtonLink",
|
|
408
423
|
"description": "Fills the inline size of the container."
|
|
409
424
|
},
|
|
425
|
+
{
|
|
426
|
+
"name": "justify",
|
|
427
|
+
"type": "center | between",
|
|
428
|
+
"defaultValue": "center",
|
|
429
|
+
"appliesTo": "ButtonLink",
|
|
430
|
+
"description": "Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document."
|
|
431
|
+
},
|
|
410
432
|
{
|
|
411
433
|
"name": "disabled",
|
|
412
434
|
"type": "boolean",
|
|
@@ -459,10 +481,10 @@
|
|
|
459
481
|
},
|
|
460
482
|
{
|
|
461
483
|
"name": "tone",
|
|
462
|
-
"type": "accent | secondary | success | warning | danger",
|
|
484
|
+
"type": "accent | secondary | neutral | success | warning | danger",
|
|
463
485
|
"defaultValue": "secondary",
|
|
464
486
|
"appliesTo": "IconButton",
|
|
465
|
-
"description": "The semantic colour: accent for the primary action, secondary for a neutral one, and success, warning or danger for what the action does."
|
|
487
|
+
"description": "The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does."
|
|
466
488
|
},
|
|
467
489
|
{
|
|
468
490
|
"name": "variant",
|
|
@@ -576,7 +598,7 @@
|
|
|
576
598
|
"part": "root",
|
|
577
599
|
"element": "button, or the element render returns",
|
|
578
600
|
"required": true,
|
|
579
|
-
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-full-width, data-disabled, data-loading and data-pressed when they apply."
|
|
601
|
+
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-justify, and data-full-width, data-disabled, data-loading and data-pressed when they apply."
|
|
580
602
|
},
|
|
581
603
|
{
|
|
582
604
|
"part": "start",
|
|
@@ -606,10 +628,10 @@
|
|
|
606
628
|
"api": [
|
|
607
629
|
{
|
|
608
630
|
"name": "tone",
|
|
609
|
-
"type": "accent | secondary | success | warning | danger",
|
|
631
|
+
"type": "accent | secondary | neutral | success | warning | danger",
|
|
610
632
|
"defaultValue": "secondary",
|
|
611
633
|
"appliesTo": "ToggleButton",
|
|
612
|
-
"description": "The semantic colour: accent for the primary action, secondary for a neutral one, and success, warning or danger for what the action does."
|
|
634
|
+
"description": "The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does."
|
|
613
635
|
},
|
|
614
636
|
{
|
|
615
637
|
"name": "variant",
|
|
@@ -646,6 +668,13 @@
|
|
|
646
668
|
"appliesTo": "ToggleButton",
|
|
647
669
|
"description": "Fills the inline size of the container."
|
|
648
670
|
},
|
|
671
|
+
{
|
|
672
|
+
"name": "justify",
|
|
673
|
+
"type": "center | between",
|
|
674
|
+
"defaultValue": "center",
|
|
675
|
+
"appliesTo": "ToggleButton",
|
|
676
|
+
"description": "Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document."
|
|
677
|
+
},
|
|
649
678
|
{
|
|
650
679
|
"name": "disabled",
|
|
651
680
|
"type": "boolean",
|
|
@@ -783,6 +812,11 @@
|
|
|
783
812
|
"--slotted-tone-danger-solid-active",
|
|
784
813
|
"--slotted-tone-danger-solid-hover",
|
|
785
814
|
"--slotted-tone-danger-text",
|
|
815
|
+
"--slotted-tone-neutral-on-solid",
|
|
816
|
+
"--slotted-tone-neutral-solid",
|
|
817
|
+
"--slotted-tone-neutral-solid-active",
|
|
818
|
+
"--slotted-tone-neutral-solid-hover",
|
|
819
|
+
"--slotted-tone-neutral-text",
|
|
786
820
|
"--slotted-tone-secondary-on-solid",
|
|
787
821
|
"--slotted-tone-secondary-solid",
|
|
788
822
|
"--slotted-tone-secondary-solid-active",
|
package/dist/docs/button.md
CHANGED
|
@@ -72,12 +72,13 @@ export default function ButtonBasic() {
|
|
|
72
72
|
|
|
73
73
|
| Name | Type | Default | Applies to | Description |
|
|
74
74
|
| --- | --- | --- | --- | --- |
|
|
75
|
-
| `tone` | `accent \| secondary \| success \| warning \| danger` | accent | Button | The semantic colour: accent for the primary action, secondary for a neutral one, and success, warning or danger for what the action does. |
|
|
75
|
+
| `tone` | `accent \| secondary \| neutral \| success \| warning \| danger` | accent | Button | The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
76
76
|
| `variant` | `solid \| outline \| ghost` | solid | Button | How the tone is painted: solid, outline or ghost. |
|
|
77
77
|
| `size` | `sm \| md \| lg` | md | Button | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
78
78
|
| `start` | `ReactNode` | — | Button | Content before the label, such as an icon. It mirrors in a right-to-left document. |
|
|
79
79
|
| `end` | `ReactNode` | — | Button | Content after the label, such as an icon. It mirrors in a right-to-left document. |
|
|
80
80
|
| `fullWidth` | `boolean` | false | Button | Fills the inline size of the container. |
|
|
81
|
+
| `justify` | `center \| between` | center | Button | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
81
82
|
| `disabled` | `boolean` | false | Button | Refuses the action and marks the control unavailable. On its own, it sets the native disabled attribute, which also removes the control from the tab sequence. |
|
|
82
83
|
| `focusableWhenDisabled` | `boolean` | false | Button | Keeps a disabled control in the tab sequence: aria-disabled replaces the native attribute, and activation is still refused. |
|
|
83
84
|
| `loading` | `boolean` | false | Button | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
@@ -93,12 +94,13 @@ export default function ButtonBasic() {
|
|
|
93
94
|
| --- | --- | --- | --- | --- |
|
|
94
95
|
| `href` | `string` | required without render | ButtonLink | The destination. A disabled ButtonLink does not render it. |
|
|
95
96
|
| `render` | `(rootProps) => ReactElement` | — | ButtonLink | Renders the root through a router’s link component. The function receives every root prop and must pass all of them on. |
|
|
96
|
-
| `tone` | `accent \| secondary \| success \| warning \| danger` | accent | ButtonLink | The semantic colour: accent for the primary action, secondary for a neutral one, and success, warning or danger for what the action does. |
|
|
97
|
+
| `tone` | `accent \| secondary \| neutral \| success \| warning \| danger` | accent | ButtonLink | The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
97
98
|
| `variant` | `solid \| outline \| ghost` | solid | ButtonLink | How the tone is painted: solid, outline or ghost. |
|
|
98
99
|
| `size` | `sm \| md \| lg` | md | ButtonLink | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
99
100
|
| `start` | `ReactNode` | — | ButtonLink | Content before the label, such as an icon. It mirrors in a right-to-left document. |
|
|
100
101
|
| `end` | `ReactNode` | — | ButtonLink | Content after the label, such as an icon. It mirrors in a right-to-left document. |
|
|
101
102
|
| `fullWidth` | `boolean` | false | ButtonLink | Fills the inline size of the container. |
|
|
103
|
+
| `justify` | `center \| between` | center | ButtonLink | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
102
104
|
| `disabled` | `boolean` | false | ButtonLink | Removes the href and refuses activation. The link stays focusable with role="link" and aria-disabled. |
|
|
103
105
|
|
|
104
106
|
### iconButton
|
|
@@ -106,7 +108,7 @@ export default function ButtonBasic() {
|
|
|
106
108
|
| Name | Type | Default | Applies to | Description |
|
|
107
109
|
| --- | --- | --- | --- | --- |
|
|
108
110
|
| `aria-label \| aria-labelledby` | `string` | required | IconButton | The accessible name. Required, because an icon supplies no text. When both are present, aria-labelledby names the button. |
|
|
109
|
-
| `tone` | `accent \| secondary \| success \| warning \| danger` | secondary | IconButton | The semantic colour: accent for the primary action, secondary for a neutral one, and success, warning or danger for what the action does. |
|
|
111
|
+
| `tone` | `accent \| secondary \| neutral \| success \| warning \| danger` | secondary | IconButton | The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
110
112
|
| `variant` | `solid \| outline \| ghost` | ghost | IconButton | How the tone is painted: solid, outline or ghost. |
|
|
111
113
|
| `size` | `sm \| md \| lg` | md | IconButton | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
112
114
|
| `shape` | `square \| circle` | square | IconButton | The corners of the control: square keeps the radius of the control scale, circle rounds it fully. Both are as wide as they are tall. |
|
|
@@ -125,12 +127,13 @@ export default function ButtonBasic() {
|
|
|
125
127
|
|
|
126
128
|
| Name | Type | Default | Applies to | Description |
|
|
127
129
|
| --- | --- | --- | --- | --- |
|
|
128
|
-
| `tone` | `accent \| secondary \| success \| warning \| danger` | secondary | ToggleButton | The semantic colour: accent for the primary action, secondary for a neutral one, and success, warning or danger for what the action does. |
|
|
130
|
+
| `tone` | `accent \| secondary \| neutral \| success \| warning \| danger` | secondary | ToggleButton | The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
129
131
|
| `variant` | `solid \| outline \| ghost` | outline | ToggleButton | How the tone is painted: solid, outline or ghost. |
|
|
130
132
|
| `size` | `sm \| md \| lg` | md | ToggleButton | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
131
133
|
| `start` | `ReactNode` | — | ToggleButton | Content before the label, such as an icon. It mirrors in a right-to-left document. |
|
|
132
134
|
| `end` | `ReactNode` | — | ToggleButton | Content after the label, such as an icon. It mirrors in a right-to-left document. |
|
|
133
135
|
| `fullWidth` | `boolean` | false | ToggleButton | Fills the inline size of the container. |
|
|
136
|
+
| `justify` | `center \| between` | center | ToggleButton | Where the content sits along the inline axis: center keeps the label and end together in the middle; between sets the label at the start and end at the inline end, as a field trigger reads, with start beside the label. It mirrors in a right-to-left document. |
|
|
134
137
|
| `disabled` | `boolean` | false | ToggleButton | Refuses the action and marks the control unavailable. On its own, it sets the native disabled attribute, which also removes the control from the tab sequence. |
|
|
135
138
|
| `focusableWhenDisabled` | `boolean` | false | ToggleButton | Keeps a disabled control in the tab sequence: aria-disabled replaces the native attribute, and activation is still refused. |
|
|
136
139
|
| `loading` | `boolean` | false | ToggleButton | Refuses activation, keeps focus, and shows a progress indicator named by messages.loading. |
|
|
@@ -146,10 +149,11 @@ export default function ButtonBasic() {
|
|
|
146
149
|
|
|
147
150
|
| Axis | Values | Default |
|
|
148
151
|
| --- | --- | --- |
|
|
149
|
-
| `tone` | `accent`, `secondary`, `success`, `warning`, `danger` | `accent`, `secondary` |
|
|
152
|
+
| `tone` | `accent`, `secondary`, `neutral`, `success`, `warning`, `danger` | `accent`, `secondary` |
|
|
150
153
|
| `variant` | `solid`, `outline`, `ghost` | `solid`, `ghost`, `outline` |
|
|
151
154
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
152
155
|
| `shape` | `square`, `circle` | `square` |
|
|
156
|
+
| `justify` | `center`, `between` | `center` |
|
|
153
157
|
|
|
154
158
|
## Rules
|
|
155
159
|
|
|
@@ -180,7 +184,7 @@ export default function ButtonBasic() {
|
|
|
180
184
|
|
|
181
185
|
## Tokens
|
|
182
186
|
|
|
183
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-font-weight`, `--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-letter-spacing`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-loop`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-space-2`, `--slotted-target-min`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-text`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-text`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-text`
|
|
187
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-font-weight`, `--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-letter-spacing`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-loop`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-space-2`, `--slotted-target-min`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-text`, `--slotted-tone-neutral-on-solid`, `--slotted-tone-neutral-solid`, `--slotted-tone-neutral-solid-active`, `--slotted-tone-neutral-solid-hover`, `--slotted-tone-neutral-text`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-text`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-text`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-text`
|
|
184
188
|
|
|
185
189
|
## Examples
|
|
186
190
|
|
package/dist/docs/chart.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
|
202
202
|
"tooltip-marker",
|
|
203
203
|
"tooltip-label",
|
|
204
204
|
"tooltip-value",
|
|
205
|
+
"tooltip-note",
|
|
205
206
|
"tooltip-total",
|
|
206
207
|
"skeleton",
|
|
207
208
|
"empty",
|
|
@@ -416,6 +417,12 @@
|
|
|
416
417
|
"required": false,
|
|
417
418
|
"purpose": "The value in the series’ format, with the share of the whole on a pie."
|
|
418
419
|
},
|
|
420
|
+
{
|
|
421
|
+
"part": "tooltip-note",
|
|
422
|
+
"element": "div",
|
|
423
|
+
"required": false,
|
|
424
|
+
"purpose": "The label of an upright line on this category, under the title. A label the plot had no room to draw is read here."
|
|
425
|
+
},
|
|
419
426
|
{
|
|
420
427
|
"part": "tooltip-total",
|
|
421
428
|
"element": "div",
|
package/dist/docs/chart.md
CHANGED
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"formatOn": [
|
|
46
46
|
"change",
|
|
47
47
|
"commit"
|
|
48
|
+
],
|
|
49
|
+
"appearance": [
|
|
50
|
+
"control",
|
|
51
|
+
"display"
|
|
48
52
|
]
|
|
49
53
|
},
|
|
50
54
|
"members": {
|
|
@@ -61,7 +65,8 @@
|
|
|
61
65
|
"formatOn": "change",
|
|
62
66
|
"currencyDisplay": "symbol",
|
|
63
67
|
"wheel": false,
|
|
64
|
-
"allowEmpty": false
|
|
68
|
+
"allowEmpty": false,
|
|
69
|
+
"appearance": "control"
|
|
65
70
|
},
|
|
66
71
|
"capabilities": [
|
|
67
72
|
"value",
|
|
@@ -85,6 +90,7 @@
|
|
|
85
90
|
],
|
|
86
91
|
"parts": [
|
|
87
92
|
"root",
|
|
93
|
+
"symbol",
|
|
88
94
|
"input",
|
|
89
95
|
"start",
|
|
90
96
|
"end",
|
|
@@ -113,6 +119,12 @@
|
|
|
113
119
|
"required": true,
|
|
114
120
|
"purpose": "The control. Holds the formatted amount, the identifier, aria-valuenow in major units and aria-valuetext as the reader sees it. It is type=\"text\" because type=\"number\" empties itself whenever the text is not a valid floating-point number, so no grouping separator and no currency symbol survives it. ref reaches it."
|
|
115
121
|
},
|
|
122
|
+
{
|
|
123
|
+
"part": "symbol",
|
|
124
|
+
"element": "span",
|
|
125
|
+
"required": false,
|
|
126
|
+
"purpose": "The currency mark at the display appearance, drawn apart from the digits on the side the locale writes it, muted at the xl step. The input then holds the amount alone and its aria-valuetext carries the mark. Absent under currencyDisplay none and at the control appearance."
|
|
127
|
+
},
|
|
116
128
|
{
|
|
117
129
|
"part": "start",
|
|
118
130
|
"element": "span",
|
|
@@ -193,6 +205,13 @@
|
|
|
193
205
|
"appliesTo": "CurrencyField, CurrencyFieldDefaultsProvider",
|
|
194
206
|
"description": "When the text takes the locale’s shape under entry=\"natural\". change regroups on every keystroke; commit holds the reader’s own text until blur, Enter or a step. Cents-first entry generates the text after every edit, so it decides nothing there"
|
|
195
207
|
},
|
|
208
|
+
{
|
|
209
|
+
"name": "appearance",
|
|
210
|
+
"type": "'control' | 'display'",
|
|
211
|
+
"defaultValue": "control",
|
|
212
|
+
"appliesTo": "CurrencyField",
|
|
213
|
+
"description": "A field among fields, or the headline amount of an entry sheet: the 4xl step, the mark apart and muted, a rule under the amount instead of a box. size and variant do not apply to display"
|
|
214
|
+
},
|
|
196
215
|
{
|
|
197
216
|
"name": "align",
|
|
198
217
|
"type": "'end' | 'start'",
|
|
@@ -446,6 +465,7 @@
|
|
|
446
465
|
},
|
|
447
466
|
"tokens": [
|
|
448
467
|
"--slotted-border-subtle",
|
|
468
|
+
"--slotted-border-width-thin",
|
|
449
469
|
"--slotted-control-border-color",
|
|
450
470
|
"--slotted-control-border-width",
|
|
451
471
|
"--slotted-control-font-family",
|
|
@@ -482,6 +502,7 @@
|
|
|
482
502
|
"--slotted-currency-field-disabled-background",
|
|
483
503
|
"--slotted-currency-field-disabled-border-color",
|
|
484
504
|
"--slotted-currency-field-disabled-color",
|
|
505
|
+
"--slotted-currency-field-display-font-size",
|
|
485
506
|
"--slotted-currency-field-hover-border-color",
|
|
486
507
|
"--slotted-currency-field-icon-size-min",
|
|
487
508
|
"--slotted-currency-field-invalid-border-color",
|
|
@@ -503,6 +524,9 @@
|
|
|
503
524
|
"--slotted-currency-field-subtle-background",
|
|
504
525
|
"--slotted-currency-field-subtle-border-color",
|
|
505
526
|
"--slotted-currency-field-subtle-hover-background",
|
|
527
|
+
"--slotted-currency-field-symbol-color",
|
|
528
|
+
"--slotted-currency-field-symbol-font-size",
|
|
529
|
+
"--slotted-currency-field-underline-color",
|
|
506
530
|
"--slotted-disabled-background",
|
|
507
531
|
"--slotted-disabled-border",
|
|
508
532
|
"--slotted-disabled-foreground",
|
|
@@ -510,10 +534,17 @@
|
|
|
510
534
|
"--slotted-focus-ring-color-invalid",
|
|
511
535
|
"--slotted-focus-ring-offset",
|
|
512
536
|
"--slotted-focus-ring-width",
|
|
537
|
+
"--slotted-font-size-4xl",
|
|
538
|
+
"--slotted-font-size-xl",
|
|
539
|
+
"--slotted-font-weight-medium",
|
|
540
|
+
"--slotted-font-weight-regular",
|
|
541
|
+
"--slotted-letter-spacing-tighter",
|
|
542
|
+
"--slotted-line-height-4xl",
|
|
513
543
|
"--slotted-radius-none",
|
|
514
544
|
"--slotted-radius-xs",
|
|
515
545
|
"--slotted-space-1",
|
|
516
546
|
"--slotted-space-2",
|
|
547
|
+
"--slotted-space-3",
|
|
517
548
|
"--slotted-surface-sunken",
|
|
518
549
|
"--slotted-target-comfortable",
|
|
519
550
|
"--slotted-target-min",
|
|
@@ -27,6 +27,7 @@ Excerpt — not a complete module
|
|
|
27
27
|
| --- | --- | --- |
|
|
28
28
|
| `root` | div, or the element render returns | yes |
|
|
29
29
|
| `input` | input[type=text][role=spinbutton] | yes |
|
|
30
|
+
| `symbol` | span | no |
|
|
30
31
|
| `start` | span | no |
|
|
31
32
|
| `end` | span | no |
|
|
32
33
|
| `scrub` | span (CurrencyFieldScrub) | no |
|
|
@@ -44,6 +45,7 @@ Excerpt — not a complete module
|
|
|
44
45
|
| `defaultValue` | `number \| null` | — | CurrencyField | What an uncontrolled control starts from, read once. A native form reset returns to it |
|
|
45
46
|
| `entry` | `'cents' \| 'natural'` | cents | CurrencyField, CurrencyFieldDefaultsProvider | How the reader types. cents is the cash register: digits enter at the minor unit and shift left, the separator is never typed and the caret has one legal position. natural is the spreadsheet, and the model number-field uses |
|
|
46
47
|
| `formatOn` | `'change' \| 'commit'` | change | CurrencyField, CurrencyFieldDefaultsProvider | When the text takes the locale’s shape under entry="natural". change regroups on every keystroke; commit holds the reader’s own text until blur, Enter or a step. Cents-first entry generates the text after every edit, so it decides nothing there |
|
|
48
|
+
| `appearance` | `'control' \| 'display'` | control | CurrencyField | A field among fields, or the headline amount of an entry sheet: the 4xl step, the mark apart and muted, a rule under the amount instead of a box. size and variant do not apply to display |
|
|
47
49
|
| `align` | `'end' \| 'start'` | end | CurrencyField, CurrencyFieldDefaultsProvider | Which edge the amount is set against. end by default: a column of amounts is compared on its last digit, and the cents-first caret already lives there |
|
|
48
50
|
| `locale` | `string` | the language in force | CurrencyField | BCP 47. It decides the separators, where the symbol goes and the numbering system — never the symbol itself, which is the currency’s |
|
|
49
51
|
| `format` | `Intl.NumberFormatOptions` | — | CurrencyField | Any other Intl option: currencySign for accounting parentheses, signDisplay, useGrouping, roundingMode. Every key here wins over the family’s own; style and currency are the family’s |
|
|
@@ -96,6 +98,7 @@ Excerpt — not a complete module
|
|
|
96
98
|
| `clamp` | `blur`, `strict`, `none` | `blur` |
|
|
97
99
|
| `currencyDisplay` | `symbol`, `narrowSymbol`, `code`, `name`, `none` | `symbol` |
|
|
98
100
|
| `formatOn` | `change`, `commit` | `change` |
|
|
101
|
+
| `appearance` | `control`, `display` | `control` |
|
|
99
102
|
|
|
100
103
|
## Rules
|
|
101
104
|
|
|
@@ -110,7 +113,7 @@ Excerpt — not a complete module
|
|
|
110
113
|
|
|
111
114
|
## Tokens
|
|
112
115
|
|
|
113
|
-
`--slotted-border-subtle`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--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-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-currency-field-action-size`, `--slotted-currency-field-adornment-color`, `--slotted-currency-field-background`, `--slotted-currency-field-border-color`, `--slotted-currency-field-color`, `--slotted-currency-field-disabled-background`, `--slotted-currency-field-disabled-border-color`, `--slotted-currency-field-disabled-color`, `--slotted-currency-field-hover-border-color`, `--slotted-currency-field-icon-size-min`, `--slotted-currency-field-invalid-border-color`, `--slotted-currency-field-invalid-edge-width`, `--slotted-currency-field-invalid-focus-ring-color`, `--slotted-currency-field-placeholder-color`, `--slotted-currency-field-plain-hover-background`, `--slotted-currency-field-radius`, `--slotted-currency-field-readonly-background`, `--slotted-currency-field-readonly-border-color`, `--slotted-currency-field-scrub-active-color`, `--slotted-currency-field-shadow`, `--slotted-currency-field-stepper-active-background`, `--slotted-currency-field-stepper-color`, `--slotted-currency-field-stepper-disabled-background`, `--slotted-currency-field-stepper-disabled-color`, `--slotted-currency-field-stepper-hover-background`, `--slotted-currency-field-stepper-size`, `--slotted-currency-field-subtle-background`, `--slotted-currency-field-subtle-border-color`, `--slotted-currency-field-subtle-hover-background`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-none`, `--slotted-radius-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
116
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--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-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-currency-field-action-size`, `--slotted-currency-field-adornment-color`, `--slotted-currency-field-background`, `--slotted-currency-field-border-color`, `--slotted-currency-field-color`, `--slotted-currency-field-disabled-background`, `--slotted-currency-field-disabled-border-color`, `--slotted-currency-field-disabled-color`, `--slotted-currency-field-display-font-size`, `--slotted-currency-field-hover-border-color`, `--slotted-currency-field-icon-size-min`, `--slotted-currency-field-invalid-border-color`, `--slotted-currency-field-invalid-edge-width`, `--slotted-currency-field-invalid-focus-ring-color`, `--slotted-currency-field-placeholder-color`, `--slotted-currency-field-plain-hover-background`, `--slotted-currency-field-radius`, `--slotted-currency-field-readonly-background`, `--slotted-currency-field-readonly-border-color`, `--slotted-currency-field-scrub-active-color`, `--slotted-currency-field-shadow`, `--slotted-currency-field-stepper-active-background`, `--slotted-currency-field-stepper-color`, `--slotted-currency-field-stepper-disabled-background`, `--slotted-currency-field-stepper-disabled-color`, `--slotted-currency-field-stepper-hover-background`, `--slotted-currency-field-stepper-size`, `--slotted-currency-field-subtle-background`, `--slotted-currency-field-subtle-border-color`, `--slotted-currency-field-subtle-hover-background`, `--slotted-currency-field-symbol-color`, `--slotted-currency-field-symbol-font-size`, `--slotted-currency-field-underline-color`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-4xl`, `--slotted-font-size-xl`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-letter-spacing-tighter`, `--slotted-line-height-4xl`, `--slotted-radius-none`, `--slotted-radius-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
|
|
114
117
|
|
|
115
118
|
## Examples
|
|
116
119
|
|
|
@@ -624,6 +624,32 @@ Excerpt — not a complete module
|
|
|
624
624
|
<DialogTrigger render={(props) => <Button {...props}>Edit project</Button>} />;
|
|
625
625
|
```
|
|
626
626
|
|
|
627
|
+
### A layout of its own
|
|
628
|
+
|
|
629
|
+
DialogContent draws no padding: the header, the body and the footer carry the inset. A layout of its own — one field, a preview, a footer — reads --slotted-dialog-inset-inline and --slotted-dialog-inset-block, so it stands in the column the parts stand in.
|
|
630
|
+
|
|
631
|
+
Excerpt — not a complete module
|
|
632
|
+
|
|
633
|
+
```tsx
|
|
634
|
+
<DialogContent>
|
|
635
|
+
<div
|
|
636
|
+
style={{
|
|
637
|
+
display: 'grid',
|
|
638
|
+
gap: 'var(--slotted-space-5)',
|
|
639
|
+
paddingBlock: 'var(--slotted-dialog-inset-block)',
|
|
640
|
+
paddingInline: 'var(--slotted-dialog-inset-inline)',
|
|
641
|
+
}}
|
|
642
|
+
>
|
|
643
|
+
<DialogTitle>Rename file</DialogTitle>
|
|
644
|
+
<TextField aria-label="Name" defaultValue="report-q3.pdf" />
|
|
645
|
+
<img alt="First page of report-q3.pdf" src={preview} />
|
|
646
|
+
</div>
|
|
647
|
+
<DialogFooter>
|
|
648
|
+
<Button size="sm">Rename</Button>
|
|
649
|
+
</DialogFooter>
|
|
650
|
+
</DialogContent>;
|
|
651
|
+
```
|
|
652
|
+
|
|
627
653
|
### Deciding once for the application
|
|
628
654
|
|
|
629
655
|
Eight decisions an application takes once instead of eight props on every dialog in a product. Angular Material is the only surveyed library with an equivalent, and a dialog that states one itself still wins.
|
package/dist/docs/dialog.json
CHANGED
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"part": "content",
|
|
207
207
|
"element": "div",
|
|
208
208
|
"required": true,
|
|
209
|
-
"purpose": "The panel. It carries role=\"dialog\" and, while modal, aria-modal=\"true\". It is a grid of three rows, header, body and footer, and only the body row shrinks, so the actions stay on screen when the body is long."
|
|
209
|
+
"purpose": "The panel. It carries role=\"dialog\" and, while modal, aria-modal=\"true\". It is a grid of three rows, header, body and footer, and only the body row shrinks, so the actions stay on screen when the body is long. It draws no padding: DialogHeader, DialogBody and DialogFooter carry the panel inset. A layout that skips them reads --slotted-dialog-inset-inline and --slotted-dialog-inset-block, which the panel states, and a theme sets the inset with --slotted-dialog-padding-inline and --slotted-dialog-padding-block."
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"part": "header",
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
"part": "content",
|
|
498
498
|
"element": "div",
|
|
499
499
|
"required": true,
|
|
500
|
-
"purpose": "The panel. It carries role=\"alertdialog\" and, while modal, aria-modal=\"true\". It is a grid of three rows, header, body and footer, and only the body row shrinks, so the actions stay on screen when the body is long."
|
|
500
|
+
"purpose": "The panel. It carries role=\"alertdialog\" and, while modal, aria-modal=\"true\". It is a grid of three rows, header, body and footer, and only the body row shrinks, so the actions stay on screen when the body is long. It draws no padding: DialogHeader, DialogBody and DialogFooter carry the panel inset. A layout that skips them reads --slotted-dialog-inset-inline and --slotted-dialog-inset-block, which the panel states, and a theme sets the inset with --slotted-dialog-padding-inline and --slotted-dialog-padding-block."
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
503
|
"part": "header",
|
|
@@ -766,6 +766,10 @@
|
|
|
766
766
|
"--slotted-dialog-description-color",
|
|
767
767
|
"--slotted-dialog-footer-surface",
|
|
768
768
|
"--slotted-dialog-measure",
|
|
769
|
+
"--slotted-dialog-padding-block",
|
|
770
|
+
"--slotted-dialog-padding-block-sm",
|
|
771
|
+
"--slotted-dialog-padding-inline",
|
|
772
|
+
"--slotted-dialog-padding-inline-sm",
|
|
769
773
|
"--slotted-dialog-radius",
|
|
770
774
|
"--slotted-dialog-rule-color",
|
|
771
775
|
"--slotted-dialog-scrim",
|
|
@@ -918,6 +922,14 @@
|
|
|
918
922
|
"source": "<DialogTrigger render={(props) => <Button {...props}>Edit project</Button>} />;\n",
|
|
919
923
|
"verdict": "excerpt"
|
|
920
924
|
},
|
|
925
|
+
{
|
|
926
|
+
"id": "layout",
|
|
927
|
+
"title": "A layout of its own",
|
|
928
|
+
"note": "DialogContent draws no padding: the header, the body and the footer carry the inset. A layout of its own — one field, a preview, a footer — reads --slotted-dialog-inset-inline and --slotted-dialog-inset-block, so it stands in the column the parts stand in.",
|
|
929
|
+
"language": "tsx",
|
|
930
|
+
"source": "<DialogContent>\n <div\n style={{\n display: 'grid',\n gap: 'var(--slotted-space-5)',\n paddingBlock: 'var(--slotted-dialog-inset-block)',\n paddingInline: 'var(--slotted-dialog-inset-inline)',\n }}\n >\n <DialogTitle>Rename file</DialogTitle>\n <TextField aria-label=\"Name\" defaultValue=\"report-q3.pdf\" />\n <img alt=\"First page of report-q3.pdf\" src={preview} />\n </div>\n <DialogFooter>\n <Button size=\"sm\">Rename</Button>\n </DialogFooter>\n</DialogContent>;\n",
|
|
931
|
+
"verdict": "excerpt"
|
|
932
|
+
},
|
|
921
933
|
{
|
|
922
934
|
"id": "defaults",
|
|
923
935
|
"title": "Deciding once for the application",
|
package/dist/docs/dialog.md
CHANGED
|
@@ -245,7 +245,7 @@ export default function DialogBasic() {
|
|
|
245
245
|
|
|
246
246
|
## Tokens
|
|
247
247
|
|
|
248
|
-
`--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-lg`, `--slotted-control-inner-size-lg`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-dialog-body-color`, `--slotted-dialog-border-color`, `--slotted-dialog-close-active-background`, `--slotted-dialog-close-color`, `--slotted-dialog-close-hover-background`, `--slotted-dialog-color`, `--slotted-dialog-description-color`, `--slotted-dialog-footer-surface`, `--slotted-dialog-measure`, `--slotted-dialog-radius`, `--slotted-dialog-rule-color`, `--slotted-dialog-scrim`, `--slotted-dialog-surface`, `--slotted-dialog-title-color`, `--slotted-dialog-title-font-family`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`
|
|
248
|
+
`--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-lg`, `--slotted-control-inner-size-lg`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-dialog-body-color`, `--slotted-dialog-border-color`, `--slotted-dialog-close-active-background`, `--slotted-dialog-close-color`, `--slotted-dialog-close-hover-background`, `--slotted-dialog-color`, `--slotted-dialog-description-color`, `--slotted-dialog-footer-surface`, `--slotted-dialog-measure`, `--slotted-dialog-padding-block`, `--slotted-dialog-padding-block-sm`, `--slotted-dialog-padding-inline`, `--slotted-dialog-padding-inline-sm`, `--slotted-dialog-radius`, `--slotted-dialog-rule-color`, `--slotted-dialog-scrim`, `--slotted-dialog-surface`, `--slotted-dialog-title-color`, `--slotted-dialog-title-font-family`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`
|
|
249
249
|
|
|
250
250
|
## Examples
|
|
251
251
|
|
package/dist/docs/list.json
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"root",
|
|
52
52
|
"section",
|
|
53
53
|
"section-label",
|
|
54
|
+
"section-end",
|
|
54
55
|
"section-list",
|
|
55
56
|
"empty"
|
|
56
57
|
]
|
|
@@ -78,7 +79,13 @@
|
|
|
78
79
|
"part": "section-label",
|
|
79
80
|
"element": "h1 to h6, or a div",
|
|
80
81
|
"required": false,
|
|
81
|
-
"purpose": "The group name. It carries the id the nested list names itself by,
|
|
82
|
+
"purpose": "The group name. It carries the id the nested list names itself by, data-sticky when it has to hold still while its own rows scroll past, and data-variant: caption, the small muted name, or ruled, the name in the text colour over a rule with no ground behind it."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"part": "section-end",
|
|
86
|
+
"element": "span",
|
|
87
|
+
"required": false,
|
|
88
|
+
"purpose": "What stands at the end of the heading, on the line of the name: a day balance, a count. Set in tabular figures. It is rendered from the end prop."
|
|
82
89
|
},
|
|
83
90
|
{
|
|
84
91
|
"part": "section-list",
|
|
@@ -150,6 +157,20 @@
|
|
|
150
157
|
"appliesTo": "ListSection",
|
|
151
158
|
"description": "Keeps a group name in place while its own rows scroll past it"
|
|
152
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"name": "end",
|
|
162
|
+
"type": "ReactNode",
|
|
163
|
+
"defaultValue": "—",
|
|
164
|
+
"appliesTo": "ListSection",
|
|
165
|
+
"description": "What stands at the end of the group heading, on the line of the name, in tabular figures"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "labelVariant",
|
|
169
|
+
"type": "'caption' | 'ruled'",
|
|
170
|
+
"defaultValue": "caption",
|
|
171
|
+
"appliesTo": "ListSection",
|
|
172
|
+
"description": "How the group heading is drawn: the small muted name, or the name over a rule with no ground"
|
|
173
|
+
},
|
|
153
174
|
{
|
|
154
175
|
"name": "label",
|
|
155
176
|
"type": "ReactNode",
|
|
@@ -213,6 +234,7 @@
|
|
|
213
234
|
"--slotted-control-padding-inline-md",
|
|
214
235
|
"--slotted-control-padding-inline-sm",
|
|
215
236
|
"--slotted-font-size-xs",
|
|
237
|
+
"--slotted-font-weight-medium",
|
|
216
238
|
"--slotted-font-weight-semibold",
|
|
217
239
|
"--slotted-line-height-sm",
|
|
218
240
|
"--slotted-list-background",
|
|
@@ -236,6 +258,8 @@
|
|
|
236
258
|
"--slotted-list-section-padding-block",
|
|
237
259
|
"--slotted-list-section-padding-block-lg",
|
|
238
260
|
"--slotted-list-section-padding-block-sm",
|
|
261
|
+
"--slotted-list-section-rule-color",
|
|
262
|
+
"--slotted-list-section-ruled-color",
|
|
239
263
|
"--slotted-radius-md",
|
|
240
264
|
"--slotted-space-2",
|
|
241
265
|
"--slotted-space-3",
|
|
@@ -245,6 +269,7 @@
|
|
|
245
269
|
"--slotted-space-8",
|
|
246
270
|
"--slotted-space-9",
|
|
247
271
|
"--slotted-surface",
|
|
272
|
+
"--slotted-text",
|
|
248
273
|
"--slotted-text-muted",
|
|
249
274
|
"--slotted-z-index-sticky"
|
|
250
275
|
],
|
package/dist/docs/list.md
CHANGED
|
@@ -33,6 +33,7 @@ Excerpt — not a complete module
|
|
|
33
33
|
| `root` | ul or ol, or the element render returns | yes |
|
|
34
34
|
| `section` | li | no |
|
|
35
35
|
| `section-label` | h1 to h6, or a div | no |
|
|
36
|
+
| `section-end` | span | no |
|
|
36
37
|
| `section-list` | ul or ol | no |
|
|
37
38
|
| `empty` | li | no |
|
|
38
39
|
|
|
@@ -48,6 +49,8 @@ Excerpt — not a complete module
|
|
|
48
49
|
| `loading` | `boolean` | false | List | Writes aria-busy on the set. What stands in for the rows is Skeleton, composed by the page |
|
|
49
50
|
| `level` | `'none' \| '1' \| '2' \| '3' \| '4' \| '5' \| '6'` | 3 | ListSection | The heading a group name is set as. none renders a div and announces no heading |
|
|
50
51
|
| `sticky` | `boolean` | false | ListSection | Keeps a group name in place while its own rows scroll past it |
|
|
52
|
+
| `end` | `ReactNode` | — | ListSection | What stands at the end of the group heading, on the line of the name, in tabular figures |
|
|
53
|
+
| `labelVariant` | `'caption' \| 'ruled'` | caption | ListSection | How the group heading is drawn: the small muted name, or the name over a rule with no ground |
|
|
51
54
|
| `label` | `ReactNode` | — | ListSection | The group name, which the nested list is named by |
|
|
52
55
|
| `labelProps / listProps` | `HTMLAttributes` | — | ListSection | Reach the heading and the nested list, for an id or a class the page owns |
|
|
53
56
|
| `render` | `(props) => ReactNode` | — | List, ListSection, ListEmpty | Renders the wiring into another element — a nav, a router own list |
|
|
@@ -75,7 +78,7 @@ Excerpt — not a complete module
|
|
|
75
78
|
|
|
76
79
|
## Tokens
|
|
77
80
|
|
|
78
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-list-background`, `--slotted-list-border-color`, `--slotted-list-border-width`, `--slotted-list-empty-color`, `--slotted-list-empty-padding`, `--slotted-list-empty-padding-lg`, `--slotted-list-empty-padding-sm`, `--slotted-list-gap`, `--slotted-list-gap-lg`, `--slotted-list-gap-sm`, `--slotted-list-padding-inline`, `--slotted-list-padding-inline-lg`, `--slotted-list-padding-inline-sm`, `--slotted-list-radius`, `--slotted-list-section-color`, `--slotted-list-section-font-size`, `--slotted-list-section-font-weight`, `--slotted-list-section-letter-spacing`, `--slotted-list-section-padding-block`, `--slotted-list-section-padding-block-lg`, `--slotted-list-section-padding-block-sm`, `--slotted-radius-md`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-text-muted`, `--slotted-z-index-sticky`
|
|
81
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-sm`, `--slotted-list-background`, `--slotted-list-border-color`, `--slotted-list-border-width`, `--slotted-list-empty-color`, `--slotted-list-empty-padding`, `--slotted-list-empty-padding-lg`, `--slotted-list-empty-padding-sm`, `--slotted-list-gap`, `--slotted-list-gap-lg`, `--slotted-list-gap-sm`, `--slotted-list-padding-inline`, `--slotted-list-padding-inline-lg`, `--slotted-list-padding-inline-sm`, `--slotted-list-radius`, `--slotted-list-section-color`, `--slotted-list-section-font-size`, `--slotted-list-section-font-weight`, `--slotted-list-section-letter-spacing`, `--slotted-list-section-padding-block`, `--slotted-list-section-padding-block-lg`, `--slotted-list-section-padding-block-sm`, `--slotted-list-section-rule-color`, `--slotted-list-section-ruled-color`, `--slotted-radius-md`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-text`, `--slotted-text-muted`, `--slotted-z-index-sticky`
|
|
79
82
|
|
|
80
83
|
## Examples
|
|
81
84
|
|
package/dist/docs/popover.json
CHANGED
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"part": "content",
|
|
145
145
|
"element": "div",
|
|
146
146
|
"required": true,
|
|
147
|
-
"purpose": "The panel, with role=\"dialog\" and tabindex=\"-1\". It is named by its title and described by its description when those parts are present. aria-modal is never written, because the popover is not modal."
|
|
147
|
+
"purpose": "The panel, with role=\"dialog\" and tabindex=\"-1\". It is named by its title and described by its description when those parts are present. aria-modal is never written, because the popover is not modal. It draws no padding: PopoverHeader, PopoverBody and PopoverFooter carry the panel inset, set by --slotted-popover-padding-inline and --slotted-popover-padding-block."
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"part": "header",
|