@slotted/react 0.1.0-beta.12 → 0.1.0-beta.13

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 (361) hide show
  1. package/dist/{action-bar-z2DPc1Wy.js → action-bar-D-V2uWjA.js} +2 -2
  2. package/dist/action-bar.js +1 -1
  3. package/dist/{action-sheet-BnedGewu.js → action-sheet-CYwRLOKq.js} +1 -1
  4. package/dist/action-sheet.js +1 -1
  5. package/dist/{alert-BTAXJ69M.js → alert-DPSZUCRn.js} +6 -6
  6. package/dist/alert.js +1 -1
  7. package/dist/{app-shell-Cb_kDBeV.js → app-shell-CJwXBvE5.js} +1 -1
  8. package/dist/app-shell.js +1 -1
  9. package/dist/{attachment-D1O4qS8H.js → attachment-DKKiNUKe.js} +1 -1
  10. package/dist/attachment.js +1 -1
  11. package/dist/{avatar-C1mYlU05.js → avatar-DLWElrgg.js} +1 -1
  12. package/dist/{avatar-group-DhbHJlMx.js → avatar-group-DshHqe8B.js} +1 -1
  13. package/dist/avatar-group.js +1 -1
  14. package/dist/avatar.js +1 -1
  15. package/dist/{breadcrumb-CnFjxxI2.js → breadcrumb-DWbUEBpm.js} +1 -1
  16. package/dist/breadcrumb.js +1 -1
  17. package/dist/{calendar-DZyC1gAT.js → calendar-DZx00W81.js} +1 -1
  18. package/dist/calendar.js +1 -1
  19. package/dist/{carousel-Dso3gcYd.js → carousel-B9nMK7Yf.js} +1 -1
  20. package/dist/carousel.js +1 -1
  21. package/dist/{cascader-BbajBwsX.js → cascader-neDJl-we.js} +3 -3
  22. package/dist/cascader.js +1 -1
  23. package/dist/{chart-Bb6ctahn.js → chart-CbOswR3s.js} +1 -1
  24. package/dist/chart.js +1 -1
  25. package/dist/{checkbox-C_8GVtjD.js → checkbox-Hq1PXk04.js} +4 -4
  26. package/dist/{checkbox-group-DXCcusol.js → checkbox-group-Ckoh-2GJ.js} +2 -2
  27. package/dist/checkbox-group.js +1 -1
  28. package/dist/checkbox.js +1 -1
  29. package/dist/{code-block-C4mtsROE.js → code-block-Cy548yk7.js} +1 -1
  30. package/dist/code-block.js +1 -1
  31. package/dist/{collapsible-B_UjYE2f.js → collapsible-BuUBeNDg.js} +1 -1
  32. package/dist/collapsible.js +1 -1
  33. package/dist/{color-picker-JZPnPb7s.js → color-picker-BsDplfdK.js} +5 -5
  34. package/dist/color-picker.js +1 -1
  35. package/dist/{column-manager-BDUj-WIs.js → column-manager-CIf2SAzx.js} +6 -6
  36. package/dist/column-manager.js +1 -1
  37. package/dist/{combobox-Dn69QwGX.js → combobox-vE8dmv4K.js} +2 -2
  38. package/dist/combobox.js +1 -1
  39. package/dist/{command-palette-Dh1HKz_F.js → command-palette-DEKWsUFR.js} +2 -2
  40. package/dist/command-palette.js +1 -1
  41. package/dist/{context-menu-uJjEmAN3.js → context-menu-BxbGq4bu.js} +1 -1
  42. package/dist/context-menu.js +1 -1
  43. package/dist/{currency-field-lHcrNJ7X.js → currency-field-ZvfrfM0z.js} +2 -2
  44. package/dist/currency-field.js +1 -1
  45. package/dist/{dashboard-grid-z-SOm9H0.js → dashboard-grid-B9-_lwn6.js} +2 -2
  46. package/dist/dashboard-grid.js +1 -1
  47. package/dist/{data-grid-Kj1b9RD-.js → data-grid-B5feiNsE.js} +18 -18
  48. package/dist/data-grid.js +1 -1
  49. package/dist/{data-list-BgdkA3bD.js → data-list-CUvUS2AX.js} +4 -4
  50. package/dist/data-list.js +1 -1
  51. package/dist/{date-field-B2lQzE3p.js → date-field-EBPrQL6A.js} +2 -2
  52. package/dist/date-field.js +1 -1
  53. package/dist/{date-picker-DpTRb-Y1.js → date-picker-Dys-z9mZ.js} +4 -4
  54. package/dist/date-picker.js +1 -1
  55. package/dist/{date-range-picker-CBUPJep5.js → date-range-picker-Cu95hHyO.js} +4 -4
  56. package/dist/date-range-picker.js +1 -1
  57. package/dist/{datetime-field-BZ44uJ_B.js → datetime-field-DavJbR0H.js} +2 -2
  58. package/dist/datetime-field.js +1 -1
  59. package/dist/{datetime-picker-BK_bV3Yr.js → datetime-picker-B7eWKoN3.js} +4 -4
  60. package/dist/datetime-picker.js +1 -1
  61. package/dist/{datetime-range-picker-ChdbRgzQ.js → datetime-range-picker-Cm42pY3M.js} +4 -4
  62. package/dist/datetime-range-picker.js +1 -1
  63. package/dist/{description-list-CYlfHDwx.js → description-list-KjUs1muC.js} +1 -1
  64. package/dist/description-list.js +1 -1
  65. package/dist/{detail-panel-DimjnPI8.js → detail-panel-BNfYQJfv.js} +3 -3
  66. package/dist/detail-panel.js +1 -1
  67. package/dist/{dialog-BB5MdJex.js → dialog-CjOBjHrL.js} +8 -8
  68. package/dist/dialog.js +1 -1
  69. package/dist/docs/action-bar.json +1 -0
  70. package/dist/docs/action-bar.md +1 -1
  71. package/dist/docs/action-sheet.json +399 -64
  72. package/dist/docs/action-sheet.md +291 -0
  73. package/dist/docs/alert.json +1 -1
  74. package/dist/docs/alert.md +1 -1
  75. package/dist/docs/combobox.json +1 -0
  76. package/dist/docs/combobox.md +1 -1
  77. package/dist/docs/data-grid.json +1 -1
  78. package/dist/docs/date-picker.json +1 -0
  79. package/dist/docs/date-picker.md +1 -1
  80. package/dist/docs/drawer.json +1 -0
  81. package/dist/docs/drawer.md +1 -1
  82. package/dist/docs/entity-picker.json +1 -0
  83. package/dist/docs/entity-picker.md +1 -1
  84. package/dist/docs/inline-message.json +1 -1
  85. package/dist/docs/inline-message.md +1 -1
  86. package/dist/docs/kbd.json +3 -0
  87. package/dist/docs/kbd.md +1 -1
  88. package/dist/docs/menu.json +1 -0
  89. package/dist/docs/menu.md +1 -1
  90. package/dist/docs/popover.json +1 -0
  91. package/dist/docs/popover.md +1 -1
  92. package/dist/docs/scroll-area.json +278 -64
  93. package/dist/docs/scroll-area.md +198 -0
  94. package/dist/docs/section.json +11 -1
  95. package/dist/docs/section.md +13 -12
  96. package/dist/docs/select.json +1 -0
  97. package/dist/docs/select.md +1 -1
  98. package/dist/docs/skills/theme-app/SKILL.md +18 -4
  99. package/dist/docs/splitter.json +293 -64
  100. package/dist/docs/splitter.md +222 -0
  101. package/dist/docs/status-indicator.json +16 -5
  102. package/dist/docs/status-indicator.md +3 -1
  103. package/dist/docs/table-of-contents.json +2 -1
  104. package/dist/docs/table-of-contents.md +2 -2
  105. package/dist/docs/tooltip.json +1 -0
  106. package/dist/docs/tooltip.md +1 -1
  107. package/dist/drawer-CIsrtQcM.js +816 -0
  108. package/dist/drawer.js +1 -1
  109. package/dist/{entity-picker-ClyhBTyK.js → entity-picker-DB1HeuvJ.js} +4 -4
  110. package/dist/entity-picker.js +1 -1
  111. package/dist/{event-calendar-COgC24UG.js → event-calendar-DKwvcNF_.js} +6 -6
  112. package/dist/event-calendar.js +1 -1
  113. package/dist/{field-tnEZiRLg.js → field-CnSMUZw6.js} +2 -2
  114. package/dist/{field-group-Bj-EbPIU.js → field-group-RACkEXPp.js} +2 -2
  115. package/dist/field-group.js +1 -1
  116. package/dist/field.js +1 -1
  117. package/dist/{filter-bar-BRuCz79-.js → filter-bar-NipgBi5v.js} +12 -12
  118. package/dist/filter-bar.js +1 -1
  119. package/dist/{fullscreen-BwweNj3-.js → fullscreen-CaEg6U-M.js} +1 -1
  120. package/dist/fullscreen.js +1 -1
  121. package/dist/{hover-card-BWcU37Yp.js → hover-card-D8OyhmEG.js} +1 -1
  122. package/dist/hover-card.js +1 -1
  123. package/dist/icon-D04-_QFA.js +134 -0
  124. package/dist/icon.js +1 -1
  125. package/dist/{image-Ajqo38Uz.js → image-cyX9-F0x.js} +1 -1
  126. package/dist/image.js +1 -1
  127. package/dist/{import-export-center-CYf0Qxl_.js → import-export-center-BIB7sRCl.js} +4 -4
  128. package/dist/import-export-center.js +1 -1
  129. package/dist/index.js +102 -101
  130. package/dist/{inline-message-DM7mf2cM.js → inline-message-DgEAUjar.js} +6 -6
  131. package/dist/inline-message.js +1 -1
  132. package/dist/{link-DLPyg54C.js → link-rGL3Lr2t.js} +1 -1
  133. package/dist/link.js +1 -1
  134. package/dist/{list-item-DMeNfokY.js → list-item-CHaJYl5r.js} +1 -1
  135. package/dist/list-item.js +1 -1
  136. package/dist/{listbox-BSqx_ARf.js → listbox-DvwUa0yH.js} +2 -2
  137. package/dist/listbox.js +1 -1
  138. package/dist/{markdown-DccRb1xf.js → markdown-B_lMpWz0.js} +6 -6
  139. package/dist/markdown.js +1 -1
  140. package/dist/{menu-parts-CNNHRduK.js → menu-parts-BDdCTmko.js} +1 -1
  141. package/dist/menu.js +1 -1
  142. package/dist/{menubar-Bdr6zigi.js → menubar-hazvXRYd.js} +1 -1
  143. package/dist/menubar.js +1 -1
  144. package/dist/{message-BkTiWsUp.js → message-C1O3jr31.js} +1 -1
  145. package/dist/{message-scroller-akQEtQLn.js → message-scroller-BSpE5DHM.js} +1 -1
  146. package/dist/message-scroller.js +1 -1
  147. package/dist/message.js +1 -1
  148. package/dist/{multi-select-BvlJIEtz.js → multi-select-C1GNk4e0.js} +2 -2
  149. package/dist/multi-select.js +1 -1
  150. package/dist/{navigation-menu-parts-CEW4fgCo.js → navigation-menu-parts-CRLmigjy.js} +1 -1
  151. package/dist/navigation-menu.js +1 -1
  152. package/dist/{notification-center-BQO0Ey3h.js → notification-center-CAbkHDlC.js} +2 -2
  153. package/dist/notification-center.js +1 -1
  154. package/dist/{number-field-D1MqT8_A.js → number-field-BPYe9kLB.js} +2 -2
  155. package/dist/number-field.js +1 -1
  156. package/dist/{otp-input-Cub9H9Di.js → otp-input-CYtF30Q-.js} +1 -1
  157. package/dist/otp-input.js +1 -1
  158. package/dist/{page-header-CMxCQqu_.js → page-header-BgYXPEbd.js} +1 -1
  159. package/dist/page-header.js +1 -1
  160. package/dist/{pagination-IEuos7H1.js → pagination-D0PUAFYm.js} +1 -1
  161. package/dist/pagination.js +1 -1
  162. package/dist/{popover-C7NpEzq6.js → popover-BfEn2wdZ.js} +1 -1
  163. package/dist/popover.js +1 -1
  164. package/dist/{prompt-composer-Cu8bj1Vb.js → prompt-composer-BDOi4rVK.js} +2 -2
  165. package/dist/prompt-composer.js +1 -1
  166. package/dist/{radio-group-BHlDgCLk.js → radio-group-CLX8D2Ew.js} +3 -3
  167. package/dist/radio-group.js +1 -1
  168. package/dist/{rating-Cr0lXaAV.js → rating-BB2k-Fay.js} +2 -2
  169. package/dist/rating.js +1 -1
  170. package/dist/roving-focus-C5-rVFzI.js +89 -0
  171. package/dist/roving-focus.js +2 -0
  172. package/dist/{saved-views-CyLSn8a2.js → saved-views-CmsTqrCY.js} +5 -5
  173. package/dist/saved-views.js +1 -1
  174. package/dist/section-CjlMOyZE.js +195 -0
  175. package/dist/section.js +1 -1
  176. package/dist/{segmented-control-uPnQYklX.js → segmented-control-B1U-s58C.js} +2 -2
  177. package/dist/segmented-control.js +1 -1
  178. package/dist/{select-C0JYHwBy.js → select-OUGNxyS5.js} +3 -3
  179. package/dist/{select-tags-CMe5rzql.js → select-tags-3792weoq.js} +1 -1
  180. package/dist/select.js +1 -1
  181. package/dist/{side-navigation-D8lRpHwj.js → side-navigation-DRLWTlJ4.js} +2 -2
  182. package/dist/side-navigation.js +1 -1
  183. package/dist/{slider-BSI1xvjw.js → slider-Bp1QjJKu.js} +1 -1
  184. package/dist/slider.js +1 -1
  185. package/dist/{split-button-CkbylOMN.js → split-button-BhKdDspN.js} +2 -2
  186. package/dist/split-button.js +1 -1
  187. package/dist/{stat-card-CAh4SdeY.js → stat-card-CUISfM36.js} +1 -1
  188. package/dist/stat-card.js +1 -1
  189. package/dist/{status-indicator-BVMnpcm8.js → status-indicator-DkV95RZc.js} +30 -26
  190. package/dist/status-indicator.js +1 -1
  191. package/dist/{stepper-BLfvMz04.js → stepper-DHdrANZI.js} +1 -1
  192. package/dist/stepper.js +1 -1
  193. package/dist/styles/action-bar.css +3 -3
  194. package/dist/styles/action-sheet.css +2 -2
  195. package/dist/styles/alert.css +2 -2
  196. package/dist/styles/app-shell.css +1 -1
  197. package/dist/styles/attachment.css +1 -1
  198. package/dist/styles/avatar-group.css +1 -1
  199. package/dist/styles/avatar.css +1 -1
  200. package/dist/styles/breadcrumb.css +1 -1
  201. package/dist/styles/calendar.css +1 -1
  202. package/dist/styles/carousel.css +1 -1
  203. package/dist/styles/cascader.css +3 -3
  204. package/dist/styles/chart.css +2 -2
  205. package/dist/styles/checkbox-group.css +3 -3
  206. package/dist/styles/checkbox.css +3 -3
  207. package/dist/styles/code-block.css +1 -1
  208. package/dist/styles/collapsible.css +1 -1
  209. package/dist/styles/color-picker.css +5 -5
  210. package/dist/styles/column-manager.css +6 -6
  211. package/dist/styles/combobox.css +4 -4
  212. package/dist/styles/command-palette.css +2 -2
  213. package/dist/styles/context-menu.css +2 -2
  214. package/dist/styles/currency-field.css +3 -3
  215. package/dist/styles/dashboard-grid.css +2 -2
  216. package/dist/styles/data-grid.css +8 -8
  217. package/dist/styles/data-list.css +4 -4
  218. package/dist/styles/date-field.css +3 -3
  219. package/dist/styles/date-picker.css +4 -4
  220. package/dist/styles/date-range-picker.css +3 -3
  221. package/dist/styles/datetime-field.css +3 -3
  222. package/dist/styles/datetime-picker.css +3 -3
  223. package/dist/styles/datetime-range-picker.css +3 -3
  224. package/dist/styles/description-list.css +1 -1
  225. package/dist/styles/detail-panel.css +2 -2
  226. package/dist/styles/dialog.css +1 -1
  227. package/dist/styles/drawer.css +2 -2
  228. package/dist/styles/entity-picker.css +5 -5
  229. package/dist/styles/event-calendar.css +6 -6
  230. package/dist/styles/field-group.css +3 -3
  231. package/dist/styles/field.css +3 -3
  232. package/dist/styles/filter-bar.css +10 -10
  233. package/dist/styles/fullscreen.css +1 -1
  234. package/dist/styles/hover-card.css +2 -2
  235. package/dist/styles/icon.css +1 -1
  236. package/dist/styles/image.css +1 -1
  237. package/dist/styles/import-export-center.css +7 -7
  238. package/dist/styles/index.css +19 -19
  239. package/dist/styles/inline-message.css +2 -2
  240. package/dist/styles/kbd.css +1 -1
  241. package/dist/styles/link.css +1 -1
  242. package/dist/styles/list-item.css +1 -1
  243. package/dist/styles/listbox.css +3 -3
  244. package/dist/styles/markdown.css +4 -4
  245. package/dist/styles/menu.css +2 -2
  246. package/dist/styles/menubar.css +2 -2
  247. package/dist/styles/message-scroller.css +1 -1
  248. package/dist/styles/message.css +1 -1
  249. package/dist/styles/multi-select.css +4 -4
  250. package/dist/styles/navigation-menu.css +1 -1
  251. package/dist/styles/notification-center.css +2 -2
  252. package/dist/styles/number-field.css +3 -3
  253. package/dist/styles/otp-input.css +3 -3
  254. package/dist/styles/page-header.css +1 -1
  255. package/dist/styles/pagination.css +1 -1
  256. package/dist/styles/popover.css +2 -2
  257. package/dist/styles/prompt-composer.css +3 -3
  258. package/dist/styles/radio-group.css +3 -3
  259. package/dist/styles/rating.css +3 -3
  260. package/dist/styles/roving-focus.css +1 -0
  261. package/dist/styles/saved-views.css +5 -5
  262. package/dist/styles/section.css +1 -1
  263. package/dist/styles/segmented-control.css +3 -3
  264. package/dist/styles/select.css +4 -4
  265. package/dist/styles/side-navigation.css +2 -2
  266. package/dist/styles/slider.css +3 -3
  267. package/dist/styles/split-button.css +2 -2
  268. package/dist/styles/stat-card.css +1 -1
  269. package/dist/styles/status-indicator.css +2 -2
  270. package/dist/styles/stepper.css +1 -1
  271. package/dist/styles/switch.css +3 -3
  272. package/dist/styles/table-of-contents.css +2 -2
  273. package/dist/styles/table.css +6 -6
  274. package/dist/styles/tabs.css +1 -1
  275. package/dist/styles/tag.css +1 -1
  276. package/dist/styles/tags-input.css +3 -3
  277. package/dist/styles/text-field.css +3 -3
  278. package/dist/styles/textarea.css +3 -3
  279. package/dist/styles/time-field.css +3 -3
  280. package/dist/styles/time-picker.css +3 -3
  281. package/dist/styles/time-range-picker.css +3 -3
  282. package/dist/styles/timeline.css +1 -1
  283. package/dist/styles/toast.css +2 -2
  284. package/dist/styles/toggle-group.css +3 -3
  285. package/dist/styles/toolbar.css +2 -2
  286. package/dist/styles/tooltip.css +1 -1
  287. package/dist/styles/top-navigation.css +2 -2
  288. package/dist/styles/tour.css +1 -1
  289. package/dist/styles/transfer.css +3 -3
  290. package/dist/styles/tree.css +1 -1
  291. package/dist/styles/upload.css +3 -3
  292. package/dist/styles/wizard.css +2 -2
  293. package/dist/styles.css +1 -1
  294. package/dist/{switch-BHyKHqeI.js → switch-DmLzDbTb.js} +2 -2
  295. package/dist/switch.js +1 -1
  296. package/dist/{table-C8zOHDcY.js → table-_xX87qua.js} +14 -14
  297. package/dist/{table-of-contents-BAIuPCdy.js → table-of-contents-kFr_3Dzs.js} +1 -1
  298. package/dist/table-of-contents.js +1 -1
  299. package/dist/table.js +1 -1
  300. package/dist/{tabs-DjEpS9uq.js → tabs-C-Bc7WmQ.js} +1 -1
  301. package/dist/tabs.js +1 -1
  302. package/dist/{tag-XYGEPUHR.js → tag-BYzDYvM_.js} +1 -1
  303. package/dist/tag.js +1 -1
  304. package/dist/{tags-input-ClYSd-No.js → tags-input-CAmXKSeZ.js} +2 -2
  305. package/dist/tags-input.js +1 -1
  306. package/dist/{text-field-Cguj75tn.js → text-field-CHYoral_.js} +2 -2
  307. package/dist/text-field.js +1 -1
  308. package/dist/{textarea-BKsh_jAo.js → textarea-47JGOZKv.js} +1 -1
  309. package/dist/textarea.js +1 -1
  310. package/dist/theme.js +10 -9
  311. package/dist/{time-field-BIE4WMpS.js → time-field-D1-rNBsB.js} +2 -2
  312. package/dist/time-field.js +1 -1
  313. package/dist/{time-picker-CNfafRDF.js → time-picker-mwCULYh7.js} +3 -3
  314. package/dist/time-picker.js +1 -1
  315. package/dist/{time-range-picker-D7gM_Wno.js → time-range-picker-BKgsEHmd.js} +3 -3
  316. package/dist/time-range-picker.js +1 -1
  317. package/dist/{timeline-BLadNUkS.js → timeline-BiL2CXfn.js} +1 -1
  318. package/dist/timeline.js +1 -1
  319. package/dist/{toast-CjbiXiza.js → toast-DHDVXIew.js} +6 -6
  320. package/dist/toast.js +1 -1
  321. package/dist/{toggle-group-BZmghKac.js → toggle-group-Bnig_MWl.js} +1 -1
  322. package/dist/toggle-group.js +1 -1
  323. package/dist/{toolbar-BI4ZepBs.js → toolbar-EdmEn_ph.js} +2 -2
  324. package/dist/toolbar.js +1 -1
  325. package/dist/{top-navigation-BTZpx5VA.js → top-navigation-B_oQgy56.js} +3 -3
  326. package/dist/top-navigation.js +1 -1
  327. package/dist/{tour-_CQ1kYov.js → tour-6ai_6m2y.js} +1 -1
  328. package/dist/tour.js +1 -1
  329. package/dist/{transfer-BVhBdIGp.js → transfer-4Vo11sGY.js} +6 -6
  330. package/dist/transfer.js +1 -1
  331. package/dist/{tree-DfI9UWLA.js → tree-DBirM2v9.js} +1 -1
  332. package/dist/tree.js +1 -1
  333. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  334. package/dist/types/icon/glyph.d.ts +3 -0
  335. package/dist/types/icon/glyph.d.ts.map +1 -1
  336. package/dist/types/index.d.ts +1 -0
  337. package/dist/types/index.d.ts.map +1 -1
  338. package/dist/types/inline-message/inline-message.types.d.ts +1 -1
  339. package/dist/types/roving-focus/index.d.ts +3 -0
  340. package/dist/types/roving-focus/index.d.ts.map +1 -0
  341. package/dist/types/roving-focus/roving-focus.d.ts +48 -0
  342. package/dist/types/roving-focus/roving-focus.d.ts.map +1 -0
  343. package/dist/types/section/section-parts.d.ts +1 -4
  344. package/dist/types/section/section-parts.d.ts.map +1 -1
  345. package/dist/types/section/section.d.ts.map +1 -1
  346. package/dist/types/status-indicator/status-indicator.d.ts +1 -1
  347. package/dist/types/status-indicator/status-indicator.d.ts.map +1 -1
  348. package/dist/types/status-indicator/status-indicator.types.d.ts +6 -0
  349. package/dist/types/status-indicator/status-indicator.types.d.ts.map +1 -1
  350. package/dist/types/theme/index.d.ts +1 -1
  351. package/dist/types/theme/index.d.ts.map +1 -1
  352. package/dist/types/theme/theme-scope.d.ts +6 -3
  353. package/dist/types/theme/theme-scope.d.ts.map +1 -1
  354. package/dist/{upload-N2-nyO8x.js → upload-S3d3tUt-.js} +3 -3
  355. package/dist/upload.js +1 -1
  356. package/dist/{wizard-CK1x2fs3.js → wizard-ijqGsc5t.js} +4 -4
  357. package/dist/wizard.js +1 -1
  358. package/package.json +10 -6
  359. package/dist/drawer-fyPyxnYQ.js +0 -782
  360. package/dist/icon-DjqSEQ-o.js +0 -75
  361. package/dist/section-DY8yPm11.js +0 -177
@@ -36,69 +36,186 @@
36
36
  }
37
37
  },
38
38
  "docs": {
39
- "accessibility": {
40
- "imports": null,
41
- "anatomy": [],
42
- "api": [],
43
- "composition": [],
44
- "events": [],
45
- "accessibility": []
46
- },
47
- "anatomy": {
48
- "imports": null,
49
- "anatomy": [],
50
- "api": [],
51
- "composition": [],
52
- "events": [],
53
- "accessibility": []
54
- },
55
- "api": {
56
- "imports": null,
57
- "anatomy": [],
58
- "api": [],
59
- "composition": [],
60
- "events": [],
61
- "accessibility": []
62
- },
63
- "composition": {
64
- "imports": null,
65
- "anatomy": [],
66
- "api": [],
67
- "composition": [],
68
- "events": [],
69
- "accessibility": []
70
- },
71
- "events": {
72
- "imports": null,
73
- "anatomy": [],
74
- "api": [],
75
- "composition": [],
76
- "events": [],
77
- "accessibility": []
78
- },
79
- "imports": {
80
- "imports": null,
81
- "anatomy": [],
82
- "api": [],
83
- "composition": [],
84
- "events": [],
85
- "accessibility": []
86
- },
87
- "scenes": {
88
- "imports": null,
89
- "anatomy": [],
90
- "api": [],
91
- "composition": [],
92
- "events": [],
93
- "accessibility": []
94
- },
95
- "snippets": {
96
- "imports": null,
97
- "anatomy": [],
98
- "api": [],
99
- "composition": [],
100
- "events": [],
101
- "accessibility": []
39
+ "scrollArea": {
40
+ "imports": {
41
+ "source": "import { ScrollArea, ScrollAreaDefaultsProvider } from '@slotted/react/scroll-area';"
42
+ },
43
+ "anatomy": [
44
+ {
45
+ "part": "root",
46
+ "element": "div",
47
+ "required": true,
48
+ "purpose": "The frame. It holds the maximum, the five measurement attributes and whatever border, radius and ground the consumer gives it — and it is the element the veil is not on, which is why it exists."
49
+ },
50
+ {
51
+ "part": "viewport",
52
+ "element": "div[role=region]",
53
+ "required": true,
54
+ "purpose": "The scrollport. It clips, scrolls, carries the platform scrollbar and the veil, and takes the tab stop and the name a scrolling region owes — role, tabindex and name written only while the content overflows. Rendered by ScrollArea; reached through viewportProps."
55
+ },
56
+ {
57
+ "part": "content",
58
+ "element": "div",
59
+ "required": false,
60
+ "purpose": "The inset that scrolls with the content. Padding on a scrollport is not applied at its end edge in every engine, so an inset that has to survive a scroll to the end lives here. Content that carries its own inset needs no Content at all."
61
+ }
62
+ ],
63
+ "api": [
64
+ {
65
+ "name": "axis",
66
+ "type": "'block' | 'inline' | 'both'",
67
+ "defaultValue": "block",
68
+ "appliesTo": "ScrollArea",
69
+ "description": "Which axes scroll. Logical, so a vertical writing mode needs no second vocabulary"
70
+ },
71
+ {
72
+ "name": "scrollbars",
73
+ "type": "'auto' | 'always' | 'hover' | 'none'",
74
+ "defaultValue": "auto",
75
+ "appliesTo": "ScrollArea",
76
+ "description": "What the bar does: shown when needed, always reserved, painted only under a hand or the keyboard, or removed with the scrolling kept"
77
+ },
78
+ {
79
+ "name": "gutter",
80
+ "type": "'auto' | 'stable' | 'both-edges'",
81
+ "defaultValue": "stable",
82
+ "appliesTo": "ScrollArea",
83
+ "description": "scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column centred"
84
+ },
85
+ {
86
+ "name": "fade",
87
+ "type": "'both' | 'end' | 'none'",
88
+ "defaultValue": "both",
89
+ "appliesTo": "ScrollArea",
90
+ "description": "Where the veil is drawn: over what the reader has passed as well as what is ahead, only what is ahead, or nowhere"
91
+ },
92
+ {
93
+ "name": "overscroll",
94
+ "type": "'contain' | 'auto' | 'none'",
95
+ "defaultValue": "contain",
96
+ "appliesTo": "ScrollArea",
97
+ "description": "overscroll-behavior. contain keeps the last inch of scroll from moving the page behind the area"
98
+ },
99
+ {
100
+ "name": "maxBlockSize",
101
+ "type": "string",
102
+ "defaultValue": "—",
103
+ "appliesTo": "ScrollArea",
104
+ "description": "Scroll only past this size, as any CSS length. Mantine’s Autosize as one prop"
105
+ },
106
+ {
107
+ "name": "maxInlineSize",
108
+ "type": "string",
109
+ "defaultValue": "—",
110
+ "appliesTo": "ScrollArea",
111
+ "description": "The same bound on the inline axis"
112
+ },
113
+ {
114
+ "name": "tabbable",
115
+ "type": "boolean",
116
+ "defaultValue": "true",
117
+ "appliesTo": "ScrollArea",
118
+ "description": "Whether the scrollport joins the tab sequence while it overflows. Off only when the content is reachable another way"
119
+ },
120
+ {
121
+ "name": "messages",
122
+ "type": "Partial<ScrollAreaMessages>",
123
+ "defaultValue": "—",
124
+ "appliesTo": "ScrollArea",
125
+ "description": "Words laid over the language in force: the name the region is announced by (label), when nothing points at a heading"
126
+ },
127
+ {
128
+ "name": "labelledBy",
129
+ "type": "string",
130
+ "defaultValue": "—",
131
+ "appliesTo": "ScrollArea",
132
+ "description": "The id of the element that names the region. Wins over messages.label"
133
+ },
134
+ {
135
+ "name": "viewportProps",
136
+ "type": "ComponentPropsWithRef<'div'>",
137
+ "defaultValue": "—",
138
+ "appliesTo": "ScrollArea",
139
+ "description": "Native props for the scrollport — a className, a ref, an onScroll. Its role, tab stop and name are the family’s"
140
+ },
141
+ {
142
+ "name": "render",
143
+ "type": "(props) => ReactNode",
144
+ "defaultValue": "—",
145
+ "appliesTo": "ScrollArea, ScrollArea.Content",
146
+ "description": "Renders a different element for the frame or the inset"
147
+ }
148
+ ],
149
+ "composition": [
150
+ {
151
+ "name": "ScrollAreaDefaultsProvider",
152
+ "type": "axis | scrollbars | gutter | fade | overscroll",
153
+ "defaultValue": "—",
154
+ "appliesTo": "Provider",
155
+ "description": "An application decides once what its scroll areas look like; the region’s name comes from the language in force"
156
+ },
157
+ {
158
+ "name": "ref",
159
+ "type": "RefObject<ScrollAreaHandle>",
160
+ "defaultValue": "—",
161
+ "appliesTo": "ScrollArea",
162
+ "description": "root, viewport, state(), position(), scrollTo(), scrollToEdge(), reveal(), refresh() and focus()"
163
+ },
164
+ {
165
+ "name": "ScrollArea.Content",
166
+ "type": "div",
167
+ "defaultValue": "—",
168
+ "appliesTo": "inside ScrollArea",
169
+ "description": "The inset that scrolls with the content; optional, and a plain element when the content carries its own"
170
+ },
171
+ {
172
+ "name": "viewportProps.onScroll, viewportProps.ref",
173
+ "type": "(event) => void, Ref",
174
+ "defaultValue": "—",
175
+ "appliesTo": "ScrollArea",
176
+ "description": "Composed, never replaced: the consumer’s handler runs and the family measures from the same event"
177
+ },
178
+ {
179
+ "name": "data-focus-origin",
180
+ "type": "attribute",
181
+ "defaultValue": "—",
182
+ "appliesTo": "viewport",
183
+ "description": "keyboard or pointer while the viewport holds focus. The ring is drawn for keyboard only: a click on the content focuses the viewport, and the next Shift would make it match :focus-visible. createFocusOrigin in @slotted/core/focus writes it"
184
+ },
185
+ {
186
+ "name": "data-overflowing, data-at-block-start, data-at-block-end, data-at-inline-start, data-at-inline-end",
187
+ "type": "attribute",
188
+ "defaultValue": "—",
189
+ "appliesTo": "root",
190
+ "description": "The measurement in the DOM, in logical names, for a consumer’s own CSS. An edge attribute says that end is showing"
191
+ },
192
+ {
193
+ "name": "scrollbar-width: none on [data-part=viewport]",
194
+ "type": "CSS",
195
+ "defaultValue": "—",
196
+ "appliesTo": "the consumer’s stylesheet",
197
+ "description": "The composition for a product that needs a drawn thumb: hide the platform bar and draw one against the edge attributes"
198
+ }
199
+ ],
200
+ "events": [
201
+ {
202
+ "name": "onScrollChange",
203
+ "payload": "(position: { block: number; inline: number }, event: UIEvent)",
204
+ "when": "On every scroll, with the distance from each logical start. A report and not a request: the browser moves the position on a wheel, a fling, a Tab into a child and a printed page, and nothing here can refuse any of them."
205
+ },
206
+ {
207
+ "name": "onOverflowChange",
208
+ "payload": "(state: { block: OverflowState; inline: OverflowState })",
209
+ "when": "Once on mount and once per change: whether each axis overflows and which of its ends show. The same measurement is written on the root as data-overflowing and the four data-at-* attributes."
210
+ }
211
+ ],
212
+ "accessibility": [
213
+ "There is no APG pattern for a scroll container; what governs is WCAG 2.1.1, tested by the scrollable-region-focusable rule, and 4.1.2, which is what a tab stop then owes. The viewport is role=\"region\" with tabindex=\"0\" and a name, written only while the content overflows — a tab stop on content that fits is a tab stop that does nothing.",
214
+ "The name resolves in one order: labelledBy, then messages.label, then the catalog of the language in force, so a product with fifty areas names them once. Base UI and Zag write role=\"presentation\" beside their tab stop, which answers the rule that is tested and breaks the one that is not.",
215
+ "Nine keys are the platform’s on a focused scrollport — the arrows, PageUp and PageDown, Home, End and Space — and the family binds none of them. The one key it owns is Tab, and tabbable={false} gives that back when a consumer knows the content is reachable another way.",
216
+ "The scrollbar is the platform’s, themed through scrollbar-color and scrollbar-width. The trough click, the scrollbar context menu, the system’s own overlay behaviour and the bar before hydration all survive; a drawn thumb loses every one of them.",
217
+ "The veil is a mask and is removed under forced-colors, where the system owns the palette and a veil over system text loses legibility for nothing. The scrollbar goes back to the system’s own there too."
218
+ ]
102
219
  }
103
220
  },
104
221
  "tokens": [
@@ -116,5 +233,102 @@
116
233
  "--slotted-space-8",
117
234
  "--slotted-surface-sunken"
118
235
  ],
119
- "examples": []
236
+ "examples": [
237
+ {
238
+ "id": "playground",
239
+ "title": "A bounded region, and the platform’s own bar",
240
+ "note": "Scroll the notes. The bar is the browser’s, themed; the veil at the bottom says there is more and lifts when the end is reached. Tab reaches the region, and the arrows and page keys are the platform’s.",
241
+ "language": "tsx",
242
+ "source": "<ScrollArea className=\"notes\" messages={{ label: 'Notas de versão' }}>\n <ScrollArea.Content>{notes}</ScrollArea.Content>\n</ScrollArea>;\n",
243
+ "verdict": "excerpt"
244
+ },
245
+ {
246
+ "id": "axis",
247
+ "title": "Which axes scroll",
248
+ "note": "block is the default and holds the inline axis still; inline runs a row past its box and mirrors with the document; both scrolls a log on both, with four veils meeting at the corners.",
249
+ "language": "tsx",
250
+ "source": "<ScrollArea axis=\"inline\">…</ScrollArea>;\n<ScrollArea axis=\"both\">…</ScrollArea>;\n",
251
+ "verdict": "excerpt"
252
+ },
253
+ {
254
+ "id": "scrollbars",
255
+ "title": "Four things the bar can do",
256
+ "note": "auto shows the bar when needed; always reserves it on content that fits; hover keeps the gutter and paints nothing until a hand or the keyboard is inside; none removes the bar and leaves the veil to say there is more.",
257
+ "language": "tsx",
258
+ "source": "<ScrollArea scrollbars=\"hover\">…</ScrollArea>;\n",
259
+ "verdict": "excerpt"
260
+ },
261
+ {
262
+ "id": "fade",
263
+ "title": "The veil, and where it falls",
264
+ "note": "Each area is scrolled into the middle of its content. both dims what the reader has passed as well as what is ahead; end only what is ahead; none leaves the scrollbar as the only sign.",
265
+ "language": "tsx",
266
+ "source": "<ScrollArea fade=\"end\">…</ScrollArea>;\n",
267
+ "verdict": "excerpt"
268
+ },
269
+ {
270
+ "id": "gutter",
271
+ "title": "Room for a bar that is not there yet",
272
+ "note": "The painted inset is the measure. auto reaches the frame and will shift the moment the content overflows; stable holds a bar’s width back so nothing moves; both-edges holds it back on both sides, so a centred column stays centred.",
273
+ "language": "tsx",
274
+ "source": "<ScrollArea gutter=\"both-edges\">…</ScrollArea>;\n",
275
+ "verdict": "excerpt"
276
+ },
277
+ {
278
+ "id": "overscroll",
279
+ "title": "Where the last inch of scroll goes",
280
+ "note": "Scroll the inner area to its end and keep going. With contain the page behind it stays put; with auto the scroll chains to the page, which is the browser’s default and the defect the property was added for.",
281
+ "language": "tsx",
282
+ "source": "<ScrollArea overscroll=\"auto\">…</ScrollArea>;\n",
283
+ "verdict": "excerpt"
284
+ },
285
+ {
286
+ "id": "maximum",
287
+ "title": "Scroll only past a maximum",
288
+ "note": "A list of three items takes the height it needs and scrolls nothing. Add items and it grows until it meets the maximum, then scrolls — Mantine’s Autosize as one prop, and the region wiring appears at the same moment the overflow does.",
289
+ "language": "tsx",
290
+ "source": "<ScrollArea maxBlockSize=\"12rem\">…</ScrollArea>;\n",
291
+ "verdict": "excerpt"
292
+ },
293
+ {
294
+ "id": "keyboard",
295
+ "title": "One key the family owns, and nine it leaves alone",
296
+ "note": "Tab into the region and press the arrows, PageDown, End and Home: every one is the platform’s. The second area holds a link, so tabbable is off and Tab goes straight to the link — the scrollport is still focusable by pointer.",
297
+ "language": "tsx",
298
+ "source": "<ScrollArea tabbable={false}>\n <a href=\"#…\">…</a>\n</ScrollArea>;\n",
299
+ "verdict": "excerpt"
300
+ },
301
+ {
302
+ "id": "content",
303
+ "title": "Content the family did not choose",
304
+ "note": "Three unbroken paths scroll on the inline axis and are veiled where they leave the box; a translated paragraph twice the length wraps and scrolls; three short lines fit, and the area is then a plain box with no veil, no bar and no tab stop.",
305
+ "language": "tsx",
306
+ "source": "<ScrollArea axis=\"both\" className=\"log\">\n …\n</ScrollArea>;\n",
307
+ "verdict": "excerpt"
308
+ },
309
+ {
310
+ "id": "composition",
311
+ "title": "A handle, a report, and a different element",
312
+ "note": "The buttons drive the handle: to the end, back to the start, and to one row by reveal, which moves the area and nothing around it. The position is reported on every scroll and shown beside the area; the frame is rendered as a section.",
313
+ "language": "tsx",
314
+ "source": "const area = useRef<ScrollAreaHandle>(null);\n\n<ScrollArea\n onScrollChange={(position) => setBlock(position.block)}\n ref={area}\n render={(props) => <section {...props} />}\n>\n …\n</ScrollArea>;\n<Button onClick={() => area.current?.scrollToEdge('block-end')}>Fim</Button>;\n",
315
+ "verdict": "excerpt"
316
+ },
317
+ {
318
+ "id": "print",
319
+ "title": "What the printer gets",
320
+ "note": "Open the print preview of this page. The area releases its maximum and its clipping under @media print, so the whole content is on paper rather than the slice that happened to be in view — which is what every surveyed implementation prints.",
321
+ "language": "css",
322
+ "source": "@media print {\n [data-ui='scroll-area'] > [data-part='viewport'] {\n max-block-size: none;\n overflow: visible;\n mask-image: none;\n }\n}\n",
323
+ "verdict": "excerpt"
324
+ },
325
+ {
326
+ "id": "accessibility",
327
+ "title": "What a screen reader is told",
328
+ "note": "The first area overflows and is a named region with a tab stop; the second fits and is nothing at all. The third is named by the heading above it rather than by a string, and a provider sets the fallback name once for the page.",
329
+ "language": "tsx",
330
+ "source": "<SlottedProvider locale=\"pt-BR\" catalogs={{ 'pt-BR': PT_BR }}>\n <h3 id=\"notas\">Notas de versão</h3>\n <ScrollArea labelledBy=\"notas\">…</ScrollArea>\n</SlottedProvider>;\n",
331
+ "verdict": "excerpt"
332
+ }
333
+ ]
120
334
  }
@@ -3,6 +3,204 @@
3
3
 
4
4
  `data-ui="scroll-area"` · Scrolling region with styled scrollbars.
5
5
 
6
+ ## Import
7
+
8
+ ```tsx
9
+ import { ScrollArea, ScrollAreaDefaultsProvider } from '@slotted/react/scroll-area';
10
+ ```
11
+
12
+ ## Minimal example
13
+
14
+ Excerpt — not a complete module
15
+
16
+ ```tsx
17
+ <ScrollArea className="notes" messages={{ label: 'Notas de versão' }}>
18
+ <ScrollArea.Content>{notes}</ScrollArea.Content>
19
+ </ScrollArea>;
20
+ ```
21
+
22
+ ## Anatomy
23
+
24
+ | Part | Element | Required |
25
+ | --- | --- | --- |
26
+ | `root` | div | yes |
27
+ | `viewport` | div[role=region] | yes |
28
+ | `content` | div | no |
29
+
30
+ ## Props
31
+
32
+ | Name | Type | Default | Applies to | Description |
33
+ | --- | --- | --- | --- | --- |
34
+ | `axis` | `'block' \| 'inline' \| 'both'` | block | ScrollArea | Which axes scroll. Logical, so a vertical writing mode needs no second vocabulary |
35
+ | `scrollbars` | `'auto' \| 'always' \| 'hover' \| 'none'` | auto | ScrollArea | What the bar does: shown when needed, always reserved, painted only under a hand or the keyboard, or removed with the scrolling kept |
36
+ | `gutter` | `'auto' \| 'stable' \| 'both-edges'` | stable | ScrollArea | scrollbar-gutter. stable stops the content shifting when it first overflows; both-edges keeps a column centred |
37
+ | `fade` | `'both' \| 'end' \| 'none'` | both | ScrollArea | Where the veil is drawn: over what the reader has passed as well as what is ahead, only what is ahead, or nowhere |
38
+ | `overscroll` | `'contain' \| 'auto' \| 'none'` | contain | ScrollArea | overscroll-behavior. contain keeps the last inch of scroll from moving the page behind the area |
39
+ | `maxBlockSize` | `string` | — | ScrollArea | Scroll only past this size, as any CSS length. Mantine’s Autosize as one prop |
40
+ | `maxInlineSize` | `string` | — | ScrollArea | The same bound on the inline axis |
41
+ | `tabbable` | `boolean` | true | ScrollArea | Whether the scrollport joins the tab sequence while it overflows. Off only when the content is reachable another way |
42
+ | `messages` | `Partial<ScrollAreaMessages>` | — | ScrollArea | Words laid over the language in force: the name the region is announced by (label), when nothing points at a heading |
43
+ | `labelledBy` | `string` | — | ScrollArea | The id of the element that names the region. Wins over messages.label |
44
+ | `viewportProps` | `ComponentPropsWithRef<'div'>` | — | ScrollArea | Native props for the scrollport — a className, a ref, an onScroll. Its role, tab stop and name are the family’s |
45
+ | `render` | `(props) => ReactNode` | — | ScrollArea, ScrollArea.Content | Renders a different element for the frame or the inset |
46
+ | `ScrollAreaDefaultsProvider` | `axis \| scrollbars \| gutter \| fade \| overscroll` | — | Provider | An application decides once what its scroll areas look like; the region’s name comes from the language in force |
47
+ | `ref` | `RefObject<ScrollAreaHandle>` | — | ScrollArea | root, viewport, state(), position(), scrollTo(), scrollToEdge(), reveal(), refresh() and focus() |
48
+ | `ScrollArea.Content` | `div` | — | inside ScrollArea | The inset that scrolls with the content; optional, and a plain element when the content carries its own |
49
+ | `viewportProps.onScroll, viewportProps.ref` | `(event) => void, Ref` | — | ScrollArea | Composed, never replaced: the consumer’s handler runs and the family measures from the same event |
50
+ | `data-focus-origin` | `attribute` | — | viewport | keyboard or pointer while the viewport holds focus. The ring is drawn for keyboard only: a click on the content focuses the viewport, and the next Shift would make it match :focus-visible. createFocusOrigin in @slotted/core/focus writes it |
51
+ | `data-overflowing, data-at-block-start, data-at-block-end, data-at-inline-start, data-at-inline-end` | `attribute` | — | root | The measurement in the DOM, in logical names, for a consumer’s own CSS. An edge attribute says that end is showing |
52
+ | `scrollbar-width: none on [data-part=viewport]` | `CSS` | — | the consumer’s stylesheet | The composition for a product that needs a drawn thumb: hide the platform bar and draw one against the edge attributes |
53
+
54
+ ## Events
55
+
56
+ | Name | Payload | When |
57
+ | --- | --- | --- |
58
+ | `onScrollChange` | `(position: { block: number; inline: number }, event: UIEvent)` | On every scroll, with the distance from each logical start. A report and not a request: the browser moves the position on a wheel, a fling, a Tab into a child and a printed page, and nothing here can refuse any of them. |
59
+ | `onOverflowChange` | `(state: { block: OverflowState; inline: OverflowState })` | Once on mount and once per change: whether each axis overflows and which of its ends show. The same measurement is written on the root as data-overflowing and the four data-at-* attributes. |
60
+
61
+ ## Rules
62
+
63
+ - There is no APG pattern for a scroll container; what governs is WCAG 2.1.1, tested by the scrollable-region-focusable rule, and 4.1.2, which is what a tab stop then owes. The viewport is role="region" with tabindex="0" and a name, written only while the content overflows — a tab stop on content that fits is a tab stop that does nothing.
64
+ - The name resolves in one order: labelledBy, then messages.label, then the catalog of the language in force, so a product with fifty areas names them once. Base UI and Zag write role="presentation" beside their tab stop, which answers the rule that is tested and breaks the one that is not.
65
+ - Nine keys are the platform’s on a focused scrollport — the arrows, PageUp and PageDown, Home, End and Space — and the family binds none of them. The one key it owns is Tab, and tabbable={false} gives that back when a consumer knows the content is reachable another way.
66
+ - The scrollbar is the platform’s, themed through scrollbar-color and scrollbar-width. The trough click, the scrollbar context menu, the system’s own overlay behaviour and the bar before hydration all survive; a drawn thumb loses every one of them.
67
+ - The veil is a mask and is removed under forced-colors, where the system owns the palette and a veil over system text loses legibility for nothing. The scrollbar goes back to the system’s own there too.
68
+
6
69
  ## Tokens
7
70
 
8
71
  `--slotted-border-strong`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-scroll-area-fade-size`, `--slotted-scroll-area-inset`, `--slotted-scroll-area-thumb-color`, `--slotted-scroll-area-track-color`, `--slotted-space-5`, `--slotted-space-8`, `--slotted-surface-sunken`
72
+
73
+ ## Examples
74
+
75
+ ### Which axes scroll
76
+
77
+ block is the default and holds the inline axis still; inline runs a row past its box and mirrors with the document; both scrolls a log on both, with four veils meeting at the corners.
78
+
79
+ Excerpt — not a complete module
80
+
81
+ ```tsx
82
+ <ScrollArea axis="inline">…</ScrollArea>;
83
+ <ScrollArea axis="both">…</ScrollArea>;
84
+ ```
85
+
86
+ ### Four things the bar can do
87
+
88
+ auto shows the bar when needed; always reserves it on content that fits; hover keeps the gutter and paints nothing until a hand or the keyboard is inside; none removes the bar and leaves the veil to say there is more.
89
+
90
+ Excerpt — not a complete module
91
+
92
+ ```tsx
93
+ <ScrollArea scrollbars="hover">…</ScrollArea>;
94
+ ```
95
+
96
+ ### The veil, and where it falls
97
+
98
+ Each area is scrolled into the middle of its content. both dims what the reader has passed as well as what is ahead; end only what is ahead; none leaves the scrollbar as the only sign.
99
+
100
+ Excerpt — not a complete module
101
+
102
+ ```tsx
103
+ <ScrollArea fade="end">…</ScrollArea>;
104
+ ```
105
+
106
+ ### Room for a bar that is not there yet
107
+
108
+ The painted inset is the measure. auto reaches the frame and will shift the moment the content overflows; stable holds a bar’s width back so nothing moves; both-edges holds it back on both sides, so a centred column stays centred.
109
+
110
+ Excerpt — not a complete module
111
+
112
+ ```tsx
113
+ <ScrollArea gutter="both-edges">…</ScrollArea>;
114
+ ```
115
+
116
+ ### Where the last inch of scroll goes
117
+
118
+ Scroll the inner area to its end and keep going. With contain the page behind it stays put; with auto the scroll chains to the page, which is the browser’s default and the defect the property was added for.
119
+
120
+ Excerpt — not a complete module
121
+
122
+ ```tsx
123
+ <ScrollArea overscroll="auto">…</ScrollArea>;
124
+ ```
125
+
126
+ ### Scroll only past a maximum
127
+
128
+ A list of three items takes the height it needs and scrolls nothing. Add items and it grows until it meets the maximum, then scrolls — Mantine’s Autosize as one prop, and the region wiring appears at the same moment the overflow does.
129
+
130
+ Excerpt — not a complete module
131
+
132
+ ```tsx
133
+ <ScrollArea maxBlockSize="12rem">…</ScrollArea>;
134
+ ```
135
+
136
+ ### One key the family owns, and nine it leaves alone
137
+
138
+ Tab into the region and press the arrows, PageDown, End and Home: every one is the platform’s. The second area holds a link, so tabbable is off and Tab goes straight to the link — the scrollport is still focusable by pointer.
139
+
140
+ Excerpt — not a complete module
141
+
142
+ ```tsx
143
+ <ScrollArea tabbable={false}>
144
+ <a href="#…">…</a>
145
+ </ScrollArea>;
146
+ ```
147
+
148
+ ### Content the family did not choose
149
+
150
+ Three unbroken paths scroll on the inline axis and are veiled where they leave the box; a translated paragraph twice the length wraps and scrolls; three short lines fit, and the area is then a plain box with no veil, no bar and no tab stop.
151
+
152
+ Excerpt — not a complete module
153
+
154
+ ```tsx
155
+ <ScrollArea axis="both" className="log">
156
+ …
157
+ </ScrollArea>;
158
+ ```
159
+
160
+ ### A handle, a report, and a different element
161
+
162
+ The buttons drive the handle: to the end, back to the start, and to one row by reveal, which moves the area and nothing around it. The position is reported on every scroll and shown beside the area; the frame is rendered as a section.
163
+
164
+ Excerpt — not a complete module
165
+
166
+ ```tsx
167
+ const area = useRef<ScrollAreaHandle>(null);
168
+
169
+ <ScrollArea
170
+ onScrollChange={(position) => setBlock(position.block)}
171
+ ref={area}
172
+ render={(props) => <section {...props} />}
173
+ >
174
+ …
175
+ </ScrollArea>;
176
+ <Button onClick={() => area.current?.scrollToEdge('block-end')}>Fim</Button>;
177
+ ```
178
+
179
+ ### What the printer gets
180
+
181
+ Open the print preview of this page. The area releases its maximum and its clipping under @media print, so the whole content is on paper rather than the slice that happened to be in view — which is what every surveyed implementation prints.
182
+
183
+ Excerpt — not a complete module
184
+
185
+ ```css
186
+ @media print {
187
+ [data-ui='scroll-area'] > [data-part='viewport'] {
188
+ max-block-size: none;
189
+ overflow: visible;
190
+ mask-image: none;
191
+ }
192
+ }
193
+ ```
194
+
195
+ ### What a screen reader is told
196
+
197
+ The first area overflows and is a named region with a tab stop; the second fits and is nothing at all. The third is named by the heading above it rather than by a string, and a provider sets the fallback name once for the page.
198
+
199
+ Excerpt — not a complete module
200
+
201
+ ```tsx
202
+ <SlottedProvider locale="pt-BR" catalogs={{ 'pt-BR': PT_BR }}>
203
+ <h3 id="notas">Notas de versão</h3>
204
+ <ScrollArea labelledBy="notas">…</ScrollArea>
205
+ </SlottedProvider>;
206
+ ```
@@ -79,48 +79,56 @@
79
79
  },
80
80
  {
81
81
  "part": "header",
82
+ "parent": "root",
82
83
  "element": "div",
83
84
  "required": false,
84
- "purpose": "The row above the body: the heading, its tags and the actions on one baseline, the eyebrow above and the description below on rows of their own. Sticky under the page chrome when sticky is set, painted in the page’s ground so what scrolls under it is covered; its height is measured and added to the sticky top the body publishes, so a table’s column header or a nested section inside stops under it, not under the page."
85
+ "purpose": "The row above the body: the heading, its tags and the actions on one baseline, the eyebrow above and the description below on rows of their own. Sticky under the page chrome when sticky is set, painted in the page’s ground so what scrolls under it is covered; it carries data-stuck while content passes under it, and its ground is --slotted-section-header-background, which defaults to the page’s; its height is measured and added to the sticky top the body publishes, so a table’s column header or a nested section inside stops under it, not under the page."
85
86
  },
86
87
  {
87
88
  "part": "title",
89
+ "parent": "header",
88
90
  "element": "div",
89
91
  "required": false,
90
92
  "purpose": "Eyebrow, heading, tags and description, in that order, laid out on the header’s rows, so the actions align with the heading and not with the top of an eyebrow."
91
93
  },
92
94
  {
93
95
  "part": "eyebrow",
96
+ "parent": "title",
94
97
  "element": "span",
95
98
  "required": false,
96
99
  "purpose": "A short overline above the heading in small capitals — a count, a category. Structural rather than status: status is a tag."
97
100
  },
98
101
  {
99
102
  "part": "heading",
103
+ "parent": "title",
100
104
  "element": "h1 to h6, from the outline or level, or the element render returns",
101
105
  "required": false,
102
106
  "purpose": "The heading at the rank the section resolved. Rendering it is what names the region; render keeps the rank through aria-level when the element is not a heading."
103
107
  },
104
108
  {
105
109
  "part": "tags",
110
+ "parent": "title",
106
111
  "element": "div",
107
112
  "required": false,
108
113
  "purpose": "Badges or tags beside the heading — a count, a status — aligned on the heading’s baseline. Outside the heading, so they are not read into the region’s name. They never leave the heading’s row: a long heading wraps its words and the badges stack beside it."
109
114
  },
110
115
  {
111
116
  "part": "description",
117
+ "parent": "title",
112
118
  "element": "p",
113
119
  "required": false,
114
120
  "purpose": "A paragraph under the heading, in the muted text, with a measure of seventy characters."
115
121
  },
116
122
  {
117
123
  "part": "actions",
124
+ "parent": "header",
118
125
  "element": "div",
119
126
  "required": false,
120
127
  "purpose": "The end of the heading’s row, on its baseline: a Button, a Toolbar, a Link. On a header narrower than 20rem it takes a row of its own at the end."
121
128
  },
122
129
  {
123
130
  "part": "body",
131
+ "parent": "root",
124
132
  "element": "div",
125
133
  "required": true,
126
134
  "purpose": "The content, wrapped one HeadingLevel deeper, so a section inside it takes the next rank without being told."
@@ -209,6 +217,7 @@
209
217
  ],
210
218
  "events": [],
211
219
  "accessibility": [
220
+ "A description outside SectionTitle is not styled: the stylesheet reaches it as a child of the title, so SectionDescription is written inside SectionTitle and nowhere else.",
212
221
  "The practice is the WAI-ARIA APG’s Landmark Regions (w3.org/WAI/ARIA/apg/practices/landmark-regions/): a section element with an accessible name is a region landmark. The root is aria-labelledby its heading once one is rendered, so a section with a heading appears in the landmark list under the heading’s words, and one without a heading is a plain section that clutters nothing.",
213
222
  "The rank is real. The heading renders h1 to h6 from the outline typography keeps — h2 directly in a page body, one deeper inside another section’s body — and level overrides it. A heading rendered into another element through render carries role=\"heading\" and aria-level, so the outline survives an editable or linked title.",
214
223
  "The body is one HeadingLevel deeper, which is what keeps a nested section, a collapsible or a table caption at the right rank without either family reading the other. The HTML Standard requires each heading to be at most one deeper than the one before, and stepping by exactly one is the only way to hold that in a tree assembled from components.",
@@ -237,6 +246,7 @@
237
246
  "--slotted-section-border",
238
247
  "--slotted-section-description-measure",
239
248
  "--slotted-section-gap",
249
+ "--slotted-section-header-background",
240
250
  "--slotted-section-heading-size-lg",
241
251
  "--slotted-section-heading-size-md",
242
252
  "--slotted-section-heading-size-sm",