@slotted/react 0.1.0-beta.39 → 0.1.0-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/dist/alert-CV8wKS-N.js +179 -0
  2. package/dist/alert.js +1 -1
  3. package/dist/{avatar-DLWElrgg.js → avatar-fHRva5zn.js} +1 -1
  4. package/dist/{avatar-group-DshHqe8B.js → avatar-group-bJaZE1_C.js} +1 -1
  5. package/dist/avatar-group.js +1 -1
  6. package/dist/avatar.js +1 -1
  7. package/dist/calendar-D3QZDlm0.js +598 -0
  8. package/dist/calendar.js +1 -1
  9. package/dist/clock-DzkQa57Q.js +290 -0
  10. package/dist/clock.js +2 -0
  11. package/dist/{dashboard-grid-B6jxBz4j.js → dashboard-grid-DAY_CjCW.js} +1 -1
  12. package/dist/dashboard-grid.js +1 -1
  13. package/dist/{data-grid-Cx0ZOf_e.js → data-grid-B7UuUvBH.js} +42 -37
  14. package/dist/data-grid.js +1 -1
  15. package/dist/{data-list-Cb2sNA6I.js → data-list-CyEq7M2D.js} +1 -1
  16. package/dist/data-list.js +1 -1
  17. package/dist/date-picker-DMcMFW_N.js +344 -0
  18. package/dist/date-picker.js +3 -2
  19. package/dist/date-range-picker-D9zo93NE.js +543 -0
  20. package/dist/date-range-picker.js +2 -2
  21. package/dist/datetime-picker-lOXZbAx_.js +462 -0
  22. package/dist/datetime-picker.js +2 -2
  23. package/dist/datetime-range-picker-DU5ctZbm.js +641 -0
  24. package/dist/datetime-range-picker.js +2 -2
  25. package/dist/divider-DUUPCIh4.js +35 -0
  26. package/dist/divider.js +1 -1
  27. package/dist/docs/alert.examples.md +500 -0
  28. package/dist/docs/alert.json +85 -37
  29. package/dist/docs/alert.md +37 -189
  30. package/dist/docs/aspect-ratio.json +40 -16
  31. package/dist/docs/aspect-ratio.md +204 -29
  32. package/dist/docs/avatar.json +125 -29
  33. package/dist/docs/avatar.md +374 -31
  34. package/dist/docs/badge.json +119 -23
  35. package/dist/docs/badge.md +436 -27
  36. package/dist/docs/calendar.json +53 -5
  37. package/dist/docs/calendar.md +7 -2
  38. package/dist/docs/card.json +98 -10
  39. package/dist/docs/card.md +468 -26
  40. package/dist/docs/clock.json +405 -0
  41. package/dist/docs/clock.md +189 -0
  42. package/dist/docs/container.json +54 -6
  43. package/dist/docs/container.md +247 -17
  44. package/dist/docs/date-picker.examples.md +143 -169
  45. package/dist/docs/date-picker.json +178 -223
  46. package/dist/docs/date-picker.md +44 -50
  47. package/dist/docs/date-range-picker.examples.md +169 -187
  48. package/dist/docs/date-range-picker.json +206 -337
  49. package/dist/docs/date-range-picker.md +52 -67
  50. package/dist/docs/datetime-picker.examples.md +75 -210
  51. package/dist/docs/datetime-picker.json +183 -410
  52. package/dist/docs/datetime-picker.md +50 -72
  53. package/dist/docs/datetime-range-picker.json +225 -502
  54. package/dist/docs/datetime-range-picker.md +250 -101
  55. package/dist/docs/divider.json +71 -7
  56. package/dist/docs/divider.md +281 -13
  57. package/dist/docs/grid.json +76 -12
  58. package/dist/docs/grid.md +376 -18
  59. package/dist/docs/index.md +1 -0
  60. package/dist/docs/inline-message.json +87 -40
  61. package/dist/docs/inline-message.md +314 -71
  62. package/dist/docs/inline.json +65 -9
  63. package/dist/docs/inline.md +276 -13
  64. package/dist/docs/kbd.json +76 -36
  65. package/dist/docs/kbd.md +346 -63
  66. package/dist/docs/link.json +65 -25
  67. package/dist/docs/link.md +317 -60
  68. package/dist/docs/progress-indicator.examples.md +522 -0
  69. package/dist/docs/progress-indicator.json +51 -27
  70. package/dist/docs/progress-indicator.md +13 -238
  71. package/dist/docs/result-state.examples.md +752 -0
  72. package/dist/docs/result-state.json +95 -47
  73. package/dist/docs/result-state.md +45 -228
  74. package/dist/docs/skeleton.json +70 -38
  75. package/dist/docs/skeleton.md +393 -71
  76. package/dist/docs/stack.json +57 -9
  77. package/dist/docs/stack.md +225 -12
  78. package/dist/docs/table.examples.md +6 -10
  79. package/dist/docs/table.json +5 -5
  80. package/dist/docs/table.md +1 -1
  81. package/dist/docs/tag.examples.md +503 -0
  82. package/dist/docs/tag.json +128 -32
  83. package/dist/docs/tag.md +27 -138
  84. package/dist/docs/time-picker.json +162 -300
  85. package/dist/docs/time-picker.md +100 -154
  86. package/dist/docs/time-range-picker.json +203 -465
  87. package/dist/docs/time-range-picker.md +125 -173
  88. package/dist/docs/toast.examples.md +690 -0
  89. package/dist/docs/toast.json +119 -71
  90. package/dist/docs/toast.md +44 -212
  91. package/dist/docs/tree.examples.md +2008 -0
  92. package/dist/docs/tree.json +283 -106
  93. package/dist/docs/tree.md +96 -328
  94. package/dist/docs/visually-hidden.json +38 -6
  95. package/dist/docs/visually-hidden.md +148 -11
  96. package/dist/{entity-picker-CwfA1wr_.js → entity-picker-BwJX0gNJ.js} +1 -1
  97. package/dist/entity-picker.js +1 -1
  98. package/dist/{filter-bar-b8bRNPs9.js → filter-bar-BQZFgV0A.js} +5 -3
  99. package/dist/filter-bar.js +1 -1
  100. package/dist/{import-export-center-C_oNc-RM.js → import-export-center-DWSEOV5Z.js} +3 -3
  101. package/dist/import-export-center.js +1 -1
  102. package/dist/index.js +101 -99
  103. package/dist/{markdown-x59MHBAa.js → markdown-7wOBMXTl.js} +1 -1
  104. package/dist/markdown.js +1 -1
  105. package/dist/picker-frame-_9ZqQOjf.js +43 -0
  106. package/dist/picker-group-CrNRKUxz.js +33 -0
  107. package/dist/picker-head-C_Z0tQGq.js +69 -0
  108. package/dist/picker-jump-BcTRIJs6.js +70 -0
  109. package/dist/picker-range-head-B4tsDOc5.js +100 -0
  110. package/dist/picker-step-MgBwF9g1.js +26 -0
  111. package/dist/read-title-id-DQZVWlMt.js +14 -0
  112. package/dist/result-state-Ct9AB01a.js +123 -0
  113. package/dist/result-state.js +1 -1
  114. package/dist/styles/app-shell.css +1 -1
  115. package/dist/styles/aspect-ratio.css +1 -1
  116. package/dist/styles/attachment.css +1 -1
  117. package/dist/styles/badge.css +1 -1
  118. package/dist/styles/calendar.css +1 -1
  119. package/dist/styles/cascader.css +1 -1
  120. package/dist/styles/chart.css +1 -1
  121. package/dist/styles/clock.css +2 -0
  122. package/dist/styles/code-block.css +1 -1
  123. package/dist/styles/command-palette.css +1 -1
  124. package/dist/styles/dashboard-grid.css +1 -1
  125. package/dist/styles/data-grid.css +14 -10
  126. package/dist/styles/data-list.css +1 -1
  127. package/dist/styles/date-picker.css +4 -2
  128. package/dist/styles/date-range-picker.css +4 -2
  129. package/dist/styles/datetime-picker.css +8 -2
  130. package/dist/styles/datetime-range-picker.css +6 -2
  131. package/dist/styles/detail-panel.css +3 -3
  132. package/dist/styles/entity-picker.css +1 -1
  133. package/dist/styles/event-calendar.css +1 -1
  134. package/dist/styles/filter-bar.css +11 -7
  135. package/dist/styles/grid.css +1 -1
  136. package/dist/styles/image.css +1 -1
  137. package/dist/styles/import-export-center.css +15 -11
  138. package/dist/styles/index.css +21 -17
  139. package/dist/styles/inline.css +1 -1
  140. package/dist/styles/loading-overlay.css +1 -1
  141. package/dist/styles/markdown.css +1 -1
  142. package/dist/styles/multi-select.css +1 -1
  143. package/dist/styles/notification-center.css +1 -1
  144. package/dist/styles/page-header.css +2 -2
  145. package/dist/styles/progress-indicator.css +1 -1
  146. package/dist/styles/side-navigation.css +2 -2
  147. package/dist/styles/skeleton.css +1 -1
  148. package/dist/styles/stack.css +1 -1
  149. package/dist/styles/stat-card.css +1 -1
  150. package/dist/styles/table-of-contents.css +1 -1
  151. package/dist/styles/table.css +14 -10
  152. package/dist/styles/time-picker.css +5 -1
  153. package/dist/styles/time-range-picker.css +5 -1
  154. package/dist/styles/toast.css +1 -1
  155. package/dist/styles/top-navigation.css +1 -1
  156. package/dist/styles/tree.css +1 -1
  157. package/dist/styles/upload.css +1 -1
  158. package/dist/styles/wizard.css +1 -1
  159. package/dist/styles.css +1 -1
  160. package/dist/{table-DqwYPHGS.js → table-MGb3iZY_.js} +11 -6
  161. package/dist/table.js +1 -1
  162. package/dist/time-picker-z4GSRuha.js +313 -0
  163. package/dist/time-picker.js +2 -2
  164. package/dist/time-range-picker-ar40oPcf.js +563 -0
  165. package/dist/time-range-picker.js +2 -2
  166. package/dist/{toast-DHDVXIew.js → toast-Cg28GkqX.js} +121 -117
  167. package/dist/toast.js +1 -1
  168. package/dist/tree-CytfCFT-.js +874 -0
  169. package/dist/tree.js +1 -1
  170. package/dist/types/alert/alert-parts.d.ts +1 -1
  171. package/dist/types/alert/alert-parts.d.ts.map +1 -1
  172. package/dist/types/alert/alert.d.ts.map +1 -1
  173. package/dist/types/alert/alert.types.d.ts +1 -1
  174. package/dist/types/alert/alert.types.d.ts.map +1 -1
  175. package/dist/types/avatar/avatar.d.ts.map +1 -1
  176. package/dist/types/badge/badge.types.d.ts +1 -1
  177. package/dist/types/badge/badge.types.d.ts.map +1 -1
  178. package/dist/types/calendar/calendar-day-cell.d.ts +3 -1
  179. package/dist/types/calendar/calendar-day-cell.d.ts.map +1 -1
  180. package/dist/types/calendar/calendar-header.d.ts +9 -5
  181. package/dist/types/calendar/calendar-header.d.ts.map +1 -1
  182. package/dist/types/calendar/calendar-month-table.d.ts +8 -3
  183. package/dist/types/calendar/calendar-month-table.d.ts.map +1 -1
  184. package/dist/types/calendar/calendar.d.ts +1 -1
  185. package/dist/types/calendar/calendar.d.ts.map +1 -1
  186. package/dist/types/calendar/calendar.types.d.ts +12 -1
  187. package/dist/types/calendar/calendar.types.d.ts.map +1 -1
  188. package/dist/types/clock/clock-body.d.ts +16 -0
  189. package/dist/types/clock/clock-body.d.ts.map +1 -0
  190. package/dist/types/clock/clock-demo.d.ts +15 -0
  191. package/dist/types/clock/clock-demo.d.ts.map +1 -0
  192. package/dist/types/clock/clock-groups.d.ts +15 -0
  193. package/dist/types/clock/clock-groups.d.ts.map +1 -0
  194. package/dist/types/clock/clock-option.d.ts +14 -0
  195. package/dist/types/clock/clock-option.d.ts.map +1 -0
  196. package/dist/types/clock/clock-units.d.ts +13 -0
  197. package/dist/types/clock/clock-units.d.ts.map +1 -0
  198. package/dist/types/clock/clock.d.ts +11 -0
  199. package/dist/types/clock/clock.d.ts.map +1 -0
  200. package/dist/types/clock/clock.types.d.ts +66 -0
  201. package/dist/types/clock/clock.types.d.ts.map +1 -0
  202. package/dist/types/clock/index.d.ts +3 -0
  203. package/dist/types/clock/index.d.ts.map +1 -0
  204. package/dist/types/clock/use-clock-grid.d.ts +28 -0
  205. package/dist/types/clock/use-clock-grid.d.ts.map +1 -0
  206. package/dist/types/clock/use-clock-view.d.ts +16 -0
  207. package/dist/types/clock/use-clock-view.d.ts.map +1 -0
  208. package/dist/types/data-grid/data-grid-filter.d.ts.map +1 -1
  209. package/dist/types/date-picker/date-panel.d.ts +32 -0
  210. package/dist/types/date-picker/date-panel.d.ts.map +1 -0
  211. package/dist/types/date-picker/date-picker-demo.d.ts +8 -15
  212. package/dist/types/date-picker/date-picker-demo.d.ts.map +1 -1
  213. package/dist/types/date-picker/date-picker-panel.d.ts +18 -0
  214. package/dist/types/date-picker/date-picker-panel.d.ts.map +1 -0
  215. package/dist/types/date-picker/date-picker.d.ts +7 -13
  216. package/dist/types/date-picker/date-picker.d.ts.map +1 -1
  217. package/dist/types/date-picker/date-picker.types.d.ts +15 -16
  218. package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
  219. package/dist/types/date-picker/index.d.ts +1 -1
  220. package/dist/types/date-picker/index.d.ts.map +1 -1
  221. package/dist/types/date-picker/month-picker.d.ts +12 -0
  222. package/dist/types/date-picker/month-picker.d.ts.map +1 -0
  223. package/dist/types/date-picker/use-date-panel.d.ts +50 -0
  224. package/dist/types/date-picker/use-date-panel.d.ts.map +1 -0
  225. package/dist/types/date-picker/use-date-picker.d.ts +24 -0
  226. package/dist/types/date-picker/use-date-picker.d.ts.map +1 -0
  227. package/dist/types/date-range-picker/date-range-control.d.ts +34 -0
  228. package/dist/types/date-range-picker/date-range-control.d.ts.map +1 -0
  229. package/dist/types/date-range-picker/date-range-panel.d.ts +24 -0
  230. package/dist/types/date-range-picker/date-range-panel.d.ts.map +1 -0
  231. package/dist/types/date-range-picker/date-range-picker-demo.d.ts +8 -15
  232. package/dist/types/date-range-picker/date-range-picker-demo.d.ts.map +1 -1
  233. package/dist/types/date-range-picker/date-range-picker.d.ts +11 -21
  234. package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
  235. package/dist/types/date-range-picker/date-range-picker.types.d.ts +12 -26
  236. package/dist/types/date-range-picker/date-range-picker.types.d.ts.map +1 -1
  237. package/dist/types/date-range-picker/index.d.ts +2 -2
  238. package/dist/types/date-range-picker/index.d.ts.map +1 -1
  239. package/dist/types/date-range-picker/range-words.d.ts +30 -0
  240. package/dist/types/date-range-picker/range-words.d.ts.map +1 -0
  241. package/dist/types/date-range-picker/use-date-range-picker.d.ts +32 -0
  242. package/dist/types/date-range-picker/use-date-range-picker.d.ts.map +1 -0
  243. package/dist/types/date-range-picker/use-range-draft.d.ts +39 -0
  244. package/dist/types/date-range-picker/use-range-draft.d.ts.map +1 -0
  245. package/dist/types/date-range-picker/use-range-panel.d.ts +71 -0
  246. package/dist/types/date-range-picker/use-range-panel.d.ts.map +1 -0
  247. package/dist/types/datetime-picker/datetime-picker-defaults.d.ts +3 -9
  248. package/dist/types/datetime-picker/datetime-picker-defaults.d.ts.map +1 -1
  249. package/dist/types/datetime-picker/datetime-picker-demo.d.ts +8 -31
  250. package/dist/types/datetime-picker/datetime-picker-demo.d.ts.map +1 -1
  251. package/dist/types/datetime-picker/datetime-picker-panel.d.ts +23 -0
  252. package/dist/types/datetime-picker/datetime-picker-panel.d.ts.map +1 -0
  253. package/dist/types/datetime-picker/datetime-picker.d.ts +8 -19
  254. package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
  255. package/dist/types/datetime-picker/datetime-picker.types.d.ts +25 -66
  256. package/dist/types/datetime-picker/datetime-picker.types.d.ts.map +1 -1
  257. package/dist/types/datetime-picker/index.d.ts +2 -2
  258. package/dist/types/datetime-picker/index.d.ts.map +1 -1
  259. package/dist/types/datetime-picker/use-datetime-panel.d.ts +69 -0
  260. package/dist/types/datetime-picker/use-datetime-panel.d.ts.map +1 -0
  261. package/dist/types/datetime-picker/use-datetime-picker.d.ts +22 -0
  262. package/dist/types/datetime-picker/use-datetime-picker.d.ts.map +1 -0
  263. package/dist/types/datetime-range-picker/datetime-range-half.d.ts +20 -0
  264. package/dist/types/datetime-range-picker/datetime-range-half.d.ts.map +1 -0
  265. package/dist/types/datetime-range-picker/datetime-range-panel.d.ts +30 -0
  266. package/dist/types/datetime-range-picker/datetime-range-panel.d.ts.map +1 -0
  267. package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts +5 -7
  268. package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts.map +1 -1
  269. package/dist/types/datetime-range-picker/datetime-range-picker-demo.d.ts +8 -24
  270. package/dist/types/datetime-range-picker/datetime-range-picker-demo.d.ts.map +1 -1
  271. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts +12 -24
  272. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
  273. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts +31 -66
  274. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts.map +1 -1
  275. package/dist/types/datetime-range-picker/datetime-range-words.d.ts +40 -0
  276. package/dist/types/datetime-range-picker/datetime-range-words.d.ts.map +1 -0
  277. package/dist/types/datetime-range-picker/index.d.ts +4 -3
  278. package/dist/types/datetime-range-picker/index.d.ts.map +1 -1
  279. package/dist/types/datetime-range-picker/use-datetime-range-draft.d.ts +43 -0
  280. package/dist/types/datetime-range-picker/use-datetime-range-draft.d.ts.map +1 -0
  281. package/dist/types/datetime-range-picker/use-datetime-range-panel.d.ts +82 -0
  282. package/dist/types/datetime-range-picker/use-datetime-range-panel.d.ts.map +1 -0
  283. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts +28 -0
  284. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts.map +1 -0
  285. package/dist/types/divider/divider.d.ts +1 -1
  286. package/dist/types/divider/divider.d.ts.map +1 -1
  287. package/dist/types/filter-bar/filter-bar-rules.d.ts.map +1 -1
  288. package/dist/types/index.d.ts +1 -0
  289. package/dist/types/index.d.ts.map +1 -1
  290. package/dist/types/picker-panel/picker-footer.d.ts +17 -0
  291. package/dist/types/picker-panel/picker-footer.d.ts.map +1 -0
  292. package/dist/types/picker-panel/picker-frame.d.ts +21 -0
  293. package/dist/types/picker-panel/picker-frame.d.ts.map +1 -0
  294. package/dist/types/picker-panel/picker-group.d.ts +18 -0
  295. package/dist/types/picker-panel/picker-group.d.ts.map +1 -0
  296. package/dist/types/picker-panel/picker-head.d.ts +27 -0
  297. package/dist/types/picker-panel/picker-head.d.ts.map +1 -0
  298. package/dist/types/picker-panel/picker-jump.d.ts +18 -0
  299. package/dist/types/picker-panel/picker-jump.d.ts.map +1 -0
  300. package/dist/types/picker-panel/picker-layer.d.ts +14 -0
  301. package/dist/types/picker-panel/picker-layer.d.ts.map +1 -0
  302. package/dist/types/picker-panel/picker-panel.d.ts +17 -0
  303. package/dist/types/picker-panel/picker-panel.d.ts.map +1 -0
  304. package/dist/types/picker-panel/picker-rail.d.ts +17 -0
  305. package/dist/types/picker-panel/picker-rail.d.ts.map +1 -0
  306. package/dist/types/picker-panel/picker-range-head.d.ts +37 -0
  307. package/dist/types/picker-panel/picker-range-head.d.ts.map +1 -0
  308. package/dist/types/picker-panel/picker-ruler.d.ts +14 -0
  309. package/dist/types/picker-panel/picker-ruler.d.ts.map +1 -0
  310. package/dist/types/picker-panel/picker-step.d.ts +11 -0
  311. package/dist/types/picker-panel/picker-step.d.ts.map +1 -0
  312. package/dist/types/picker-panel/picker-trigger.d.ts +16 -0
  313. package/dist/types/picker-panel/picker-trigger.d.ts.map +1 -0
  314. package/dist/types/picker-panel/use-media-query.d.ts +3 -0
  315. package/dist/types/picker-panel/use-media-query.d.ts.map +1 -0
  316. package/dist/types/picker-panel/use-picker-draft.d.ts +18 -0
  317. package/dist/types/picker-panel/use-picker-draft.d.ts.map +1 -0
  318. package/dist/types/picker-panel/use-picker-layer.d.ts +31 -0
  319. package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -0
  320. package/dist/types/picker-panel/use-picker-open.d.ts +14 -0
  321. package/dist/types/picker-panel/use-picker-open.d.ts.map +1 -0
  322. package/dist/types/picker-panel/use-picker-position.d.ts +12 -0
  323. package/dist/types/picker-panel/use-picker-position.d.ts.map +1 -0
  324. package/dist/types/picker-panel/use-picker-value.d.ts +20 -0
  325. package/dist/types/picker-panel/use-picker-value.d.ts.map +1 -0
  326. package/dist/types/result-state/result-state.d.ts +32 -2
  327. package/dist/types/result-state/result-state.d.ts.map +1 -1
  328. package/dist/types/table/table-filter.d.ts.map +1 -1
  329. package/dist/types/table/table.types.d.ts +16 -14
  330. package/dist/types/table/table.types.d.ts.map +1 -1
  331. package/dist/types/tag/tag.types.d.ts +1 -1
  332. package/dist/types/tag/tag.types.d.ts.map +1 -1
  333. package/dist/types/time-picker/index.d.ts +2 -2
  334. package/dist/types/time-picker/index.d.ts.map +1 -1
  335. package/dist/types/time-picker/time-picker-defaults.d.ts +0 -7
  336. package/dist/types/time-picker/time-picker-defaults.d.ts.map +1 -1
  337. package/dist/types/time-picker/time-picker-demo.d.ts +15 -0
  338. package/dist/types/time-picker/time-picker-demo.d.ts.map +1 -0
  339. package/dist/types/time-picker/time-picker-panel.d.ts +17 -0
  340. package/dist/types/time-picker/time-picker-panel.d.ts.map +1 -0
  341. package/dist/types/time-picker/time-picker.d.ts +6 -14
  342. package/dist/types/time-picker/time-picker.d.ts.map +1 -1
  343. package/dist/types/time-picker/time-picker.types.d.ts +21 -45
  344. package/dist/types/time-picker/time-picker.types.d.ts.map +1 -1
  345. package/dist/types/time-picker/use-time-panel.d.ts +42 -0
  346. package/dist/types/time-picker/use-time-panel.d.ts.map +1 -0
  347. package/dist/types/time-picker/use-time-picker.d.ts +27 -0
  348. package/dist/types/time-picker/use-time-picker.d.ts.map +1 -0
  349. package/dist/types/time-range-picker/index.d.ts +4 -3
  350. package/dist/types/time-range-picker/index.d.ts.map +1 -1
  351. package/dist/types/time-range-picker/time-range-panel.d.ts +23 -0
  352. package/dist/types/time-range-picker/time-range-panel.d.ts.map +1 -0
  353. package/dist/types/time-range-picker/time-range-picker-defaults.d.ts +2 -4
  354. package/dist/types/time-range-picker/time-range-picker-defaults.d.ts.map +1 -1
  355. package/dist/types/time-range-picker/time-range-picker-demo.d.ts +8 -24
  356. package/dist/types/time-range-picker/time-range-picker-demo.d.ts.map +1 -1
  357. package/dist/types/time-range-picker/time-range-picker.d.ts +12 -28
  358. package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
  359. package/dist/types/time-range-picker/time-range-picker.types.d.ts +24 -64
  360. package/dist/types/time-range-picker/time-range-picker.types.d.ts.map +1 -1
  361. package/dist/types/time-range-picker/time-range-words.d.ts +37 -0
  362. package/dist/types/time-range-picker/time-range-words.d.ts.map +1 -0
  363. package/dist/types/time-range-picker/use-time-range-panel.d.ts +68 -0
  364. package/dist/types/time-range-picker/use-time-range-panel.d.ts.map +1 -0
  365. package/dist/types/time-range-picker/use-time-range-picker.d.ts +25 -0
  366. package/dist/types/time-range-picker/use-time-range-picker.d.ts.map +1 -0
  367. package/dist/types/title-id/read-title-id.d.ts +15 -0
  368. package/dist/types/title-id/read-title-id.d.ts.map +1 -0
  369. package/dist/types/toast/toast.d.ts.map +1 -1
  370. package/dist/types/tree/index.d.ts +1 -1
  371. package/dist/types/tree/index.d.ts.map +1 -1
  372. package/dist/types/tree/tree-parts.d.ts +2 -0
  373. package/dist/types/tree/tree-parts.d.ts.map +1 -1
  374. package/dist/types/tree/tree.d.ts +1 -1
  375. package/dist/types/tree/tree.d.ts.map +1 -1
  376. package/dist/types/tree/tree.types.d.ts +15 -5
  377. package/dist/types/tree/tree.types.d.ts.map +1 -1
  378. package/dist/use-date-picker-DL8tRXji.js +63 -0
  379. package/dist/use-picker-draft-Bw8VFaj0.js +377 -0
  380. package/dist/{wizard-CL6u1aJb.js → wizard-BokOrtwq.js} +1 -1
  381. package/dist/wizard.js +1 -1
  382. package/package.json +10 -6
  383. package/dist/alert-Bi9s1cjV.js +0 -174
  384. package/dist/calendar-CX0wN5Bh.js +0 -564
  385. package/dist/date-picker-CLXTtQGe.js +0 -337
  386. package/dist/date-range-picker-Br0neGyT.js +0 -522
  387. package/dist/datetime-picker-CR-H_BLu.js +0 -683
  388. package/dist/datetime-range-picker-BLo58OIk.js +0 -1050
  389. package/dist/divider-ryFeK0Pi.js +0 -35
  390. package/dist/docs/datetime-range-picker.examples.md +0 -219
  391. package/dist/result-state-BMYhelu1.js +0 -128
  392. package/dist/time-picker-B4-GsO24.js +0 -436
  393. package/dist/time-range-picker-DVOWN8PF.js +0 -800
  394. package/dist/tree-D-y-0TrL.js +0 -794
@@ -25,15 +25,6 @@
25
25
  "top",
26
26
  "top-end"
27
27
  ],
28
- "closeOnSelect": [
29
- "auto",
30
- "always",
31
- "never"
32
- ],
33
- "unavailableOptions": [
34
- "disable",
35
- "hide"
36
- ],
37
28
  "hourCycle": [
38
29
  12,
39
30
  24
@@ -42,6 +33,10 @@
42
33
  "hour",
43
34
  "minute",
44
35
  "second"
36
+ ],
37
+ "confirm": [
38
+ "on",
39
+ "off"
45
40
  ]
46
41
  },
47
42
  "members": {
@@ -51,17 +46,14 @@
51
46
  "size": "md",
52
47
  "variant": "outline",
53
48
  "placement": "bottom-start",
54
- "closeOnSelect": "auto",
49
+ "confirm": true,
55
50
  "step": 900,
56
- "unavailableOptions": "disable",
57
51
  "granularity": "minute",
58
- "clearable": false,
59
- "maxOptions": 1440
52
+ "clearable": false
60
53
  },
61
54
  "capabilities": [
62
55
  "value",
63
56
  "open",
64
- "current",
65
57
  "placement",
66
58
  "appearance",
67
59
  "size",
@@ -81,24 +73,12 @@
81
73
  "invalid",
82
74
  "readonly",
83
75
  "required",
84
- "open",
85
- "selected",
86
- "current"
76
+ "open"
87
77
  ],
88
78
  "parts": [
89
79
  "root",
90
80
  "control",
91
- "trigger",
92
- "positioner",
93
- "content",
94
- "grip",
95
- "head",
96
- "now",
97
- "presets",
98
- "list",
99
- "option",
100
- "empty",
101
- "footer"
81
+ "trigger"
102
82
  ]
103
83
  }
104
84
  },
@@ -112,79 +92,19 @@
112
92
  "part": "root",
113
93
  "element": "div, or the element render returns",
114
94
  "required": true,
115
- "purpose": "The frame. Carries data-ui=\"time-picker\", the axes and the state attributes, including data-open. It draws no border of its own: the time-field inside draws one, and a second would be a second place to fix one defect."
95
+ "purpose": "The frame of the picker. Carries data-ui=\"time-picker\", data-size, data-variant, data-granularity, data-open and the state attributes."
116
96
  },
117
97
  {
118
98
  "part": "control",
119
99
  "element": "div",
120
100
  "required": true,
121
- "purpose": "The box the positioner measures, holding the field and the trigger. The surface hangs from this rather than from the button, so it lines up with the frame the reader sees."
101
+ "purpose": "The box the panel hangs from, around the field and the trigger."
122
102
  },
123
103
  {
124
104
  "part": "trigger",
125
105
  "element": "button",
126
106
  "required": true,
127
- "purpose": "Opens the panel, from inside the field’s end slot. Its accessible name carries the chosen time, because focus returns here when the surface closes. It carries aria-haspopup=\"listbox\", aria-expanded and aria-controls, and it is always drawn: ChromeOS turns Alt+ArrowDown into PageDown before the browser sees it."
128
- },
129
- {
130
- "part": "positioner",
131
- "element": "div",
132
- "required": false,
133
- "purpose": "The layer the surface stands on, portalled to the end of the document so nothing between the control and the root can clip it. It carries data-ui too — a stylesheet cannot reach a subtree that is no longer inside the root — plus data-placement and data-presentation."
134
- },
135
- {
136
- "part": "content",
137
- "element": "div",
138
- "required": false,
139
- "purpose": "The panel: one role=\"listbox\", at every step and every granularity. A column per unit was drawn and withdrawn, so there is no second role to get wrong."
140
- },
141
- {
142
- "part": "grip",
143
- "element": "span, aria-hidden",
144
- "required": false,
145
- "purpose": "The pill at the top of the sheet, drawn only while data-presentation is sheet, in the drawer grip’s geometry and line color. A pull down past half the sheet, or a flick down, closes it with the reason pointer; Escape and the press outside stay the accessible ways out."
146
- },
147
- {
148
- "part": "head",
149
- "element": "div",
150
- "required": false,
151
- "purpose": "Where the now control sits, above the list and below the consumer’s own shortcuts."
152
- },
153
- {
154
- "part": "now",
155
- "element": "button",
156
- "required": false,
157
- "purpose": "Writes the current time. It is the zero case of the field’s relative expression, drawn as one labelled press so a reader who never discovers + still has it."
158
- },
159
- {
160
- "part": "presets",
161
- "element": "div",
162
- "required": false,
163
- "purpose": "The consumer’s own shortcuts, in a column beside the list. This family ships no list of them: \"start of the shift\" is a business clock, and a library guessing at one would be guessing at an industry."
164
- },
165
- {
166
- "part": "list",
167
- "element": "div",
168
- "required": false,
169
- "purpose": "The rows, and the only thing that scrolls. Capped at eight and a half row pitches, so the half-row says the list continues; data-truncated says the list stops short of what the configuration asked for."
170
- },
171
- {
172
- "part": "option",
173
- "element": "div",
174
- "required": false,
175
- "purpose": "One whole time, as role=\"option\" with aria-selected. data-selected is the chosen row, data-current is where a key will act, and data-disabled is a time a bound or the predicate refuses."
176
- },
177
- {
178
- "part": "empty",
179
- "element": "div",
180
- "required": false,
181
- "purpose": "Drawn when no time is available at all — min above max, or a predicate that refuses every step. It is a sentence rather than an empty box, which is what MUI and Ant both leave behind."
182
- },
183
- {
184
- "part": "footer",
185
- "element": "div",
186
- "required": false,
187
- "purpose": "The consumer’s own actions, under the list."
107
+ "purpose": "The button that opens the panel. It says aria-haspopup=\"dialog\", and its name carries the time written."
188
108
  }
189
109
  ],
190
110
  "api": [
@@ -193,217 +113,196 @@
193
113
  "type": "PlainTime | null",
194
114
  "defaultValue": "—",
195
115
  "appliesTo": "TimePicker",
196
- "description": "Present means the consumer owns the value. The picker asks and waits rather than moving it."
116
+ "description": "The time held. Present means the consumer owns it."
197
117
  },
198
118
  {
199
119
  "name": "defaultValue",
200
120
  "type": "PlainTime | null",
201
- "defaultValue": "—",
121
+ "defaultValue": "null",
202
122
  "appliesTo": "TimePicker",
203
- "description": "The value the picker starts from when nobody else writes one."
123
+ "description": "What it starts from, and returns to on a form reset. Read once."
204
124
  },
205
125
  {
206
- "name": "open",
207
- "type": "boolean",
208
- "defaultValue": "—",
126
+ "name": "step",
127
+ "type": "number",
128
+ "defaultValue": "900",
209
129
  "appliesTo": "TimePicker",
210
- "description": "Present means the consumer owns whether the surface is showing."
130
+ "description": "Seconds between two offered times, counted from min or from midnight."
211
131
  },
212
132
  {
213
- "name": "defaultOpen",
214
- "type": "boolean",
215
- "defaultValue": "false",
133
+ "name": "options",
134
+ "type": "readonly PlainTime[]",
135
+ "defaultValue": "—",
216
136
  "appliesTo": "TimePicker",
217
- "description": "Whether the surface starts open."
137
+ "description": "The times to offer, stated rather than stepped."
218
138
  },
219
139
  {
220
- "name": "highlightedValue",
221
- "type": "PlainTime | null",
222
- "defaultValue": "—",
140
+ "name": "granularity",
141
+ "type": "'hour' | 'minute' | 'second'",
142
+ "defaultValue": "minute",
223
143
  "appliesTo": "TimePicker",
224
- "description": "Where the reader is in the list. Present means the consumer owns it; the highlight is not the value, and moving it moves nothing."
144
+ "description": "The finest unit written."
225
145
  },
226
146
  {
227
- "name": "defaultHighlightedValue",
228
- "type": "PlainTime | null",
229
- "defaultValue": "—",
147
+ "name": "hourCycle",
148
+ "type": "12 | 24",
149
+ "defaultValue": "the locale’s",
230
150
  "appliesTo": "TimePicker",
231
- "description": "Where the highlight starts, before the panel places it on the chosen time."
151
+ "description": "Twelve hours or twenty-four."
232
152
  },
233
153
  {
234
154
  "name": "min",
235
155
  "type": "PlainTime",
236
156
  "defaultValue": "—",
237
157
  "appliesTo": "TimePicker",
238
- "description": "The earliest time the list offers and the value accepts."
158
+ "description": "The earliest accepted time."
239
159
  },
240
160
  {
241
161
  "name": "max",
242
162
  "type": "PlainTime",
243
163
  "defaultValue": "—",
244
164
  "appliesTo": "TimePicker",
245
- "description": "The latest time the list offers and the value accepts."
165
+ "description": "The latest accepted time."
246
166
  },
247
167
  {
248
168
  "name": "isTimeUnavailable",
249
169
  "type": "(time: PlainTime) => boolean",
250
170
  "defaultValue": "—",
251
171
  "appliesTo": "TimePicker",
252
- "description": "Refuses particular times. A refused row is disabled by default rather than dropped."
172
+ "description": "Refuses particular times."
253
173
  },
254
174
  {
255
- "name": "step",
256
- "type": "number",
257
- "defaultValue": "900",
175
+ "name": "presets",
176
+ "type": "readonly PickerPreset<PlainTime>[]",
177
+ "defaultValue": "—",
258
178
  "appliesTo": "TimePicker",
259
- "description": "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."
179
+ "description": "The consumer’s own shortcuts, after Now."
260
180
  },
261
181
  {
262
- "name": "options",
263
- "type": "readonly PlainTime[]",
264
- "defaultValue": "—",
182
+ "name": "offsets",
183
+ "type": "readonly number[]",
184
+ "defaultValue": "15 min to 8 h",
265
185
  "appliesTo": "TimePicker",
266
- "description": "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."
186
+ "description": "Steps from now, in seconds."
267
187
  },
268
188
  {
269
- "name": "maxOptions",
270
- "type": "number",
271
- "defaultValue": "1440",
189
+ "name": "confirm",
190
+ "type": "boolean",
191
+ "defaultValue": "true",
272
192
  "appliesTo": "TimePicker",
273
- "description": "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."
193
+ "description": "Whether the panel keeps a draft until Apply."
274
194
  },
275
195
  {
276
- "name": "unavailableOptions",
277
- "type": "'disable' | 'hide'",
278
- "defaultValue": "disable",
196
+ "name": "referenceTime",
197
+ "type": "PlainTime",
198
+ "defaultValue": "the clock",
279
199
  "appliesTo": "TimePicker",
280
- "description": "What a refused row looks like. Disabling is the default because a list that drops rows is a list whose step nobody can infer."
200
+ "description": "What now is."
281
201
  },
282
202
  {
283
- "name": "locale",
284
- "type": "string",
285
- "defaultValue": "SlottedProvider",
203
+ "name": "relative",
204
+ "type": "boolean",
205
+ "defaultValue": "—",
286
206
  "appliesTo": "TimePicker",
287
- "description": "BCP 47. Decides how every row is written. Unset, the language in force decides."
207
+ "description": "Whether + and − open an expression in the field."
288
208
  },
289
209
  {
290
- "name": "timeZone",
210
+ "name": "name",
291
211
  "type": "string",
292
- "defaultValue": "runtime",
212
+ "defaultValue": "—",
293
213
  "appliesTo": "TimePicker",
294
- "description": "Which zone answers \"what time is it now\", for the opening position and the now control."
214
+ "description": "The name a form posts the time under."
295
215
  },
296
216
  {
297
- "name": "hourCycle",
298
- "type": "12 | 24",
299
- "defaultValue": "locale",
217
+ "name": "invalid",
218
+ "type": "boolean",
219
+ "defaultValue": "—",
300
220
  "appliesTo": "TimePicker",
301
- "description": "The question a consumer asks about the clock, passed through to the field and the rows."
221
+ "description": "Stated by the consumer; a refused time is invalid without it."
302
222
  },
303
223
  {
304
- "name": "granularity",
305
- "type": "'hour' | 'minute' | 'second'",
306
- "defaultValue": "minute",
224
+ "name": "open",
225
+ "type": "boolean",
226
+ "defaultValue": "—",
307
227
  "appliesTo": "TimePicker",
308
- "description": "The smallest unit the field draws and the rows carry."
228
+ "description": "Whether the panel is showing. Present means the consumer owns it."
309
229
  },
310
230
  {
311
- "name": "referenceTime",
312
- "type": "PlainTime",
313
- "defaultValue": "now",
231
+ "name": "defaultOpen",
232
+ "type": "boolean",
233
+ "defaultValue": "false",
314
234
  "appliesTo": "TimePicker",
315
- "description": "What \"now\" means for the opening position, the now control and the field’s durations."
235
+ "description": "Whether it starts open when nobody else says. Read once."
236
+ },
237
+ {
238
+ "name": "placement",
239
+ "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
240
+ "defaultValue": "bottom-start",
241
+ "appliesTo": "TimePicker",
242
+ "description": "Where the panel opens, before the positioner has read the room."
316
243
  },
317
244
  {
318
245
  "name": "size",
319
246
  "type": "'sm' | 'md' | 'lg'",
320
247
  "defaultValue": "md",
321
248
  "appliesTo": "TimePicker",
322
- "description": "The type step, matching the field around it."
249
+ "description": "The height of the control. The field around it answers when the picker does not."
323
250
  },
324
251
  {
325
252
  "name": "variant",
326
253
  "type": "'outline' | 'subtle' | 'plain'",
327
254
  "defaultValue": "outline",
328
255
  "appliesTo": "TimePicker",
329
- "description": "How much frame the control shows at rest."
256
+ "description": "How the control draws its frame."
330
257
  },
331
258
  {
332
- "name": "placement",
333
- "type": "'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end'",
334
- "defaultValue": "bottom-start",
259
+ "name": "locale",
260
+ "type": "string",
261
+ "defaultValue": "the language in force",
335
262
  "appliesTo": "TimePicker",
336
- "description": "Where the surface starts, before the positioner reads the room."
263
+ "description": "BCP 47. Writes the field, the panel and the trigger’s name."
337
264
  },
338
265
  {
339
- "name": "closeOnSelect",
340
- "type": "'auto' | 'always' | 'never'",
341
- "defaultValue": "auto",
266
+ "name": "timeZone",
267
+ "type": "string",
268
+ "defaultValue": "the runtime’s",
342
269
  "appliesTo": "TimePicker",
343
- "description": "Whether choosing closes the surface. auto closes, because one press chooses a whole time."
270
+ "description": "Which zone answers \"what is now\"."
344
271
  },
345
272
  {
346
273
  "name": "disabled",
347
274
  "type": "boolean",
348
275
  "defaultValue": "—",
349
276
  "appliesTo": "TimePicker",
350
- "description": "Unstated rather than false, so the picker defers to the field around it."
277
+ "description": "Answers no key and no press."
351
278
  },
352
279
  {
353
280
  "name": "readOnly",
354
281
  "type": "boolean",
355
282
  "defaultValue": "—",
356
283
  "appliesTo": "TimePicker",
357
- "description": "Readable and focusable, and not changeable."
358
- },
359
- {
360
- "name": "invalid",
361
- "type": "boolean",
362
- "defaultValue": "—",
363
- "appliesTo": "TimePicker",
364
- "description": "Unstated rather than false. Retargets the focus ring."
284
+ "description": "Readable and not changeable."
365
285
  },
366
286
  {
367
287
  "name": "required",
368
288
  "type": "boolean",
369
289
  "defaultValue": "—",
370
290
  "appliesTo": "TimePicker",
371
- "description": "Unstated rather than false."
291
+ "description": "The form needs a value."
372
292
  },
373
293
  {
374
294
  "name": "clearable",
375
295
  "type": "boolean",
376
296
  "defaultValue": "false",
377
297
  "appliesTo": "TimePicker",
378
- "description": "Draws the field’s own clear button."
379
- },
380
- {
381
- "name": "name",
382
- "type": "string",
383
- "defaultValue": "—",
384
- "appliesTo": "TimePicker",
385
- "description": "The name the hidden input carries the HH:mm:ss string under."
298
+ "description": "Draws a clear on the control."
386
299
  },
387
300
  {
388
301
  "name": "messages",
389
302
  "type": "Partial<TimePickerMessages>",
390
303
  "defaultValue": "—",
391
304
  "appliesTo": "TimePicker",
392
- "description": "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)."
393
- },
394
- {
395
- "name": "presets",
396
- "type": "ReactNode",
397
- "defaultValue": "—",
398
- "appliesTo": "TimePicker",
399
- "description": "The consumer’s own shortcuts, beside the list."
400
- },
401
- {
402
- "name": "footer",
403
- "type": "ReactNode",
404
- "defaultValue": "—",
405
- "appliesTo": "TimePicker",
406
- "description": "The consumer’s own actions, under the list."
305
+ "description": "Words laid over the language in force: the trigger’s two names, and what is said of a refused time."
407
306
  }
408
307
  ],
409
308
  "composition": [
@@ -412,67 +311,59 @@
412
311
  "type": "component",
413
312
  "defaultValue": "—",
414
313
  "appliesTo": "application",
415
- "description": "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."
314
+ "description": "Sets confirm, granularity, hourCycle, placement, size, step, timeZone and variant once."
416
315
  },
417
316
  {
418
- "name": "renderOption",
419
- "type": "(state: TimePickerOptionState) => ReactNode",
317
+ "name": "renderSlot",
318
+ "type": "(state: ClockSlotState) => ReactNode",
420
319
  "defaultValue": "—",
421
320
  "appliesTo": "TimePicker",
422
- "description": "Draws what is inside one row. The row itself — its role, its states, its keyboard and its target size — stays the family’s."
321
+ "description": "What one whole time of options draws."
322
+ },
323
+ {
324
+ "name": "footer",
325
+ "type": "ReactNode",
326
+ "defaultValue": "the step",
327
+ "appliesTo": "TimePicker",
328
+ "description": "What the footer says when nothing is wrong."
423
329
  },
424
330
  {
425
331
  "name": "render",
426
332
  "type": "(props: TimePickerRootProps) => ReactNode",
427
333
  "defaultValue": "—",
428
334
  "appliesTo": "TimePicker",
429
- "description": "Substitutes the element the frame renders, carrying the ref the positioner measures against."
335
+ "description": "Substitutes the element the root renders."
430
336
  },
431
337
  {
432
338
  "name": "ref",
433
339
  "type": "Ref<TimePickerHandle>",
434
340
  "defaultValue": "—",
435
341
  "appliesTo": "TimePicker",
436
- "description": "focus() puts the reader on the first segment of the field; open() and close() move the surface without a pointer."
437
- },
438
- {
439
- "name": "onKeyDown",
440
- "type": "KeyboardEventHandler",
441
- "defaultValue": "—",
442
- "appliesTo": "TimePicker",
443
- "description": "Runs before the family acts, on the control and on the list alike, and calling preventDefault stops it acting at all."
342
+ "description": "focus(), open() and close()."
444
343
  }
445
344
  ],
446
345
  "events": [
447
346
  {
448
347
  "name": "onValueChange",
449
- "payload": "(value: PlainTime | null, request: TimeFieldChangeRequest)",
450
- "when": "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."
348
+ "payload": "(value: PlainTime | null, request: ChangeRequest<PlainTime | null>)",
349
+ "when": "Before the value moves, and cancellable: from a key in the field, from Apply, from Clear."
451
350
  },
452
351
  {
453
352
  "name": "onOpenChange",
454
353
  "payload": "(open: boolean, request: ChangeRequest<boolean>)",
455
- "when": "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."
456
- },
457
- {
458
- "name": "onHighlightedValueChange",
459
- "payload": "(value: PlainTime | null, request: ChangeRequest<PlainTime | null>)",
460
- "when": "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."
354
+ "when": "Before the panel opens or closes, with the reason."
461
355
  }
462
356
  ],
463
357
  "accessibility": [
464
- "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.",
465
- "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.",
466
- "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.",
467
- "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.",
468
- "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."
358
+ "The trigger says aria-haspopup=\"dialog\" and its name carries the value written, which is where focus returns when the panel closes.",
359
+ "The panel is a dialog with its Tab wrapped, and each grid inside it is one stop.",
360
+ "Escape discards the draft and returns focus to the trigger. Ctrl+Enter applies from anywhere in the panel.",
361
+ "The footer’s hint is a status region, so the reason Apply is off is spoken as well as drawn.",
362
+ "Alt+ArrowDown opens the panel and leaves focus in the field, so the segments keep every key they had."
469
363
  ]
470
364
  }
471
365
  },
472
366
  "tokens": [
473
- "--slotted-border-strong",
474
- "--slotted-border-subtle",
475
- "--slotted-border-width-thin",
476
367
  "--slotted-control-border-width",
477
368
  "--slotted-control-height-lg",
478
369
  "--slotted-control-height-md",
@@ -484,203 +375,174 @@
484
375
  "--slotted-control-transition-duration",
485
376
  "--slotted-control-transition-easing",
486
377
  "--slotted-disabled-foreground",
487
- "--slotted-drawer-resizer-line-color",
488
- "--slotted-duration-medium",
489
- "--slotted-duration-short",
490
- "--slotted-easing-enter",
491
- "--slotted-easing-exit",
492
378
  "--slotted-focus-ring-color",
493
379
  "--slotted-focus-ring-color-invalid",
494
380
  "--slotted-focus-ring-offset",
495
381
  "--slotted-focus-ring-width",
496
- "--slotted-radius-full",
497
- "--slotted-radius-lg",
498
- "--slotted-shadow-md",
499
- "--slotted-space-1",
500
- "--slotted-space-11",
501
382
  "--slotted-space-2",
502
- "--slotted-space-3",
503
- "--slotted-space-4",
504
- "--slotted-space-9",
505
- "--slotted-surface-raised",
506
383
  "--slotted-target-comfortable",
507
384
  "--slotted-target-min",
508
- "--slotted-text",
509
385
  "--slotted-text-muted",
510
- "--slotted-time-picker-content-border-color",
511
- "--slotted-time-picker-content-color",
512
- "--slotted-time-picker-content-min-inline-size",
513
- "--slotted-time-picker-content-padding",
514
- "--slotted-time-picker-content-radius",
515
- "--slotted-time-picker-content-shadow",
516
386
  "--slotted-time-picker-invalid-focus-ring-color",
517
- "--slotted-time-picker-label-color",
518
- "--slotted-time-picker-list-block-size",
519
- "--slotted-time-picker-now-color",
520
- "--slotted-time-picker-option-current-background",
521
- "--slotted-time-picker-option-hover-background",
522
- "--slotted-time-picker-option-radius",
523
- "--slotted-time-picker-option-selected-background",
524
- "--slotted-time-picker-option-selected-color",
525
- "--slotted-time-picker-option-selected-hover-background",
526
387
  "--slotted-time-picker-radius",
527
- "--slotted-time-picker-sheet-inline-size",
528
- "--slotted-time-picker-surface",
529
388
  "--slotted-time-picker-trigger-active-background",
530
389
  "--slotted-time-picker-trigger-color",
531
390
  "--slotted-time-picker-trigger-hover-background",
532
391
  "--slotted-time-picker-trigger-size",
533
- "--slotted-tone-accent-on-solid",
534
- "--slotted-tone-accent-solid",
535
- "--slotted-tone-accent-solid-hover",
536
- "--slotted-tone-accent-text",
537
392
  "--slotted-tone-secondary-subtle-active",
538
- "--slotted-tone-secondary-subtle-hover",
539
- "--slotted-z-index-popover"
393
+ "--slotted-tone-secondary-subtle-hover"
540
394
  ],
541
395
  "examples": [
542
396
  {
543
397
  "id": "playground",
544
398
  "title": "Playground",
545
- "note": "One picker with every axis on it, driven by the controls below the canvas. Open it with the clock, type into the field, and press Alt+ArrowDown to open the panel without leaving the segments.",
399
+ "note": "A field that types every time, and a panel that keeps a draft of it. The controls of the story answer the axes a product sets.",
546
400
  "language": "tsx",
547
- "source": "<Field>\n <FieldLabel>Start time</FieldLabel>\n <TimePicker clearable locale=\"pt-BR\" name=\"start\" step={900} />\n</Field>;\n",
401
+ "source": "<TimePicker defaultValue={HALF_PAST_TWO} />;\n",
548
402
  "verdict": "excerpt"
549
403
  },
550
404
  {
551
405
  "id": "panel",
552
- "title": "One panel shape",
553
- "note": "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.",
406
+ "title": "The clock and its shortcuts",
407
+ "note": "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.",
554
408
  "language": "tsx",
555
- "source": "<TimePicker defaultOpen locale=\"pt-BR\" step={1800} />;\n",
409
+ "source": "<TimePicker {...BASE} defaultValue={HALF_PAST_TWO} presets={PRESETS} />;\n",
556
410
  "verdict": "excerpt"
557
411
  },
558
412
  {
559
413
  "id": "explicit",
560
414
  "title": "The times a consumer states",
561
- "note": "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.",
415
+ "note": "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.",
562
416
  "language": "tsx",
563
- "source": "<TimePicker\n locale=\"pt-BR\"\n options={[\n { hour: 9, minute: 0, second: 0 },\n { hour: 9, minute: 20, second: 0 },\n { hour: 13, minute: 45, second: 0 },\n ]}\n/>;\n",
417
+ "source": "<TimePicker {...BASE} options={CLINIC} />;\n",
564
418
  "verdict": "excerpt"
565
419
  },
566
420
  {
567
421
  "id": "seconds",
568
- "title": "Seconds, chosen from a surface",
569
- "note": "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.",
422
+ "title": "Seconds",
423
+ "note": "granularity is the finest unit written, in the field and in the clock.",
570
424
  "language": "tsx",
571
- "source": "<TimePicker\n granularity=\"second\"\n locale=\"pt-BR\"\n options={[\n { hour: 0, minute: 0, second: 15 },\n { hour: 0, minute: 0, second: 30 },\n { hour: 0, minute: 0, second: 45 },\n ]}\n/>;\n",
425
+ "source": "<TimePicker {...BASE} granularity=\"second\" step={5} />;\n",
572
426
  "verdict": "excerpt"
573
427
  },
574
428
  {
575
429
  "id": "step",
576
430
  "title": "The step, and where it counts from",
577
- "note": "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.",
431
+ "note": "Seconds between two offered times, counted from min, or from midnight. The field still accepts a time between two of them.",
578
432
  "language": "tsx",
579
- "source": "<>\n <TimePicker step={3600} />\n <TimePicker step={1800} />\n <TimePicker min={{ hour: 9, minute: 7, second: 0 }} step={900} />\n</>;\n",
433
+ "source": "<TimePicker {...BASE} defaultValue={HALF_PAST_TWO} step={300} />;\n",
580
434
  "verdict": "excerpt"
581
435
  },
582
436
  {
583
437
  "id": "range-bounds",
584
438
  "title": "Bounds",
585
- "note": "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.",
439
+ "note": "An hour outside the bounds is struck through and keeps its focus. A typed time outside them is invalid.",
586
440
  "language": "tsx",
587
- "source": "<TimePicker max={{ hour: 18, minute: 0, second: 0 }} min={{ hour: 9, minute: 0, second: 0 }} />;\n",
441
+ "source": "<TimePicker {...BASE} max={plainTime(18)} min={plainTime(8, 10)} />;\n",
588
442
  "verdict": "excerpt"
589
443
  },
590
444
  {
591
445
  "id": "unavailable",
592
446
  "title": "Times the product refuses",
593
- "note": "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.",
447
+ "note": "A predicate refuses particular times. An hour with every time refused is refused whole.",
594
448
  "language": "tsx",
595
- "source": "<>\n <TimePicker isTimeUnavailable={(time) => time.hour === 12} />\n <TimePicker isTimeUnavailable={(time) => time.hour === 12} unavailableOptions=\"hide\" />\n</>;\n",
449
+ "source": "<TimePicker {...BASE} isTimeUnavailable={isLunch} />;\n",
596
450
  "verdict": "excerpt"
597
451
  },
598
452
  {
599
- "id": "now",
600
- "title": "The current time, in one press",
601
- "note": "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.",
453
+ "id": "offsets",
454
+ "title": "Steps from now",
455
+ "note": "Seconds from the present. A step past midnight, or to a refused time, is off. An empty list draws none.",
602
456
  "language": "tsx",
603
- "source": "<TimePicker messages={{ now: 'Agora' }} referenceTime={{ hour: 9, minute: 47, second: 0 }} />;\n",
457
+ "source": "<TimePicker {...BASE} offsets={[900, 3600]} />;\n",
604
458
  "verdict": "excerpt"
605
459
  },
606
460
  {
607
461
  "id": "relative",
608
462
  "title": "The field keeps every key it had",
609
- "note": "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.",
463
+ "note": "A + or a − in the field opens an expression, and the clock follows the time it resolves to.",
610
464
  "language": "tsx",
611
- "source": "<TimePicker defaultOpen referenceTime={{ hour: 14, minute: 40, second: 0 }} />;\n",
465
+ "source": "<TimePicker {...BASE} defaultValue={HALF_PAST_TWO} relative />;\n",
612
466
  "verdict": "excerpt"
613
467
  },
614
468
  {
615
469
  "id": "presets",
616
- "title": "Shortcuts and actions",
617
- "note": "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.",
470
+ "title": "Shortcuts",
471
+ "note": "A label and a value, or a function that resolves one when it is pressed. A shortcut the rules refuse is off.",
472
+ "language": "tsx",
473
+ "source": "<TimePicker {...BASE} presets={PRESETS} />;\n",
474
+ "verdict": "excerpt"
475
+ },
476
+ {
477
+ "id": "confirm",
478
+ "title": "With and without a confirmation",
479
+ "note": "The panel keeps a draft until Apply. confirm={false} writes the value on the press that completes the time, and closes.",
618
480
  "language": "tsx",
619
- "source": "<TimePicker\n footer={<Button size=\"sm\">Apply</Button>}\n presets={<Button size=\"sm\">Start of shift</Button>}\n/>;\n",
481
+ "source": "<TimePicker {...BASE} defaultValue={HALF_PAST_TWO} />;\n",
620
482
  "verdict": "excerpt"
621
483
  },
622
484
  {
623
485
  "id": "sizes",
624
486
  "title": "Size",
625
- "note": "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.",
487
+ "note": "The three heights every control has. The panel keeps its own measures at each of them.",
626
488
  "language": "tsx",
627
- "source": "<>\n <TimePicker size=\"sm\" />\n <TimePicker size=\"md\" />\n <TimePicker size=\"lg\" />\n</>;\n",
489
+ "source": "<TimePicker {...BASE} defaultValue={HALF_PAST_TWO} size=\"sm\" />;\n",
628
490
  "verdict": "excerpt"
629
491
  },
630
492
  {
631
493
  "id": "variants",
632
494
  "title": "Variant",
633
- "note": "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.",
495
+ "note": "The three frames every field has, so a picker stands beside a field of its own variant.",
634
496
  "language": "tsx",
635
- "source": "<>\n <TimePicker variant=\"outline\" />\n <TimePicker variant=\"subtle\" />\n <TimePicker variant=\"plain\" />\n</>;\n",
497
+ "source": "<TimePicker {...BASE} defaultValue={HALF_PAST_TWO} variant=\"outline\" />;\n",
636
498
  "verdict": "excerpt"
637
499
  },
638
500
  {
639
501
  "id": "placement",
640
502
  "title": "Where it opens",
641
- "note": "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.",
503
+ "note": "A side and an alignment. The positioner turns the panel when there is no room for it.",
642
504
  "language": "tsx",
643
- "source": "<>\n <TimePicker placement=\"bottom-start\" />\n <TimePicker placement=\"top-end\" />\n</>;\n",
505
+ "source": "<TimePicker {...BASE} defaultValue={HALF_PAST_TWO} placement=\"bottom-end\" />;\n",
644
506
  "verdict": "excerpt"
645
507
  },
646
508
  {
647
509
  "id": "states",
648
510
  "title": "States",
649
- "note": "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.",
511
+ "note": "Each is the field’s own, and the trigger answers it.",
650
512
  "language": "tsx",
651
- "source": "<>\n <TimePicker readOnly />\n <TimePicker invalid />\n <TimePicker disabled />\n <TimePicker required />\n</>;\n",
513
+ "source": "<TimePicker {...BASE} defaultValue={HALF_PAST_TWO} disabled />;\n",
652
514
  "verdict": "excerpt"
653
515
  },
654
516
  {
655
517
  "id": "forms",
656
518
  "title": "In a form",
657
- "note": "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.",
519
+ "note": "name posts the time, a reset returns to the first one, and a Field names the control and not the panel.",
658
520
  "language": "tsx",
659
- "source": "<form action=\"/schedule\" method=\"post\">\n <Field>\n <FieldLabel>Start time</FieldLabel>\n <TimePicker name=\"start\" required />\n </Field>\n</form>;\n",
521
+ "source": "<Field>\n <FieldLabel>Departure</FieldLabel>\n <TimePicker name=\"departure\" />\n</Field>;\n",
660
522
  "verdict": "excerpt"
661
523
  },
662
524
  {
663
525
  "id": "narrow",
664
- "title": "Narrow",
665
- "note": "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.",
526
+ "title": "One column",
527
+ "note": "Under 760 pixels the shortcuts become a strip over the footer, and on a finger the panel is a sheet.",
666
528
  "language": "tsx",
667
- "source": "<div className=\"slotted-demo-measure\">\n <TimePicker locale=\"pt-BR\" />\n</div>;\n",
529
+ "source": "<TimePicker {...BASE} defaultValue={HALF_PAST_TWO} presets={PRESETS} />;\n",
668
530
  "verdict": "excerpt"
669
531
  },
670
532
  {
671
533
  "id": "composition",
672
534
  "title": "Composition and escape hatches",
673
- "note": "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().",
535
+ "note": "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.",
674
536
  "language": "tsx",
675
- "source": "<TimePickerDefaultsProvider step={1200}>\n <TimePicker ref={handle} renderOption={(option) => <span>{option.label}</span>} />\n</TimePickerDefaultsProvider>;\n",
537
+ "source": "<TimePicker footer=\"Gate B\" onValueChange={setTime} value={time} />;\n",
676
538
  "verdict": "excerpt"
677
539
  },
678
540
  {
679
541
  "id": "keyboard",
680
542
  "title": "The keyboard",
681
- "note": "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.",
543
+ "note": "The field keeps its keys, and the panel adds the clock’s.",
682
544
  "language": "tsx",
683
- "source": "<TimePicker\n onKeyDown={(event) => {\n if (event.key === 'Escape') clearSelection();\n }}\n/>;\n",
545
+ "source": "// Alt + ArrowDown opens, with focus in the field\n// ArrowDown / ArrowUp on the trigger, opens on the chosen hour\n// Arrows, Home, End move in the clock\n// Enter / Space chooses\n// Ctrl + Enter applies\n// Escape discards and closes\n",
684
546
  "verdict": "excerpt"
685
547
  }
686
548
  ]