@slotted/react 0.1.0-beta.39 → 0.1.0-beta.40

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.
Files changed (394) hide show
  1. package/dist/alert-CV8wKS-N.js +179 -0
  2. package/dist/alert.js +1 -1
  3. package/dist/{avatar-DLWElrgg.js → avatar-fHRva5zn.js} +1 -1
  4. package/dist/{avatar-group-DshHqe8B.js → avatar-group-bJaZE1_C.js} +1 -1
  5. package/dist/avatar-group.js +1 -1
  6. package/dist/avatar.js +1 -1
  7. package/dist/calendar-D3QZDlm0.js +598 -0
  8. package/dist/calendar.js +1 -1
  9. package/dist/clock-DzkQa57Q.js +290 -0
  10. package/dist/clock.js +2 -0
  11. package/dist/{dashboard-grid-B6jxBz4j.js → dashboard-grid-DAY_CjCW.js} +1 -1
  12. package/dist/dashboard-grid.js +1 -1
  13. package/dist/{data-grid-Cx0ZOf_e.js → data-grid-B7UuUvBH.js} +42 -37
  14. package/dist/data-grid.js +1 -1
  15. package/dist/{data-list-Cb2sNA6I.js → data-list-CyEq7M2D.js} +1 -1
  16. package/dist/data-list.js +1 -1
  17. package/dist/date-picker-DMcMFW_N.js +344 -0
  18. package/dist/date-picker.js +3 -2
  19. package/dist/date-range-picker-D9zo93NE.js +543 -0
  20. package/dist/date-range-picker.js +2 -2
  21. package/dist/datetime-picker-lOXZbAx_.js +462 -0
  22. package/dist/datetime-picker.js +2 -2
  23. package/dist/datetime-range-picker-DU5ctZbm.js +641 -0
  24. package/dist/datetime-range-picker.js +2 -2
  25. package/dist/divider-DUUPCIh4.js +35 -0
  26. package/dist/divider.js +1 -1
  27. package/dist/docs/alert.examples.md +500 -0
  28. package/dist/docs/alert.json +85 -37
  29. package/dist/docs/alert.md +37 -189
  30. package/dist/docs/aspect-ratio.json +40 -16
  31. package/dist/docs/aspect-ratio.md +204 -29
  32. package/dist/docs/avatar.json +125 -29
  33. package/dist/docs/avatar.md +374 -31
  34. package/dist/docs/badge.json +119 -23
  35. package/dist/docs/badge.md +436 -27
  36. package/dist/docs/calendar.json +53 -5
  37. package/dist/docs/calendar.md +7 -2
  38. package/dist/docs/card.json +98 -10
  39. package/dist/docs/card.md +468 -26
  40. package/dist/docs/clock.json +405 -0
  41. package/dist/docs/clock.md +189 -0
  42. package/dist/docs/container.json +54 -6
  43. package/dist/docs/container.md +247 -17
  44. package/dist/docs/date-picker.examples.md +143 -169
  45. package/dist/docs/date-picker.json +178 -223
  46. package/dist/docs/date-picker.md +44 -50
  47. package/dist/docs/date-range-picker.examples.md +169 -187
  48. package/dist/docs/date-range-picker.json +206 -337
  49. package/dist/docs/date-range-picker.md +52 -67
  50. package/dist/docs/datetime-picker.examples.md +75 -210
  51. package/dist/docs/datetime-picker.json +183 -410
  52. package/dist/docs/datetime-picker.md +50 -72
  53. package/dist/docs/datetime-range-picker.json +225 -502
  54. package/dist/docs/datetime-range-picker.md +250 -101
  55. package/dist/docs/divider.json +71 -7
  56. package/dist/docs/divider.md +281 -13
  57. package/dist/docs/grid.json +76 -12
  58. package/dist/docs/grid.md +376 -18
  59. package/dist/docs/index.md +1 -0
  60. package/dist/docs/inline-message.json +87 -40
  61. package/dist/docs/inline-message.md +314 -71
  62. package/dist/docs/inline.json +65 -9
  63. package/dist/docs/inline.md +276 -13
  64. package/dist/docs/kbd.json +76 -36
  65. package/dist/docs/kbd.md +346 -63
  66. package/dist/docs/link.json +65 -25
  67. package/dist/docs/link.md +317 -60
  68. package/dist/docs/progress-indicator.examples.md +522 -0
  69. package/dist/docs/progress-indicator.json +51 -27
  70. package/dist/docs/progress-indicator.md +13 -238
  71. package/dist/docs/result-state.examples.md +752 -0
  72. package/dist/docs/result-state.json +95 -47
  73. package/dist/docs/result-state.md +45 -228
  74. package/dist/docs/skeleton.json +70 -38
  75. package/dist/docs/skeleton.md +393 -71
  76. package/dist/docs/stack.json +57 -9
  77. package/dist/docs/stack.md +225 -12
  78. package/dist/docs/table.examples.md +6 -10
  79. package/dist/docs/table.json +5 -5
  80. package/dist/docs/table.md +1 -1
  81. package/dist/docs/tag.examples.md +503 -0
  82. package/dist/docs/tag.json +128 -32
  83. package/dist/docs/tag.md +27 -138
  84. package/dist/docs/time-picker.json +162 -300
  85. package/dist/docs/time-picker.md +100 -154
  86. package/dist/docs/time-range-picker.json +203 -465
  87. package/dist/docs/time-range-picker.md +125 -173
  88. package/dist/docs/toast.examples.md +690 -0
  89. package/dist/docs/toast.json +119 -71
  90. package/dist/docs/toast.md +44 -212
  91. package/dist/docs/tree.examples.md +2008 -0
  92. package/dist/docs/tree.json +283 -106
  93. package/dist/docs/tree.md +96 -328
  94. package/dist/docs/visually-hidden.json +38 -6
  95. package/dist/docs/visually-hidden.md +148 -11
  96. package/dist/{entity-picker-CwfA1wr_.js → entity-picker-BwJX0gNJ.js} +1 -1
  97. package/dist/entity-picker.js +1 -1
  98. package/dist/{filter-bar-b8bRNPs9.js → filter-bar-BQZFgV0A.js} +5 -3
  99. package/dist/filter-bar.js +1 -1
  100. package/dist/{import-export-center-C_oNc-RM.js → import-export-center-DWSEOV5Z.js} +3 -3
  101. package/dist/import-export-center.js +1 -1
  102. package/dist/index.js +101 -99
  103. package/dist/{markdown-x59MHBAa.js → markdown-7wOBMXTl.js} +1 -1
  104. package/dist/markdown.js +1 -1
  105. package/dist/picker-frame-_9ZqQOjf.js +43 -0
  106. package/dist/picker-group-CrNRKUxz.js +33 -0
  107. package/dist/picker-head-C_Z0tQGq.js +69 -0
  108. package/dist/picker-jump-BcTRIJs6.js +70 -0
  109. package/dist/picker-range-head-B4tsDOc5.js +100 -0
  110. package/dist/picker-step-MgBwF9g1.js +26 -0
  111. package/dist/read-title-id-DQZVWlMt.js +14 -0
  112. package/dist/result-state-Ct9AB01a.js +123 -0
  113. package/dist/result-state.js +1 -1
  114. package/dist/styles/app-shell.css +1 -1
  115. package/dist/styles/aspect-ratio.css +1 -1
  116. package/dist/styles/attachment.css +1 -1
  117. package/dist/styles/badge.css +1 -1
  118. package/dist/styles/calendar.css +1 -1
  119. package/dist/styles/cascader.css +1 -1
  120. package/dist/styles/chart.css +1 -1
  121. package/dist/styles/clock.css +2 -0
  122. package/dist/styles/code-block.css +1 -1
  123. package/dist/styles/command-palette.css +1 -1
  124. package/dist/styles/dashboard-grid.css +1 -1
  125. package/dist/styles/data-grid.css +14 -10
  126. package/dist/styles/data-list.css +1 -1
  127. package/dist/styles/date-picker.css +4 -2
  128. package/dist/styles/date-range-picker.css +4 -2
  129. package/dist/styles/datetime-picker.css +8 -2
  130. package/dist/styles/datetime-range-picker.css +6 -2
  131. package/dist/styles/detail-panel.css +3 -3
  132. package/dist/styles/entity-picker.css +1 -1
  133. package/dist/styles/event-calendar.css +1 -1
  134. package/dist/styles/filter-bar.css +11 -7
  135. package/dist/styles/grid.css +1 -1
  136. package/dist/styles/image.css +1 -1
  137. package/dist/styles/import-export-center.css +15 -11
  138. package/dist/styles/index.css +21 -17
  139. package/dist/styles/inline.css +1 -1
  140. package/dist/styles/loading-overlay.css +1 -1
  141. package/dist/styles/markdown.css +1 -1
  142. package/dist/styles/multi-select.css +1 -1
  143. package/dist/styles/notification-center.css +1 -1
  144. package/dist/styles/page-header.css +2 -2
  145. package/dist/styles/progress-indicator.css +1 -1
  146. package/dist/styles/side-navigation.css +2 -2
  147. package/dist/styles/skeleton.css +1 -1
  148. package/dist/styles/stack.css +1 -1
  149. package/dist/styles/stat-card.css +1 -1
  150. package/dist/styles/table-of-contents.css +1 -1
  151. package/dist/styles/table.css +14 -10
  152. package/dist/styles/time-picker.css +5 -1
  153. package/dist/styles/time-range-picker.css +5 -1
  154. package/dist/styles/toast.css +1 -1
  155. package/dist/styles/top-navigation.css +1 -1
  156. package/dist/styles/tree.css +1 -1
  157. package/dist/styles/upload.css +1 -1
  158. package/dist/styles/wizard.css +1 -1
  159. package/dist/styles.css +1 -1
  160. package/dist/{table-DqwYPHGS.js → table-MGb3iZY_.js} +11 -6
  161. package/dist/table.js +1 -1
  162. package/dist/time-picker-z4GSRuha.js +313 -0
  163. package/dist/time-picker.js +2 -2
  164. package/dist/time-range-picker-ar40oPcf.js +563 -0
  165. package/dist/time-range-picker.js +2 -2
  166. package/dist/{toast-DHDVXIew.js → toast-Cg28GkqX.js} +121 -117
  167. package/dist/toast.js +1 -1
  168. package/dist/tree-CytfCFT-.js +874 -0
  169. package/dist/tree.js +1 -1
  170. package/dist/types/alert/alert-parts.d.ts +1 -1
  171. package/dist/types/alert/alert-parts.d.ts.map +1 -1
  172. package/dist/types/alert/alert.d.ts.map +1 -1
  173. package/dist/types/alert/alert.types.d.ts +1 -1
  174. package/dist/types/alert/alert.types.d.ts.map +1 -1
  175. package/dist/types/avatar/avatar.d.ts.map +1 -1
  176. package/dist/types/badge/badge.types.d.ts +1 -1
  177. package/dist/types/badge/badge.types.d.ts.map +1 -1
  178. package/dist/types/calendar/calendar-day-cell.d.ts +3 -1
  179. package/dist/types/calendar/calendar-day-cell.d.ts.map +1 -1
  180. package/dist/types/calendar/calendar-header.d.ts +9 -5
  181. package/dist/types/calendar/calendar-header.d.ts.map +1 -1
  182. package/dist/types/calendar/calendar-month-table.d.ts +8 -3
  183. package/dist/types/calendar/calendar-month-table.d.ts.map +1 -1
  184. package/dist/types/calendar/calendar.d.ts +1 -1
  185. package/dist/types/calendar/calendar.d.ts.map +1 -1
  186. package/dist/types/calendar/calendar.types.d.ts +12 -1
  187. package/dist/types/calendar/calendar.types.d.ts.map +1 -1
  188. package/dist/types/clock/clock-body.d.ts +16 -0
  189. package/dist/types/clock/clock-body.d.ts.map +1 -0
  190. package/dist/types/clock/clock-demo.d.ts +15 -0
  191. package/dist/types/clock/clock-demo.d.ts.map +1 -0
  192. package/dist/types/clock/clock-groups.d.ts +15 -0
  193. package/dist/types/clock/clock-groups.d.ts.map +1 -0
  194. package/dist/types/clock/clock-option.d.ts +14 -0
  195. package/dist/types/clock/clock-option.d.ts.map +1 -0
  196. package/dist/types/clock/clock-units.d.ts +13 -0
  197. package/dist/types/clock/clock-units.d.ts.map +1 -0
  198. package/dist/types/clock/clock.d.ts +11 -0
  199. package/dist/types/clock/clock.d.ts.map +1 -0
  200. package/dist/types/clock/clock.types.d.ts +66 -0
  201. package/dist/types/clock/clock.types.d.ts.map +1 -0
  202. package/dist/types/clock/index.d.ts +3 -0
  203. package/dist/types/clock/index.d.ts.map +1 -0
  204. package/dist/types/clock/use-clock-grid.d.ts +28 -0
  205. package/dist/types/clock/use-clock-grid.d.ts.map +1 -0
  206. package/dist/types/clock/use-clock-view.d.ts +16 -0
  207. package/dist/types/clock/use-clock-view.d.ts.map +1 -0
  208. package/dist/types/data-grid/data-grid-filter.d.ts.map +1 -1
  209. package/dist/types/date-picker/date-panel.d.ts +32 -0
  210. package/dist/types/date-picker/date-panel.d.ts.map +1 -0
  211. package/dist/types/date-picker/date-picker-demo.d.ts +8 -15
  212. package/dist/types/date-picker/date-picker-demo.d.ts.map +1 -1
  213. package/dist/types/date-picker/date-picker-panel.d.ts +18 -0
  214. package/dist/types/date-picker/date-picker-panel.d.ts.map +1 -0
  215. package/dist/types/date-picker/date-picker.d.ts +7 -13
  216. package/dist/types/date-picker/date-picker.d.ts.map +1 -1
  217. package/dist/types/date-picker/date-picker.types.d.ts +15 -16
  218. package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
  219. package/dist/types/date-picker/index.d.ts +1 -1
  220. package/dist/types/date-picker/index.d.ts.map +1 -1
  221. package/dist/types/date-picker/month-picker.d.ts +12 -0
  222. package/dist/types/date-picker/month-picker.d.ts.map +1 -0
  223. package/dist/types/date-picker/use-date-panel.d.ts +50 -0
  224. package/dist/types/date-picker/use-date-panel.d.ts.map +1 -0
  225. package/dist/types/date-picker/use-date-picker.d.ts +24 -0
  226. package/dist/types/date-picker/use-date-picker.d.ts.map +1 -0
  227. package/dist/types/date-range-picker/date-range-control.d.ts +34 -0
  228. package/dist/types/date-range-picker/date-range-control.d.ts.map +1 -0
  229. package/dist/types/date-range-picker/date-range-panel.d.ts +24 -0
  230. package/dist/types/date-range-picker/date-range-panel.d.ts.map +1 -0
  231. package/dist/types/date-range-picker/date-range-picker-demo.d.ts +8 -15
  232. package/dist/types/date-range-picker/date-range-picker-demo.d.ts.map +1 -1
  233. package/dist/types/date-range-picker/date-range-picker.d.ts +11 -21
  234. package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
  235. package/dist/types/date-range-picker/date-range-picker.types.d.ts +12 -26
  236. package/dist/types/date-range-picker/date-range-picker.types.d.ts.map +1 -1
  237. package/dist/types/date-range-picker/index.d.ts +2 -2
  238. package/dist/types/date-range-picker/index.d.ts.map +1 -1
  239. package/dist/types/date-range-picker/range-words.d.ts +30 -0
  240. package/dist/types/date-range-picker/range-words.d.ts.map +1 -0
  241. package/dist/types/date-range-picker/use-date-range-picker.d.ts +32 -0
  242. package/dist/types/date-range-picker/use-date-range-picker.d.ts.map +1 -0
  243. package/dist/types/date-range-picker/use-range-draft.d.ts +39 -0
  244. package/dist/types/date-range-picker/use-range-draft.d.ts.map +1 -0
  245. package/dist/types/date-range-picker/use-range-panel.d.ts +71 -0
  246. package/dist/types/date-range-picker/use-range-panel.d.ts.map +1 -0
  247. package/dist/types/datetime-picker/datetime-picker-defaults.d.ts +3 -9
  248. package/dist/types/datetime-picker/datetime-picker-defaults.d.ts.map +1 -1
  249. package/dist/types/datetime-picker/datetime-picker-demo.d.ts +8 -31
  250. package/dist/types/datetime-picker/datetime-picker-demo.d.ts.map +1 -1
  251. package/dist/types/datetime-picker/datetime-picker-panel.d.ts +23 -0
  252. package/dist/types/datetime-picker/datetime-picker-panel.d.ts.map +1 -0
  253. package/dist/types/datetime-picker/datetime-picker.d.ts +8 -19
  254. package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
  255. package/dist/types/datetime-picker/datetime-picker.types.d.ts +25 -66
  256. package/dist/types/datetime-picker/datetime-picker.types.d.ts.map +1 -1
  257. package/dist/types/datetime-picker/index.d.ts +2 -2
  258. package/dist/types/datetime-picker/index.d.ts.map +1 -1
  259. package/dist/types/datetime-picker/use-datetime-panel.d.ts +69 -0
  260. package/dist/types/datetime-picker/use-datetime-panel.d.ts.map +1 -0
  261. package/dist/types/datetime-picker/use-datetime-picker.d.ts +22 -0
  262. package/dist/types/datetime-picker/use-datetime-picker.d.ts.map +1 -0
  263. package/dist/types/datetime-range-picker/datetime-range-half.d.ts +20 -0
  264. package/dist/types/datetime-range-picker/datetime-range-half.d.ts.map +1 -0
  265. package/dist/types/datetime-range-picker/datetime-range-panel.d.ts +30 -0
  266. package/dist/types/datetime-range-picker/datetime-range-panel.d.ts.map +1 -0
  267. package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts +5 -7
  268. package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts.map +1 -1
  269. package/dist/types/datetime-range-picker/datetime-range-picker-demo.d.ts +8 -24
  270. package/dist/types/datetime-range-picker/datetime-range-picker-demo.d.ts.map +1 -1
  271. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts +12 -24
  272. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
  273. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts +31 -66
  274. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts.map +1 -1
  275. package/dist/types/datetime-range-picker/datetime-range-words.d.ts +40 -0
  276. package/dist/types/datetime-range-picker/datetime-range-words.d.ts.map +1 -0
  277. package/dist/types/datetime-range-picker/index.d.ts +4 -3
  278. package/dist/types/datetime-range-picker/index.d.ts.map +1 -1
  279. package/dist/types/datetime-range-picker/use-datetime-range-draft.d.ts +43 -0
  280. package/dist/types/datetime-range-picker/use-datetime-range-draft.d.ts.map +1 -0
  281. package/dist/types/datetime-range-picker/use-datetime-range-panel.d.ts +82 -0
  282. package/dist/types/datetime-range-picker/use-datetime-range-panel.d.ts.map +1 -0
  283. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts +28 -0
  284. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts.map +1 -0
  285. package/dist/types/divider/divider.d.ts +1 -1
  286. package/dist/types/divider/divider.d.ts.map +1 -1
  287. package/dist/types/filter-bar/filter-bar-rules.d.ts.map +1 -1
  288. package/dist/types/index.d.ts +1 -0
  289. package/dist/types/index.d.ts.map +1 -1
  290. package/dist/types/picker-panel/picker-footer.d.ts +17 -0
  291. package/dist/types/picker-panel/picker-footer.d.ts.map +1 -0
  292. package/dist/types/picker-panel/picker-frame.d.ts +21 -0
  293. package/dist/types/picker-panel/picker-frame.d.ts.map +1 -0
  294. package/dist/types/picker-panel/picker-group.d.ts +18 -0
  295. package/dist/types/picker-panel/picker-group.d.ts.map +1 -0
  296. package/dist/types/picker-panel/picker-head.d.ts +27 -0
  297. package/dist/types/picker-panel/picker-head.d.ts.map +1 -0
  298. package/dist/types/picker-panel/picker-jump.d.ts +18 -0
  299. package/dist/types/picker-panel/picker-jump.d.ts.map +1 -0
  300. package/dist/types/picker-panel/picker-layer.d.ts +14 -0
  301. package/dist/types/picker-panel/picker-layer.d.ts.map +1 -0
  302. package/dist/types/picker-panel/picker-panel.d.ts +17 -0
  303. package/dist/types/picker-panel/picker-panel.d.ts.map +1 -0
  304. package/dist/types/picker-panel/picker-rail.d.ts +17 -0
  305. package/dist/types/picker-panel/picker-rail.d.ts.map +1 -0
  306. package/dist/types/picker-panel/picker-range-head.d.ts +37 -0
  307. package/dist/types/picker-panel/picker-range-head.d.ts.map +1 -0
  308. package/dist/types/picker-panel/picker-ruler.d.ts +14 -0
  309. package/dist/types/picker-panel/picker-ruler.d.ts.map +1 -0
  310. package/dist/types/picker-panel/picker-step.d.ts +11 -0
  311. package/dist/types/picker-panel/picker-step.d.ts.map +1 -0
  312. package/dist/types/picker-panel/picker-trigger.d.ts +16 -0
  313. package/dist/types/picker-panel/picker-trigger.d.ts.map +1 -0
  314. package/dist/types/picker-panel/use-media-query.d.ts +3 -0
  315. package/dist/types/picker-panel/use-media-query.d.ts.map +1 -0
  316. package/dist/types/picker-panel/use-picker-draft.d.ts +18 -0
  317. package/dist/types/picker-panel/use-picker-draft.d.ts.map +1 -0
  318. package/dist/types/picker-panel/use-picker-layer.d.ts +31 -0
  319. package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -0
  320. package/dist/types/picker-panel/use-picker-open.d.ts +14 -0
  321. package/dist/types/picker-panel/use-picker-open.d.ts.map +1 -0
  322. package/dist/types/picker-panel/use-picker-position.d.ts +12 -0
  323. package/dist/types/picker-panel/use-picker-position.d.ts.map +1 -0
  324. package/dist/types/picker-panel/use-picker-value.d.ts +20 -0
  325. package/dist/types/picker-panel/use-picker-value.d.ts.map +1 -0
  326. package/dist/types/result-state/result-state.d.ts +32 -2
  327. package/dist/types/result-state/result-state.d.ts.map +1 -1
  328. package/dist/types/table/table-filter.d.ts.map +1 -1
  329. package/dist/types/table/table.types.d.ts +16 -14
  330. package/dist/types/table/table.types.d.ts.map +1 -1
  331. package/dist/types/tag/tag.types.d.ts +1 -1
  332. package/dist/types/tag/tag.types.d.ts.map +1 -1
  333. package/dist/types/time-picker/index.d.ts +2 -2
  334. package/dist/types/time-picker/index.d.ts.map +1 -1
  335. package/dist/types/time-picker/time-picker-defaults.d.ts +0 -7
  336. package/dist/types/time-picker/time-picker-defaults.d.ts.map +1 -1
  337. package/dist/types/time-picker/time-picker-demo.d.ts +15 -0
  338. package/dist/types/time-picker/time-picker-demo.d.ts.map +1 -0
  339. package/dist/types/time-picker/time-picker-panel.d.ts +17 -0
  340. package/dist/types/time-picker/time-picker-panel.d.ts.map +1 -0
  341. package/dist/types/time-picker/time-picker.d.ts +6 -14
  342. package/dist/types/time-picker/time-picker.d.ts.map +1 -1
  343. package/dist/types/time-picker/time-picker.types.d.ts +21 -45
  344. package/dist/types/time-picker/time-picker.types.d.ts.map +1 -1
  345. package/dist/types/time-picker/use-time-panel.d.ts +42 -0
  346. package/dist/types/time-picker/use-time-panel.d.ts.map +1 -0
  347. package/dist/types/time-picker/use-time-picker.d.ts +27 -0
  348. package/dist/types/time-picker/use-time-picker.d.ts.map +1 -0
  349. package/dist/types/time-range-picker/index.d.ts +4 -3
  350. package/dist/types/time-range-picker/index.d.ts.map +1 -1
  351. package/dist/types/time-range-picker/time-range-panel.d.ts +23 -0
  352. package/dist/types/time-range-picker/time-range-panel.d.ts.map +1 -0
  353. package/dist/types/time-range-picker/time-range-picker-defaults.d.ts +2 -4
  354. package/dist/types/time-range-picker/time-range-picker-defaults.d.ts.map +1 -1
  355. package/dist/types/time-range-picker/time-range-picker-demo.d.ts +8 -24
  356. package/dist/types/time-range-picker/time-range-picker-demo.d.ts.map +1 -1
  357. package/dist/types/time-range-picker/time-range-picker.d.ts +12 -28
  358. package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
  359. package/dist/types/time-range-picker/time-range-picker.types.d.ts +24 -64
  360. package/dist/types/time-range-picker/time-range-picker.types.d.ts.map +1 -1
  361. package/dist/types/time-range-picker/time-range-words.d.ts +37 -0
  362. package/dist/types/time-range-picker/time-range-words.d.ts.map +1 -0
  363. package/dist/types/time-range-picker/use-time-range-panel.d.ts +68 -0
  364. package/dist/types/time-range-picker/use-time-range-panel.d.ts.map +1 -0
  365. package/dist/types/time-range-picker/use-time-range-picker.d.ts +25 -0
  366. package/dist/types/time-range-picker/use-time-range-picker.d.ts.map +1 -0
  367. package/dist/types/title-id/read-title-id.d.ts +15 -0
  368. package/dist/types/title-id/read-title-id.d.ts.map +1 -0
  369. package/dist/types/toast/toast.d.ts.map +1 -1
  370. package/dist/types/tree/index.d.ts +1 -1
  371. package/dist/types/tree/index.d.ts.map +1 -1
  372. package/dist/types/tree/tree-parts.d.ts +2 -0
  373. package/dist/types/tree/tree-parts.d.ts.map +1 -1
  374. package/dist/types/tree/tree.d.ts +1 -1
  375. package/dist/types/tree/tree.d.ts.map +1 -1
  376. package/dist/types/tree/tree.types.d.ts +15 -5
  377. package/dist/types/tree/tree.types.d.ts.map +1 -1
  378. package/dist/use-date-picker-DL8tRXji.js +63 -0
  379. package/dist/use-picker-draft-Bw8VFaj0.js +377 -0
  380. package/dist/{wizard-CL6u1aJb.js → wizard-BokOrtwq.js} +1 -1
  381. package/dist/wizard.js +1 -1
  382. package/package.json +10 -6
  383. package/dist/alert-Bi9s1cjV.js +0 -174
  384. package/dist/calendar-CX0wN5Bh.js +0 -564
  385. package/dist/date-picker-CLXTtQGe.js +0 -337
  386. package/dist/date-range-picker-Br0neGyT.js +0 -522
  387. package/dist/datetime-picker-CR-H_BLu.js +0 -683
  388. package/dist/datetime-range-picker-BLo58OIk.js +0 -1050
  389. package/dist/divider-ryFeK0Pi.js +0 -35
  390. package/dist/docs/datetime-range-picker.examples.md +0 -219
  391. package/dist/result-state-BMYhelu1.js +0 -128
  392. package/dist/time-picker-B4-GsO24.js +0 -436
  393. package/dist/time-range-picker-DVOWN8PF.js +0 -800
  394. package/dist/tree-D-y-0TrL.js +0 -794
@@ -25,19 +25,6 @@
25
25
  "top",
26
26
  "top-end"
27
27
  ],
28
- "openTo": [
29
- "date",
30
- "time"
31
- ],
32
- "closeOnSelect": [
33
- "auto",
34
- "always",
35
- "never"
36
- ],
37
- "unavailableOptions": [
38
- "disable",
39
- "hide"
40
- ],
41
28
  "hourCycle": [
42
29
  12,
43
30
  24
@@ -49,6 +36,10 @@
49
36
  ],
50
37
  "calendar": [
51
38
  "gregory"
39
+ ],
40
+ "confirm": [
41
+ "on",
42
+ "off"
52
43
  ]
53
44
  },
54
45
  "members": {
@@ -58,19 +49,15 @@
58
49
  "size": "md",
59
50
  "variant": "outline",
60
51
  "placement": "bottom-start",
61
- "openTo": "date",
62
- "closeOnSelect": "auto",
52
+ "confirm": true,
63
53
  "step": 900,
64
- "unavailableOptions": "disable",
65
54
  "granularity": "minute",
66
55
  "calendar": "gregory",
67
- "clearable": false,
68
- "maxOptions": 1440
56
+ "clearable": false
69
57
  },
70
58
  "capabilities": [
71
59
  "value",
72
60
  "open",
73
- "current",
74
61
  "placement",
75
62
  "appearance",
76
63
  "size",
@@ -90,28 +77,12 @@
90
77
  "invalid",
91
78
  "readonly",
92
79
  "required",
93
- "open",
94
- "selected",
95
- "current"
80
+ "open"
96
81
  ],
97
82
  "parts": [
98
83
  "root",
99
84
  "control",
100
- "trigger",
101
- "positioner",
102
- "content",
103
- "grip",
104
- "panels",
105
- "date-panel",
106
- "time-panel",
107
- "head",
108
- "head-value",
109
- "now",
110
- "presets",
111
- "list",
112
- "option",
113
- "empty",
114
- "footer"
85
+ "trigger"
115
86
  ]
116
87
  }
117
88
  },
@@ -125,103 +96,19 @@
125
96
  "part": "root",
126
97
  "element": "div, or the element render returns",
127
98
  "required": true,
128
- "purpose": "The outer box, carrying data-ui=\"datetime-picker\", the size, variant and granularity axes, data-open and the state attributes. It has no role: the control inside holds the field and the trigger, and the panel is a layer of its own."
99
+ "purpose": "The frame of the picker. Carries data-ui=\"datetime-picker\", data-granularity, data-size, data-variant, data-open and the state attributes."
129
100
  },
130
101
  {
131
102
  "part": "control",
132
103
  "element": "div",
133
104
  "required": true,
134
- "purpose": "The box the panel is positioned against, and where Alt+ArrowDown is handled. It draws no frame: the datetime field inside it draws its own border, focus ring and states."
105
+ "purpose": "The box the panel hangs from, around the field and the trigger."
135
106
  },
136
107
  {
137
108
  "part": "trigger",
138
109
  "element": "button",
139
110
  "required": true,
140
- "purpose": "The calendar button, in the end slot of the datetime field. It has aria-haspopup=\"dialog\", aria-expanded while the panel is open, and an accessible name that carries the chosen date and time, because focus returns to it when the panel closes. It draws the calendar icon, the icon input[type=datetime-local] draws for the same control."
141
- },
142
- {
143
- "part": "positioner",
144
- "element": "div, portalled to the end of the document",
145
- "required": false,
146
- "purpose": "The layer the panel stands on. It carries data-ui=\"datetime-picker\" again, because a stylesheet cannot reach a subtree outside the root, plus data-placement for the side the positioner chose and data-presentation (popover or sheet)."
147
- },
148
- {
149
- "part": "content",
150
- "element": "div with role=\"dialog\"",
151
- "required": false,
152
- "purpose": "The painted panel, with the same accessible name as the trigger. It holds a grid and a listbox, the arrangement the APG Date Picker Combobox example uses for its popup. data-open-to names the surface that takes focus on open."
153
- },
154
- {
155
- "part": "grip",
156
- "element": "span, aria-hidden",
157
- "required": false,
158
- "purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
159
- },
160
- {
161
- "part": "head",
162
- "element": "div",
163
- "required": false,
164
- "purpose": "The band above both surfaces, with a rule under it: the value so far, your shortcuts and the Now button. It takes the panel’s width and does not widen it, so a row of shortcuts wraps instead of stretching the calendar."
165
- },
166
- {
167
- "part": "head-value",
168
- "element": "span",
169
- "required": false,
170
- "purpose": "The value in words. While no value is set, it shows the day the calendar has focused and a placeholder for the time, so the reader knows which day the times in the list belong to."
171
- },
172
- {
173
- "part": "now",
174
- "element": "button",
175
- "required": false,
176
- "purpose": "Writes the current date and time, read from the clock in timeZone when pressed. It draws the clock icon. It does the same as the relative expression 0 in the field, for a reader who does not know the expression."
177
- },
178
- {
179
- "part": "presets",
180
- "element": "div",
181
- "required": false,
182
- "purpose": "A row in the head, beside Now, for your own shortcuts, drawn when presets is set. The Datetime Picker ships no list of shortcuts: the labels and times belong to your product."
183
- },
184
- {
185
- "part": "panels",
186
- "element": "div",
187
- "required": false,
188
- "purpose": "The two surfaces, as a wrapping flex row: side by side when the panel has room for both, stacked with the calendar first when it does not. Nothing is hidden at any width."
189
- },
190
- {
191
- "part": "date-panel",
192
- "element": "div",
193
- "required": false,
194
- "purpose": "Holds the Calendar with its grid, its month and year views and its keyboard. It never shrinks below one month, so the time panel is the one that wraps."
195
- },
196
- {
197
- "part": "time-panel",
198
- "element": "div",
199
- "required": false,
200
- "purpose": "Holds the list of times. Beside the calendar it is a narrow column; on a line of its own it takes the whole line."
201
- },
202
- {
203
- "part": "list",
204
- "element": "div with role=\"listbox\"",
205
- "required": false,
206
- "purpose": "The times available on the day the reader is on, with an accessible name that names that day. It is the only part of the panel that scrolls. data-truncated is set when the configuration asks for more rows than maxOptions."
207
- },
208
- {
209
- "part": "option",
210
- "element": "div with role=\"option\"",
211
- "required": false,
212
- "purpose": "One time. It carries aria-selected, data-selected on the chosen time, data-current on the highlighted time and aria-disabled with data-disabled on a refused time. It shows the time only: the calendar shows the day."
213
- },
214
- {
215
- "part": "empty",
216
- "element": "div",
217
- "required": false,
218
- "purpose": "Drawn in place of the list when the day the reader is on offers no time: an unavailable day, a window the bounds leave empty, or a day on which isTimeUnavailable refuses every time. It says so in a sentence, the empty message."
219
- },
220
- {
221
- "part": "footer",
222
- "element": "div",
223
- "required": false,
224
- "purpose": "A row under both surfaces for your own actions, drawn when footer is set. The panel closes on the press that completes the value, so a confirm button is optional; add one here for a flow that asks for it."
111
+ "purpose": "The button that opens the panel. Its name carries the moment written."
225
112
  }
226
113
  ],
227
114
  "api": [
@@ -230,280 +117,238 @@
230
117
  "type": "PlainDateTime | null",
231
118
  "defaultValue": "—",
232
119
  "appliesTo": "DateTimePicker",
233
- "description": "The value, when you control it. Update it from onValueChange."
120
+ "description": "The moment held. Present means the consumer owns it."
234
121
  },
235
122
  {
236
123
  "name": "defaultValue",
237
124
  "type": "PlainDateTime | null",
238
- "defaultValue": "—",
239
- "appliesTo": "DateTimePicker",
240
- "description": "The starting value when the Datetime Picker holds its own state."
241
- },
242
- {
243
- "name": "open",
244
- "type": "boolean",
245
- "defaultValue": "—",
246
- "appliesTo": "DateTimePicker",
247
- "description": "Whether the panel is open, when you control it. Update it from onOpenChange."
248
- },
249
- {
250
- "name": "defaultOpen",
251
- "type": "boolean",
252
- "defaultValue": "false",
253
- "appliesTo": "DateTimePicker",
254
- "description": "Whether the panel starts open. A panel that starts open does not take focus."
255
- },
256
- {
257
- "name": "highlighted",
258
- "type": "DateTimePickerHighlight",
259
- "defaultValue": "—",
260
- "appliesTo": "DateTimePicker",
261
- "description": "Where the reader is in the panel, as { date, time }: the day the calendar has focused and the time the list has highlighted. Set it to control the highlight; update it from onHighlightedChange."
262
- },
263
- {
264
- "name": "defaultHighlighted",
265
- "type": "DateTimePickerHighlight",
266
- "defaultValue": "—",
125
+ "defaultValue": "null",
267
126
  "appliesTo": "DateTimePicker",
268
- "description": "Where the highlight starts. Unset, the panel opens on the day of the value, or of referenceDateTime, and on the time nearest to it."
127
+ "description": "What it starts from, and returns to on a form reset. Read once."
269
128
  },
270
129
  {
271
130
  "name": "min",
272
131
  "type": "PlainDateTime",
273
132
  "defaultValue": "—",
274
133
  "appliesTo": "DateTimePicker",
275
- "description": "The earliest whole value. The calendar disables the days before its date, and on its date the list starts at its time."
134
+ "description": "The earliest accepted moment."
276
135
  },
277
136
  {
278
137
  "name": "max",
279
138
  "type": "PlainDateTime",
280
139
  "defaultValue": "—",
281
140
  "appliesTo": "DateTimePicker",
282
- "description": "The latest whole value. The calendar disables the days after its date, and on its date the list stops at its time."
141
+ "description": "The latest accepted moment."
283
142
  },
284
143
  {
285
144
  "name": "minTime",
286
145
  "type": "PlainTime",
287
146
  "defaultValue": "—",
288
147
  "appliesTo": "DateTimePicker",
289
- "description": "The earliest time on every day inside the range. It applies together with min."
148
+ "description": "The earliest time of every day inside the range."
290
149
  },
291
150
  {
292
151
  "name": "maxTime",
293
152
  "type": "PlainTime",
294
153
  "defaultValue": "—",
295
154
  "appliesTo": "DateTimePicker",
296
- "description": "The latest time on every day inside the range. It applies together with max."
155
+ "description": "The latest time of every day inside the range."
297
156
  },
298
157
  {
299
158
  "name": "isDateUnavailable",
300
159
  "type": "(date: PlainDate) => boolean",
301
160
  "defaultValue": "—",
302
161
  "appliesTo": "DateTimePicker",
303
- "description": "Returns true for a day the reader cannot choose. The calendar disables it, its list is empty, and a typed value on it marks the Datetime Picker invalid."
162
+ "description": "Refuses particular dates."
304
163
  },
305
164
  {
306
165
  "name": "isTimeUnavailable",
307
166
  "type": "(time: PlainTime, date: PlainDate) => boolean",
308
167
  "defaultValue": "—",
309
168
  "appliesTo": "DateTimePicker",
310
- "description": "Returns true for a time the reader cannot choose on a given day, so the rule can differ by day. A typed value it refuses marks the Datetime Picker invalid."
169
+ "description": "Refuses particular times of a day."
311
170
  },
312
171
  {
313
172
  "name": "step",
314
173
  "type": "number",
315
174
  "defaultValue": "900",
316
175
  "appliesTo": "DateTimePicker",
317
- "description": "Seconds between two times in the list, counted from the earliest time of the day, or from midnight. It applies to the list only; the field accepts any time."
176
+ "description": "Seconds between two offered times, counted from the first of the day."
318
177
  },
319
178
  {
320
179
  "name": "options",
321
180
  "type": "readonly PlainTime[]",
322
181
  "defaultValue": "—",
323
182
  "appliesTo": "DateTimePicker",
324
- "description": "The times the list offers, in the order given, in place of step. Bounds and predicates still refuse times in it."
183
+ "description": "The times there are, stated rather than stepped."
325
184
  },
326
185
  {
327
- "name": "maxOptions",
328
- "type": "number",
329
- "defaultValue": "1440",
186
+ "name": "presets",
187
+ "type": "readonly PickerPreset<PlainDateTime>[]",
188
+ "defaultValue": "—",
330
189
  "appliesTo": "DateTimePicker",
331
- "description": "The most rows the list draws, a whole day at a one-minute step. Past it, the list is cut, carries data-truncated, and the panel’s accessible description says the remaining times are typed into the field."
190
+ "description": "The consumer’s own shortcuts, after Now."
332
191
  },
333
192
  {
334
- "name": "unavailableOptions",
335
- "type": "'disable' | 'hide'",
336
- "defaultValue": "disable",
193
+ "name": "offsets",
194
+ "type": "readonly number[]",
195
+ "defaultValue": "[3600, 14400, 86400]",
337
196
  "appliesTo": "DateTimePicker",
338
- "description": "What the list does with a refused time: shows it disabled, or leaves it out."
197
+ "description": "Steps from now, in seconds. An empty list draws none."
339
198
  },
340
199
  {
341
- "name": "locale",
342
- "type": "string",
343
- "defaultValue": "the provider’s locale, then en-US",
200
+ "name": "confirm",
201
+ "type": "boolean",
202
+ "defaultValue": "true",
344
203
  "appliesTo": "DateTimePicker",
345
- "description": "A BCP 47 tag. It sets the segments, the clock, the calendar’s month and weekday names, the times in the list and the date and time in words."
204
+ "description": "Whether the panel keeps a draft until Apply."
346
205
  },
347
206
  {
348
- "name": "timeZone",
349
- "type": "string",
350
- "defaultValue": "the browser’s time zone",
207
+ "name": "granularity",
208
+ "type": "'hour' | 'minute' | 'second'",
209
+ "defaultValue": "minute",
351
210
  "appliesTo": "DateTimePicker",
352
- "description": "The IANA time zone that decides today in the calendar and what Now and the default referenceDateTime read from the clock. The value itself has no time zone."
211
+ "description": "The finest unit written."
353
212
  },
354
213
  {
355
214
  "name": "hourCycle",
356
215
  "type": "12 | 24",
357
216
  "defaultValue": "the locale’s",
358
217
  "appliesTo": "DateTimePicker",
359
- "description": "A 12-hour clock with a day period, or a 24-hour clock, in the field and the list."
218
+ "description": "The clock the moment is written on."
360
219
  },
361
220
  {
362
- "name": "granularity",
363
- "type": "'hour' | 'minute' | 'second'",
364
- "defaultValue": "minute",
221
+ "name": "referenceDateTime",
222
+ "type": "PlainDateTime",
223
+ "defaultValue": "now",
365
224
  "appliesTo": "DateTimePicker",
366
- "description": "The smallest unit the field writes."
225
+ "description": "The moment it is: what an empty field steps from, and what the panel counts distances and steps from."
367
226
  },
368
227
  {
369
- "name": "calendar",
370
- "type": "'gregory'",
371
- "defaultValue": "gregory",
228
+ "name": "relative",
229
+ "type": "boolean",
230
+ "defaultValue": "true",
231
+ "appliesTo": "DateTimePicker",
232
+ "description": "Whether + and - open the duration expression in the field."
233
+ },
234
+ {
235
+ "name": "weekNumbers",
236
+ "type": "boolean",
237
+ "defaultValue": "false",
372
238
  "appliesTo": "DateTimePicker",
373
- "description": "The calendar system. gregory is the only value today."
239
+ "description": "Draws the ISO week number."
374
240
  },
375
241
  {
376
242
  "name": "firstDayOfWeek",
377
243
  "type": "number",
378
244
  "defaultValue": "the locale’s",
379
245
  "appliesTo": "DateTimePicker",
380
- "description": "The first day of the calendar’s week, from 0 for Sunday to 6 for Saturday."
246
+ "description": "0 is Sunday."
381
247
  },
382
248
  {
383
- "name": "months",
384
- "type": "number",
385
- "defaultValue": "1",
249
+ "name": "calendar",
250
+ "type": "'gregory'",
251
+ "defaultValue": "gregory",
386
252
  "appliesTo": "DateTimePicker",
387
- "description": "How many months the calendar draws side by side."
253
+ "description": "The calendar system."
388
254
  },
389
255
  {
390
- "name": "weekNumbers",
256
+ "name": "name",
257
+ "type": "string",
258
+ "defaultValue": "—",
259
+ "appliesTo": "DateTimePicker",
260
+ "description": "The name a form posts the moment under."
261
+ },
262
+ {
263
+ "name": "invalid",
264
+ "type": "boolean",
265
+ "defaultValue": "—",
266
+ "appliesTo": "DateTimePicker",
267
+ "description": "Stated by the consumer; a moment that fails a rule is invalid without it."
268
+ },
269
+ {
270
+ "name": "open",
271
+ "type": "boolean",
272
+ "defaultValue": "—",
273
+ "appliesTo": "DateTimePicker",
274
+ "description": "Whether the panel is showing. Present means the consumer owns it."
275
+ },
276
+ {
277
+ "name": "defaultOpen",
391
278
  "type": "boolean",
392
279
  "defaultValue": "false",
393
280
  "appliesTo": "DateTimePicker",
394
- "description": "Adds a column of ISO 8601 week numbers to the calendar."
281
+ "description": "Whether it starts open when nobody else says. Read once."
395
282
  },
396
283
  {
397
- "name": "referenceDateTime",
398
- "type": "PlainDateTime",
399
- "defaultValue": "the current date and time",
284
+ "name": "placement",
285
+ "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
286
+ "defaultValue": "bottom-start",
400
287
  "appliesTo": "DateTimePicker",
401
- "description": "The date and time assumed where the reader has given none: the month the calendar opens on, the time the list opens on after a day is pressed on an empty value, and the point a relative expression and the arrow keys on an empty field count from."
288
+ "description": "Where the panel opens, before the positioner has read the room."
402
289
  },
403
290
  {
404
291
  "name": "size",
405
292
  "type": "'sm' | 'md' | 'lg'",
406
293
  "defaultValue": "md",
407
294
  "appliesTo": "DateTimePicker",
408
- "description": "One step of the control scale for the field, the trigger and the rows of the list. Inside a field, an unset size follows the field."
295
+ "description": "The height of the control. The field around it answers when the picker does not."
409
296
  },
410
297
  {
411
298
  "name": "variant",
412
299
  "type": "'outline' | 'subtle' | 'plain'",
413
300
  "defaultValue": "outline",
414
301
  "appliesTo": "DateTimePicker",
415
- "description": "The frame of the field: a border, a fill, or none at rest."
416
- },
417
- {
418
- "name": "placement",
419
- "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
420
- "defaultValue": "bottom-start",
421
- "appliesTo": "DateTimePicker",
422
- "description": "Where the panel opens relative to the control. When it does not fit on that side, it opens on the other."
302
+ "description": "How the control draws its frame."
423
303
  },
424
304
  {
425
- "name": "openTo",
426
- "type": "'date' | 'time'",
427
- "defaultValue": "date",
305
+ "name": "locale",
306
+ "type": "string",
307
+ "defaultValue": "the language in force",
428
308
  "appliesTo": "DateTimePicker",
429
- "description": "The surface that takes focus when the trigger or open() opens the panel. Both surfaces are drawn either way."
309
+ "description": "BCP 47. Writes the field, the panel and the trigger’s name."
430
310
  },
431
311
  {
432
- "name": "closeOnSelect",
433
- "type": "'auto' | 'always' | 'never'",
434
- "defaultValue": "auto",
312
+ "name": "timeZone",
313
+ "type": "string",
314
+ "defaultValue": "the runtime’s",
435
315
  "appliesTo": "DateTimePicker",
436
- "description": "When a press closes the panel: auto on the press that completes the value, always on every press that changes the value, never on none."
316
+ "description": "Which zone answers \"what is now\"."
437
317
  },
438
318
  {
439
319
  "name": "disabled",
440
320
  "type": "boolean",
441
- "defaultValue": "the field’s",
321
+ "defaultValue": "—",
442
322
  "appliesTo": "DateTimePicker",
443
- "description": "Disables the field and the trigger. Unset, it follows the enclosing field."
323
+ "description": "Answers no key and no press."
444
324
  },
445
325
  {
446
326
  "name": "readOnly",
447
327
  "type": "boolean",
448
- "defaultValue": "the field’s",
449
- "appliesTo": "DateTimePicker",
450
- "description": "Keeps the value focusable and legible, and disables the trigger. Unset, it follows the enclosing field."
451
- },
452
- {
453
- "name": "invalid",
454
- "type": "boolean",
455
- "defaultValue": "the field’s",
328
+ "defaultValue": "—",
456
329
  "appliesTo": "DateTimePicker",
457
- "description": "Marks the value invalid. A value outside the bounds or refused by a predicate is invalid whatever this says."
330
+ "description": "Readable and not changeable."
458
331
  },
459
332
  {
460
333
  "name": "required",
461
334
  "type": "boolean",
462
- "defaultValue": "the field’s",
335
+ "defaultValue": "—",
463
336
  "appliesTo": "DateTimePicker",
464
- "description": "Sets aria-required on the field. Unset, it follows the enclosing field."
337
+ "description": "The form needs a value."
465
338
  },
466
339
  {
467
340
  "name": "clearable",
468
341
  "type": "boolean",
469
342
  "defaultValue": "false",
470
343
  "appliesTo": "DateTimePicker",
471
- "description": "Adds a clear button to the field while it holds any part of a value. The button empties both halves."
472
- },
473
- {
474
- "name": "relative",
475
- "type": "boolean",
476
- "defaultValue": "true",
477
- "appliesTo": "DateTimePicker",
478
- "description": "Whether +, - and = on a segment open a relative expression in the field, such as +2h."
479
- },
480
- {
481
- "name": "name",
482
- "type": "string",
483
- "defaultValue": "—",
484
- "appliesTo": "DateTimePicker",
485
- "description": "Adds a hidden input with this name that submits the value as YYYY-MM-DDTHH:mm:ss."
344
+ "description": "Draws a clear on the control."
486
345
  },
487
346
  {
488
347
  "name": "messages",
489
348
  "type": "Partial<DatetimePickerMessages>",
490
349
  "defaultValue": "—",
491
350
  "appliesTo": "DateTimePicker",
492
- "description": "Replaces the words of the language in force, key by key: the trigger’s name with no value (choose) and with one (change, with the value in its {date} slot), the Now button (now), the sentence for a day with no time (empty), and the panel’s description when the list is cut at maxOptions (truncated)."
493
- },
494
- {
495
- "name": "presets",
496
- "type": "ReactNode",
497
- "defaultValue": "—",
498
- "appliesTo": "DateTimePicker",
499
- "description": "Your own shortcuts, in a row in the head beside Now."
500
- },
501
- {
502
- "name": "footer",
503
- "type": "ReactNode",
504
- "defaultValue": "—",
505
- "appliesTo": "DateTimePicker",
506
- "description": "Your own actions, in a row under both surfaces."
351
+ "description": "Words laid over the language in force: the trigger’s names, and what is said of a refused moment."
507
352
  }
508
353
  ],
509
354
  "composition": [
@@ -512,246 +357,182 @@
512
357
  "type": "component",
513
358
  "defaultValue": "—",
514
359
  "appliesTo": "application",
515
- "description": "Sets timeZone, hourCycle, granularity, calendar, step, maxOptions, placement, openTo, closeOnSelect, unavailableOptions, size and variant once for every Datetime Picker under it. A value set on one Datetime Picker still wins."
360
+ "description": "Sets calendar, confirm, granularity, hourCycle, placement, size, step, timeZone and variant once."
516
361
  },
517
362
  {
518
- "name": "renderOption",
519
- "type": "(option: DateTimePickerOptionRender) => ReactNode",
520
- "defaultValue": "—",
363
+ "name": "footer",
364
+ "type": "ReactNode",
365
+ "defaultValue": "the step",
521
366
  "appliesTo": "DateTimePicker",
522
- "description": "Draws the content of one row of the list. It receives the time, the date it belongs to, the formatted label, and whether the time is selected, current or unavailable. The row keeps its role, states and keyboard."
367
+ "description": "What the footer says when nothing is wrong."
368
+ },
369
+ {
370
+ "name": "renderSlot",
371
+ "type": "(state: ClockSlotState) => ReactNode",
372
+ "defaultValue": "the time",
373
+ "appliesTo": "DateTimePicker",
374
+ "description": "What one whole time of options draws."
523
375
  },
524
376
  {
525
377
  "name": "render",
526
378
  "type": "(props: DateTimePickerRootProps) => ReactNode",
527
379
  "defaultValue": "—",
528
380
  "appliesTo": "DateTimePicker",
529
- "description": "Replaces the root element. The props include the ref."
381
+ "description": "Substitutes the element the root renders."
530
382
  },
531
383
  {
532
384
  "name": "ref",
533
385
  "type": "Ref<DateTimePickerHandle>",
534
386
  "defaultValue": "—",
535
387
  "appliesTo": "DateTimePicker",
536
- "description": "focus() moves focus to the first segment of the field. open() opens the panel and moves focus into it, as the trigger does; close() closes it."
537
- },
538
- {
539
- "name": "onKeyDown",
540
- "type": "KeyboardEventHandler",
541
- "defaultValue": "—",
542
- "appliesTo": "DateTimePicker",
543
- "description": "Runs before the Datetime Picker handles a key on the control, the trigger or the list. Calling preventDefault stops the Datetime Picker handling it."
388
+ "description": "focus(), open() and close()."
544
389
  }
545
390
  ],
546
391
  "events": [
547
392
  {
548
393
  "name": "onValueChange",
549
- "payload": "(value: PlainDateTime | null, request: DateTimeFieldChangeRequest)",
550
- "when": "Before the value changes. request.reason is keyboard for typing, select for a press in the calendar, the list or Now, clear for the clear button and blur for a value completed when the field loses focus. When the field moved the value, the request also carries segments and incomplete, the half still missing. A value that does not change emits nothing."
394
+ "payload": "(value: PlainDateTime | null, request: ChangeRequest<PlainDateTime | null>)",
395
+ "when": "Before the value moves, and cancellable: from a key in the field, from Apply, from Clear."
551
396
  },
552
397
  {
553
398
  "name": "onOpenChange",
554
399
  "payload": "(open: boolean, request: ChangeRequest<boolean>)",
555
- "when": "Before the panel opens or closes. request.reason is pointer for the trigger, keyboard for Alt+ArrowDown, ArrowDown on the trigger, open() and close(), escape and outsidePress for a dismissal, and select for the press that closed it."
556
- },
557
- {
558
- "name": "onHighlightedChange",
559
- "payload": "(highlighted: DateTimePickerHighlight, request: ChangeRequest<DateTimePickerHighlight>)",
560
- "when": "When the reader moves through either surface: the day the calendar has focused and the time the list has highlighted, as one value. Moving the highlight never changes the value."
400
+ "when": "Before the panel opens or closes, with the reason."
561
401
  }
562
402
  ],
563
403
  "accessibility": [
564
- "The panel has role=\"dialog\" and holds a role=\"grid\" and a role=\"listbox\", the arrangement the APG Date Picker Combobox example uses for its popup. The trigger has aria-haspopup=\"dialog\" and aria-expanded, and aria-controls only while the panel exists. Both surfaces are in the DOM at every width.",
565
- "The trigger’s accessible name carries the chosen date and time in words, such as “Change date and time, September 30, 2026 at 9:00 AM”. Focus returns to the trigger when the panel closes from a press or from Escape, so a screen reader announces the value there. The listbox has its own accessible name, the day its times belong to.",
566
- "Opening the panel from the trigger or from open() moves focus into the surface openTo names: the focused day in the calendar, or the chosen or nearest time in the list. Alt+ArrowDown opens the panel and leaves focus in the field. While the panel is open, Tab and Shift+Tab cycle through the head, the calendar, the list and the footer; each surface is one Tab stop.",
567
- "Moving the highlight through the list never changes the value; Enter, Space or a press does. Changing the value on every highlight would send one change per time the reader passes.",
568
- "Escape closes in steps: an open relative expression in the field closes first, then the calendar returns from the month or year grid to the day grid, and then the panel closes and focus returns to the trigger.",
569
- "Alt+ArrowDown is a shortcut, never the only way in. ChromeOS turns it into PageDown before the browser receives it, so the trigger is always drawn."
404
+ "The trigger says aria-haspopup=\"dialog\" and its name carries the value written, which is where focus returns when the panel closes.",
405
+ "The panel is a dialog with its Tab wrapped, and each grid inside it is one stop.",
406
+ "Escape discards the draft and returns focus to the trigger. Ctrl+Enter applies from anywhere in the panel.",
407
+ "The footer’s hint is a status region, so the reason Apply is off is spoken as well as drawn.",
408
+ "Alt+ArrowDown opens the panel and leaves focus in the field, so the segments keep every key they had.",
409
+ "The clock answers the day in the draft, so a reader who moves to a closed day hears its hours as unavailable before they choose one.",
410
+ "Under 760 pixels each head is a button with aria-expanded, so the part that is not on screen is announced as collapsed and not as missing."
570
411
  ]
571
412
  }
572
413
  },
573
414
  "tokens": [
574
- "--slotted-border-strong",
575
- "--slotted-border-subtle",
576
- "--slotted-border-width-thin",
577
- "--slotted-control-border-color",
578
415
  "--slotted-control-border-width",
579
- "--slotted-control-font-size-sm",
580
416
  "--slotted-control-height-lg",
581
417
  "--slotted-control-height-md",
582
418
  "--slotted-control-height-sm",
583
419
  "--slotted-control-icon-size-lg",
584
420
  "--slotted-control-icon-size-md",
585
421
  "--slotted-control-icon-size-sm",
586
- "--slotted-control-padding-inline-sm",
587
422
  "--slotted-control-radius",
588
423
  "--slotted-control-transition-duration",
589
424
  "--slotted-control-transition-easing",
590
- "--slotted-datetime-picker-content-border-color",
591
- "--slotted-datetime-picker-content-color",
592
- "--slotted-datetime-picker-content-padding",
593
- "--slotted-datetime-picker-content-radius",
594
- "--slotted-datetime-picker-content-shadow",
595
425
  "--slotted-datetime-picker-invalid-focus-ring-color",
596
- "--slotted-datetime-picker-label-color",
597
- "--slotted-datetime-picker-list-block-size",
598
- "--slotted-datetime-picker-now-active-background",
599
- "--slotted-datetime-picker-now-background",
600
- "--slotted-datetime-picker-now-border-color",
601
- "--slotted-datetime-picker-now-color",
602
- "--slotted-datetime-picker-now-hover-background",
603
- "--slotted-datetime-picker-now-hover-border-color",
604
- "--slotted-datetime-picker-now-icon-color",
605
- "--slotted-datetime-picker-option-current-background",
606
- "--slotted-datetime-picker-option-hover-background",
607
- "--slotted-datetime-picker-option-radius",
608
- "--slotted-datetime-picker-option-selected-background",
609
- "--slotted-datetime-picker-option-selected-color",
610
- "--slotted-datetime-picker-option-selected-hover-background",
611
426
  "--slotted-datetime-picker-radius",
612
- "--slotted-datetime-picker-sheet-inline-size",
613
- "--slotted-datetime-picker-surface",
614
- "--slotted-datetime-picker-time-panel-inline-size",
615
427
  "--slotted-datetime-picker-trigger-active-background",
616
428
  "--slotted-datetime-picker-trigger-color",
617
429
  "--slotted-datetime-picker-trigger-hover-background",
618
430
  "--slotted-datetime-picker-trigger-size",
619
431
  "--slotted-disabled-foreground",
620
- "--slotted-drawer-resizer-line-color",
621
- "--slotted-duration-medium",
622
- "--slotted-duration-short",
623
- "--slotted-easing-enter",
624
- "--slotted-easing-exit",
625
432
  "--slotted-focus-ring-color",
626
433
  "--slotted-focus-ring-color-invalid",
627
434
  "--slotted-focus-ring-offset",
628
435
  "--slotted-focus-ring-width",
629
- "--slotted-font-size-sm",
630
- "--slotted-font-weight-medium",
631
- "--slotted-radius-full",
632
- "--slotted-radius-lg",
633
- "--slotted-shadow-md",
634
- "--slotted-space-1",
635
- "--slotted-space-11",
636
436
  "--slotted-space-2",
637
- "--slotted-space-3",
638
- "--slotted-space-4",
639
- "--slotted-space-6",
640
- "--slotted-space-9",
641
- "--slotted-surface-raised",
642
437
  "--slotted-target-comfortable",
643
438
  "--slotted-target-min",
644
- "--slotted-text",
645
439
  "--slotted-text-muted",
646
- "--slotted-tone-accent-border",
647
- "--slotted-tone-accent-on-solid",
648
- "--slotted-tone-accent-solid",
649
- "--slotted-tone-accent-solid-hover",
650
440
  "--slotted-tone-secondary-subtle-active",
651
- "--slotted-tone-secondary-subtle-hover",
652
- "--slotted-z-index-popover"
441
+ "--slotted-tone-secondary-subtle-hover"
653
442
  ],
654
443
  "examples": [
655
444
  {
656
445
  "id": "playground",
657
446
  "title": "Playground",
658
- "note": "One Datetime Picker driven by the controls below the canvas. Open it: the calendar and the list are both in the panel, the head shows the value so far, and the panel closes on the press that completes the value.",
447
+ "note": "A day and a time are two presses. The day is written in words over the month, the time is typed or pressed, and Apply writes both.",
659
448
  "language": "tsx",
660
- "source": "<Field>\n <FieldLabel>Pickup date and time</FieldLabel>\n <DateTimePicker clearable name=\"pickupAt\" />\n <FieldDescription>The carrier collects at this date and time.</FieldDescription>\n</Field>;\n",
449
+ "source": "<DateTimePicker defaultValue={DEPARTURE} />;\n",
661
450
  "verdict": "excerpt"
662
451
  },
663
452
  {
664
453
  "id": "panel",
665
- "title": "Two surfaces in one dialog",
666
- "note": "The panel holds a grid drawn by Calendar and a listbox drawn by the Datetime Picker. Both are in the DOM at every width; no tabs switch between them, so assistive technology reads the same structure on a wide and a narrow screen.",
667
- "language": "tsx",
668
- "source": "<DateTimePicker defaultOpen />;\n",
669
- "verdict": "excerpt"
670
- },
671
- {
672
- "id": "open-to",
673
- "title": "Which surface takes focus on open",
674
- "note": "openTo decides where focus lands when the panel opens, not what the panel draws. Both surfaces are present either way, in the same order: the calendar, then the list.",
454
+ "title": "A month beside a clock",
455
+ "note": "Both stand at one height, so neither scrolls. A press on a day with no time yet moves to the clock.",
675
456
  "language": "tsx",
676
- "source": "<DateTimePicker openTo=\"time\" />;\n",
457
+ "source": "<DateTimePicker {...BASE} defaultValue={DEPARTURE} defaultOpen />;\n",
677
458
  "verdict": "excerpt"
678
459
  },
679
460
  {
680
- "id": "completeness",
681
- "title": "The value closes the panel, not a button",
682
- "note": "With closeOnSelect=\"auto\", the press that completes the value closes the panel. A press on a value that was already whole changes one half and leaves the panel open, so the reader can change the day and then the time. always closes on every press that changes the value; never closes on none.",
461
+ "id": "explicit",
462
+ "title": "Whole times",
463
+ "note": "options states the times there are, under the part of the day each one is in. There is no Now and no step from it.",
683
464
  "language": "tsx",
684
- "source": "<>\n <DateTimePicker closeOnSelect=\"auto\" />\n <DateTimePicker closeOnSelect=\"always\" />\n <DateTimePicker closeOnSelect=\"never\" />\n</>;\n",
465
+ "source": "<DateTimePicker {...BASE} defaultValue={DEPARTURE} options={VISITS} />;\n",
685
466
  "verdict": "excerpt"
686
467
  },
687
468
  {
688
469
  "id": "seconds",
689
- "title": "Seconds",
690
- "note": "granularity=\"second\" writes seconds in the field, and a step of 30 offers a time every half minute. The list stops at maxOptions rows, so a step in seconds needs a window from minTime to maxTime to stay short.",
470
+ "title": "Granularity",
471
+ "note": "The finest unit the field and the clock write.",
691
472
  "language": "tsx",
692
- "source": "<DateTimePicker granularity=\"second\" step={30} />;\n",
473
+ "source": "<DateTimePicker {...BASE} defaultValue={DEPARTURE} granularity=\"hour\" />;\n",
693
474
  "verdict": "excerpt"
694
475
  },
695
476
  {
696
477
  "id": "step",
697
- "title": "The step, and where it counts from",
698
- "note": "The list counts from min’s time when min is set and from midnight when it is not, the rule input[type=time] uses. A step of 900 from 09:07 offers 09:07, 09:22 and 09:37; the field still accepts 09:15 by typing.",
478
+ "title": "Step",
479
+ "note": "Seconds between two offered times. The field still takes a time between two of them.",
699
480
  "language": "tsx",
700
481
  "source": "import { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nexport default function DateTimePickerStep() {\n return (\n <Field>\n <FieldLabel>Dock appointment</FieldLabel>\n <DateTimePicker\n maxTime={plainTime(16, 45)}\n minTime={plainTime(7, 15)}\n referenceDateTime={plainDateTime(plainDate(2026, 9, 30), plainTime(7, 15))}\n step={1800}\n />\n <FieldDescription>Appointments start every 30 minutes from 7:15 AM.</FieldDescription>\n </Field>\n );\n}\n",
701
482
  "verdict": "example"
702
483
  },
703
484
  {
704
485
  "id": "range-bounds",
705
- "title": "Two pairs of bounds together",
706
- "note": "min and max bound the whole value; minTime and maxTime bound the times of every day inside the range. On the day of min the list starts at min’s time, on the day of max it stops at max’s time, and on every day between it runs from minTime to maxTime.",
486
+ "title": "Bounds",
487
+ "note": "min and max bound the whole moment, and minTime and maxTime bound every day inside it. Both hold at once.",
707
488
  "language": "tsx",
708
- "source": "<DateTimePicker\n max={{ date: { year: 2026, month: 12, day: 18 }, time: { hour: 12, minute: 0, second: 0 } }}\n maxTime={{ hour: 18, minute: 0, second: 0 }}\n min={{ date: { year: 2026, month: 10, day: 1 }, time: { hour: 14, minute: 0, second: 0 } }}\n minTime={{ hour: 9, minute: 0, second: 0 }}\n/>;\n",
709
- "verdict": "excerpt"
710
- },
711
- {
712
- "id": "day-window",
713
- "title": "The list follows the day the reader is on",
714
- "note": "Before a day is chosen, the list answers the day the calendar has focused. Moving through the month recomputes it, so a Saturday that closes early shows its shorter list, or the empty state, while the reader is still deciding.",
715
- "language": "tsx",
716
- "source": "<DateTimePicker isTimeUnavailable={(time, date) => dayOfWeek(date) === 6 && time.hour >= 13} />;\n",
489
+ "source": "<DateTimePicker {...BASE} defaultValue={DEPARTURE} max={CLOSES} min={OPENS} />;\n",
717
490
  "verdict": "excerpt"
718
491
  },
719
492
  {
720
493
  "id": "unavailable",
721
- "title": "Refused times are disabled or hidden",
722
- "note": "A refused time stays in the list, disabled, so the reader can still see the step. unavailableOptions=\"hide\" removes refused times instead. A day that offers no time shows the empty message.",
494
+ "title": "Days and times the product refuses",
495
+ "note": "A refused day offers no time, and a refused time stays where it is, off.",
723
496
  "language": "tsx",
724
497
  "source": "import { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport {\n dayOfWeek,\n plainDate,\n plainDateTime,\n plainTime,\n type PlainDate,\n type PlainTime,\n} from '@slotted/core/date';\n\nconst isWeekend = (date: PlainDate) => dayOfWeek(date) === 0 || dayOfWeek(date) === 6;\nconst isLunch = (time: PlainTime) => time.hour === 12;\n\nexport default function DateTimePickerUnavailable() {\n return (\n <Field>\n <FieldLabel>Warehouse inspection</FieldLabel>\n <DateTimePicker\n isDateUnavailable={isWeekend}\n isTimeUnavailable={isLunch}\n maxTime={plainTime(17, 0)}\n minTime={plainTime(8, 0)}\n referenceDateTime={plainDateTime(plainDate(2026, 9, 30), plainTime(9, 0))}\n step={1800}\n />\n <FieldDescription>\n Weekdays from 8:00 AM to 5:00 PM, closed for lunch at noon.\n </FieldDescription>\n </Field>\n );\n}\n",
725
498
  "verdict": "example"
726
499
  },
727
500
  {
728
- "id": "now",
729
- "title": "One press for the current date and time",
730
- "note": "Now writes both halves from the clock in timeZone. It does the same as the relative expression 0 in the field, for a reader who does not know the expression. messages.now replaces its label.",
501
+ "id": "offsets",
502
+ "title": "Steps from now",
503
+ "note": "Seconds from the moment it is. A step the rules refuse is off, and an empty list draws none.",
731
504
  "language": "tsx",
732
- "source": "<DateTimePicker messages={{ now: 'Right now' }} />;\n",
505
+ "source": "<DateTimePicker {...BASE} defaultValue={DEPARTURE} offsets={[43200, 172800]} />;\n",
733
506
  "verdict": "excerpt"
734
507
  },
735
508
  {
736
509
  "id": "relative",
737
- "title": "Typing with the panel open",
738
- "note": "Alt+ArrowDown opens the panel and leaves focus in the field, so every key the segments take still works, including +, - and = for a relative expression. Escape closes the expression first and leaves the panel open.",
510
+ "title": "Typing a step",
511
+ "note": "In the field, plus and minus open an expression: +2h writes two hours from now.",
739
512
  "language": "tsx",
740
- "source": "<DateTimePicker\n defaultOpen\n referenceDateTime={{\n date: { year: 2026, month: 9, day: 30 },\n time: { hour: 14, minute: 40, second: 0 },\n }}\n/>;\n",
513
+ "source": "<DateTimePicker {...BASE} relative />;\n",
741
514
  "verdict": "excerpt"
742
515
  },
743
516
  {
744
517
  "id": "presets",
745
- "title": "Your own shortcuts",
746
- "note": "presets adds a row in the head beside Now. The row wraps inside the panel’s width instead of widening it.",
518
+ "title": "Shortcuts",
519
+ "note": "A label and a moment, or a function that resolves one. The panel writes the moment under the label, after Now.",
747
520
  "language": "tsx",
748
- "source": "<DateTimePicker\n presets={\n <>\n <Button onClick={tomorrowAtNine} size=\"sm\" variant=\"ghost\">\n Tomorrow, 9:00 AM\n </Button>\n <Button onClick={mondayAtTwo} size=\"sm\" variant=\"ghost\">\n Monday, 2:00 PM\n </Button>\n </>\n }\n/>;\n",
521
+ "source": "<DateTimePicker {...BASE} defaultValue={DEPARTURE} presets={PRESETS} />;\n",
522
+ "verdict": "excerpt"
523
+ },
524
+ {
525
+ "id": "confirm",
526
+ "title": "With and without a confirmation",
527
+ "note": "The panel keeps a draft until Apply. confirm={false} writes a whole moment on every press, and closes on the one that completes it.",
528
+ "language": "tsx",
529
+ "source": "<DateTimePicker {...BASE} defaultValue={DEPARTURE} />;\n",
749
530
  "verdict": "excerpt"
750
531
  },
751
532
  {
752
533
  "id": "sizes",
753
534
  "title": "Size",
754
- "note": "The three steps of the control scale. Inside a field, an unset size follows the field. The rows of the list follow the same scale.",
535
+ "note": "The three heights every control has. The panel keeps its own measures at each of them.",
755
536
  "language": "tsx",
756
537
  "source": "import { DateTimePicker } from '@slotted/react/datetime-picker';\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 DateTimePickerSizes() {\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Created after</FieldLabel>\n <DateTimePicker\n defaultValue={plainDateTime(plainDate(2026, 9, 1), plainTime(0, 0))}\n size=\"sm\"\n />\n </Field>\n <Field>\n <FieldLabel>Pickup</FieldLabel>\n <DateTimePicker\n defaultValue={plainDateTime(plainDate(2026, 9, 30), plainTime(9, 0))}\n size=\"md\"\n />\n </Field>\n <Field>\n <FieldLabel>Store opening</FieldLabel>\n <DateTimePicker\n defaultValue={plainDateTime(plainDate(2026, 11, 2), plainTime(10, 0))}\n size=\"lg\"\n />\n </Field>\n </Stack>\n );\n}\n",
757
538
  "verdict": "example"
@@ -759,23 +540,15 @@
759
540
  {
760
541
  "id": "variants",
761
542
  "title": "Variant",
762
- "note": "The frame is the datetime field’s, the same frame every field in a form draws. plain draws no frame at rest, for a table cell or a toolbar, and still shows hover and focus.",
543
+ "note": "The three frames every field has, so a picker stands beside a field of its own variant.",
763
544
  "language": "tsx",
764
545
  "source": "import { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nconst PICKUP = plainDateTime(plainDate(2026, 9, 30), plainTime(9, 0));\n\nexport default function DateTimePickerVariants() {\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Pickup</FieldLabel>\n <DateTimePicker defaultValue={PICKUP} variant=\"outline\" />\n </Field>\n <Field>\n <FieldLabel>Loading starts</FieldLabel>\n <DateTimePicker defaultValue={PICKUP} variant=\"subtle\" />\n </Field>\n <Field>\n <FieldLabel>Gate opens</FieldLabel>\n <DateTimePicker defaultValue={PICKUP} variant=\"plain\" />\n </Field>\n </Stack>\n );\n}\n",
765
546
  "verdict": "example"
766
547
  },
767
- {
768
- "id": "placement",
769
- "title": "Placement",
770
- "note": "Where the panel opens relative to the control. It is a preference: when the panel does not fit on that side, the positioner opens it on the other, and data-placement says which side it chose.",
771
- "language": "tsx",
772
- "source": "<DateTimePicker placement=\"top-start\" />;\n",
773
- "verdict": "excerpt"
774
- },
775
548
  {
776
549
  "id": "states",
777
550
  "title": "States",
778
- "note": "Read-only stays focusable and legible. Disabled takes no key and no press, and its trigger is a disabled button. Invalid draws the frame and the focus ring in the danger tone. In the list, the chosen time outranks the highlighted time, which outranks hover.",
551
+ "note": "Each is the field’s own, and the trigger answers it.",
779
552
  "language": "tsx",
780
553
  "source": "import { DateTimePicker } from '@slotted/react/datetime-picker';\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 DateTimePickerStates() {\n return (\n <Stack gap={5}>\n <Field invalid required>\n <FieldLabel>Pickup</FieldLabel>\n <DateTimePicker defaultValue={plainDateTime(plainDate(2026, 9, 29), plainTime(16, 0))} />\n <FieldError>The pickup is before the order was placed, September 30 at 9:00 AM.</FieldError>\n </Field>\n <Field readOnly>\n <FieldLabel>Order placed</FieldLabel>\n <DateTimePicker defaultValue={plainDateTime(plainDate(2026, 9, 30), plainTime(9, 0))} />\n <FieldDescription>Set when the order was placed.</FieldDescription>\n </Field>\n <Field disabled>\n <FieldLabel>Delivered</FieldLabel>\n <DateTimePicker />\n <FieldDescription>Filled in by the carrier on delivery.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
781
554
  "verdict": "example"
@@ -783,31 +556,31 @@
783
556
  {
784
557
  "id": "forms",
785
558
  "title": "In a form",
786
- "note": "name adds a hidden input that submits the value as YYYY-MM-DDTHH:mm:ss. The field around the Datetime Picker supplies the label, the description and the error, and passes its size, disabled state and validity to the Datetime Picker unless it sets its own.",
559
+ "note": "name posts the moment, a reset returns to the first one, and a Field names the control and not the panel.",
787
560
  "language": "tsx",
788
- "source": "<form action=\"/pickups\" method=\"post\">\n <Field>\n <FieldLabel>Pickup date and time</FieldLabel>\n <DateTimePicker name=\"pickupAt\" required />\n <FieldDescription>The dock is open from 9:00 AM to 6:00 PM.</FieldDescription>\n </Field>\n</form>;\n",
561
+ "source": "<Field>\n <FieldLabel>Departure</FieldLabel>\n <DateTimePicker name=\"departure\" />\n</Field>;\n",
789
562
  "verdict": "excerpt"
790
563
  },
791
564
  {
792
565
  "id": "narrow",
793
- "title": "Narrow",
794
- "note": "With too little room for both surfaces, the list wraps under the calendar, in the value’s own order. Nothing is hidden and no switch is drawn.",
566
+ "title": "One column",
567
+ "note": "Under 760 pixels the panel shows the month or the clock, and the two heads bring them. On a finger it is a sheet.",
795
568
  "language": "tsx",
796
- "source": "import { useRef, useState } from 'react';\nimport { Button } from '@slotted/react/button';\nimport { DateTimePicker, type DateTimePickerHandle } from '@slotted/react/datetime-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport {\n addDays,\n plainDate,\n plainDateTime,\n plainTime,\n type PlainDateTime,\n} from '@slotted/core/date';\n\nconst TODAY = plainDate(2026, 9, 30);\n\nexport default function DateTimePickerNarrow() {\n const picker = useRef<DateTimePickerHandle>(null);\n const [delivery, setDelivery] = useState<PlainDateTime | null>(null);\n\n const choose = (next: PlainDateTime) => {\n setDelivery(next);\n picker.current?.close();\n };\n\n return (\n <Field>\n <FieldLabel>Delivery appointment</FieldLabel>\n <DateTimePicker\n onValueChange={setDelivery}\n presets={\n <>\n <Button\n onClick={() => choose(plainDateTime(TODAY, plainTime(17, 0)))}\n size=\"sm\"\n variant=\"ghost\"\n >\n Today, 5:00 PM\n </Button>\n <Button\n onClick={() => choose(plainDateTime(addDays(TODAY, 1), plainTime(9, 0)))}\n size=\"sm\"\n variant=\"ghost\"\n >\n Tomorrow, 9:00 AM\n </Button>\n </>\n }\n ref={picker}\n referenceDateTime={plainDateTime(TODAY, plainTime(9, 0))}\n step={1800}\n value={delivery}\n />\n </Field>\n );\n}\n",
569
+ "source": "import { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { addDays, plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nconst TODAY = plainDate(2026, 9, 30);\n\nexport default function DateTimePickerNarrow() {\n return (\n <Field>\n <FieldLabel>Delivery appointment</FieldLabel>\n <DateTimePicker\n presets={[\n { label: 'End of today', value: plainDateTime(TODAY, plainTime(17, 0)) },\n { label: 'Tomorrow early', value: plainDateTime(addDays(TODAY, 1), plainTime(9, 0)) },\n ]}\n referenceDateTime={plainDateTime(TODAY, plainTime(9, 0))}\n step={1800}\n />\n </Field>\n );\n}\n",
797
570
  "verdict": "example"
798
571
  },
799
572
  {
800
573
  "id": "composition",
801
- "title": "Composition",
802
- "note": "DateTimePickerDefaultsProvider sets the step and the clock once; SlottedProvider sets the language and the words; renderOption draws the content of one row; footer takes your actions; and the ref reaches focus(), open() and close(). A value set on one Datetime Picker still wins over the provider.",
574
+ "title": "Composition and escape hatches",
575
+ "note": "The consumer may own the value and the open state, and a provider states the shape once.",
803
576
  "language": "tsx",
804
- "source": "<DateTimePickerDefaultsProvider step={1800}>\n <DateTimePicker\n ref={handle}\n renderOption={({ label, time }) => (\n <>\n <span>{label}</span>\n <span>{seatsLeft(time)} seats left</span>\n </>\n )}\n />\n</DateTimePickerDefaultsProvider>;\n",
577
+ "source": "<DateTimePicker footer=\"Doors close at 6\" onValueChange={setMoment} value={moment} />;\n",
805
578
  "verdict": "excerpt"
806
579
  },
807
580
  {
808
581
  "id": "keyboard",
809
- "title": "Keyboard",
810
- "note": "Alt+ArrowDown opens the panel from a segment and leaves focus in the field. ArrowDown on the trigger opens it and moves focus into the surface openTo names. In the list: the arrow keys, Home, End, type-ahead, and PageUp and PageDown to the previous or next hour. Tab stays inside the panel while it is open, and each surface is one Tab stop.",
582
+ "title": "The keyboard",
583
+ "note": "The field keeps its keys, and the panel adds the calendar’s and the clock’s.",
811
584
  "language": "tsx",
812
585
  "source": "import { useState } from 'react';\nimport { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nexport default function DateTimePickerKeyboard() {\n const [last, setLast] = useState('Focus the field and press Alt+ArrowDown.');\n\n return (\n <Field>\n <FieldLabel>Dispatch</FieldLabel>\n <DateTimePicker\n defaultValue={plainDateTime(plainDate(2026, 9, 30), plainTime(16, 30))}\n messages={{ choose: 'Choose dispatch time', change: 'Change dispatch time, {date}' }}\n onOpenChange={(open, request) =>\n setLast(`${open ? 'Opened' : 'Closed'} by ${request.reason}.`)\n }\n />\n <FieldDescription>{last}</FieldDescription>\n </Field>\n );\n}\n",
813
586
  "verdict": "example"
@@ -833,7 +606,7 @@
833
606
  "title": "carrier-pickup.tsx",
834
607
  "note": null,
835
608
  "language": "tsx",
836
- "source": "import { useRef, useState } from 'react';\nimport { Button } from '@slotted/react/button';\nimport { DateTimePicker, type DateTimePickerHandle } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { Text } from '@slotted/react/typography';\nimport {\n createDateTimeFormat,\n dayOfWeek,\n plainDate,\n plainDateTime,\n plainTime,\n toISODate,\n toISOTime,\n type PlainDate,\n type PlainDateTime,\n type PlainTime,\n} from '@slotted/core/date';\n\n/** The windows Harbor Freightways collects in, every weekday. */\nconst WINDOWS = [plainTime(8, 0), plainTime(10, 30), plainTime(13, 0), plainTime(15, 30)];\nconst TRUCKS_PER_WINDOW = 3;\n/** Pickups already booked, by date and window. */\nconst BOOKED: Record<string, number> = {\n '2026-10-01T08:00:00': 3,\n '2026-10-01T10:30:00': 2,\n '2026-10-02T13:00:00': 3,\n '2026-10-02T15:30:00': 1,\n};\nconst words = createDateTimeFormat({ locale: 'en-US' });\n\nconst trucksLeft = (time: PlainTime, date: PlainDate) =>\n TRUCKS_PER_WINDOW - (BOOKED[`${toISODate(date)}T${toISOTime(time)}`] ?? 0);\nconst isWeekend = (date: PlainDate) => dayOfWeek(date) === 0 || dayOfWeek(date) === 6;\n\nexport default function DateTimePickerCarrierPickup() {\n const picker = useRef<DateTimePickerHandle>(null);\n const [pickup, setPickup] = useState<PlainDateTime | null>(null);\n\n return (\n <Field required>\n <FieldLabel>Carrier pickup slot</FieldLabel>\n <DateTimePicker\n closeOnSelect=\"never\"\n footer={\n <Button onClick={() => picker.current?.close()} size=\"sm\">\n Done\n </Button>\n }\n isDateUnavailable={isWeekend}\n isTimeUnavailable={(time, date) => trucksLeft(time, date) === 0}\n min={plainDateTime(plainDate(2026, 10, 1), plainTime(8, 0))}\n onValueChange={setPickup}\n options={WINDOWS}\n ref={picker}\n referenceDateTime={plainDateTime(plainDate(2026, 10, 1), plainTime(10, 30))}\n renderOption={({ date, label, time, unavailable }) => (\n <>\n <span>{label}</span>\n <Text size=\"sm\" tone=\"muted\">\n {unavailable\n ? 'Full'\n : `${trucksLeft(time, date)} of ${TRUCKS_PER_WINDOW} trucks left`}\n </Text>\n </>\n )}\n value={pickup}\n />\n <FieldDescription>\n {pickup === null\n ? 'Harbor Freightways collects on weekdays, in four windows.'\n : `Harbor Freightways collects on ${words.describe(pickup)}.`}\n </FieldDescription>\n </Field>\n );\n}\n",
609
+ "source": "import { useState } from 'react';\nimport { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport {\n createDateTimeFormat,\n dayOfWeek,\n plainDate,\n plainDateTime,\n plainTime,\n toISODate,\n toISOTime,\n type PlainDate,\n type PlainDateTime,\n type PlainTime,\n} from '@slotted/core/date';\n\n/** The windows Harbor Freightways collects in, every weekday. */\nconst WINDOWS = [plainTime(8, 0), plainTime(10, 30), plainTime(13, 0), plainTime(15, 30)];\nconst TRUCKS_PER_WINDOW = 3;\n/** Pickups already booked, by date and window. */\nconst BOOKED: Record<string, number> = {\n '2026-10-01T08:00:00': 3,\n '2026-10-01T10:30:00': 2,\n '2026-10-02T13:00:00': 3,\n '2026-10-02T15:30:00': 1,\n};\nconst words = createDateTimeFormat({ locale: 'en-US' });\n\nconst trucksLeft = (time: PlainTime, date: PlainDate) =>\n TRUCKS_PER_WINDOW - (BOOKED[`${toISODate(date)}T${toISOTime(time)}`] ?? 0);\nconst isWeekend = (date: PlainDate) => dayOfWeek(date) === 0 || dayOfWeek(date) === 6;\n\nexport default function DateTimePickerCarrierPickup() {\n const [pickup, setPickup] = useState<PlainDateTime | null>(null);\n\n return (\n <Field required>\n <FieldLabel>Carrier pickup slot</FieldLabel>\n <DateTimePicker\n hourCycle={24}\n isDateUnavailable={isWeekend}\n isTimeUnavailable={(time, date) => trucksLeft(time, date) === 0}\n min={plainDateTime(plainDate(2026, 10, 1), plainTime(8, 0))}\n onValueChange={setPickup}\n options={WINDOWS}\n referenceDateTime={plainDateTime(plainDate(2026, 10, 1), plainTime(10, 30))}\n renderSlot={({ date, label, time, unavailable }) =>\n date === null || unavailable ? label : `${label} (${String(trucksLeft(time, date))})`\n }\n value={pickup}\n />\n <FieldDescription>\n {pickup === null\n ? 'Harbor Freightways collects on weekdays. Each window says the trucks left.'\n : `Harbor Freightways collects on ${words.describe(pickup)}.`}\n </FieldDescription>\n </Field>\n );\n}\n",
837
610
  "verdict": "example"
838
611
  },
839
612
  {
@@ -857,7 +630,7 @@
857
630
  "title": "footer.tsx",
858
631
  "note": null,
859
632
  "language": "tsx",
860
- "source": "import { useRef } from 'react';\nimport { Button } from '@slotted/react/button';\nimport { DateTimePicker, type DateTimePickerHandle } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nexport default function DateTimePickerFooter() {\n const picker = useRef<DateTimePickerHandle>(null);\n\n return (\n <Field>\n <FieldLabel>Maintenance window starts</FieldLabel>\n <DateTimePicker\n closeOnSelect=\"never\"\n defaultValue={plainDateTime(plainDate(2026, 10, 3), plainTime(22, 0))}\n footer={\n <Button onClick={() => picker.current?.close()} size=\"sm\">\n Done\n </Button>\n }\n ref={picker}\n step={3600}\n />\n <FieldDescription>Conveyors stop for four hours from this time.</FieldDescription>\n </Field>\n );\n}\n",
633
+ "source": "import { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate, plainDateTime, plainTime } from '@slotted/core/date';\n\nexport default function DateTimePickerFooter() {\n return (\n <Field>\n <FieldLabel>Maintenance window starts</FieldLabel>\n <DateTimePicker\n confirm={false}\n defaultValue={plainDateTime(plainDate(2026, 10, 3), plainTime(22, 0))}\n footer=\"Four hours from this time\"\n step={3600}\n />\n <FieldDescription>Conveyors stop for four hours from this time.</FieldDescription>\n </Field>\n );\n}\n",
861
634
  "verdict": "example"
862
635
  },
863
636
  {
@@ -905,7 +678,7 @@
905
678
  "title": "publish-at.tsx",
906
679
  "note": null,
907
680
  "language": "tsx",
908
- "source": "import { useRef, useState } from 'react';\nimport { Button } from '@slotted/react/button';\nimport { DateTimePicker, type DateTimePickerHandle } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport {\n addDays,\n createDateTimeFormat,\n dayOfWeek,\n plainDate,\n plainDateTime,\n plainTime,\n type PlainDateTime,\n} from '@slotted/core/date';\n\nconst NOW = plainDateTime(plainDate(2026, 9, 30), plainTime(9, 0));\nconst TOMORROW = plainDateTime(addDays(NOW.date, 1), plainTime(9, 0));\nconst NEXT_MONDAY = plainDateTime(\n addDays(NOW.date, (8 - dayOfWeek(NOW.date)) % 7 || 7),\n plainTime(9, 0),\n);\nconst words = createDateTimeFormat({ locale: 'en-US' });\n\nexport default function DateTimePickerPublishAt() {\n const picker = useRef<DateTimePickerHandle>(null);\n const [publishAt, setPublishAt] = useState<PlainDateTime | null>(TOMORROW);\n\n const choose = (next: PlainDateTime) => {\n setPublishAt(next);\n picker.current?.close();\n };\n\n return (\n <Field required>\n <FieldLabel>Publish the autumn price list at</FieldLabel>\n <DateTimePicker\n min={NOW}\n onValueChange={setPublishAt}\n presets={\n <>\n <Button onClick={() => choose(TOMORROW)} size=\"sm\" variant=\"ghost\">\n Tomorrow, 9:00 AM\n </Button>\n <Button onClick={() => choose(NEXT_MONDAY)} size=\"sm\" variant=\"ghost\">\n Monday, 9:00 AM\n </Button>\n </>\n }\n ref={picker}\n referenceDateTime={NOW}\n timeZone=\"America/New_York\"\n value={publishAt}\n />\n <FieldDescription>\n {publishAt === null\n ? 'Choose when the new prices go live, New York time.'\n : `Prices go live on ${words.describe(publishAt)}, New York time.`}\n </FieldDescription>\n </Field>\n );\n}\n",
681
+ "source": "import { useState } from 'react';\nimport { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport {\n addDays,\n createDateTimeFormat,\n dayOfWeek,\n plainDate,\n plainDateTime,\n plainTime,\n type PlainDateTime,\n} from '@slotted/core/date';\n\nconst NOW = plainDateTime(plainDate(2026, 9, 30), plainTime(9, 0));\nconst TOMORROW = plainDateTime(addDays(NOW.date, 1), plainTime(9, 0));\nconst NEXT_MONDAY = plainDateTime(\n addDays(NOW.date, (8 - dayOfWeek(NOW.date)) % 7 || 7),\n plainTime(9, 0),\n);\nconst words = createDateTimeFormat({ locale: 'en-US' });\n\nexport default function DateTimePickerPublishAt() {\n const [publishAt, setPublishAt] = useState<PlainDateTime | null>(TOMORROW);\n\n return (\n <Field required>\n <FieldLabel>Publish the autumn price list at</FieldLabel>\n <DateTimePicker\n min={NOW}\n onValueChange={setPublishAt}\n presets={[\n { label: 'Tomorrow', value: TOMORROW },\n { label: 'Monday', value: NEXT_MONDAY },\n ]}\n referenceDateTime={NOW}\n timeZone=\"America/New_York\"\n value={publishAt}\n />\n <FieldDescription>\n {publishAt === null\n ? 'Choose when the new prices go live, New York time.'\n : `Prices go live on ${words.describe(publishAt)}, New York time.`}\n </FieldDescription>\n </Field>\n );\n}\n",
909
682
  "verdict": "example"
910
683
  },
911
684
  {
@@ -913,7 +686,7 @@
913
686
  "title": "reference.tsx",
914
687
  "note": null,
915
688
  "language": "tsx",
916
- "source": "import { useState } from 'react';\nimport { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport {\n createDateTimeFormat,\n plainDate,\n plainDateTime,\n plainTime,\n type PlainDateTime,\n} from '@slotted/core/date';\n\nconst END_OF_SHIFT = plainDateTime(plainDate(2026, 10, 1), plainTime(15, 0));\nconst words = createDateTimeFormat({ locale: 'en-US' });\n\nexport default function DateTimePickerReference() {\n const [collection, setCollection] = useState<PlainDateTime | null>(null);\n\n return (\n <Field>\n <FieldLabel>Courier collection</FieldLabel>\n <DateTimePicker\n onValueChange={setCollection}\n referenceDateTime={END_OF_SHIFT}\n value={collection}\n />\n <FieldDescription>\n {collection === null\n ? 'A day chosen in the calendar opens the time list on 3:00 PM.'\n : `Collection on ${words.describe(collection)}.`}\n </FieldDescription>\n </Field>\n );\n}\n",
689
+ "source": "import { useState } from 'react';\nimport { DateTimePicker } from '@slotted/react/datetime-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport {\n createDateTimeFormat,\n plainDate,\n plainDateTime,\n plainTime,\n type PlainDateTime,\n} from '@slotted/core/date';\n\nconst END_OF_SHIFT = plainDateTime(plainDate(2026, 10, 1), plainTime(15, 0));\nconst words = createDateTimeFormat({ locale: 'en-US' });\n\nexport default function DateTimePickerReference() {\n const [collection, setCollection] = useState<PlainDateTime | null>(null);\n\n return (\n <Field>\n <FieldLabel>Courier collection</FieldLabel>\n <DateTimePicker\n onValueChange={setCollection}\n referenceDateTime={END_OF_SHIFT}\n value={collection}\n />\n <FieldDescription>\n {collection === null\n ? 'The panel opens on October 1 and counts its steps from 3:00 PM.'\n : `Collection on ${words.describe(collection)}.`}\n </FieldDescription>\n </Field>\n );\n}\n",
917
690
  "verdict": "example"
918
691
  },
919
692
  {