@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
@@ -83,10 +83,12 @@
83
83
  ],
84
84
  "parts": [
85
85
  "root",
86
+ "month",
86
87
  "header",
87
88
  "previous",
88
89
  "next",
89
90
  "heading",
91
+ "heading-rest",
90
92
  "grids",
91
93
  "grid",
92
94
  "grid-caption",
@@ -94,6 +96,7 @@
94
96
  "week-header",
95
97
  "week",
96
98
  "week-number",
99
+ "week-choice",
97
100
  "cell",
98
101
  "day",
99
102
  "mark",
@@ -120,11 +123,17 @@
120
123
  "required": true,
121
124
  "purpose": "The box everything stands in, and the query container the cell size is measured against. Carries data-ui=\"calendar\", data-view, data-months, data-week-numbers and the state attributes. className, style and every native attribute reach it."
122
125
  },
126
+ {
127
+ "part": "month",
128
+ "element": "div",
129
+ "required": true,
130
+ "purpose": "One month: its header over its grid. Two months stand side by side and each carries its own name."
131
+ },
123
132
  {
124
133
  "part": "header",
125
134
  "element": "div",
126
135
  "required": true,
127
- "purpose": "The row above the grid: the two page triggers with the heading between them. The heading is between rather than beside, because it is the thing being changed and a label at one end would make the pair read as two unrelated buttons."
136
+ "purpose": "The row above a grid: the heading between the page triggers, previous on the first month of the page and next on the last. The heading is between rather than beside, because it is the thing being changed and a label at one end would make the pair read as two unrelated buttons."
128
137
  },
129
138
  {
130
139
  "part": "previous",
@@ -144,6 +153,12 @@
144
153
  "required": true,
145
154
  "purpose": "The month and year, and the way up to the month and year views. It is aria-live=\"polite\" because paging with a key changes nothing that focus lands on, so without it nothing announces the new month. It is also what every grid points aria-labelledby at."
146
155
  },
156
+ {
157
+ "part": "heading-rest",
158
+ "element": "span",
159
+ "required": false,
160
+ "purpose": "What the locale writes around the name of the month: the year, drawn lighter than the name."
161
+ },
147
162
  {
148
163
  "part": "grids",
149
164
  "element": "div",
@@ -160,7 +175,7 @@
160
175
  "part": "grid-caption",
161
176
  "element": "caption",
162
177
  "required": true,
163
- "purpose": "The month’s own name. Out of the picture while one month is drawn, because the heading already shows it; visible once two or three are, because the heading then names the span and nothing else would say where October starts."
178
+ "purpose": "The month’s own name. Out of the picture, because the heading over the grid already shows it; it names the grid where header is false."
164
179
  },
165
180
  {
166
181
  "part": "week-headers",
@@ -186,6 +201,12 @@
186
201
  "required": false,
187
202
  "purpose": "The ISO 8601 week number, as a row header. Narrower than a day and separated by a rule, so it reads as an annotation rather than as an eighth day."
188
203
  },
204
+ {
205
+ "part": "week-choice",
206
+ "element": "button",
207
+ "required": false,
208
+ "purpose": "The week number as a press that chooses its seven days, under selectionMode range. It is out of the tab sequence: the keyboard chooses a week by its two ends."
209
+ },
189
210
  {
190
211
  "part": "cell",
191
212
  "element": "td",
@@ -345,6 +366,13 @@
345
366
  "appliesTo": "Calendar",
346
367
  "description": "The days that hold nothing to choose, as the days of a month of records that have none: plain text with no button role, tooltip or label, in the ink of any day. The arrow keys cross them, a run may hold them, and a date that is also unavailable is inert."
347
368
  },
369
+ {
370
+ "name": "isDateOver",
371
+ "type": "(date: PlainDate) => boolean",
372
+ "defaultValue": "—",
373
+ "appliesTo": "Calendar",
374
+ "description": "The days of a run that are past its limit: the band and its end are drawn in the danger tone there. It refuses nothing."
375
+ },
348
376
  {
349
377
  "name": "weekNumbers",
350
378
  "type": "boolean",
@@ -531,6 +559,11 @@
531
559
  "name": "onViewChange",
532
560
  "payload": "(view: CalendarView)",
533
561
  "when": "When the heading walks up a view or Escape walks down one."
562
+ },
563
+ {
564
+ "name": "onPageChange",
565
+ "payload": "(month: PlainYearMonth)",
566
+ "when": "When the first month on screen changes, for a month control beside the calendar."
534
567
  }
535
568
  ],
536
569
  "accessibility": [
@@ -539,7 +572,7 @@
539
572
  "The heading is a polite live region, because paging with a key changes nothing that focus lands on and nothing else would announce the new month.",
540
573
  "A column header shows the locale’s narrow weekday and carries the full name in abbr, which is the difference between a screen reader saying \"Mo\" and saying \"Monday\".",
541
574
  "A date the predicate refuses carries aria-disabled rather than being removed, so a reader can arrow onto it and be told why it is out; and it is struck through as well as dimmed, because color alone says nothing under forced colors.",
542
- "Today is a dot under the number and focus is a ring around it. They were the same ring once, and a reader arrowing onto today saw one box and could not tell which of the two facts it was."
575
+ "Today is a thin outline inside the day and focus is a ring outside it, so a reader arrowing onto today sees both facts."
543
576
  ]
544
577
  }
545
578
  },
@@ -548,18 +581,27 @@
548
581
  "--slotted-border-width-thin",
549
582
  "--slotted-calendar-active-background",
550
583
  "--slotted-calendar-background",
584
+ "--slotted-calendar-cell-block-size",
551
585
  "--slotted-calendar-cell-size",
552
586
  "--slotted-calendar-color",
553
587
  "--slotted-calendar-day-height",
554
588
  "--slotted-calendar-day-mark-size",
555
589
  "--slotted-calendar-day-radius",
556
590
  "--slotted-calendar-disabled-color",
591
+ "--slotted-calendar-heading-rest-color",
557
592
  "--slotted-calendar-hover-background",
558
593
  "--slotted-calendar-in-range-color",
559
594
  "--slotted-calendar-invalid-edge-width",
560
595
  "--slotted-calendar-invalid-focus-ring-color",
561
596
  "--slotted-calendar-line-color",
597
+ "--slotted-calendar-month-gap",
562
598
  "--slotted-calendar-outside-color",
599
+ "--slotted-calendar-over-background",
600
+ "--slotted-calendar-over-color",
601
+ "--slotted-calendar-over-selected-background",
602
+ "--slotted-calendar-over-selected-color",
603
+ "--slotted-calendar-period-background",
604
+ "--slotted-calendar-period-block-size",
563
605
  "--slotted-calendar-preview-background",
564
606
  "--slotted-calendar-preview-border-color",
565
607
  "--slotted-calendar-radius",
@@ -570,12 +612,13 @@
570
612
  "--slotted-calendar-selected-background",
571
613
  "--slotted-calendar-selected-color",
572
614
  "--slotted-calendar-today-background",
615
+ "--slotted-calendar-today-border-color",
573
616
  "--slotted-calendar-today-color",
574
617
  "--slotted-calendar-trigger-color",
575
618
  "--slotted-calendar-unavailable-color",
576
- "--slotted-calendar-week-number-border-color",
577
619
  "--slotted-calendar-week-number-color",
578
620
  "--slotted-calendar-weekday-color",
621
+ "--slotted-calendar-weekend-color",
579
622
  "--slotted-control-font-family",
580
623
  "--slotted-control-font-size-md",
581
624
  "--slotted-control-gap-md",
@@ -599,18 +642,21 @@
599
642
  "--slotted-focus-ring-color-invalid",
600
643
  "--slotted-focus-ring-offset",
601
644
  "--slotted-focus-ring-width",
645
+ "--slotted-font-size-md",
602
646
  "--slotted-font-size-xs",
603
647
  "--slotted-font-weight-medium",
604
648
  "--slotted-font-weight-regular",
605
649
  "--slotted-font-weight-semibold",
606
650
  "--slotted-highlight-tint-opacity",
607
651
  "--slotted-radius-full",
608
- "--slotted-radius-sm",
652
+ "--slotted-radius-md",
609
653
  "--slotted-space-1",
610
654
  "--slotted-space-2",
611
655
  "--slotted-space-3",
612
656
  "--slotted-space-4",
613
657
  "--slotted-space-6",
658
+ "--slotted-surface-sunken",
659
+ "--slotted-target-comfortable",
614
660
  "--slotted-target-min",
615
661
  "--slotted-text",
616
662
  "--slotted-text-muted",
@@ -620,7 +666,9 @@
620
666
  "--slotted-tone-accent-subtle-active",
621
667
  "--slotted-tone-accent-subtle-hover",
622
668
  "--slotted-tone-accent-text",
669
+ "--slotted-tone-danger-on-solid",
623
670
  "--slotted-tone-danger-solid",
671
+ "--slotted-tone-danger-text",
624
672
  "--slotted-tone-info-solid",
625
673
  "--slotted-tone-secondary-subtle-active",
626
674
  "--slotted-tone-secondary-subtle-hover",
@@ -22,10 +22,12 @@ Excerpt — not a complete module
22
22
  | Part | Element | Required |
23
23
  | --- | --- | --- |
24
24
  | `root` | div, or the element render returns | yes |
25
+ | `month` | div | yes |
25
26
  | `header` | div | yes |
26
27
  | `previous` | button | yes |
27
28
  | `next` | button | yes |
28
29
  | `heading` | button | yes |
30
+ | `heading-rest` | span | no |
29
31
  | `grids` | div | yes |
30
32
  | `grid` | table | yes |
31
33
  | `grid-caption` | caption | yes |
@@ -33,6 +35,7 @@ Excerpt — not a complete module
33
35
  | `week-header` | th | yes |
34
36
  | `week` | tr | yes |
35
37
  | `week-number` | th | no |
38
+ | `week-choice` | button | no |
36
39
  | `cell` | td | yes |
37
40
  | `day` | span | yes |
38
41
  | `mark` | span | no |
@@ -62,6 +65,7 @@ Excerpt — not a complete module
62
65
  | `max` | `PlainDate` | — | Calendar | The latest date the reader may reach. |
63
66
  | `isDateUnavailable` | `(date: PlainDate) => boolean` | — | Calendar | Refuses particular dates. A refused date stays focusable and cannot be chosen. |
64
67
  | `isDateInert` | `(date: PlainDate) => boolean` | — | Calendar | The days that hold nothing to choose, as the days of a month of records that have none: plain text with no button role, tooltip or label, in the ink of any day. The arrow keys cross them, a run may hold them, and a date that is also unavailable is inert. |
68
+ | `isDateOver` | `(date: PlainDate) => boolean` | — | Calendar | The days of a run that are past its limit: the band and its end are drawn in the danger tone there. It refuses nothing. |
65
69
  | `weekNumbers` | `boolean` | false | Calendar | Draws the ISO 8601 week number as a row header. |
66
70
  | `fixedWeeks` | `boolean` | false | Calendar | Always six rows, so paging does not change the surface’s height. Worth setting inside a popover. |
67
71
  | `outsideDays` | `'shown' \| 'selectable' \| 'hidden'` | shown | Calendar | What a day of the month either side does: drawn and not pressable, drawn and pressable, or not drawn. |
@@ -94,6 +98,7 @@ Excerpt — not a complete module
94
98
  | `onValueChange` | `(value: CalendarValue, request: ChangeRequest<CalendarValue>)` | Before the value moves, and cancellable. The request carries the new value, the value it replaces, the reason — pointer or keyboard — and the originating event. |
95
99
  | `onFocusedDateChange` | `(date: PlainDate, request: ChangeRequest<PlainDate>)` | Before the date the reader is on moves, and cancellable. It fires for every arrow and every page, which is what lets a consumer load a month before it is shown. |
96
100
  | `onViewChange` | `(view: CalendarView)` | When the heading walks up a view or Escape walks down one. |
101
+ | `onPageChange` | `(month: PlainYearMonth)` | When the first month on screen changes, for a month control beside the calendar. |
97
102
 
98
103
  ## Axes and defaults
99
104
 
@@ -116,11 +121,11 @@ Excerpt — not a complete module
116
121
  - The heading is a polite live region, because paging with a key changes nothing that focus lands on and nothing else would announce the new month.
117
122
  - A column header shows the locale’s narrow weekday and carries the full name in abbr, which is the difference between a screen reader saying "Mo" and saying "Monday".
118
123
  - A date the predicate refuses carries aria-disabled rather than being removed, so a reader can arrow onto it and be told why it is out; and it is struck through as well as dimmed, because color alone says nothing under forced colors.
119
- - Today is a dot under the number and focus is a ring around it. They were the same ring once, and a reader arrowing onto today saw one box and could not tell which of the two facts it was.
124
+ - Today is a thin outline inside the day and focus is a ring outside it, so a reader arrowing onto today sees both facts.
120
125
 
121
126
  ## Tokens
122
127
 
123
- `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-calendar-active-background`, `--slotted-calendar-background`, `--slotted-calendar-cell-size`, `--slotted-calendar-color`, `--slotted-calendar-day-height`, `--slotted-calendar-day-mark-size`, `--slotted-calendar-day-radius`, `--slotted-calendar-disabled-color`, `--slotted-calendar-hover-background`, `--slotted-calendar-in-range-color`, `--slotted-calendar-invalid-edge-width`, `--slotted-calendar-invalid-focus-ring-color`, `--slotted-calendar-line-color`, `--slotted-calendar-outside-color`, `--slotted-calendar-preview-background`, `--slotted-calendar-preview-border-color`, `--slotted-calendar-radius`, `--slotted-calendar-range-active-background`, `--slotted-calendar-range-background`, `--slotted-calendar-range-border-color`, `--slotted-calendar-range-hover-background`, `--slotted-calendar-selected-background`, `--slotted-calendar-selected-color`, `--slotted-calendar-today-background`, `--slotted-calendar-today-color`, `--slotted-calendar-trigger-color`, `--slotted-calendar-unavailable-color`, `--slotted-calendar-week-number-border-color`, `--slotted-calendar-week-number-color`, `--slotted-calendar-weekday-color`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-invalid-edge-width`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-disabled-background`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-highlight-tint-opacity`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-solid`, `--slotted-tone-info-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-success-solid`, `--slotted-tone-warning-solid`
128
+ `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-calendar-active-background`, `--slotted-calendar-background`, `--slotted-calendar-cell-block-size`, `--slotted-calendar-cell-size`, `--slotted-calendar-color`, `--slotted-calendar-day-height`, `--slotted-calendar-day-mark-size`, `--slotted-calendar-day-radius`, `--slotted-calendar-disabled-color`, `--slotted-calendar-heading-rest-color`, `--slotted-calendar-hover-background`, `--slotted-calendar-in-range-color`, `--slotted-calendar-invalid-edge-width`, `--slotted-calendar-invalid-focus-ring-color`, `--slotted-calendar-line-color`, `--slotted-calendar-month-gap`, `--slotted-calendar-outside-color`, `--slotted-calendar-over-background`, `--slotted-calendar-over-color`, `--slotted-calendar-over-selected-background`, `--slotted-calendar-over-selected-color`, `--slotted-calendar-period-background`, `--slotted-calendar-period-block-size`, `--slotted-calendar-preview-background`, `--slotted-calendar-preview-border-color`, `--slotted-calendar-radius`, `--slotted-calendar-range-active-background`, `--slotted-calendar-range-background`, `--slotted-calendar-range-border-color`, `--slotted-calendar-range-hover-background`, `--slotted-calendar-selected-background`, `--slotted-calendar-selected-color`, `--slotted-calendar-today-background`, `--slotted-calendar-today-border-color`, `--slotted-calendar-today-color`, `--slotted-calendar-trigger-color`, `--slotted-calendar-unavailable-color`, `--slotted-calendar-week-number-color`, `--slotted-calendar-weekday-color`, `--slotted-calendar-weekend-color`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-invalid-edge-width`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-disabled-background`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-md`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-highlight-tint-opacity`, `--slotted-radius-full`, `--slotted-radius-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-6`, `--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-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-text`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-text`, `--slotted-tone-info-solid`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-success-solid`, `--slotted-tone-warning-solid`
124
129
 
125
130
  ## Examples
126
131
 
@@ -66,70 +66,70 @@
66
66
  "type": "boolean",
67
67
  "defaultValue": "false",
68
68
  "appliesTo": "CardBody",
69
- "description": "Runs the children of the body from one edge of the card to the other: the body gives up its padding and is clipped to the corners of the card it touches. For a list whose rules and row grounds reach the edge"
69
+ "description": "Runs the children of the body from one edge of the card to the other. The body gives up its padding and is clipped to the corners of the card it touches. Use it for a list whose rules and row grounds reach the edge."
70
70
  },
71
71
  {
72
72
  "name": "orientation",
73
73
  "type": "'vertical' | 'horizontal'",
74
74
  "defaultValue": "vertical",
75
75
  "appliesTo": "Card",
76
- "description": "Puts the media beside the regions, and returns it to the top in a narrow container"
76
+ "description": "Puts the media beside the regions, and returns it to the top in a narrow container."
77
77
  },
78
78
  {
79
79
  "name": "fill",
80
80
  "type": "'outline' | 'elevated' | 'subtle'",
81
81
  "defaultValue": "outline",
82
82
  "appliesTo": "Card",
83
- "description": "How the surface is bounded: a hairline edge, the edge plus a lift, or a filled ground"
83
+ "description": "Sets how the surface is bounded: a hairline edge, the edge plus a lift, or a filled ground."
84
84
  },
85
85
  {
86
86
  "name": "size",
87
87
  "type": "'sm' | 'md' | 'lg'",
88
88
  "defaultValue": "md",
89
89
  "appliesTo": "Card",
90
- "description": "The card's own inset. Density is the application's choice; this is this card's"
90
+ "description": "Sets the inset of the card itself. Density is the application's choice; this inset is the card's."
91
91
  },
92
92
  {
93
93
  "name": "selected",
94
94
  "type": "boolean",
95
95
  "defaultValue": "false",
96
96
  "appliesTo": "Card",
97
- "description": "Mirrors a selection the page owns; the control inside is what announces it"
97
+ "description": "Mirrors a selection that your page owns. The control inside the card is what announces it."
98
98
  },
99
99
  {
100
100
  "name": "disabled",
101
101
  "type": "boolean",
102
102
  "defaultValue": "false",
103
103
  "appliesTo": "Card",
104
- "description": "Mirrors a control the page has disabled; the card disables nothing itself"
104
+ "description": "Mirrors a control that your page has disabled. The card disables nothing itself."
105
105
  },
106
106
  {
107
107
  "name": "render",
108
108
  "type": "(props) => ReactNode",
109
109
  "defaultValue": "—",
110
110
  "appliesTo": "Card, CardMedia, CardHeader, CardActions, CardSelection, CardBody, CardFooter, CardLink",
111
- "description": "Renders the wiring into another element"
111
+ "description": "Renders the part into another element from the props it receives."
112
112
  },
113
113
  {
114
114
  "name": "ref",
115
115
  "type": "Ref<HTMLElement>",
116
116
  "defaultValue": "—",
117
117
  "appliesTo": "every part",
118
- "description": "Reaches the native element; each part extends its own element’s props"
118
+ "description": "Reaches the native element. Each part extends the props of its own element."
119
119
  },
120
120
  {
121
121
  "name": "href",
122
122
  "type": "string",
123
123
  "defaultValue": "—",
124
124
  "appliesTo": "CardLink",
125
- "description": "Destination of the card, on the anchor whose hit area covers the surface"
125
+ "description": "Sets the destination of the card, on the anchor whose hit area covers the surface."
126
126
  },
127
127
  {
128
128
  "name": "CardDefaultsProvider",
129
129
  "type": "{ fill, orientation, size }",
130
130
  "defaultValue": "—",
131
131
  "appliesTo": "a subtree",
132
- "description": "Sets the defaults once for every card under it; an explicit prop still wins"
132
+ "description": "Sets the defaults once for every card under it. An explicit prop still wins."
133
133
  }
134
134
  ],
135
135
  "composition": [],
@@ -266,6 +266,94 @@
266
266
  "language": "tsx",
267
267
  "source": "<CardDefaultsProvider fill=\"elevated\" size=\"lg\">\n <Dashboard />\n</CardDefaultsProvider>;\n",
268
268
  "verdict": "excerpt"
269
+ },
270
+ {
271
+ "id": "basic",
272
+ "title": "basic.tsx",
273
+ "note": null,
274
+ "language": "tsx",
275
+ "source": "import { Button } from '@slotted/react/button';\nimport { Card, CardBody, CardFooter, CardHeader } from '@slotted/react/card';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function CardBasic() {\n return (\n <Card>\n <CardHeader>\n <Heading level={2} size=\"md\">\n Meridian Packaging\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n Supplier since 2019\n </Text>\n </CardHeader>\n <CardBody>\n <Text>Delivers pallets of cartons to Rotterdam every Tuesday and Friday.</Text>\n </CardBody>\n <CardFooter>\n <Button variant=\"outline\">View orders</Button>\n </CardFooter>\n </Card>\n );\n}\n",
276
+ "verdict": "example"
277
+ },
278
+ {
279
+ "id": "bleed",
280
+ "title": "bleed.tsx",
281
+ "note": null,
282
+ "language": "tsx",
283
+ "source": "import { Card, CardBody, CardHeader } from '@slotted/react/card';\nimport { List } from '@slotted/react/list';\nimport {\n ListItem,\n ListItemBody,\n ListItemContent,\n ListItemEnd,\n ListItemLabel,\n} from '@slotted/react/list-item';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst INVOICES = [\n { id: '20418', supplier: 'Meridian Packaging', amount: '$4,820.00' },\n { id: '20431', supplier: 'Alder Freight', amount: '$12,115.50' },\n { id: '20437', supplier: 'Kestrel Pallets', amount: '$1,340.00' },\n];\n\nexport default function CardBleed() {\n return (\n <Card>\n <CardHeader>\n <Heading level={2} size=\"md\">\n Open invoices\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n Due before 31 December\n </Text>\n </CardHeader>\n <CardBody bleed>\n <List aria-label=\"Open invoices\" variant=\"ruled\">\n {INVOICES.map((invoice) => (\n <ListItem key={invoice.id}>\n <ListItemContent>\n <ListItemBody>\n <ListItemLabel>{invoice.supplier}</ListItemLabel>\n </ListItemBody>\n <ListItemEnd>{invoice.amount}</ListItemEnd>\n </ListItemContent>\n </ListItem>\n ))}\n </List>\n </CardBody>\n </Card>\n );\n}\n",
284
+ "verdict": "example"
285
+ },
286
+ {
287
+ "id": "choice",
288
+ "title": "choice.tsx",
289
+ "note": null,
290
+ "language": "tsx",
291
+ "source": "import { useState } from 'react';\nimport { Card, CardHeader, CardSelection } from '@slotted/react/card';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst METHODS = [\n { id: 'standard', name: 'Standard', note: '5 to 7 days, free', available: true },\n { id: 'express', name: 'Express', note: '2 days, $12.00', available: true },\n { id: 'same-day', name: 'Same day', note: 'Not offered for this address', available: false },\n];\n\nexport default function CardChoice() {\n const [method, setMethod] = useState('standard');\n\n return (\n <Stack aria-label=\"Delivery method\" gap={3} role=\"radiogroup\">\n {METHODS.map((option) => (\n <Card\n disabled={!option.available}\n key={option.id}\n render={(props) => <label {...props} />}\n selected={method === option.id}\n >\n <CardHeader>\n <CardSelection>\n <input\n checked={method === option.id}\n disabled={!option.available}\n name=\"delivery\"\n onChange={() => {\n setMethod(option.id);\n }}\n type=\"radio\"\n value={option.id}\n />\n </CardSelection>\n <Text size=\"lg\" weight=\"semibold\">\n {option.name}\n </Text>\n <Text size=\"sm\" tone=\"muted\">\n {option.note}\n </Text>\n </CardHeader>\n </Card>\n ))}\n </Stack>\n );\n}\n",
292
+ "verdict": "example"
293
+ },
294
+ {
295
+ "id": "defaults",
296
+ "title": "defaults.tsx",
297
+ "note": null,
298
+ "language": "tsx",
299
+ "source": "import { Card, CardBody, CardDefaultsProvider, CardHeader } from '@slotted/react/card';\nimport { Grid } from '@slotted/react/grid';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function CardDefaults() {\n return (\n <CardDefaultsProvider fill=\"elevated\" size=\"lg\">\n <Grid columns={2} gap={4} minItemWidth=\"xs\">\n <Card>\n <CardHeader>\n <Heading level={2} size=\"md\">\n Orders shipped\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n elevated, lg\n </Text>\n </CardHeader>\n <CardBody>\n <Text>312 orders left the Reno warehouse today.</Text>\n </CardBody>\n </Card>\n\n <Card fill=\"outline\" size=\"sm\">\n <CardHeader>\n <Heading level={2} size=\"md\">\n Returns received\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n outline, sm\n </Text>\n </CardHeader>\n <CardBody>\n <Text>18 returns arrived and 11 are restocked.</Text>\n </CardBody>\n </Card>\n </Grid>\n </CardDefaultsProvider>\n );\n}\n",
300
+ "verdict": "example"
301
+ },
302
+ {
303
+ "id": "dividers",
304
+ "title": "dividers.tsx",
305
+ "note": null,
306
+ "language": "tsx",
307
+ "source": "import { Card, CardBody, CardFooter, CardHeader } from '@slotted/react/card';\nimport { Divider } from '@slotted/react/divider';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function CardDividers() {\n return (\n <Card>\n <CardHeader>\n <Heading level={2} size=\"md\">\n Rotterdam warehouse\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n Pallet capacity\n </Text>\n </CardHeader>\n <Divider decorative />\n <CardBody>\n <Text>8,420 of 10,000 pallet positions are in use.</Text>\n </CardBody>\n <Divider decorative inset />\n <CardFooter>\n <Text size=\"sm\" tone=\"muted\">\n Counted on 24 November at 06:00.\n </Text>\n </CardFooter>\n </Card>\n );\n}\n",
308
+ "verdict": "example"
309
+ },
310
+ {
311
+ "id": "fills",
312
+ "title": "fills.tsx",
313
+ "note": null,
314
+ "language": "tsx",
315
+ "source": "import { Card, CardBody, CardHeader } from '@slotted/react/card';\nimport type { CardFill } from '@slotted/react/card';\nimport { Grid } from '@slotted/react/grid';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst SUMMARIES: { fill: CardFill; title: string; body: string }[] = [\n { fill: 'outline', title: 'Open purchase orders', body: '14 orders, 3 awaiting approval.' },\n { fill: 'elevated', title: 'Invoices due this week', body: '6 invoices totaling $18,240.' },\n { fill: 'subtle', title: 'Reorder alerts', body: '9 products below their reorder point.' },\n];\n\nexport default function CardFills() {\n return (\n <Grid columns={3} gap={4} minItemWidth=\"xs\">\n {SUMMARIES.map((summary) => (\n <Card fill={summary.fill} key={summary.fill}>\n <CardHeader>\n <Heading level={2} size=\"md\">\n {summary.title}\n </Heading>\n <Text size=\"sm\" tone=\"muted\">{`fill: ${summary.fill}`}</Text>\n </CardHeader>\n <CardBody>\n <Text>{summary.body}</Text>\n </CardBody>\n </Card>\n ))}\n </Grid>\n );\n}\n",
316
+ "verdict": "example"
317
+ },
318
+ {
319
+ "id": "horizontal",
320
+ "title": "horizontal.tsx",
321
+ "note": null,
322
+ "language": "tsx",
323
+ "source": "import { Button } from '@slotted/react/button';\nimport { Card, CardBody, CardFooter, CardHeader, CardMedia } from '@slotted/react/card';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst COVER =\n \"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 160'%3E%3Crect width='320' height='160' fill='%23c7d2fe'/%3E%3Crect x='40' y='70' width='80' height='90' fill='%234338ca'/%3E%3Crect x='130' y='40' width='70' height='120' fill='%236366f1'/%3E%3Crect x='210' y='85' width='70' height='75' fill='%234338ca'/%3E%3C/svg%3E\";\n\nexport default function CardHorizontal() {\n return (\n <Card orientation=\"horizontal\">\n <CardMedia>\n <img alt=\"\" src={COVER} />\n </CardMedia>\n <CardHeader>\n <Heading level={2} size=\"md\">\n Rotterdam warehouse\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n Capacity report, Q4\n </Text>\n </CardHeader>\n <CardBody>\n <Text>Pallet positions in use rose from 71% to 84% between October and November.</Text>\n </CardBody>\n <CardFooter>\n <Button variant=\"outline\">Open report</Button>\n </CardFooter>\n </Card>\n );\n}\n",
324
+ "verdict": "example"
325
+ },
326
+ {
327
+ "id": "link",
328
+ "title": "link.tsx",
329
+ "note": null,
330
+ "language": "tsx",
331
+ "source": "import { Card, CardBody, CardFooter, CardHeader, CardLink } from '@slotted/react/card';\nimport { Link } from '@slotted/react/link';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function CardLinkExample() {\n return (\n <Card>\n <CardHeader>\n <CardLink href=\"#meridian\">\n <Heading level={2} size=\"md\">\n Meridian Packaging\n </Heading>\n </CardLink>\n <Text size=\"sm\" tone=\"muted\">\n Supplier since 2019\n </Text>\n </CardHeader>\n <CardBody>\n <Text>12 open invoices totaling $31,460.00.</Text>\n </CardBody>\n <CardFooter>\n <Link href=\"#meridian-terms\">Payment terms</Link>\n </CardFooter>\n </Card>\n );\n}\n",
332
+ "verdict": "example"
333
+ },
334
+ {
335
+ "id": "media",
336
+ "title": "media.tsx",
337
+ "note": null,
338
+ "language": "tsx",
339
+ "source": "import { Button } from '@slotted/react/button';\nimport { Card, CardBody, CardFooter, CardHeader, CardMedia } from '@slotted/react/card';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst COVER =\n \"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 160'%3E%3Crect width='320' height='160' fill='%23c7d2fe'/%3E%3Crect x='40' y='70' width='80' height='90' fill='%234338ca'/%3E%3Crect x='130' y='40' width='70' height='120' fill='%236366f1'/%3E%3Crect x='210' y='85' width='70' height='75' fill='%234338ca'/%3E%3C/svg%3E\";\n\nexport default function CardMediaExample() {\n return (\n <Card>\n <CardMedia>\n <img alt=\"\" src={COVER} />\n </CardMedia>\n <CardHeader>\n <Heading level={2} size=\"md\">\n Meridian Packaging\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n Rotterdam, 3 warehouses\n </Text>\n </CardHeader>\n <CardBody>\n <Text>14 purchase orders are open, and the next delivery arrives on Tuesday.</Text>\n </CardBody>\n <CardFooter>\n <Button variant=\"outline\">View supplier</Button>\n </CardFooter>\n </Card>\n );\n}\n",
340
+ "verdict": "example"
341
+ },
342
+ {
343
+ "id": "regions",
344
+ "title": "regions.tsx",
345
+ "note": null,
346
+ "language": "tsx",
347
+ "source": "import { Badge } from '@slotted/react/badge';\nimport { Button } from '@slotted/react/button';\nimport { Card, CardActions, CardBody, CardFooter, CardHeader } from '@slotted/react/card';\nimport { Inline } from '@slotted/react/inline';\nimport { Heading, Text } from '@slotted/react/typography';\n\nexport default function CardRegions() {\n return (\n <Card>\n <CardHeader>\n <Heading level={2} size=\"md\">\n Invoice 20418\n </Heading>\n <Text size=\"sm\" tone=\"muted\">\n Meridian Packaging\n </Text>\n <CardActions>\n <Badge tone=\"warning\">Overdue</Badge>\n </CardActions>\n </CardHeader>\n <CardBody>\n <Text>$4,820.00 was due on 15 November. A late fee of 1.5% applies from 1 December.</Text>\n </CardBody>\n <CardFooter>\n <Inline>\n <Button>Pay invoice</Button>\n <Button tone=\"secondary\" variant=\"outline\">\n Download PDF\n </Button>\n </Inline>\n </CardFooter>\n </Card>\n );\n}\n",
348
+ "verdict": "example"
349
+ },
350
+ {
351
+ "id": "sizes",
352
+ "title": "sizes.tsx",
353
+ "note": null,
354
+ "language": "tsx",
355
+ "source": "import { Card, CardBody, CardFooter, CardHeader } from '@slotted/react/card';\nimport type { CardSize } from '@slotted/react/card';\nimport { Grid } from '@slotted/react/grid';\nimport { Heading, Text } from '@slotted/react/typography';\n\nconst SIZES: CardSize[] = ['sm', 'md', 'lg'];\n\nexport default function CardSizes() {\n return (\n <Grid columns={3} gap={4} minItemWidth=\"xs\">\n {SIZES.map((size) => (\n <Card key={size} size={size}>\n <CardHeader>\n <Heading level={2} size=\"md\">\n Invoice 20418\n </Heading>\n <Text size=\"sm\" tone=\"muted\">{`size: ${size}`}</Text>\n </CardHeader>\n <CardBody>\n <Text>$4,820.00, due 15 December.</Text>\n </CardBody>\n <CardFooter>\n <Text size=\"sm\" tone=\"muted\">\n Meridian Packaging\n </Text>\n </CardFooter>\n </Card>\n ))}\n </Grid>\n );\n}\n",
356
+ "verdict": "example"
269
357
  }
270
358
  ]
271
359
  }