@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
@@ -14,10 +14,7 @@ import { TimePicker, TimePickerDefaultsProvider } from '@slotted/react';
14
14
  Excerpt — not a complete module
15
15
 
16
16
  ```tsx
17
- <Field>
18
- <FieldLabel>Start time</FieldLabel>
19
- <TimePicker clearable locale="pt-BR" name="start" step={900} />
20
- </Field>;
17
+ <TimePicker defaultValue={HALF_PAST_TWO} />;
21
18
  ```
22
19
 
23
20
  ## Anatomy
@@ -27,65 +24,51 @@ Excerpt — not a complete module
27
24
  | `root` | div, or the element render returns | yes |
28
25
  | `control` | div | yes |
29
26
  | `trigger` | button | yes |
30
- | `positioner` | div | no |
31
- | `content` | div | no |
32
- | `grip` | span, aria-hidden | no |
33
- | `head` | div | no |
34
- | `now` | button | no |
35
- | `presets` | div | no |
36
- | `list` | div | no |
37
- | `option` | div | no |
38
- | `empty` | div | no |
39
- | `footer` | div | no |
40
27
 
41
28
  ## Props
42
29
 
43
30
  | Name | Type | Default | Applies to | Description |
44
31
  | --- | --- | --- | --- | --- |
45
- | `value` | `PlainTime \| null` | — | TimePicker | Present means the consumer owns the value. The picker asks and waits rather than moving it. |
46
- | `defaultValue` | `PlainTime \| null` | — | TimePicker | The value the picker starts from when nobody else writes one. |
47
- | `open` | `boolean` | — | TimePicker | Present means the consumer owns whether the surface is showing. |
48
- | `defaultOpen` | `boolean` | false | TimePicker | Whether the surface starts open. |
49
- | `highlightedValue` | `PlainTime \| null` | — | TimePicker | Where the reader is in the list. Present means the consumer owns it; the highlight is not the value, and moving it moves nothing. |
50
- | `defaultHighlightedValue` | `PlainTime \| null` | — | TimePicker | Where the highlight starts, before the panel places it on the chosen time. |
51
- | `min` | `PlainTime` | — | TimePicker | The earliest time the list offers and the value accepts. |
52
- | `max` | `PlainTime` | — | TimePicker | The latest time the list offers and the value accepts. |
53
- | `isTimeUnavailable` | `(time: PlainTime) => boolean` | — | TimePicker | Refuses particular times. A refused row is disabled by default rather than dropped. |
54
- | `step` | `number` | 900 | TimePicker | Seconds between two offered times, counting from min when it is stated and from midnight when it is not. Ignored when options states the list. |
55
- | `options` | `readonly PlainTime[]` | — | TimePicker | The times to offer, stated rather than stepped, in the consumer’s own order. It is what makes an irregular list and a second-level set expressible, and why this family needs no column panel. |
56
- | `maxOptions` | `number` | 1440 | TimePicker | How many rows the list may reach — a whole day at a one-minute step. Beyond it the list is cut, data-truncated says so, and the rest is typed into the field. |
57
- | `unavailableOptions` | `'disable' \| 'hide'` | disable | TimePicker | What a refused row looks like. Disabling is the default because a list that drops rows is a list whose step nobody can infer. |
58
- | `locale` | `string` | SlottedProvider | TimePicker | BCP 47. Decides how every row is written. Unset, the language in force decides. |
59
- | `timeZone` | `string` | runtime | TimePicker | Which zone answers "what time is it now", for the opening position and the now control. |
60
- | `hourCycle` | `12 \| 24` | locale | TimePicker | The question a consumer asks about the clock, passed through to the field and the rows. |
61
- | `granularity` | `'hour' \| 'minute' \| 'second'` | minute | TimePicker | The smallest unit the field draws and the rows carry. |
62
- | `referenceTime` | `PlainTime` | now | TimePicker | What "now" means for the opening position, the now control and the field’s durations. |
63
- | `size` | `'sm' \| 'md' \| 'lg'` | md | TimePicker | The type step, matching the field around it. |
64
- | `variant` | `'outline' \| 'subtle' \| 'plain'` | outline | TimePicker | How much frame the control shows at rest. |
65
- | `placement` | `'bottom-start' \| 'bottom' \| 'bottom-end' \| 'top-start' \| 'top' \| 'top-end'` | bottom-start | TimePicker | Where the surface starts, before the positioner reads the room. |
66
- | `closeOnSelect` | `'auto' \| 'always' \| 'never'` | auto | TimePicker | Whether choosing closes the surface. auto closes, because one press chooses a whole time. |
67
- | `disabled` | `boolean` | — | TimePicker | Unstated rather than false, so the picker defers to the field around it. |
68
- | `readOnly` | `boolean` | — | TimePicker | Readable and focusable, and not changeable. |
69
- | `invalid` | `boolean` | — | TimePicker | Unstated rather than false. Retargets the focus ring. |
70
- | `required` | `boolean` | — | TimePicker | Unstated rather than false. |
71
- | `clearable` | `boolean` | false | TimePicker | Draws the field’s own clear button. |
72
- | `name` | `string` | — | TimePicker | The name the hidden input carries the HH:mm:ss string under. |
73
- | `messages` | `Partial<TimePickerMessages>` | — | TimePicker | Words laid over the language in force, key by key: the trigger’s name while nothing is chosen (choose) and once a time is (change, with a {time} slot), the now control (now), the empty panel (empty) and the description of a list cut short (truncated). |
74
- | `presets` | `ReactNode` | — | TimePicker | The consumer’s own shortcuts, beside the list. |
75
- | `footer` | `ReactNode` | — | TimePicker | The consumer’s own actions, under the list. |
76
- | `TimePickerDefaultsProvider` | `component` | — | application | Sets step, maxOptions, unavailableOptions, placement, closeOnSelect, timeZone, hourCycle, granularity, size and variant once for everything under it. The locale and the words come from SlottedProvider. |
77
- | `renderOption` | `(state: TimePickerOptionState) => ReactNode` | — | TimePicker | Draws what is inside one row. The row itself — its role, its states, its keyboard and its target size — stays the family’s. |
78
- | `render` | `(props: TimePickerRootProps) => ReactNode` | — | TimePicker | Substitutes the element the frame renders, carrying the ref the positioner measures against. |
79
- | `ref` | `Ref<TimePickerHandle>` | — | TimePicker | focus() puts the reader on the first segment of the field; open() and close() move the surface without a pointer. |
80
- | `onKeyDown` | `KeyboardEventHandler` | — | TimePicker | Runs before the family acts, on the control and on the list alike, and calling preventDefault stops it acting at all. |
32
+ | `value` | `PlainTime \| null` | — | TimePicker | The time held. Present means the consumer owns it. |
33
+ | `defaultValue` | `PlainTime \| null` | null | TimePicker | What it starts from, and returns to on a form reset. Read once. |
34
+ | `step` | `number` | 900 | TimePicker | Seconds between two offered times, counted from min or from midnight. |
35
+ | `options` | `readonly PlainTime[]` | — | TimePicker | The times to offer, stated rather than stepped. |
36
+ | `granularity` | `'hour' \| 'minute' \| 'second'` | minute | TimePicker | The finest unit written. |
37
+ | `hourCycle` | `12 \| 24` | the locale’s | TimePicker | Twelve hours or twenty-four. |
38
+ | `min` | `PlainTime` | — | TimePicker | The earliest accepted time. |
39
+ | `max` | `PlainTime` | — | TimePicker | The latest accepted time. |
40
+ | `isTimeUnavailable` | `(time: PlainTime) => boolean` | — | TimePicker | Refuses particular times. |
41
+ | `presets` | `readonly PickerPreset<PlainTime>[]` | — | TimePicker | The consumer’s own shortcuts, after Now. |
42
+ | `offsets` | `readonly number[]` | 15 min to 8 h | TimePicker | Steps from now, in seconds. |
43
+ | `confirm` | `boolean` | true | TimePicker | Whether the panel keeps a draft until Apply. |
44
+ | `referenceTime` | `PlainTime` | the clock | TimePicker | What now is. |
45
+ | `relative` | `boolean` | — | TimePicker | Whether + and − open an expression in the field. |
46
+ | `name` | `string` | — | TimePicker | The name a form posts the time under. |
47
+ | `invalid` | `boolean` | — | TimePicker | Stated by the consumer; a refused time is invalid without it. |
48
+ | `open` | `boolean` | — | TimePicker | Whether the panel is showing. Present means the consumer owns it. |
49
+ | `defaultOpen` | `boolean` | false | TimePicker | Whether it starts open when nobody else says. Read once. |
50
+ | `placement` | `'bottom-start' \| 'bottom' \| 'bottom-end' \| 'top-start' \| 'top' \| 'top-end'` | bottom-start | TimePicker | Where the panel opens, before the positioner has read the room. |
51
+ | `size` | `'sm' \| 'md' \| 'lg'` | md | TimePicker | The height of the control. The field around it answers when the picker does not. |
52
+ | `variant` | `'outline' \| 'subtle' \| 'plain'` | outline | TimePicker | How the control draws its frame. |
53
+ | `locale` | `string` | the language in force | TimePicker | BCP 47. Writes the field, the panel and the trigger’s name. |
54
+ | `timeZone` | `string` | the runtime’s | TimePicker | Which zone answers "what is now". |
55
+ | `disabled` | `boolean` | — | TimePicker | Answers no key and no press. |
56
+ | `readOnly` | `boolean` | — | TimePicker | Readable and not changeable. |
57
+ | `required` | `boolean` | — | TimePicker | The form needs a value. |
58
+ | `clearable` | `boolean` | false | TimePicker | Draws a clear on the control. |
59
+ | `messages` | `Partial<TimePickerMessages>` | — | TimePicker | Words laid over the language in force: the trigger’s two names, and what is said of a refused time. |
60
+ | `TimePickerDefaultsProvider` | `component` | — | application | Sets confirm, granularity, hourCycle, placement, size, step, timeZone and variant once. |
61
+ | `renderSlot` | `(state: ClockSlotState) => ReactNode` | — | TimePicker | What one whole time of options draws. |
62
+ | `footer` | `ReactNode` | the step | TimePicker | What the footer says when nothing is wrong. |
63
+ | `render` | `(props: TimePickerRootProps) => ReactNode` | — | TimePicker | Substitutes the element the root renders. |
64
+ | `ref` | `Ref<TimePickerHandle>` | — | TimePicker | focus(), open() and close(). |
81
65
 
82
66
  ## Events
83
67
 
84
68
  | Name | Payload | When |
85
69
  | --- | --- | --- |
86
- | `onValueChange` | `(value: PlainTime \| null, request: TimeFieldChangeRequest)` | Before the value moves, and cancellable. It arrives from the field when a typed run ends, and from the panel when a row is chosen — with reason "select" there. The request carries the segments and whether a duration crossed midnight. |
87
- | `onOpenChange` | `(open: boolean, request: ChangeRequest<boolean>)` | Before the surface opens or closes, and cancellable. The reason says which of pointer, keyboard, escape, outsidePress or select moved it — a boolean cannot, and a consumer who has to guess writes the wrong handler. |
88
- | `onHighlightedValueChange` | `(value: PlainTime \| null, request: ChangeRequest<PlainTime \| null>)` | Before the highlight moves. Selection does not follow focus here: the highlight is where a key will act and the value is what was chosen, and a reader arrowing through ninety-six quarter-hours would otherwise emit ninety-six value requests. |
70
+ | `onValueChange` | `(value: PlainTime \| null, request: ChangeRequest<PlainTime \| null>)` | Before the value moves, and cancellable: from a key in the field, from Apply, from Clear. |
71
+ | `onOpenChange` | `(open: boolean, request: ChangeRequest<boolean>)` | Before the panel opens or closes, with the reason. |
89
72
 
90
73
  ## Axes and defaults
91
74
 
@@ -94,245 +77,208 @@ Excerpt — not a complete module
94
77
  | `size` | `sm`, `md`, `lg` | `md` |
95
78
  | `variant` | `outline`, `subtle`, `plain` | `outline` |
96
79
  | `placement` | `bottom-start`, `bottom`, `bottom-end`, `top-start`, `top`, `top-end` | `bottom-start` |
97
- | `closeOnSelect` | `auto`, `always`, `never` | `auto` |
98
- | `unavailableOptions` | `disable`, `hide` | `disable` |
99
80
  | `hourCycle` | `12`, `24` | — |
100
81
  | `granularity` | `hour`, `minute`, `second` | `minute` |
82
+ | `confirm` | `on`, `off` | true |
101
83
 
102
84
  ## Rules
103
85
 
104
- - The panel is one role="listbox" in every configuration the family has, so the trigger says aria-haspopup="listbox" everywhere and there is no second role a reader has to learn. A column per unit was drawn and withdrawn, and with it the dialog role a popup of several listboxes would have needed.
105
- - Focus is real inside the list — a roving tabindex, not aria-activedescendant — because the reader is inside the list rather than typing into a control that must keep focus. The pattern’s own rule for where focus lands is taken whole: the selected option, or the first when none is selected.
106
- - Selection does not follow focus. The listbox pattern lists it as optional and warns it can degrade accessibility, and here it would emit one value request per option as a reader arrows through ninety-six quarter-hours.
107
- - The trigger’s accessible name carries the chosen time, because focus returns to it when the surface closes — which is where a reader is told what was chosen, and what the APG names as an accessibility feature of its own example.
108
- - A list cut at maxOptions says so twice: data-truncated in the DOM for a stylesheet, and the panel’s accessible description for a reader, naming that the remaining times are typed into the field rather than listed.
86
+ - The trigger says aria-haspopup="dialog" and its name carries the value written, which is where focus returns when the panel closes.
87
+ - The panel is a dialog with its Tab wrapped, and each grid inside it is one stop.
88
+ - Escape discards the draft and returns focus to the trigger. Ctrl+Enter applies from anywhere in the panel.
89
+ - The footer’s hint is a status region, so the reason Apply is off is spoken as well as drawn.
90
+ - Alt+ArrowDown opens the panel and leaves focus in the field, so the segments keep every key they had.
109
91
 
110
92
  ## Tokens
111
93
 
112
- `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-width`, `--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-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--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-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-time-picker-content-border-color`, `--slotted-time-picker-content-color`, `--slotted-time-picker-content-min-inline-size`, `--slotted-time-picker-content-padding`, `--slotted-time-picker-content-radius`, `--slotted-time-picker-content-shadow`, `--slotted-time-picker-invalid-focus-ring-color`, `--slotted-time-picker-label-color`, `--slotted-time-picker-list-block-size`, `--slotted-time-picker-now-color`, `--slotted-time-picker-option-current-background`, `--slotted-time-picker-option-hover-background`, `--slotted-time-picker-option-radius`, `--slotted-time-picker-option-selected-background`, `--slotted-time-picker-option-selected-color`, `--slotted-time-picker-option-selected-hover-background`, `--slotted-time-picker-radius`, `--slotted-time-picker-sheet-inline-size`, `--slotted-time-picker-surface`, `--slotted-time-picker-trigger-active-background`, `--slotted-time-picker-trigger-color`, `--slotted-time-picker-trigger-hover-background`, `--slotted-time-picker-trigger-size`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
94
+ `--slotted-control-border-width`, `--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-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-space-2`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text-muted`, `--slotted-time-picker-invalid-focus-ring-color`, `--slotted-time-picker-radius`, `--slotted-time-picker-trigger-active-background`, `--slotted-time-picker-trigger-color`, `--slotted-time-picker-trigger-hover-background`, `--slotted-time-picker-trigger-size`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
113
95
 
114
96
  ## Examples
115
97
 
116
- ### One panel shape
98
+ ### The clock and its shortcuts
117
99
 
118
- A listbox of whole times, at every step. 09:15 is legible at a glance where a 15 in a column of minutes is legible only beside the column next to it — and one axis is what makes Home, End, type-ahead and the arrows all mean something.
100
+ The hours of the day by its parts, and the minutes of the step. The rail holds Now, the consumer’s own shortcuts, and steps from now.
119
101
 
120
102
  Excerpt — not a complete module
121
103
 
122
104
  ```tsx
123
- <TimePicker defaultOpen locale="pt-BR" step={1800} />;
105
+ <TimePicker {...BASE} defaultValue={HALF_PAST_TWO} presets={PRESETS} />;
124
106
  ```
125
107
 
126
108
  ### The times a consumer states
127
109
 
128
- No step describes a clinic open at 09:00, 09:20, 11:40 and 13:45, and a predicate only subtracts from times that fall on one. options hands the panel exactly the times it should offer, in the order it should offer them — and it is half the answer to why this family needs no column panel.
110
+ A clinic open at 08:40, 09:20 and 13:45 has no step. The times are drawn whole, one press chooses, and there is no Now.
129
111
 
130
112
  Excerpt — not a complete module
131
113
 
132
114
  ```tsx
133
- <TimePicker
134
- locale="pt-BR"
135
- options={[
136
- { hour: 9, minute: 0, second: 0 },
137
- { hour: 9, minute: 20, second: 0 },
138
- { hour: 13, minute: 45, second: 0 },
139
- ]}
140
- />;
115
+ <TimePicker {...BASE} options={CLINIC} />;
141
116
  ```
142
117
 
143
- ### Seconds, chosen from a surface
118
+ ### Seconds
144
119
 
145
- The other half of the same answer. A day at a one-second step is 86 400 rows and not a list; a stated set of marks is four. The field beside the panel types any second the list does not offer.
120
+ granularity is the finest unit written, in the field and in the clock.
146
121
 
147
122
  Excerpt — not a complete module
148
123
 
149
124
  ```tsx
150
- <TimePicker
151
- granularity="second"
152
- locale="pt-BR"
153
- options={[
154
- { hour: 0, minute: 0, second: 15 },
155
- { hour: 0, minute: 0, second: 30 },
156
- { hour: 0, minute: 0, second: 45 },
157
- ]}
158
- />;
125
+ <TimePicker {...BASE} granularity="second" step={5} />;
159
126
  ```
160
127
 
161
128
  ### The step, and where it counts from
162
129
 
163
- A step in seconds, counting from min when it is stated and from midnight when it is not — the platform’s own rule for input[type=time], and one no surveyed panel states. A value off the step is not invalid: the field still types 09:15 when the panel offers 09:07.
130
+ Seconds between two offered times, counted from min, or from midnight. The field still accepts a time between two of them.
164
131
 
165
132
  Excerpt — not a complete module
166
133
 
167
134
  ```tsx
168
- <>
169
- <TimePicker step={3600} />
170
- <TimePicker step={1800} />
171
- <TimePicker min={{ hour: 9, minute: 7, second: 0 }} step={900} />
172
- </>;
135
+ <TimePicker {...BASE} defaultValue={HALF_PAST_TWO} step={300} />;
173
136
  ```
174
137
 
175
138
  ### Bounds
176
139
 
177
- min and max fence both the list and the value. The panel offers nothing outside them, and a value outside them is invalid whatever the field around the picker says.
140
+ An hour outside the bounds is struck through and keeps its focus. A typed time outside them is invalid.
178
141
 
179
142
  Excerpt — not a complete module
180
143
 
181
144
  ```tsx
182
- <TimePicker max={{ hour: 18, minute: 0, second: 0 }} min={{ hour: 9, minute: 0, second: 0 }} />;
145
+ <TimePicker {...BASE} max={plainTime(18)} min={plainTime(8, 10)} />;
183
146
  ```
184
147
 
185
148
  ### Times the product refuses
186
149
 
187
- isTimeUnavailable answers a lunch break or a booked slot. By default the row stays and is disabled — a list that drops rows is a list whose step nobody can infer — and unavailableOptions="hide" is the consumer’s choice to drop it anyway.
150
+ A predicate refuses particular times. An hour with every time refused is refused whole.
188
151
 
189
152
  Excerpt — not a complete module
190
153
 
191
154
  ```tsx
192
- <>
193
- <TimePicker isTimeUnavailable={(time) => time.hour === 12} />
194
- <TimePicker isTimeUnavailable={(time) => time.hour === 12} unavailableOptions="hide" />
195
- </>;
155
+ <TimePicker {...BASE} isTimeUnavailable={isLunch} />;
196
156
  ```
197
157
 
198
- ### The current time, in one press
158
+ ### Steps from now
199
159
 
200
- The control at the head of the panel writes the time it is now. It is the zero case of the field’s relative expression, drawn as a labelled press so a reader who never discovers + still has it.
160
+ Seconds from the present. A step past midnight, or to a refused time, is off. An empty list draws none.
201
161
 
202
162
  Excerpt — not a complete module
203
163
 
204
164
  ```tsx
205
- <TimePicker messages={{ now: 'Agora' }} referenceTime={{ hour: 9, minute: 47, second: 0 }} />;
165
+ <TimePicker {...BASE} offsets={[900, 3600]} />;
206
166
  ```
207
167
 
208
168
  ### The field keeps every key it had
209
169
 
210
- The panel complements the typing and never replaces it, which is what docs/component-features.md §6 asks for. Alt+ArrowDown opens the panel and leaves focus in the segments; + still opens a duration; and the highlight follows what is typed.
170
+ A + or a − in the field opens an expression, and the clock follows the time it resolves to.
211
171
 
212
172
  Excerpt — not a complete module
213
173
 
214
174
  ```tsx
215
- <TimePicker defaultOpen referenceTime={{ hour: 14, minute: 40, second: 0 }} />;
175
+ <TimePicker {...BASE} defaultValue={HALF_PAST_TWO} relative />;
216
176
  ```
217
177
 
218
- ### Shortcuts and actions
178
+ ### Shortcuts
219
179
 
220
- Two slots the family ships empty: a column of the consumer’s own shortcuts beside the list, and a row of their own actions under it. The surface stops being the anchor’s width when the shortcuts are there, so the times keep a column worth reading.
180
+ A label and a value, or a function that resolves one when it is pressed. A shortcut the rules refuse is off.
221
181
 
222
182
  Excerpt — not a complete module
223
183
 
224
184
  ```tsx
225
- <TimePicker
226
- footer={<Button size="sm">Apply</Button>}
227
- presets={<Button size="sm">Start of shift</Button>}
228
- />;
185
+ <TimePicker {...BASE} presets={PRESETS} />;
186
+ ```
187
+
188
+ ### With and without a confirmation
189
+
190
+ The panel keeps a draft until Apply. confirm={false} writes the value on the press that completes the time, and closes.
191
+
192
+ Excerpt — not a complete module
193
+
194
+ ```tsx
195
+ <TimePicker {...BASE} defaultValue={HALF_PAST_TWO} />;
229
196
  ```
230
197
 
231
198
  ### Size
232
199
 
233
- The three steps the control can be, and the panel answers each: the row height and the eight-and-a-half-row cap are counted in the same unit, so a dense panel shows the same number of times in less room.
200
+ The three heights every control has. The panel keeps its own measures at each of them.
234
201
 
235
202
  Excerpt — not a complete module
236
203
 
237
204
  ```tsx
238
- <>
239
- <TimePicker size="sm" />
240
- <TimePicker size="md" />
241
- <TimePicker size="lg" />
242
- </>;
205
+ <TimePicker {...BASE} defaultValue={HALF_PAST_TWO} size="sm" />;
243
206
  ```
244
207
 
245
208
  ### Variant
246
209
 
247
- How much frame the control shows at rest. The panel does not change with it: a surface floating over the page has its own ground whatever the control below it looks like.
210
+ The three frames every field has, so a picker stands beside a field of its own variant.
248
211
 
249
212
  Excerpt — not a complete module
250
213
 
251
214
  ```tsx
252
- <>
253
- <TimePicker variant="outline" />
254
- <TimePicker variant="subtle" />
255
- <TimePicker variant="plain" />
256
- </>;
215
+ <TimePicker {...BASE} defaultValue={HALF_PAST_TWO} variant="outline" />;
257
216
  ```
258
217
 
259
218
  ### Where it opens
260
219
 
261
- The side and alignment the surface starts from, before the positioner reads the room and moves it. What the engine resolved is written back as data-placement, so a stylesheet can answer the side it actually landed on.
220
+ A side and an alignment. The positioner turns the panel when there is no room for it.
262
221
 
263
222
  Excerpt — not a complete module
264
223
 
265
224
  ```tsx
266
- <>
267
- <TimePicker placement="bottom-start" />
268
- <TimePicker placement="top-end" />
269
- </>;
225
+ <TimePicker {...BASE} defaultValue={HALF_PAST_TWO} placement="bottom-end" />;
270
226
  ```
271
227
 
272
228
  ### States
273
229
 
274
- Read-only keeps the value readable and the panel shut; disabled answers no press at all; invalid retargets the ring on the control and on the trigger together. The row of options has its own four, and the chosen row answers the pointer in its own tone rather than turning grey.
230
+ Each is the field’s own, and the trigger answers it.
275
231
 
276
232
  Excerpt — not a complete module
277
233
 
278
234
  ```tsx
279
- <>
280
- <TimePicker readOnly />
281
- <TimePicker invalid />
282
- <TimePicker disabled />
283
- <TimePicker required />
284
- </>;
235
+ <TimePicker {...BASE} defaultValue={HALF_PAST_TWO} disabled />;
285
236
  ```
286
237
 
287
238
  ### In a form
288
239
 
289
- The value reaches a plain form post as an HH:mm:ss string through the field’s hidden input, so a server reads it without any JavaScript touching the control.
240
+ name posts the time, a reset returns to the first one, and a Field names the control and not the panel.
290
241
 
291
242
  Excerpt — not a complete module
292
243
 
293
244
  ```tsx
294
- <form action="/schedule" method="post">
295
- <Field>
296
- <FieldLabel>Start time</FieldLabel>
297
- <TimePicker name="start" required />
298
- </Field>
299
- </form>;
245
+ <Field>
246
+ <FieldLabel>Departure</FieldLabel>
247
+ <TimePicker name="departure" />
248
+ </Field>;
300
249
  ```
301
250
 
302
- ### Narrow
251
+ ### One column
303
252
 
304
- The panel takes the anchor’s width, floored so a narrow field never produces a column too tight to read a time in and capped so a wide form never stretches one column of times across a page. Below 480 pixels on a finger it becomes a sheet, and the DOM says which it is.
253
+ Under 760 pixels the shortcuts become a strip over the footer, and on a finger the panel is a sheet.
305
254
 
306
255
  Excerpt — not a complete module
307
256
 
308
257
  ```tsx
309
- <div className="slotted-demo-measure">
310
- <TimePicker locale="pt-BR" />
311
- </div>;
258
+ <TimePicker {...BASE} defaultValue={HALF_PAST_TWO} presets={PRESETS} />;
312
259
  ```
313
260
 
314
261
  ### Composition and escape hatches
315
262
 
316
- The provider sets the step and the labels once; renderOption draws the row without owning it; render substitutes the frame; and the ref carries focus(), open() and close().
263
+ The consumer may own the value and the open state, a provider states the step once, and footer writes what the panel says when nothing is wrong.
317
264
 
318
265
  Excerpt — not a complete module
319
266
 
320
267
  ```tsx
321
- <TimePickerDefaultsProvider step={1200}>
322
- <TimePicker ref={handle} renderOption={(option) => <span>{option.label}</span>} />
323
- </TimePickerDefaultsProvider>;
268
+ <TimePicker footer="Gate B" onValueChange={setTime} value={time} />;
324
269
  ```
325
270
 
326
271
  ### The keyboard
327
272
 
328
- Alt+ArrowDown opens the panel from the field and leaves focus there; the trigger’s ArrowDown moves focus into the list; inside it the arrows walk, Home and End reach the ends, PageUp and PageDown cross one hour boundary each, digits jump, and Enter chooses. Escape closes and puts focus back on the trigger.
273
+ The field keeps its keys, and the panel adds the clock’s.
329
274
 
330
275
  Excerpt — not a complete module
331
276
 
332
277
  ```tsx
333
- <TimePicker
334
- onKeyDown={(event) => {
335
- if (event.key === 'Escape') clearSelection();
336
- }}
337
- />;
278
+ // Alt + ArrowDown opens, with focus in the field
279
+ // ArrowDown / ArrowUp on the trigger, opens on the chosen hour
280
+ // Arrows, Home, End move in the clock
281
+ // Enter / Space chooses
282
+ // Ctrl + Enter applies
283
+ // Escape discards and closes
338
284
  ```