@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,11 +25,6 @@
25
25
  "top",
26
26
  "top-end"
27
27
  ],
28
- "closeOnSelect": [
29
- "auto",
30
- "always",
31
- "never"
32
- ],
33
28
  "count": [
34
29
  "days",
35
30
  "nights"
@@ -40,6 +35,10 @@
40
35
  ],
41
36
  "calendar": [
42
37
  "gregory"
38
+ ],
39
+ "confirm": [
40
+ "on",
41
+ "off"
43
42
  ]
44
43
  },
45
44
  "members": {
@@ -49,12 +48,12 @@
49
48
  "size": "md",
50
49
  "variant": "outline",
51
50
  "placement": "bottom-start",
52
- "closeOnSelect": "auto",
53
51
  "count": "days",
54
52
  "months": 2,
55
53
  "contiguous": true,
56
54
  "calendar": "gregory",
57
- "clearable": false
55
+ "clearable": false,
56
+ "confirm": true
58
57
  },
59
58
  "capabilities": [
60
59
  "value",
@@ -80,8 +79,7 @@
80
79
  "readonly",
81
80
  "required",
82
81
  "open",
83
- "current",
84
- "selected"
82
+ "current"
85
83
  ],
86
84
  "parts": [
87
85
  "root",
@@ -90,141 +88,57 @@
90
88
  "separator",
91
89
  "end",
92
90
  "clear",
93
- "trigger",
94
- "positioner",
95
- "content",
96
- "grip",
97
- "head",
98
- "head-start",
99
- "head-end",
100
- "length",
101
- "limit",
102
- "panels",
103
- "presets",
104
- "preset",
105
- "footer"
91
+ "trigger"
106
92
  ]
107
93
  }
108
94
  },
109
95
  "docs": {
110
96
  "dateRangePicker": {
111
97
  "imports": {
112
- "source": "import { DateRangePicker, DateRangePickerDefaultsProvider, DateRangePickerPreset } from '@slotted/react';"
98
+ "source": "import { DateRangePicker, DateRangePickerDefaultsProvider } from '@slotted/react';"
113
99
  },
114
100
  "anatomy": [
115
101
  {
116
102
  "part": "root",
117
103
  "element": "div, or the element render returns",
118
104
  "required": true,
119
- "purpose": "The outer box, carrying data-ui=\"date-range-picker\", the size, variant and calendar axes, data-count, data-open and the state attributes. className, style and every native attribute reach it."
105
+ "purpose": "The frame of the picker. Carries data-ui=\"date-range-picker\", data-count, data-size, data-variant, data-open and the state attributes."
120
106
  },
121
107
  {
122
108
  "part": "control",
123
109
  "element": "div",
124
110
  "required": true,
125
- "purpose": "The frame around both fields, and the box the calendar is positioned against. It draws the one border, focus ring and invalid state; the two date fields inside it use variant=\"plain\" and draw none. Inside a field, it is a group named by the field’s label and takes the field’s control identifier."
111
+ "purpose": "The box the panel hangs from, around the field and the trigger."
112
+ },
113
+ {
114
+ "part": "trigger",
115
+ "element": "button",
116
+ "required": true,
117
+ "purpose": "The button that opens the panel. Its name carries both ends and the length written."
126
118
  },
127
119
  {
128
120
  "part": "start",
129
121
  "element": "div",
130
122
  "required": true,
131
- "purpose": "Holds the start date field. Carries data-current while the start is the end being edited, drawn as an underline while the calendar is open or focus is inside the frame."
123
+ "purpose": "The wrapper of the field of the start, with data-current while it is the end being edited."
132
124
  },
133
125
  {
134
126
  "part": "separator",
135
127
  "element": "span",
136
128
  "required": true,
137
- "purpose": "The dash between the two fields. It is aria-hidden, because each field has its own name."
129
+ "purpose": "The dash between the two fields."
138
130
  },
139
131
  {
140
132
  "part": "end",
141
133
  "element": "div",
142
134
  "required": true,
143
- "purpose": "Holds the end date field, and carries data-current while the end is being edited."
135
+ "purpose": "The wrapper of the field of the end, on the same terms."
144
136
  },
145
137
  {
146
138
  "part": "clear",
147
139
  "element": "button",
148
140
  "required": false,
149
- "purpose": "Empties both ends with the clear reason, drawn with clearable while either end holds a date. It is the only clear button in the frame: the two fields draw none of their own."
150
- },
151
- {
152
- "part": "trigger",
153
- "element": "button",
154
- "required": true,
155
- "purpose": "The calendar button. Its accessible name carries both dates in words and the length, because focus returns to it when the calendar closes. It is always drawn, because ChromeOS turns Alt+ArrowDown into PageDown before the browser receives it."
156
- },
157
- {
158
- "part": "positioner",
159
- "element": "div, portalled to the end of the document",
160
- "required": false,
161
- "purpose": "The layer the calendar stands on, drawn while the calendar is open. It carries data-ui=\"date-range-picker\" again, the position the positioner writes, and data-presentation: popover, or sheet on a touch screen narrower than 480 pixels."
162
- },
163
- {
164
- "part": "content",
165
- "element": "div with role=\"dialog\"",
166
- "required": false,
167
- "purpose": "The painted surface, with the same accessible name as the trigger. Its width is capped by the room available, so two months that do not fit side by side wrap."
168
- },
169
- {
170
- "part": "grip",
171
- "element": "span, aria-hidden",
172
- "required": false,
173
- "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."
174
- },
175
- {
176
- "part": "head",
177
- "element": "div",
178
- "required": false,
179
- "purpose": "The band above the calendar: both dates as they stand, the length and the limit. It takes the width of the surface and does not widen it."
180
- },
181
- {
182
- "part": "head-start",
183
- "element": "span",
184
- "required": false,
185
- "purpose": "The start date, written short. It carries data-placeholder while there is no start, and data-pending while it shows the start the next press would make instead of a chosen one."
186
- },
187
- {
188
- "part": "head-end",
189
- "element": "span",
190
- "required": false,
191
- "purpose": "The end date, written short, with the same two attributes as head-start."
192
- },
193
- {
194
- "part": "length",
195
- "element": "span",
196
- "required": false,
197
- "purpose": "The length, such as \"4 nights\": of the range the next press would make while the end is pending, else of the value. It is a polite live region, so a screen reader announces it as the focused day moves. It carries data-pending while it describes a pending range."
198
- },
199
- {
200
- "part": "limit",
201
- "element": "span",
202
- "required": false,
203
- "purpose": "The length rule, such as \"2 to 7 nights\", drawn while minLength or maxLength is set, so the band names the rule the calendar enforces."
204
- },
205
- {
206
- "part": "panels",
207
- "element": "div",
208
- "required": false,
209
- "purpose": "The shortcuts and the calendar as a wrapping row: side by side where there is room, the calendar under the shortcuts where there is not."
210
- },
211
- {
212
- "part": "presets",
213
- "element": "div",
214
- "required": false,
215
- "purpose": "A column for your own shortcuts, drawn when presets is set. The Date Range Picker ships the shortcut button and its column, never the list: the ranges belong to your product."
216
- },
217
- {
218
- "part": "preset",
219
- "element": "button, or the element render returns",
220
- "required": false,
221
- "purpose": "One shortcut, DateRangePickerPreset. It writes its range with the select reason and carries data-selected while the value equals its range."
222
- },
223
- {
224
- "part": "footer",
225
- "element": "div",
226
- "required": false,
227
- "purpose": "A row under the calendar for your own actions, drawn when footer is set."
141
+ "purpose": "Empties both ends, with clearable and a value."
228
142
  }
229
143
  ],
230
144
  "api": [
@@ -233,252 +147,238 @@
233
147
  "type": "DateRange | null",
234
148
  "defaultValue": "—",
235
149
  "appliesTo": "DateRangePicker",
236
- "description": "The range, { start, end }, where each end is a PlainDate or null. A range with both ends null is null. Setting it makes the value controlled."
150
+ "description": "The run held, either end of which may be null. Present means the consumer owns it."
237
151
  },
238
152
  {
239
153
  "name": "defaultValue",
240
154
  "type": "DateRange | null",
241
- "defaultValue": "—",
155
+ "defaultValue": "null",
242
156
  "appliesTo": "DateRangePicker",
243
- "description": "The starting value of an uncontrolled date range picker. Read once, on the first render."
244
- },
245
- {
246
- "name": "open",
247
- "type": "boolean",
248
- "defaultValue": "—",
249
- "appliesTo": "DateRangePicker",
250
- "description": "Whether the calendar is showing. Setting it makes the open state controlled."
251
- },
252
- {
253
- "name": "defaultOpen",
254
- "type": "boolean",
255
- "defaultValue": "false",
256
- "appliesTo": "DateRangePicker",
257
- "description": "Whether the calendar shows on the first render. Focus does not move into it."
157
+ "description": "What it starts from, and returns to on a form reset. Read once."
258
158
  },
259
159
  {
260
160
  "name": "position",
261
161
  "type": "'start' | 'end'",
262
162
  "defaultValue": "—",
263
163
  "appliesTo": "DateRangePicker",
264
- "description": "The end being edited: the field that carries data-current, the day the calendar opens on, and the end the next press in the calendar writes. Setting it makes the position controlled."
164
+ "description": "The end the next press writes. Present means the consumer owns it."
265
165
  },
266
166
  {
267
167
  "name": "defaultPosition",
268
168
  "type": "'start' | 'end'",
269
169
  "defaultValue": "start",
270
170
  "appliesTo": "DateRangePicker",
271
- "description": "The end being edited on the first render."
171
+ "description": "The end it starts on."
272
172
  },
273
173
  {
274
- "name": "min",
275
- "type": "PlainDate",
276
- "defaultValue": "—",
174
+ "name": "count",
175
+ "type": "'days' | 'nights'",
176
+ "defaultValue": "days",
277
177
  "appliesTo": "DateRangePicker",
278
- "description": "The earliest date both fields and the calendar accept. Earlier days are disabled in the calendar, and an earlier typed date marks the date range picker invalid. Once both ends are set, the start field also stops at the end and the end field at the start."
178
+ "description": "What the length counts."
279
179
  },
280
180
  {
281
- "name": "max",
282
- "type": "PlainDate",
181
+ "name": "minLength",
182
+ "type": "number",
283
183
  "defaultValue": "—",
284
184
  "appliesTo": "DateRangePicker",
285
- "description": "The latest date both fields and the calendar accept. Later days are disabled in the calendar, and a later typed date marks the date range picker invalid."
185
+ "description": "The shortest run, in the unit count names."
286
186
  },
287
187
  {
288
- "name": "isDateUnavailable",
289
- "type": "(date: PlainDate) => boolean",
188
+ "name": "maxLength",
189
+ "type": "number",
290
190
  "defaultValue": "—",
291
191
  "appliesTo": "DateRangePicker",
292
- "description": "Returns true for a date the reader cannot choose. The calendar disables it, and a typed range that contains it marks the date range picker invalid."
192
+ "description": "The longest run, in the unit count names."
293
193
  },
294
194
  {
295
195
  "name": "contiguous",
296
196
  "type": "boolean",
297
197
  "defaultValue": "true",
298
198
  "appliesTo": "DateRangePicker",
299
- "description": "Whether a range must run without unavailable days. On, once a start is chosen the calendar also disables every day beyond the first unavailable one, searching up to maxLength days, or 366, on each side. Off, only the two ends are checked."
199
+ "description": "Whether a run may cross an unavailable day."
300
200
  },
301
201
  {
302
- "name": "minLength",
303
- "type": "number",
202
+ "name": "min",
203
+ "type": "PlainDate",
304
204
  "defaultValue": "—",
305
205
  "appliesTo": "DateRangePicker",
306
- "description": "The shortest range allowed, in the unit count names. Once a start is chosen, the calendar disables the days that would make a shorter range, and the band names the limit."
206
+ "description": "The earliest accepted date."
307
207
  },
308
208
  {
309
- "name": "maxLength",
310
- "type": "number",
209
+ "name": "max",
210
+ "type": "PlainDate",
311
211
  "defaultValue": "—",
312
212
  "appliesTo": "DateRangePicker",
313
- "description": "The longest range allowed, in the unit count names. A typed range outside either limit marks the date range picker invalid."
314
- },
315
- {
316
- "name": "count",
317
- "type": "'days' | 'nights'",
318
- "defaultValue": "days",
319
- "appliesTo": "DateRangePicker",
320
- "description": "What the length counts. days counts both ends; nights counts the nights between them. The same day at both ends is 1 day or 0 nights."
213
+ "description": "The latest accepted date."
321
214
  },
322
215
  {
323
- "name": "months",
324
- "type": "number",
325
- "defaultValue": "2",
216
+ "name": "isDateUnavailable",
217
+ "type": "(date: PlainDate) => boolean",
218
+ "defaultValue": "—",
326
219
  "appliesTo": "DateRangePicker",
327
- "description": "How many months the calendar draws side by side. When they do not fit, they wrap."
220
+ "description": "Refuses particular dates."
328
221
  },
329
222
  {
330
- "name": "weekNumbers",
331
- "type": "boolean",
332
- "defaultValue": "false",
223
+ "name": "presets",
224
+ "type": "readonly PickerPreset<DateRange>[]",
225
+ "defaultValue": "—",
333
226
  "appliesTo": "DateRangePicker",
334
- "description": "Adds a column of ISO 8601 week numbers to the calendar."
227
+ "description": "The consumer’s own shortcuts."
335
228
  },
336
229
  {
337
- "name": "fixedWeeks",
230
+ "name": "confirm",
338
231
  "type": "boolean",
339
232
  "defaultValue": "true",
340
233
  "appliesTo": "DateRangePicker",
341
- "description": "Draws six rows for every month, so the surface keeps its height as the reader pages between months."
234
+ "description": "Whether the panel keeps a draft until Apply."
342
235
  },
343
236
  {
344
- "name": "placement",
345
- "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
346
- "defaultValue": "bottom-start",
347
- "appliesTo": "DateRangePicker",
348
- "description": "Where the calendar opens relative to the frame. When it does not fit on that side, it opens on the other."
349
- },
350
- {
351
- "name": "closeOnSelect",
352
- "type": "'auto' | 'always' | 'never'",
353
- "defaultValue": "auto",
237
+ "name": "months",
238
+ "type": "number",
239
+ "defaultValue": "2",
354
240
  "appliesTo": "DateRangePicker",
355
- "description": "When choosing closes the calendar. auto closes it when the range is complete, by a second press or a shortcut, and keeps it open after the first press; always closes it on every press that changes the value; never keeps it open."
241
+ "description": "How many months the panel shows. One below 760 pixels."
356
242
  },
357
243
  {
358
- "name": "locale",
359
- "type": "string",
360
- "defaultValue": "the SlottedProvider locale, else en-US",
244
+ "name": "weekNumbers",
245
+ "type": "boolean",
246
+ "defaultValue": "false",
361
247
  "appliesTo": "DateRangePicker",
362
- "description": "A BCP 47 tag. Sets the order, separators and placeholders of both fields, the month and weekday names, the short dates in the band and the dates the trigger announces."
248
+ "description": "Draws the ISO week number, as a press that chooses the week."
363
249
  },
364
250
  {
365
- "name": "timeZone",
366
- "type": "string",
367
- "defaultValue": "the browser’s time zone",
251
+ "name": "fixedWeeks",
252
+ "type": "boolean",
253
+ "defaultValue": "false",
368
254
  "appliesTo": "DateRangePicker",
369
- "description": "The IANA time zone that decides which day is today. The value itself has no time zone."
255
+ "description": "Six rows whatever the months need."
370
256
  },
371
257
  {
372
258
  "name": "firstDayOfWeek",
373
259
  "type": "number",
374
260
  "defaultValue": "the locale’s",
375
261
  "appliesTo": "DateRangePicker",
376
- "description": "The day the calendar starts each week on, from 0 for Sunday to 6 for Saturday."
262
+ "description": "0 is Sunday."
377
263
  },
378
264
  {
379
265
  "name": "yearPivot",
380
266
  "type": "number",
381
- "defaultValue": "20",
267
+ "defaultValue": "—",
382
268
  "appliesTo": "DateRangePicker",
383
- "description": "How a two-digit year typed into either field resolves: with 20, 30 reads as 2030 and 80 as 1980."
269
+ "description": "How a two-digit typed year resolves."
384
270
  },
385
271
  {
386
272
  "name": "calendar",
387
273
  "type": "'gregory'",
388
274
  "defaultValue": "gregory",
389
275
  "appliesTo": "DateRangePicker",
390
- "description": "The calendar system. Gregorian is the only one today."
276
+ "description": "The calendar system."
391
277
  },
392
278
  {
393
- "name": "size",
394
- "type": "'sm' | 'md' | 'lg'",
395
- "defaultValue": "md",
279
+ "name": "startName",
280
+ "type": "string",
281
+ "defaultValue": "—",
396
282
  "appliesTo": "DateRangePicker",
397
- "description": "One step of the control scale, for the frame, both fields and the trigger. Inside a field, an unset size follows the field."
283
+ "description": "The name a form posts the start under."
398
284
  },
399
285
  {
400
- "name": "variant",
401
- "type": "'outline' | 'subtle' | 'plain'",
402
- "defaultValue": "outline",
286
+ "name": "endName",
287
+ "type": "string",
288
+ "defaultValue": "—",
403
289
  "appliesTo": "DateRangePicker",
404
- "description": "How much frame the control draws at rest."
290
+ "description": "The name a form posts the end under."
405
291
  },
406
292
  {
407
- "name": "disabled",
293
+ "name": "invalid",
408
294
  "type": "boolean",
409
- "defaultValue": "the field’s",
295
+ "defaultValue": "—",
410
296
  "appliesTo": "DateRangePicker",
411
- "description": "Disables both fields, the clear button and the trigger, and takes them out of the tab order."
297
+ "description": "Stated by the consumer; a run that fails a rule is invalid without it."
412
298
  },
413
299
  {
414
- "name": "readOnly",
300
+ "name": "open",
415
301
  "type": "boolean",
416
- "defaultValue": "the field’s",
302
+ "defaultValue": "—",
417
303
  "appliesTo": "DateRangePicker",
418
- "description": "Keeps both dates legible and focusable, and disables the clear button and the trigger."
304
+ "description": "Whether the panel is showing. Present means the consumer owns it."
419
305
  },
420
306
  {
421
- "name": "invalid",
307
+ "name": "defaultOpen",
422
308
  "type": "boolean",
423
- "defaultValue": "the field’s",
309
+ "defaultValue": "false",
424
310
  "appliesTo": "DateRangePicker",
425
- "description": "Marks the date range picker invalid. An end before its start, a date outside min and max, an unavailable date in the range or a length outside the limits marks it invalid whatever this says."
311
+ "description": "Whether it starts open when nobody else says. Read once."
426
312
  },
427
313
  {
428
- "name": "required",
429
- "type": "boolean",
430
- "defaultValue": "the field’s",
314
+ "name": "placement",
315
+ "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
316
+ "defaultValue": "bottom-start",
431
317
  "appliesTo": "DateRangePicker",
432
- "description": "Sets aria-required on both fields."
318
+ "description": "Where the panel opens, before the positioner has read the room."
433
319
  },
434
320
  {
435
- "name": "clearable",
436
- "type": "boolean",
437
- "defaultValue": "false",
321
+ "name": "size",
322
+ "type": "'sm' | 'md' | 'lg'",
323
+ "defaultValue": "md",
438
324
  "appliesTo": "DateRangePicker",
439
- "description": "Adds one clear button to the frame, which empties both ends."
325
+ "description": "The height of the control. The field around it answers when the picker does not."
440
326
  },
441
327
  {
442
- "name": "messages",
443
- "type": "Partial<DateRangePickerMessages>",
444
- "defaultValue": "—",
328
+ "name": "variant",
329
+ "type": "'outline' | 'subtle' | 'plain'",
330
+ "defaultValue": "outline",
445
331
  "appliesTo": "DateRangePicker",
446
- "description": "Replaces words of the active language, key by key: choose and change for the trigger’s name before and after a range is set (change takes {start}, {end} and {length}), clear, start and end for the two fields’ names and the band’s placeholders, and the counting phrases days.length and nights.length with between, atLeast and atMost for the limits."
332
+ "description": "How the control draws its frame."
447
333
  },
448
334
  {
449
- "name": "startName",
335
+ "name": "locale",
450
336
  "type": "string",
451
- "defaultValue": "—",
337
+ "defaultValue": "the language in force",
452
338
  "appliesTo": "DateRangePicker",
453
- "description": "Adds a hidden input with this name that submits the start as an ISO 8601 string, such as 2026-09-30."
339
+ "description": "BCP 47. Writes the field, the panel and the trigger’s name."
454
340
  },
455
341
  {
456
- "name": "endName",
342
+ "name": "timeZone",
457
343
  "type": "string",
344
+ "defaultValue": "the runtime’s",
345
+ "appliesTo": "DateRangePicker",
346
+ "description": "Which zone answers \"what is now\"."
347
+ },
348
+ {
349
+ "name": "disabled",
350
+ "type": "boolean",
458
351
  "defaultValue": "—",
459
352
  "appliesTo": "DateRangePicker",
460
- "description": "Adds a hidden input with this name that submits the end as an ISO 8601 string."
353
+ "description": "Answers no key and no press."
461
354
  },
462
355
  {
463
- "name": "presets",
464
- "type": "ReactNode",
356
+ "name": "readOnly",
357
+ "type": "boolean",
465
358
  "defaultValue": "—",
466
359
  "appliesTo": "DateRangePicker",
467
- "description": "Your own shortcuts, as DateRangePickerPreset elements, in a column beside the calendar."
360
+ "description": "Readable and not changeable."
468
361
  },
469
362
  {
470
- "name": "footer",
471
- "type": "ReactNode",
363
+ "name": "required",
364
+ "type": "boolean",
472
365
  "defaultValue": "—",
473
366
  "appliesTo": "DateRangePicker",
474
- "description": "Your own actions, in a row under the calendar."
367
+ "description": "The form needs a value."
475
368
  },
476
369
  {
477
- "name": "value",
478
- "type": "DateRange | (() => DateRange)",
370
+ "name": "clearable",
371
+ "type": "boolean",
372
+ "defaultValue": "false",
373
+ "appliesTo": "DateRangePicker",
374
+ "description": "Draws a clear on the control."
375
+ },
376
+ {
377
+ "name": "messages",
378
+ "type": "Partial<DateRangePickerMessages>",
479
379
  "defaultValue": "—",
480
- "appliesTo": "DateRangePickerPreset",
481
- "description": "The range the shortcut writes, or a function that returns it when the shortcut is pressed, so a relative range such as \"next weekend\" is computed at the press."
380
+ "appliesTo": "DateRangePicker",
381
+ "description": "Words laid over the language in force: the trigger’s names, the two ends, what is said of a refused run, and the phrases that count it."
482
382
  }
483
383
  ],
484
384
  "composition": [
@@ -487,69 +387,60 @@
487
387
  "type": "component",
488
388
  "defaultValue": "—",
489
389
  "appliesTo": "application",
490
- "description": "Sets timeZone, calendar, months, count, closeOnSelect, placement, size and variant for every DateRangePicker under it. A prop on one DateRangePicker wins, and inside a field the field’s size wins."
390
+ "description": "Sets calendar, confirm, count, months, placement, size, timeZone and variant once."
491
391
  },
492
392
  {
493
- "name": "DateRangePickerPreset",
494
- "type": "component",
495
- "defaultValue": "—",
496
- "appliesTo": "presets",
497
- "description": "One shortcut inside presets. It takes every button prop, runs your onClick first, and takes render to substitute its element."
393
+ "name": "footer",
394
+ "type": "ReactNode",
395
+ "defaultValue": "the limits",
396
+ "appliesTo": "DateRangePicker",
397
+ "description": "What the footer says when nothing is wrong."
498
398
  },
499
399
  {
500
400
  "name": "render",
501
401
  "type": "(props: DateRangePickerRootProps) => ReactNode",
502
402
  "defaultValue": "—",
503
403
  "appliesTo": "DateRangePicker",
504
- "description": "Renders the root as another element. Spread the props onto it: they carry the ref the date range picker needs."
404
+ "description": "Substitutes the element the root renders."
505
405
  },
506
406
  {
507
407
  "name": "ref",
508
408
  "type": "Ref<DateRangePickerHandle>",
509
409
  "defaultValue": "—",
510
410
  "appliesTo": "DateRangePicker",
511
- "description": "A handle with focus(position?), which focuses the first segment of one end (the current one by default), and open() and close(), which show and hide the calendar without a controlled open prop. open() moves focus into the calendar."
512
- },
513
- {
514
- "name": "onKeyDown",
515
- "type": "KeyboardEventHandler",
516
- "defaultValue": "—",
517
- "appliesTo": "DateRangePicker",
518
- "description": "Runs before Alt+ArrowDown is read. Calling event.preventDefault() keeps the shortcut for the page."
411
+ "description": "focus(), open() and close()."
519
412
  }
520
413
  ],
521
414
  "events": [
522
415
  {
523
416
  "name": "onValueChange",
524
417
  "payload": "(value: DateRange | null, request: ChangeRequest<DateRange | null>)",
525
- "when": "Before the value changes. request.reason is keyboard or blur for a typed end, select for a range completed in the calendar or written by a shortcut, and clear for the clear button. The first press in the calendar does not call it: the range is not complete yet. request.cancel() keeps the current value."
418
+ "when": "Before the value moves, and cancellable: from a key in a field, from Apply, from Clear."
526
419
  },
527
420
  {
528
421
  "name": "onOpenChange",
529
422
  "payload": "(open: boolean, request: ChangeRequest<boolean>)",
530
- "when": "Before the calendar opens or closes. request.reason is pointer for the trigger, keyboard for Alt+ArrowDown and for the handle’s open() and close(), escape for the Escape key, outsidePress for a press outside the surface and select for a completed range. request.cancel() keeps the current state."
423
+ "when": "Before the panel opens or closes, with the reason."
531
424
  },
532
425
  {
533
426
  "name": "onPositionChange",
534
- "payload": "(position: 'start' | 'end', request: ChangeRequest<'start' | 'end'>)",
535
- "when": "Before the end being edited changes. request.reason is pointer or keyboard when focus enters a field, select after a press in the calendar or a shortcut, and clear for the clear button."
427
+ "payload": "(position: DateRangePickerPosition, request: ChangeRequest<DateRangePickerPosition>)",
428
+ "when": "Before the end being edited moves."
536
429
  }
537
430
  ],
538
431
  "accessibility": [
539
- "The trigger’s accessible name carries both dates in words and the length, such as “Change range, Saturday, September 12, 2026 – Wednesday, September 16, 2026, 4 nights”. Focus returns to the trigger when the calendar closes, so a screen reader announces the range there.",
540
- "Opening the calendar from the trigger or from open() moves focus to the day of the end being edited, or to today when that end is empty. Alt+ArrowDown opens it and leaves focus in the field. While the calendar is open, Tab and Shift+Tab cycle through the shortcuts, the calendar and the footer.",
541
- "The length is a polite live region. A sighted reader sees it follow the pointer; a screen-reader user hears it follow each arrow key.",
542
- "Each field has its own name, from the start and end messages, and the dash between them is aria-hidden. Each field keeps its own spin buttons and its own keys. Inside a field, the frame is a group named by the field’s label, so a screen reader announces “Reporting period” and then “Start” on the way into the first date.",
543
- "Escape closes in steps: while the calendar shows the month or year grid, Escape returns to the day grid; on the day grid, it closes the calendar, discards a range that has only its start, and returns focus to the trigger.",
544
- "A range that has only its start in the calendar never reaches the value or a form: the first press is shown in the band, and the second press writes the range. A typed open end is a value, because the reader sees it in the field.",
545
- "The surface has role=\"dialog\" and the same accessible name as the trigger. The trigger sets aria-expanded, and sets aria-controls only while the surface exists. One day of the calendar is in the tab order, as the grid pattern requires."
432
+ "The trigger says aria-haspopup=\"dialog\" and its name carries the value written, which is where focus returns when the panel closes.",
433
+ "The panel is a dialog with its Tab wrapped, and each grid inside it is one stop.",
434
+ "Escape discards the draft and returns focus to the trigger. Ctrl+Enter applies from anywhere in the panel.",
435
+ "The footer’s hint is a status region, so the reason Apply is off is spoken as well as drawn.",
436
+ "Alt+ArrowDown opens the panel and leaves focus in the field, so the segments keep every key they had.",
437
+ "The length between the two halves is a status region, so a reader hears \"4 nights\" on every arrow as much as they see it on every hover.",
438
+ "The half being edited is a tint and a line, so it is told without color."
546
439
  ]
547
440
  }
548
441
  },
549
442
  "tokens": [
550
- "--slotted-border-strong",
551
443
  "--slotted-border-subtle",
552
- "--slotted-border-width-thin",
553
444
  "--slotted-control-border-color",
554
445
  "--slotted-control-border-width",
555
446
  "--slotted-control-font-family",
@@ -582,11 +473,6 @@
582
473
  "--slotted-date-range-picker-background",
583
474
  "--slotted-date-range-picker-border-color",
584
475
  "--slotted-date-range-picker-color",
585
- "--slotted-date-range-picker-content-border-color",
586
- "--slotted-date-range-picker-content-color",
587
- "--slotted-date-range-picker-content-padding",
588
- "--slotted-date-range-picker-content-radius",
589
- "--slotted-date-range-picker-content-shadow",
590
476
  "--slotted-date-range-picker-current-color",
591
477
  "--slotted-date-range-picker-current-size",
592
478
  "--slotted-date-range-picker-disabled-background",
@@ -596,55 +482,25 @@
596
482
  "--slotted-date-range-picker-invalid-border-color",
597
483
  "--slotted-date-range-picker-invalid-edge-width",
598
484
  "--slotted-date-range-picker-invalid-focus-ring-color",
599
- "--slotted-date-range-picker-length-color",
600
- "--slotted-date-range-picker-limit-color",
601
- "--slotted-date-range-picker-pending-color",
602
- "--slotted-date-range-picker-placeholder-color",
603
485
  "--slotted-date-range-picker-plain-hover-background",
604
- "--slotted-date-range-picker-preset-active-background",
605
- "--slotted-date-range-picker-preset-hover-background",
606
- "--slotted-date-range-picker-preset-selected-background",
607
- "--slotted-date-range-picker-preset-selected-color",
608
486
  "--slotted-date-range-picker-radius",
609
487
  "--slotted-date-range-picker-readonly-background",
610
488
  "--slotted-date-range-picker-separator-color",
611
489
  "--slotted-date-range-picker-shadow",
612
- "--slotted-date-range-picker-sheet-inline-size",
613
490
  "--slotted-date-range-picker-subtle-background",
614
491
  "--slotted-date-range-picker-subtle-border-color",
615
492
  "--slotted-date-range-picker-subtle-hover-background",
616
- "--slotted-date-range-picker-surface",
617
493
  "--slotted-disabled-background",
618
494
  "--slotted-disabled-border",
619
495
  "--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
496
  "--slotted-focus-ring-color",
626
497
  "--slotted-focus-ring-color-invalid",
627
498
  "--slotted-focus-ring-offset",
628
499
  "--slotted-focus-ring-width",
629
- "--slotted-font-size-sm",
630
- "--slotted-font-size-xs",
631
- "--slotted-font-weight-medium",
632
- "--slotted-font-weight-regular",
633
- "--slotted-font-weight-semibold",
634
- "--slotted-line-height-sm",
635
- "--slotted-radius-full",
636
- "--slotted-radius-lg",
637
500
  "--slotted-radius-none",
638
501
  "--slotted-radius-xs",
639
- "--slotted-shadow-md",
640
502
  "--slotted-space-1",
641
- "--slotted-space-11",
642
503
  "--slotted-space-2",
643
- "--slotted-space-3",
644
- "--slotted-space-4",
645
- "--slotted-space-5",
646
- "--slotted-space-9",
647
- "--slotted-surface-raised",
648
504
  "--slotted-surface-sunken",
649
505
  "--slotted-target-comfortable",
650
506
  "--slotted-target-min",
@@ -652,114 +508,127 @@
652
508
  "--slotted-text-muted",
653
509
  "--slotted-tone-accent-border",
654
510
  "--slotted-tone-accent-solid",
655
- "--slotted-tone-accent-subtle-hover",
656
- "--slotted-tone-accent-text",
657
511
  "--slotted-tone-danger-border",
658
512
  "--slotted-tone-secondary-subtle-active",
659
- "--slotted-tone-secondary-subtle-hover",
660
- "--slotted-z-index-popover"
513
+ "--slotted-tone-secondary-subtle-hover"
661
514
  ],
662
515
  "examples": [
663
516
  {
664
517
  "id": "playground",
665
518
  "title": "Playground",
666
- "note": "Check-in and check-out in one frame, driven by the controls below the canvas. Type into either field, or press the trigger and choose two days: while the range is drawn, the band above the calendar says how many nights it holds.",
519
+ "note": "Two presses draw a run, and the length between the two ends says how long it is while it is drawn. Apply writes it.",
667
520
  "language": "tsx",
668
- "source": "<Field>\n <FieldLabel>Stay</FieldLabel>\n <DateRangePicker\n count=\"nights\"\n endName=\"checkout\"\n onValueChange={setValue}\n startName=\"checkin\"\n value={value}\n />\n</Field>;\n",
521
+ "source": "<DateRangePicker defaultValue={STAY} />;\n",
669
522
  "verdict": "excerpt"
670
523
  },
671
524
  {
672
- "id": "sizes",
673
- "title": "Size",
674
- "note": "The three steps of the control scale. Both fields, the dash and the trigger follow the step together, so a range in a dense table shrinks as one control.",
525
+ "id": "length",
526
+ "title": "What the length counts",
527
+ "note": "A stay counts nights and a leave counts days: the same two dates are four or five. The steps of the head move the end one day.",
675
528
  "language": "tsx",
676
- "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate } from '@slotted/core/date';\n\nexport default function DateRangePickerSizes() {\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Created between</FieldLabel>\n <DateRangePicker\n size=\"sm\"\n defaultValue={{ start: plainDate(2026, 9, 1), end: plainDate(2026, 9, 30) }}\n />\n </Field>\n <Field>\n <FieldLabel>Billing period</FieldLabel>\n <DateRangePicker\n size=\"md\"\n defaultValue={{ start: plainDate(2026, 10, 1), end: plainDate(2026, 10, 31) }}\n />\n </Field>\n <Field>\n <FieldLabel>Lease term</FieldLabel>\n <DateRangePicker\n size=\"lg\"\n defaultValue={{ start: plainDate(2026, 11, 1), end: plainDate(2027, 10, 31) }}\n />\n </Field>\n </Stack>\n );\n}\n",
529
+ "source": "<DateRangePicker {...BASE} defaultValue={STAY} count=\"nights\" />;\n",
530
+ "verdict": "excerpt"
531
+ },
532
+ {
533
+ "id": "limits",
534
+ "title": "The shortest and the longest run",
535
+ "note": "While a start is chosen, the grid refuses the days outside the limits. A run that is over says by how much, marks its days, and turns Apply off.",
536
+ "language": "tsx",
537
+ "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\n\nexport default function DateRangePickerLimits() {\n return (\n <Field>\n <FieldLabel>Forklift rental</FieldLabel>\n <DateRangePicker maxLength={14} minLength={2} />\n <FieldDescription>Rentals run from 2 to 14 days.</FieldDescription>\n </Field>\n );\n}\n",
677
538
  "verdict": "example"
678
539
  },
679
540
  {
680
- "id": "variants",
681
- "title": "Variant",
682
- "note": "How much frame the control draws at rest. The two fields inside are plain, and the one frame answers hover, focus and invalid for both.",
541
+ "id": "presets",
542
+ "title": "Shortcuts",
543
+ "note": "A label and a run, or a function that resolves one. The panel writes the two ends, and a run the rules refuse is off.",
683
544
  "language": "tsx",
684
- "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate } from '@slotted/core/date';\n\nconst QUARTER = { start: plainDate(2026, 7, 1), end: plainDate(2026, 9, 30) };\n\nexport default function DateRangePickerVariants() {\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Outline</FieldLabel>\n <DateRangePicker variant=\"outline\" defaultValue={QUARTER} />\n </Field>\n <Field>\n <FieldLabel>Subtle</FieldLabel>\n <DateRangePicker variant=\"subtle\" defaultValue={QUARTER} />\n </Field>\n <Field>\n <FieldLabel>Plain</FieldLabel>\n <DateRangePicker variant=\"plain\" defaultValue={QUARTER} />\n </Field>\n </Stack>\n );\n}\n",
545
+ "source": "import type { DateRange } from '@slotted/react/calendar';\nimport { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { addDays, plainDate, type PickerPreset } from '@slotted/core/date';\n\nconst TODAY = plainDate(2026, 9, 30);\n\nconst LAST_30_DAYS: DateRange = { start: addDays(TODAY, -29), end: TODAY };\n\nconst PRESETS: PickerPreset<DateRange>[] = [\n { label: 'Last 7 days', value: { start: addDays(TODAY, -6), end: TODAY } },\n { label: 'Last 30 days', value: LAST_30_DAYS },\n { label: 'This quarter', value: { start: plainDate(2026, 7, 1), end: TODAY } },\n { label: 'Last quarter', value: { start: plainDate(2026, 4, 1), end: plainDate(2026, 6, 30) } },\n { label: 'Year to date', value: { start: plainDate(2026, 1, 1), end: TODAY } },\n];\n\nexport default function DateRangePickerPresets() {\n return (\n <Field>\n <FieldLabel>Report period</FieldLabel>\n <DateRangePicker defaultValue={LAST_30_DAYS} max={TODAY} presets={PRESETS} />\n </Field>\n );\n}\n",
685
546
  "verdict": "example"
686
547
  },
687
548
  {
688
- "id": "length",
689
- "title": "The length while the range is drawn",
690
- "note": "Open the calendar and choose a start: the band follows the pointer and the focused day, and says the length of the range the next press would make. count decides the unit: a stay counts nights and a leave request counts days, so the same two dates give 4 nights or 5 days.",
549
+ "id": "confirm",
550
+ "title": "With and without a confirmation",
551
+ "note": "The panel keeps a draft until Apply. confirm={false} writes the run on the press that closes it.",
691
552
  "language": "tsx",
692
- "source": "<>\n <DateRangePicker count=\"nights\" />\n <DateRangePicker count=\"days\" />\n</>;\n",
553
+ "source": "<DateRangePicker {...BASE} defaultValue={STAY} />;\n",
693
554
  "verdict": "excerpt"
694
555
  },
695
556
  {
696
- "id": "limits",
697
- "title": "Length limits",
698
- "note": "A stay of two to seven nights. Once a check-in is chosen, the calendar disables the days that would break the rule and the band names it; a typed range outside it marks the frame invalid. minLength and maxLength count in the unit count names.",
557
+ "id": "weeks",
558
+ "title": "Whole weeks",
559
+ "note": "With weekNumbers, a press on the number chooses the week.",
699
560
  "language": "tsx",
700
- "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\n\nexport default function DateRangePickerLimits() {\n return (\n <Field>\n <FieldLabel>Forklift rental</FieldLabel>\n <DateRangePicker maxLength={14} minLength={2} />\n <FieldDescription>Rentals run from 2 to 14 days.</FieldDescription>\n </Field>\n );\n}\n",
701
- "verdict": "example"
561
+ "source": "<DateRangePicker {...BASE} defaultValue={STAY} weekNumbers />;\n",
562
+ "verdict": "excerpt"
702
563
  },
703
564
  {
704
565
  "id": "unavailable",
705
- "title": "Unavailable days",
706
- "note": "The room is taken from the 15th to the 18th. Choose a check-in before it: the calendar disables the nights past the first taken day, because a range runs without gaps. contiguous={false} lets a range run across an unavailable day and checks only its two ends.",
566
+ "title": "Days the product refuses",
567
+ "note": "A run may not cross an unavailable day while contiguous holds, and the grid refuses the days beyond it.",
707
568
  "language": "tsx",
708
569
  "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { compareDate, plainDate, type PlainDate } from '@slotted/core/date';\n\nconst BOOKED_FROM = plainDate(2026, 10, 14);\nconst BOOKED_TO = plainDate(2026, 10, 16);\n\nconst isBooked = (date: PlainDate) =>\n compareDate(date, BOOKED_FROM) >= 0 && compareDate(date, BOOKED_TO) <= 0;\n\nexport default function DateRangePickerUnavailable() {\n return (\n <Field>\n <FieldLabel>Training room</FieldLabel>\n <DateRangePicker isDateUnavailable={isBooked} />\n <FieldDescription>\n Booked October 14 to 16. A booking cannot run across those days.\n </FieldDescription>\n </Field>\n );\n}\n",
709
570
  "verdict": "example"
710
571
  },
711
572
  {
712
- "id": "presets",
713
- "title": "Presets",
714
- "note": "The stays a hotel offers by name. Each is a DateRangePickerPreset with its own range; pressing one writes the value and closes the calendar, and the one equal to the value carries data-selected. The list belongs to the product.",
573
+ "id": "open-end",
574
+ "title": "An open end",
575
+ "note": "A start with no end is a value a filter may hold. Opened on its end, the next press closes it.",
715
576
  "language": "tsx",
716
- "source": "import type { DateRange } from '@slotted/react/calendar';\nimport { DateRangePicker, DateRangePickerPreset } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { addDays, plainDate } from '@slotted/core/date';\n\nconst TODAY = plainDate(2026, 9, 30);\n\nconst LAST_30_DAYS: DateRange = { start: addDays(TODAY, -29), end: TODAY };\n\nconst PRESETS: { label: string; range: DateRange }[] = [\n { label: 'Last 7 days', range: { start: addDays(TODAY, -6), end: TODAY } },\n { label: 'Last 30 days', range: LAST_30_DAYS },\n { label: 'This quarter', range: { start: plainDate(2026, 7, 1), end: TODAY } },\n { label: 'Last quarter', range: { start: plainDate(2026, 4, 1), end: plainDate(2026, 6, 30) } },\n { label: 'Year to date', range: { start: plainDate(2026, 1, 1), end: TODAY } },\n];\n\nexport default function DateRangePickerPresets() {\n return (\n <Field>\n <FieldLabel>Report period</FieldLabel>\n <DateRangePicker\n defaultValue={LAST_30_DAYS}\n max={TODAY}\n presets={PRESETS.map((preset) => (\n <DateRangePickerPreset key={preset.label} value={preset.range}>\n {preset.label}\n </DateRangePickerPreset>\n ))}\n />\n </Field>\n );\n}\n",
577
+ "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate } from '@slotted/core/date';\n\nexport default function DateRangePickerOpenEnd() {\n return (\n <Field>\n <FieldLabel>Price valid</FieldLabel>\n <DateRangePicker clearable defaultValue={{ start: plainDate(2026, 10, 1), end: null }} />\n <FieldDescription>Leave the end empty for a price with no end date.</FieldDescription>\n </Field>\n );\n}\n",
717
578
  "verdict": "example"
718
579
  },
719
580
  {
720
- "id": "open-end",
721
- "title": "An open end",
722
- "note": "A check-in without a check-out is a value, { start, end: null }, and the field shows it. Open the calendar over it and the first press writes the missing end. required asks for both ends.",
581
+ "id": "sizes",
582
+ "title": "Size",
583
+ "note": "The three heights every control has. The panel keeps its own measures at each of them.",
723
584
  "language": "tsx",
724
- "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate } from '@slotted/core/date';\n\nexport default function DateRangePickerOpenEnd() {\n return (\n <Field>\n <FieldLabel>Price valid</FieldLabel>\n <DateRangePicker clearable defaultValue={{ start: plainDate(2026, 10, 1), end: null }} />\n <FieldDescription>Leave the end empty for a price with no end date.</FieldDescription>\n </Field>\n );\n}\n",
585
+ "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate } from '@slotted/core/date';\n\nexport default function DateRangePickerSizes() {\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Created between</FieldLabel>\n <DateRangePicker\n size=\"sm\"\n defaultValue={{ start: plainDate(2026, 9, 1), end: plainDate(2026, 9, 30) }}\n />\n </Field>\n <Field>\n <FieldLabel>Billing period</FieldLabel>\n <DateRangePicker\n size=\"md\"\n defaultValue={{ start: plainDate(2026, 10, 1), end: plainDate(2026, 10, 31) }}\n />\n </Field>\n <Field>\n <FieldLabel>Lease term</FieldLabel>\n <DateRangePicker\n size=\"lg\"\n defaultValue={{ start: plainDate(2026, 11, 1), end: plainDate(2027, 10, 31) }}\n />\n </Field>\n </Stack>\n );\n}\n",
586
+ "verdict": "example"
587
+ },
588
+ {
589
+ "id": "variants",
590
+ "title": "Variant",
591
+ "note": "The three frames every field has, so a picker stands beside a field of its own variant.",
592
+ "language": "tsx",
593
+ "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate } from '@slotted/core/date';\n\nconst QUARTER = { start: plainDate(2026, 7, 1), end: plainDate(2026, 9, 30) };\n\nexport default function DateRangePickerVariants() {\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Outline</FieldLabel>\n <DateRangePicker variant=\"outline\" defaultValue={QUARTER} />\n </Field>\n <Field>\n <FieldLabel>Subtle</FieldLabel>\n <DateRangePicker variant=\"subtle\" defaultValue={QUARTER} />\n </Field>\n <Field>\n <FieldLabel>Plain</FieldLabel>\n <DateRangePicker variant=\"plain\" defaultValue={QUARTER} />\n </Field>\n </Stack>\n );\n}\n",
725
594
  "verdict": "example"
726
595
  },
727
596
  {
728
597
  "id": "states",
729
598
  "title": "States",
730
- "note": "Read-only keeps the dates legible and copyable and disables the buttons; disabled disables everything and keeps the dates readable; a check-out before its check-in is invalid on the end field and on the frame, and the ends are not swapped; required reaches both fields.",
599
+ "note": "Each is the frame’s own, and the trigger answers it.",
731
600
  "language": "tsx",
732
601
  "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldError, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { plainDate } from '@slotted/core/date';\n\nexport default function DateRangePickerStates() {\n return (\n <Stack gap={5}>\n <Field invalid required>\n <FieldLabel>Campaign dates</FieldLabel>\n <DateRangePicker\n defaultValue={{ start: plainDate(2026, 10, 12), end: plainDate(2026, 10, 5) }}\n />\n <FieldError>The end date is before the start date.</FieldError>\n </Field>\n <Field readOnly>\n <FieldLabel>Fiscal quarter</FieldLabel>\n <DateRangePicker\n defaultValue={{ start: plainDate(2026, 7, 1), end: plainDate(2026, 9, 30) }}\n />\n <FieldDescription>Set by finance when the quarter opens.</FieldDescription>\n </Field>\n <Field disabled>\n <FieldLabel>Price freeze</FieldLabel>\n <DateRangePicker\n defaultValue={{ start: plainDate(2026, 11, 23), end: plainDate(2026, 12, 31) }}\n />\n <FieldDescription>Unlocks once the pricing review is approved.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
733
602
  "verdict": "example"
734
603
  },
735
604
  {
736
605
  "id": "forms",
737
- "title": "Forms",
738
- "note": "A plain form post sends two ISO 8601 strings under startName and endName, whether the reader typed the dates or chose them. Choose a stay and submit.",
606
+ "title": "In a form",
607
+ "note": "startName and endName post the two days, a reset returns to the first run, and a Field names the frame and not the panel.",
739
608
  "language": "tsx",
740
- "source": "<form onSubmit={reserve}>\n <DateRangePicker endName=\"checkout\" startName=\"checkin\" required />\n <Button type=\"submit\">Reserve</Button>\n</form>;\n",
609
+ "source": "<Field>\n <FieldLabel>Leave</FieldLabel>\n <DateRangePicker endName=\"to\" startName=\"from\" />\n</Field>;\n",
741
610
  "verdict": "excerpt"
742
611
  },
743
612
  {
744
613
  "id": "narrow",
745
- "title": "Narrow",
746
- "note": "In a column narrower than two dates, the frame stays on one line: each date clips at its own edge and scrolls back into view when focus enters it, and the trigger keeps its place. The surface is capped by the room available, and the second month wraps under the first. On a touch screen narrower than 480 pixels, the surface is a sheet.",
614
+ "title": "One column",
615
+ "note": "Under 760 pixels the panel shows one month and the shortcuts become a strip over the footer. On a finger it is a sheet.",
747
616
  "language": "tsx",
748
- "source": "import { DateRangePicker, DateRangePickerPreset } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { addDays, plainDate } from '@slotted/core/date';\n\nconst TODAY = plainDate(2026, 9, 30);\n\nexport default function DateRangePickerNarrow() {\n return (\n <Field>\n <FieldLabel>Deliveries between</FieldLabel>\n <DateRangePicker\n max={TODAY}\n presets={\n <>\n <DateRangePickerPreset value={{ start: TODAY, end: TODAY }}>\n Today\n </DateRangePickerPreset>\n <DateRangePickerPreset value={{ start: addDays(TODAY, -6), end: TODAY }}>\n Last 7 days\n </DateRangePickerPreset>\n </>\n }\n />\n </Field>\n );\n}\n",
617
+ "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { addDays, plainDate } from '@slotted/core/date';\n\nconst TODAY = plainDate(2026, 9, 30);\n\nexport default function DateRangePickerNarrow() {\n return (\n <Field>\n <FieldLabel>Deliveries between</FieldLabel>\n <DateRangePicker\n max={TODAY}\n presets={[\n { label: 'Today', value: { start: TODAY, end: TODAY } },\n { label: 'Last 7 days', value: { start: addDays(TODAY, -6), end: TODAY } },\n ]}\n />\n </Field>\n );\n}\n",
749
618
  "verdict": "example"
750
619
  },
751
620
  {
752
621
  "id": "composition",
753
- "title": "Composition",
754
- "note": "DateRangePickerDefaultsProvider sets the unit and the months for a section, and SlottedProvider sets the language and every word. The handle opens, closes and focuses one end; position and onPositionChange control which end the next press writes.",
622
+ "title": "Composition and escape hatches",
623
+ "note": "The consumer may own the value, the open state and the end being edited, and a provider states the shape once.",
755
624
  "language": "tsx",
756
- "source": "<DateRangePickerDefaultsProvider count=\"nights\" months={1}>\n <DateRangePicker ref={handle} />\n</DateRangePickerDefaultsProvider>;\n",
625
+ "source": "<DateRangePicker footer=\"Returns by noon\" onValueChange={setRun} value={run} />;\n",
757
626
  "verdict": "excerpt"
758
627
  },
759
628
  {
760
629
  "id": "keyboard",
761
630
  "title": "The keyboard",
762
- "note": "Alt+ArrowDown opens the calendar from either field and leaves focus there. Enter on the trigger opens it on the day of the end being edited; each arrow moves the pending end and the band says the length; Enter twice writes the range. Escape returns to the day grid first, then closes and discards a range that has only its start.",
631
+ "note": "The fields keep their keys, and the panel adds the calendar’s.",
763
632
  "language": "tsx",
764
633
  "source": "import { useState } from 'react';\nimport { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate } from '@slotted/core/date';\n\nconst MESSAGES = {\n choose: 'Choose blackout dates',\n change: 'Change blackout dates, {start} to {end}, {length}',\n};\n\nexport default function DateRangePickerKeyboard() {\n const [last, setLast] = useState('Focus either date and press Alt+ArrowDown.');\n\n return (\n <Field>\n <FieldLabel>Shipping blackout</FieldLabel>\n <DateRangePicker\n defaultValue={{ start: plainDate(2026, 11, 26), end: plainDate(2026, 11, 29) }}\n messages={MESSAGES}\n onOpenChange={(open, request) =>\n setLast(`${open ? 'Opened' : 'Closed'} by ${request.reason}.`)\n }\n />\n <FieldDescription>{last}</FieldDescription>\n </Field>\n );\n}\n",
765
634
  "verdict": "example"
@@ -801,7 +670,7 @@
801
670
  "title": "compare-periods.tsx",
802
671
  "note": null,
803
672
  "language": "tsx",
804
- "source": "import { useState } from 'react';\nimport type { DateRange } from '@slotted/react/calendar';\nimport { DateRangePicker, DateRangePickerPreset } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { addDays, daysBetween, plainDate, stepYear } from '@slotted/core/date';\n\nconst SEPTEMBER: DateRange = { start: plainDate(2026, 9, 1), end: plainDate(2026, 9, 30) };\n\n/** The run of the same length that ends the day before the period starts. */\nconst previousPeriod = (period: DateRange): DateRange | null => {\n if (period.start === null || period.end === null) return null;\n const days = daysBetween(period.start, period.end) + 1;\n return { start: addDays(period.start, -days), end: addDays(period.start, -1) };\n};\n\nconst lastYear = (period: DateRange): DateRange | null =>\n period.start === null || period.end === null\n ? null\n : { start: stepYear(period.start, -1).date, end: stepYear(period.end, -1).date };\n\nexport default function DateRangePickerComparePeriods() {\n const [period, setPeriod] = useState<DateRange | null>(SEPTEMBER);\n const [baseline, setBaseline] = useState<DateRange | null>(previousPeriod(SEPTEMBER));\n\n const previous = period === null ? null : previousPeriod(period);\n const sameLastYear = period === null ? null : lastYear(period);\n\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Period</FieldLabel>\n <DateRangePicker onValueChange={(value) => setPeriod(value)} value={period} />\n </Field>\n <Field>\n <FieldLabel>Compare to</FieldLabel>\n <DateRangePicker\n onValueChange={(value) => setBaseline(value)}\n presets={\n <>\n {previous && (\n <DateRangePickerPreset value={previous}>Previous period</DateRangePickerPreset>\n )}\n {sameLastYear && (\n <DateRangePickerPreset value={sameLastYear}>\n Same period last year\n </DateRangePickerPreset>\n )}\n </>\n }\n value={baseline}\n />\n <FieldDescription>Shortcuts follow the period above.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
673
+ "source": "import { useState } from 'react';\nimport type { DateRange } from '@slotted/react/calendar';\nimport { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { addDays, daysBetween, plainDate, stepYear, type PickerPreset } from '@slotted/core/date';\n\nconst SEPTEMBER: DateRange = { start: plainDate(2026, 9, 1), end: plainDate(2026, 9, 30) };\n\n/** The run of the same length that ends the day before the period starts. */\nconst previousPeriod = (period: DateRange): DateRange | null => {\n if (period.start === null || period.end === null) return null;\n const days = daysBetween(period.start, period.end) + 1;\n return { start: addDays(period.start, -days), end: addDays(period.start, -1) };\n};\n\nconst lastYear = (period: DateRange): DateRange | null =>\n period.start === null || period.end === null\n ? null\n : { start: stepYear(period.start, -1).date, end: stepYear(period.end, -1).date };\n\n/** The two baselines of a period, as shortcuts. */\nconst shortcutsOf = (period: DateRange | null): PickerPreset<DateRange>[] => {\n const previous = period && previousPeriod(period);\n const sameLastYear = period && lastYear(period);\n\n return [\n ...(previous ? [{ label: 'Previous period', value: previous }] : []),\n ...(sameLastYear ? [{ label: 'Same period last year', value: sameLastYear }] : []),\n ];\n};\n\nexport default function DateRangePickerComparePeriods() {\n const [period, setPeriod] = useState<DateRange | null>(SEPTEMBER);\n const [baseline, setBaseline] = useState<DateRange | null>(previousPeriod(SEPTEMBER));\n\n return (\n <Stack gap={5}>\n <Field>\n <FieldLabel>Period</FieldLabel>\n <DateRangePicker onValueChange={(value) => setPeriod(value)} value={period} />\n </Field>\n <Field>\n <FieldLabel>Compare to</FieldLabel>\n <DateRangePicker\n onValueChange={(value) => setBaseline(value)}\n presets={shortcutsOf(period)}\n value={baseline}\n />\n <FieldDescription>Shortcuts follow the period above.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
805
674
  "verdict": "example"
806
675
  },
807
676
  {
@@ -857,7 +726,7 @@
857
726
  "title": "footer.tsx",
858
727
  "note": null,
859
728
  "language": "tsx",
860
- "source": "import { useRef } from 'react';\nimport { Button } from '@slotted/react/button';\nimport { DateRangePicker, type DateRangePickerHandle } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate } from '@slotted/core/date';\n\nexport default function DateRangePickerFooter() {\n const picker = useRef<DateRangePickerHandle>(null);\n\n return (\n <Field>\n <FieldLabel>Stock count freeze</FieldLabel>\n <DateRangePicker\n ref={picker}\n closeOnSelect=\"never\"\n defaultValue={{ start: plainDate(2026, 10, 30), end: plainDate(2026, 11, 1) }}\n footer={\n <Button size=\"sm\" onClick={() => picker.current?.close()}>\n Done\n </Button>\n }\n />\n <FieldDescription>The calendar stays open until you press Done.</FieldDescription>\n </Field>\n );\n}\n",
729
+ "source": "import { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldDescription, FieldLabel } from '@slotted/react/field';\nimport { plainDate } from '@slotted/core/date';\n\nexport default function DateRangePickerFooter() {\n return (\n <Field>\n <FieldLabel>Stock count freeze</FieldLabel>\n <DateRangePicker\n confirm={false}\n defaultValue={{ start: plainDate(2026, 10, 30), end: plainDate(2026, 11, 1) }}\n footer=\"No shipments leave on these days\"\n />\n <FieldDescription>The second press sets the freeze.</FieldDescription>\n </Field>\n );\n}\n",
861
730
  "verdict": "example"
862
731
  },
863
732
  {
@@ -897,7 +766,7 @@
897
766
  "title": "reporting-filter.tsx",
898
767
  "note": null,
899
768
  "language": "tsx",
900
- "source": "import { useState } from 'react';\nimport type { DateRange } from '@slotted/react/calendar';\nimport { DateRangePicker, DateRangePickerPreset } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Grid } from '@slotted/react/grid';\nimport { Stack } from '@slotted/react/stack';\nimport {\n StatCard,\n StatCardComparison,\n StatCardDelta,\n StatCardFigure,\n StatCardHeader,\n StatCardLabel,\n StatCardPeriod,\n StatCardValue,\n} from '@slotted/react/stat-card';\nimport { addDays, daysBetween, plainDate, type PlainDate } from '@slotted/core/date';\n\nconst TODAY = plainDate(2026, 9, 30);\nconst LAST_7_DAYS: DateRange = { start: addDays(TODAY, -6), end: TODAY };\nconst PRESETS: { label: string; range: DateRange }[] = [\n { label: 'Last 7 days', range: LAST_7_DAYS },\n { label: 'Last 30 days', range: { start: addDays(TODAY, -29), end: TODAY } },\n { label: 'This quarter', range: { start: plainDate(2026, 7, 1), end: TODAY } },\n];\n\n/** Orders shipped on one day, from the Northwind warehouse feed. */\nconst ordersOn = (date: PlainDate) => 150 + date.month * 6 + ((date.day * 37) % 50);\n\nconst ordersBetween = (start: PlainDate, end: PlainDate) => {\n let total = 0;\n for (let date = start; daysBetween(date, end) >= 0; date = addDays(date, 1)) {\n total += ordersOn(date);\n }\n return total;\n};\n\nexport default function DateRangePickerReportingFilter() {\n const [period, setPeriod] = useState<DateRange | null>(LAST_7_DAYS);\n\n const whole = period?.start && period.end ? { start: period.start, end: period.end } : null;\n const days = whole ? daysBetween(whole.start, whole.end) + 1 : 0;\n const orders = whole ? ordersBetween(whole.start, whole.end) : 0;\n const previous = whole ? ordersBetween(addDays(whole.start, -days), addDays(whole.start, -1)) : 0;\n const delta = previous === 0 ? 0 : (orders - previous) / previous;\n\n return (\n <Stack gap={5}>\n <Field size=\"sm\">\n <FieldLabel>Period</FieldLabel>\n <DateRangePicker\n max={TODAY}\n onValueChange={(value) => setPeriod(value)}\n presets={PRESETS.map((preset) => (\n <DateRangePickerPreset key={preset.label} value={preset.range}>\n {preset.label}\n </DateRangePickerPreset>\n ))}\n value={period}\n />\n </Field>\n <Grid gap={4} minItemWidth=\"sm\">\n <StatCard delta={delta} goodWhen=\"up\">\n <StatCardHeader>\n <StatCardLabel>Orders shipped</StatCardLabel>\n </StatCardHeader>\n <StatCardFigure>\n <StatCardValue value={orders} />\n <StatCardDelta />\n <StatCardComparison>\n from {previous.toLocaleString('en-US')}{' '}\n <StatCardPeriod>previous {days} days</StatCardPeriod>\n </StatCardComparison>\n </StatCardFigure>\n </StatCard>\n <StatCard>\n <StatCardHeader>\n <StatCardLabel>Orders per day</StatCardLabel>\n </StatCardHeader>\n <StatCardFigure>\n <StatCardValue value={days === 0 ? 0 : Math.round(orders / days)} />\n <StatCardComparison>\n over <StatCardPeriod>{days} days</StatCardPeriod>\n </StatCardComparison>\n </StatCardFigure>\n </StatCard>\n </Grid>\n </Stack>\n );\n}\n",
769
+ "source": "import { useState } from 'react';\nimport type { DateRange } from '@slotted/react/calendar';\nimport { DateRangePicker } from '@slotted/react/date-range-picker';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Grid } from '@slotted/react/grid';\nimport { Stack } from '@slotted/react/stack';\nimport {\n StatCard,\n StatCardComparison,\n StatCardDelta,\n StatCardFigure,\n StatCardHeader,\n StatCardLabel,\n StatCardPeriod,\n StatCardValue,\n} from '@slotted/react/stat-card';\nimport {\n addDays,\n daysBetween,\n plainDate,\n type PickerPreset,\n type PlainDate,\n} from '@slotted/core/date';\n\nconst TODAY = plainDate(2026, 9, 30);\nconst LAST_7_DAYS: DateRange = { start: addDays(TODAY, -6), end: TODAY };\nconst PRESETS: PickerPreset<DateRange>[] = [\n { label: 'Last 7 days', value: LAST_7_DAYS },\n { label: 'Last 30 days', value: { start: addDays(TODAY, -29), end: TODAY } },\n { label: 'This quarter', value: { start: plainDate(2026, 7, 1), end: TODAY } },\n];\n\n/** Orders shipped on one day, from the Northwind warehouse feed. */\nconst ordersOn = (date: PlainDate) => 150 + date.month * 6 + ((date.day * 37) % 50);\n\nconst ordersBetween = (start: PlainDate, end: PlainDate) => {\n let total = 0;\n for (let date = start; daysBetween(date, end) >= 0; date = addDays(date, 1)) {\n total += ordersOn(date);\n }\n return total;\n};\n\nexport default function DateRangePickerReportingFilter() {\n const [period, setPeriod] = useState<DateRange | null>(LAST_7_DAYS);\n\n const whole = period?.start && period.end ? { start: period.start, end: period.end } : null;\n const days = whole ? daysBetween(whole.start, whole.end) + 1 : 0;\n const orders = whole ? ordersBetween(whole.start, whole.end) : 0;\n const previous = whole ? ordersBetween(addDays(whole.start, -days), addDays(whole.start, -1)) : 0;\n const delta = previous === 0 ? 0 : (orders - previous) / previous;\n\n return (\n <Stack gap={5}>\n <Field size=\"sm\">\n <FieldLabel>Period</FieldLabel>\n <DateRangePicker\n max={TODAY}\n onValueChange={(value) => setPeriod(value)}\n presets={PRESETS}\n value={period}\n />\n </Field>\n <Grid gap={4} minItemWidth=\"sm\">\n <StatCard delta={delta} goodWhen=\"up\">\n <StatCardHeader>\n <StatCardLabel>Orders shipped</StatCardLabel>\n </StatCardHeader>\n <StatCardFigure>\n <StatCardValue value={orders} />\n <StatCardDelta />\n <StatCardComparison>\n from {previous.toLocaleString('en-US')}{' '}\n <StatCardPeriod>previous {days} days</StatCardPeriod>\n </StatCardComparison>\n </StatCardFigure>\n </StatCard>\n <StatCard>\n <StatCardHeader>\n <StatCardLabel>Orders per day</StatCardLabel>\n </StatCardHeader>\n <StatCardFigure>\n <StatCardValue value={days === 0 ? 0 : Math.round(orders / days)} />\n <StatCardComparison>\n over <StatCardPeriod>{days} days</StatCardPeriod>\n </StatCardComparison>\n </StatCardFigure>\n </StatCard>\n </Grid>\n </Stack>\n );\n}\n",
901
770
  "verdict": "example"
902
771
  },
903
772
  {