@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,15 +25,6 @@
25
25
  "top",
26
26
  "top-end"
27
27
  ],
28
- "closeOnSelect": [
29
- "auto",
30
- "always",
31
- "never"
32
- ],
33
- "unavailableOptions": [
34
- "disable",
35
- "hide"
36
- ],
37
28
  "hourCycle": [
38
29
  12,
39
30
  24
@@ -49,6 +40,10 @@
49
40
  "position": [
50
41
  "start",
51
42
  "end"
43
+ ],
44
+ "confirm": [
45
+ "on",
46
+ "off"
52
47
  ]
53
48
  },
54
49
  "members": {
@@ -58,12 +53,10 @@
58
53
  "size": "md",
59
54
  "variant": "outline",
60
55
  "placement": "bottom-start",
61
- "closeOnSelect": "auto",
56
+ "confirm": true,
62
57
  "step": 900,
63
- "maxOptions": 1440,
64
- "unavailableOptions": "disable",
65
58
  "granularity": "minute",
66
- "months": 1,
59
+ "months": 2,
67
60
  "contiguous": true,
68
61
  "calendar": "gregory",
69
62
  "clearable": false
@@ -91,9 +84,7 @@
91
84
  "invalid",
92
85
  "readonly",
93
86
  "required",
94
- "open",
95
- "current",
96
- "selected"
87
+ "open"
97
88
  ],
98
89
  "parts": [
99
90
  "root",
@@ -101,212 +92,51 @@
101
92
  "trigger",
102
93
  "summary",
103
94
  "clear",
104
- "hidden-input",
105
- "positioner",
106
- "content",
107
- "grip",
108
- "head",
109
- "tabs",
110
- "tab",
111
- "tab-label",
112
- "tab-value",
113
- "field",
114
- "now",
115
- "hint",
116
- "length",
117
- "limit",
118
- "presets",
119
- "preset",
120
- "panel",
121
- "date-panel",
122
- "list",
123
- "option",
124
- "option-duration",
125
- "empty",
126
- "footer",
127
- "done"
95
+ "hidden-input"
128
96
  ]
129
97
  }
130
98
  },
131
99
  "docs": {
132
100
  "dateTimeRangePicker": {
133
101
  "imports": {
134
- "source": "import { DateTimeRangePicker, DateTimeRangePickerDefaultsProvider, DateTimeRangePickerPreset, SlottedProvider } from '@slotted/react';"
102
+ "source": "import { DateTimeRangePicker, DateTimeRangePickerDefaultsProvider } from '@slotted/react';"
135
103
  },
136
104
  "anatomy": [
137
105
  {
138
106
  "part": "root",
139
107
  "element": "div, or the element render returns",
140
108
  "required": true,
141
- "purpose": "The box the family is selected by. Carries data-ui=\"datetime-range-picker\", the axes, data-granularity, data-open and the state attributes. className, style and every native attribute reach it."
109
+ "purpose": "The frame of the picker. Carries data-ui=\"datetime-range-picker\", data-calendar, data-granularity, data-size, data-variant, data-open and the state attributes."
142
110
  },
143
111
  {
144
112
  "part": "control",
145
113
  "element": "div",
146
114
  "required": true,
147
- "purpose": "The frame: one line at the control height, at any width, and what the positioner measures. Two datetime fields need three hundred and sixty pixels on one line; the current end’s field lives in the band now, where the width is the surface’s."
115
+ "purpose": "The box the panel hangs from, around the field and the trigger."
148
116
  },
149
117
  {
150
118
  "part": "trigger",
151
119
  "element": "button",
152
120
  "required": true,
153
- "purpose": "Fills the frame and opens the surface. Its accessible name carries both ends in words and the duration, because focus returns here when the surface closes. The calendar glyph sits at its reading end."
121
+ "purpose": "The button that fills the frame and opens the panel. Its name carries both ends and the length written."
154
122
  },
155
123
  {
156
124
  "part": "summary",
157
125
  "element": "span",
158
126
  "required": true,
159
- "purpose": "The value written short — \"12 Sep, 14:00 – 16 Sep, 11:00\" — or the placeholder with data-placeholder. Cut with an ellipsis where it does not fit; the trigger’s name carries it whole."
127
+ "purpose": "The run in words, one line, or the placeholder with data-placeholder."
160
128
  },
161
129
  {
162
130
  "part": "clear",
163
131
  "element": "button",
164
132
  "required": false,
165
- "purpose": "Empties both ends with the clear reason. Drawn with clearable, and the only clear in the family: the field in the band draws none."
133
+ "purpose": "Empties both ends, with clearable and a value."
166
134
  },
167
135
  {
168
136
  "part": "hidden-input",
169
137
  "element": "input",
170
138
  "required": true,
171
- "purpose": "Two, under startName and endName, carrying YYYY-MM-DDTHH:mm:ss for a plain form post. They live in the frame because the surface is portalled and unmounted while it is closed."
172
- },
173
- {
174
- "part": "positioner",
175
- "element": "div",
176
- "required": false,
177
- "purpose": "The layer the surface stands on, and what packages/core/src/positioner writes its position and custom properties onto. Carries data-presentation: popover, or sheet on a coarse pointer below 480 pixels."
178
- },
179
- {
180
- "part": "content",
181
- "element": "div",
182
- "required": false,
183
- "purpose": "The painted surface, carrying role=\"dialog\" and the same name as the trigger. Sized by the calendar and the list, capped at thirty rems and by the room the positioner measured."
184
- },
185
- {
186
- "part": "grip",
187
- "element": "span, aria-hidden",
188
- "required": false,
189
- "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."
190
- },
191
- {
192
- "part": "head",
193
- "element": "div",
194
- "required": false,
195
- "purpose": "The band, three rows: the two tabs; the field of the current end and now; the hint, then the duration and the limit. It renders at the surface’s width and contributes nothing to it."
196
- },
197
- {
198
- "part": "tabs",
199
- "element": "div",
200
- "required": false,
201
- "purpose": "role=\"tablist\": the two ends, one at a time."
202
- },
203
- {
204
- "part": "tab",
205
- "element": "button",
206
- "required": false,
207
- "purpose": "role=\"tab\", data-position=\"start\" or \"end\". aria-selected and data-current on the current end, painted as an underline; data-placeholder while the end has no value. Its accessible name — the label and the value — names the list."
208
- },
209
- {
210
- "part": "tab-label",
211
- "element": "span",
212
- "required": false,
213
- "purpose": "\"Start\" or \"End\", from the start and end messages."
214
- },
215
- {
216
- "part": "tab-value",
217
- "element": "span",
218
- "required": false,
219
- "purpose": "The end written short — \"12 Sep, 14:00\" — a day alone, a time alone, or a dash."
220
- },
221
- {
222
- "part": "field",
223
- "element": "div",
224
- "required": false,
225
- "purpose": "Holds the current end’s datetime-field in variant=\"plain\", data-position. Drawn on a fine pointer only: a segment is a spinbutton and raises no keyboard on a phone."
226
- },
227
- {
228
- "part": "now",
229
- "element": "button",
230
- "required": false,
231
- "purpose": "Beside the field: writes the current date and time — referenceDateTime, or the clock — into the current end, both halves, and follows the focus rule."
232
- },
233
- {
234
- "part": "hint",
235
- "element": "span",
236
- "required": false,
237
- "purpose": "What the next press should be, or what is wrong — \"Return: choose a day\", \"Return: choose a time on 16 Sep\", \"The end must come after the start\" — from the chooseDay, chooseTime, order, length, unavailable and bounds messages. data-invalid while it names a problem; aria-describedby of the list and the field. Empty while the work is whole and valid."
238
- },
239
- {
240
- "part": "length",
241
- "element": "span",
242
- "required": false,
243
- "purpose": "\"3 days 21 hr\": the duration of the run the pending end would make — a day under the pointer in the grid, or a time in the list — or of the work. A polite live region. data-pending while it is a proposal."
244
- },
245
- {
246
- "part": "limit",
247
- "element": "span",
248
- "required": false,
249
- "purpose": "\"1 hr to 30 days\", drawn while minLength or maxLength is set."
250
- },
251
- {
252
- "part": "presets",
253
- "element": "div",
254
- "required": false,
255
- "purpose": "The row of the consumer’s own shortcuts, rendered from the presets prop, between the band and the panel; it wraps."
256
- },
257
- {
258
- "part": "preset",
259
- "element": "button",
260
- "required": false,
261
- "purpose": "One shortcut, a DateTimeRangePickerPreset. Writes its range with the select reason and carries data-selected while the value equals it."
262
- },
263
- {
264
- "part": "panel",
265
- "element": "div",
266
- "required": false,
267
- "purpose": "The current end, one at a time: data-position=\"start\" or \"end\". The calendar with both dates drawn, and the list of that end beside it, under it where the row cannot hold both."
268
- },
269
- {
270
- "part": "date-panel",
271
- "element": "div",
272
- "required": false,
273
- "purpose": "Inside the panel, before the list: the calendar in range mode — one month by default — with both dates drawn and the pending band date-range-picker gave it. It names itself; nothing is drawn over it."
274
- },
275
- {
276
- "part": "list",
277
- "element": "div",
278
- "required": false,
279
- "purpose": "role=\"listbox\": the times of the current end on its own day, inside that day’s window from both pairs of bounds, and the only thing that scrolls; named by the current tab. data-truncated when it stops at maxOptions."
280
- },
281
- {
282
- "part": "option",
283
- "element": "div",
284
- "required": false,
285
- "purpose": "role=\"option\", one whole time. data-selected for the end this list holds, data-current for the highlight, data-disabled and aria-disabled for a time a bound, the predicate or the other end refuses."
286
- },
287
- {
288
- "part": "option-duration",
289
- "element": "span",
290
- "required": false,
291
- "purpose": "Beside the time, the duration the run would have with the other end — \"15:00 · 1 hr\" — while the two ends are on the same day; across days the band alone says it. renderOption replaces the row’s content, this span included."
292
- },
293
- {
294
- "part": "empty",
295
- "element": "div",
296
- "required": false,
297
- "purpose": "Drawn in place of the list when its day offers no time at all — a closed Saturday, a day outside the bounds."
298
- },
299
- {
300
- "part": "footer",
301
- "element": "div",
302
- "required": false,
303
- "purpose": "The consumer’s own actions, rendered from the footer prop, and done at its reading end."
304
- },
305
- {
306
- "part": "done",
307
- "element": "button",
308
- "required": false,
309
- "purpose": "Closes with what is written: a whole work is emitted as the value first; one end alone stays as it is. Always drawn — a sheet that fills the screen has no outside to press."
139
+ "purpose": "One for each end, posted under startName and endName."
310
140
  }
311
141
  ],
312
142
  "api": [
@@ -315,350 +145,308 @@
315
145
  "type": "DateTimeRange | null",
316
146
  "defaultValue": "—",
317
147
  "appliesTo": "DateTimeRangePicker",
318
- "description": "{ start, end }, each end nullable. Present means the consumer owns it. Both ends null is null."
148
+ "description": "The run held, either end of which may be null. Present means the consumer owns it."
319
149
  },
320
150
  {
321
151
  "name": "defaultValue",
322
152
  "type": "DateTimeRange | null",
323
- "defaultValue": "—",
324
- "appliesTo": "DateTimeRangePicker",
325
- "description": "What it starts from when nobody else writes one. Read once."
326
- },
327
- {
328
- "name": "open",
329
- "type": "boolean",
330
- "defaultValue": "—",
153
+ "defaultValue": "null",
331
154
  "appliesTo": "DateTimeRangePicker",
332
- "description": "Whether the surface is showing. Present means the consumer owns it."
333
- },
334
- {
335
- "name": "defaultOpen",
336
- "type": "boolean",
337
- "defaultValue": "false",
338
- "appliesTo": "DateTimeRangePicker",
339
- "description": "Whether it opens already showing."
155
+ "description": "What it starts from, and returns to on a form reset. Read once."
340
156
  },
341
157
  {
342
158
  "name": "position",
343
159
  "type": "'start' | 'end'",
344
160
  "defaultValue": "—",
345
161
  "appliesTo": "DateTimeRangePicker",
346
- "description": "The end being edited: the field and the panel carrying data-current, and where focus lands when the surface opens. Present means the consumer owns it."
162
+ "description": "The end being edited. Present means the consumer owns it."
347
163
  },
348
164
  {
349
165
  "name": "defaultPosition",
350
166
  "type": "'start' | 'end'",
351
167
  "defaultValue": "start",
352
168
  "appliesTo": "DateTimeRangePicker",
353
- "description": "Where editing starts."
169
+ "description": "The end it starts on."
354
170
  },
355
171
  {
356
- "name": "highlighted",
357
- "type": "{ start: PlainTime | null; end: PlainTime | null }",
172
+ "name": "minLength",
173
+ "type": "number",
358
174
  "defaultValue": "—",
359
175
  "appliesTo": "DateTimeRangePicker",
360
- "description": "The highlighted option of each end’s list. Present means the consumer owns it. Moving it moves no value."
176
+ "description": "The shortest run, in seconds."
361
177
  },
362
178
  {
363
- "name": "defaultHighlighted",
364
- "type": "{ start: PlainTime | null; end: PlainTime | null }",
179
+ "name": "maxLength",
180
+ "type": "number",
365
181
  "defaultValue": "—",
366
182
  "appliesTo": "DateTimeRangePicker",
367
- "description": "Where the highlights start; otherwise a list opens on its end, or on the nearest offered step."
183
+ "description": "The longest run, in seconds."
184
+ },
185
+ {
186
+ "name": "contiguous",
187
+ "type": "boolean",
188
+ "defaultValue": "true",
189
+ "appliesTo": "DateTimeRangePicker",
190
+ "description": "Whether a run may cross an unavailable day."
368
191
  },
369
192
  {
370
193
  "name": "min",
371
194
  "type": "PlainDateTime",
372
195
  "defaultValue": "—",
373
196
  "appliesTo": "DateTimeRangePicker",
374
- "description": "Where the range starts: the earliest whole value. Its time bounds the first day only, the platform’s own rule. Crossed with the work between the two fields."
197
+ "description": "The earliest accepted moment."
375
198
  },
376
199
  {
377
200
  "name": "max",
378
201
  "type": "PlainDateTime",
379
202
  "defaultValue": "—",
380
203
  "appliesTo": "DateTimeRangePicker",
381
- "description": "Where the range ends; its time bounds the last day only."
204
+ "description": "The latest accepted moment."
382
205
  },
383
206
  {
384
207
  "name": "minTime",
385
208
  "type": "PlainTime",
386
209
  "defaultValue": "—",
387
210
  "appliesTo": "DateTimeRangePicker",
388
- "description": "The earliest time on every day inside the range, applied together with min — the pair MUI declines to combine."
211
+ "description": "The earliest time of every day inside the range."
389
212
  },
390
213
  {
391
214
  "name": "maxTime",
392
215
  "type": "PlainTime",
393
216
  "defaultValue": "—",
394
217
  "appliesTo": "DateTimeRangePicker",
395
- "description": "The latest time on every day inside the range."
218
+ "description": "The latest time of every day inside the range."
396
219
  },
397
220
  {
398
221
  "name": "isDateUnavailable",
399
222
  "type": "(date: PlainDate) => boolean",
400
223
  "defaultValue": "—",
401
224
  "appliesTo": "DateTimeRangePicker",
402
- "description": "Refuses whole days. The grid greys them and a list on such a day is empty."
225
+ "description": "Refuses particular dates."
403
226
  },
404
227
  {
405
228
  "name": "isTimeUnavailable",
406
229
  "type": "(time: PlainTime, date: PlainDate) => boolean",
407
230
  "defaultValue": "—",
408
231
  "appliesTo": "DateTimeRangePicker",
409
- "description": "Refuses one time on one day. Asked once per row of a list, on the day that list serves."
410
- },
411
- {
412
- "name": "contiguous",
413
- "type": "boolean",
414
- "defaultValue": "true",
415
- "appliesTo": "DateTimeRangePicker",
416
- "description": "Whether a run may cross an unavailable day. On, and with a start chosen, the days beyond the first unavailable one are refused in the grid, and on the same day the times beyond the first unavailable one in the end list."
417
- },
418
- {
419
- "name": "minLength",
420
- "type": "number",
421
- "defaultValue": "—",
422
- "appliesTo": "DateTimeRangePicker",
423
- "description": "The shortest run allowed, in seconds. The grid and the list refuse shorter ones and the band names the limit."
424
- },
425
- {
426
- "name": "maxLength",
427
- "type": "number",
428
- "defaultValue": "—",
429
- "appliesTo": "DateTimeRangePicker",
430
- "description": "The longest run allowed, in seconds."
232
+ "description": "Refuses particular times of a day."
431
233
  },
432
234
  {
433
235
  "name": "lengthLabel",
434
- "type": "(seconds: number, locale?: string) => string",
435
- "defaultValue": "durationLabel",
236
+ "type": "(seconds: number, locale: string | undefined) => string",
237
+ "defaultValue": "the locale’s",
436
238
  "appliesTo": "DateTimeRangePicker",
437
- "description": "What the band and the rows say for a duration, in the product’s own words. The default writes \"3 days 21 hr\" in the family’s locale."
239
+ "description": "Writes a length in words."
438
240
  },
439
241
  {
440
242
  "name": "step",
441
243
  "type": "number",
442
244
  "defaultValue": "900",
443
245
  "appliesTo": "DateTimeRangePicker",
444
- "description": "Seconds between two offered times, counted from min’s time on the first day and from midnight elsewhere. Ignored when options states the list."
246
+ "description": "Seconds between two offered times, counted from the first of the day."
445
247
  },
446
248
  {
447
249
  "name": "options",
448
250
  "type": "readonly PlainTime[]",
449
251
  "defaultValue": "—",
450
252
  "appliesTo": "DateTimeRangePicker",
451
- "description": "The times to offer, stated rather than stepped; the same list for both ends. The bounds and the predicate still refuse."
253
+ "description": "The times there are, stated rather than stepped, for both ends."
452
254
  },
453
255
  {
454
- "name": "maxOptions",
455
- "type": "number",
456
- "defaultValue": "1440",
256
+ "name": "presets",
257
+ "type": "readonly PickerPreset<DateTimeRange>[]",
258
+ "defaultValue": "—",
457
259
  "appliesTo": "DateTimeRangePicker",
458
- "description": "How many rows a list may reach before it is cut. Cut, the list carries data-truncated and the panel’s description says the rest is typed."
260
+ "description": "The consumer’s own shortcuts."
459
261
  },
460
262
  {
461
- "name": "unavailableOptions",
462
- "type": "'disable' | 'hide'",
463
- "defaultValue": "disable",
263
+ "name": "durations",
264
+ "type": "readonly number[]",
265
+ "defaultValue": "1 to 14 days",
464
266
  "appliesTo": "DateTimeRangePicker",
465
- "description": "What a refused time looks like in a list: drawn muted with aria-disabled, or left out."
267
+ "description": "Lengths the run takes from its start, in seconds. An empty list draws none."
268
+ },
269
+ {
270
+ "name": "confirm",
271
+ "type": "boolean",
272
+ "defaultValue": "true",
273
+ "appliesTo": "DateTimeRangePicker",
274
+ "description": "Whether the panel keeps a draft until Apply."
466
275
  },
467
276
  {
468
277
  "name": "months",
469
278
  "type": "number",
470
- "defaultValue": "1",
279
+ "defaultValue": "2",
471
280
  "appliesTo": "DateTimeRangePicker",
472
- "description": "How many months the grid shows. One, because the list stands beside it; a second wraps under the first where the surface is narrow."
281
+ "description": "How many months the panel shows. One below 760 pixels."
473
282
  },
474
283
  {
475
284
  "name": "weekNumbers",
476
285
  "type": "boolean",
477
- "defaultValue": "—",
286
+ "defaultValue": "false",
478
287
  "appliesTo": "DateTimeRangePicker",
479
- "description": "Draws the ISO week number beside each row of the grid."
288
+ "description": "Draws the ISO week number, as a press that chooses the week."
480
289
  },
481
290
  {
482
291
  "name": "fixedWeeks",
483
292
  "type": "boolean",
484
- "defaultValue": "true",
485
- "appliesTo": "DateTimeRangePicker",
486
- "description": "Six rows whatever the month needs, so a press of \"next\" moves no target."
487
- },
488
- {
489
- "name": "locale",
490
- "type": "string",
491
- "defaultValue": "SlottedProvider",
293
+ "defaultValue": "false",
492
294
  "appliesTo": "DateTimeRangePicker",
493
- "description": "BCP 47. Decides the field order, the digits, the month names, the day-period names and the duration’s units. Unset, the language in force decides."
295
+ "description": "Six rows whatever the months need."
494
296
  },
495
297
  {
496
- "name": "timeZone",
497
- "type": "string",
498
- "defaultValue": "—",
298
+ "name": "granularity",
299
+ "type": "'hour' | 'minute' | 'second'",
300
+ "defaultValue": "minute",
499
301
  "appliesTo": "DateTimeRangePicker",
500
- "description": "The zone \"now\" is read in."
302
+ "description": "The finest unit written."
501
303
  },
502
304
  {
503
305
  "name": "hourCycle",
504
306
  "type": "12 | 24",
505
- "defaultValue": "—",
307
+ "defaultValue": "the locale’s",
506
308
  "appliesTo": "DateTimeRangePicker",
507
- "description": "Twelve- or twenty-four-hour times. Unset, the locale decides."
309
+ "description": "The clock the moments are written on."
508
310
  },
509
311
  {
510
- "name": "granularity",
511
- "type": "'hour' | 'minute' | 'second'",
512
- "defaultValue": "minute",
312
+ "name": "referenceDateTime",
313
+ "type": "PlainDateTime",
314
+ "defaultValue": "now",
513
315
  "appliesTo": "DateTimeRangePicker",
514
- "description": "How much of a time the fields and the rows write."
316
+ "description": "The moment it is, which the distances are counted from."
515
317
  },
516
318
  {
517
- "name": "calendar",
518
- "type": "'gregory'",
519
- "defaultValue": "gregory",
319
+ "name": "relative",
320
+ "type": "boolean",
321
+ "defaultValue": "true",
520
322
  "appliesTo": "DateTimeRangePicker",
521
- "description": "The calendar system. One today."
323
+ "description": "Whether + and - open the duration expression in the fields."
522
324
  },
523
325
  {
524
326
  "name": "firstDayOfWeek",
525
327
  "type": "number",
526
- "defaultValue": "—",
328
+ "defaultValue": "the locale’s",
527
329
  "appliesTo": "DateTimeRangePicker",
528
- "description": "Which day the grid’s week starts on. Unset, the locale decides."
330
+ "description": "0 is Sunday."
529
331
  },
530
332
  {
531
333
  "name": "yearPivot",
532
334
  "type": "number",
533
335
  "defaultValue": "—",
534
336
  "appliesTo": "DateTimeRangePicker",
535
- "description": "The pivot two typed year digits are resolved through."
337
+ "description": "How a two-digit typed year resolves."
536
338
  },
537
339
  {
538
- "name": "referenceDateTime",
539
- "type": "PlainDateTime",
540
- "defaultValue": "—",
541
- "appliesTo": "DateTimeRangePicker",
542
- "description": "What \"now\" is, for a story or a test; the clock otherwise. Anchors now, the day the panel opens on, and the relative expression."
543
- },
544
- {
545
- "name": "size",
546
- "type": "'sm' | 'md' | 'lg'",
547
- "defaultValue": "md",
548
- "appliesTo": "DateTimeRangePicker",
549
- "description": "The control scale of the frame."
550
- },
551
- {
552
- "name": "variant",
553
- "type": "'outline' | 'subtle' | 'plain'",
554
- "defaultValue": "outline",
340
+ "name": "calendar",
341
+ "type": "'gregory'",
342
+ "defaultValue": "gregory",
555
343
  "appliesTo": "DateTimeRangePicker",
556
- "description": "How much frame the control shows at rest."
344
+ "description": "The calendar system."
557
345
  },
558
346
  {
559
- "name": "placement",
560
- "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
561
- "defaultValue": "bottom-start",
347
+ "name": "startName",
348
+ "type": "string",
349
+ "defaultValue": "—",
562
350
  "appliesTo": "DateTimeRangePicker",
563
- "description": "Where the surface opens, before the positioner has read the room."
351
+ "description": "The name a form posts the start under."
564
352
  },
565
353
  {
566
- "name": "closeOnSelect",
567
- "type": "'auto' | 'always' | 'never'",
568
- "defaultValue": "auto",
354
+ "name": "endName",
355
+ "type": "string",
356
+ "defaultValue": "—",
569
357
  "appliesTo": "DateTimeRangePicker",
570
- "description": "auto closes when a press completes the work; always closes on any press that changes the value; never closes on none."
358
+ "description": "The name a form posts the end under."
571
359
  },
572
360
  {
573
- "name": "disabled",
361
+ "name": "invalid",
574
362
  "type": "boolean",
575
363
  "defaultValue": "—",
576
364
  "appliesTo": "DateTimeRangePicker",
577
- "description": "Nothing answers; the value stays readable."
365
+ "description": "Stated by the consumer; a run that fails a rule is invalid without it."
578
366
  },
579
367
  {
580
- "name": "readOnly",
368
+ "name": "open",
581
369
  "type": "boolean",
582
370
  "defaultValue": "—",
583
371
  "appliesTo": "DateTimeRangePicker",
584
- "description": "Legible and copyable; the trigger and the clear are out of the tab sequence."
372
+ "description": "Whether the panel is showing. Present means the consumer owns it."
585
373
  },
586
374
  {
587
- "name": "invalid",
375
+ "name": "defaultOpen",
588
376
  "type": "boolean",
589
- "defaultValue": "—",
377
+ "defaultValue": "false",
590
378
  "appliesTo": "DateTimeRangePicker",
591
- "description": "The consumer’s own word. Set, it wins; unset, the family’s own rules and the field around it decide."
379
+ "description": "Whether it starts open when nobody else says. Read once."
592
380
  },
593
381
  {
594
- "name": "required",
595
- "type": "boolean",
596
- "defaultValue": "—",
382
+ "name": "placement",
383
+ "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
384
+ "defaultValue": "bottom-start",
597
385
  "appliesTo": "DateTimeRangePicker",
598
- "description": "Reaches both fields as aria-required."
386
+ "description": "Where the panel opens, before the positioner has read the room."
599
387
  },
600
388
  {
601
- "name": "clearable",
602
- "type": "boolean",
603
- "defaultValue": "false",
389
+ "name": "size",
390
+ "type": "'sm' | 'md' | 'lg'",
391
+ "defaultValue": "md",
604
392
  "appliesTo": "DateTimeRangePicker",
605
- "description": "Draws one clear on the frame, which empties both ends."
393
+ "description": "The height of the control. The field around it answers when the picker does not."
606
394
  },
607
395
  {
608
- "name": "relative",
609
- "type": "boolean",
610
- "defaultValue": "—",
396
+ "name": "variant",
397
+ "type": "'outline' | 'subtle' | 'plain'",
398
+ "defaultValue": "outline",
611
399
  "appliesTo": "DateTimeRangePicker",
612
- "description": "Whether the field in the band takes the relative expression — +2d, 1h30, = — the way a datetime-field does."
400
+ "description": "How the control draws its frame."
613
401
  },
614
402
  {
615
- "name": "messages",
616
- "type": "Partial<DatetimeRangePickerMessages>",
617
- "defaultValue": "—",
403
+ "name": "locale",
404
+ "type": "string",
405
+ "defaultValue": "the language in force",
618
406
  "appliesTo": "DateTimeRangePicker",
619
- "description": "Words laid over the language in force, key by key: the two ends (start, end), the trigger’s names (choose; change with {start}, {end} and {length}; changeReversed), the hint (chooseDay with {end}; chooseTime with {end} and {day}; order, length, unavailable, bounds), the limit (limit.between, limit.atLeast, limit.atMost), now, done, clear, and a panel that is empty or cut short (empty, truncated)."
407
+ "description": "BCP 47. Writes the field, the panel and the trigger’s name."
620
408
  },
621
409
  {
622
- "name": "startName",
410
+ "name": "timeZone",
623
411
  "type": "string",
624
- "defaultValue": "—",
412
+ "defaultValue": "the runtime’s",
625
413
  "appliesTo": "DateTimeRangePicker",
626
- "description": "The name of the hidden input carrying the start."
414
+ "description": "Which zone answers \"what is now\"."
627
415
  },
628
416
  {
629
- "name": "endName",
630
- "type": "string",
417
+ "name": "disabled",
418
+ "type": "boolean",
631
419
  "defaultValue": "—",
632
420
  "appliesTo": "DateTimeRangePicker",
633
- "description": "The name of the hidden input carrying the end."
421
+ "description": "Answers no key and no press."
634
422
  },
635
423
  {
636
- "name": "presets",
637
- "type": "ReactNode",
424
+ "name": "readOnly",
425
+ "type": "boolean",
638
426
  "defaultValue": "—",
639
427
  "appliesTo": "DateTimeRangePicker",
640
- "description": "The consumer’s shortcuts, as DateTimeRangePickerPreset elements."
428
+ "description": "Readable and not changeable."
641
429
  },
642
430
  {
643
- "name": "footer",
644
- "type": "ReactNode",
431
+ "name": "required",
432
+ "type": "boolean",
645
433
  "defaultValue": "—",
646
434
  "appliesTo": "DateTimeRangePicker",
647
- "description": "The consumer’s own actions, under the lists."
435
+ "description": "The form needs a value."
648
436
  },
649
437
  {
650
- "name": "renderOption",
651
- "type": "(state: DateTimeRangePickerOptionState) => ReactNode",
652
- "defaultValue": "—",
438
+ "name": "clearable",
439
+ "type": "boolean",
440
+ "defaultValue": "false",
653
441
  "appliesTo": "DateTimeRangePicker",
654
- "description": "What one row draws. The state carries the end, the day the list serves, the time, its label, its duration, and whether it is selected, current or unavailable."
442
+ "description": "Draws a clear on the control."
655
443
  },
656
444
  {
657
- "name": "value",
658
- "type": "DateTimeRange | (() => DateTimeRange)",
445
+ "name": "messages",
446
+ "type": "Partial<DatetimeRangePickerMessages>",
659
447
  "defaultValue": "—",
660
- "appliesTo": "DateTimeRangePickerPreset",
661
- "description": "The range the press writes, or a function resolving it at the press."
448
+ "appliesTo": "DateTimeRangePicker",
449
+ "description": "Words laid over the language in force: the trigger’s names, the two ends, the limits, and what is said of a refused run."
662
450
  }
663
451
  ],
664
452
  "composition": [
@@ -667,72 +455,67 @@
667
455
  "type": "component",
668
456
  "defaultValue": "—",
669
457
  "appliesTo": "application",
670
- "description": "Sets timeZone, calendar, firstDayOfWeek, months, hourCycle, granularity, step, maxOptions, unavailableOptions, closeOnSelect, placement, size, variant and lengthLabel once for everything under it. The locale and the words come from SlottedProvider."
458
+ "description": "Sets calendar, confirm, firstDayOfWeek, granularity, hourCycle, lengthLabel, months, placement, size, step, timeZone and variant once."
671
459
  },
672
460
  {
673
- "name": "DateTimeRangePickerPreset",
674
- "type": "component",
675
- "defaultValue": "—",
676
- "appliesTo": "presets",
677
- "description": "One shortcut inside presets. Takes every button prop, composes onClick, and takes render to substitute its element."
461
+ "name": "footer",
462
+ "type": "ReactNode",
463
+ "defaultValue": "the limits, the zone or the step",
464
+ "appliesTo": "DateTimeRangePicker",
465
+ "description": "What the footer says when nothing is wrong."
466
+ },
467
+ {
468
+ "name": "renderSlot",
469
+ "type": "(state: DateTimeRangePickerSlotState) => ReactNode",
470
+ "defaultValue": "the time",
471
+ "appliesTo": "DateTimeRangePicker",
472
+ "description": "What one whole time of options draws."
678
473
  },
679
474
  {
680
475
  "name": "render",
681
476
  "type": "(props: DateTimeRangePickerRootProps) => ReactNode",
682
477
  "defaultValue": "—",
683
478
  "appliesTo": "DateTimeRangePicker",
684
- "description": "Substitutes the element the root renders. The props carry the ref, which the positioner measures its anchor through."
479
+ "description": "Substitutes the element the root renders."
685
480
  },
686
481
  {
687
482
  "name": "ref",
688
483
  "type": "Ref<DateTimeRangePickerHandle>",
689
484
  "defaultValue": "—",
690
485
  "appliesTo": "DateTimeRangePicker",
691
- "description": "focus() puts the reader on the trigger; open() and close() move the surface without a controlled prop."
692
- },
693
- {
694
- "name": "onKeyDown",
695
- "type": "KeyboardEventHandler",
696
- "defaultValue": "—",
697
- "appliesTo": "DateTimeRangePicker",
698
- "description": "Runs before the trigger, the tabs and the list read a key, and calling preventDefault stops them."
486
+ "description": "focus(), open() and close()."
699
487
  }
700
488
  ],
701
489
  "events": [
702
490
  {
703
491
  "name": "onValueChange",
704
492
  "payload": "(value: DateTimeRange | null, request: ChangeRequest<DateTimeRange | null>)",
705
- "when": "Before the value moves, and cancellable. keyboard, blur or clear when an end was typed in the band, select when a press in the grid or the list, now, done or a preset completed the work or changed a whole one, clear for the clear button. A press that leaves a half missing emits nothing."
493
+ "when": "Before the value moves, and cancellable: from Apply, and from the clear of the frame."
706
494
  },
707
495
  {
708
496
  "name": "onOpenChange",
709
497
  "payload": "(open: boolean, request: ChangeRequest<boolean>)",
710
- "when": "Before the surface opens or closes, and cancellable. pointer for the trigger and for done, keyboard for a key on the trigger, escape for the key, outsidePress for a press elsewhere, select for a press that completed the work."
498
+ "when": "Before the panel opens or closes, with the reason."
711
499
  },
712
500
  {
713
501
  "name": "onPositionChange",
714
- "payload": "(position: 'start' | 'end', request: ChangeRequest<'start' | 'end'>)",
715
- "when": "Before the current end moves. pointer for a press on a tab, keyboard for the arrows on one, select when a press in the grid, the list or a preset moved it, clear for the clear button, programmatic when the panel opened on the first end with a half missing."
716
- },
717
- {
718
- "name": "onHighlightedChange",
719
- "payload": "(value: { start; end }, request: ChangeRequest<{ start; end }>)",
720
- "when": "Before a highlight moves in either list. keyboard for the arrows and type-ahead, pointer for a press, programmatic when a list opened or changed under it."
502
+ "payload": "(position: DateTimeRangePickerPosition, request: ChangeRequest<DateTimeRangePickerPosition>)",
503
+ "when": "Before the end being edited moves."
721
504
  }
722
505
  ],
723
506
  "accessibility": [
724
- "The trigger’s accessible name carries both ends in words and the duration — \"Change range, 12 September 2026 at 14:00 – 16 September 2026 at 11:00, 3 days 21 hr\". Focus returns to it when the surface closes; the summary’s ellipsis removes nothing a screen-reader user cannot hear.",
725
- "The two ends are a tablist with automatic activation, and the panel is one end at a time: a grid and a listbox, the listbox named by the current tab, so \"Pickup, 12 Sep, 14:00\" is heard before the first option. The hint is the list’s description, so what to choose next — the day, then the time — is read with it.",
726
- "The duration is a polite live region: a sighted reader sees it follow the pointer across the grid and beside every row of a same-day list; a screen-reader user hears it on every arrow.",
727
- "The rule datetime-picker wrote, once per end: a press that leaves a half missing carries focus to it — the grid for a date, the list for a time, the tab moving when it is the other end’s — and the press that completes the work closes the panel. A half-drawn run never reaches a form. Done is the way out when nothing closed it.",
728
- "Typing lives in the band: Enter on the trigger opens onto the first segment of the current end’s field, and the field keeps every key a datetime-field has. On a coarse pointer the field is not drawn and Enter opens onto the grid. Escape is staged: the field’s expression first, the calendar’s view second, the surface last."
507
+ "The trigger says aria-haspopup=\"dialog\" and its name carries the value written, which is where focus returns when the panel closes.",
508
+ "The panel is a dialog with its Tab wrapped, and each grid inside it is one stop.",
509
+ "Escape discards the draft and returns focus to the trigger. Ctrl+Enter applies from anywhere in the panel.",
510
+ "The footer’s hint is a status region, so the reason Apply is off is spoken as well as drawn.",
511
+ "Alt+ArrowDown opens the panel and leaves focus in the field, so the segments keep every key they had.",
512
+ "The length between the two halves is a status region, so a reader hears it on every arrow in the months and on every step.",
513
+ "The press that leaves a half missing carries focus to its grid, so the four halves are one path and not four searches."
729
514
  ]
730
515
  }
731
516
  },
732
517
  "tokens": [
733
- "--slotted-border-strong",
734
518
  "--slotted-border-subtle",
735
- "--slotted-border-width-thin",
736
519
  "--slotted-control-border-color",
737
520
  "--slotted-control-border-width",
738
521
  "--slotted-control-font-family",
@@ -765,252 +548,192 @@
765
548
  "--slotted-datetime-range-picker-background",
766
549
  "--slotted-datetime-range-picker-border-color",
767
550
  "--slotted-datetime-range-picker-color",
768
- "--slotted-datetime-range-picker-content-border-color",
769
- "--slotted-datetime-range-picker-content-color",
770
- "--slotted-datetime-range-picker-content-max-inline-size",
771
- "--slotted-datetime-range-picker-content-padding",
772
- "--slotted-datetime-range-picker-content-radius",
773
- "--slotted-datetime-range-picker-content-shadow",
774
- "--slotted-datetime-range-picker-current-color",
775
- "--slotted-datetime-range-picker-current-size",
776
551
  "--slotted-datetime-range-picker-disabled-background",
777
552
  "--slotted-datetime-range-picker-disabled-border-color",
778
553
  "--slotted-datetime-range-picker-disabled-color",
779
- "--slotted-datetime-range-picker-done-active-background",
780
- "--slotted-datetime-range-picker-done-background",
781
- "--slotted-datetime-range-picker-done-color",
782
- "--slotted-datetime-range-picker-done-hover-background",
783
- "--slotted-datetime-range-picker-hint-color",
784
554
  "--slotted-datetime-range-picker-hover-border-color",
785
555
  "--slotted-datetime-range-picker-invalid-border-color",
786
- "--slotted-datetime-range-picker-invalid-color",
787
556
  "--slotted-datetime-range-picker-invalid-edge-width",
788
557
  "--slotted-datetime-range-picker-invalid-focus-ring-color",
789
- "--slotted-datetime-range-picker-label-color",
790
- "--slotted-datetime-range-picker-length-color",
791
- "--slotted-datetime-range-picker-limit-color",
792
- "--slotted-datetime-range-picker-list-block-size",
793
- "--slotted-datetime-range-picker-list-min-inline-size",
794
- "--slotted-datetime-range-picker-now-color",
795
- "--slotted-datetime-range-picker-option-current-background",
796
- "--slotted-datetime-range-picker-option-hover-background",
797
- "--slotted-datetime-range-picker-option-radius",
798
- "--slotted-datetime-range-picker-option-selected-background",
799
- "--slotted-datetime-range-picker-option-selected-color",
800
- "--slotted-datetime-range-picker-option-selected-hover-background",
801
558
  "--slotted-datetime-range-picker-placeholder-color",
802
559
  "--slotted-datetime-range-picker-plain-hover-background",
803
- "--slotted-datetime-range-picker-preset-active-background",
804
- "--slotted-datetime-range-picker-preset-background",
805
- "--slotted-datetime-range-picker-preset-hover-background",
806
- "--slotted-datetime-range-picker-preset-radius",
807
- "--slotted-datetime-range-picker-preset-selected-background",
808
- "--slotted-datetime-range-picker-preset-selected-color",
809
560
  "--slotted-datetime-range-picker-radius",
810
561
  "--slotted-datetime-range-picker-readonly-background",
811
562
  "--slotted-datetime-range-picker-shadow",
812
- "--slotted-datetime-range-picker-sheet-inline-size",
813
563
  "--slotted-datetime-range-picker-subtle-background",
814
564
  "--slotted-datetime-range-picker-subtle-border-color",
815
565
  "--slotted-datetime-range-picker-subtle-hover-background",
816
- "--slotted-datetime-range-picker-surface",
817
- "--slotted-datetime-range-picker-tab-block-size",
818
566
  "--slotted-disabled-background",
819
567
  "--slotted-disabled-border",
820
568
  "--slotted-disabled-foreground",
821
- "--slotted-drawer-resizer-line-color",
822
- "--slotted-duration-medium",
823
- "--slotted-duration-short",
824
- "--slotted-easing-enter",
825
- "--slotted-easing-exit",
826
569
  "--slotted-focus-ring-color",
827
570
  "--slotted-focus-ring-color-invalid",
828
571
  "--slotted-focus-ring-offset",
829
572
  "--slotted-focus-ring-width",
830
- "--slotted-font-size-sm",
831
- "--slotted-font-size-xs",
832
- "--slotted-font-weight-medium",
833
- "--slotted-font-weight-regular",
834
- "--slotted-font-weight-semibold",
835
- "--slotted-letter-spacing-wide",
836
- "--slotted-line-height-sm",
837
- "--slotted-radius-full",
838
- "--slotted-radius-lg",
839
573
  "--slotted-radius-none",
840
- "--slotted-radius-pill",
841
- "--slotted-radius-sm",
842
- "--slotted-radius-xs",
843
- "--slotted-shadow-md",
844
574
  "--slotted-space-1",
845
- "--slotted-space-11",
846
575
  "--slotted-space-2",
847
- "--slotted-space-3",
848
- "--slotted-space-4",
849
- "--slotted-space-5",
850
- "--slotted-space-9",
851
- "--slotted-surface-raised",
852
576
  "--slotted-surface-sunken",
853
577
  "--slotted-target-comfortable",
854
578
  "--slotted-target-min",
855
579
  "--slotted-text",
856
580
  "--slotted-text-muted",
857
581
  "--slotted-tone-accent-border",
858
- "--slotted-tone-accent-on-solid",
859
- "--slotted-tone-accent-solid",
860
- "--slotted-tone-accent-solid-active",
861
- "--slotted-tone-accent-solid-hover",
862
- "--slotted-tone-accent-subtle-hover",
863
- "--slotted-tone-accent-text",
864
582
  "--slotted-tone-danger-border",
865
- "--slotted-tone-danger-text",
866
- "--slotted-tone-secondary-subtle",
867
583
  "--slotted-tone-secondary-subtle-active",
868
- "--slotted-tone-secondary-subtle-hover",
869
- "--slotted-z-index-popover"
584
+ "--slotted-tone-secondary-subtle-hover"
870
585
  ],
871
586
  "examples": [
872
587
  {
873
588
  "id": "playground",
874
589
  "title": "Playground",
875
- "note": "A car picked up on the 12th and returned on the 16th. The frame is one line: press it and the two tabs, the field, the hint, the calendar and the list of the current end open under it. Every prop is on the controls panel.",
590
+ "note": "A day, its time, the other day, its time: each press brings the grid of the half that is missing, and Apply writes the run.",
876
591
  "language": "tsx",
877
- "source": "<Field>\n <FieldLabel>Pickup and return</FieldLabel>\n <DateTimeRangePicker\n clearable\n defaultValue={rental}\n locale=\"pt-BR\"\n messages={{ start: 'Pickup', end: 'Return' }}\n />\n</Field>;\n",
592
+ "source": "<DateTimeRangePicker defaultValue={RENTAL} />;\n",
878
593
  "verdict": "excerpt"
879
594
  },
880
595
  {
881
596
  "id": "panel",
882
- "title": "One end at a time",
883
- "note": "Already open: two tabs say the two ends, and the panel shows the one being chosen — the calendar with both dates drawn, and the list of that end running on its day. Press a day: the run restarts on it, and the end’s time is kept.",
597
+ "title": "Two months and two clocks",
598
+ "note": "The run is drawn over its months, both ends are typed or pressed, and each clock answers the day of its own end.",
884
599
  "language": "tsx",
885
- "source": "<DateTimeRangePicker defaultOpen defaultValue={rental} locale=\"pt-BR\" />;\n",
600
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} defaultOpen />;\n",
886
601
  "verdict": "excerpt"
887
602
  },
888
603
  {
889
- "id": "completeness",
890
- "title": "Focus follows the missing half",
891
- "note": "Press a day: focus moves to the list, because the start has no time. Press a time: the tab moves to the return and focus goes back to the grid, because the return has no date. Press a day and then a time: the work is whole and the surface closes. The hint says each step.",
604
+ "id": "length",
605
+ "title": "The length",
606
+ "note": "One day of the end either way, between the two ends. lengthLabel writes it in the product’s own words.",
892
607
  "language": "tsx",
893
- "source": "<DateTimeRangePicker defaultOpen locale=\"pt-BR\" />;\n",
608
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} />;\n",
894
609
  "verdict": "excerpt"
895
610
  },
896
611
  {
897
- "id": "length",
898
- "title": "The duration, while the run is drawn",
899
- "note": "Move along the grid: the band says the days and hours the rental would last for the day under you, with the time the end already holds. On the same day, every row of the end list says it too.",
612
+ "id": "durations",
613
+ "title": "Durations",
614
+ "note": "Lengths the run takes from its start. One a rule refuses is off, and an empty list draws none.",
900
615
  "language": "tsx",
901
- "source": "<DateTimeRangePicker defaultValue={{ start: pickup, end: null }} locale=\"pt-BR\" />;\n",
616
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} durations={[43200, 86400, 604800]} />;\n",
902
617
  "verdict": "excerpt"
903
618
  },
904
619
  {
905
620
  "id": "limits",
906
- "title": "Limits, explained",
907
- "note": "A rental lasts an hour to thirty days. With a pickup chosen, the grid refuses the days past the thirtieth, the end list refuses the times inside the first hour, and the band says the rule. minLength and maxLength are seconds.",
621
+ "title": "The shortest and the longest run",
622
+ "note": "In seconds, the unit step is written in. A run that is over says by how much, marks its days, and turns Apply off.",
908
623
  "language": "tsx",
909
- "source": "<DateTimeRangePicker maxLength={30 * 86400} minLength={3600} />;\n",
624
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} maxLength={604800} minLength={86400} />;\n",
910
625
  "verdict": "excerpt"
911
626
  },
912
627
  {
913
628
  "id": "day-window",
914
- "title": "Two bounds, and the day they meet on",
915
- "note": "The agency opens from 08:00 to 18:00, and the fleet is booked from the 10th at 09:00. min and minTime both apply: on the 10th the lists start at 09:00, on every later day at 08:00 — the rule MUI declines.",
629
+ "title": "The hours of every day",
630
+ "note": "min and max bound the whole run, and minTime and maxTime bound every day inside it. Each clock runs on the day of its own end.",
916
631
  "language": "tsx",
917
- "source": "<DateTimeRangePicker\n max={{ date: plainDate(2026, 12, 20), time: plainTime(18) }}\n maxTime={plainTime(18)}\n min={{ date: plainDate(2026, 9, 10), time: plainTime(9) }}\n minTime={plainTime(8)}\n/>;\n",
632
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} maxTime={EIGHT_PM} minTime={EIGHT} />;\n",
918
633
  "verdict": "excerpt"
919
634
  },
920
635
  {
921
636
  "id": "unavailable",
922
- "title": "Unavailable days and times",
923
- "note": "The agency is closed on Sundays, and closes at noon on Saturdays. isDateUnavailable greys the Sundays; isTimeUnavailable empties the afternoon of a Saturday, on that day only. A rental cannot cross a Sunday while it is contiguous.",
637
+ "title": "Days the product refuses",
638
+ "note": "A run may not cross an unavailable day while contiguous holds, and the grid refuses the days beyond it.",
639
+ "language": "tsx",
640
+ "source": "<DateTimeRangePicker {...BASE} isDateUnavailable={isTaken} />;\n",
641
+ "verdict": "excerpt"
642
+ },
643
+ {
644
+ "id": "explicit",
645
+ "title": "Whole times",
646
+ "note": "options states the times there are, for both ends, under the part of the day each one is in.",
924
647
  "language": "tsx",
925
- "source": "<DateTimeRangePicker\n isDateUnavailable={(date) => dayOfWeek(date) === 0}\n isTimeUnavailable={(time, date) => dayOfWeek(date) === 6 && time.hour >= 12}\n/>;\n",
648
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} options={DESK} />;\n",
926
649
  "verdict": "excerpt"
927
650
  },
928
651
  {
929
652
  "id": "months",
930
653
  "title": "Months",
931
- "note": "One month by default, because the list stands beside the grid and two months beside a list do not fit in 720 pixels. Ask for two: the list drops under the grid where the row is too narrow.",
654
+ "note": "Two by default, over two clocks of the same width. One in one column, and one where a run stays inside a month.",
932
655
  "language": "tsx",
933
- "source": "<DateTimeRangePicker months={2} />;\n",
656
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} months={1} />;\n",
934
657
  "verdict": "excerpt"
935
658
  },
936
659
  {
937
- "id": "now",
938
- "title": "Now",
939
- "note": "\"Now\" writes the current date and time into the current end, both halves, and the focus rule takes over. referenceDateTime fixes the clock for a story or a test.",
660
+ "id": "presets",
661
+ "title": "Shortcuts",
662
+ "note": "A label and a run, or a function that resolves one. The panel writes the two days, and a run the rules refuse is off.",
940
663
  "language": "tsx",
941
- "source": "<DateTimeRangePicker messages={{ now: 'Agora' }} referenceDateTime={now} />;\n",
664
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} presets={PRESETS} />;\n",
942
665
  "verdict": "excerpt"
943
666
  },
944
667
  {
945
- "id": "presets",
946
- "title": "Presets",
947
- "note": "The rentals the agency offers by name. Each is a DateTimeRangePickerPreset with its own range; pressing one writes the value and closes, and the one equal to the value is marked. The list is the product’s.",
668
+ "id": "confirm",
669
+ "title": "With and without a confirmation",
670
+ "note": "The panel keeps a draft until Apply. confirm={false} writes a whole run on every change, and closes on the press that completes it.",
948
671
  "language": "tsx",
949
- "source": "<DateTimeRangePicker\n presets={\n <>\n <DateTimeRangePickerPreset value={weekend}>Weekend</DateTimeRangePickerPreset>\n <DateTimeRangePickerPreset value={() => week(pickup)}>One week</DateTimeRangePickerPreset>\n </>\n }\n/>;\n",
672
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} />;\n",
950
673
  "verdict": "excerpt"
951
674
  },
952
675
  {
953
676
  "id": "open-end",
954
- "title": "One end only",
955
- "note": "A pickup and no return, written where the reader sees it. Open the surface: it opens on the return tab, the grid holds the start of an open run, and the list runs on the day the grid has focused until a return day is pressed.",
677
+ "title": "An open end",
678
+ "note": "A start with no end is a value a filter may hold, and the dash says so.",
956
679
  "language": "tsx",
957
- "source": "<DateTimeRangePicker clearable defaultValue={{ start: pickup, end: null }} />;\n",
680
+ "source": "<DateTimeRangePicker {...BASE} defaultPosition=\"end\" defaultValue={OPEN} />;\n",
958
681
  "verdict": "excerpt"
959
682
  },
960
683
  {
961
684
  "id": "sizes",
962
685
  "title": "Size",
963
- "note": "The three steps the frame takes. Type, height, gutter and the clear’s box follow the control scales, so a rental in a dense fleet table shrinks whole rather than in parts.",
686
+ "note": "The three heights every control has. The panel keeps its own measures at each of them.",
964
687
  "language": "tsx",
965
- "source": "<>\n <DateTimeRangePicker size=\"sm\" />\n <DateTimeRangePicker size=\"md\" />\n <DateTimeRangePicker size=\"lg\" />\n</>;\n",
688
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} size=\"sm\" />;\n",
966
689
  "verdict": "excerpt"
967
690
  },
968
691
  {
969
692
  "id": "variants",
970
693
  "title": "Variant",
971
- "note": "How much frame the control shows at rest. plain is for a box that belongs to something else — a table cell — and draws its ring inward.",
694
+ "note": "The three frames every field has, so a picker stands beside a field of its own variant.",
972
695
  "language": "tsx",
973
- "source": "<>\n <DateTimeRangePicker variant=\"outline\" />\n <DateTimeRangePicker variant=\"subtle\" />\n <DateTimeRangePicker variant=\"plain\" />\n</>;\n",
696
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} variant=\"outline\" />;\n",
974
697
  "verdict": "excerpt"
975
698
  },
976
699
  {
977
700
  "id": "states",
978
701
  "title": "States",
979
- "note": "Read-only, disabled, invalid from the family and invalid from the consumer. A return before its pickup is invalid on the end field and on the frame, and nothing is swapped.",
702
+ "note": "Each is the frame’s own, and the trigger answers it.",
980
703
  "language": "tsx",
981
- "source": "<>\n <DateTimeRangePicker defaultValue={rental} readOnly />\n <DateTimeRangePicker defaultValue={rental} disabled />\n <DateTimeRangePicker defaultValue={{ start: dropoff, end: pickup }} />\n <Field invalid>\n <DateTimeRangePicker defaultValue={rental} />\n </Field>\n</>;\n",
704
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} disabled />;\n",
982
705
  "verdict": "excerpt"
983
706
  },
984
707
  {
985
708
  "id": "forms",
986
- "title": "Forms",
987
- "note": "Two hidden inputs under startName and endName send YYYY-MM-DDTHH:mm:ss with a plain form post, whether the reader typed the values or pressed them.",
709
+ "title": "In a form",
710
+ "note": "startName and endName post the two moments, a reset returns to the first run, and a Field names the frame and not the panel.",
988
711
  "language": "tsx",
989
- "source": "<form onSubmit={onSubmit}>\n <DateTimeRangePicker endName=\"devolucao\" required startName=\"retirada\" />\n <Button type=\"submit\">Reservar</Button>\n</form>;\n",
712
+ "source": "<Field>\n <FieldLabel>Rental</FieldLabel>\n <DateTimeRangePicker endName=\"to\" startName=\"from\" />\n</Field>;\n",
990
713
  "verdict": "excerpt"
991
714
  },
992
715
  {
993
716
  "id": "narrow",
994
- "title": "Narrow",
995
- "note": "In a column narrower than the value the frame stays one line and the summary is cut with an ellipsis; the trigger’s name carries it whole. Open it: the list drops under the grid.",
717
+ "title": "One column",
718
+ "note": "Under 760 pixels the two ends are written as a day and a time, and each is a press that brings its grid. On a finger it is a sheet.",
996
719
  "language": "tsx",
997
- "source": "<DateTimeRangePicker defaultValue={rental} locale=\"pt-BR\" />;\n",
720
+ "source": "<DateTimeRangePicker {...BASE} defaultValue={RENTAL} presets={PRESETS} />;\n",
998
721
  "verdict": "excerpt"
999
722
  },
1000
723
  {
1001
724
  "id": "composition",
1002
- "title": "Composition",
1003
- "note": "The provider sets the months, the step and how a duration is written once, SlottedProvider the language and every word; the handle opens, closes and focuses; renderOption replaces what a row draws; position — which tab — is the consumer’s to own.",
725
+ "title": "Composition and escape hatches",
726
+ "note": "The consumer may own the value, the open state and the end being edited, and a provider states the shape once.",
1004
727
  "language": "tsx",
1005
- "source": "<SlottedProvider locale=\"pt-BR\">\n <DateTimeRangePickerDefaultsProvider months={2}>\n <DateTimeRangePicker ref={handle} />\n </DateTimeRangePickerDefaultsProvider>\n</SlottedProvider>;\n",
728
+ "source": "<DateTimeRangePicker footer=\"Keys at the desk\" onValueChange={setRun} value={run} />;\n",
1006
729
  "verdict": "excerpt"
1007
730
  },
1008
731
  {
1009
732
  "id": "keyboard",
1010
- "title": "Keyboard",
1011
- "note": "Enter opens onto the field of the current end; ArrowDown opens onto the grid, on its day. ArrowLeft and ArrowRight on a tab move to the other end. In the grid, the arrows move by day and the band says the duration; Enter writes a date and carries focus to the list. Escape walks the calendar down a view, then abandons the work.",
733
+ "title": "The keyboard",
734
+ "note": "The fields, the months and the clocks keep their keys.",
1012
735
  "language": "tsx",
1013
- "source": "// Enter, Space open onto the current end's field\n// ArrowDown, Alt+Down open onto the current end's day in the grid\n// ArrowLeft, Right on a tab: the other end, and its panel\n// the grid's keys calendar's, unchanged; the band says the duration\n// Arrows, Page keys move the list's highlight; Enter writes the time\n// Escape the calendar's view, then close and abandon\n// Tab tabs, field, now, presets, grid, list, footer, done\n",
736
+ "source": "// Enter, Space, ArrowDown opens on the day of the current end\n// Arrows, Home, End move in the months, and in a grid of a clock\n// PageUp / PageDown turn the month, and with Shift the year\n// Enter / Space chooses, and brings the half that is missing\n// Ctrl + Enter applies\n// Escape walks down a view, then discards and closes\n",
1014
737
  "verdict": "excerpt"
1015
738
  }
1016
739
  ]