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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/dist/alert-CV8wKS-N.js +179 -0
  2. package/dist/alert.js +1 -1
  3. package/dist/{avatar-DLWElrgg.js → avatar-fHRva5zn.js} +1 -1
  4. package/dist/{avatar-group-DshHqe8B.js → avatar-group-bJaZE1_C.js} +1 -1
  5. package/dist/avatar-group.js +1 -1
  6. package/dist/avatar.js +1 -1
  7. package/dist/calendar-D3QZDlm0.js +598 -0
  8. package/dist/calendar.js +1 -1
  9. package/dist/clock-DzkQa57Q.js +290 -0
  10. package/dist/clock.js +2 -0
  11. package/dist/{dashboard-grid-B6jxBz4j.js → dashboard-grid-DAY_CjCW.js} +1 -1
  12. package/dist/dashboard-grid.js +1 -1
  13. package/dist/{data-grid-Cx0ZOf_e.js → data-grid-B7UuUvBH.js} +42 -37
  14. package/dist/data-grid.js +1 -1
  15. package/dist/{data-list-Cb2sNA6I.js → data-list-CyEq7M2D.js} +1 -1
  16. package/dist/data-list.js +1 -1
  17. package/dist/date-picker-DMcMFW_N.js +344 -0
  18. package/dist/date-picker.js +3 -2
  19. package/dist/date-range-picker-D9zo93NE.js +543 -0
  20. package/dist/date-range-picker.js +2 -2
  21. package/dist/datetime-picker-lOXZbAx_.js +462 -0
  22. package/dist/datetime-picker.js +2 -2
  23. package/dist/datetime-range-picker-DU5ctZbm.js +641 -0
  24. package/dist/datetime-range-picker.js +2 -2
  25. package/dist/divider-DUUPCIh4.js +35 -0
  26. package/dist/divider.js +1 -1
  27. package/dist/docs/alert.examples.md +500 -0
  28. package/dist/docs/alert.json +85 -37
  29. package/dist/docs/alert.md +37 -189
  30. package/dist/docs/aspect-ratio.json +40 -16
  31. package/dist/docs/aspect-ratio.md +204 -29
  32. package/dist/docs/avatar.json +125 -29
  33. package/dist/docs/avatar.md +374 -31
  34. package/dist/docs/badge.json +119 -23
  35. package/dist/docs/badge.md +436 -27
  36. package/dist/docs/calendar.json +53 -5
  37. package/dist/docs/calendar.md +7 -2
  38. package/dist/docs/card.json +98 -10
  39. package/dist/docs/card.md +468 -26
  40. package/dist/docs/clock.json +405 -0
  41. package/dist/docs/clock.md +189 -0
  42. package/dist/docs/container.json +54 -6
  43. package/dist/docs/container.md +247 -17
  44. package/dist/docs/date-picker.examples.md +143 -169
  45. package/dist/docs/date-picker.json +178 -223
  46. package/dist/docs/date-picker.md +44 -50
  47. package/dist/docs/date-range-picker.examples.md +169 -187
  48. package/dist/docs/date-range-picker.json +206 -337
  49. package/dist/docs/date-range-picker.md +52 -67
  50. package/dist/docs/datetime-picker.examples.md +75 -210
  51. package/dist/docs/datetime-picker.json +183 -410
  52. package/dist/docs/datetime-picker.md +50 -72
  53. package/dist/docs/datetime-range-picker.json +225 -502
  54. package/dist/docs/datetime-range-picker.md +250 -101
  55. package/dist/docs/divider.json +71 -7
  56. package/dist/docs/divider.md +281 -13
  57. package/dist/docs/grid.json +76 -12
  58. package/dist/docs/grid.md +376 -18
  59. package/dist/docs/index.md +1 -0
  60. package/dist/docs/inline-message.json +87 -40
  61. package/dist/docs/inline-message.md +314 -71
  62. package/dist/docs/inline.json +65 -9
  63. package/dist/docs/inline.md +276 -13
  64. package/dist/docs/kbd.json +76 -36
  65. package/dist/docs/kbd.md +346 -63
  66. package/dist/docs/link.json +65 -25
  67. package/dist/docs/link.md +317 -60
  68. package/dist/docs/progress-indicator.examples.md +522 -0
  69. package/dist/docs/progress-indicator.json +51 -27
  70. package/dist/docs/progress-indicator.md +13 -238
  71. package/dist/docs/result-state.examples.md +752 -0
  72. package/dist/docs/result-state.json +95 -47
  73. package/dist/docs/result-state.md +45 -228
  74. package/dist/docs/skeleton.json +70 -38
  75. package/dist/docs/skeleton.md +393 -71
  76. package/dist/docs/stack.json +57 -9
  77. package/dist/docs/stack.md +225 -12
  78. package/dist/docs/table.examples.md +6 -10
  79. package/dist/docs/table.json +5 -5
  80. package/dist/docs/table.md +1 -1
  81. package/dist/docs/tag.examples.md +503 -0
  82. package/dist/docs/tag.json +128 -32
  83. package/dist/docs/tag.md +27 -138
  84. package/dist/docs/time-picker.json +162 -300
  85. package/dist/docs/time-picker.md +100 -154
  86. package/dist/docs/time-range-picker.json +203 -465
  87. package/dist/docs/time-range-picker.md +125 -173
  88. package/dist/docs/toast.examples.md +690 -0
  89. package/dist/docs/toast.json +119 -71
  90. package/dist/docs/toast.md +44 -212
  91. package/dist/docs/tree.examples.md +2008 -0
  92. package/dist/docs/tree.json +283 -106
  93. package/dist/docs/tree.md +96 -328
  94. package/dist/docs/visually-hidden.json +38 -6
  95. package/dist/docs/visually-hidden.md +148 -11
  96. package/dist/{entity-picker-CwfA1wr_.js → entity-picker-BwJX0gNJ.js} +1 -1
  97. package/dist/entity-picker.js +1 -1
  98. package/dist/{filter-bar-b8bRNPs9.js → filter-bar-BQZFgV0A.js} +5 -3
  99. package/dist/filter-bar.js +1 -1
  100. package/dist/{import-export-center-C_oNc-RM.js → import-export-center-DWSEOV5Z.js} +3 -3
  101. package/dist/import-export-center.js +1 -1
  102. package/dist/index.js +101 -99
  103. package/dist/{markdown-x59MHBAa.js → markdown-7wOBMXTl.js} +1 -1
  104. package/dist/markdown.js +1 -1
  105. package/dist/picker-frame-_9ZqQOjf.js +43 -0
  106. package/dist/picker-group-CrNRKUxz.js +33 -0
  107. package/dist/picker-head-C_Z0tQGq.js +69 -0
  108. package/dist/picker-jump-BcTRIJs6.js +70 -0
  109. package/dist/picker-range-head-B4tsDOc5.js +100 -0
  110. package/dist/picker-step-MgBwF9g1.js +26 -0
  111. package/dist/read-title-id-DQZVWlMt.js +14 -0
  112. package/dist/result-state-Ct9AB01a.js +123 -0
  113. package/dist/result-state.js +1 -1
  114. package/dist/styles/app-shell.css +1 -1
  115. package/dist/styles/aspect-ratio.css +1 -1
  116. package/dist/styles/attachment.css +1 -1
  117. package/dist/styles/badge.css +1 -1
  118. package/dist/styles/calendar.css +1 -1
  119. package/dist/styles/cascader.css +1 -1
  120. package/dist/styles/chart.css +1 -1
  121. package/dist/styles/clock.css +2 -0
  122. package/dist/styles/code-block.css +1 -1
  123. package/dist/styles/command-palette.css +1 -1
  124. package/dist/styles/dashboard-grid.css +1 -1
  125. package/dist/styles/data-grid.css +14 -10
  126. package/dist/styles/data-list.css +1 -1
  127. package/dist/styles/date-picker.css +4 -2
  128. package/dist/styles/date-range-picker.css +4 -2
  129. package/dist/styles/datetime-picker.css +8 -2
  130. package/dist/styles/datetime-range-picker.css +6 -2
  131. package/dist/styles/detail-panel.css +3 -3
  132. package/dist/styles/entity-picker.css +1 -1
  133. package/dist/styles/event-calendar.css +1 -1
  134. package/dist/styles/filter-bar.css +11 -7
  135. package/dist/styles/grid.css +1 -1
  136. package/dist/styles/image.css +1 -1
  137. package/dist/styles/import-export-center.css +15 -11
  138. package/dist/styles/index.css +21 -17
  139. package/dist/styles/inline.css +1 -1
  140. package/dist/styles/loading-overlay.css +1 -1
  141. package/dist/styles/markdown.css +1 -1
  142. package/dist/styles/multi-select.css +1 -1
  143. package/dist/styles/notification-center.css +1 -1
  144. package/dist/styles/page-header.css +2 -2
  145. package/dist/styles/progress-indicator.css +1 -1
  146. package/dist/styles/side-navigation.css +2 -2
  147. package/dist/styles/skeleton.css +1 -1
  148. package/dist/styles/stack.css +1 -1
  149. package/dist/styles/stat-card.css +1 -1
  150. package/dist/styles/table-of-contents.css +1 -1
  151. package/dist/styles/table.css +14 -10
  152. package/dist/styles/time-picker.css +5 -1
  153. package/dist/styles/time-range-picker.css +5 -1
  154. package/dist/styles/toast.css +1 -1
  155. package/dist/styles/top-navigation.css +1 -1
  156. package/dist/styles/tree.css +1 -1
  157. package/dist/styles/upload.css +1 -1
  158. package/dist/styles/wizard.css +1 -1
  159. package/dist/styles.css +1 -1
  160. package/dist/{table-DqwYPHGS.js → table-MGb3iZY_.js} +11 -6
  161. package/dist/table.js +1 -1
  162. package/dist/time-picker-z4GSRuha.js +313 -0
  163. package/dist/time-picker.js +2 -2
  164. package/dist/time-range-picker-ar40oPcf.js +563 -0
  165. package/dist/time-range-picker.js +2 -2
  166. package/dist/{toast-DHDVXIew.js → toast-Cg28GkqX.js} +121 -117
  167. package/dist/toast.js +1 -1
  168. package/dist/tree-CytfCFT-.js +874 -0
  169. package/dist/tree.js +1 -1
  170. package/dist/types/alert/alert-parts.d.ts +1 -1
  171. package/dist/types/alert/alert-parts.d.ts.map +1 -1
  172. package/dist/types/alert/alert.d.ts.map +1 -1
  173. package/dist/types/alert/alert.types.d.ts +1 -1
  174. package/dist/types/alert/alert.types.d.ts.map +1 -1
  175. package/dist/types/avatar/avatar.d.ts.map +1 -1
  176. package/dist/types/badge/badge.types.d.ts +1 -1
  177. package/dist/types/badge/badge.types.d.ts.map +1 -1
  178. package/dist/types/calendar/calendar-day-cell.d.ts +3 -1
  179. package/dist/types/calendar/calendar-day-cell.d.ts.map +1 -1
  180. package/dist/types/calendar/calendar-header.d.ts +9 -5
  181. package/dist/types/calendar/calendar-header.d.ts.map +1 -1
  182. package/dist/types/calendar/calendar-month-table.d.ts +8 -3
  183. package/dist/types/calendar/calendar-month-table.d.ts.map +1 -1
  184. package/dist/types/calendar/calendar.d.ts +1 -1
  185. package/dist/types/calendar/calendar.d.ts.map +1 -1
  186. package/dist/types/calendar/calendar.types.d.ts +12 -1
  187. package/dist/types/calendar/calendar.types.d.ts.map +1 -1
  188. package/dist/types/clock/clock-body.d.ts +16 -0
  189. package/dist/types/clock/clock-body.d.ts.map +1 -0
  190. package/dist/types/clock/clock-demo.d.ts +15 -0
  191. package/dist/types/clock/clock-demo.d.ts.map +1 -0
  192. package/dist/types/clock/clock-groups.d.ts +15 -0
  193. package/dist/types/clock/clock-groups.d.ts.map +1 -0
  194. package/dist/types/clock/clock-option.d.ts +14 -0
  195. package/dist/types/clock/clock-option.d.ts.map +1 -0
  196. package/dist/types/clock/clock-units.d.ts +13 -0
  197. package/dist/types/clock/clock-units.d.ts.map +1 -0
  198. package/dist/types/clock/clock.d.ts +11 -0
  199. package/dist/types/clock/clock.d.ts.map +1 -0
  200. package/dist/types/clock/clock.types.d.ts +66 -0
  201. package/dist/types/clock/clock.types.d.ts.map +1 -0
  202. package/dist/types/clock/index.d.ts +3 -0
  203. package/dist/types/clock/index.d.ts.map +1 -0
  204. package/dist/types/clock/use-clock-grid.d.ts +28 -0
  205. package/dist/types/clock/use-clock-grid.d.ts.map +1 -0
  206. package/dist/types/clock/use-clock-view.d.ts +16 -0
  207. package/dist/types/clock/use-clock-view.d.ts.map +1 -0
  208. package/dist/types/data-grid/data-grid-filter.d.ts.map +1 -1
  209. package/dist/types/date-picker/date-panel.d.ts +32 -0
  210. package/dist/types/date-picker/date-panel.d.ts.map +1 -0
  211. package/dist/types/date-picker/date-picker-demo.d.ts +8 -15
  212. package/dist/types/date-picker/date-picker-demo.d.ts.map +1 -1
  213. package/dist/types/date-picker/date-picker-panel.d.ts +18 -0
  214. package/dist/types/date-picker/date-picker-panel.d.ts.map +1 -0
  215. package/dist/types/date-picker/date-picker.d.ts +7 -13
  216. package/dist/types/date-picker/date-picker.d.ts.map +1 -1
  217. package/dist/types/date-picker/date-picker.types.d.ts +15 -16
  218. package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
  219. package/dist/types/date-picker/index.d.ts +1 -1
  220. package/dist/types/date-picker/index.d.ts.map +1 -1
  221. package/dist/types/date-picker/month-picker.d.ts +12 -0
  222. package/dist/types/date-picker/month-picker.d.ts.map +1 -0
  223. package/dist/types/date-picker/use-date-panel.d.ts +50 -0
  224. package/dist/types/date-picker/use-date-panel.d.ts.map +1 -0
  225. package/dist/types/date-picker/use-date-picker.d.ts +24 -0
  226. package/dist/types/date-picker/use-date-picker.d.ts.map +1 -0
  227. package/dist/types/date-range-picker/date-range-control.d.ts +34 -0
  228. package/dist/types/date-range-picker/date-range-control.d.ts.map +1 -0
  229. package/dist/types/date-range-picker/date-range-panel.d.ts +24 -0
  230. package/dist/types/date-range-picker/date-range-panel.d.ts.map +1 -0
  231. package/dist/types/date-range-picker/date-range-picker-demo.d.ts +8 -15
  232. package/dist/types/date-range-picker/date-range-picker-demo.d.ts.map +1 -1
  233. package/dist/types/date-range-picker/date-range-picker.d.ts +11 -21
  234. package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
  235. package/dist/types/date-range-picker/date-range-picker.types.d.ts +12 -26
  236. package/dist/types/date-range-picker/date-range-picker.types.d.ts.map +1 -1
  237. package/dist/types/date-range-picker/index.d.ts +2 -2
  238. package/dist/types/date-range-picker/index.d.ts.map +1 -1
  239. package/dist/types/date-range-picker/range-words.d.ts +30 -0
  240. package/dist/types/date-range-picker/range-words.d.ts.map +1 -0
  241. package/dist/types/date-range-picker/use-date-range-picker.d.ts +32 -0
  242. package/dist/types/date-range-picker/use-date-range-picker.d.ts.map +1 -0
  243. package/dist/types/date-range-picker/use-range-draft.d.ts +39 -0
  244. package/dist/types/date-range-picker/use-range-draft.d.ts.map +1 -0
  245. package/dist/types/date-range-picker/use-range-panel.d.ts +71 -0
  246. package/dist/types/date-range-picker/use-range-panel.d.ts.map +1 -0
  247. package/dist/types/datetime-picker/datetime-picker-defaults.d.ts +3 -9
  248. package/dist/types/datetime-picker/datetime-picker-defaults.d.ts.map +1 -1
  249. package/dist/types/datetime-picker/datetime-picker-demo.d.ts +8 -31
  250. package/dist/types/datetime-picker/datetime-picker-demo.d.ts.map +1 -1
  251. package/dist/types/datetime-picker/datetime-picker-panel.d.ts +23 -0
  252. package/dist/types/datetime-picker/datetime-picker-panel.d.ts.map +1 -0
  253. package/dist/types/datetime-picker/datetime-picker.d.ts +8 -19
  254. package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
  255. package/dist/types/datetime-picker/datetime-picker.types.d.ts +25 -66
  256. package/dist/types/datetime-picker/datetime-picker.types.d.ts.map +1 -1
  257. package/dist/types/datetime-picker/index.d.ts +2 -2
  258. package/dist/types/datetime-picker/index.d.ts.map +1 -1
  259. package/dist/types/datetime-picker/use-datetime-panel.d.ts +69 -0
  260. package/dist/types/datetime-picker/use-datetime-panel.d.ts.map +1 -0
  261. package/dist/types/datetime-picker/use-datetime-picker.d.ts +22 -0
  262. package/dist/types/datetime-picker/use-datetime-picker.d.ts.map +1 -0
  263. package/dist/types/datetime-range-picker/datetime-range-half.d.ts +20 -0
  264. package/dist/types/datetime-range-picker/datetime-range-half.d.ts.map +1 -0
  265. package/dist/types/datetime-range-picker/datetime-range-panel.d.ts +30 -0
  266. package/dist/types/datetime-range-picker/datetime-range-panel.d.ts.map +1 -0
  267. package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts +5 -7
  268. package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts.map +1 -1
  269. package/dist/types/datetime-range-picker/datetime-range-picker-demo.d.ts +8 -24
  270. package/dist/types/datetime-range-picker/datetime-range-picker-demo.d.ts.map +1 -1
  271. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts +12 -24
  272. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
  273. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts +31 -66
  274. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts.map +1 -1
  275. package/dist/types/datetime-range-picker/datetime-range-words.d.ts +40 -0
  276. package/dist/types/datetime-range-picker/datetime-range-words.d.ts.map +1 -0
  277. package/dist/types/datetime-range-picker/index.d.ts +4 -3
  278. package/dist/types/datetime-range-picker/index.d.ts.map +1 -1
  279. package/dist/types/datetime-range-picker/use-datetime-range-draft.d.ts +43 -0
  280. package/dist/types/datetime-range-picker/use-datetime-range-draft.d.ts.map +1 -0
  281. package/dist/types/datetime-range-picker/use-datetime-range-panel.d.ts +82 -0
  282. package/dist/types/datetime-range-picker/use-datetime-range-panel.d.ts.map +1 -0
  283. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts +28 -0
  284. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts.map +1 -0
  285. package/dist/types/divider/divider.d.ts +1 -1
  286. package/dist/types/divider/divider.d.ts.map +1 -1
  287. package/dist/types/filter-bar/filter-bar-rules.d.ts.map +1 -1
  288. package/dist/types/index.d.ts +1 -0
  289. package/dist/types/index.d.ts.map +1 -1
  290. package/dist/types/picker-panel/picker-footer.d.ts +17 -0
  291. package/dist/types/picker-panel/picker-footer.d.ts.map +1 -0
  292. package/dist/types/picker-panel/picker-frame.d.ts +21 -0
  293. package/dist/types/picker-panel/picker-frame.d.ts.map +1 -0
  294. package/dist/types/picker-panel/picker-group.d.ts +18 -0
  295. package/dist/types/picker-panel/picker-group.d.ts.map +1 -0
  296. package/dist/types/picker-panel/picker-head.d.ts +27 -0
  297. package/dist/types/picker-panel/picker-head.d.ts.map +1 -0
  298. package/dist/types/picker-panel/picker-jump.d.ts +18 -0
  299. package/dist/types/picker-panel/picker-jump.d.ts.map +1 -0
  300. package/dist/types/picker-panel/picker-layer.d.ts +14 -0
  301. package/dist/types/picker-panel/picker-layer.d.ts.map +1 -0
  302. package/dist/types/picker-panel/picker-panel.d.ts +17 -0
  303. package/dist/types/picker-panel/picker-panel.d.ts.map +1 -0
  304. package/dist/types/picker-panel/picker-rail.d.ts +17 -0
  305. package/dist/types/picker-panel/picker-rail.d.ts.map +1 -0
  306. package/dist/types/picker-panel/picker-range-head.d.ts +37 -0
  307. package/dist/types/picker-panel/picker-range-head.d.ts.map +1 -0
  308. package/dist/types/picker-panel/picker-ruler.d.ts +14 -0
  309. package/dist/types/picker-panel/picker-ruler.d.ts.map +1 -0
  310. package/dist/types/picker-panel/picker-step.d.ts +11 -0
  311. package/dist/types/picker-panel/picker-step.d.ts.map +1 -0
  312. package/dist/types/picker-panel/picker-trigger.d.ts +16 -0
  313. package/dist/types/picker-panel/picker-trigger.d.ts.map +1 -0
  314. package/dist/types/picker-panel/use-media-query.d.ts +3 -0
  315. package/dist/types/picker-panel/use-media-query.d.ts.map +1 -0
  316. package/dist/types/picker-panel/use-picker-draft.d.ts +18 -0
  317. package/dist/types/picker-panel/use-picker-draft.d.ts.map +1 -0
  318. package/dist/types/picker-panel/use-picker-layer.d.ts +31 -0
  319. package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -0
  320. package/dist/types/picker-panel/use-picker-open.d.ts +14 -0
  321. package/dist/types/picker-panel/use-picker-open.d.ts.map +1 -0
  322. package/dist/types/picker-panel/use-picker-position.d.ts +12 -0
  323. package/dist/types/picker-panel/use-picker-position.d.ts.map +1 -0
  324. package/dist/types/picker-panel/use-picker-value.d.ts +20 -0
  325. package/dist/types/picker-panel/use-picker-value.d.ts.map +1 -0
  326. package/dist/types/result-state/result-state.d.ts +32 -2
  327. package/dist/types/result-state/result-state.d.ts.map +1 -1
  328. package/dist/types/table/table-filter.d.ts.map +1 -1
  329. package/dist/types/table/table.types.d.ts +16 -14
  330. package/dist/types/table/table.types.d.ts.map +1 -1
  331. package/dist/types/tag/tag.types.d.ts +1 -1
  332. package/dist/types/tag/tag.types.d.ts.map +1 -1
  333. package/dist/types/time-picker/index.d.ts +2 -2
  334. package/dist/types/time-picker/index.d.ts.map +1 -1
  335. package/dist/types/time-picker/time-picker-defaults.d.ts +0 -7
  336. package/dist/types/time-picker/time-picker-defaults.d.ts.map +1 -1
  337. package/dist/types/time-picker/time-picker-demo.d.ts +15 -0
  338. package/dist/types/time-picker/time-picker-demo.d.ts.map +1 -0
  339. package/dist/types/time-picker/time-picker-panel.d.ts +17 -0
  340. package/dist/types/time-picker/time-picker-panel.d.ts.map +1 -0
  341. package/dist/types/time-picker/time-picker.d.ts +6 -14
  342. package/dist/types/time-picker/time-picker.d.ts.map +1 -1
  343. package/dist/types/time-picker/time-picker.types.d.ts +21 -45
  344. package/dist/types/time-picker/time-picker.types.d.ts.map +1 -1
  345. package/dist/types/time-picker/use-time-panel.d.ts +42 -0
  346. package/dist/types/time-picker/use-time-panel.d.ts.map +1 -0
  347. package/dist/types/time-picker/use-time-picker.d.ts +27 -0
  348. package/dist/types/time-picker/use-time-picker.d.ts.map +1 -0
  349. package/dist/types/time-range-picker/index.d.ts +4 -3
  350. package/dist/types/time-range-picker/index.d.ts.map +1 -1
  351. package/dist/types/time-range-picker/time-range-panel.d.ts +23 -0
  352. package/dist/types/time-range-picker/time-range-panel.d.ts.map +1 -0
  353. package/dist/types/time-range-picker/time-range-picker-defaults.d.ts +2 -4
  354. package/dist/types/time-range-picker/time-range-picker-defaults.d.ts.map +1 -1
  355. package/dist/types/time-range-picker/time-range-picker-demo.d.ts +8 -24
  356. package/dist/types/time-range-picker/time-range-picker-demo.d.ts.map +1 -1
  357. package/dist/types/time-range-picker/time-range-picker.d.ts +12 -28
  358. package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
  359. package/dist/types/time-range-picker/time-range-picker.types.d.ts +24 -64
  360. package/dist/types/time-range-picker/time-range-picker.types.d.ts.map +1 -1
  361. package/dist/types/time-range-picker/time-range-words.d.ts +37 -0
  362. package/dist/types/time-range-picker/time-range-words.d.ts.map +1 -0
  363. package/dist/types/time-range-picker/use-time-range-panel.d.ts +68 -0
  364. package/dist/types/time-range-picker/use-time-range-panel.d.ts.map +1 -0
  365. package/dist/types/time-range-picker/use-time-range-picker.d.ts +25 -0
  366. package/dist/types/time-range-picker/use-time-range-picker.d.ts.map +1 -0
  367. package/dist/types/title-id/read-title-id.d.ts +15 -0
  368. package/dist/types/title-id/read-title-id.d.ts.map +1 -0
  369. package/dist/types/toast/toast.d.ts.map +1 -1
  370. package/dist/types/tree/index.d.ts +1 -1
  371. package/dist/types/tree/index.d.ts.map +1 -1
  372. package/dist/types/tree/tree-parts.d.ts +2 -0
  373. package/dist/types/tree/tree-parts.d.ts.map +1 -1
  374. package/dist/types/tree/tree.d.ts +1 -1
  375. package/dist/types/tree/tree.d.ts.map +1 -1
  376. package/dist/types/tree/tree.types.d.ts +15 -5
  377. package/dist/types/tree/tree.types.d.ts.map +1 -1
  378. package/dist/use-date-picker-DL8tRXji.js +63 -0
  379. package/dist/use-picker-draft-Bw8VFaj0.js +377 -0
  380. package/dist/{wizard-CL6u1aJb.js → wizard-BokOrtwq.js} +1 -1
  381. package/dist/wizard.js +1 -1
  382. package/package.json +10 -6
  383. package/dist/alert-Bi9s1cjV.js +0 -174
  384. package/dist/calendar-CX0wN5Bh.js +0 -564
  385. package/dist/date-picker-CLXTtQGe.js +0 -337
  386. package/dist/date-range-picker-Br0neGyT.js +0 -522
  387. package/dist/datetime-picker-CR-H_BLu.js +0 -683
  388. package/dist/datetime-range-picker-BLo58OIk.js +0 -1050
  389. package/dist/divider-ryFeK0Pi.js +0 -35
  390. package/dist/docs/datetime-range-picker.examples.md +0 -219
  391. package/dist/result-state-BMYhelu1.js +0 -128
  392. package/dist/time-picker-B4-GsO24.js +0 -436
  393. package/dist/time-range-picker-DVOWN8PF.js +0 -800
  394. package/dist/tree-D-y-0TrL.js +0 -794
@@ -6,7 +6,7 @@
6
6
  ## Import
7
7
 
8
8
  ```tsx
9
- import { DateTimeRangePicker, DateTimeRangePickerDefaultsProvider, DateTimeRangePickerPreset, SlottedProvider } from '@slotted/react';
9
+ import { DateTimeRangePicker, DateTimeRangePickerDefaultsProvider } from '@slotted/react';
10
10
  ```
11
11
 
12
12
  ## Minimal example
@@ -14,15 +14,7 @@ import { DateTimeRangePicker, DateTimeRangePickerDefaultsProvider, DateTimeRange
14
14
  Excerpt — not a complete module
15
15
 
16
16
  ```tsx
17
- <Field>
18
- <FieldLabel>Pickup and return</FieldLabel>
19
- <DateTimeRangePicker
20
- clearable
21
- defaultValue={rental}
22
- locale="pt-BR"
23
- messages={{ start: 'Pickup', end: 'Return' }}
24
- />
25
- </Field>;
17
+ <DateTimeRangePicker defaultValue={RENTAL} />;
26
18
  ```
27
19
 
28
20
  ## Anatomy
@@ -35,98 +27,68 @@ Excerpt — not a complete module
35
27
  | `summary` | span | yes |
36
28
  | `clear` | button | no |
37
29
  | `hidden-input` | input | yes |
38
- | `positioner` | div | no |
39
- | `content` | div | no |
40
- | `grip` | span, aria-hidden | no |
41
- | `head` | div | no |
42
- | `tabs` | div | no |
43
- | `tab` | button | no |
44
- | `tab-label` | span | no |
45
- | `tab-value` | span | no |
46
- | `field` | div | no |
47
- | `now` | button | no |
48
- | `hint` | span | no |
49
- | `length` | span | no |
50
- | `limit` | span | no |
51
- | `presets` | div | no |
52
- | `preset` | button | no |
53
- | `panel` | div | no |
54
- | `date-panel` | div | no |
55
- | `list` | div | no |
56
- | `option` | div | no |
57
- | `option-duration` | span | no |
58
- | `empty` | div | no |
59
- | `footer` | div | no |
60
- | `done` | button | no |
61
30
 
62
31
  ## Props
63
32
 
64
33
  | Name | Type | Default | Applies to | Description |
65
34
  | --- | --- | --- | --- | --- |
66
- | `value` | `DateTimeRange \| null` | — | DateTimeRangePicker | { start, end }, each end nullable. Present means the consumer owns it. Both ends null is null. |
67
- | `defaultValue` | `DateTimeRange \| null` | — | DateTimeRangePicker | What it starts from when nobody else writes one. Read once. |
68
- | `open` | `boolean` | — | DateTimeRangePicker | Whether the surface is showing. Present means the consumer owns it. |
69
- | `defaultOpen` | `boolean` | false | DateTimeRangePicker | Whether it opens already showing. |
70
- | `position` | `'start' \| 'end'` | — | DateTimeRangePicker | The end being edited: the field and the panel carrying data-current, and where focus lands when the surface opens. Present means the consumer owns it. |
71
- | `defaultPosition` | `'start' \| 'end'` | start | DateTimeRangePicker | Where editing starts. |
72
- | `highlighted` | `{ start: PlainTime \| null; end: PlainTime \| null }` | — | DateTimeRangePicker | The highlighted option of each end’s list. Present means the consumer owns it. Moving it moves no value. |
73
- | `defaultHighlighted` | `{ start: PlainTime \| null; end: PlainTime \| null }` | — | DateTimeRangePicker | Where the highlights start; otherwise a list opens on its end, or on the nearest offered step. |
74
- | `min` | `PlainDateTime` | — | DateTimeRangePicker | Where the range starts: the earliest whole value. Its time bounds the first day only, the platform’s own rule. Crossed with the work between the two fields. |
75
- | `max` | `PlainDateTime` | — | DateTimeRangePicker | Where the range ends; its time bounds the last day only. |
76
- | `minTime` | `PlainTime` | — | DateTimeRangePicker | The earliest time on every day inside the range, applied together with min — the pair MUI declines to combine. |
77
- | `maxTime` | `PlainTime` | — | DateTimeRangePicker | The latest time on every day inside the range. |
78
- | `isDateUnavailable` | `(date: PlainDate) => boolean` | — | DateTimeRangePicker | Refuses whole days. The grid greys them and a list on such a day is empty. |
79
- | `isTimeUnavailable` | `(time: PlainTime, date: PlainDate) => boolean` | — | DateTimeRangePicker | Refuses one time on one day. Asked once per row of a list, on the day that list serves. |
80
- | `contiguous` | `boolean` | true | DateTimeRangePicker | Whether a run may cross an unavailable day. On, and with a start chosen, the days beyond the first unavailable one are refused in the grid, and on the same day the times beyond the first unavailable one in the end list. |
81
- | `minLength` | `number` | — | DateTimeRangePicker | The shortest run allowed, in seconds. The grid and the list refuse shorter ones and the band names the limit. |
82
- | `maxLength` | `number` | — | DateTimeRangePicker | The longest run allowed, in seconds. |
83
- | `lengthLabel` | `(seconds: number, locale?: string) => string` | durationLabel | DateTimeRangePicker | What the band and the rows say for a duration, in the product’s own words. The default writes "3 days 21 hr" in the family’s locale. |
84
- | `step` | `number` | 900 | DateTimeRangePicker | Seconds between two offered times, counted from min’s time on the first day and from midnight elsewhere. Ignored when options states the list. |
85
- | `options` | `readonly PlainTime[]` | — | DateTimeRangePicker | The times to offer, stated rather than stepped; the same list for both ends. The bounds and the predicate still refuse. |
86
- | `maxOptions` | `number` | 1440 | DateTimeRangePicker | How many rows a list may reach before it is cut. Cut, the list carries data-truncated and the panel’s description says the rest is typed. |
87
- | `unavailableOptions` | `'disable' \| 'hide'` | disable | DateTimeRangePicker | What a refused time looks like in a list: drawn muted with aria-disabled, or left out. |
88
- | `months` | `number` | 1 | DateTimeRangePicker | How many months the grid shows. One, because the list stands beside it; a second wraps under the first where the surface is narrow. |
89
- | `weekNumbers` | `boolean` | — | DateTimeRangePicker | Draws the ISO week number beside each row of the grid. |
90
- | `fixedWeeks` | `boolean` | true | DateTimeRangePicker | Six rows whatever the month needs, so a press of "next" moves no target. |
91
- | `locale` | `string` | SlottedProvider | DateTimeRangePicker | BCP 47. Decides the field order, the digits, the month names, the day-period names and the duration’s units. Unset, the language in force decides. |
92
- | `timeZone` | `string` | — | DateTimeRangePicker | The zone "now" is read in. |
93
- | `hourCycle` | `12 \| 24` | — | DateTimeRangePicker | Twelve- or twenty-four-hour times. Unset, the locale decides. |
94
- | `granularity` | `'hour' \| 'minute' \| 'second'` | minute | DateTimeRangePicker | How much of a time the fields and the rows write. |
95
- | `calendar` | `'gregory'` | gregory | DateTimeRangePicker | The calendar system. One today. |
96
- | `firstDayOfWeek` | `number` | — | DateTimeRangePicker | Which day the grid’s week starts on. Unset, the locale decides. |
97
- | `yearPivot` | `number` | — | DateTimeRangePicker | The pivot two typed year digits are resolved through. |
98
- | `referenceDateTime` | `PlainDateTime` | — | DateTimeRangePicker | What "now" is, for a story or a test; the clock otherwise. Anchors now, the day the panel opens on, and the relative expression. |
99
- | `size` | `'sm' \| 'md' \| 'lg'` | md | DateTimeRangePicker | The control scale of the frame. |
100
- | `variant` | `'outline' \| 'subtle' \| 'plain'` | outline | DateTimeRangePicker | How much frame the control shows at rest. |
101
- | `placement` | `'bottom-start' \| 'bottom' \| 'bottom-end' \| 'top-start' \| 'top' \| 'top-end'` | bottom-start | DateTimeRangePicker | Where the surface opens, before the positioner has read the room. |
102
- | `closeOnSelect` | `'auto' \| 'always' \| 'never'` | auto | DateTimeRangePicker | auto closes when a press completes the work; always closes on any press that changes the value; never closes on none. |
103
- | `disabled` | `boolean` | — | DateTimeRangePicker | Nothing answers; the value stays readable. |
104
- | `readOnly` | `boolean` | — | DateTimeRangePicker | Legible and copyable; the trigger and the clear are out of the tab sequence. |
105
- | `invalid` | `boolean` | — | DateTimeRangePicker | The consumer’s own word. Set, it wins; unset, the family’s own rules and the field around it decide. |
106
- | `required` | `boolean` | — | DateTimeRangePicker | Reaches both fields as aria-required. |
107
- | `clearable` | `boolean` | false | DateTimeRangePicker | Draws one clear on the frame, which empties both ends. |
108
- | `relative` | `boolean` | — | DateTimeRangePicker | Whether the field in the band takes the relative expression — +2d, 1h30, = — the way a datetime-field does. |
109
- | `messages` | `Partial<DatetimeRangePickerMessages>` | — | DateTimeRangePicker | Words laid over the language in force, key by key: the two ends (start, end), the trigger’s names (choose; change with {start}, {end} and {length}; changeReversed), the hint (chooseDay with {end}; chooseTime with {end} and {day}; order, length, unavailable, bounds), the limit (limit.between, limit.atLeast, limit.atMost), now, done, clear, and a panel that is empty or cut short (empty, truncated). |
110
- | `startName` | `string` | — | DateTimeRangePicker | The name of the hidden input carrying the start. |
111
- | `endName` | `string` | — | DateTimeRangePicker | The name of the hidden input carrying the end. |
112
- | `presets` | `ReactNode` | — | DateTimeRangePicker | The consumer’s shortcuts, as DateTimeRangePickerPreset elements. |
113
- | `footer` | `ReactNode` | — | DateTimeRangePicker | The consumer’s own actions, under the lists. |
114
- | `renderOption` | `(state: DateTimeRangePickerOptionState) => ReactNode` | — | DateTimeRangePicker | What one row draws. The state carries the end, the day the list serves, the time, its label, its duration, and whether it is selected, current or unavailable. |
115
- | `value` | `DateTimeRange \| (() => DateTimeRange)` | — | DateTimeRangePickerPreset | The range the press writes, or a function resolving it at the press. |
116
- | `DateTimeRangePickerDefaultsProvider` | `component` | — | application | Sets timeZone, calendar, firstDayOfWeek, months, hourCycle, granularity, step, maxOptions, unavailableOptions, closeOnSelect, placement, size, variant and lengthLabel once for everything under it. The locale and the words come from SlottedProvider. |
117
- | `DateTimeRangePickerPreset` | `component` | — | presets | One shortcut inside presets. Takes every button prop, composes onClick, and takes render to substitute its element. |
118
- | `render` | `(props: DateTimeRangePickerRootProps) => ReactNode` | — | DateTimeRangePicker | Substitutes the element the root renders. The props carry the ref, which the positioner measures its anchor through. |
119
- | `ref` | `Ref<DateTimeRangePickerHandle>` | — | DateTimeRangePicker | focus() puts the reader on the trigger; open() and close() move the surface without a controlled prop. |
120
- | `onKeyDown` | `KeyboardEventHandler` | — | DateTimeRangePicker | Runs before the trigger, the tabs and the list read a key, and calling preventDefault stops them. |
35
+ | `value` | `DateTimeRange \| null` | — | DateTimeRangePicker | The run held, either end of which may be null. Present means the consumer owns it. |
36
+ | `defaultValue` | `DateTimeRange \| null` | null | DateTimeRangePicker | What it starts from, and returns to on a form reset. Read once. |
37
+ | `position` | `'start' \| 'end'` | — | DateTimeRangePicker | The end being edited. Present means the consumer owns it. |
38
+ | `defaultPosition` | `'start' \| 'end'` | start | DateTimeRangePicker | The end it starts on. |
39
+ | `minLength` | `number` | — | DateTimeRangePicker | The shortest run, in seconds. |
40
+ | `maxLength` | `number` | — | DateTimeRangePicker | The longest run, in seconds. |
41
+ | `contiguous` | `boolean` | true | DateTimeRangePicker | Whether a run may cross an unavailable day. |
42
+ | `min` | `PlainDateTime` | — | DateTimeRangePicker | The earliest accepted moment. |
43
+ | `max` | `PlainDateTime` | — | DateTimeRangePicker | The latest accepted moment. |
44
+ | `minTime` | `PlainTime` | — | DateTimeRangePicker | The earliest time of every day inside the range. |
45
+ | `maxTime` | `PlainTime` | — | DateTimeRangePicker | The latest time of every day inside the range. |
46
+ | `isDateUnavailable` | `(date: PlainDate) => boolean` | — | DateTimeRangePicker | Refuses particular dates. |
47
+ | `isTimeUnavailable` | `(time: PlainTime, date: PlainDate) => boolean` | — | DateTimeRangePicker | Refuses particular times of a day. |
48
+ | `lengthLabel` | `(seconds: number, locale: string \| undefined) => string` | the locale’s | DateTimeRangePicker | Writes a length in words. |
49
+ | `step` | `number` | 900 | DateTimeRangePicker | Seconds between two offered times, counted from the first of the day. |
50
+ | `options` | `readonly PlainTime[]` | — | DateTimeRangePicker | The times there are, stated rather than stepped, for both ends. |
51
+ | `presets` | `readonly PickerPreset<DateTimeRange>[]` | — | DateTimeRangePicker | The consumer’s own shortcuts. |
52
+ | `durations` | `readonly number[]` | 1 to 14 days | DateTimeRangePicker | Lengths the run takes from its start, in seconds. An empty list draws none. |
53
+ | `confirm` | `boolean` | true | DateTimeRangePicker | Whether the panel keeps a draft until Apply. |
54
+ | `months` | `number` | 2 | DateTimeRangePicker | How many months the panel shows. One below 760 pixels. |
55
+ | `weekNumbers` | `boolean` | false | DateTimeRangePicker | Draws the ISO week number, as a press that chooses the week. |
56
+ | `fixedWeeks` | `boolean` | false | DateTimeRangePicker | Six rows whatever the months need. |
57
+ | `granularity` | `'hour' \| 'minute' \| 'second'` | minute | DateTimeRangePicker | The finest unit written. |
58
+ | `hourCycle` | `12 \| 24` | the locale’s | DateTimeRangePicker | The clock the moments are written on. |
59
+ | `referenceDateTime` | `PlainDateTime` | now | DateTimeRangePicker | The moment it is, which the distances are counted from. |
60
+ | `relative` | `boolean` | true | DateTimeRangePicker | Whether + and - open the duration expression in the fields. |
61
+ | `firstDayOfWeek` | `number` | the locale’s | DateTimeRangePicker | 0 is Sunday. |
62
+ | `yearPivot` | `number` | — | DateTimeRangePicker | How a two-digit typed year resolves. |
63
+ | `calendar` | `'gregory'` | gregory | DateTimeRangePicker | The calendar system. |
64
+ | `startName` | `string` | — | DateTimeRangePicker | The name a form posts the start under. |
65
+ | `endName` | `string` | — | DateTimeRangePicker | The name a form posts the end under. |
66
+ | `invalid` | `boolean` | — | DateTimeRangePicker | Stated by the consumer; a run that fails a rule is invalid without it. |
67
+ | `open` | `boolean` | — | DateTimeRangePicker | Whether the panel is showing. Present means the consumer owns it. |
68
+ | `defaultOpen` | `boolean` | false | DateTimeRangePicker | Whether it starts open when nobody else says. Read once. |
69
+ | `placement` | `'bottom-start' \| 'bottom' \| 'bottom-end' \| 'top-start' \| 'top' \| 'top-end'` | bottom-start | DateTimeRangePicker | Where the panel opens, before the positioner has read the room. |
70
+ | `size` | `'sm' \| 'md' \| 'lg'` | md | DateTimeRangePicker | The height of the control. The field around it answers when the picker does not. |
71
+ | `variant` | `'outline' \| 'subtle' \| 'plain'` | outline | DateTimeRangePicker | How the control draws its frame. |
72
+ | `locale` | `string` | the language in force | DateTimeRangePicker | BCP 47. Writes the field, the panel and the trigger’s name. |
73
+ | `timeZone` | `string` | the runtime’s | DateTimeRangePicker | Which zone answers "what is now". |
74
+ | `disabled` | `boolean` | — | DateTimeRangePicker | Answers no key and no press. |
75
+ | `readOnly` | `boolean` | — | DateTimeRangePicker | Readable and not changeable. |
76
+ | `required` | `boolean` | — | DateTimeRangePicker | The form needs a value. |
77
+ | `clearable` | `boolean` | false | DateTimeRangePicker | Draws a clear on the control. |
78
+ | `messages` | `Partial<DatetimeRangePickerMessages>` | — | DateTimeRangePicker | Words laid over the language in force: the trigger’s names, the two ends, the limits, and what is said of a refused run. |
79
+ | `DateTimeRangePickerDefaultsProvider` | `component` | — | application | Sets calendar, confirm, firstDayOfWeek, granularity, hourCycle, lengthLabel, months, placement, size, step, timeZone and variant once. |
80
+ | `footer` | `ReactNode` | the limits, the zone or the step | DateTimeRangePicker | What the footer says when nothing is wrong. |
81
+ | `renderSlot` | `(state: DateTimeRangePickerSlotState) => ReactNode` | the time | DateTimeRangePicker | What one whole time of options draws. |
82
+ | `render` | `(props: DateTimeRangePickerRootProps) => ReactNode` | — | DateTimeRangePicker | Substitutes the element the root renders. |
83
+ | `ref` | `Ref<DateTimeRangePickerHandle>` | — | DateTimeRangePicker | focus(), open() and close(). |
121
84
 
122
85
  ## Events
123
86
 
124
87
  | Name | Payload | When |
125
88
  | --- | --- | --- |
126
- | `onValueChange` | `(value: DateTimeRange \| null, request: ChangeRequest<DateTimeRange \| null>)` | Before the value moves, and cancellable. keyboard, blur or clear when an end was typed in the band, select when a press in the grid or the list, now, done or a preset completed the work or changed a whole one, clear for the clear button. A press that leaves a half missing emits nothing. |
127
- | `onOpenChange` | `(open: boolean, request: ChangeRequest<boolean>)` | Before the surface opens or closes, and cancellable. pointer for the trigger and for done, keyboard for a key on the trigger, escape for the key, outsidePress for a press elsewhere, select for a press that completed the work. |
128
- | `onPositionChange` | `(position: 'start' \| 'end', request: ChangeRequest<'start' \| 'end'>)` | Before the current end moves. pointer for a press on a tab, keyboard for the arrows on one, select when a press in the grid, the list or a preset moved it, clear for the clear button, programmatic when the panel opened on the first end with a half missing. |
129
- | `onHighlightedChange` | `(value: { start; end }, request: ChangeRequest<{ start; end }>)` | Before a highlight moves in either list. keyboard for the arrows and type-ahead, pointer for a press, programmatic when a list opened or changed under it. |
89
+ | `onValueChange` | `(value: DateTimeRange \| null, request: ChangeRequest<DateTimeRange \| null>)` | Before the value moves, and cancellable: from Apply, and from the clear of the frame. |
90
+ | `onOpenChange` | `(open: boolean, request: ChangeRequest<boolean>)` | Before the panel opens or closes, with the reason. |
91
+ | `onPositionChange` | `(position: DateTimeRangePickerPosition, request: ChangeRequest<DateTimeRangePickerPosition>)` | Before the end being edited moves. |
130
92
 
131
93
  ## Axes and defaults
132
94
 
@@ -135,25 +97,212 @@ Excerpt — not a complete module
135
97
  | `size` | `sm`, `md`, `lg` | `md` |
136
98
  | `variant` | `outline`, `subtle`, `plain` | `outline` |
137
99
  | `placement` | `bottom-start`, `bottom`, `bottom-end`, `top-start`, `top`, `top-end` | `bottom-start` |
138
- | `closeOnSelect` | `auto`, `always`, `never` | `auto` |
139
- | `unavailableOptions` | `disable`, `hide` | `disable` |
140
100
  | `hourCycle` | `12`, `24` | — |
141
101
  | `granularity` | `hour`, `minute`, `second` | `minute` |
142
102
  | `calendar` | `gregory` | `gregory` |
143
103
  | `position` | `start`, `end` | — |
104
+ | `confirm` | `on`, `off` | true |
144
105
 
145
106
  ## Rules
146
107
 
147
- - The trigger’s accessible name carries both ends in words and the duration — "Change range, 12 September 2026 at 14:00 – 16 September 2026 at 11:00, 3 days 21 hr". Focus returns to it when the surface closes; the summary’s ellipsis removes nothing a screen-reader user cannot hear.
148
- - The two ends are a tablist with automatic activation, and the panel is one end at a time: a grid and a listbox, the listbox named by the current tab, so "Pickup, 12 Sep, 14:00" is heard before the first option. The hint is the list’s description, so what to choose next — the day, then the time — is read with it.
149
- - The duration is a polite live region: a sighted reader sees it follow the pointer across the grid and beside every row of a same-day list; a screen-reader user hears it on every arrow.
150
- - The rule datetime-picker wrote, once per end: a press that leaves a half missing carries focus to it — the grid for a date, the list for a time, the tab moving when it is the other end’s — and the press that completes the work closes the panel. A half-drawn run never reaches a form. Done is the way out when nothing closed it.
151
- - Typing lives in the band: Enter on the trigger opens onto the first segment of the current end’s field, and the field keeps every key a datetime-field has. On a coarse pointer the field is not drawn and Enter opens onto the grid. Escape is staged: the field’s expression first, the calendar’s view second, the surface last.
108
+ - The trigger says aria-haspopup="dialog" and its name carries the value written, which is where focus returns when the panel closes.
109
+ - The panel is a dialog with its Tab wrapped, and each grid inside it is one stop.
110
+ - Escape discards the draft and returns focus to the trigger. Ctrl+Enter applies from anywhere in the panel.
111
+ - The footer’s hint is a status region, so the reason Apply is off is spoken as well as drawn.
112
+ - Alt+ArrowDown opens the panel and leaves focus in the field, so the segments keep every key they had.
113
+ - The length between the two halves is a status region, so a reader hears it on every arrow in the months and on every step.
114
+ - The press that leaves a half missing carries focus to its grid, so the four halves are one path and not four searches.
152
115
 
153
116
  ## Tokens
154
117
 
155
- `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-datetime-range-picker-action-active-background`, `--slotted-datetime-range-picker-action-color`, `--slotted-datetime-range-picker-action-hover-background`, `--slotted-datetime-range-picker-action-size`, `--slotted-datetime-range-picker-background`, `--slotted-datetime-range-picker-border-color`, `--slotted-datetime-range-picker-color`, `--slotted-datetime-range-picker-content-border-color`, `--slotted-datetime-range-picker-content-color`, `--slotted-datetime-range-picker-content-max-inline-size`, `--slotted-datetime-range-picker-content-padding`, `--slotted-datetime-range-picker-content-radius`, `--slotted-datetime-range-picker-content-shadow`, `--slotted-datetime-range-picker-current-color`, `--slotted-datetime-range-picker-current-size`, `--slotted-datetime-range-picker-disabled-background`, `--slotted-datetime-range-picker-disabled-border-color`, `--slotted-datetime-range-picker-disabled-color`, `--slotted-datetime-range-picker-done-active-background`, `--slotted-datetime-range-picker-done-background`, `--slotted-datetime-range-picker-done-color`, `--slotted-datetime-range-picker-done-hover-background`, `--slotted-datetime-range-picker-hint-color`, `--slotted-datetime-range-picker-hover-border-color`, `--slotted-datetime-range-picker-invalid-border-color`, `--slotted-datetime-range-picker-invalid-color`, `--slotted-datetime-range-picker-invalid-edge-width`, `--slotted-datetime-range-picker-invalid-focus-ring-color`, `--slotted-datetime-range-picker-label-color`, `--slotted-datetime-range-picker-length-color`, `--slotted-datetime-range-picker-limit-color`, `--slotted-datetime-range-picker-list-block-size`, `--slotted-datetime-range-picker-list-min-inline-size`, `--slotted-datetime-range-picker-now-color`, `--slotted-datetime-range-picker-option-current-background`, `--slotted-datetime-range-picker-option-hover-background`, `--slotted-datetime-range-picker-option-radius`, `--slotted-datetime-range-picker-option-selected-background`, `--slotted-datetime-range-picker-option-selected-color`, `--slotted-datetime-range-picker-option-selected-hover-background`, `--slotted-datetime-range-picker-placeholder-color`, `--slotted-datetime-range-picker-plain-hover-background`, `--slotted-datetime-range-picker-preset-active-background`, `--slotted-datetime-range-picker-preset-background`, `--slotted-datetime-range-picker-preset-hover-background`, `--slotted-datetime-range-picker-preset-radius`, `--slotted-datetime-range-picker-preset-selected-background`, `--slotted-datetime-range-picker-preset-selected-color`, `--slotted-datetime-range-picker-radius`, `--slotted-datetime-range-picker-readonly-background`, `--slotted-datetime-range-picker-shadow`, `--slotted-datetime-range-picker-sheet-inline-size`, `--slotted-datetime-range-picker-subtle-background`, `--slotted-datetime-range-picker-subtle-border-color`, `--slotted-datetime-range-picker-subtle-hover-background`, `--slotted-datetime-range-picker-surface`, `--slotted-datetime-range-picker-tab-block-size`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-drawer-resizer-line-color`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-letter-spacing-wide`, `--slotted-line-height-sm`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-radius-pill`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
118
+ `--slotted-border-subtle`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-datetime-range-picker-action-active-background`, `--slotted-datetime-range-picker-action-color`, `--slotted-datetime-range-picker-action-hover-background`, `--slotted-datetime-range-picker-action-size`, `--slotted-datetime-range-picker-background`, `--slotted-datetime-range-picker-border-color`, `--slotted-datetime-range-picker-color`, `--slotted-datetime-range-picker-disabled-background`, `--slotted-datetime-range-picker-disabled-border-color`, `--slotted-datetime-range-picker-disabled-color`, `--slotted-datetime-range-picker-hover-border-color`, `--slotted-datetime-range-picker-invalid-border-color`, `--slotted-datetime-range-picker-invalid-edge-width`, `--slotted-datetime-range-picker-invalid-focus-ring-color`, `--slotted-datetime-range-picker-placeholder-color`, `--slotted-datetime-range-picker-plain-hover-background`, `--slotted-datetime-range-picker-radius`, `--slotted-datetime-range-picker-readonly-background`, `--slotted-datetime-range-picker-shadow`, `--slotted-datetime-range-picker-subtle-background`, `--slotted-datetime-range-picker-subtle-border-color`, `--slotted-datetime-range-picker-subtle-hover-background`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-none`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
156
119
 
157
120
  ## Examples
158
121
 
159
- See [datetime-range-picker.examples.md](./datetime-range-picker.examples.md).
122
+ ### Two months and two clocks
123
+
124
+ The run is drawn over its months, both ends are typed or pressed, and each clock answers the day of its own end.
125
+
126
+ Excerpt — not a complete module
127
+
128
+ ```tsx
129
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} defaultOpen />;
130
+ ```
131
+
132
+ ### The length
133
+
134
+ One day of the end either way, between the two ends. lengthLabel writes it in the product’s own words.
135
+
136
+ Excerpt — not a complete module
137
+
138
+ ```tsx
139
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} />;
140
+ ```
141
+
142
+ ### Durations
143
+
144
+ Lengths the run takes from its start. One a rule refuses is off, and an empty list draws none.
145
+
146
+ Excerpt — not a complete module
147
+
148
+ ```tsx
149
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} durations={[43200, 86400, 604800]} />;
150
+ ```
151
+
152
+ ### The shortest and the longest run
153
+
154
+ In seconds, the unit step is written in. A run that is over says by how much, marks its days, and turns Apply off.
155
+
156
+ Excerpt — not a complete module
157
+
158
+ ```tsx
159
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} maxLength={604800} minLength={86400} />;
160
+ ```
161
+
162
+ ### The hours of every day
163
+
164
+ min and max bound the whole run, and minTime and maxTime bound every day inside it. Each clock runs on the day of its own end.
165
+
166
+ Excerpt — not a complete module
167
+
168
+ ```tsx
169
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} maxTime={EIGHT_PM} minTime={EIGHT} />;
170
+ ```
171
+
172
+ ### Days the product refuses
173
+
174
+ A run may not cross an unavailable day while contiguous holds, and the grid refuses the days beyond it.
175
+
176
+ Excerpt — not a complete module
177
+
178
+ ```tsx
179
+ <DateTimeRangePicker {...BASE} isDateUnavailable={isTaken} />;
180
+ ```
181
+
182
+ ### Whole times
183
+
184
+ options states the times there are, for both ends, under the part of the day each one is in.
185
+
186
+ Excerpt — not a complete module
187
+
188
+ ```tsx
189
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} options={DESK} />;
190
+ ```
191
+
192
+ ### Months
193
+
194
+ Two by default, over two clocks of the same width. One in one column, and one where a run stays inside a month.
195
+
196
+ Excerpt — not a complete module
197
+
198
+ ```tsx
199
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} months={1} />;
200
+ ```
201
+
202
+ ### Shortcuts
203
+
204
+ A label and a run, or a function that resolves one. The panel writes the two days, and a run the rules refuse is off.
205
+
206
+ Excerpt — not a complete module
207
+
208
+ ```tsx
209
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} presets={PRESETS} />;
210
+ ```
211
+
212
+ ### With and without a confirmation
213
+
214
+ The panel keeps a draft until Apply. confirm={false} writes a whole run on every change, and closes on the press that completes it.
215
+
216
+ Excerpt — not a complete module
217
+
218
+ ```tsx
219
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} />;
220
+ ```
221
+
222
+ ### An open end
223
+
224
+ A start with no end is a value a filter may hold, and the dash says so.
225
+
226
+ Excerpt — not a complete module
227
+
228
+ ```tsx
229
+ <DateTimeRangePicker {...BASE} defaultPosition="end" defaultValue={OPEN} />;
230
+ ```
231
+
232
+ ### Size
233
+
234
+ The three heights every control has. The panel keeps its own measures at each of them.
235
+
236
+ Excerpt — not a complete module
237
+
238
+ ```tsx
239
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} size="sm" />;
240
+ ```
241
+
242
+ ### Variant
243
+
244
+ The three frames every field has, so a picker stands beside a field of its own variant.
245
+
246
+ Excerpt — not a complete module
247
+
248
+ ```tsx
249
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} variant="outline" />;
250
+ ```
251
+
252
+ ### States
253
+
254
+ Each is the frame’s own, and the trigger answers it.
255
+
256
+ Excerpt — not a complete module
257
+
258
+ ```tsx
259
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} disabled />;
260
+ ```
261
+
262
+ ### In a form
263
+
264
+ startName and endName post the two moments, a reset returns to the first run, and a Field names the frame and not the panel.
265
+
266
+ Excerpt — not a complete module
267
+
268
+ ```tsx
269
+ <Field>
270
+ <FieldLabel>Rental</FieldLabel>
271
+ <DateTimeRangePicker endName="to" startName="from" />
272
+ </Field>;
273
+ ```
274
+
275
+ ### One column
276
+
277
+ Under 760 pixels the two ends are written as a day and a time, and each is a press that brings its grid. On a finger it is a sheet.
278
+
279
+ Excerpt — not a complete module
280
+
281
+ ```tsx
282
+ <DateTimeRangePicker {...BASE} defaultValue={RENTAL} presets={PRESETS} />;
283
+ ```
284
+
285
+ ### Composition and escape hatches
286
+
287
+ The consumer may own the value, the open state and the end being edited, and a provider states the shape once.
288
+
289
+ Excerpt — not a complete module
290
+
291
+ ```tsx
292
+ <DateTimeRangePicker footer="Keys at the desk" onValueChange={setRun} value={run} />;
293
+ ```
294
+
295
+ ### The keyboard
296
+
297
+ The fields, the months and the clocks keep their keys.
298
+
299
+ Excerpt — not a complete module
300
+
301
+ ```tsx
302
+ // Enter, Space, ArrowDown opens on the day of the current end
303
+ // Arrows, Home, End move in the months, and in a grid of a clock
304
+ // PageUp / PageDown turn the month, and with Shift the year
305
+ // Enter / Space chooses, and brings the half that is missing
306
+ // Ctrl + Enter applies
307
+ // Escape walks down a view, then discards and closes
308
+ ```
@@ -49,42 +49,42 @@
49
49
  "type": "'horizontal' | 'vertical'",
50
50
  "defaultValue": "horizontal",
51
51
  "appliesTo": "Divider",
52
- "description": "Direction the rule runs in"
52
+ "description": "Sets the direction the rule runs in."
53
53
  },
54
54
  {
55
55
  "name": "decorative",
56
56
  "type": "boolean",
57
57
  "defaultValue": "false",
58
58
  "appliesTo": "Divider",
59
- "description": "Removes the rule from the accessibility tree"
59
+ "description": "Removes the rule from the accessibility tree."
60
60
  },
61
61
  {
62
62
  "name": "inset",
63
63
  "type": "boolean",
64
64
  "defaultValue": "false",
65
65
  "appliesTo": "Divider",
66
- "description": "Stops the rule short of both ends of its container"
66
+ "description": "Stops the rule short of both ends of its container."
67
67
  },
68
68
  {
69
69
  "name": "label",
70
70
  "type": "string",
71
71
  "defaultValue": "—",
72
72
  "appliesTo": "Divider",
73
- "description": "Short string the rule is interrupted by, and its name"
73
+ "description": "Short text that interrupts the rule. It is also the rule’s accessible name."
74
74
  },
75
75
  {
76
76
  "name": "align",
77
77
  "type": "'start' | 'center' | 'end'",
78
78
  "defaultValue": "center",
79
79
  "appliesTo": "Divider",
80
- "description": "Where the label sits"
80
+ "description": "Sets the position of the label along the rule."
81
81
  },
82
82
  {
83
83
  "name": "render",
84
84
  "type": "(props) => ReactNode",
85
85
  "defaultValue": "—",
86
86
  "appliesTo": "Divider",
87
- "description": "Renders a different root element"
87
+ "description": "Renders a different root element from the props it receives."
88
88
  }
89
89
  ],
90
90
  "composition": [],
@@ -96,7 +96,7 @@
96
96
  "A labelled rule renders a div, because an hr takes no content. Its name comes from aria-label: the separator role makes its children presentational, so the visible label alone would leave the rule announced as empty.",
97
97
  "A decorative rule carries no name, because role=\"none\" prohibits one. Its label is read in document order, like any other text.",
98
98
  "A rule rendered into another element — the li a menu separator has to be — receives role=\"separator\", because only the hr carries that meaning by itself.",
99
- "A role or an aria-label the consumer passes is kept, so a rule that has to say something else keeps saying it."
99
+ "A role or an aria-label you pass is kept, so a rule that has to say something else keeps saying it."
100
100
  ]
101
101
  }
102
102
  },
@@ -150,6 +150,70 @@
150
150
  "language": "tsx",
151
151
  "source": "<ul role=\"menu\">\n <li role=\"menuitem\">Rename</li>\n <Divider inset render={(props) => <li {...props} />} />\n <li role=\"menuitem\">Delete</li>\n</ul>;\n",
152
152
  "verdict": "excerpt"
153
+ },
154
+ {
155
+ "id": "align",
156
+ "title": "align.tsx",
157
+ "note": null,
158
+ "language": "tsx",
159
+ "source": "import { Divider } from '@slotted/react/divider';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function DividerAlign() {\n return (\n <Stack gap={3}>\n <Divider align=\"start\" label=\"Today\" />\n <Text size=\"sm\">3 shipments left the Rotterdam warehouse.</Text>\n <Divider align=\"center\" label=\"Yesterday\" />\n <Text size=\"sm\">5 shipments left, 1 was returned.</Text>\n <Divider align=\"end\" label=\"Earlier this week\" />\n <Text size=\"sm\">11 shipments left, all delivered.</Text>\n </Stack>\n );\n}\n",
160
+ "verdict": "example"
161
+ },
162
+ {
163
+ "id": "basic",
164
+ "title": "basic.tsx",
165
+ "note": null,
166
+ "language": "tsx",
167
+ "source": "import { Divider } from '@slotted/react/divider';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function DividerBasic() {\n return (\n <Stack gap={4}>\n <Stack gap={1}>\n <Heading level={2} size=\"sm\">\n Billing\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n Invoices are issued on the first business day of each month.\n </Text>\n </Stack>\n <Divider />\n <Stack gap={1}>\n <Heading level={2} size=\"sm\">\n Members\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n Eleven people in the Northwind operations team can approve orders.\n </Text>\n </Stack>\n </Stack>\n );\n}\n",
168
+ "verdict": "example"
169
+ },
170
+ {
171
+ "id": "decorative",
172
+ "title": "decorative.tsx",
173
+ "note": null,
174
+ "language": "tsx",
175
+ "source": "import { Card, CardBody, CardHeader } from '@slotted/react/card';\nimport { Divider } from '@slotted/react/divider';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function DividerDecorative() {\n return (\n <Stack gap={4}>\n {[false, true].map((decorative) => (\n <Card key={String(decorative)}>\n <CardHeader>\n <Heading level={2} size=\"sm\">\n {decorative ? 'decorative' : 'Announced'}\n </Heading>\n </CardHeader>\n <CardBody>\n <Stack gap={3}>\n <Text>Order 20418 was packed.</Text>\n <Divider decorative={decorative} />\n <Text>Order 20418 was handed to the carrier.</Text>\n <Divider decorative={decorative} label=\"Delivery\" />\n <Text>Order 20418 is due on Thursday.</Text>\n </Stack>\n </CardBody>\n </Card>\n ))}\n </Stack>\n );\n}\n",
176
+ "verdict": "example"
177
+ },
178
+ {
179
+ "id": "inset",
180
+ "title": "inset.tsx",
181
+ "note": null,
182
+ "language": "tsx",
183
+ "source": "import { Button } from '@slotted/react/button';\nimport { Card, CardBody, CardHeader } from '@slotted/react/card';\nimport { Divider } from '@slotted/react/divider';\nimport { Stack } from '@slotted/react/stack';\nimport { Heading } from '@slotted/react/typography';\n\nconst CARRIERS = ['Northwind Freight', 'Harbor Line', 'Alpine Express'];\n\nexport default function DividerInset() {\n return (\n <Stack gap={4}>\n {[false, true].map((inset) => (\n <Card key={String(inset)}>\n <CardHeader>\n <Heading level={2} size=\"sm\">\n {inset ? 'inset' : 'Full length'}\n </Heading>\n </CardHeader>\n <CardBody>\n <Stack gap={2}>\n {CARRIERS.map((carrier, index) => [\n index > 0 && <Divider inset={inset} key={`rule-${carrier}`} />,\n <Button fullWidth justify=\"between\" key={carrier} tone=\"secondary\" variant=\"ghost\">\n {carrier}\n </Button>,\n ])}\n </Stack>\n </CardBody>\n </Card>\n ))}\n </Stack>\n );\n}\n",
184
+ "verdict": "example"
185
+ },
186
+ {
187
+ "id": "label",
188
+ "title": "label.tsx",
189
+ "note": null,
190
+ "language": "tsx",
191
+ "source": "import { Divider } from '@slotted/react/divider';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function DividerLabel() {\n return (\n <Stack gap={4}>\n <Text>Pay with the card on file, ending in 4242.</Text>\n <Divider label=\"Or\" />\n <Text>Send a bank transfer to Northwind Freight, reference INV-20418.</Text>\n </Stack>\n );\n}\n",
192
+ "verdict": "example"
193
+ },
194
+ {
195
+ "id": "orientation",
196
+ "title": "orientation.tsx",
197
+ "note": null,
198
+ "language": "tsx",
199
+ "source": "import { Divider } from '@slotted/react/divider';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function DividerOrientation() {\n return (\n <Stack gap={6}>\n <Stack gap={3}>\n <Text size=\"sm\" tone=\"muted\">\n horizontal\n </Text>\n <Text>42 open orders</Text>\n <Divider orientation=\"horizontal\" />\n <Text>17 shipped today</Text>\n </Stack>\n <Stack gap={3}>\n <Text size=\"sm\" tone=\"muted\">\n vertical\n </Text>\n <Inline gap={4}>\n <Text>42 open orders</Text>\n <Divider orientation=\"vertical\" />\n <Text>17 shipped today</Text>\n </Inline>\n </Stack>\n </Stack>\n );\n}\n",
200
+ "verdict": "example"
201
+ },
202
+ {
203
+ "id": "values",
204
+ "title": "values.tsx",
205
+ "note": null,
206
+ "language": "tsx",
207
+ "source": "import { Card, CardBody } from '@slotted/react/card';\nimport { Divider } from '@slotted/react/divider';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst FIGURES = [\n { label: 'Orders', value: '1,284' },\n { label: 'Revenue', value: '$48,200' },\n { label: 'Returns', value: '2.1%' },\n];\n\nexport default function DividerValues() {\n return (\n <Card>\n <CardBody>\n <Inline gap={6}>\n {FIGURES.flatMap((figure, index) => [\n index > 0 ? (\n <Divider decorative key={`rule-${figure.label}`} orientation=\"vertical\" />\n ) : null,\n <Stack gap={1} key={figure.label}>\n <Text size=\"sm\" tone=\"muted\">\n {figure.label}\n </Text>\n <Text numeric=\"tabular\" size=\"3xl\" weight=\"semibold\">\n {figure.value}\n </Text>\n </Stack>,\n ])}\n </Inline>\n </CardBody>\n </Card>\n );\n}\n",
208
+ "verdict": "example"
209
+ },
210
+ {
211
+ "id": "vertical-label",
212
+ "title": "vertical-label.tsx",
213
+ "note": null,
214
+ "language": "tsx",
215
+ "source": "import { Divider } from '@slotted/react/divider';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function DividerVerticalLabel() {\n return (\n <Inline gap={4}>\n <Stack gap={1}>\n <Text weight=\"semibold\">Pay by card</Text>\n <Text size=\"sm\" tone=\"muted\">\n Charged today\n </Text>\n <Text size=\"sm\" tone=\"muted\">\n Receipt by email\n </Text>\n </Stack>\n <Divider label=\"Or\" orientation=\"vertical\" />\n <Stack gap={1}>\n <Text weight=\"semibold\">Pay by transfer</Text>\n <Text size=\"sm\" tone=\"muted\">\n Due in 30 days\n </Text>\n <Text size=\"sm\" tone=\"muted\">\n Reference INV-20418\n </Text>\n </Stack>\n </Inline>\n );\n}\n",
216
+ "verdict": "example"
153
217
  }
154
218
  ]
155
219
  }