@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
@@ -46,6 +37,10 @@
46
37
  "position": [
47
38
  "start",
48
39
  "end"
40
+ ],
41
+ "confirm": [
42
+ "on",
43
+ "off"
49
44
  ]
50
45
  },
51
46
  "members": {
@@ -55,10 +50,8 @@
55
50
  "size": "md",
56
51
  "variant": "outline",
57
52
  "placement": "bottom-start",
58
- "closeOnSelect": "auto",
53
+ "confirm": true,
59
54
  "step": 900,
60
- "maxOptions": 1440,
61
- "unavailableOptions": "disable",
62
55
  "granularity": "minute",
63
56
  "contiguous": true,
64
57
  "clearable": false
@@ -86,9 +79,7 @@
86
79
  "invalid",
87
80
  "readonly",
88
81
  "required",
89
- "open",
90
- "current",
91
- "selected"
82
+ "open"
92
83
  ],
93
84
  "parts": [
94
85
  "root",
@@ -96,205 +87,51 @@
96
87
  "trigger",
97
88
  "summary",
98
89
  "clear",
99
- "hidden-input",
100
- "positioner",
101
- "content",
102
- "grip",
103
- "head",
104
- "tabs",
105
- "tab",
106
- "tab-label",
107
- "tab-value",
108
- "field",
109
- "now",
110
- "hint",
111
- "length",
112
- "limit",
113
- "presets",
114
- "preset",
115
- "panel",
116
- "list",
117
- "option",
118
- "option-duration",
119
- "empty",
120
- "footer",
121
- "done"
90
+ "hidden-input"
122
91
  ]
123
92
  }
124
93
  },
125
94
  "docs": {
126
95
  "timeRangePicker": {
127
96
  "imports": {
128
- "source": "import { SlottedProvider, TimeRangePicker, TimeRangePickerDefaultsProvider, TimeRangePickerPreset } from '@slotted/react';"
97
+ "source": "import { TimeRangePicker, TimeRangePickerDefaultsProvider } from '@slotted/react';"
129
98
  },
130
99
  "anatomy": [
131
100
  {
132
101
  "part": "root",
133
102
  "element": "div, or the element render returns",
134
103
  "required": true,
135
- "purpose": "The box the family is selected by. Carries data-ui=\"time-range-picker\", the axes, data-granularity, data-open and the state attributes. className, style and every native attribute reach it."
104
+ "purpose": "The frame of the picker. Carries data-ui=\"time-range-picker\", data-granularity, data-size, data-variant, data-open and the state attributes."
136
105
  },
137
106
  {
138
107
  "part": "control",
139
108
  "element": "div",
140
109
  "required": true,
141
- "purpose": "The frame: one line at the control height, at any width, and what the positioner measures. Two segmented fields stood here first and broke it into two lines in a narrow form column; the current end’s field lives in the band now."
110
+ "purpose": "The box the panel hangs from, around the field and the trigger."
142
111
  },
143
112
  {
144
113
  "part": "trigger",
145
114
  "element": "button",
146
115
  "required": true,
147
- "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 clock glyph sits at its reading end."
116
+ "purpose": "The button that fills the frame and opens the panel. Its name carries both ends and the length written."
148
117
  },
149
118
  {
150
119
  "part": "summary",
151
120
  "element": "span",
152
121
  "required": true,
153
- "purpose": "The value written short — \"14:00 – 16:30\" — or the placeholder with data-placeholder. Cut with an ellipsis where it does not fit; the trigger’s name carries it whole."
122
+ "purpose": "The run in words, one line, or the placeholder with data-placeholder."
154
123
  },
155
124
  {
156
125
  "part": "clear",
157
126
  "element": "button",
158
127
  "required": false,
159
- "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."
128
+ "purpose": "Empties both ends, with clearable and a value."
160
129
  },
161
130
  {
162
131
  "part": "hidden-input",
163
132
  "element": "input",
164
133
  "required": true,
165
- "purpose": "Two, under startName and endName, carrying HH:mm:ss for a plain form post. They live in the frame because the surface is portalled and unmounted while it is closed."
166
- },
167
- {
168
- "part": "positioner",
169
- "element": "div",
170
- "required": false,
171
- "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."
172
- },
173
- {
174
- "part": "content",
175
- "element": "div",
176
- "required": false,
177
- "purpose": "The painted surface, carrying role=\"dialog\" and the same name as the trigger. The anchor’s width, between sixteen and twenty-two rems, so a column is never too tight to read a time and its duration in."
178
- },
179
- {
180
- "part": "grip",
181
- "element": "span, aria-hidden",
182
- "required": false,
183
- "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."
184
- },
185
- {
186
- "part": "head",
187
- "element": "div",
188
- "required": false,
189
- "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."
190
- },
191
- {
192
- "part": "tabs",
193
- "element": "div",
194
- "required": false,
195
- "purpose": "role=\"tablist\": the two ends, one at a time."
196
- },
197
- {
198
- "part": "tab",
199
- "element": "button",
200
- "required": false,
201
- "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."
202
- },
203
- {
204
- "part": "tab-label",
205
- "element": "span",
206
- "required": false,
207
- "purpose": "\"Start\" or \"End\", from the start and end messages."
208
- },
209
- {
210
- "part": "tab-value",
211
- "element": "span",
212
- "required": false,
213
- "purpose": "The end written short — \"14:00\" — or a dash."
214
- },
215
- {
216
- "part": "field",
217
- "element": "div",
218
- "required": false,
219
- "purpose": "Holds the current end’s time-field in variant=\"plain\", data-position. Drawn on a fine pointer only: a segment is a spinbutton and raises no keyboard on a phone."
220
- },
221
- {
222
- "part": "now",
223
- "element": "button",
224
- "required": false,
225
- "purpose": "Beside the field: writes the current time — referenceTime, or the clock — into the current end, and follows the focus rule."
226
- },
227
- {
228
- "part": "hint",
229
- "element": "span",
230
- "required": false,
231
- "purpose": "What the next press should be, or what is wrong — \"End: choose a time\", \"The end must come after the start\" — from the 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."
232
- },
233
- {
234
- "part": "length",
235
- "element": "span",
236
- "required": false,
237
- "purpose": "\"2 hr 30 min\": the duration of the run the pending end would make, or of the work. A polite live region, so a screen reader hears it on every arrow. data-pending while it is a proposal."
238
- },
239
- {
240
- "part": "limit",
241
- "element": "span",
242
- "required": false,
243
- "purpose": "\"30 min to 4 hr\", drawn while minLength or maxLength is set."
244
- },
245
- {
246
- "part": "presets",
247
- "element": "div",
248
- "required": false,
249
- "purpose": "The row of the consumer’s own shortcuts, rendered from the presets prop, between the band and the panel; it wraps."
250
- },
251
- {
252
- "part": "preset",
253
- "element": "button",
254
- "required": false,
255
- "purpose": "One shortcut, a TimeRangePickerPreset. Writes its range with the select reason and carries data-selected while the value equals it."
256
- },
257
- {
258
- "part": "panel",
259
- "element": "div",
260
- "required": false,
261
- "purpose": "The current end, one at a time: data-position=\"start\" or \"end\". Its list already refuses what the other end of the work refuses, and choosing an end moves the tab to the other."
262
- },
263
- {
264
- "part": "list",
265
- "element": "div",
266
- "required": false,
267
- "purpose": "role=\"listbox\": the times of the current end, at every step, and the only thing that scrolls. Eight rows and half of the ninth, so it is seen to scroll; named by the current tab. data-truncated when it stops at maxOptions."
268
- },
269
- {
270
- "part": "option",
271
- "element": "div",
272
- "required": false,
273
- "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."
274
- },
275
- {
276
- "part": "option-duration",
277
- "element": "span",
278
- "required": false,
279
- "purpose": "Beside the time, the duration the run would have with the other end as it stands — \"15:00 · 1 hr\". A refused row carries none. renderOption replaces the row’s content, this span included."
280
- },
281
- {
282
- "part": "empty",
283
- "element": "div",
284
- "required": false,
285
- "purpose": "Drawn in place of a list when its end has no time available at all."
286
- },
287
- {
288
- "part": "footer",
289
- "element": "div",
290
- "required": false,
291
- "purpose": "The consumer’s own actions, rendered from the footer prop, and done at its reading end."
292
- },
293
- {
294
- "part": "done",
295
- "element": "button",
296
- "required": false,
297
- "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."
134
+ "purpose": "One for each end, posted under startName and endName."
298
135
  }
299
136
  ],
300
137
  "api": [
@@ -303,287 +140,245 @@
303
140
  "type": "TimeRange | null",
304
141
  "defaultValue": "—",
305
142
  "appliesTo": "TimeRangePicker",
306
- "description": "{ start, end }, each end nullable. Present means the consumer owns it. Both ends null is null."
143
+ "description": "The run held, either end of which may be null. Present means the consumer owns it."
307
144
  },
308
145
  {
309
146
  "name": "defaultValue",
310
147
  "type": "TimeRange | null",
311
- "defaultValue": "—",
148
+ "defaultValue": "null",
312
149
  "appliesTo": "TimeRangePicker",
313
- "description": "What it starts from when nobody else writes one. Read once."
314
- },
315
- {
316
- "name": "open",
317
- "type": "boolean",
318
- "defaultValue": "—",
319
- "appliesTo": "TimeRangePicker",
320
- "description": "Whether the surface is showing. Present means the consumer owns it."
321
- },
322
- {
323
- "name": "defaultOpen",
324
- "type": "boolean",
325
- "defaultValue": "false",
326
- "appliesTo": "TimeRangePicker",
327
- "description": "Whether it opens already showing."
150
+ "description": "What it starts from, and returns to on a form reset. Read once."
328
151
  },
329
152
  {
330
153
  "name": "position",
331
154
  "type": "'start' | 'end'",
332
155
  "defaultValue": "—",
333
156
  "appliesTo": "TimeRangePicker",
334
- "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."
157
+ "description": "The end being edited. Present means the consumer owns it."
335
158
  },
336
159
  {
337
160
  "name": "defaultPosition",
338
161
  "type": "'start' | 'end'",
339
162
  "defaultValue": "start",
340
163
  "appliesTo": "TimeRangePicker",
341
- "description": "Where editing starts."
164
+ "description": "The end it starts on."
342
165
  },
343
166
  {
344
- "name": "highlighted",
345
- "type": "{ start: PlainTime | null; end: PlainTime | null }",
167
+ "name": "minLength",
168
+ "type": "number",
346
169
  "defaultValue": "—",
347
170
  "appliesTo": "TimeRangePicker",
348
- "description": "The highlighted option of each end’s list. Present means the consumer owns it. Moving it moves no value."
171
+ "description": "The shortest run, in seconds."
349
172
  },
350
173
  {
351
- "name": "defaultHighlighted",
352
- "type": "{ start: PlainTime | null; end: PlainTime | null }",
174
+ "name": "maxLength",
175
+ "type": "number",
353
176
  "defaultValue": "—",
354
177
  "appliesTo": "TimeRangePicker",
355
- "description": "Where the highlights start; otherwise a list opens on its end, or on the nearest offered step."
178
+ "description": "The longest run, in seconds."
179
+ },
180
+ {
181
+ "name": "contiguous",
182
+ "type": "boolean",
183
+ "defaultValue": "true",
184
+ "appliesTo": "TimeRangePicker",
185
+ "description": "Whether a run may cross an unavailable time."
356
186
  },
357
187
  {
358
188
  "name": "min",
359
189
  "type": "PlainTime",
360
190
  "defaultValue": "—",
361
191
  "appliesTo": "TimeRangePicker",
362
- "description": "The earliest time both fields and both lists accept. Crossed with the work: the start cannot step past the end, nor the end before the start."
192
+ "description": "The earliest accepted time."
363
193
  },
364
194
  {
365
195
  "name": "max",
366
196
  "type": "PlainTime",
367
197
  "defaultValue": "—",
368
198
  "appliesTo": "TimeRangePicker",
369
- "description": "The latest time any of the four accepts."
199
+ "description": "The latest accepted time."
370
200
  },
371
201
  {
372
202
  "name": "isTimeUnavailable",
373
203
  "type": "(time: PlainTime) => boolean",
374
204
  "defaultValue": "—",
375
205
  "appliesTo": "TimeRangePicker",
376
- "description": "Refuses particular times. Typed at an end, it makes the control invalid; listed, the row cannot be pressed."
377
- },
378
- {
379
- "name": "contiguous",
380
- "type": "boolean",
381
- "defaultValue": "true",
382
- "appliesTo": "TimeRangePicker",
383
- "description": "Whether a run may cross an unavailable time. On, and with a start chosen, the options beyond the first unavailable one are refused in the end list; the search runs over the list, never over the seconds."
384
- },
385
- {
386
- "name": "minLength",
387
- "type": "number",
388
- "defaultValue": "—",
389
- "appliesTo": "TimeRangePicker",
390
- "description": "The shortest run allowed, in seconds. The lists refuse shorter ones and the band names the limit."
391
- },
392
- {
393
- "name": "maxLength",
394
- "type": "number",
395
- "defaultValue": "—",
396
- "appliesTo": "TimeRangePicker",
397
- "description": "The longest run allowed, in seconds."
206
+ "description": "Refuses particular times."
398
207
  },
399
208
  {
400
209
  "name": "lengthLabel",
401
- "type": "(seconds: number, locale?: string) => string",
402
- "defaultValue": "durationLabel",
210
+ "type": "(seconds: number, locale: string | undefined) => string",
211
+ "defaultValue": "the locale’s",
403
212
  "appliesTo": "TimeRangePicker",
404
- "description": "What the band and the rows say for a duration, in the product’s own words. The default writes \"2 hr 30 min\" in the family’s locale."
213
+ "description": "Writes a length in words."
405
214
  },
406
215
  {
407
216
  "name": "step",
408
217
  "type": "number",
409
218
  "defaultValue": "900",
410
219
  "appliesTo": "TimeRangePicker",
411
- "description": "Seconds between two offered times, in both lists. Ignored when options states the list. The fields’ arrows move by one of their own unit regardless."
220
+ "description": "Seconds between two offered times, counted from min or from midnight."
412
221
  },
413
222
  {
414
223
  "name": "options",
415
224
  "type": "readonly PlainTime[]",
416
225
  "defaultValue": "—",
417
226
  "appliesTo": "TimeRangePicker",
418
- "description": "The times to offer, stated rather than stepped; the same list for both ends. The bounds and the predicate still refuse."
227
+ "description": "The times there are, stated rather than stepped, for both ends."
419
228
  },
420
229
  {
421
- "name": "maxOptions",
422
- "type": "number",
423
- "defaultValue": "1440",
230
+ "name": "presets",
231
+ "type": "readonly PickerPreset<TimeRange>[]",
232
+ "defaultValue": "—",
424
233
  "appliesTo": "TimeRangePicker",
425
- "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."
234
+ "description": "The consumer’s own shortcuts."
426
235
  },
427
236
  {
428
- "name": "unavailableOptions",
429
- "type": "'disable' | 'hide'",
430
- "defaultValue": "disable",
237
+ "name": "durations",
238
+ "type": "readonly number[]",
239
+ "defaultValue": "900 to 14400",
431
240
  "appliesTo": "TimeRangePicker",
432
- "description": "What a refused time looks like in a list: drawn muted with aria-disabled, or left out."
241
+ "description": "Lengths the run takes from its start, in seconds. An empty list draws none."
433
242
  },
434
243
  {
435
- "name": "locale",
436
- "type": "string",
437
- "defaultValue": "SlottedProvider",
244
+ "name": "confirm",
245
+ "type": "boolean",
246
+ "defaultValue": "true",
438
247
  "appliesTo": "TimeRangePicker",
439
- "description": "BCP 47. Decides the field order, the digits, the day-period names and the duration’s units. Unset, the language in force decides."
248
+ "description": "Whether the panel keeps a draft until Apply."
440
249
  },
441
250
  {
442
- "name": "timeZone",
443
- "type": "string",
444
- "defaultValue": "—",
251
+ "name": "granularity",
252
+ "type": "'hour' | 'minute' | 'second'",
253
+ "defaultValue": "minute",
445
254
  "appliesTo": "TimeRangePicker",
446
- "description": "The zone \"now\" is read in."
255
+ "description": "The finest unit written."
447
256
  },
448
257
  {
449
258
  "name": "hourCycle",
450
259
  "type": "12 | 24",
451
- "defaultValue": "—",
452
- "appliesTo": "TimeRangePicker",
453
- "description": "Twelve- or twenty-four-hour times. Unset, the locale decides."
454
- },
455
- {
456
- "name": "granularity",
457
- "type": "'hour' | 'minute' | 'second'",
458
- "defaultValue": "minute",
260
+ "defaultValue": "the locale’s",
459
261
  "appliesTo": "TimeRangePicker",
460
- "description": "How much of a time the fields and the rows write."
262
+ "description": "The clock the times are written on."
461
263
  },
462
264
  {
463
265
  "name": "referenceTime",
464
266
  "type": "PlainTime",
465
- "defaultValue": "—",
267
+ "defaultValue": "now",
466
268
  "appliesTo": "TimeRangePicker",
467
- "description": "What \"now\" is, for a story or a test; the clock otherwise. Anchors now and the relative expression."
269
+ "description": "The time it is, whose hour the clocks outline."
468
270
  },
469
271
  {
470
- "name": "size",
471
- "type": "'sm' | 'md' | 'lg'",
472
- "defaultValue": "md",
473
- "appliesTo": "TimeRangePicker",
474
- "description": "The control scale of the frame."
475
- },
476
- {
477
- "name": "variant",
478
- "type": "'outline' | 'subtle' | 'plain'",
479
- "defaultValue": "outline",
272
+ "name": "relative",
273
+ "type": "boolean",
274
+ "defaultValue": "true",
480
275
  "appliesTo": "TimeRangePicker",
481
- "description": "How much frame the control shows at rest."
276
+ "description": "Whether + and - open the duration expression in the fields."
482
277
  },
483
278
  {
484
- "name": "placement",
485
- "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
486
- "defaultValue": "bottom-start",
279
+ "name": "startName",
280
+ "type": "string",
281
+ "defaultValue": "—",
487
282
  "appliesTo": "TimeRangePicker",
488
- "description": "Where the surface opens, before the positioner has read the room."
283
+ "description": "The name a form posts the start under."
489
284
  },
490
285
  {
491
- "name": "closeOnSelect",
492
- "type": "'auto' | 'always' | 'never'",
493
- "defaultValue": "auto",
286
+ "name": "endName",
287
+ "type": "string",
288
+ "defaultValue": "—",
494
289
  "appliesTo": "TimeRangePicker",
495
- "description": "auto closes when a press completes the work; always closes on any press that changes the value; never closes on none."
290
+ "description": "The name a form posts the end under."
496
291
  },
497
292
  {
498
- "name": "disabled",
293
+ "name": "invalid",
499
294
  "type": "boolean",
500
295
  "defaultValue": "—",
501
296
  "appliesTo": "TimeRangePicker",
502
- "description": "Nothing answers; the value stays readable."
297
+ "description": "Stated by the consumer; a run that fails a rule is invalid without it."
503
298
  },
504
299
  {
505
- "name": "readOnly",
300
+ "name": "open",
506
301
  "type": "boolean",
507
302
  "defaultValue": "—",
508
303
  "appliesTo": "TimeRangePicker",
509
- "description": "Legible and copyable; the trigger and the clear are out of the tab sequence."
304
+ "description": "Whether the panel is showing. Present means the consumer owns it."
510
305
  },
511
306
  {
512
- "name": "invalid",
307
+ "name": "defaultOpen",
513
308
  "type": "boolean",
514
- "defaultValue": "—",
309
+ "defaultValue": "false",
515
310
  "appliesTo": "TimeRangePicker",
516
- "description": "The consumer’s own word. Set, it wins; unset, the family’s own rules and the field around it decide."
311
+ "description": "Whether it starts open when nobody else says. Read once."
517
312
  },
518
313
  {
519
- "name": "required",
520
- "type": "boolean",
521
- "defaultValue": "—",
314
+ "name": "placement",
315
+ "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
316
+ "defaultValue": "bottom-start",
522
317
  "appliesTo": "TimeRangePicker",
523
- "description": "Reaches both fields as aria-required."
318
+ "description": "Where the panel opens, before the positioner has read the room."
524
319
  },
525
320
  {
526
- "name": "clearable",
527
- "type": "boolean",
528
- "defaultValue": "false",
321
+ "name": "size",
322
+ "type": "'sm' | 'md' | 'lg'",
323
+ "defaultValue": "md",
529
324
  "appliesTo": "TimeRangePicker",
530
- "description": "Draws one clear on the frame, which empties both ends."
325
+ "description": "The height of the control. The field around it answers when the picker does not."
531
326
  },
532
327
  {
533
- "name": "relative",
534
- "type": "boolean",
535
- "defaultValue": "—",
328
+ "name": "variant",
329
+ "type": "'outline' | 'subtle' | 'plain'",
330
+ "defaultValue": "outline",
536
331
  "appliesTo": "TimeRangePicker",
537
- "description": "Whether the field in the band takes the relative expression — +40, 1h30, = — the way a time-field does."
332
+ "description": "How the control draws its frame."
538
333
  },
539
334
  {
540
- "name": "messages",
541
- "type": "Partial<TimeRangePickerMessages>",
542
- "defaultValue": "—",
335
+ "name": "locale",
336
+ "type": "string",
337
+ "defaultValue": "the language in force",
543
338
  "appliesTo": "TimeRangePicker",
544
- "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 (chooseTime with {end}; 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)."
339
+ "description": "BCP 47. Writes the field, the panel and the trigger’s name."
545
340
  },
546
341
  {
547
- "name": "startName",
342
+ "name": "timeZone",
548
343
  "type": "string",
549
- "defaultValue": "—",
344
+ "defaultValue": "the runtime’s",
550
345
  "appliesTo": "TimeRangePicker",
551
- "description": "The name of the hidden input carrying the start."
346
+ "description": "Which zone answers \"what is now\"."
552
347
  },
553
348
  {
554
- "name": "endName",
555
- "type": "string",
349
+ "name": "disabled",
350
+ "type": "boolean",
556
351
  "defaultValue": "—",
557
352
  "appliesTo": "TimeRangePicker",
558
- "description": "The name of the hidden input carrying the end."
353
+ "description": "Answers no key and no press."
559
354
  },
560
355
  {
561
- "name": "presets",
562
- "type": "ReactNode",
356
+ "name": "readOnly",
357
+ "type": "boolean",
563
358
  "defaultValue": "—",
564
359
  "appliesTo": "TimeRangePicker",
565
- "description": "The consumer’s shortcuts, as TimeRangePickerPreset elements."
360
+ "description": "Readable and not changeable."
566
361
  },
567
362
  {
568
- "name": "footer",
569
- "type": "ReactNode",
363
+ "name": "required",
364
+ "type": "boolean",
570
365
  "defaultValue": "—",
571
366
  "appliesTo": "TimeRangePicker",
572
- "description": "The consumer’s own actions, under the lists."
367
+ "description": "The form needs a value."
573
368
  },
574
369
  {
575
- "name": "renderOption",
576
- "type": "(state: TimeRangePickerOptionState) => ReactNode",
577
- "defaultValue": "—",
370
+ "name": "clearable",
371
+ "type": "boolean",
372
+ "defaultValue": "false",
578
373
  "appliesTo": "TimeRangePicker",
579
- "description": "What one row draws. The state carries the end, the time, its label, its duration, and whether it is selected, current or unavailable."
374
+ "description": "Draws a clear on the control."
580
375
  },
581
376
  {
582
- "name": "value",
583
- "type": "TimeRange | (() => TimeRange)",
377
+ "name": "messages",
378
+ "type": "Partial<TimeRangePickerMessages>",
584
379
  "defaultValue": "—",
585
- "appliesTo": "TimeRangePickerPreset",
586
- "description": "The range the press writes, or a function resolving it at the press."
380
+ "appliesTo": "TimeRangePicker",
381
+ "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."
587
382
  }
588
383
  ],
589
384
  "composition": [
@@ -592,73 +387,67 @@
592
387
  "type": "component",
593
388
  "defaultValue": "—",
594
389
  "appliesTo": "application",
595
- "description": "Sets timeZone, hourCycle, granularity, step, maxOptions, unavailableOptions, closeOnSelect, placement, size, variant and lengthLabel once for everything under it. The locale and the words come from SlottedProvider."
390
+ "description": "Sets confirm, granularity, hourCycle, lengthLabel, placement, size, step, timeZone and variant once."
596
391
  },
597
392
  {
598
- "name": "TimeRangePickerPreset",
599
- "type": "component",
600
- "defaultValue": "—",
601
- "appliesTo": "presets",
602
- "description": "One shortcut inside presets. Takes every button prop, composes onClick, and takes render to substitute its element."
393
+ "name": "footer",
394
+ "type": "ReactNode",
395
+ "defaultValue": "the limits, or the step",
396
+ "appliesTo": "TimeRangePicker",
397
+ "description": "What the footer says when nothing is wrong."
398
+ },
399
+ {
400
+ "name": "renderSlot",
401
+ "type": "(state: ClockSlotState) => ReactNode",
402
+ "defaultValue": "the time",
403
+ "appliesTo": "TimeRangePicker",
404
+ "description": "What one whole time of options draws."
603
405
  },
604
406
  {
605
407
  "name": "render",
606
408
  "type": "(props: TimeRangePickerRootProps) => ReactNode",
607
409
  "defaultValue": "—",
608
410
  "appliesTo": "TimeRangePicker",
609
- "description": "Substitutes the element the root renders. The props carry the ref, which the positioner measures its anchor through."
411
+ "description": "Substitutes the element the root renders."
610
412
  },
611
413
  {
612
414
  "name": "ref",
613
415
  "type": "Ref<TimeRangePickerHandle>",
614
416
  "defaultValue": "—",
615
417
  "appliesTo": "TimeRangePicker",
616
- "description": "focus() puts the reader on the trigger; open() and close() move the surface without a controlled prop."
617
- },
618
- {
619
- "name": "onKeyDown",
620
- "type": "KeyboardEventHandler",
621
- "defaultValue": "—",
622
- "appliesTo": "TimeRangePicker",
623
- "description": "Runs before the trigger, the tabs and the list read a key, and calling preventDefault stops them."
418
+ "description": "focus(), open() and close()."
624
419
  }
625
420
  ],
626
421
  "events": [
627
422
  {
628
423
  "name": "onValueChange",
629
424
  "payload": "(value: TimeRange | null, request: ChangeRequest<TimeRange | null>)",
630
- "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 list, now, done or a preset completed the work or changed a whole one, clear for the clear button. A press that leaves the work with one end emits nothing."
425
+ "when": "Before the value moves, and cancellable: from Apply, and from the clear of the frame."
631
426
  },
632
427
  {
633
428
  "name": "onOpenChange",
634
429
  "payload": "(open: boolean, request: ChangeRequest<boolean>)",
635
- "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."
430
+ "when": "Before the panel opens or closes, with the reason."
636
431
  },
637
432
  {
638
433
  "name": "onPositionChange",
639
- "payload": "(position: 'start' | 'end', request: ChangeRequest<'start' | 'end'>)",
640
- "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 list or a preset moved it, clear for the clear button, programmatic when the panel opened on the first missing end."
641
- },
642
- {
643
- "name": "onHighlightedChange",
644
- "payload": "(value: { start; end }, request: ChangeRequest<{ start; end }>)",
645
- "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."
434
+ "payload": "(position: TimeRangePickerPosition, request: ChangeRequest<TimeRangePickerPosition>)",
435
+ "when": "Before the end being edited moves."
646
436
  }
647
437
  ],
648
438
  "accessibility": [
649
- "The trigger’s accessible name carries both ends in words and the duration — \"Change range, 14:00 – 16:30, 2 hr 30 min\". Focus returns to it when the surface closes, so it is where a screen-reader user is told what happened; the summary’s ellipsis removes nothing they cannot hear.",
650
- "The two ends are a tablist with automatic activation, and the panel is one end at a time: the list is a listbox named by the current tab, so \"Start, 14:00\" is heard before the first option. The hint is the list’s description, so what to choose next is read with it.",
651
- "The duration is a polite live region: a sighted reader sees it beside every row, a screen-reader user hears it on every arrow.",
652
- "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 time-field has, the relative expression included. On a coarse pointer the field is not drawn — a segment raises no keyboard — and Enter opens onto the list.",
653
- "The rule datetime-picker wrote, once per end: a press that leaves the work with one end moves the tab to the other and carries focus to its list; the press that completes it closes the panel and returns focus to the trigger. A half-drawn run never reaches a form. Done is the way out when nothing closed it.",
654
- "Escape is staged. dismissable-layer listens in the capture phase, so a field with an expression open takes the key first; then the surface closes and the work is abandoned."
439
+ "The trigger says aria-haspopup=\"dialog\" and its name carries the value written, which is where focus returns when the panel closes.",
440
+ "The panel is a dialog with its Tab wrapped, and each grid inside it is one stop.",
441
+ "Escape discards the draft and returns focus to the trigger. Ctrl+Enter applies from anywhere in the panel.",
442
+ "The footer’s hint is a status region, so the reason Apply is off is spoken as well as drawn.",
443
+ "Alt+ArrowDown opens the panel and leaves focus in the field, so the segments keep every key they had.",
444
+ "The length between the two halves is a status region, so a reader hears it on every step.",
445
+ "Each handle of the day is a slider with its time in aria-valuetext, and every value a drag reaches is also two presses or a typed time away."
655
446
  ]
656
447
  }
657
448
  },
658
449
  "tokens": [
659
- "--slotted-border-strong",
660
450
  "--slotted-border-subtle",
661
- "--slotted-border-width-thin",
662
451
  "--slotted-control-border-color",
663
452
  "--slotted-control-border-width",
664
453
  "--slotted-control-font-family",
@@ -687,37 +476,13 @@
687
476
  "--slotted-disabled-background",
688
477
  "--slotted-disabled-border",
689
478
  "--slotted-disabled-foreground",
690
- "--slotted-drawer-resizer-line-color",
691
- "--slotted-duration-medium",
692
- "--slotted-duration-short",
693
- "--slotted-easing-enter",
694
- "--slotted-easing-exit",
695
479
  "--slotted-focus-ring-color",
696
480
  "--slotted-focus-ring-color-invalid",
697
481
  "--slotted-focus-ring-offset",
698
482
  "--slotted-focus-ring-width",
699
- "--slotted-font-size-sm",
700
- "--slotted-font-size-xs",
701
- "--slotted-font-weight-medium",
702
- "--slotted-font-weight-regular",
703
- "--slotted-font-weight-semibold",
704
- "--slotted-letter-spacing-wide",
705
- "--slotted-line-height-sm",
706
- "--slotted-radius-full",
707
- "--slotted-radius-lg",
708
483
  "--slotted-radius-none",
709
- "--slotted-radius-pill",
710
- "--slotted-radius-sm",
711
- "--slotted-radius-xs",
712
- "--slotted-shadow-md",
713
484
  "--slotted-space-1",
714
- "--slotted-space-11",
715
485
  "--slotted-space-2",
716
- "--slotted-space-3",
717
- "--slotted-space-4",
718
- "--slotted-space-5",
719
- "--slotted-space-9",
720
- "--slotted-surface-raised",
721
486
  "--slotted-surface-sunken",
722
487
  "--slotted-target-comfortable",
723
488
  "--slotted-target-min",
@@ -730,196 +495,169 @@
730
495
  "--slotted-time-range-picker-background",
731
496
  "--slotted-time-range-picker-border-color",
732
497
  "--slotted-time-range-picker-color",
733
- "--slotted-time-range-picker-content-border-color",
734
- "--slotted-time-range-picker-content-color",
735
- "--slotted-time-range-picker-content-min-inline-size",
736
- "--slotted-time-range-picker-content-padding",
737
- "--slotted-time-range-picker-content-radius",
738
- "--slotted-time-range-picker-content-shadow",
739
- "--slotted-time-range-picker-current-color",
740
- "--slotted-time-range-picker-current-size",
741
498
  "--slotted-time-range-picker-disabled-background",
742
499
  "--slotted-time-range-picker-disabled-border-color",
743
500
  "--slotted-time-range-picker-disabled-color",
744
- "--slotted-time-range-picker-done-active-background",
745
- "--slotted-time-range-picker-done-background",
746
- "--slotted-time-range-picker-done-color",
747
- "--slotted-time-range-picker-done-hover-background",
748
- "--slotted-time-range-picker-hint-color",
749
501
  "--slotted-time-range-picker-hover-border-color",
750
502
  "--slotted-time-range-picker-invalid-border-color",
751
- "--slotted-time-range-picker-invalid-color",
752
503
  "--slotted-time-range-picker-invalid-edge-width",
753
504
  "--slotted-time-range-picker-invalid-focus-ring-color",
754
- "--slotted-time-range-picker-label-color",
755
- "--slotted-time-range-picker-length-color",
756
- "--slotted-time-range-picker-limit-color",
757
- "--slotted-time-range-picker-list-block-size",
758
- "--slotted-time-range-picker-now-color",
759
- "--slotted-time-range-picker-option-current-background",
760
- "--slotted-time-range-picker-option-hover-background",
761
- "--slotted-time-range-picker-option-radius",
762
- "--slotted-time-range-picker-option-selected-background",
763
- "--slotted-time-range-picker-option-selected-color",
764
- "--slotted-time-range-picker-option-selected-hover-background",
765
505
  "--slotted-time-range-picker-placeholder-color",
766
506
  "--slotted-time-range-picker-plain-hover-background",
767
- "--slotted-time-range-picker-preset-active-background",
768
- "--slotted-time-range-picker-preset-background",
769
- "--slotted-time-range-picker-preset-hover-background",
770
- "--slotted-time-range-picker-preset-radius",
771
- "--slotted-time-range-picker-preset-selected-background",
772
- "--slotted-time-range-picker-preset-selected-color",
773
507
  "--slotted-time-range-picker-radius",
774
508
  "--slotted-time-range-picker-readonly-background",
775
509
  "--slotted-time-range-picker-shadow",
776
- "--slotted-time-range-picker-sheet-inline-size",
777
510
  "--slotted-time-range-picker-subtle-background",
778
511
  "--slotted-time-range-picker-subtle-border-color",
779
512
  "--slotted-time-range-picker-subtle-hover-background",
780
- "--slotted-time-range-picker-surface",
781
- "--slotted-time-range-picker-tab-block-size",
782
513
  "--slotted-tone-accent-border",
783
- "--slotted-tone-accent-on-solid",
784
- "--slotted-tone-accent-solid",
785
- "--slotted-tone-accent-solid-active",
786
- "--slotted-tone-accent-solid-hover",
787
- "--slotted-tone-accent-subtle-hover",
788
- "--slotted-tone-accent-text",
789
514
  "--slotted-tone-danger-border",
790
- "--slotted-tone-danger-text",
791
- "--slotted-tone-secondary-subtle",
792
515
  "--slotted-tone-secondary-subtle-active",
793
- "--slotted-tone-secondary-subtle-hover",
794
- "--slotted-z-index-popover"
516
+ "--slotted-tone-secondary-subtle-hover"
795
517
  ],
796
518
  "examples": [
797
519
  {
798
520
  "id": "playground",
799
521
  "title": "Playground",
800
- "note": "A meeting room booked for the afternoon. The frame is one line: press it and the two tabs, the field, the hint and the list of the current end open under it. Every prop is on the controls panel.",
522
+ "note": "Both ends, the length between them and the day are on screen. Press, type, drag a handle or step the length; Apply writes the run.",
801
523
  "language": "tsx",
802
- "source": "<Field>\n <FieldLabel>Reserva da sala</FieldLabel>\n <TimeRangePicker\n clearable\n defaultValue={{ start: plainTime(14), end: plainTime(16, 30) }}\n locale=\"pt-BR\"\n messages={{ start: 'Start', end: 'End' }}\n />\n</Field>;\n",
524
+ "source": "<TimeRangePicker defaultValue={BOOKING} />;\n",
803
525
  "verdict": "excerpt"
804
526
  },
805
527
  {
806
528
  "id": "panel",
807
- "title": "One end at a time",
808
- "note": "Open it: two tabs say the two ends, and the panel shows the one being chosen. The start is 14:00, so the end tab is current and its list strikes every time before 14:00, writing the duration beside every other. Press one: the meeting is whole and the surface closes.",
529
+ "title": "The day and two clocks",
530
+ "note": "The clock of the end refuses what the start refuses of it, in the gesture that chooses the start.",
809
531
  "language": "tsx",
810
- "source": "<TimeRangePicker defaultOpen defaultValue={{ start: plainTime(14), end: null }} locale=\"pt-BR\" />;\n",
532
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} defaultOpen />;\n",
811
533
  "verdict": "excerpt"
812
534
  },
813
535
  {
814
536
  "id": "length",
815
- "title": "The duration, while the run is drawn",
816
- "note": "Move along the end list with the pointer or the arrows: the band says \"1 hr\", \"1 hr 15 min\", \"1 hr 30 min\" for the row under you, and every row says it beside its time. lengthLabel writes it in the product’s own words.",
537
+ "title": "The length",
538
+ "note": "One step of the clock either way, between the two ends. lengthLabel writes it in the product’s own words.",
817
539
  "language": "tsx",
818
- "source": "<TimeRangePicker\n defaultValue={{ start: plainTime(14), end: null }}\n lengthLabel={(seconds) => `${String(seconds / 60)} min`}\n locale=\"pt-BR\"\n/>;\n",
540
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} />;\n",
541
+ "verdict": "excerpt"
542
+ },
543
+ {
544
+ "id": "durations",
545
+ "title": "Durations",
546
+ "note": "Lengths the run takes from its start. One past midnight, or refused, is off, and an empty list draws none.",
547
+ "language": "tsx",
548
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} durations={[1800, 3600, 14400]} />;\n",
819
549
  "verdict": "excerpt"
820
550
  },
821
551
  {
822
552
  "id": "limits",
823
- "title": "Limits, explained",
824
- "note": "A room is booked for thirty minutes to four hours. With a start chosen, the end list refuses the times that would break the rule and the band says the rule; typed past it, the frame goes invalid. minLength and maxLength are seconds, the unit step is written in.",
553
+ "title": "The shortest and the longest run",
554
+ "note": "In seconds, the unit step is written in. A run that is over says by how much, and Apply is off.",
825
555
  "language": "tsx",
826
- "source": "<TimeRangePicker maxLength={4 * 3600} minLength={30 * 60} />;\n",
556
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} maxLength={14400} minLength={1800} />;\n",
827
557
  "verdict": "excerpt"
828
558
  },
829
559
  {
830
560
  "id": "unavailable",
831
- "title": "Unavailable times",
832
- "note": "The room is cleaned from 12:00 to 13:00. Choose a start before it: the end list refuses everything past the first cleaning slot, because a booking is contiguous. contiguous={false} lets the run jump over it.",
561
+ "title": "Times the product refuses",
562
+ "note": "A run may not cross an unavailable time while contiguous holds.",
833
563
  "language": "tsx",
834
- "source": "<TimeRangePicker isTimeUnavailable={(time) => time.hour === 12} />;\n",
564
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} isTimeUnavailable={isNoon} />;\n",
835
565
  "verdict": "excerpt"
836
566
  },
837
567
  {
838
568
  "id": "step",
839
- "title": "The step, the bounds, and a stated list",
840
- "note": "Office hours at half-hour slots: min, max and step shape both lists at once, and the fields still type any minute. options states an irregular list outright, for a room that only opens on the hour before noon.",
569
+ "title": "Step",
570
+ "note": "Seconds between two offered times, in both clocks, on the day and in the step of the length.",
841
571
  "language": "tsx",
842
- "source": "<TimeRangePicker max={plainTime(20)} min={plainTime(8)} step={1800} />;\n",
572
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} step={300} />;\n",
843
573
  "verdict": "excerpt"
844
574
  },
845
575
  {
846
- "id": "now",
847
- "title": "Now",
848
- "note": "\"Now\" writes the current time into the current end and the focus rule takes over — with the other end missing, the tab moves to it and focus lands in its list. referenceTime fixes the clock for a story or a test.",
576
+ "id": "explicit",
577
+ "title": "Whole times",
578
+ "note": "options states the times there are, for both ends, under the part of the day each one is in.",
849
579
  "language": "tsx",
850
- "source": "<TimeRangePicker messages={{ now: 'Agora' }} referenceTime={plainTime(10, 20)} />;\n",
580
+ "source": "<TimeRangePicker {...BASE} options={CHANGES} />;\n",
851
581
  "verdict": "excerpt"
852
582
  },
853
583
  {
854
584
  "id": "presets",
855
- "title": "Presets",
856
- "note": "The slots the office books by name. Each is a TimeRangePickerPreset 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.",
585
+ "title": "Shortcuts",
586
+ "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.",
587
+ "language": "tsx",
588
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} presets={PRESETS} />;\n",
589
+ "verdict": "excerpt"
590
+ },
591
+ {
592
+ "id": "confirm",
593
+ "title": "With and without a confirmation",
594
+ "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.",
857
595
  "language": "tsx",
858
- "source": "<TimeRangePicker\n presets={\n <>\n <TimeRangePickerPreset value={morning}>Morning</TimeRangePickerPreset>\n <TimeRangePickerPreset value={() => nextHour()}>Next hour</TimeRangePickerPreset>\n </>\n }\n/>;\n",
596
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} />;\n",
859
597
  "verdict": "excerpt"
860
598
  },
861
599
  {
862
600
  "id": "open-end",
863
- "title": "One end only",
864
- "note": "A start and no end, written where the reader sees it. Open the surface: the end list is the one to finish, and its first press completes the work. The clear empties both ends at once.",
601
+ "title": "An open end",
602
+ "note": "A start with no end is a value a filter may hold, and the dash says so.",
865
603
  "language": "tsx",
866
- "source": "<TimeRangePicker clearable defaultValue={{ start: plainTime(14), end: null }} />;\n",
604
+ "source": "<TimeRangePicker {...BASE} defaultPosition=\"end\" defaultValue={OPEN} />;\n",
867
605
  "verdict": "excerpt"
868
606
  },
869
607
  {
870
608
  "id": "sizes",
871
609
  "title": "Size",
872
- "note": "The three steps the frame takes. Type, height, gutter and the clear’s box follow the control scales, so a booking in a dense table shrinks whole rather than in parts.",
610
+ "note": "The three heights every control has. The panel keeps its own measures at each of them.",
873
611
  "language": "tsx",
874
- "source": "<>\n <TimeRangePicker size=\"sm\" />\n <TimeRangePicker size=\"md\" />\n <TimeRangePicker size=\"lg\" />\n</>;\n",
612
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} size=\"sm\" />;\n",
875
613
  "verdict": "excerpt"
876
614
  },
877
615
  {
878
616
  "id": "variants",
879
617
  "title": "Variant",
880
- "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.",
618
+ "note": "The three frames every field has, so a picker stands beside a field of its own variant.",
881
619
  "language": "tsx",
882
- "source": "<>\n <TimeRangePicker variant=\"outline\" />\n <TimeRangePicker variant=\"subtle\" />\n <TimeRangePicker variant=\"plain\" />\n</>;\n",
620
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} variant=\"outline\" />;\n",
883
621
  "verdict": "excerpt"
884
622
  },
885
623
  {
886
624
  "id": "states",
887
625
  "title": "States",
888
- "note": "Read-only, disabled, invalid from the family and invalid from the consumer. An end before its start is invalid on the end field and on the frame, and nothing is swapped.",
626
+ "note": "Each is the frame’s own, and the trigger answers it.",
889
627
  "language": "tsx",
890
- "source": "<>\n <TimeRangePicker defaultValue={booking} readOnly />\n <TimeRangePicker defaultValue={booking} disabled />\n <TimeRangePicker defaultValue={{ start: plainTime(22), end: plainTime(6) }} />\n <Field invalid>\n <TimeRangePicker defaultValue={booking} />\n </Field>\n</>;\n",
628
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} disabled />;\n",
891
629
  "verdict": "excerpt"
892
630
  },
893
631
  {
894
632
  "id": "forms",
895
- "title": "Forms",
896
- "note": "Two hidden inputs under startName and endName send HH:mm:ss with a plain form post, whether the reader typed the times or pressed them.",
633
+ "title": "In a form",
634
+ "note": "startName and endName post the two times, a reset returns to the first run, and a Field names the frame and not the panel.",
897
635
  "language": "tsx",
898
- "source": "<form onSubmit={onSubmit}>\n <TimeRangePicker endName=\"end\" required startName=\"start\" />\n <Button type=\"submit\">Book</Button>\n</form>;\n",
636
+ "source": "<Field>\n <FieldLabel>Booking</FieldLabel>\n <TimeRangePicker endName=\"to\" startName=\"from\" />\n</Field>;\n",
899
637
  "verdict": "excerpt"
900
638
  },
901
639
  {
902
640
  "id": "narrow",
903
- "title": "Narrow",
904
- "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. The surface keeps its own width.",
641
+ "title": "One column",
642
+ "note": "Under 760 pixels the two ends are buttons and the panel shows the clock of one of them. On a finger it is a sheet.",
905
643
  "language": "tsx",
906
- "source": "<TimeRangePicker defaultValue={booking} locale=\"pt-BR\" />;\n",
644
+ "source": "<TimeRangePicker {...BASE} defaultValue={BOOKING} presets={PRESETS} />;\n",
907
645
  "verdict": "excerpt"
908
646
  },
909
647
  {
910
648
  "id": "composition",
911
- "title": "Composition",
912
- "note": "The provider sets 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.",
649
+ "title": "Composition and escape hatches",
650
+ "note": "The consumer may own the value, the open state and the end being edited, and a provider states the shape once.",
913
651
  "language": "tsx",
914
- "source": "<SlottedProvider locale=\"pt-BR\">\n <TimeRangePickerDefaultsProvider step={1800}>\n <TimeRangePicker ref={handle} />\n </TimeRangePickerDefaultsProvider>\n</SlottedProvider>;\n",
652
+ "source": "<TimeRangePicker footer=\"The room closes at 6\" onValueChange={setRun} value={run} />;\n",
915
653
  "verdict": "excerpt"
916
654
  },
917
655
  {
918
656
  "id": "keyboard",
919
- "title": "Keyboard",
920
- "note": "Enter opens onto the field of the current end; ArrowDown opens onto its list. ArrowLeft and ArrowRight on a tab move to the other end. In the list, every arrow moves the pending end and the band says the duration; Enter writes the end and moves on to the one that is missing. Escape abandons the work.",
657
+ "title": "The keyboard",
658
+ "note": "The fields, the clocks and the handles keep their keys.",
921
659
  "language": "tsx",
922
- "source": "// Enter, Space open onto the current end's field\n// ArrowDown, Alt+Down open onto the current end's list\n// ArrowLeft, Right on a tab: the other end, and its panel\n// Arrows, Home, End move the highlight; the band says the duration\n// PageUp, PageDown one hour\n// Enter, Space write this end, then the missing one\n// Escape close and abandon the work\n// Tab tabs, field, now, presets, list, footer, done\n",
660
+ "source": "// Enter, Space, ArrowDown opens on the clock of the current end\n// Arrows, Home, End move in a grid of a clock\n// Enter / Space chooses the hour or the minute\n// Arrows on a handle move the end one step\n// PageUp / PageDown on a handle, move it one hour\n// Ctrl + Enter applies\n// Escape discards and closes\n",
923
661
  "verdict": "excerpt"
924
662
  }
925
663
  ]