@slotted/react 0.1.0-beta.42 → 0.1.0-beta.44
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-sheet-q1UXXruJ.js +360 -0
- package/dist/action-sheet.js +1 -1
- package/dist/{app-shell-D54YkU7E.js → app-shell-BBPY0_KK.js} +217 -195
- package/dist/app-shell.js +1 -1
- package/dist/attachment-DJDXJrCx.js +300 -0
- package/dist/attachment.js +2 -2
- package/dist/{avatar-group-bJaZE1_C.js → avatar-group-Bzmmj2HI.js} +2 -1
- package/dist/avatar-group.js +1 -1
- package/dist/{button-BMRInd-t.js → button-DS_HpPy0.js} +1 -1
- package/dist/button.js +2 -2
- package/dist/{calendar-YQ784o4d.js → calendar-BO5teotM.js} +1 -1
- package/dist/calendar.js +1 -1
- package/dist/{carousel-B9nMK7Yf.js → carousel-CRNz-T3g.js} +1 -1
- package/dist/carousel.js +1 -1
- package/dist/{cascader-fq8fNWSr.js → cascader-BbhADVGt.js} +134 -131
- package/dist/cascader.js +1 -1
- package/dist/{chart-vedR0BDN.js → chart-C4uPgUW8.js} +2 -2
- package/dist/chart.js +1 -1
- package/dist/{checkbox-DsJhlB5c.js → checkbox-D8HZG0be.js} +3 -3
- package/dist/{checkbox-group-pvX9R_yS.js → checkbox-group-5zuE2Kd1.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{clock-DzkQa57Q.js → clock-DeJgwYbZ.js} +1 -1
- package/dist/clock.js +1 -1
- package/dist/{code-block-Cy548yk7.js → code-block-H0lmVVnY.js} +1 -1
- package/dist/code-block.js +1 -1
- package/dist/{color-picker-i-MJ5VVs.js → color-picker-fiLSUBjj.js} +23 -18
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-D028QbfO.js → column-manager-Cc72e1j-.js} +143 -143
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-599heRN_.js → combobox-DMtXrMYE.js} +1 -1
- package/dist/combobox.js +1 -1
- package/dist/{command-palette-C90CzfQi.js → command-palette-DwjkexvN.js} +174 -162
- package/dist/command-palette.js +1 -1
- package/dist/{context-menu-WM_tT9hz.js → context-menu-CRRp-PhP.js} +12 -6
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-rS36pjCO.js → currency-field-Cxr8MT75.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-Dh2Q3IQv.js → dashboard-grid-_3H4G0dP.js} +339 -333
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-D106baPp.js → data-grid-BlElqHOU.js} +19 -19
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-BA0xrySM.js → data-list-5zvM-DUz.js} +19 -18
- package/dist/data-list.js +1 -1
- package/dist/{date-field-BZ5JcvXJ.js → date-field-CjlOWVRA.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-BvEbsbJC.js → date-picker-BoIHK8_U.js} +4 -4
- package/dist/date-picker.js +2 -2
- package/dist/{date-range-picker-uIr-yReE.js → date-range-picker-DzuuvudX.js} +5 -5
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-DDs3mV9Z.js → datetime-field-PSEOgzfN.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-DDYXqrjm.js → datetime-picker-BUhSr8yp.js} +7 -7
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-CFTHW771.js → datetime-range-picker-DXllehEN.js} +7 -7
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{description-list-D8iTzgC0.js → description-list-1USVlDj3.js} +5 -1
- package/dist/description-list.js +1 -1
- package/dist/detail-panel-Czs05E_D.js +344 -0
- package/dist/detail-panel.js +2 -2
- package/dist/docs/action-bar.examples.md +768 -0
- package/dist/docs/action-bar.json +74 -50
- package/dist/docs/action-bar.md +49 -311
- package/dist/docs/action-sheet.examples.md +1 -1
- package/dist/docs/action-sheet.json +3 -3
- package/dist/docs/action-sheet.md +2 -2
- package/dist/docs/app-shell.examples.md +1273 -64
- package/dist/docs/app-shell.json +93 -60
- package/dist/docs/app-shell.md +98 -58
- package/dist/docs/attachment.examples.md +689 -0
- package/dist/docs/attachment.json +69 -37
- package/dist/docs/attachment.md +44 -203
- package/dist/docs/avatar-group.examples.md +790 -0
- package/dist/docs/avatar-group.json +111 -23
- package/dist/docs/avatar-group.md +46 -86
- package/dist/docs/avatar.json +6 -6
- package/dist/docs/avatar.md +43 -10
- package/dist/docs/badge.json +1 -1
- package/dist/docs/badge.md +15 -3
- package/dist/docs/button-group.json +98 -2
- package/dist/docs/button-group.md +411 -8
- package/dist/docs/button.json +2 -0
- package/dist/docs/button.md +1 -1
- package/dist/docs/calendar.examples.md +512 -0
- package/dist/docs/calendar.json +72 -25
- package/dist/docs/calendar.md +19 -148
- package/dist/docs/carousel.examples.md +868 -0
- package/dist/docs/carousel.json +60 -50
- package/dist/docs/carousel.md +67 -301
- package/dist/docs/cascader.examples.md +1269 -0
- package/dist/docs/cascader.json +72 -16
- package/dist/docs/cascader.md +78 -154
- package/dist/docs/chart.examples.md +734 -24
- package/dist/docs/chart.json +93 -13
- package/dist/docs/chart.md +28 -7
- package/dist/docs/clock.json +75 -19
- package/dist/docs/clock.md +328 -23
- package/dist/docs/code-block.json +79 -55
- package/dist/docs/code-block.md +417 -74
- package/dist/docs/collapsible.json +10 -1
- package/dist/docs/collapsible.md +1 -1
- package/dist/docs/color-picker.json +74 -13
- package/dist/docs/color-picker.md +247 -23
- package/dist/docs/column-manager.examples.md +764 -0
- package/dist/docs/column-manager.json +68 -12
- package/dist/docs/column-manager.md +44 -203
- package/dist/docs/command-palette.examples.md +747 -0
- package/dist/docs/command-palette.json +48 -24
- package/dist/docs/command-palette.md +60 -339
- package/dist/docs/currency-field.examples.md +355 -73
- package/dist/docs/currency-field.json +96 -64
- package/dist/docs/currency-field.md +57 -50
- package/dist/docs/dashboard-grid.examples.md +629 -0
- package/dist/docs/dashboard-grid.json +64 -16
- package/dist/docs/dashboard-grid.md +34 -152
- package/dist/docs/data-list.examples.md +1556 -0
- package/dist/docs/data-list.json +58 -18
- package/dist/docs/data-list.md +139 -224
- package/dist/docs/date-field.examples.md +543 -0
- package/dist/docs/date-field.json +64 -24
- package/dist/docs/date-field.md +22 -168
- package/dist/docs/datetime-field.examples.md +699 -0
- package/dist/docs/datetime-field.json +79 -31
- package/dist/docs/datetime-field.md +24 -269
- package/dist/docs/datetime-range-picker.examples.md +682 -0
- package/dist/docs/datetime-range-picker.json +117 -61
- package/dist/docs/datetime-range-picker.md +59 -224
- package/dist/docs/description-list.examples.md +652 -0
- package/dist/docs/description-list.json +56 -25
- package/dist/docs/description-list.md +34 -188
- package/dist/docs/detail-panel.examples.md +1177 -0
- package/dist/docs/detail-panel.json +69 -53
- package/dist/docs/detail-panel.md +114 -324
- package/dist/docs/drawer.examples.md +1 -1
- package/dist/docs/drawer.json +4 -4
- package/dist/docs/entity-picker.examples.md +1160 -0
- package/dist/docs/entity-picker.json +66 -18
- package/dist/docs/entity-picker.md +72 -247
- package/dist/docs/event-calendar.examples.md +749 -49
- package/dist/docs/event-calendar.json +53 -22
- package/dist/docs/event-calendar.md +82 -11
- package/dist/docs/field-group.examples.md +554 -0
- package/dist/docs/field-group.json +98 -34
- package/dist/docs/field-group.md +55 -133
- package/dist/docs/filter-bar.examples.md +772 -0
- package/dist/docs/filter-bar.json +42 -25
- package/dist/docs/filter-bar.md +43 -247
- package/dist/docs/floating-panel.json +7 -3
- package/dist/docs/floating-panel.md +23 -5
- package/dist/docs/form.examples.md +579 -0
- package/dist/docs/form.json +87 -39
- package/dist/docs/form.md +53 -177
- package/dist/docs/fullscreen.examples.md +558 -0
- package/dist/docs/fullscreen.json +58 -18
- package/dist/docs/fullscreen.md +50 -169
- package/dist/docs/highlight.json +57 -25
- package/dist/docs/highlight.md +402 -50
- package/dist/docs/hover-card.json +8 -1
- package/dist/docs/hover-card.md +5 -1
- package/dist/docs/icon.json +85 -5
- package/dist/docs/icon.md +401 -10
- package/dist/docs/image.examples.md +670 -0
- package/dist/docs/image.json +44 -28
- package/dist/docs/image.md +24 -176
- package/dist/docs/import-export-center.examples.md +1280 -0
- package/dist/docs/import-export-center.json +69 -39
- package/dist/docs/import-export-center.md +123 -229
- package/dist/docs/inline-message.json +8 -8
- package/dist/docs/inline-message.md +37 -31
- package/dist/docs/inline.json +1 -1
- package/dist/docs/inline.md +4 -1
- package/dist/docs/list-item.examples.md +769 -0
- package/dist/docs/list-item.json +113 -38
- package/dist/docs/list-item.md +85 -202
- package/dist/docs/listbox.examples.md +858 -0
- package/dist/docs/listbox.json +76 -28
- package/dist/docs/listbox.md +41 -263
- package/dist/docs/markdown.json +79 -55
- package/dist/docs/markdown.md +585 -85
- package/dist/docs/media-viewer.examples.md +1038 -0
- package/dist/docs/media-viewer.json +70 -15
- package/dist/docs/media-viewer.md +84 -135
- package/dist/docs/menu.examples.md +14 -2
- package/dist/docs/menu.json +1 -1
- package/dist/docs/message-scroller.examples.md +1359 -0
- package/dist/docs/message-scroller.json +41 -17
- package/dist/docs/message-scroller.md +93 -134
- package/dist/docs/message.examples.md +954 -0
- package/dist/docs/message.json +68 -18
- package/dist/docs/message.md +39 -327
- package/dist/docs/meter.json +58 -26
- package/dist/docs/meter.md +312 -32
- package/dist/docs/navigation-menu.examples.md +1116 -0
- package/dist/docs/navigation-menu.json +57 -41
- package/dist/docs/navigation-menu.md +105 -298
- package/dist/docs/notification-center.examples.md +1045 -0
- package/dist/docs/notification-center.json +71 -15
- package/dist/docs/notification-center.md +76 -266
- package/dist/docs/otp-input.examples.md +490 -0
- package/dist/docs/otp-input.json +65 -25
- package/dist/docs/otp-input.md +20 -191
- package/dist/docs/page-header.examples.md +1062 -0
- package/dist/docs/page-header.json +83 -43
- package/dist/docs/page-header.md +80 -292
- package/dist/docs/page.examples.md +651 -0
- package/dist/docs/page.json +48 -16
- package/dist/docs/page.md +62 -129
- package/dist/docs/popover.json +17 -2
- package/dist/docs/popover.md +2 -0
- package/dist/docs/progress-indicator.json +10 -1
- package/dist/docs/progress-indicator.md +2 -1
- package/dist/docs/prompt-composer.examples.md +630 -0
- package/dist/docs/prompt-composer.json +66 -18
- package/dist/docs/prompt-composer.md +35 -161
- package/dist/docs/prose.json +69 -37
- package/dist/docs/prose.md +393 -75
- package/dist/docs/rating.examples.md +525 -0
- package/dist/docs/rating.json +92 -28
- package/dist/docs/rating.md +27 -241
- package/dist/docs/saved-views.examples.md +1097 -0
- package/dist/docs/saved-views.json +53 -21
- package/dist/docs/saved-views.md +85 -171
- package/dist/docs/scroll-area.examples.md +837 -0
- package/dist/docs/scroll-area.json +64 -24
- package/dist/docs/scroll-area.md +57 -140
- package/dist/docs/section.examples.md +679 -0
- package/dist/docs/section.json +68 -20
- package/dist/docs/section.md +39 -162
- package/dist/docs/segmented-control.examples.md +480 -0
- package/dist/docs/segmented-control.json +78 -28
- package/dist/docs/segmented-control.md +21 -192
- package/dist/docs/side-navigation.examples.md +1473 -0
- package/dist/docs/side-navigation.json +53 -53
- package/dist/docs/side-navigation.md +79 -354
- package/dist/docs/skeleton.json +2 -2
- package/dist/docs/skeleton.md +2 -2
- package/dist/docs/slider.examples.md +505 -0
- package/dist/docs/slider.json +91 -51
- package/dist/docs/slider.md +47 -212
- package/dist/docs/sparkline.json +60 -36
- package/dist/docs/sparkline.md +447 -71
- package/dist/docs/split-button.examples.md +509 -0
- package/dist/docs/split-button.json +73 -41
- package/dist/docs/split-button.md +64 -194
- package/dist/docs/splitter.examples.md +921 -0
- package/dist/docs/splitter.json +94 -46
- package/dist/docs/splitter.md +75 -182
- package/dist/docs/stat-card.examples.md +725 -0
- package/dist/docs/stat-card.json +89 -41
- package/dist/docs/stat-card.md +55 -227
- package/dist/docs/status-indicator.json +80 -33
- package/dist/docs/status-indicator.md +410 -66
- package/dist/docs/stepper.json +53 -21
- package/dist/docs/stepper.md +363 -48
- package/dist/docs/table-of-contents.examples.md +550 -0
- package/dist/docs/table-of-contents.json +60 -28
- package/dist/docs/table-of-contents.md +70 -205
- package/dist/docs/table.json +2 -1
- package/dist/docs/table.md +2 -2
- package/dist/docs/tabs.examples.md +6 -4
- package/dist/docs/tabs.json +7 -5
- package/dist/docs/tabs.md +2 -2
- package/dist/docs/tags-input.examples.md +541 -0
- package/dist/docs/tags-input.json +64 -16
- package/dist/docs/tags-input.md +15 -262
- package/dist/docs/time-field.examples.md +587 -0
- package/dist/docs/time-field.json +69 -29
- package/dist/docs/time-field.md +21 -223
- package/dist/docs/time-picker.json +117 -53
- package/dist/docs/time-picker.md +499 -54
- package/dist/docs/time-range-picker.examples.md +750 -0
- package/dist/docs/time-range-picker.json +139 -75
- package/dist/docs/time-range-picker.md +63 -225
- package/dist/docs/timeline.examples.md +622 -0
- package/dist/docs/timeline.json +44 -28
- package/dist/docs/timeline.md +34 -208
- package/dist/docs/toggle-group.json +2 -0
- package/dist/docs/toggle-group.md +1 -1
- package/dist/docs/toggle.json +2 -0
- package/dist/docs/toggle.md +1 -1
- package/dist/docs/tokens.md +8 -0
- package/dist/docs/toolbar.examples.md +529 -0
- package/dist/docs/toolbar.json +58 -18
- package/dist/docs/toolbar.md +36 -171
- package/dist/docs/tooltip.examples.md +46 -0
- package/dist/docs/tooltip.json +23 -0
- package/dist/docs/tooltip.md +2 -0
- package/dist/docs/top-navigation.examples.md +1308 -140
- package/dist/docs/top-navigation.json +49 -33
- package/dist/docs/top-navigation.md +92 -36
- package/dist/docs/tour.examples.md +960 -0
- package/dist/docs/tour.json +57 -25
- package/dist/docs/tour.md +60 -244
- package/dist/docs/transfer.examples.md +631 -0
- package/dist/docs/transfer.json +80 -16
- package/dist/docs/transfer.md +41 -170
- package/dist/docs/tree.examples.md +5 -2
- package/dist/docs/tree.json +2 -2
- package/dist/docs/typography.json +96 -0
- package/dist/docs/typography.md +365 -4
- package/dist/docs/upload.examples.md +555 -53
- package/dist/docs/upload.json +62 -30
- package/dist/docs/upload.md +46 -11
- package/dist/docs/visually-hidden.json +3 -3
- package/dist/docs/visually-hidden.md +68 -41
- package/dist/docs/wizard.examples.md +1389 -0
- package/dist/docs/wizard.json +90 -49
- package/dist/docs/wizard.md +123 -264
- package/dist/drawer-JP3p-QZB.js +879 -0
- package/dist/drawer.js +1 -1
- package/dist/{entity-picker-CC4VoC3p.js → entity-picker-BWpuo-mp.js} +341 -334
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-CjmF_e0H.js → event-calendar-Bxx8eoGK.js} +10 -6
- package/dist/event-calendar.js +1 -1
- package/dist/{field-C-HRhke0.js → field-N0TiMbaI.js} +2 -2
- package/dist/{field-group-CU0PasvW.js → field-group-BrnE6FvP.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-B3QJD7SZ.js → filter-bar-nQH58RVl.js} +361 -347
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-CTItbEfH.js → hover-card-D9-rb9ts.js} +67 -63
- package/dist/hover-card.js +1 -1
- package/dist/{icon-button-N8Madx6i.js → icon-button-DzPkQamc.js} +0 -1
- package/dist/import-export-center-BpGga5jr.js +869 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +105 -105
- package/dist/{listbox-ZqiJ2yer.js → listbox-3XVusnCr.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{loading-overlay-BxIktMtQ.js → loading-overlay-BzycGqQA.js} +1 -1
- package/dist/loading-overlay.js +1 -1
- package/dist/{markdown-BdskE4-L.js → markdown-BMda5ino.js} +15 -15
- package/dist/markdown.js +1 -1
- package/dist/{media-viewer-zEXcwfEY.js → media-viewer-C_cbuAq-.js} +64 -60
- package/dist/media-viewer.js +2 -2
- package/dist/message-P91bEGyV.js +455 -0
- package/dist/message.js +2 -2
- package/dist/{multi-select-Dc2d6dDB.js → multi-select-IpsZvoQ2.js} +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/{navigation-menu-parts-CRLmigjy.js → navigation-menu-parts-D-vsDdEF.js} +5 -1
- package/dist/navigation-menu.js +1 -1
- package/dist/{notification-center-BngAw_kt.js → notification-center-CTSfrh9K.js} +3 -3
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-BQ54hXmk.js → number-field-Cp33JMGB.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-DRooqa3f.js → otp-input-CEP60HOi.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{page-header-DmwBGwlm.js → page-header-DK896DGD.js} +105 -110
- package/dist/page-header.js +1 -1
- package/dist/{picker-frame-B6sPCP5Y.js → picker-frame-C3Fhjfaj.js} +1 -1
- package/dist/popover-DED1MTi-.js +615 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-indicator-DRr0Gj6w.js → progress-indicator-Co8e7M5K.js} +6 -3
- package/dist/progress-indicator.js +1 -1
- package/dist/{prompt-composer-tYIs39rn.js → prompt-composer-CwjvdgBR.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-AW3xcYYh.js → radio-group-D6bOV_ea.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-h3qdHLNi.js → rating-D8BvDdjM.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-nqn0SDXn.js → saved-views-D-CP7JIE.js} +8 -5
- package/dist/saved-views.js +1 -1
- package/dist/section-CVTQdWBl.js +216 -0
- package/dist/section.js +2 -2
- package/dist/{segmented-control-CbK7SurB.js → segmented-control-BLcGhQ4J.js} +3 -3
- package/dist/segmented-control.js +1 -1
- package/dist/{select-d448Wkzb.js → select-Dbc3ng0M.js} +2 -2
- package/dist/{select-tags-3792weoq.js → select-tags-D0SMDPBX.js} +25 -24
- package/dist/select.js +1 -1
- package/dist/{side-navigation-CKRETc8E.js → side-navigation-Dw3-P12f.js} +181 -181
- package/dist/side-navigation.js +1 -1
- package/dist/{skeleton-DeEOmm1y.js → skeleton-DTqt2GEv.js} +27 -20
- package/dist/skeleton.js +1 -1
- package/dist/{slider-DQ2CnxTO.js → slider-COLWTaxi.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-D4MPKSB2.js → split-button-Czr2D3HP.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/{stat-card-CL3Xe6pV.js → stat-card-D6NMjkZM.js} +13 -15
- package/dist/stat-card.js +1 -1
- package/dist/{stepper-DHdrANZI.js → stepper-Cxb_tHnA.js} +130 -127
- package/dist/stepper.js +2 -2
- package/dist/styles/accordion.css +1 -1
- package/dist/styles/action-bar.css +2 -2
- package/dist/styles/action-sheet.css +5 -3
- package/dist/styles/app-shell.css +3 -3
- package/dist/styles/attachment.css +3 -3
- package/dist/styles/avatar-group.css +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/breadcrumb.css +1 -1
- package/dist/styles/button.css +2 -2
- package/dist/styles/calendar.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/cascader.css +7 -7
- package/dist/styles/chart.css +6 -4
- package/dist/styles/checkbox-group.css +6 -2
- package/dist/styles/checkbox.css +7 -3
- package/dist/styles/clock.css +1 -1
- package/dist/styles/code-block.css +2 -2
- package/dist/styles/collapsible.css +2 -2
- package/dist/styles/color-picker.css +9 -5
- package/dist/styles/column-manager.css +9 -9
- package/dist/styles/combobox.css +7 -3
- package/dist/styles/command-palette.css +5 -5
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/currency-field.css +7 -3
- package/dist/styles/dashboard-grid.css +6 -6
- package/dist/styles/data-grid.css +19 -19
- package/dist/styles/data-list.css +9 -9
- package/dist/styles/date-field.css +7 -3
- package/dist/styles/date-picker.css +8 -4
- package/dist/styles/date-range-picker.css +8 -4
- package/dist/styles/datetime-field.css +7 -3
- package/dist/styles/datetime-picker.css +10 -6
- package/dist/styles/datetime-range-picker.css +9 -5
- package/dist/styles/description-list.css +1 -1
- package/dist/styles/detail-panel.css +7 -7
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +5 -1
- package/dist/styles/entity-picker.css +10 -8
- package/dist/styles/event-calendar.css +12 -8
- package/dist/styles/field-group.css +6 -2
- package/dist/styles/field.css +6 -2
- package/dist/styles/filter-bar.css +20 -20
- package/dist/styles/floating-panel.css +1 -1
- package/dist/styles/hover-card.css +5 -1
- package/dist/styles/import-export-center.css +24 -24
- package/dist/styles/index.css +87 -85
- package/dist/styles/inline.css +1 -1
- package/dist/styles/kbd.css +1 -1
- package/dist/styles/list-item.css +1 -1
- package/dist/styles/listbox.css +7 -3
- package/dist/styles/loading-overlay.css +3 -3
- package/dist/styles/markdown.css +8 -8
- package/dist/styles/media-viewer.css +2 -2
- package/dist/styles/menu.css +1 -1
- package/dist/styles/menubar.css +2 -2
- package/dist/styles/message-scroller.css +1 -1
- package/dist/styles/message.css +1 -1
- package/dist/styles/multi-select.css +9 -7
- package/dist/styles/navigation-menu.css +1 -1
- package/dist/styles/notification-center.css +5 -5
- package/dist/styles/number-field.css +7 -3
- package/dist/styles/otp-input.css +7 -3
- package/dist/styles/page-header.css +4 -4
- package/dist/styles/pagination.css +1 -1
- package/dist/styles/popover.css +5 -1
- package/dist/styles/progress-indicator.css +2 -2
- package/dist/styles/prompt-composer.css +6 -4
- package/dist/styles/radio-group.css +7 -3
- package/dist/styles/rating.css +7 -3
- package/dist/styles/saved-views.css +8 -6
- package/dist/styles/section.css +1 -1
- package/dist/styles/segmented-control.css +7 -3
- package/dist/styles/select.css +8 -4
- package/dist/styles/side-navigation.css +4 -4
- package/dist/styles/skeleton.css +1 -1
- package/dist/styles/slider.css +6 -2
- package/dist/styles/split-button.css +3 -3
- package/dist/styles/stat-card.css +1 -1
- package/dist/styles/status-indicator.css +1 -1
- package/dist/styles/stepper.css +1 -1
- package/dist/styles/switch.css +6 -6
- package/dist/styles/table-of-contents.css +1 -1
- package/dist/styles/table.css +18 -18
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/tag.css +1 -1
- package/dist/styles/tags-input.css +8 -4
- package/dist/styles/text-field.css +7 -3
- package/dist/styles/textarea.css +7 -3
- package/dist/styles/time-field.css +7 -3
- package/dist/styles/time-picker.css +8 -4
- package/dist/styles/time-range-picker.css +8 -4
- package/dist/styles/timeline.css +2 -2
- package/dist/styles/toast.css +3 -3
- package/dist/styles/toggle-group.css +7 -3
- package/dist/styles/toggle.css +1 -1
- package/dist/styles/toolbar.css +2 -2
- package/dist/styles/top-navigation.css +5 -5
- package/dist/styles/tour.css +3 -3
- package/dist/styles/transfer.css +9 -9
- package/dist/styles/tree.css +1 -1
- package/dist/styles/upload.css +10 -6
- package/dist/styles/wizard.css +8 -8
- package/dist/styles.css +1 -1
- package/dist/{switch-DxMukg7F.js → switch-CEbZkLlX.js} +2 -2
- package/dist/switch.js +1 -1
- package/dist/{table-BecApjeD.js → table-BU7XsbQX.js} +169 -162
- package/dist/{table-of-contents-kFr_3Dzs.js → table-of-contents-C410GoEC.js} +1 -1
- package/dist/table-of-contents.js +1 -1
- package/dist/table.js +1 -1
- package/dist/{tags-input-CqCeLtk-.js → tags-input-BdjkB19P.js} +260 -257
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-CMOkJ9Z6.js → text-field-QJnu-rln.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DfqPfXTr.js → textarea-DsrXI3xB.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-GyLQsxcc.js → time-field-DlZdMsNw.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-CGHPnust.js → time-picker-WmeCIySv.js} +5 -5
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-BMRtAqPy.js → time-range-picker-CwSbsJPt.js} +6 -6
- package/dist/time-range-picker.js +1 -1
- package/dist/{timeline-BiL2CXfn.js → timeline-ZngK6zLC.js} +9 -6
- package/dist/timeline.js +1 -1
- package/dist/{toast-aM_ga1mc.js → toast-C3xLEFDE.js} +1 -1
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-DZEWkVRo.js → toggle-group-SP_W-yeh.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toolbar-BniP4i1C.js +249 -0
- package/dist/toolbar.js +1 -1
- package/dist/tooltip-UPICnTij.js +418 -0
- package/dist/tooltip.js +1 -1
- package/dist/top-navigation--OcOpGCy.js +744 -0
- package/dist/top-navigation.js +2 -2
- package/dist/{tour-ALH5CYMY.js → tour-7-TXdrMv.js} +2 -2
- package/dist/tour.js +1 -1
- package/dist/{transfer-sKUvmEKe.js → transfer-DX6umI2M.js} +6 -6
- package/dist/transfer.js +1 -1
- package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/attachment/attachment-parts.d.ts +24 -11
- package/dist/types/attachment/attachment-parts.d.ts.map +1 -1
- package/dist/types/attachment/attachment.d.ts +3 -3
- package/dist/types/attachment/attachment.d.ts.map +1 -1
- package/dist/types/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/types/carousel/carousel-parts.d.ts +2 -2
- package/dist/types/cascader/cascader-surface.d.ts +6 -1
- package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/clock/clock.types.d.ts +5 -2
- package/dist/types/clock/clock.types.d.ts.map +1 -1
- package/dist/types/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/column-manager/column-manager.d.ts.map +1 -1
- package/dist/types/command-palette/command-palette.d.ts.map +1 -1
- package/dist/types/context-menu/context-menu.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts +2 -1
- package/dist/types/dashboard-grid/dashboard-grid.types.d.ts.map +1 -1
- package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
- package/dist/types/data-list/data-list.d.ts.map +1 -1
- package/dist/types/description-list/description-list-parts.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel-parts.d.ts +10 -3
- package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel.d.ts.map +1 -1
- package/dist/types/detail-panel/detail-panel.types.d.ts +7 -0
- package/dist/types/detail-panel/detail-panel.types.d.ts.map +1 -1
- package/dist/types/drawer/drawer-parts.d.ts +8 -3
- package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
- package/dist/types/drawer/drawer.types.d.ts +2 -1
- package/dist/types/drawer/drawer.types.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
- package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/types/filter-bar/filter-bar-rules.d.ts.map +1 -1
- package/dist/types/hover-card/hover-card.d.ts.map +1 -1
- package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
- package/dist/types/media-viewer/index.d.ts +2 -2
- package/dist/types/media-viewer/index.d.ts.map +1 -1
- package/dist/types/media-viewer/media-viewer-bar.d.ts +3 -1
- package/dist/types/media-viewer/media-viewer-bar.d.ts.map +1 -1
- package/dist/types/media-viewer/media-viewer.types.d.ts +1 -0
- package/dist/types/media-viewer/media-viewer.types.d.ts.map +1 -1
- package/dist/types/message/message-parts.d.ts +7 -0
- package/dist/types/message/message-parts.d.ts.map +1 -1
- package/dist/types/message/message.d.ts.map +1 -1
- package/dist/types/navigation-menu/navigation-menu-parts.d.ts.map +1 -1
- package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
- package/dist/types/popover/index.d.ts +1 -1
- package/dist/types/popover/index.d.ts.map +1 -1
- package/dist/types/popover/popover-defaults.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts +2 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/popover/popover.d.ts +1 -1
- package/dist/types/popover/popover.d.ts.map +1 -1
- package/dist/types/popover/popover.types.d.ts +20 -0
- package/dist/types/popover/popover.types.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-bar.d.ts.map +1 -1
- package/dist/types/saved-views/saved-views.d.ts +1 -0
- package/dist/types/saved-views/saved-views.d.ts.map +1 -1
- package/dist/types/section/section-parts.d.ts +16 -8
- package/dist/types/section/section-parts.d.ts.map +1 -1
- package/dist/types/section/section.d.ts.map +1 -1
- package/dist/types/segmented-control/segmented-control-parts.d.ts.map +1 -1
- package/dist/types/select/select-tags.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-region-context.d.ts +2 -0
- package/dist/types/skeleton/skeleton-region-context.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-region.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton-text.d.ts.map +1 -1
- package/dist/types/skeleton/skeleton.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-delta.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card-parts.d.ts +3 -3
- package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
- package/dist/types/stepper/stepper-parts.d.ts +11 -2
- package/dist/types/stepper/stepper-parts.d.ts.map +1 -1
- package/dist/types/stepper/stepper.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/tags-input/tags-input.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.d.ts.map +1 -1
- package/dist/types/toolbar/toolbar.types.d.ts +1 -1
- package/dist/types/toolbar/toolbar.types.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip-defaults.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip-parts.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip.d.ts +1 -1
- package/dist/types/tooltip/tooltip.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip.types.d.ts +17 -0
- package/dist/types/tooltip/tooltip.types.d.ts.map +1 -1
- package/dist/types/top-navigation/top-navigation.d.ts.map +1 -1
- package/dist/types/tour/tour.d.ts.map +1 -1
- package/dist/{upload-CuMOaPK3.js → upload-BtD1nLHa.js} +2 -2
- package/dist/upload.js +1 -1
- package/dist/{use-date-picker-DdSX3RE4.js → use-date-picker-CwH791Jm.js} +2 -2
- package/dist/{use-picker-draft-I_pxqYsc.js → use-picker-draft-BnLS4lDY.js} +1 -1
- package/dist/wizard-6PTtBoi4.js +838 -0
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/action-sheet-BouG2qh_.js +0 -360
- package/dist/attachment-MqczA38F.js +0 -292
- package/dist/detail-panel-EImAtksY.js +0 -327
- package/dist/drawer-CQagePr_.js +0 -830
- package/dist/import-export-center-CW8YVZev.js +0 -867
- package/dist/message-D1Dd6Y2k.js +0 -452
- package/dist/popover-1DlOu95x.js +0 -576
- package/dist/section-D_qOfdxR.js +0 -213
- package/dist/toolbar-BP7ka6lN.js +0 -243
- package/dist/tooltip-DrFiRlH8.js +0 -411
- package/dist/top-navigation-D8IHPOmm.js +0 -744
- package/dist/wizard-4c0X7Bx_.js +0 -838
|
@@ -149,13 +149,13 @@
|
|
|
149
149
|
"part": "end",
|
|
150
150
|
"element": "span",
|
|
151
151
|
"required": false,
|
|
152
|
-
"purpose": "The consumer’s own slot after the value. It is where datetime-picker puts its trigger, which is how the picker composes
|
|
152
|
+
"purpose": "The consumer’s own slot after the value. It is where datetime-picker puts its trigger, which is how the picker composes DateTimeField without redrawing any of it."
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
"part": "clear",
|
|
156
156
|
"element": "button",
|
|
157
157
|
"required": false,
|
|
158
|
-
"purpose": "Empties both halves at once and returns focus to the first segment, with the clear reason on the request.
|
|
158
|
+
"purpose": "Empties both halves at once and returns focus to the first segment, with the clear reason on the request. A datetime with one half missing is not a value DateTimeField holds, so no control clears one side."
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"part": "hidden-input",
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
"type": "boolean",
|
|
311
311
|
"defaultValue": "—",
|
|
312
312
|
"appliesTo": "DateTimeField",
|
|
313
|
-
"description": "Beside the validity
|
|
313
|
+
"description": "Beside the validity DateTimeField computes: a value outside either pair of bounds, or refused by either predicate, is invalid whatever this says."
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"name": "required",
|
|
@@ -389,28 +389,28 @@
|
|
|
389
389
|
"type": "KeyboardEventHandler",
|
|
390
390
|
"defaultValue": "—",
|
|
391
391
|
"appliesTo": "DateTimeField",
|
|
392
|
-
"description": "Runs before
|
|
392
|
+
"description": "Runs before DateTimeField acts, and calling preventDefault stops it acting at all. DateTimeField composes with the consumer’s handler rather than replacing it."
|
|
393
393
|
},
|
|
394
394
|
{
|
|
395
395
|
"name": "onPaste",
|
|
396
396
|
"type": "ClipboardEventHandler",
|
|
397
397
|
"defaultValue": "—",
|
|
398
398
|
"appliesTo": "DateTimeField",
|
|
399
|
-
"description": "Runs before
|
|
399
|
+
"description": "Runs before DateTimeField parses. Left alone, a pasted value is read in the locale’s shape first, ISO 8601 second, and as a duration third — so pasting +2d does what typing it does."
|
|
400
400
|
}
|
|
401
401
|
],
|
|
402
402
|
"events": [
|
|
403
403
|
{
|
|
404
404
|
"name": "onValueChange",
|
|
405
405
|
"payload": "(value: PlainDateTime | null, request: DateTimeFieldChangeRequest)",
|
|
406
|
-
"when": "Before the value moves, and cancellable. The request carries the new value, the value it replaces, the segments, which half is still missing, the reason and the originating event. It arrives when a run of typed digits ends — on the digit that fills a field, on the key that leaves it, or on blur — never on every keystroke inside one, because typing 23 into an hour passes through 2 on the way. A value that has not moved emits nothing,
|
|
406
|
+
"when": "Before the value moves, and cancellable. The request carries the new value, the value it replaces, the segments, which half is still missing, the reason and the originating event. It arrives when a run of typed digits ends — on the digit that fills a field, on the key that leaves it, or on blur — never on every keystroke inside one, because typing 23 into an hour passes through 2 on the way. A value that has not moved emits nothing, so a run that leaves the value null says nothing here and says it on the root instead. There is no crossesMidnight: the day is part of the value, so a duration that crossed one is already in the value."
|
|
407
407
|
}
|
|
408
408
|
],
|
|
409
409
|
"accessibility": [
|
|
410
410
|
"The seven fields are one role=\"group\" whose accessible name is the whole datetime in words, which is what the APG’s spin-button example names as the thing that lets a screen-reader user perceive a value without visiting every button and remembering each. Two nested groups — a date one and a time one — would make the reader hear two controls where there is one value.",
|
|
411
411
|
"Each field is a role=\"spinbutton\" carrying aria-valuenow, aria-valuemin, aria-valuemax and aria-valuetext. A month is announced by its own name rather than as a number, and the day period is why aria-valuetext is not optional at all: aria-valuenow there is 0 or 1, which is not a name in any language.",
|
|
412
|
-
"Exactly one field is in the tab sequence at a time; the arrows walk between them across the boundary between the halves, and they mirror in a right-to-left document because the
|
|
413
|
-
"The half that is missing is said in
|
|
412
|
+
"Exactly one field is in the tab sequence at a time; the arrows walk between them across the boundary between the halves, and they mirror in a right-to-left document because the arrow that points along the writing direction is the one that walks forward.",
|
|
413
|
+
"The half that is missing is said in two places rather than implied by an empty value: data-incomplete on the root and incomplete on the request. A reader who wrote a day and left is not an empty control, and a form that says \"required\" there is answering a different question.",
|
|
414
414
|
"The expression region is a real input with its own accessible name, and its preview is a polite live region: a reader is being asked to accept a value they did not write, so the resolved datetime has to be perceivable before Enter — including to a reader who cannot see it."
|
|
415
415
|
]
|
|
416
416
|
}
|
|
@@ -521,29 +521,29 @@
|
|
|
521
521
|
"title": "One pattern, both halves",
|
|
522
522
|
"note": "The same component in four locales. Not a date format beside a time format: one Intl.DateTimeFormat over both halves, which is the only way to learn the order of the two, the literal between them, and where the day period lands. pt-BR and en-US write a comma there; fr-FR and ja-JP write a bare space and nothing is drawn.",
|
|
523
523
|
"language": "tsx",
|
|
524
|
-
"source": "
|
|
525
|
-
"verdict": "
|
|
524
|
+
"source": "import { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nconst SLOT = plainDateTime(plainDate(2026, 9, 30), plainTime(14, 30));\n\nexport default function DateTimeFieldLocale() {\n return (\n <Stack gap={4}>\n <Field>\n <FieldLabel>Brazil, pt-BR</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"pt-BR\" />\n </Field>\n <Field>\n <FieldLabel>United States, en-US</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"en-US\" />\n </Field>\n <Field>\n <FieldLabel>France, fr-FR</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"fr-FR\" />\n </Field>\n <Field>\n <FieldLabel>Japan, ja-JP</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"ja-JP\" />\n </Field>\n </Stack>\n );\n}\n",
|
|
525
|
+
"verdict": "example"
|
|
526
526
|
},
|
|
527
527
|
{
|
|
528
528
|
"id": "hour-cycle",
|
|
529
529
|
"title": "Four hour cycles, not a boolean",
|
|
530
|
-
"note": "Intl resolves h11, h12, h23 and h24, and a boolean can say two of them. Ask for 12 in ja-JP and the hour runs from zero with
|
|
530
|
+
"note": "Intl resolves h11, h12, h23 and h24, and a boolean can say two of them. Ask for 12 in ja-JP and the hour runs from zero with the day period written before it, because that is what the locale does. The public axis stays 12 | 24, because that is the question a consumer asks.",
|
|
531
531
|
"language": "tsx",
|
|
532
|
-
"source": "
|
|
533
|
-
"verdict": "
|
|
532
|
+
"source": "import { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nconst SHIFT_START = plainDateTime(plainDate(2026, 10, 5), plainTime(0, 30));\n\nexport default function DateTimeFieldHourCycle() {\n return (\n <Stack gap={4}>\n <Field>\n <FieldLabel>12-hour clock, en-US</FieldLabel>\n <DateTimeField defaultValue={SHIFT_START} hourCycle={12} locale=\"en-US\" />\n </Field>\n <Field>\n <FieldLabel>12-hour clock, ja-JP</FieldLabel>\n <DateTimeField defaultValue={SHIFT_START} hourCycle={12} locale=\"ja-JP\" />\n </Field>\n <Field>\n <FieldLabel>24-hour clock, en-US</FieldLabel>\n <DateTimeField defaultValue={SHIFT_START} hourCycle={24} locale=\"en-US\" />\n </Field>\n </Stack>\n );\n}\n",
|
|
533
|
+
"verdict": "example"
|
|
534
534
|
},
|
|
535
535
|
{
|
|
536
536
|
"id": "granularity",
|
|
537
537
|
"title": "Granularity governs the time half",
|
|
538
|
-
"note": "How much of the time is drawn, and how much of it is typed. The date half is always whole
|
|
538
|
+
"note": "How much of the time is drawn, and how much of it is typed. The date half is always whole. For a date with no time, use date-field. Seconds exist only when the value has them.",
|
|
539
539
|
"language": "tsx",
|
|
540
|
-
"source": "
|
|
541
|
-
"verdict": "
|
|
540
|
+
"source": "import { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nconst SCAN = plainDateTime(plainDate(2026, 9, 30), plainTime(14, 30, 45));\n\nexport default function DateTimeFieldGranularity() {\n return (\n <Stack gap={4}>\n <Field>\n <FieldLabel>Shift starts</FieldLabel>\n <DateTimeField defaultValue={SCAN} granularity=\"hour\" hourCycle={24} locale=\"en-US\" />\n </Field>\n <Field>\n <FieldLabel>Delivery window opens</FieldLabel>\n <DateTimeField defaultValue={SCAN} granularity=\"minute\" hourCycle={24} locale=\"en-US\" />\n </Field>\n <Field>\n <FieldLabel>Pallet scanned at</FieldLabel>\n <DateTimeField defaultValue={SCAN} granularity=\"second\" hourCycle={24} locale=\"en-US\" />\n </Field>\n </Stack>\n );\n}\n",
|
|
541
|
+
"verdict": "example"
|
|
542
542
|
},
|
|
543
543
|
{
|
|
544
544
|
"id": "incomplete",
|
|
545
545
|
"title": "The half that is missing",
|
|
546
|
-
"note": "A reader who wrote a day and walked away is not an empty control. value is null
|
|
546
|
+
"note": "A reader who wrote a day and walked away is not an empty control. value is null, and the missing half is named in two places: it is on the root as data-incomplete and on the request as incomplete. The frame warns only once focus has left, because while a segment still holds it the reader is mid-entry.",
|
|
547
547
|
"language": "tsx",
|
|
548
548
|
"source": "<DateTimeField\n locale=\"pt-BR\"\n onValueChange={(value, request) => {\n if (value === null) saveDraft(request.segments, request.incomplete);\n else commit(value);\n }}\n/>;\n",
|
|
549
549
|
"verdict": "excerpt"
|
|
@@ -551,10 +551,10 @@
|
|
|
551
551
|
{
|
|
552
552
|
"id": "relative",
|
|
553
553
|
"title": "A datetime written as a duration",
|
|
554
|
-
"note": "Press +, - or = on any segment and the field takes an expression instead: +40m, 1h30, +2d, +1w, -15, 0. The anchor is always now, never the value the field holds, and what it resolves to is drawn beside it before Enter commits anything. Escape puts the segments back untouched.
|
|
554
|
+
"note": "Press +, - or = on any segment and the field takes an expression instead: +40m, 1h30, +2d, +1w, -15, 0. The anchor is always now, never the value the field holds, and what it resolves to is drawn beside it before Enter commits anything. Escape puts the segments back untouched.",
|
|
555
555
|
"language": "tsx",
|
|
556
|
-
"source": "
|
|
557
|
-
"verdict": "
|
|
556
|
+
"source": "import { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nconst NOW = plainDateTime(plainDate(2026, 9, 30), plainTime(23, 0));\n\nexport default function DateTimeFieldRelative() {\n return (\n <Stack gap={4}>\n <Field>\n <FieldLabel>Driver arrives</FieldLabel>\n <DateTimeField hourCycle={24} locale=\"en-US\" referenceDateTime={NOW} />\n <FieldDescription>\n Press + on a segment and type 90m: the preview shows the new date and 00:30 before Enter\n commits it.\n </FieldDescription>\n </Field>\n <Field>\n <FieldLabel>Cutoff for same-day dispatch</FieldLabel>\n <DateTimeField hourCycle={24} locale=\"en-US\" referenceDateTime={NOW} relative={false} />\n <FieldDescription>Relative entry is off: +, - and = do nothing.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
|
|
557
|
+
"verdict": "example"
|
|
558
558
|
},
|
|
559
559
|
{
|
|
560
560
|
"id": "rolls-day",
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
{
|
|
584
584
|
"id": "range",
|
|
585
585
|
"title": "Two pairs of bounds, at the same time",
|
|
586
|
-
"note": "min and max fence the whole value; minTime and maxTime fence every day inside the range. Both apply
|
|
586
|
+
"note": "min and max fence the whole value; minTime and maxTime fence every day inside the range. Both pairs apply at the same time. A booking flow says both: no earlier than tomorrow at 09:00, and never outside 09:00 to 18:00 on any day.",
|
|
587
587
|
"language": "tsx",
|
|
588
588
|
"source": "<DateTimeField\n max={{ date: { year: 2026, month: 12, day: 20 }, time: { hour: 12, minute: 0, second: 0 } }}\n maxTime={{ hour: 18, minute: 0, second: 0 }}\n min={{ date: { year: 2026, month: 9, day: 11 }, time: { hour: 14, minute: 0, second: 0 } }}\n minTime={{ hour: 9, minute: 0, second: 0 }}\n/>;\n",
|
|
589
589
|
"verdict": "excerpt"
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
{
|
|
600
600
|
"id": "narrow",
|
|
601
601
|
"title": "Seven fields in a narrow column",
|
|
602
|
-
"note": "The row is one line at every width and is clipped at the frame
|
|
602
|
+
"note": "The row is one line at every width and is clipped at the frame. A control two lines tall would break every row it stands in. Nothing is removed — the value is whole in the field and in what a screen reader hears — and the half the reader steps into is scrolled into view.",
|
|
603
603
|
"language": "tsx",
|
|
604
604
|
"source": "<DateTimeField granularity=\"second\" locale=\"pt-BR\" />;\n",
|
|
605
605
|
"verdict": "excerpt"
|
|
@@ -609,36 +609,36 @@
|
|
|
609
609
|
"title": "States",
|
|
610
610
|
"note": "Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its color; and incomplete is its own quieter state, one tone short of the refused value. Tab through the row to see each one answer.",
|
|
611
611
|
"language": "tsx",
|
|
612
|
-
"source": "
|
|
613
|
-
"verdict": "
|
|
612
|
+
"source": "import { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldDescription, FieldError, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nexport default function DateTimeFieldStates() {\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Delivery slot</FieldLabel>\n <DateTimeField locale=\"en-US\" required />\n <FieldDescription>Required to book the carrier.</FieldDescription>\n </Field>\n <Field>\n <FieldLabel>Invoice issued</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 9, 30), plainTime(17, 45))}\n invalid\n locale=\"en-US\"\n />\n <FieldError>The invoice is dated after the due date.</FieldError>\n </Field>\n <Field>\n <FieldLabel>Order placed</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 9, 9), plainTime(8, 12))}\n locale=\"en-US\"\n readOnly\n />\n <FieldDescription>Set when the order was placed.</FieldDescription>\n </Field>\n <Field>\n <FieldLabel>Return pickup</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 10, 9), plainTime(10, 0))}\n disabled\n locale=\"en-US\"\n />\n <FieldDescription>Returns open once the order is delivered.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
|
|
613
|
+
"verdict": "example"
|
|
614
614
|
},
|
|
615
615
|
{
|
|
616
616
|
"id": "clear",
|
|
617
617
|
"title": "Clearing both halves",
|
|
618
|
-
"note": "One button, and it empties the whole value — there is no control that clears one side, because half
|
|
618
|
+
"note": "One button, and it empties the whole value — there is no control that clears one side, because a datetime with one half missing is not a value the field holds. It appears only when something is written and the control is editable, and focus goes back to the first segment so the reader can start again without reaching for the mouse.",
|
|
619
619
|
"language": "tsx",
|
|
620
|
-
"source": "<DateTimeField clearable locale=\"pt-BR\" messages={{ clear: '
|
|
620
|
+
"source": "<DateTimeField clearable locale=\"pt-BR\" messages={{ clear: 'Clear pickup slot' }} />;\n",
|
|
621
621
|
"verdict": "excerpt"
|
|
622
622
|
},
|
|
623
623
|
{
|
|
624
624
|
"id": "adornments",
|
|
625
625
|
"title": "Adornments",
|
|
626
|
-
"note": "The two slots are named for the reading direction rather than for a side, so the same markup puts the mark before the value in both directions. The end slot is where datetime-picker puts its trigger — which is how the picker composes
|
|
626
|
+
"note": "The two slots are named for the reading direction rather than for a side, so the same markup puts the mark before the value in both directions. The end slot is where datetime-picker puts its trigger — which is how the picker composes DateTimeField without redrawing any of it.",
|
|
627
627
|
"language": "tsx",
|
|
628
|
-
"source": "
|
|
629
|
-
"verdict": "
|
|
628
|
+
"source": "import { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Glyph, Icon } from '@slotted/react/icon';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nexport default function DateTimeFieldAdornments() {\n return (\n <Stack gap={4}>\n <Field>\n <FieldLabel>Cutoff</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 9, 30), plainTime(17, 0))}\n locale=\"en-US\"\n start={\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n }\n />\n </Field>\n <Field>\n <FieldLabel>Pickup window opens</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 10, 5), plainTime(9, 0))}\n end=\"Central time\"\n locale=\"en-US\"\n />\n </Field>\n <Field>\n <FieldLabel>Statement closes</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 10, 31), plainTime(23, 59))}\n end=\"UTC-5\"\n locale=\"en-US\"\n start={\n <Icon>\n <Glyph name=\"calendar\" />\n </Icon>\n }\n />\n </Field>\n </Stack>\n );\n}\n",
|
|
629
|
+
"verdict": "example"
|
|
630
630
|
},
|
|
631
631
|
{
|
|
632
632
|
"id": "forms",
|
|
633
633
|
"title": "In a form",
|
|
634
634
|
"note": "The value reaches a plain form post as YYYY-MM-DDTHH:mm:ss, which is input[type=datetime-local]’s own value format — no adapter, no serializer, nothing reading the control. The field around it supplies the label, the description and the error, and the control takes its size, its disabled state and its validity from that field unless it states its own.",
|
|
635
635
|
"language": "tsx",
|
|
636
|
-
"source": "<form action=\"/
|
|
636
|
+
"source": "<form action=\"/appointments\" method=\"post\">\n <Field invalid>\n <FieldLabel>Appointment start</FieldLabel>\n <DateTimeField name=\"start\" required />\n <FieldError>Choose a time within business hours.</FieldError>\n </Field>\n</form>;\n",
|
|
637
637
|
"verdict": "excerpt"
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
640
|
"id": "content",
|
|
641
|
-
"title": "Content the
|
|
641
|
+
"title": "Content the field does not choose",
|
|
642
642
|
"note": "A long day-period name, a right-to-left document, and a locale whose numbering system is not Latin. Each half is its own bidi run, so the digits read left to right inside a mirrored page — the alternative was a right-to-left capture reading 30:14, a time nobody wrote.",
|
|
643
643
|
"language": "tsx",
|
|
644
644
|
"source": "<>\n <DateTimeField hourCycle={12} locale=\"es-MX\" />\n <DateTimeField locale=\"ar-EG\" />\n <DateTimeField granularity=\"second\" locale=\"ja-JP\" />\n</>;\n",
|
|
@@ -659,6 +659,54 @@
|
|
|
659
659
|
"language": "tsx",
|
|
660
660
|
"source": "<DateTimeField\n locale=\"pt-BR\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') submit();\n }}\n/>;\n",
|
|
661
661
|
"verdict": "excerpt"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"id": "appearance",
|
|
665
|
+
"title": "appearance.tsx",
|
|
666
|
+
"note": null,
|
|
667
|
+
"language": "tsx",
|
|
668
|
+
"source": "import { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nconst SLOT = plainDateTime(plainDate(2026, 9, 30), plainTime(14, 30));\n\nexport default function DateTimeFieldAppearance() {\n return (\n <Stack gap={4}>\n <Field>\n <FieldLabel>Small</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"en-US\" size=\"sm\" />\n </Field>\n <Field>\n <FieldLabel>Medium</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"en-US\" size=\"md\" />\n </Field>\n <Field>\n <FieldLabel>Large</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"en-US\" size=\"lg\" />\n </Field>\n <Field>\n <FieldLabel>Outline</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"en-US\" variant=\"outline\" />\n </Field>\n <Field>\n <FieldLabel>Subtle</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"en-US\" variant=\"subtle\" />\n </Field>\n <Field>\n <FieldLabel>Plain</FieldLabel>\n <DateTimeField defaultValue={SLOT} locale=\"en-US\" variant=\"plain\" />\n </Field>\n </Stack>\n );\n}\n",
|
|
669
|
+
"verdict": "example"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"id": "basic",
|
|
673
|
+
"title": "basic.tsx",
|
|
674
|
+
"note": null,
|
|
675
|
+
"language": "tsx",
|
|
676
|
+
"source": "import { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nexport default function DateTimeFieldBasic() {\n return (\n <Field>\n <FieldLabel>Pickup slot</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 9, 30), plainTime(14, 30))}\n locale=\"en-US\"\n />\n <FieldDescription>The carrier arrives at this date and time.</FieldDescription>\n </Field>\n );\n}\n",
|
|
677
|
+
"verdict": "example"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"id": "controlled",
|
|
681
|
+
"title": "controlled.tsx",
|
|
682
|
+
"note": null,
|
|
683
|
+
"language": "tsx",
|
|
684
|
+
"source": "import { useState } from 'react';\nimport { Button } from '@slotted/react/button';\nimport { DateTimeField, type DateTimeFieldChangeRequest } from '@slotted/react/datetime-field';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport {\n plainDate,\n plainDateTime,\n plainTime,\n toISODateTime,\n type DateTimeHalf,\n type PlainDateTime,\n} from '@slotted/core/date';\n\nconst MORNING = plainDateTime(plainDate(2026, 10, 1), plainTime(9, 0));\nconst AFTERNOON = plainDateTime(plainDate(2026, 10, 2), plainTime(16, 0));\n\nexport default function DateTimeFieldControlled() {\n const [dispatch, setDispatch] = useState<PlainDateTime | null>(MORNING);\n const [missing, setMissing] = useState<DateTimeHalf | null>(null);\n\n const summary = describe(dispatch, missing);\n\n function handleChange(value: PlainDateTime | null, request: DateTimeFieldChangeRequest) {\n setDispatch(value);\n setMissing(request.incomplete);\n }\n\n function select(value: PlainDateTime | null) {\n setDispatch(value);\n setMissing(null);\n }\n\n return (\n <Stack gap={4}>\n <Field>\n <FieldLabel>Dispatch</FieldLabel>\n <DateTimeField locale=\"en-US\" onValueChange={handleChange} value={dispatch} />\n <FieldDescription>{summary}</FieldDescription>\n </Field>\n <Inline gap={2}>\n <Button onClick={() => select(MORNING)} size=\"sm\" tone=\"secondary\" variant=\"outline\">\n Thursday 09:00\n </Button>\n <Button onClick={() => select(AFTERNOON)} size=\"sm\" tone=\"secondary\" variant=\"outline\">\n Friday 16:00\n </Button>\n <Button onClick={() => select(null)} size=\"sm\" tone=\"secondary\" variant=\"ghost\">\n No dispatch\n </Button>\n </Inline>\n </Stack>\n );\n}\n\nfunction describe(value: PlainDateTime | null, missing: DateTimeHalf | null): string {\n if (value !== null) return `Dispatch set for ${toISODateTime(value)}.`;\n if (missing !== null) return `The ${missing} is missing, so there is no dispatch yet.`;\n\n return 'No dispatch scheduled.';\n}\n",
|
|
685
|
+
"verdict": "example"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"id": "defaults",
|
|
689
|
+
"title": "defaults.tsx",
|
|
690
|
+
"note": null,
|
|
691
|
+
"language": "tsx",
|
|
692
|
+
"source": "import { DateTimeField, DateTimeFieldDefaultsProvider } from '@slotted/react/datetime-field';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nexport default function DateTimeFieldDefaultsExample() {\n return (\n <DateTimeFieldDefaultsProvider hourCycle={24} size=\"sm\" variant=\"subtle\">\n <Stack gap={4}>\n <Field>\n <FieldLabel>Opened</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 8, 3), plainTime(8, 15))}\n locale=\"en-US\"\n />\n </Field>\n <Field>\n <FieldLabel>Last updated</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 9, 18), plainTime(16, 40))}\n locale=\"en-US\"\n />\n </Field>\n <Field>\n <FieldLabel>Closes, stated on the control</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 12, 1), plainTime(17, 0))}\n hourCycle={12}\n locale=\"en-US\"\n size=\"lg\"\n variant=\"outline\"\n />\n </Field>\n </Stack>\n </DateTimeFieldDefaultsProvider>\n );\n}\n",
|
|
693
|
+
"verdict": "example"
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"id": "form",
|
|
697
|
+
"title": "form.tsx",
|
|
698
|
+
"note": null,
|
|
699
|
+
"language": "tsx",
|
|
700
|
+
"source": "import { useState } from 'react';\nimport type { SubmitEvent } from 'react';\nimport { Button } from '@slotted/react/button';\nimport { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nexport default function DateTimeFieldForm() {\n const [sent, setSent] = useState<string | null>(null);\n\n function handleSubmit(event: SubmitEvent<HTMLFormElement>) {\n event.preventDefault();\n const data = new FormData(event.currentTarget);\n setSent(`pickup=${String(data.get('pickup'))}`);\n }\n\n return (\n <form onSubmit={handleSubmit}>\n <Stack gap={4}>\n <Field>\n <FieldLabel>Pickup slot</FieldLabel>\n <DateTimeField\n clearable\n defaultValue={plainDateTime(plainDate(2026, 9, 30), plainTime(14, 30))}\n locale=\"en-US\"\n name=\"pickup\"\n />\n </Field>\n <Inline align=\"center\" gap={3}>\n <Button type=\"submit\">Book pickup</Button>\n {sent !== null && (\n <Text size=\"sm\" tone=\"muted\">\n Sent {sent}\n </Text>\n )}\n </Inline>\n </Stack>\n </form>\n );\n}\n",
|
|
701
|
+
"verdict": "example"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"id": "limits",
|
|
705
|
+
"title": "limits.tsx",
|
|
706
|
+
"note": null,
|
|
707
|
+
"language": "tsx",
|
|
708
|
+
"source": "import { DateTimeField } from '@slotted/react/datetime-field';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport {\n dayOfWeek,\n plainDate,\n plainDateTime,\n plainTime,\n type PlainDate,\n type PlainTime,\n} from '@slotted/core/date';\n\nconst EARLIEST = plainDateTime(plainDate(2026, 10, 5), plainTime(9, 0));\nconst LATEST = plainDateTime(plainDate(2026, 10, 30), plainTime(17, 0));\nconst OPENS = plainTime(9, 0);\nconst CLOSES = plainTime(17, 0);\n\nconst isSunday = (date: PlainDate) => dayOfWeek(date) === 0;\nconst isLunchHour = (time: PlainTime) => time.hour === 12;\n\nexport default function DateTimeFieldLimits() {\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Pickup slot</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 10, 12), plainTime(18, 30))}\n hourCycle={24}\n locale=\"en-US\"\n max={LATEST}\n maxTime={CLOSES}\n min={EARLIEST}\n minTime={OPENS}\n />\n <FieldDescription>\n Pickups run from October 5 to October 30, between 09:00 and 17:00 on every day.\n </FieldDescription>\n </Field>\n <Field>\n <FieldLabel>Delivery slot</FieldLabel>\n <DateTimeField\n defaultValue={plainDateTime(plainDate(2026, 10, 13), plainTime(14, 0))}\n hourCycle={24}\n isDateUnavailable={isSunday}\n isTimeUnavailable={isLunchHour}\n locale=\"en-US\"\n />\n <FieldDescription>No deliveries on Sundays or between 12:00 and 12:59.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
|
|
709
|
+
"verdict": "example"
|
|
662
710
|
}
|
|
663
711
|
]
|
|
664
712
|
}
|
|
@@ -11,14 +11,25 @@ import { DateTimeField, DateTimeFieldDefaultsProvider } from '@slotted/react';
|
|
|
11
11
|
|
|
12
12
|
## Minimal example
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Example
|
|
15
15
|
|
|
16
16
|
```tsx
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
import { DateTimeField } from '@slotted/react/datetime-field';
|
|
18
|
+
import { Field, FieldDescription, FieldLabel } from '@slotted/react/field';
|
|
19
|
+
import { plainDate, plainDateTime, plainTime } from '@slotted/core/date';
|
|
20
|
+
|
|
21
|
+
export default function DateTimeFieldBasic() {
|
|
22
|
+
return (
|
|
23
|
+
<Field>
|
|
24
|
+
<FieldLabel>Pickup slot</FieldLabel>
|
|
25
|
+
<DateTimeField
|
|
26
|
+
defaultValue={plainDateTime(plainDate(2026, 9, 30), plainTime(14, 30))}
|
|
27
|
+
locale="en-US"
|
|
28
|
+
/>
|
|
29
|
+
<FieldDescription>The carrier arrives at this date and time.</FieldDescription>
|
|
30
|
+
</Field>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
22
33
|
```
|
|
23
34
|
|
|
24
35
|
## Anatomy
|
|
@@ -63,7 +74,7 @@ Excerpt — not a complete module
|
|
|
63
74
|
| `variant` | `'outline' \| 'subtle' \| 'plain'` | outline | DateTimeField | How much frame the control shows. |
|
|
64
75
|
| `disabled` | `boolean` | — | DateTimeField | Unstated rather than false, so an unset value defers to the surrounding field. |
|
|
65
76
|
| `readOnly` | `boolean` | — | DateTimeField | Focusable, readable and copyable, and never mistakable for disabled. |
|
|
66
|
-
| `invalid` | `boolean` | — | DateTimeField | Beside the validity
|
|
77
|
+
| `invalid` | `boolean` | — | DateTimeField | Beside the validity DateTimeField computes: a value outside either pair of bounds, or refused by either predicate, is invalid whatever this says. |
|
|
67
78
|
| `required` | `boolean` | — | DateTimeField | Reaches the group as aria-required. |
|
|
68
79
|
| `clearable` | `boolean` | false | DateTimeField | Draws a button that empties both halves and returns focus to the first segment. |
|
|
69
80
|
| `relative` | `boolean` | true | DateTimeField | Whether +, - and = open the duration expression. Every value it can write is reachable by typing and by the arrows. |
|
|
@@ -74,14 +85,14 @@ Excerpt — not a complete module
|
|
|
74
85
|
| `DateTimeFieldDefaultsProvider` | `component` | — | application | Sets timeZone, hourCycle, granularity, calendar, firstDayOfWeek, yearPivot, relative, size and variant once for everything under it. A control that states any of them itself still wins. |
|
|
75
86
|
| `render` | `(props: DateTimeFieldRootProps) => ReactNode` | — | DateTimeField | Substitutes the element the frame renders. The props carry the ref: a substituted frame has to hand its element back, because focus() reaches the segments through it. |
|
|
76
87
|
| `ref` | `Ref<DateTimeFieldHandle>` | — | DateTimeField | focus() puts the reader on the first segment, clear() empties both halves with the clear reason, and activeField says which of the seven holds focus. |
|
|
77
|
-
| `onKeyDown` | `KeyboardEventHandler` | — | DateTimeField | Runs before
|
|
78
|
-
| `onPaste` | `ClipboardEventHandler` | — | DateTimeField | Runs before
|
|
88
|
+
| `onKeyDown` | `KeyboardEventHandler` | — | DateTimeField | Runs before DateTimeField acts, and calling preventDefault stops it acting at all. DateTimeField composes with the consumer’s handler rather than replacing it. |
|
|
89
|
+
| `onPaste` | `ClipboardEventHandler` | — | DateTimeField | Runs before DateTimeField parses. Left alone, a pasted value is read in the locale’s shape first, ISO 8601 second, and as a duration third — so pasting +2d does what typing it does. |
|
|
79
90
|
|
|
80
91
|
## Events
|
|
81
92
|
|
|
82
93
|
| Name | Payload | When |
|
|
83
94
|
| --- | --- | --- |
|
|
84
|
-
| `onValueChange` | `(value: PlainDateTime \| null, request: DateTimeFieldChangeRequest)` | Before the value moves, and cancellable. The request carries the new value, the value it replaces, the segments, which half is still missing, the reason and the originating event. It arrives when a run of typed digits ends — on the digit that fills a field, on the key that leaves it, or on blur — never on every keystroke inside one, because typing 23 into an hour passes through 2 on the way. A value that has not moved emits nothing,
|
|
95
|
+
| `onValueChange` | `(value: PlainDateTime \| null, request: DateTimeFieldChangeRequest)` | Before the value moves, and cancellable. The request carries the new value, the value it replaces, the segments, which half is still missing, the reason and the originating event. It arrives when a run of typed digits ends — on the digit that fills a field, on the key that leaves it, or on blur — never on every keystroke inside one, because typing 23 into an hour passes through 2 on the way. A value that has not moved emits nothing, so a run that leaves the value null says nothing here and says it on the root instead. There is no crossesMidnight: the day is part of the value, so a duration that crossed one is already in the value. |
|
|
85
96
|
|
|
86
97
|
## Axes and defaults
|
|
87
98
|
|
|
@@ -97,8 +108,8 @@ Excerpt — not a complete module
|
|
|
97
108
|
|
|
98
109
|
- The seven fields are one role="group" whose accessible name is the whole datetime in words, which is what the APG’s spin-button example names as the thing that lets a screen-reader user perceive a value without visiting every button and remembering each. Two nested groups — a date one and a time one — would make the reader hear two controls where there is one value.
|
|
99
110
|
- Each field is a role="spinbutton" carrying aria-valuenow, aria-valuemin, aria-valuemax and aria-valuetext. A month is announced by its own name rather than as a number, and the day period is why aria-valuetext is not optional at all: aria-valuenow there is 0 or 1, which is not a name in any language.
|
|
100
|
-
- Exactly one field is in the tab sequence at a time; the arrows walk between them across the boundary between the halves, and they mirror in a right-to-left document because the
|
|
101
|
-
- The half that is missing is said in
|
|
111
|
+
- Exactly one field is in the tab sequence at a time; the arrows walk between them across the boundary between the halves, and they mirror in a right-to-left document because the arrow that points along the writing direction is the one that walks forward.
|
|
112
|
+
- The half that is missing is said in two places rather than implied by an empty value: data-incomplete on the root and incomplete on the request. A reader who wrote a day and left is not an empty control, and a form that says "required" there is answering a different question.
|
|
102
113
|
- The expression region is a real input with its own accessible name, and its preview is a polite live region: a reader is being asked to accept a value they did not write, so the resolved datetime has to be perceivable before Enter — including to a reader who cannot see it.
|
|
103
114
|
|
|
104
115
|
## Tokens
|
|
@@ -107,260 +118,4 @@ Excerpt — not a complete module
|
|
|
107
118
|
|
|
108
119
|
## Examples
|
|
109
120
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
The same component in four locales. Not a date format beside a time format: one Intl.DateTimeFormat over both halves, which is the only way to learn the order of the two, the literal between them, and where the day period lands. pt-BR and en-US write a comma there; fr-FR and ja-JP write a bare space and nothing is drawn.
|
|
113
|
-
|
|
114
|
-
Excerpt — not a complete module
|
|
115
|
-
|
|
116
|
-
```tsx
|
|
117
|
-
<>
|
|
118
|
-
<DateTimeField locale="pt-BR" />
|
|
119
|
-
<DateTimeField locale="en-US" />
|
|
120
|
-
<DateTimeField locale="ja-JP" />
|
|
121
|
-
<DateTimeField locale="fr-FR" />
|
|
122
|
-
</>;
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
### Four hour cycles, not a boolean
|
|
126
|
-
|
|
127
|
-
Intl resolves h11, h12, h23 and h24, and a boolean can say two of them. Ask for 12 in ja-JP and the hour runs from zero with 午前 written before it, because that is what the locale does. The public axis stays 12 | 24, because that is the question a consumer asks.
|
|
128
|
-
|
|
129
|
-
Excerpt — not a complete module
|
|
130
|
-
|
|
131
|
-
```tsx
|
|
132
|
-
<>
|
|
133
|
-
<DateTimeField hourCycle={12} locale="en-US" />
|
|
134
|
-
<DateTimeField hourCycle={12} locale="ja-JP" />
|
|
135
|
-
<DateTimeField hourCycle={24} locale="en-US" />
|
|
136
|
-
</>;
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Granularity governs the time half
|
|
140
|
-
|
|
141
|
-
How much of the time is drawn, and how much of it is typed. The date half is always whole: a datetime without a day is a date, and date-field is that family. Seconds exist only when the value has them.
|
|
142
|
-
|
|
143
|
-
Excerpt — not a complete module
|
|
144
|
-
|
|
145
|
-
```tsx
|
|
146
|
-
<>
|
|
147
|
-
<DateTimeField granularity="hour" locale="pt-BR" />
|
|
148
|
-
<DateTimeField granularity="minute" locale="pt-BR" />
|
|
149
|
-
<DateTimeField granularity="second" locale="pt-BR" />
|
|
150
|
-
</>;
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### The half that is missing
|
|
154
|
-
|
|
155
|
-
A reader who wrote a day and walked away is not an empty control. value is null — which every surveyed implementation reports — and which half is missing is what none of them can say: it is on the root as data-incomplete, on the request as incomplete, and in Angular as a dateTimeIncomplete validation error. The frame warns only once focus has left, because while a segment still holds it the reader is mid-entry.
|
|
156
|
-
|
|
157
|
-
Excerpt — not a complete module
|
|
158
|
-
|
|
159
|
-
```tsx
|
|
160
|
-
<DateTimeField
|
|
161
|
-
locale="pt-BR"
|
|
162
|
-
onValueChange={(value, request) => {
|
|
163
|
-
if (value === null) saveDraft(request.segments, request.incomplete);
|
|
164
|
-
else commit(value);
|
|
165
|
-
}}
|
|
166
|
-
/>;
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
### A datetime written as a duration
|
|
170
|
-
|
|
171
|
-
Press +, - or = on any segment and the field takes an expression instead: +40m, 1h30, +2d, +1w, -15, 0. The anchor is always now, never the value the field holds, and what it resolves to is drawn beside it before Enter commits anything. Escape puts the segments back untouched. No surveyed implementation parses a duration at all.
|
|
172
|
-
|
|
173
|
-
Excerpt — not a complete module
|
|
174
|
-
|
|
175
|
-
```tsx
|
|
176
|
-
<DateTimeField
|
|
177
|
-
locale="pt-BR"
|
|
178
|
-
referenceDateTime={{
|
|
179
|
-
date: { year: 2026, month: 9, day: 10 },
|
|
180
|
-
time: { hour: 14, minute: 40, second: 0 },
|
|
181
|
-
}}
|
|
182
|
-
/>;
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### A duration that moves the day
|
|
186
|
-
|
|
187
|
-
This is where time-field’s crossesMidnight flag is spent. There, +90m at 23:00 can only raise a flag, because a PlainTime has no day beside it; here the day exists, so +2d simply moves it and the preview writes the new date out and lifts it from the time beside it. The request carries no crossing at all, because the crossing is already the value.
|
|
188
|
-
|
|
189
|
-
Excerpt — not a complete module
|
|
190
|
-
|
|
191
|
-
```tsx
|
|
192
|
-
<DateTimeField
|
|
193
|
-
locale="pt-BR"
|
|
194
|
-
referenceDateTime={{
|
|
195
|
-
date: { year: 2026, month: 9, day: 30 },
|
|
196
|
-
time: { hour: 23, minute: 0, second: 0 },
|
|
197
|
-
}}
|
|
198
|
-
/>;
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### Size
|
|
202
|
-
|
|
203
|
-
The three steps a field can be, each in a row of its own so the height and the type move together. A control inside a field takes the field’s step, so a form cannot end up with a small field holding a medium control on one row.
|
|
204
|
-
|
|
205
|
-
Excerpt — not a complete module
|
|
206
|
-
|
|
207
|
-
```tsx
|
|
208
|
-
<>
|
|
209
|
-
<DateTimeField size="sm" />
|
|
210
|
-
<DateTimeField size="md" />
|
|
211
|
-
<DateTimeField size="lg" />
|
|
212
|
-
</>;
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
### Variant
|
|
216
|
-
|
|
217
|
-
How much frame the control shows. outline takes the ground it is on, subtle sinks into the page, and plain shows nothing until it is used — which is what a dense table of appointments needs, where a frame on every row would be a grid of boxes.
|
|
218
|
-
|
|
219
|
-
Excerpt — not a complete module
|
|
220
|
-
|
|
221
|
-
```tsx
|
|
222
|
-
<>
|
|
223
|
-
<DateTimeField variant="outline" />
|
|
224
|
-
<DateTimeField variant="subtle" />
|
|
225
|
-
<DateTimeField variant="plain" />
|
|
226
|
-
</>;
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### Two pairs of bounds, at the same time
|
|
230
|
-
|
|
231
|
-
min and max fence the whole value; minTime and maxTime fence every day inside the range. Both apply — which MUI’s own validation page records that it cannot do: "you cannot use maxDateTime and maxTime together". A booking flow says both: no earlier than tomorrow at 09:00, and never outside 09:00 to 18:00 on any day.
|
|
232
|
-
|
|
233
|
-
Excerpt — not a complete module
|
|
234
|
-
|
|
235
|
-
```tsx
|
|
236
|
-
<DateTimeField
|
|
237
|
-
max={{ date: { year: 2026, month: 12, day: 20 }, time: { hour: 12, minute: 0, second: 0 } }}
|
|
238
|
-
maxTime={{ hour: 18, minute: 0, second: 0 }}
|
|
239
|
-
min={{ date: { year: 2026, month: 9, day: 11 }, time: { hour: 14, minute: 0, second: 0 } }}
|
|
240
|
-
minTime={{ hour: 9, minute: 0, second: 0 }}
|
|
241
|
-
/>;
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### Two predicates, because a grid asks a different question
|
|
245
|
-
|
|
246
|
-
isDateUnavailable answers a whole day — a holiday, a closed clinic — and isTimeUnavailable answers one time on one day, taking the date so a Saturday can close earlier. A day-level answer cannot be derived from a datetime-level predicate without probing every step of that day, and a calendar needs one answer per cell.
|
|
247
|
-
|
|
248
|
-
Excerpt — not a complete module
|
|
249
|
-
|
|
250
|
-
```tsx
|
|
251
|
-
<DateTimeField
|
|
252
|
-
isDateUnavailable={(date) => dayOfWeek(date) === 0}
|
|
253
|
-
isTimeUnavailable={(time, date) => date.day !== 24 && time.hour === 12}
|
|
254
|
-
locale="pt-BR"
|
|
255
|
-
/>;
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Seven fields in a narrow column
|
|
259
|
-
|
|
260
|
-
The row is one line at every width and is clipped at the frame, the way a text input clips a value longer than itself: a control two lines tall broke every row it stood in. Nothing is removed — the value is whole in the field and in what a screen reader hears — and the half the reader steps into is scrolled into view.
|
|
261
|
-
|
|
262
|
-
Excerpt — not a complete module
|
|
263
|
-
|
|
264
|
-
```tsx
|
|
265
|
-
<DateTimeField granularity="second" locale="pt-BR" />;
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
### States
|
|
269
|
-
|
|
270
|
-
Read-only stays focusable and copyable and never looks disabled; disabled answers no key and no pointer; invalid keeps its focus ring and retargets its color; and incomplete is its own quieter state, one tone short of the refused value. Tab through the row to see each one answer.
|
|
271
|
-
|
|
272
|
-
Excerpt — not a complete module
|
|
273
|
-
|
|
274
|
-
```tsx
|
|
275
|
-
<>
|
|
276
|
-
<DateTimeField readOnly />
|
|
277
|
-
<DateTimeField disabled />
|
|
278
|
-
<DateTimeField required />
|
|
279
|
-
<DateTimeField invalid />
|
|
280
|
-
</>;
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
### Clearing both halves
|
|
284
|
-
|
|
285
|
-
One button, and it empties the whole value — there is no control that clears one side, because half a value is not a value this family holds. It appears only when something is written and the control is editable, and focus goes back to the first segment so the reader can start again without reaching for the mouse.
|
|
286
|
-
|
|
287
|
-
Excerpt — not a complete module
|
|
288
|
-
|
|
289
|
-
```tsx
|
|
290
|
-
<DateTimeField clearable locale="pt-BR" messages={{ clear: 'Limpar' }} />;
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
### Adornments
|
|
294
|
-
|
|
295
|
-
The two slots are named for the reading direction rather than for a side, so the same markup puts the mark before the value in both directions. The end slot is where datetime-picker puts its trigger — which is how the picker composes this family without redrawing any of it.
|
|
296
|
-
|
|
297
|
-
Excerpt — not a complete module
|
|
298
|
-
|
|
299
|
-
```tsx
|
|
300
|
-
<DateTimeField
|
|
301
|
-
end={<span>UTC−3</span>}
|
|
302
|
-
locale="pt-BR"
|
|
303
|
-
start={
|
|
304
|
-
<Icon>
|
|
305
|
-
<CalendarClock aria-hidden />
|
|
306
|
-
</Icon>
|
|
307
|
-
}
|
|
308
|
-
/>;
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
### In a form
|
|
312
|
-
|
|
313
|
-
The value reaches a plain form post as YYYY-MM-DDTHH:mm:ss, which is input[type=datetime-local]’s own value format — no adapter, no serializer, nothing reading the control. The field around it supplies the label, the description and the error, and the control takes its size, its disabled state and its validity from that field unless it states its own.
|
|
314
|
-
|
|
315
|
-
Excerpt — not a complete module
|
|
316
|
-
|
|
317
|
-
```tsx
|
|
318
|
-
<form action="/agendamentos" method="post">
|
|
319
|
-
<Field invalid>
|
|
320
|
-
<FieldLabel>Appointment start</FieldLabel>
|
|
321
|
-
<DateTimeField name="start" required />
|
|
322
|
-
<FieldError>Choose a time within business hours.</FieldError>
|
|
323
|
-
</Field>
|
|
324
|
-
</form>;
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
### Content the family did not choose
|
|
328
|
-
|
|
329
|
-
A long day-period name, a right-to-left document, and a locale whose numbering system is not Latin. Each half is its own bidi run, so the digits read left to right inside a mirrored page — the alternative was a right-to-left capture reading 30:14, a time nobody wrote.
|
|
330
|
-
|
|
331
|
-
Excerpt — not a complete module
|
|
332
|
-
|
|
333
|
-
```tsx
|
|
334
|
-
<>
|
|
335
|
-
<DateTimeField hourCycle={12} locale="es-MX" />
|
|
336
|
-
<DateTimeField locale="ar-EG" />
|
|
337
|
-
<DateTimeField granularity="second" locale="ja-JP" />
|
|
338
|
-
</>;
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
### Composition and escape hatches
|
|
342
|
-
|
|
343
|
-
The provider sets the clock and the zone once for the whole application, SlottedProvider the language; render substitutes the frame’s element and hands the ref back; and the handle reaches focus(), clear() and the segment the reader is on. A control that states any default itself still wins over the provider.
|
|
344
|
-
|
|
345
|
-
Excerpt — not a complete module
|
|
346
|
-
|
|
347
|
-
```tsx
|
|
348
|
-
<DateTimeFieldDefaultsProvider hourCycle={24} timeZone="America/Sao_Paulo">
|
|
349
|
-
<DateTimeField ref={handle} />
|
|
350
|
-
</DateTimeFieldDefaultsProvider>;
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
### The keyboard
|
|
354
|
-
|
|
355
|
-
Every key the spin-button pattern lists, and three it does not. The arrows across walk the whole row — from the year into the hour — which two nested fields could not do. A key the field acts on is stopped rather than only defaulted, because a div with role="spinbutton" is invisible to every "is the target editable" guard an application writes.
|
|
356
|
-
|
|
357
|
-
Excerpt — not a complete module
|
|
358
|
-
|
|
359
|
-
```tsx
|
|
360
|
-
<DateTimeField
|
|
361
|
-
locale="pt-BR"
|
|
362
|
-
onKeyDown={(event) => {
|
|
363
|
-
if (event.key === 'Enter') submit();
|
|
364
|
-
}}
|
|
365
|
-
/>;
|
|
366
|
-
```
|
|
121
|
+
See [datetime-field.examples.md](./datetime-field.examples.md).
|