@slotted/react 0.1.0-beta.1 → 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/README.md +4 -0
- package/dist/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{action-sheet-D8Glxl7l.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-O0ZhkzJe.js +966 -0
- 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-CNZ7Xk5_.js → column-manager-CTtizVhm.js} +6 -6
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-C46GRqAA.js → combobox-BVMI9lg8.js} +296 -292
- 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-CBMP_-JV.js +1043 -0
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-BUgOJuGp.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/AGENTS.snippet.md +10 -0
- 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/event-calendar.json +7 -0
- package/dist/docs/event-calendar.md +1 -0
- package/dist/docs/guidelines/README.md +27 -0
- package/dist/docs/guidelines/async-feedback.md +108 -0
- package/dist/docs/guidelines/browsing.md +74 -0
- package/dist/docs/guidelines/builders.md +97 -0
- package/dist/docs/guidelines/composition.md +129 -0
- package/dist/docs/guidelines/conversations.md +59 -0
- package/dist/docs/guidelines/errors-and-conflicts.md +71 -0
- package/dist/docs/guidelines/forms.md +192 -0
- package/dist/docs/guidelines/index.md +121 -0
- package/dist/docs/guidelines/layout-alignment.md +95 -0
- package/dist/docs/guidelines/ledgers.md +45 -0
- package/dist/docs/guidelines/list-pages.md +165 -0
- package/dist/docs/guidelines/overviews.md +66 -0
- package/dist/docs/guidelines/own-elements.md +115 -0
- package/dist/docs/guidelines/reading-permissions.md +55 -0
- package/dist/docs/guidelines/record-pages.md +178 -0
- package/dist/docs/guidelines/reports.md +123 -0
- package/dist/docs/guidelines/shell-composition.md +94 -0
- package/dist/docs/guidelines/workspaces.md +46 -0
- package/dist/docs/index.md +12 -0
- package/dist/docs/list.json +26 -1
- package/dist/docs/list.md +4 -1
- package/dist/docs/popover.json +1 -1
- package/dist/docs/progress-indicator.json +1 -2
- package/dist/docs/progress-indicator.md +2 -2
- 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/build-own-element/SKILL.md +90 -0
- package/dist/docs/skills/compose-screen/SKILL.md +76 -0
- package/dist/docs/skills/index.md +9 -0
- package/dist/docs/skills/review-screen/SKILL.md +70 -0
- package/dist/docs/skills/theme-app/SKILL.md +79 -0
- package/dist/docs/skills/waiting-states/SKILL.md +139 -0
- package/dist/docs/split-button.json +1 -0
- package/dist/docs/split-button.md +1 -1
- package/dist/docs/stat-card.json +2 -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 +2 -5
- package/dist/docs/tabs.md +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 +448 -0
- 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-BFdeGfC-.js → event-calendar-CnF3iIZD.js} +391 -390
- 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-b2Q9BZHf.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-CfzsvAeI.js → multi-select-DQ5ds0fX.js} +432 -437
- 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-UTwKjheK.js → select-DOFqPy26.js} +334 -347
- 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-CzBIw9ng.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/combobox/combobox-collection.d.ts +1 -0
- package/dist/types/combobox/combobox-collection.d.ts.map +1 -1
- package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
- package/dist/types/combobox/combobox.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/dashboard-grid/dashboard-grid.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.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/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.types.d.ts +6 -0
- package/dist/types/event-calendar/event-calendar.types.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/menu/menu.types.d.ts +3 -1
- package/dist/types/menu/menu.types.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-collection.d.ts +0 -2
- package/dist/types/multi-select/multi-select-collection.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select.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/select/select-collection.d.ts +0 -2
- package/dist/types/select/select-collection.d.ts.map +1 -1
- package/dist/types/select/select.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/chart-BNzfIfQe.js +0 -948
- package/dist/currency-field-B7OZ0hk7.js +0 -436
- package/dist/dashboard-grid-nfhEewA4.js +0 -1005
- 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-Ci3wuCVa.js +0 -758
- package/dist/entity-picker-UGhbVwkC.js +0 -1111
- package/dist/import-export-center-D8xbCLWs.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
|
|
|
@@ -557,6 +557,13 @@
|
|
|
557
557
|
"appliesTo": "EventCalendar",
|
|
558
558
|
"description": "Read once; pass it when rendering on a server"
|
|
559
559
|
},
|
|
560
|
+
{
|
|
561
|
+
"name": "now",
|
|
562
|
+
"type": "PlainDateTime",
|
|
563
|
+
"defaultValue": "the clock in timeZone, ticked each minute",
|
|
564
|
+
"appliesTo": "EventCalendar",
|
|
565
|
+
"description": "Present means the consumer owns it: the clock is no longer read, and today and the now line follow it. A page dated by its content passes it."
|
|
566
|
+
},
|
|
560
567
|
{
|
|
561
568
|
"name": "view",
|
|
562
569
|
"type": "'month' | 'week' | 'day' | 'list'",
|
|
@@ -98,6 +98,7 @@ Excerpt — not a complete module
|
|
|
98
98
|
| `calendars` | `readonly EventCalendarCalendar[]` | [] | EventCalendar | Key, label and an optional colour slot 1–8 |
|
|
99
99
|
| `date` | `PlainDate` | — | EventCalendar | The day the calendar is on; present means controlled |
|
|
100
100
|
| `defaultDate` | `PlainDate` | today in timeZone | EventCalendar | Read once; pass it when rendering on a server |
|
|
101
|
+
| `now` | `PlainDateTime` | the clock in timeZone, ticked each minute | EventCalendar | Present means the consumer owns it: the clock is no longer read, and today and the now line follow it. A page dated by its content passes it. |
|
|
101
102
|
| `view` | `'month' \| 'week' \| 'day' \| 'list'` | month | EventCalendar | Present means controlled; uncontrolled opens on the first of views |
|
|
102
103
|
| `defaultView` | `EventCalendarView` | views[0] | EventCalendar | Read once |
|
|
103
104
|
| `views` | `readonly EventCalendarView[]` | month,week,day,list | EventCalendar | The switcher, in order |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Guidelines
|
|
2
|
+
|
|
3
|
+
Rules for composing screens from the Slotted families: what the reference
|
|
4
|
+
pages do not state. A family's page states what it is — its parts, states,
|
|
5
|
+
tokens and keyboard. It does not state where a pager stands, what a region
|
|
6
|
+
shows before its first answer, or which family a bar's search slot is for.
|
|
7
|
+
|
|
8
|
+
## Reading protocol
|
|
9
|
+
|
|
10
|
+
For a reader with a task — a person or a model about to write or review a
|
|
11
|
+
screen:
|
|
12
|
+
|
|
13
|
+
1. Read `index.md`: every active rule in one line, with its level and its file.
|
|
14
|
+
2. Match the task against the `triggers` in each topic file's front matter.
|
|
15
|
+
Read the topic files that match, and `composition.md` always.
|
|
16
|
+
3. Before writing an element beside a family, read that family's page in
|
|
17
|
+
`node_modules/@slotted/react/dist/docs`. Before writing an element no family draws, read
|
|
18
|
+
`own-elements.md` and `node_modules/@slotted/react/dist/docs/tokens.md`.
|
|
19
|
+
4. Apply the rules by level: a `MUST` broken is a defect, a `SHOULD` broken is
|
|
20
|
+
stated with its reason, a `MAY` is a permission.
|
|
21
|
+
5. A screen is done when each `Check` of the rules read passes.
|
|
22
|
+
|
|
23
|
+
## Rule identity
|
|
24
|
+
|
|
25
|
+
An id (`AF-03`) never changes meaning. A rule whose meaning or level changes
|
|
26
|
+
is retired, keeps its heading with `Status: retired`, and is rewritten under a
|
|
27
|
+
new id. The release notes of each version list the ids added and retired.
|