@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
@@ -5,35 +5,39 @@
5
5
 
6
6
  ## Minimal example
7
7
 
8
- Excerpt — not a complete module
8
+ Example
9
9
 
10
10
  ```tsx
11
- <Avatar name="Ada Lovelace" />;
11
+ import { Avatar } from '@slotted/react/avatar';
12
+
13
+ export default function AvatarBasic() {
14
+ return <Avatar name="Maria Chen" />;
15
+ }
12
16
  ```
13
17
 
14
18
  ## Props
15
19
 
16
20
  | Name | Type | Default | Applies to | Description |
17
21
  | --- | --- | --- | --- | --- |
18
- | `name` | `string` | — | Avatar | The person or entity. It is the accessible name in every status, the source of the initials, and the seed of the color |
19
- | `src` | `string` | — | Avatar | The picture. Absent, the avatar is its fallback and nothing is requested |
20
- | `initials` | `string` | — | Avatar | The letters to draw, in place of the ones derived from the name |
21
- | `tone` | `'auto' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | auto | Avatar | Which of the five semantic colors the fallback is painted in. auto derives it from the name |
22
- | `idFor` | `string` | — | Avatar | A stable identifier to derive the color from, when the name is not stable or two people share one |
23
- | `variant` | `'soft' \| 'solid'` | soft | Avatar | How that color is painted: tinted, or filled |
24
- | `surface` | `'tone' \| 'none' \| 'plate'` | tone | Avatar | The ground behind the avatar: the tone behind the fallback and nothing behind a loaded picture; nothing at all; or a light plate in every scheme, for a logo made for a white ground (--slotted-avatar-plate-surface) |
25
- | `size` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl'` | md | Avatar | Five steps, each of which answers density. --slotted-avatar-size states a size no step holds |
26
- | `shape` | `'circle' \| 'square'` | circle | Avatar | A circle is a person; a square is a team, an organization or a bot |
27
- | `status` | `'idle' \| 'loading' \| 'loaded' \| 'error'` | — | Avatar | Where the picture is. Supplied, it wins over what the family derives from the element |
28
- | `onStatusChange` | `(status) => void` | — | Avatar | Reports the derived status. Never called for a status passed in |
29
- | `disabled` | `boolean` | false | Avatar | A deactivated account, or an avatar inside a control the page has turned off |
30
- | `decorative` | `boolean` | false | Avatar | Takes the avatar out of the accessibility tree, for one beside the name it belongs to |
31
- | `locale` | `string` | — | Avatar | BCP 47, for the case of the initials. Falls back to the provider, then to the runtime |
32
- | `children` | `ReactNode` | — | Avatar | Content for the fallback, in place of the initials and the glyph — a logo, an Icon |
33
- | `render` | `(props) => ReactNode` | — | Avatar | Renders the wiring into another element — an anchor for an avatar that opens a profile |
34
- | `renderImage` | `(props) => ReactNode` | — | Avatar | Renders the picture into the consumer’s own element — a Next.js Image — while the family keeps reporting the load |
35
- | `ref` | `Ref<HTMLElement>` | — | Avatar | Reaches the native element; the props type is the element’s own, extended |
36
- | `AvatarDefaultsProvider` | `{ size, shape, tone, variant, locale }` | — | a subtree | Sets the defaults once for every avatar under it; an explicit prop still wins |
22
+ | `name` | `string` | — | Avatar | The person or entity. It is the accessible name in every status, the source of the initials and the seed of the color. |
23
+ | `src` | `string` | — | Avatar | The picture. When absent, the avatar draws its fallback and requests nothing. |
24
+ | `initials` | `string` | — | Avatar | The letters to draw in place of those derived from the name. The box holds two letters, and xs holds one. |
25
+ | `tone` | `'auto' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | auto | Avatar | The semantic color of the fallback. auto derives one of accent, secondary, success, warning or danger from the name; info applies only when set. |
26
+ | `idFor` | `string` | — | Avatar | A stable identifier to derive the color from, for a name that is not stable or that two people share. Defaults to name. |
27
+ | `variant` | `'soft' \| 'solid'` | soft | Avatar | How the color is painted: soft is tinted, solid is filled. |
28
+ | `surface` | `'tone' \| 'none' \| 'plate'` | tone | Avatar | The ground behind the avatar. tone paints the tone behind the fallback and nothing behind a loaded picture, none paints nothing, and plate paints a light plate in every color scheme, for a logo made for a white ground (--slotted-avatar-plate-surface). |
29
+ | `size` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl'` | md | Avatar | One of five steps. --slotted-avatar-size sets a size that no step holds. |
30
+ | `shape` | `'circle' \| 'square'` | circle | Avatar | circle is for a person; square is for a team, an organization or a bot. |
31
+ | `status` | `'idle' \| 'loading' \| 'loaded' \| 'error'` | — | Avatar | Where the picture is. A supplied value wins over the status derived from the img element. |
32
+ | `onStatusChange` | `(status) => void` | — | Avatar | Called with the derived status when the picture loads or fails. Not called for a status passed in. |
33
+ | `disabled` | `boolean` | false | Avatar | Marks a deactivated account, or an avatar inside a control that the page has turned off. |
34
+ | `decorative` | `boolean` | false | Avatar | Removes the avatar from the accessibility tree, for an avatar beside the name it belongs to. |
35
+ | `locale` | `string` | — | Avatar | BCP 47 tag that sets the case of the initials. Falls back to the defaults provider, then to the runtime locale. |
36
+ | `children` | `ReactNode` | — | Avatar | Content for the fallback in place of the initials and the glyph, such as a logo or an Icon. |
37
+ | `render` | `(props) => ReactNode` | — | Avatar | Renders the avatar into another element, such as an anchor for an avatar that opens a profile. |
38
+ | `renderImage` | `(props) => ReactNode` | — | Avatar | Renders the picture into the consumer’s own element, such as a Next.js Image, while the avatar keeps reporting the load. |
39
+ | `ref` | `Ref<HTMLElement>` | — | Avatar | Reaches the native element. The props type is the element’s own, extended. |
40
+ | `AvatarDefaultsProvider` | `{ size, shape, tone, variant, locale }` | — | a subtree | Sets the defaults for every avatar under it. An explicit prop wins. |
37
41
 
38
42
  ## Axes and defaults
39
43
 
@@ -48,16 +52,16 @@ Excerpt — not a complete module
48
52
 
49
53
  ## Rules
50
54
 
51
- - There is no avatar pattern in the WAI-ARIA Authoring Practices — the pattern index carries no entry, and the string does not occur on the page. The applicable guidance is the platform’s own: the img element and the img role in WAI-ARIA 1.2, the W3C WAI alt decision tree, and WCAG 2.2 1.1.1 Non-text Content, 1.4.11 Non-text Contrast and 2.5.8 Target Size (Minimum).
52
- - The name is on the root, as aria-label with role="img", and the picture takes an empty alt. The avatar therefore announces the same thing in all four statuses: every surveyed implementation names the image instead, which makes the same avatar “Ada Lovelace” once the photograph loads and “AL” before it.
53
- - An avatar with no name is aria-hidden, which is the rule Icon already takes: a name present decides role="img", an absent one decides that there is nothing to announce.
54
- - decorative is the third case — a name that is written beside the avatar, where announcing it would read the person twice. The name still drives the initials and the color.
55
- - The color derived from a name is an aid to scanning a list, never the identifier: five tones mean collisions are certain, and color alone is not a signal. The name is what identifies the person, and it is present in every state.
56
- - An avatar is not focusable and not a command. render can make the root an anchor or a button, and the family paints the focus ring and the hover edge for exactly that case — and holds both back when the avatar is disabled.
57
- - An interactive avatar smaller than 24 by 24 CSS pixels grows a centerd overlay to --slotted-target-min, so WCAG 2.2 2.5.8 is met at the two tighter densities without changing any layout. Inside a stack the overlay can reach under a neighbour; the raised member wins the pointer.
58
- - The fallback glyph is the person Glyph in an aria-hidden Icon, not a character: no font can be relied on to carry a silhouette, and a character would be read out.
59
- - Under forced colors the family draws its edge in currentColor, because the theme maps every tone ground to one system color. The photograph is left alone: a portrait reduced to two system colors is not a portrait.
60
- - The picture crosses over the initials on --slotted-duration-short, which prefers-reduced-motion collapses to 1ms in the theme. Nothing here loops.
55
+ - The WAI-ARIA Authoring Practices have no avatar pattern. The guidance applied is the img role in WAI-ARIA 1.2, the W3C WAI alt decision tree, and WCAG 2.2 success criteria 1.1.1 Non-text Content, 1.4.11 Non-text Contrast and 2.5.8 Target Size (Minimum).
56
+ - The name is on the root as aria-label with role="img", and the picture takes an empty alt. The avatar announces the same name in all four statuses; naming the image instead would announce the initials before the photograph loads and the name after.
57
+ - An avatar with no name is aria-hidden, the rule that Icon takes. A present name sets role="img"; an absent name leaves nothing to announce.
58
+ - decorative covers a name written beside the avatar, where announcing it would read the person twice. The name still drives the initials and the color.
59
+ - The color derived from a name is an aid to scanning a list, not an identifier. The palette holds five colors, so collisions occur, and color alone is not a signal. The name identifies the person and is present in every status.
60
+ - An avatar is not focusable and not a command. render can make the root an anchor or a button; the avatar then draws the focus ring and the hover edge, and withholds both when disabled. The element that render returns keeps its own role and takes the name as aria-label; a generic element returned there passes role="img".
61
+ - An interactive avatar smaller than 24 by 24 CSS pixels grows a centered overlay to --slotted-target-min, which meets WCAG 2.2 2.5.8 at the two tighter densities without changing the layout. Inside a stack the overlay can reach under a neighbor; the raised member receives the pointer.
62
+ - The fallback glyph is the person Glyph in an aria-hidden Icon, not a character: no font reliably carries a silhouette, and a character would be read aloud.
63
+ - Under forced colors the avatar draws its edge in currentColor, because the theme maps every tone ground to one system color. The photograph is left unchanged.
64
+ - The picture crosses over the initials in --slotted-duration-short, which prefers-reduced-motion reduces to 1ms in the theme. Nothing loops.
61
65
 
62
66
  ## Tokens
63
67
 
@@ -65,6 +69,14 @@ Excerpt — not a complete module
65
69
 
66
70
  ## Examples
67
71
 
72
+ ### A name is enough
73
+
74
+ Excerpt — not a complete module
75
+
76
+ ```tsx
77
+ <Avatar name="Ada Lovelace" />;
78
+ ```
79
+
68
80
  ### A picture, and the initials until it arrives
69
81
 
70
82
  Excerpt — not a complete module
@@ -145,3 +157,334 @@ Excerpt — not a complete module
145
157
  <App />
146
158
  </AvatarDefaultsProvider>;
147
159
  ```
160
+
161
+ ### decorative.tsx
162
+
163
+ Example
164
+
165
+ ```tsx
166
+ import { Avatar } from '@slotted/react/avatar';
167
+ import { Inline } from '@slotted/react/inline';
168
+ import { Stack } from '@slotted/react/stack';
169
+ import { Text } from '@slotted/react/typography';
170
+
171
+ const PORTRAIT =
172
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23c7d2fe'/%3E%3Ccircle cx='32' cy='25' r='11' fill='%234338ca'/%3E%3Cpath d='M10 64a22 22 0 0 1 44 0Z' fill='%234338ca'/%3E%3C/svg%3E";
173
+
174
+ export default function AvatarDecorative() {
175
+ return (
176
+ <Inline align="center" gap={3}>
177
+ <Avatar decorative name="Maria Chen" size="lg" src={PORTRAIT} />
178
+ <Stack gap={1}>
179
+ <Text weight="medium">Maria Chen</Text>
180
+ <Text size="sm" tone="muted">
181
+ Warehouse supervisor
182
+ </Text>
183
+ </Stack>
184
+ </Inline>
185
+ );
186
+ }
187
+ ```
188
+
189
+ ### defaults.tsx
190
+
191
+ Example
192
+
193
+ ```tsx
194
+ import { Avatar, AvatarDefaultsProvider } from '@slotted/react/avatar';
195
+ import { Inline } from '@slotted/react/inline';
196
+
197
+ export default function AvatarDefaults() {
198
+ return (
199
+ <AvatarDefaultsProvider shape="square" size="lg" variant="solid">
200
+ <Inline align="center" gap={4}>
201
+ <Avatar name="Night shift" />
202
+ <Avatar name="Receiving" />
203
+ <Avatar name="Maria Chen" shape="circle" size="sm" />
204
+ </Inline>
205
+ </AvatarDefaultsProvider>
206
+ );
207
+ }
208
+ ```
209
+
210
+ ### fallback.tsx
211
+
212
+ Example
213
+
214
+ ```tsx
215
+ import { Avatar } from '@slotted/react/avatar';
216
+ import { Glyph, Icon } from '@slotted/react/icon';
217
+ import { Inline } from '@slotted/react/inline';
218
+
219
+ export default function AvatarFallback() {
220
+ return (
221
+ <Inline align="center" gap={4}>
222
+ <Avatar name="Maria Chen" size="lg" />
223
+ <Avatar size="lg" />
224
+ <Avatar name="Receiving dock" shape="square" size="lg" tone="info">
225
+ <Icon>
226
+ <Glyph name="inbox" />
227
+ </Icon>
228
+ </Avatar>
229
+ </Inline>
230
+ );
231
+ }
232
+ ```
233
+
234
+ ### identity.tsx
235
+
236
+ Example
237
+
238
+ ```tsx
239
+ import { Avatar } from '@slotted/react/avatar';
240
+ import { Inline } from '@slotted/react/inline';
241
+ import { Stack } from '@slotted/react/stack';
242
+ import { Text } from '@slotted/react/typography';
243
+
244
+ export default function AvatarIdentity() {
245
+ return (
246
+ <Stack gap={4}>
247
+ <Stack gap={2}>
248
+ <Text size="sm" tone="muted">
249
+ From the name
250
+ </Text>
251
+ <Inline gap={3}>
252
+ <Avatar name="Maria Chen" />
253
+ <Avatar name="Marta Okafor" />
254
+ <Avatar name="Jonas Weber" />
255
+ <Avatar name="Elena Rossi" />
256
+ </Inline>
257
+ </Stack>
258
+ <Stack gap={2}>
259
+ <Text size="sm" tone="muted">
260
+ Same idFor, different names
261
+ </Text>
262
+ <Inline gap={3}>
263
+ <Avatar idFor="emp-1042" name="Maria Chen" />
264
+ <Avatar idFor="emp-1042" name="M. Chen" />
265
+ </Inline>
266
+ </Stack>
267
+ <Stack gap={2}>
268
+ <Text size="sm" tone="muted">
269
+ Own initials
270
+ </Text>
271
+ <Inline gap={3}>
272
+ <Avatar initials="D4" name="Dock 4 inbound" shape="square" />
273
+ </Inline>
274
+ </Stack>
275
+ </Stack>
276
+ );
277
+ }
278
+ ```
279
+
280
+ ### interactive.tsx
281
+
282
+ Example
283
+
284
+ ```tsx
285
+ import { Avatar } from '@slotted/react/avatar';
286
+ import { Inline } from '@slotted/react/inline';
287
+
288
+ export default function AvatarInteractive() {
289
+ return (
290
+ <Inline align="center" gap={4}>
291
+ <Avatar name="Maria Chen" render={(props) => <a {...props} href="#maria-chen" />} size="lg" />
292
+ <Avatar
293
+ name="Tomas Reyes"
294
+ render={(props) => <button {...props} type="button" />}
295
+ size="lg"
296
+ />
297
+ <Avatar
298
+ name="Priya Raman"
299
+ render={(props) => <a {...props} href="#priya-raman" />}
300
+ size="xs"
301
+ />
302
+ <Avatar
303
+ disabled
304
+ name="Samuel Okafor"
305
+ render={(props) => <button {...props} disabled type="button" />}
306
+ size="lg"
307
+ />
308
+ </Inline>
309
+ );
310
+ }
311
+ ```
312
+
313
+ ### picture.tsx
314
+
315
+ Example
316
+
317
+ ```tsx
318
+ import { useState } from 'react';
319
+ import { Avatar } from '@slotted/react/avatar';
320
+ import type { AvatarStatus } from '@slotted/react/avatar';
321
+ import { Button } from '@slotted/react/button';
322
+ import { Inline } from '@slotted/react/inline';
323
+ import { Stack } from '@slotted/react/stack';
324
+ import { Text } from '@slotted/react/typography';
325
+
326
+ const PORTRAIT =
327
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23c7d2fe'/%3E%3Ccircle cx='32' cy='25' r='11' fill='%234338ca'/%3E%3Cpath d='M10 64a22 22 0 0 1 44 0Z' fill='%234338ca'/%3E%3C/svg%3E";
328
+ const UNREADABLE = 'data:image/png;base64,AAAA';
329
+
330
+ export default function AvatarPicture() {
331
+ const [failed, setFailed] = useState(false);
332
+ const [status, setStatus] = useState<AvatarStatus>('loading');
333
+
334
+ return (
335
+ <Stack gap={4}>
336
+ <Avatar
337
+ name="Maria Chen"
338
+ onStatusChange={setStatus}
339
+ size="xl"
340
+ src={failed ? UNREADABLE : PORTRAIT}
341
+ />
342
+ <Text size="sm" tone="muted">
343
+ Status: {status}
344
+ </Text>
345
+ <Inline>
346
+ <Button onClick={() => setFailed(!failed)} tone="secondary" variant="outline">
347
+ {failed ? 'Restore the picture' : 'Fail the request'}
348
+ </Button>
349
+ </Inline>
350
+ </Stack>
351
+ );
352
+ }
353
+ ```
354
+
355
+ ### shapes.tsx
356
+
357
+ Example
358
+
359
+ ```tsx
360
+ import { Avatar } from '@slotted/react/avatar';
361
+ import { Inline } from '@slotted/react/inline';
362
+
363
+ export default function AvatarShapes() {
364
+ return (
365
+ <Inline align="center" gap={4}>
366
+ <Avatar name="Maria Chen" shape="circle" size="lg" />
367
+ <Avatar name="Night shift" shape="square" size="lg" />
368
+ <Avatar name="Northwind Logistics" shape="square" size="lg" />
369
+ <Avatar name="Replenishment bot" shape="square" size="lg" />
370
+ </Inline>
371
+ );
372
+ }
373
+ ```
374
+
375
+ ### sizes.tsx
376
+
377
+ Example
378
+
379
+ ```tsx
380
+ import { Avatar } from '@slotted/react/avatar';
381
+ import { Inline } from '@slotted/react/inline';
382
+
383
+ export default function AvatarSizes() {
384
+ return (
385
+ <Inline align="center" gap={4}>
386
+ <Avatar name="Maria Chen" size="xs" />
387
+ <Avatar name="Maria Chen" size="sm" />
388
+ <Avatar name="Maria Chen" size="md" />
389
+ <Avatar name="Maria Chen" size="lg" />
390
+ <Avatar name="Maria Chen" size="xl" />
391
+ </Inline>
392
+ );
393
+ }
394
+ ```
395
+
396
+ ### status.tsx
397
+
398
+ Example
399
+
400
+ ```tsx
401
+ import { Avatar } from '@slotted/react/avatar';
402
+ import { Inline } from '@slotted/react/inline';
403
+ import { Stack } from '@slotted/react/stack';
404
+ import { Text } from '@slotted/react/typography';
405
+
406
+ const PORTRAIT =
407
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23c7d2fe'/%3E%3Ccircle cx='32' cy='25' r='11' fill='%234338ca'/%3E%3Cpath d='M10 64a22 22 0 0 1 44 0Z' fill='%234338ca'/%3E%3C/svg%3E";
408
+
409
+ const STATUSES = ['idle', 'loading', 'loaded', 'error'] as const;
410
+
411
+ export default function AvatarStatusExample() {
412
+ return (
413
+ <Inline gap={6}>
414
+ {STATUSES.map((status) => (
415
+ <Stack gap={2} key={status}>
416
+ <Avatar name="Maria Chen" size="lg" src={PORTRAIT} status={status} />
417
+ <Text size="sm" tone="muted">
418
+ {status}
419
+ </Text>
420
+ </Stack>
421
+ ))}
422
+ </Inline>
423
+ );
424
+ }
425
+ ```
426
+
427
+ ### surface.tsx
428
+
429
+ Example
430
+
431
+ ```tsx
432
+ import { Avatar } from '@slotted/react/avatar';
433
+ import type { AvatarSurface } from '@slotted/react/avatar';
434
+ import { Inline } from '@slotted/react/inline';
435
+ import { Stack } from '@slotted/react/stack';
436
+ import { Text } from '@slotted/react/typography';
437
+
438
+ const LOGO =
439
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M8 52V12h8l32 28V12h8v40h-8L16 24v28Z' fill='%23111827'/%3E%3C/svg%3E";
440
+ const SURFACES: AvatarSurface[] = ['tone', 'none', 'plate'];
441
+
442
+ export default function AvatarSurfaceExample() {
443
+ return (
444
+ <Inline gap={6}>
445
+ {SURFACES.map((surface) => (
446
+ <Stack gap={2} key={surface}>
447
+ <Avatar name="Nordic Freight" shape="square" size="lg" src={LOGO} surface={surface} />
448
+ <Text size="sm" tone="muted">
449
+ {surface}
450
+ </Text>
451
+ </Stack>
452
+ ))}
453
+ </Inline>
454
+ );
455
+ }
456
+ ```
457
+
458
+ ### tones.tsx
459
+
460
+ Example
461
+
462
+ ```tsx
463
+ import { Avatar } from '@slotted/react/avatar';
464
+ import type { AvatarTone, AvatarVariant } from '@slotted/react/avatar';
465
+ import { Inline } from '@slotted/react/inline';
466
+ import { Stack } from '@slotted/react/stack';
467
+ import { Text } from '@slotted/react/typography';
468
+
469
+ const TONES: AvatarTone[] = ['accent', 'secondary', 'info', 'success', 'warning', 'danger'];
470
+ const VARIANTS: AvatarVariant[] = ['soft', 'solid'];
471
+
472
+ export default function AvatarTones() {
473
+ return (
474
+ <Stack gap={4}>
475
+ {VARIANTS.map((variant) => (
476
+ <Stack gap={2} key={variant}>
477
+ <Text size="sm" tone="muted">
478
+ {variant}
479
+ </Text>
480
+ <Inline gap={3}>
481
+ {TONES.map((tone) => (
482
+ <Avatar key={tone} name="Maria Chen" tone={tone} variant={variant} />
483
+ ))}
484
+ </Inline>
485
+ </Stack>
486
+ ))}
487
+ </Stack>
488
+ );
489
+ }
490
+ ```