@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
@@ -6,7 +6,7 @@
6
6
  ## Import
7
7
 
8
8
  ```tsx
9
- import { SlottedProvider, TimeRangePicker, TimeRangePickerDefaultsProvider, TimeRangePickerPreset } from '@slotted/react';
9
+ import { TimeRangePicker, TimeRangePickerDefaultsProvider } from '@slotted/react';
10
10
  ```
11
11
 
12
12
  ## Minimal example
@@ -14,15 +14,7 @@ import { SlottedProvider, TimeRangePicker, TimeRangePickerDefaultsProvider, Time
14
14
  Excerpt — not a complete module
15
15
 
16
16
  ```tsx
17
- <Field>
18
- <FieldLabel>Reserva da sala</FieldLabel>
19
- <TimeRangePicker
20
- clearable
21
- defaultValue={{ start: plainTime(14), end: plainTime(16, 30) }}
22
- locale="pt-BR"
23
- messages={{ start: 'Start', end: 'End' }}
24
- />
25
- </Field>;
17
+ <TimeRangePicker defaultValue={BOOKING} />;
26
18
  ```
27
19
 
28
20
  ## Anatomy
@@ -35,88 +27,59 @@ Excerpt — not a complete module
35
27
  | `summary` | span | yes |
36
28
  | `clear` | button | no |
37
29
  | `hidden-input` | input | yes |
38
- | `positioner` | div | no |
39
- | `content` | div | no |
40
- | `grip` | span, aria-hidden | no |
41
- | `head` | div | no |
42
- | `tabs` | div | no |
43
- | `tab` | button | no |
44
- | `tab-label` | span | no |
45
- | `tab-value` | span | no |
46
- | `field` | div | no |
47
- | `now` | button | no |
48
- | `hint` | span | no |
49
- | `length` | span | no |
50
- | `limit` | span | no |
51
- | `presets` | div | no |
52
- | `preset` | button | no |
53
- | `panel` | div | no |
54
- | `list` | div | no |
55
- | `option` | div | no |
56
- | `option-duration` | span | no |
57
- | `empty` | div | no |
58
- | `footer` | div | no |
59
- | `done` | button | no |
60
30
 
61
31
  ## Props
62
32
 
63
33
  | Name | Type | Default | Applies to | Description |
64
34
  | --- | --- | --- | --- | --- |
65
- | `value` | `TimeRange \| null` | — | TimeRangePicker | { start, end }, each end nullable. Present means the consumer owns it. Both ends null is null. |
66
- | `defaultValue` | `TimeRange \| null` | — | TimeRangePicker | What it starts from when nobody else writes one. Read once. |
67
- | `open` | `boolean` | — | TimeRangePicker | Whether the surface is showing. Present means the consumer owns it. |
68
- | `defaultOpen` | `boolean` | false | TimeRangePicker | Whether it opens already showing. |
69
- | `position` | `'start' \| 'end'` | — | TimeRangePicker | 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. |
70
- | `defaultPosition` | `'start' \| 'end'` | start | TimeRangePicker | Where editing starts. |
71
- | `highlighted` | `{ start: PlainTime \| null; end: PlainTime \| null }` | — | TimeRangePicker | The highlighted option of each end’s list. Present means the consumer owns it. Moving it moves no value. |
72
- | `defaultHighlighted` | `{ start: PlainTime \| null; end: PlainTime \| null }` | — | TimeRangePicker | Where the highlights start; otherwise a list opens on its end, or on the nearest offered step. |
73
- | `min` | `PlainTime` | — | TimeRangePicker | 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. |
74
- | `max` | `PlainTime` | — | TimeRangePicker | The latest time any of the four accepts. |
75
- | `isTimeUnavailable` | `(time: PlainTime) => boolean` | — | TimeRangePicker | Refuses particular times. Typed at an end, it makes the control invalid; listed, the row cannot be pressed. |
76
- | `contiguous` | `boolean` | true | TimeRangePicker | 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. |
77
- | `minLength` | `number` | — | TimeRangePicker | The shortest run allowed, in seconds. The lists refuse shorter ones and the band names the limit. |
78
- | `maxLength` | `number` | — | TimeRangePicker | The longest run allowed, in seconds. |
79
- | `lengthLabel` | `(seconds: number, locale?: string) => string` | durationLabel | TimeRangePicker | 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. |
80
- | `step` | `number` | 900 | TimeRangePicker | 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. |
81
- | `options` | `readonly PlainTime[]` | — | TimeRangePicker | The times to offer, stated rather than stepped; the same list for both ends. The bounds and the predicate still refuse. |
82
- | `maxOptions` | `number` | 1440 | TimeRangePicker | 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. |
83
- | `unavailableOptions` | `'disable' \| 'hide'` | disable | TimeRangePicker | What a refused time looks like in a list: drawn muted with aria-disabled, or left out. |
84
- | `locale` | `string` | SlottedProvider | TimeRangePicker | BCP 47. Decides the field order, the digits, the day-period names and the duration’s units. Unset, the language in force decides. |
85
- | `timeZone` | `string` | — | TimeRangePicker | The zone "now" is read in. |
86
- | `hourCycle` | `12 \| 24` | — | TimeRangePicker | Twelve- or twenty-four-hour times. Unset, the locale decides. |
87
- | `granularity` | `'hour' \| 'minute' \| 'second'` | minute | TimeRangePicker | How much of a time the fields and the rows write. |
88
- | `referenceTime` | `PlainTime` | — | TimeRangePicker | What "now" is, for a story or a test; the clock otherwise. Anchors now and the relative expression. |
89
- | `size` | `'sm' \| 'md' \| 'lg'` | md | TimeRangePicker | The control scale of the frame. |
90
- | `variant` | `'outline' \| 'subtle' \| 'plain'` | outline | TimeRangePicker | How much frame the control shows at rest. |
91
- | `placement` | `'bottom-start' \| 'bottom' \| 'bottom-end' \| 'top-start' \| 'top' \| 'top-end'` | bottom-start | TimeRangePicker | Where the surface opens, before the positioner has read the room. |
92
- | `closeOnSelect` | `'auto' \| 'always' \| 'never'` | auto | TimeRangePicker | auto closes when a press completes the work; always closes on any press that changes the value; never closes on none. |
93
- | `disabled` | `boolean` | — | TimeRangePicker | Nothing answers; the value stays readable. |
94
- | `readOnly` | `boolean` | — | TimeRangePicker | Legible and copyable; the trigger and the clear are out of the tab sequence. |
95
- | `invalid` | `boolean` | — | TimeRangePicker | The consumer’s own word. Set, it wins; unset, the family’s own rules and the field around it decide. |
96
- | `required` | `boolean` | — | TimeRangePicker | Reaches both fields as aria-required. |
97
- | `clearable` | `boolean` | false | TimeRangePicker | Draws one clear on the frame, which empties both ends. |
98
- | `relative` | `boolean` | — | TimeRangePicker | Whether the field in the band takes the relative expression — +40, 1h30, = — the way a time-field does. |
99
- | `messages` | `Partial<TimeRangePickerMessages>` | — | TimeRangePicker | 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). |
100
- | `startName` | `string` | — | TimeRangePicker | The name of the hidden input carrying the start. |
101
- | `endName` | `string` | — | TimeRangePicker | The name of the hidden input carrying the end. |
102
- | `presets` | `ReactNode` | — | TimeRangePicker | The consumer’s shortcuts, as TimeRangePickerPreset elements. |
103
- | `footer` | `ReactNode` | — | TimeRangePicker | The consumer’s own actions, under the lists. |
104
- | `renderOption` | `(state: TimeRangePickerOptionState) => ReactNode` | — | TimeRangePicker | What one row draws. The state carries the end, the time, its label, its duration, and whether it is selected, current or unavailable. |
105
- | `value` | `TimeRange \| (() => TimeRange)` | — | TimeRangePickerPreset | The range the press writes, or a function resolving it at the press. |
106
- | `TimeRangePickerDefaultsProvider` | `component` | — | application | 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. |
107
- | `TimeRangePickerPreset` | `component` | — | presets | One shortcut inside presets. Takes every button prop, composes onClick, and takes render to substitute its element. |
108
- | `render` | `(props: TimeRangePickerRootProps) => ReactNode` | — | TimeRangePicker | Substitutes the element the root renders. The props carry the ref, which the positioner measures its anchor through. |
109
- | `ref` | `Ref<TimeRangePickerHandle>` | — | TimeRangePicker | focus() puts the reader on the trigger; open() and close() move the surface without a controlled prop. |
110
- | `onKeyDown` | `KeyboardEventHandler` | — | TimeRangePicker | Runs before the trigger, the tabs and the list read a key, and calling preventDefault stops them. |
35
+ | `value` | `TimeRange \| null` | — | TimeRangePicker | The run held, either end of which may be null. Present means the consumer owns it. |
36
+ | `defaultValue` | `TimeRange \| null` | null | TimeRangePicker | What it starts from, and returns to on a form reset. Read once. |
37
+ | `position` | `'start' \| 'end'` | — | TimeRangePicker | The end being edited. Present means the consumer owns it. |
38
+ | `defaultPosition` | `'start' \| 'end'` | start | TimeRangePicker | The end it starts on. |
39
+ | `minLength` | `number` | — | TimeRangePicker | The shortest run, in seconds. |
40
+ | `maxLength` | `number` | — | TimeRangePicker | The longest run, in seconds. |
41
+ | `contiguous` | `boolean` | true | TimeRangePicker | Whether a run may cross an unavailable time. |
42
+ | `min` | `PlainTime` | — | TimeRangePicker | The earliest accepted time. |
43
+ | `max` | `PlainTime` | — | TimeRangePicker | The latest accepted time. |
44
+ | `isTimeUnavailable` | `(time: PlainTime) => boolean` | — | TimeRangePicker | Refuses particular times. |
45
+ | `lengthLabel` | `(seconds: number, locale: string \| undefined) => string` | the locale’s | TimeRangePicker | Writes a length in words. |
46
+ | `step` | `number` | 900 | TimeRangePicker | Seconds between two offered times, counted from min or from midnight. |
47
+ | `options` | `readonly PlainTime[]` | — | TimeRangePicker | The times there are, stated rather than stepped, for both ends. |
48
+ | `presets` | `readonly PickerPreset<TimeRange>[]` | — | TimeRangePicker | The consumer’s own shortcuts. |
49
+ | `durations` | `readonly number[]` | 900 to 14400 | TimeRangePicker | Lengths the run takes from its start, in seconds. An empty list draws none. |
50
+ | `confirm` | `boolean` | true | TimeRangePicker | Whether the panel keeps a draft until Apply. |
51
+ | `granularity` | `'hour' \| 'minute' \| 'second'` | minute | TimeRangePicker | The finest unit written. |
52
+ | `hourCycle` | `12 \| 24` | the locale’s | TimeRangePicker | The clock the times are written on. |
53
+ | `referenceTime` | `PlainTime` | now | TimeRangePicker | The time it is, whose hour the clocks outline. |
54
+ | `relative` | `boolean` | true | TimeRangePicker | Whether + and - open the duration expression in the fields. |
55
+ | `startName` | `string` | — | TimeRangePicker | The name a form posts the start under. |
56
+ | `endName` | `string` | — | TimeRangePicker | The name a form posts the end under. |
57
+ | `invalid` | `boolean` | — | TimeRangePicker | Stated by the consumer; a run that fails a rule is invalid without it. |
58
+ | `open` | `boolean` | — | TimeRangePicker | Whether the panel is showing. Present means the consumer owns it. |
59
+ | `defaultOpen` | `boolean` | false | TimeRangePicker | Whether it starts open when nobody else says. Read once. |
60
+ | `placement` | `'bottom-start' \| 'bottom' \| 'bottom-end' \| 'top-start' \| 'top' \| 'top-end'` | bottom-start | TimeRangePicker | Where the panel opens, before the positioner has read the room. |
61
+ | `size` | `'sm' \| 'md' \| 'lg'` | md | TimeRangePicker | The height of the control. The field around it answers when the picker does not. |
62
+ | `variant` | `'outline' \| 'subtle' \| 'plain'` | outline | TimeRangePicker | How the control draws its frame. |
63
+ | `locale` | `string` | the language in force | TimeRangePicker | BCP 47. Writes the field, the panel and the trigger’s name. |
64
+ | `timeZone` | `string` | the runtime’s | TimeRangePicker | Which zone answers "what is now". |
65
+ | `disabled` | `boolean` | — | TimeRangePicker | Answers no key and no press. |
66
+ | `readOnly` | `boolean` | — | TimeRangePicker | Readable and not changeable. |
67
+ | `required` | `boolean` | — | TimeRangePicker | The form needs a value. |
68
+ | `clearable` | `boolean` | false | TimeRangePicker | Draws a clear on the control. |
69
+ | `messages` | `Partial<TimeRangePickerMessages>` | — | TimeRangePicker | Words laid over the language in force: the trigger’s names, the two ends, the limits, and what is said of a refused run. |
70
+ | `TimeRangePickerDefaultsProvider` | `component` | — | application | Sets confirm, granularity, hourCycle, lengthLabel, placement, size, step, timeZone and variant once. |
71
+ | `footer` | `ReactNode` | the limits, or the step | TimeRangePicker | What the footer says when nothing is wrong. |
72
+ | `renderSlot` | `(state: ClockSlotState) => ReactNode` | the time | TimeRangePicker | What one whole time of options draws. |
73
+ | `render` | `(props: TimeRangePickerRootProps) => ReactNode` | — | TimeRangePicker | Substitutes the element the root renders. |
74
+ | `ref` | `Ref<TimeRangePickerHandle>` | — | TimeRangePicker | focus(), open() and close(). |
111
75
 
112
76
  ## Events
113
77
 
114
78
  | Name | Payload | When |
115
79
  | --- | --- | --- |
116
- | `onValueChange` | `(value: TimeRange \| null, request: ChangeRequest<TimeRange \| null>)` | 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. |
117
- | `onOpenChange` | `(open: boolean, request: ChangeRequest<boolean>)` | 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. |
118
- | `onPositionChange` | `(position: 'start' \| 'end', request: ChangeRequest<'start' \| 'end'>)` | 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. |
119
- | `onHighlightedChange` | `(value: { start; end }, request: ChangeRequest<{ start; end }>)` | 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. |
80
+ | `onValueChange` | `(value: TimeRange \| null, request: ChangeRequest<TimeRange \| null>)` | Before the value moves, and cancellable: from Apply, and from the clear of the frame. |
81
+ | `onOpenChange` | `(open: boolean, request: ChangeRequest<boolean>)` | Before the panel opens or closes, with the reason. |
82
+ | `onPositionChange` | `(position: TimeRangePickerPosition, request: ChangeRequest<TimeRangePickerPosition>)` | Before the end being edited moves. |
120
83
 
121
84
  ## Axes and defaults
122
85
 
@@ -125,213 +88,202 @@ Excerpt — not a complete module
125
88
  | `size` | `sm`, `md`, `lg` | `md` |
126
89
  | `variant` | `outline`, `subtle`, `plain` | `outline` |
127
90
  | `placement` | `bottom-start`, `bottom`, `bottom-end`, `top-start`, `top`, `top-end` | `bottom-start` |
128
- | `closeOnSelect` | `auto`, `always`, `never` | `auto` |
129
- | `unavailableOptions` | `disable`, `hide` | `disable` |
130
91
  | `hourCycle` | `12`, `24` | — |
131
92
  | `granularity` | `hour`, `minute`, `second` | `minute` |
132
93
  | `position` | `start`, `end` | — |
94
+ | `confirm` | `on`, `off` | true |
133
95
 
134
96
  ## Rules
135
97
 
136
- - 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.
137
- - 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.
138
- - The duration is a polite live region: a sighted reader sees it beside every row, a screen-reader user hears it on every arrow.
139
- - 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.
140
- - 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.
141
- - 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.
98
+ - The trigger says aria-haspopup="dialog" and its name carries the value written, which is where focus returns when the panel closes.
99
+ - The panel is a dialog with its Tab wrapped, and each grid inside it is one stop.
100
+ - Escape discards the draft and returns focus to the trigger. Ctrl+Enter applies from anywhere in the panel.
101
+ - The footer’s hint is a status region, so the reason Apply is off is spoken as well as drawn.
102
+ - Alt+ArrowDown opens the panel and leaves focus in the field, so the segments keep every key they had.
103
+ - The length between the two halves is a status region, so a reader hears it on every step.
104
+ - 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.
142
105
 
143
106
  ## Tokens
144
107
 
145
- `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-drawer-resizer-line-color`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-letter-spacing-wide`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-radius-pill`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-time-range-picker-action-active-background`, `--slotted-time-range-picker-action-color`, `--slotted-time-range-picker-action-hover-background`, `--slotted-time-range-picker-action-size`, `--slotted-time-range-picker-background`, `--slotted-time-range-picker-border-color`, `--slotted-time-range-picker-color`, `--slotted-time-range-picker-content-border-color`, `--slotted-time-range-picker-content-color`, `--slotted-time-range-picker-content-min-inline-size`, `--slotted-time-range-picker-content-padding`, `--slotted-time-range-picker-content-radius`, `--slotted-time-range-picker-content-shadow`, `--slotted-time-range-picker-current-color`, `--slotted-time-range-picker-current-size`, `--slotted-time-range-picker-disabled-background`, `--slotted-time-range-picker-disabled-border-color`, `--slotted-time-range-picker-disabled-color`, `--slotted-time-range-picker-done-active-background`, `--slotted-time-range-picker-done-background`, `--slotted-time-range-picker-done-color`, `--slotted-time-range-picker-done-hover-background`, `--slotted-time-range-picker-hint-color`, `--slotted-time-range-picker-hover-border-color`, `--slotted-time-range-picker-invalid-border-color`, `--slotted-time-range-picker-invalid-color`, `--slotted-time-range-picker-invalid-edge-width`, `--slotted-time-range-picker-invalid-focus-ring-color`, `--slotted-time-range-picker-label-color`, `--slotted-time-range-picker-length-color`, `--slotted-time-range-picker-limit-color`, `--slotted-time-range-picker-list-block-size`, `--slotted-time-range-picker-now-color`, `--slotted-time-range-picker-option-current-background`, `--slotted-time-range-picker-option-hover-background`, `--slotted-time-range-picker-option-radius`, `--slotted-time-range-picker-option-selected-background`, `--slotted-time-range-picker-option-selected-color`, `--slotted-time-range-picker-option-selected-hover-background`, `--slotted-time-range-picker-placeholder-color`, `--slotted-time-range-picker-plain-hover-background`, `--slotted-time-range-picker-preset-active-background`, `--slotted-time-range-picker-preset-background`, `--slotted-time-range-picker-preset-hover-background`, `--slotted-time-range-picker-preset-radius`, `--slotted-time-range-picker-preset-selected-background`, `--slotted-time-range-picker-preset-selected-color`, `--slotted-time-range-picker-radius`, `--slotted-time-range-picker-readonly-background`, `--slotted-time-range-picker-shadow`, `--slotted-time-range-picker-sheet-inline-size`, `--slotted-time-range-picker-subtle-background`, `--slotted-time-range-picker-subtle-border-color`, `--slotted-time-range-picker-subtle-hover-background`, `--slotted-time-range-picker-surface`, `--slotted-time-range-picker-tab-block-size`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
108
+ `--slotted-border-subtle`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-none`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-time-range-picker-action-active-background`, `--slotted-time-range-picker-action-color`, `--slotted-time-range-picker-action-hover-background`, `--slotted-time-range-picker-action-size`, `--slotted-time-range-picker-background`, `--slotted-time-range-picker-border-color`, `--slotted-time-range-picker-color`, `--slotted-time-range-picker-disabled-background`, `--slotted-time-range-picker-disabled-border-color`, `--slotted-time-range-picker-disabled-color`, `--slotted-time-range-picker-hover-border-color`, `--slotted-time-range-picker-invalid-border-color`, `--slotted-time-range-picker-invalid-edge-width`, `--slotted-time-range-picker-invalid-focus-ring-color`, `--slotted-time-range-picker-placeholder-color`, `--slotted-time-range-picker-plain-hover-background`, `--slotted-time-range-picker-radius`, `--slotted-time-range-picker-readonly-background`, `--slotted-time-range-picker-shadow`, `--slotted-time-range-picker-subtle-background`, `--slotted-time-range-picker-subtle-border-color`, `--slotted-time-range-picker-subtle-hover-background`, `--slotted-tone-accent-border`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
146
109
 
147
110
  ## Examples
148
111
 
149
- ### One end at a time
112
+ ### The day and two clocks
113
+
114
+ The clock of the end refuses what the start refuses of it, in the gesture that chooses the start.
115
+
116
+ Excerpt — not a complete module
117
+
118
+ ```tsx
119
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} defaultOpen />;
120
+ ```
121
+
122
+ ### The length
150
123
 
151
- 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.
124
+ One step of the clock either way, between the two ends. lengthLabel writes it in the product’s own words.
152
125
 
153
126
  Excerpt — not a complete module
154
127
 
155
128
  ```tsx
156
- <TimeRangePicker defaultOpen defaultValue={{ start: plainTime(14), end: null }} locale="pt-BR" />;
129
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} />;
157
130
  ```
158
131
 
159
- ### The duration, while the run is drawn
132
+ ### Durations
160
133
 
161
- 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.
134
+ Lengths the run takes from its start. One past midnight, or refused, is off, and an empty list draws none.
162
135
 
163
136
  Excerpt — not a complete module
164
137
 
165
138
  ```tsx
166
- <TimeRangePicker
167
- defaultValue={{ start: plainTime(14), end: null }}
168
- lengthLabel={(seconds) => `${String(seconds / 60)} min`}
169
- locale="pt-BR"
170
- />;
139
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} durations={[1800, 3600, 14400]} />;
171
140
  ```
172
141
 
173
- ### Limits, explained
142
+ ### The shortest and the longest run
174
143
 
175
- 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.
144
+ In seconds, the unit step is written in. A run that is over says by how much, and Apply is off.
176
145
 
177
146
  Excerpt — not a complete module
178
147
 
179
148
  ```tsx
180
- <TimeRangePicker maxLength={4 * 3600} minLength={30 * 60} />;
149
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} maxLength={14400} minLength={1800} />;
181
150
  ```
182
151
 
183
- ### Unavailable times
152
+ ### Times the product refuses
184
153
 
185
- 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.
154
+ A run may not cross an unavailable time while contiguous holds.
186
155
 
187
156
  Excerpt — not a complete module
188
157
 
189
158
  ```tsx
190
- <TimeRangePicker isTimeUnavailable={(time) => time.hour === 12} />;
159
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} isTimeUnavailable={isNoon} />;
191
160
  ```
192
161
 
193
- ### The step, the bounds, and a stated list
162
+ ### Step
194
163
 
195
- 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.
164
+ Seconds between two offered times, in both clocks, on the day and in the step of the length.
196
165
 
197
166
  Excerpt — not a complete module
198
167
 
199
168
  ```tsx
200
- <TimeRangePicker max={plainTime(20)} min={plainTime(8)} step={1800} />;
169
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} step={300} />;
201
170
  ```
202
171
 
203
- ### Now
172
+ ### Whole times
204
173
 
205
- "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.
174
+ options states the times there are, for both ends, under the part of the day each one is in.
206
175
 
207
176
  Excerpt — not a complete module
208
177
 
209
178
  ```tsx
210
- <TimeRangePicker messages={{ now: 'Agora' }} referenceTime={plainTime(10, 20)} />;
179
+ <TimeRangePicker {...BASE} options={CHANGES} />;
211
180
  ```
212
181
 
213
- ### Presets
182
+ ### Shortcuts
214
183
 
215
- 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.
184
+ 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.
216
185
 
217
186
  Excerpt — not a complete module
218
187
 
219
188
  ```tsx
220
- <TimeRangePicker
221
- presets={
222
- <>
223
- <TimeRangePickerPreset value={morning}>Morning</TimeRangePickerPreset>
224
- <TimeRangePickerPreset value={() => nextHour()}>Next hour</TimeRangePickerPreset>
225
- </>
226
- }
227
- />;
189
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} presets={PRESETS} />;
228
190
  ```
229
191
 
230
- ### One end only
192
+ ### With and without a confirmation
231
193
 
232
- 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.
194
+ The panel keeps a draft until Apply. confirm={false} writes a whole run on every change, and closes on the press that completes it.
233
195
 
234
196
  Excerpt — not a complete module
235
197
 
236
198
  ```tsx
237
- <TimeRangePicker clearable defaultValue={{ start: plainTime(14), end: null }} />;
199
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} />;
200
+ ```
201
+
202
+ ### An open end
203
+
204
+ A start with no end is a value a filter may hold, and the dash says so.
205
+
206
+ Excerpt — not a complete module
207
+
208
+ ```tsx
209
+ <TimeRangePicker {...BASE} defaultPosition="end" defaultValue={OPEN} />;
238
210
  ```
239
211
 
240
212
  ### Size
241
213
 
242
- 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.
214
+ The three heights every control has. The panel keeps its own measures at each of them.
243
215
 
244
216
  Excerpt — not a complete module
245
217
 
246
218
  ```tsx
247
- <>
248
- <TimeRangePicker size="sm" />
249
- <TimeRangePicker size="md" />
250
- <TimeRangePicker size="lg" />
251
- </>;
219
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} size="sm" />;
252
220
  ```
253
221
 
254
222
  ### Variant
255
223
 
256
- 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.
224
+ The three frames every field has, so a picker stands beside a field of its own variant.
257
225
 
258
226
  Excerpt — not a complete module
259
227
 
260
228
  ```tsx
261
- <>
262
- <TimeRangePicker variant="outline" />
263
- <TimeRangePicker variant="subtle" />
264
- <TimeRangePicker variant="plain" />
265
- </>;
229
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} variant="outline" />;
266
230
  ```
267
231
 
268
232
  ### States
269
233
 
270
- 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.
234
+ Each is the frame’s own, and the trigger answers it.
271
235
 
272
236
  Excerpt — not a complete module
273
237
 
274
238
  ```tsx
275
- <>
276
- <TimeRangePicker defaultValue={booking} readOnly />
277
- <TimeRangePicker defaultValue={booking} disabled />
278
- <TimeRangePicker defaultValue={{ start: plainTime(22), end: plainTime(6) }} />
279
- <Field invalid>
280
- <TimeRangePicker defaultValue={booking} />
281
- </Field>
282
- </>;
239
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} disabled />;
283
240
  ```
284
241
 
285
- ### Forms
242
+ ### In a form
286
243
 
287
- 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.
244
+ startName and endName post the two times, a reset returns to the first run, and a Field names the frame and not the panel.
288
245
 
289
246
  Excerpt — not a complete module
290
247
 
291
248
  ```tsx
292
- <form onSubmit={onSubmit}>
293
- <TimeRangePicker endName="end" required startName="start" />
294
- <Button type="submit">Book</Button>
295
- </form>;
249
+ <Field>
250
+ <FieldLabel>Booking</FieldLabel>
251
+ <TimeRangePicker endName="to" startName="from" />
252
+ </Field>;
296
253
  ```
297
254
 
298
- ### Narrow
255
+ ### One column
299
256
 
300
- 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.
257
+ 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.
301
258
 
302
259
  Excerpt — not a complete module
303
260
 
304
261
  ```tsx
305
- <TimeRangePicker defaultValue={booking} locale="pt-BR" />;
262
+ <TimeRangePicker {...BASE} defaultValue={BOOKING} presets={PRESETS} />;
306
263
  ```
307
264
 
308
- ### Composition
265
+ ### Composition and escape hatches
309
266
 
310
- 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.
267
+ The consumer may own the value, the open state and the end being edited, and a provider states the shape once.
311
268
 
312
269
  Excerpt — not a complete module
313
270
 
314
271
  ```tsx
315
- <SlottedProvider locale="pt-BR">
316
- <TimeRangePickerDefaultsProvider step={1800}>
317
- <TimeRangePicker ref={handle} />
318
- </TimeRangePickerDefaultsProvider>
319
- </SlottedProvider>;
272
+ <TimeRangePicker footer="The room closes at 6" onValueChange={setRun} value={run} />;
320
273
  ```
321
274
 
322
- ### Keyboard
275
+ ### The keyboard
323
276
 
324
- 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.
277
+ The fields, the clocks and the handles keep their keys.
325
278
 
326
279
  Excerpt — not a complete module
327
280
 
328
281
  ```tsx
329
- // Enter, Space open onto the current end's field
330
- // ArrowDown, Alt+Down open onto the current end's list
331
- // ArrowLeft, Right on a tab: the other end, and its panel
332
- // Arrows, Home, End move the highlight; the band says the duration
333
- // PageUp, PageDown one hour
334
- // Enter, Space write this end, then the missing one
335
- // Escape close and abandon the work
336
- // Tab tabs, field, now, presets, list, footer, done
282
+ // Enter, Space, ArrowDown opens on the clock of the current end
283
+ // Arrows, Home, End move in a grid of a clock
284
+ // Enter / Space chooses the hour or the minute
285
+ // Arrows on a handle move the end one step
286
+ // PageUp / PageDown on a handle, move it one hour
287
+ // Ctrl + Enter applies
288
+ // Escape discards and closes
337
289
  ```