@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
@@ -0,0 +1,405 @@
1
+ {
2
+ "family": "clock",
3
+ "ui": "clock",
4
+ "binding": "react",
5
+ "catalog": {
6
+ "group": "Forms",
7
+ "summary": "Hours, minutes and seconds of a time, all in view."
8
+ },
9
+ "axes": {
10
+ "granularity": [
11
+ "hour",
12
+ "minute",
13
+ "second"
14
+ ],
15
+ "hourCycle": [
16
+ "12",
17
+ "24"
18
+ ]
19
+ },
20
+ "members": {
21
+ "clock": {
22
+ "nativeElement": "div",
23
+ "defaults": {
24
+ "granularity": "minute",
25
+ "step": 900
26
+ },
27
+ "capabilities": [
28
+ "value",
29
+ "appearance",
30
+ "content",
31
+ "disabled",
32
+ "readOnly",
33
+ "wiring"
34
+ ],
35
+ "states": [
36
+ "default",
37
+ "hover",
38
+ "active",
39
+ "focus-visible",
40
+ "disabled",
41
+ "readonly",
42
+ "selected"
43
+ ],
44
+ "parts": [
45
+ "root",
46
+ "hours",
47
+ "hour",
48
+ "period",
49
+ "minutes",
50
+ "minute",
51
+ "seconds",
52
+ "second",
53
+ "cells",
54
+ "slots",
55
+ "slot",
56
+ "empty"
57
+ ]
58
+ }
59
+ },
60
+ "docs": {
61
+ "clock": {
62
+ "imports": {
63
+ "source": "import { Clock } from '@slotted/react';"
64
+ },
65
+ "anatomy": [
66
+ {
67
+ "part": "root",
68
+ "element": "div, or the element render returns",
69
+ "required": true,
70
+ "purpose": "The box the grids stand in, with role=\"group\". Carries data-ui=\"clock\", data-granularity, data-slots, data-disabled and data-readonly. aria-label names the whole clock."
71
+ },
72
+ {
73
+ "part": "hours",
74
+ "element": "div",
75
+ "required": true,
76
+ "purpose": "The listbox of the twenty-four hours, six to a row. Each row is a group named by the part of the day, or by AM and PM under a 12-hour cycle."
77
+ },
78
+ {
79
+ "part": "period",
80
+ "element": "span",
81
+ "required": true,
82
+ "purpose": "The name of a row, drawn on the label column and hidden from assistive technology, which is told the same name by the group."
83
+ },
84
+ {
85
+ "part": "hour",
86
+ "element": "button",
87
+ "required": true,
88
+ "purpose": "One hour. It carries aria-selected, aria-disabled when no accepted time is in it, and data-now when it is the hour it is. Under a 12-hour cycle its accessible name is the whole hour, \"02 PM\"."
89
+ },
90
+ {
91
+ "part": "minutes",
92
+ "element": "div",
93
+ "required": false,
94
+ "purpose": "The row of the minutes: its name and its cells. data-columns is 4, 6 or 10, by how many minutes the step leaves in an hour."
95
+ },
96
+ {
97
+ "part": "seconds",
98
+ "element": "div",
99
+ "required": false,
100
+ "purpose": "The same row for the seconds, drawn at the second granularity."
101
+ },
102
+ {
103
+ "part": "cells",
104
+ "element": "div",
105
+ "required": false,
106
+ "purpose": "The listbox of the minutes or of the seconds, and the box a part of the day keeps its whole times in."
107
+ },
108
+ {
109
+ "part": "minute",
110
+ "element": "button",
111
+ "required": false,
112
+ "purpose": "One minute of the hour held."
113
+ },
114
+ {
115
+ "part": "second",
116
+ "element": "button",
117
+ "required": false,
118
+ "purpose": "One second of the minute held."
119
+ },
120
+ {
121
+ "part": "slots",
122
+ "element": "div",
123
+ "required": false,
124
+ "purpose": "The listbox of whole times, when options states them, grouped by the part of the day."
125
+ },
126
+ {
127
+ "part": "slot",
128
+ "element": "button",
129
+ "required": false,
130
+ "purpose": "One whole time. What it draws can be the consumer’s."
131
+ },
132
+ {
133
+ "part": "empty",
134
+ "element": "div",
135
+ "required": false,
136
+ "purpose": "What a stated list with nothing in it says."
137
+ }
138
+ ],
139
+ "api": [
140
+ {
141
+ "name": "value",
142
+ "type": "PlainTime | null",
143
+ "defaultValue": "—",
144
+ "appliesTo": "Clock",
145
+ "description": "The time held. Present means the consumer owns it; null is an owned empty value."
146
+ },
147
+ {
148
+ "name": "defaultValue",
149
+ "type": "PlainTime | null",
150
+ "defaultValue": "null",
151
+ "appliesTo": "Clock",
152
+ "description": "What it starts from when nobody else writes one. Read once."
153
+ },
154
+ {
155
+ "name": "step",
156
+ "type": "number",
157
+ "defaultValue": "900",
158
+ "appliesTo": "Clock",
159
+ "description": "Seconds between two offered times, counted from min or from midnight."
160
+ },
161
+ {
162
+ "name": "options",
163
+ "type": "readonly PlainTime[]",
164
+ "defaultValue": "—",
165
+ "appliesTo": "Clock",
166
+ "description": "The times to offer, stated rather than stepped. The clock then draws whole times."
167
+ },
168
+ {
169
+ "name": "granularity",
170
+ "type": "'hour' | 'minute' | 'second'",
171
+ "defaultValue": "minute",
172
+ "appliesTo": "Clock",
173
+ "description": "The finest unit drawn."
174
+ },
175
+ {
176
+ "name": "hourCycle",
177
+ "type": "12 | 24",
178
+ "defaultValue": "the locale’s",
179
+ "appliesTo": "Clock",
180
+ "description": "Twelve hours in two halves, or twenty-four in four parts of the day."
181
+ },
182
+ {
183
+ "name": "min",
184
+ "type": "PlainTime",
185
+ "defaultValue": "—",
186
+ "appliesTo": "Clock",
187
+ "description": "The earliest accepted time, and the base the step counts from."
188
+ },
189
+ {
190
+ "name": "max",
191
+ "type": "PlainTime",
192
+ "defaultValue": "—",
193
+ "appliesTo": "Clock",
194
+ "description": "The latest accepted time."
195
+ },
196
+ {
197
+ "name": "isTimeUnavailable",
198
+ "type": "(time: PlainTime) => boolean",
199
+ "defaultValue": "—",
200
+ "appliesTo": "Clock",
201
+ "description": "Refuses particular times. An hour is refused when every time in it is."
202
+ },
203
+ {
204
+ "name": "now",
205
+ "type": "PlainTime",
206
+ "defaultValue": "—",
207
+ "appliesTo": "Clock",
208
+ "description": "The time it is, whose hour is outlined."
209
+ },
210
+ {
211
+ "name": "locale",
212
+ "type": "string",
213
+ "defaultValue": "the language in force",
214
+ "appliesTo": "Clock",
215
+ "description": "BCP 47. Decides the digits, the cycle and the names of the halves."
216
+ },
217
+ {
218
+ "name": "disabled",
219
+ "type": "boolean",
220
+ "defaultValue": "false",
221
+ "appliesTo": "Clock",
222
+ "description": "Answers no key and no press, and takes every time out of the tab sequence."
223
+ },
224
+ {
225
+ "name": "readOnly",
226
+ "type": "boolean",
227
+ "defaultValue": "false",
228
+ "appliesTo": "Clock",
229
+ "description": "Readable and not changeable, and never faded."
230
+ },
231
+ {
232
+ "name": "messages",
233
+ "type": "Partial<ClockMessages>",
234
+ "defaultValue": "—",
235
+ "appliesTo": "Clock",
236
+ "description": "Words laid over the language in force, key by key: the names of the grids and of the parts of the day."
237
+ }
238
+ ],
239
+ "composition": [
240
+ {
241
+ "name": "renderSlot",
242
+ "type": "(state: ClockSlotState) => ReactNode",
243
+ "defaultValue": "—",
244
+ "appliesTo": "Clock",
245
+ "description": "What one whole time draws. The button around it, its name and its states stay the family’s."
246
+ },
247
+ {
248
+ "name": "render",
249
+ "type": "(props: ClockRootProps) => ReactNode",
250
+ "defaultValue": "—",
251
+ "appliesTo": "Clock",
252
+ "description": "Substitutes the element the root renders."
253
+ },
254
+ {
255
+ "name": "ref",
256
+ "type": "Ref<ClockHandle>",
257
+ "defaultValue": "—",
258
+ "appliesTo": "Clock",
259
+ "description": "focus() puts the reader on the chosen hour, or on the one the clock opens at."
260
+ }
261
+ ],
262
+ "events": [
263
+ {
264
+ "name": "onValueChange",
265
+ "payload": "(value: PlainTime | null, request: ClockChangeRequest)",
266
+ "when": "Before the value moves, and cancellable. The request carries the new time, the one it replaces, the reason — pointer or keyboard — the originating event, and the unit the press was in: hour, minute, second or slot."
267
+ }
268
+ ],
269
+ "accessibility": [
270
+ "Each grid is a listbox with one tab stop, so a clock is two stops rather than twenty-eight.",
271
+ "The arrows move focus and choose nothing. A listbox whose selection followed focus would write a time at every step of a walk.",
272
+ "A part of the day is a group with its own name, so a screen reader hears \"Afternoon\" once and not before each of its six hours.",
273
+ "Under a 12-hour cycle an hour is named whole, \"02 PM\", because the figure alone names two hours.",
274
+ "A refused hour carries aria-disabled rather than being removed, and it is struck through as well as dimmed, because color alone says nothing under forced colors.",
275
+ "The hour it is is an outline and the chosen hour a fill, so the two facts are told apart without color."
276
+ ]
277
+ }
278
+ },
279
+ "tokens": [
280
+ "--slotted-border-subtle",
281
+ "--slotted-border-width-thin",
282
+ "--slotted-clock-cell-active-background",
283
+ "--slotted-clock-cell-background",
284
+ "--slotted-clock-cell-hover-background",
285
+ "--slotted-clock-cell-radius",
286
+ "--slotted-clock-color",
287
+ "--slotted-clock-label-color",
288
+ "--slotted-clock-label-inline-size",
289
+ "--slotted-clock-now-border-color",
290
+ "--slotted-clock-row-block-size",
291
+ "--slotted-clock-selected-background",
292
+ "--slotted-clock-selected-color",
293
+ "--slotted-clock-selected-hover-background",
294
+ "--slotted-clock-separator-color",
295
+ "--slotted-control-font-size-md",
296
+ "--slotted-control-height-md",
297
+ "--slotted-control-transition-duration",
298
+ "--slotted-control-transition-easing",
299
+ "--slotted-disabled-background",
300
+ "--slotted-disabled-foreground",
301
+ "--slotted-focus-ring-color",
302
+ "--slotted-focus-ring-width",
303
+ "--slotted-font-family-sans",
304
+ "--slotted-font-size-sm",
305
+ "--slotted-font-size-xs",
306
+ "--slotted-font-weight-semibold",
307
+ "--slotted-radius-sm",
308
+ "--slotted-space-1",
309
+ "--slotted-space-4",
310
+ "--slotted-space-5",
311
+ "--slotted-surface-sunken",
312
+ "--slotted-target-comfortable",
313
+ "--slotted-target-min",
314
+ "--slotted-text",
315
+ "--slotted-text-muted",
316
+ "--slotted-tone-accent-border",
317
+ "--slotted-tone-accent-on-solid",
318
+ "--slotted-tone-accent-solid",
319
+ "--slotted-tone-accent-solid-hover",
320
+ "--slotted-tone-accent-subtle-active",
321
+ "--slotted-tone-accent-subtle-hover"
322
+ ],
323
+ "examples": [
324
+ {
325
+ "id": "playground",
326
+ "title": "Playground",
327
+ "note": "Two presses write a time: an hour, then a minute. The controls of the story answer the axes a product sets.",
328
+ "language": "tsx",
329
+ "source": "<Clock aria-label=\"Departure time\" defaultValue={plainTime(14, 30)} />;\n",
330
+ "verdict": "excerpt"
331
+ },
332
+ {
333
+ "id": "steps",
334
+ "title": "The step decides the minutes",
335
+ "note": "Four across for a quarter of an hour, six for five minutes, ten for one minute. Nothing scrolls at any of the three.",
336
+ "language": "tsx",
337
+ "source": "<Clock aria-label=\"Departure time\" step={300} />;\n",
338
+ "verdict": "excerpt"
339
+ },
340
+ {
341
+ "id": "hour-cycle",
342
+ "title": "Twelve and twenty-four hours",
343
+ "note": "The locale decides the cycle and hourCycle overrides it. A 24-hour clock names the parts of the day, and a 12-hour one names the halves.",
344
+ "language": "tsx",
345
+ "source": "<Clock aria-label=\"Departure time\" hourCycle={12} />;\n",
346
+ "verdict": "excerpt"
347
+ },
348
+ {
349
+ "id": "seconds",
350
+ "title": "Hours alone, and seconds",
351
+ "note": "granularity is the finest unit drawn. The minutes leave at the hour, and the seconds join at the second.",
352
+ "language": "tsx",
353
+ "source": "<Clock aria-label=\"Cue\" granularity=\"second\" step={5} />;\n",
354
+ "verdict": "excerpt"
355
+ },
356
+ {
357
+ "id": "slots",
358
+ "title": "A stated list of times",
359
+ "note": "A clinic open at 08:40, 09:20 and 13:45 has no step. The times are drawn whole, under the part of the day each one is in, and one press chooses.",
360
+ "language": "tsx",
361
+ "source": "<Clock aria-label=\"Appointment\" options={times} renderSlot={(slot) => slot.label} />;\n",
362
+ "verdict": "excerpt"
363
+ },
364
+ {
365
+ "id": "bounds",
366
+ "title": "Bounds and refused times",
367
+ "note": "An hour is refused when every time in it is, and keeps its focus. An hour with one accepted time is not refused, and the press takes that time.",
368
+ "language": "tsx",
369
+ "source": "<Clock aria-label=\"Visit\" isTimeUnavailable={isLunch} max={plainTime(18)} min={plainTime(8)} />;\n",
370
+ "verdict": "excerpt"
371
+ },
372
+ {
373
+ "id": "states",
374
+ "title": "Disabled, read only and the hour it is",
375
+ "note": "A read-only clock keeps its ink and answers no press. now outlines the hour it is, apart from the chosen one.",
376
+ "language": "tsx",
377
+ "source": "<>\n <Clock aria-label=\"Now\" now={plainTime(10, 20)} />\n <Clock aria-label=\"Read only\" readOnly />\n <Clock aria-label=\"Disabled\" disabled />\n</>;\n",
378
+ "verdict": "excerpt"
379
+ },
380
+ {
381
+ "id": "density",
382
+ "title": "Density",
383
+ "note": "A row stands one step under the control height and never under the smallest target. Switch the toolbar to dense: the six columns stay and the rows close up.",
384
+ "language": "tsx",
385
+ "source": "<Clock aria-label=\"Departure time\" />;\n",
386
+ "verdict": "excerpt"
387
+ },
388
+ {
389
+ "id": "composition",
390
+ "title": "Composition and escape hatches",
391
+ "note": "The consumer may own the value, a request can be cancelled, and it says which unit the press was in.",
392
+ "language": "tsx",
393
+ "source": "<Clock\n aria-label=\"Departure time\"\n onValueChange={(time, request) => {\n if (request.unit === 'minute') save(time);\n }}\n value={time}\n/>;\n",
394
+ "verdict": "excerpt"
395
+ },
396
+ {
397
+ "id": "keyboard",
398
+ "title": "The keyboard",
399
+ "note": "One tab stop for the hours and one for the minutes. The arrows move on both axes and choose nothing.",
400
+ "language": "tsx",
401
+ "source": "// ArrowLeft / ArrowRight one time, mirrored under dir=\"rtl\"\n// ArrowUp / ArrowDown the same column, a row either way\n// Home / End the first and last time of the row\n// PageUp / PageDown the first and last row\n// Enter / Space chooses the time focus is on\n",
402
+ "verdict": "excerpt"
403
+ }
404
+ ]
405
+ }
@@ -0,0 +1,189 @@
1
+ <!-- index: ./index.md -->
2
+ # clock
3
+
4
+ `data-ui="clock"` · Hours, minutes and seconds of a time, all in view.
5
+
6
+ ## Import
7
+
8
+ ```tsx
9
+ import { Clock } from '@slotted/react';
10
+ ```
11
+
12
+ ## Minimal example
13
+
14
+ Excerpt — not a complete module
15
+
16
+ ```tsx
17
+ <Clock aria-label="Departure time" defaultValue={plainTime(14, 30)} />;
18
+ ```
19
+
20
+ ## Anatomy
21
+
22
+ | Part | Element | Required |
23
+ | --- | --- | --- |
24
+ | `root` | div, or the element render returns | yes |
25
+ | `hours` | div | yes |
26
+ | `period` | span | yes |
27
+ | `hour` | button | yes |
28
+ | `minutes` | div | no |
29
+ | `seconds` | div | no |
30
+ | `cells` | div | no |
31
+ | `minute` | button | no |
32
+ | `second` | button | no |
33
+ | `slots` | div | no |
34
+ | `slot` | button | no |
35
+ | `empty` | div | no |
36
+
37
+ ## Props
38
+
39
+ | Name | Type | Default | Applies to | Description |
40
+ | --- | --- | --- | --- | --- |
41
+ | `value` | `PlainTime \| null` | — | Clock | The time held. Present means the consumer owns it; null is an owned empty value. |
42
+ | `defaultValue` | `PlainTime \| null` | null | Clock | What it starts from when nobody else writes one. Read once. |
43
+ | `step` | `number` | 900 | Clock | Seconds between two offered times, counted from min or from midnight. |
44
+ | `options` | `readonly PlainTime[]` | — | Clock | The times to offer, stated rather than stepped. The clock then draws whole times. |
45
+ | `granularity` | `'hour' \| 'minute' \| 'second'` | minute | Clock | The finest unit drawn. |
46
+ | `hourCycle` | `12 \| 24` | the locale’s | Clock | Twelve hours in two halves, or twenty-four in four parts of the day. |
47
+ | `min` | `PlainTime` | — | Clock | The earliest accepted time, and the base the step counts from. |
48
+ | `max` | `PlainTime` | — | Clock | The latest accepted time. |
49
+ | `isTimeUnavailable` | `(time: PlainTime) => boolean` | — | Clock | Refuses particular times. An hour is refused when every time in it is. |
50
+ | `now` | `PlainTime` | — | Clock | The time it is, whose hour is outlined. |
51
+ | `locale` | `string` | the language in force | Clock | BCP 47. Decides the digits, the cycle and the names of the halves. |
52
+ | `disabled` | `boolean` | false | Clock | Answers no key and no press, and takes every time out of the tab sequence. |
53
+ | `readOnly` | `boolean` | false | Clock | Readable and not changeable, and never faded. |
54
+ | `messages` | `Partial<ClockMessages>` | — | Clock | Words laid over the language in force, key by key: the names of the grids and of the parts of the day. |
55
+ | `renderSlot` | `(state: ClockSlotState) => ReactNode` | — | Clock | What one whole time draws. The button around it, its name and its states stay the family’s. |
56
+ | `render` | `(props: ClockRootProps) => ReactNode` | — | Clock | Substitutes the element the root renders. |
57
+ | `ref` | `Ref<ClockHandle>` | — | Clock | focus() puts the reader on the chosen hour, or on the one the clock opens at. |
58
+
59
+ ## Events
60
+
61
+ | Name | Payload | When |
62
+ | --- | --- | --- |
63
+ | `onValueChange` | `(value: PlainTime \| null, request: ClockChangeRequest)` | Before the value moves, and cancellable. The request carries the new time, the one it replaces, the reason — pointer or keyboard — the originating event, and the unit the press was in: hour, minute, second or slot. |
64
+
65
+ ## Axes and defaults
66
+
67
+ | Axis | Values | Default |
68
+ | --- | --- | --- |
69
+ | `granularity` | `hour`, `minute`, `second` | `minute` |
70
+ | `hourCycle` | `12`, `24` | — |
71
+
72
+ ## Rules
73
+
74
+ - Each grid is a listbox with one tab stop, so a clock is two stops rather than twenty-eight.
75
+ - The arrows move focus and choose nothing. A listbox whose selection followed focus would write a time at every step of a walk.
76
+ - A part of the day is a group with its own name, so a screen reader hears "Afternoon" once and not before each of its six hours.
77
+ - Under a 12-hour cycle an hour is named whole, "02 PM", because the figure alone names two hours.
78
+ - A refused hour carries aria-disabled rather than being removed, and it is struck through as well as dimmed, because color alone says nothing under forced colors.
79
+ - The hour it is is an outline and the chosen hour a fill, so the two facts are told apart without color.
80
+
81
+ ## Tokens
82
+
83
+ `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-clock-cell-active-background`, `--slotted-clock-cell-background`, `--slotted-clock-cell-hover-background`, `--slotted-clock-cell-radius`, `--slotted-clock-color`, `--slotted-clock-label-color`, `--slotted-clock-label-inline-size`, `--slotted-clock-now-border-color`, `--slotted-clock-row-block-size`, `--slotted-clock-selected-background`, `--slotted-clock-selected-color`, `--slotted-clock-selected-hover-background`, `--slotted-clock-separator-color`, `--slotted-control-font-size-md`, `--slotted-control-height-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-width`, `--slotted-font-family-sans`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-semibold`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`
84
+
85
+ ## Examples
86
+
87
+ ### The step decides the minutes
88
+
89
+ Four across for a quarter of an hour, six for five minutes, ten for one minute. Nothing scrolls at any of the three.
90
+
91
+ Excerpt — not a complete module
92
+
93
+ ```tsx
94
+ <Clock aria-label="Departure time" step={300} />;
95
+ ```
96
+
97
+ ### Twelve and twenty-four hours
98
+
99
+ The locale decides the cycle and hourCycle overrides it. A 24-hour clock names the parts of the day, and a 12-hour one names the halves.
100
+
101
+ Excerpt — not a complete module
102
+
103
+ ```tsx
104
+ <Clock aria-label="Departure time" hourCycle={12} />;
105
+ ```
106
+
107
+ ### Hours alone, and seconds
108
+
109
+ granularity is the finest unit drawn. The minutes leave at the hour, and the seconds join at the second.
110
+
111
+ Excerpt — not a complete module
112
+
113
+ ```tsx
114
+ <Clock aria-label="Cue" granularity="second" step={5} />;
115
+ ```
116
+
117
+ ### A stated list of times
118
+
119
+ A clinic open at 08:40, 09:20 and 13:45 has no step. The times are drawn whole, under the part of the day each one is in, and one press chooses.
120
+
121
+ Excerpt — not a complete module
122
+
123
+ ```tsx
124
+ <Clock aria-label="Appointment" options={times} renderSlot={(slot) => slot.label} />;
125
+ ```
126
+
127
+ ### Bounds and refused times
128
+
129
+ An hour is refused when every time in it is, and keeps its focus. An hour with one accepted time is not refused, and the press takes that time.
130
+
131
+ Excerpt — not a complete module
132
+
133
+ ```tsx
134
+ <Clock aria-label="Visit" isTimeUnavailable={isLunch} max={plainTime(18)} min={plainTime(8)} />;
135
+ ```
136
+
137
+ ### Disabled, read only and the hour it is
138
+
139
+ A read-only clock keeps its ink and answers no press. now outlines the hour it is, apart from the chosen one.
140
+
141
+ Excerpt — not a complete module
142
+
143
+ ```tsx
144
+ <>
145
+ <Clock aria-label="Now" now={plainTime(10, 20)} />
146
+ <Clock aria-label="Read only" readOnly />
147
+ <Clock aria-label="Disabled" disabled />
148
+ </>;
149
+ ```
150
+
151
+ ### Density
152
+
153
+ A row stands one step under the control height and never under the smallest target. Switch the toolbar to dense: the six columns stay and the rows close up.
154
+
155
+ Excerpt — not a complete module
156
+
157
+ ```tsx
158
+ <Clock aria-label="Departure time" />;
159
+ ```
160
+
161
+ ### Composition and escape hatches
162
+
163
+ The consumer may own the value, a request can be cancelled, and it says which unit the press was in.
164
+
165
+ Excerpt — not a complete module
166
+
167
+ ```tsx
168
+ <Clock
169
+ aria-label="Departure time"
170
+ onValueChange={(time, request) => {
171
+ if (request.unit === 'minute') save(time);
172
+ }}
173
+ value={time}
174
+ />;
175
+ ```
176
+
177
+ ### The keyboard
178
+
179
+ One tab stop for the hours and one for the minutes. The arrows move on both axes and choose nothing.
180
+
181
+ Excerpt — not a complete module
182
+
183
+ ```tsx
184
+ // ArrowLeft / ArrowRight one time, mirrored under dir="rtl"
185
+ // ArrowUp / ArrowDown the same column, a row either way
186
+ // Home / End the first and last time of the row
187
+ // PageUp / PageDown the first and last row
188
+ // Enter / Space chooses the time focus is on
189
+ ```