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

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 (464) hide show
  1. package/dist/{accordion-n5D6mcmS.js → accordion-xW-aFeGb.js} +1 -1
  2. package/dist/accordion.js +1 -1
  3. package/dist/{action-bar-Cq4dt4hP.js → action-bar-BSUuY6pJ.js} +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/{action-sheet-dNnB26br.js → action-sheet-BouG2qh_.js} +1 -1
  6. package/dist/action-sheet.js +1 -1
  7. package/dist/{app-shell-ClwskWBN.js → app-shell-D54YkU7E.js} +127 -111
  8. package/dist/app-shell.js +2 -2
  9. package/dist/{attachment-AAjprQyU.js → attachment-MqczA38F.js} +1 -1
  10. package/dist/attachment.js +1 -1
  11. package/dist/{badge-pgYVOnZO.js → badge-DFskjsxA.js} +21 -20
  12. package/dist/badge.js +1 -1
  13. package/dist/calendar-YQ784o4d.js +617 -0
  14. package/dist/calendar.js +1 -1
  15. package/dist/{cascader-CivJ76VR.js → cascader-fq8fNWSr.js} +1 -1
  16. package/dist/cascader.js +1 -1
  17. package/dist/chart-vedR0BDN.js +1055 -0
  18. package/dist/chart.js +1 -1
  19. package/dist/{checkbox-D3E4gzMe.js → checkbox-DsJhlB5c.js} +3 -3
  20. package/dist/{checkbox-group-Dg5YN3fx.js → checkbox-group-pvX9R_yS.js} +2 -2
  21. package/dist/checkbox-group.js +1 -1
  22. package/dist/checkbox.js +1 -1
  23. package/dist/{collapsible-CT4_3aXm.js → collapsible-KzBs5HvA.js} +2 -2
  24. package/dist/collapsible.js +1 -1
  25. package/dist/{color-picker-CaLcV-63.js → color-picker-i-MJ5VVs.js} +9 -9
  26. package/dist/color-picker.js +1 -1
  27. package/dist/column-manager-D028QbfO.js +586 -0
  28. package/dist/column-manager.js +1 -1
  29. package/dist/{combobox-C2qlkTw6.js → combobox-599heRN_.js} +1 -1
  30. package/dist/combobox.js +1 -1
  31. package/dist/{context-menu-WiKS4Zwv.js → context-menu-WM_tT9hz.js} +1 -1
  32. package/dist/context-menu.js +1 -1
  33. package/dist/{currency-field-BO2P6FPd.js → currency-field-rS36pjCO.js} +182 -145
  34. package/dist/currency-field.js +1 -1
  35. package/dist/dashboard-grid-Dh2Q3IQv.js +1201 -0
  36. package/dist/dashboard-grid.js +1 -1
  37. package/dist/{data-grid-B7UuUvBH.js → data-grid-D106baPp.js} +1425 -1399
  38. package/dist/data-grid.js +1 -1
  39. package/dist/{data-list-CyEq7M2D.js → data-list-BA0xrySM.js} +2 -2
  40. package/dist/data-list.js +1 -1
  41. package/dist/{date-field-CxubN_3u.js → date-field-BZ5JcvXJ.js} +1 -1
  42. package/dist/date-field.js +1 -1
  43. package/dist/{date-picker-DMcMFW_N.js → date-picker-BvEbsbJC.js} +29 -27
  44. package/dist/date-picker.js +2 -2
  45. package/dist/{date-range-picker-D9zo93NE.js → date-range-picker-uIr-yReE.js} +169 -164
  46. package/dist/date-range-picker.js +1 -1
  47. package/dist/{datetime-field-GMIqBuTa.js → datetime-field-DDs3mV9Z.js} +1 -1
  48. package/dist/datetime-field.js +1 -1
  49. package/dist/{datetime-picker-lOXZbAx_.js → datetime-picker-DDYXqrjm.js} +175 -164
  50. package/dist/datetime-picker.js +1 -1
  51. package/dist/{datetime-range-picker-DU5ctZbm.js → datetime-range-picker-CFTHW771.js} +194 -183
  52. package/dist/datetime-range-picker.js +1 -1
  53. package/dist/{detail-panel-DLgRhEFO.js → detail-panel-EImAtksY.js} +3 -3
  54. package/dist/detail-panel.js +1 -1
  55. package/dist/docs/accordion.examples.md +743 -0
  56. package/dist/docs/accordion.json +84 -28
  57. package/dist/docs/accordion.md +56 -152
  58. package/dist/docs/action-sheet.examples.md +771 -0
  59. package/dist/docs/action-sheet.json +91 -51
  60. package/dist/docs/action-sheet.md +72 -233
  61. package/dist/docs/app-shell.json +7 -0
  62. package/dist/docs/app-shell.md +1 -0
  63. package/dist/docs/badge.json +8 -0
  64. package/dist/docs/badge.md +1 -0
  65. package/dist/docs/breadcrumb.json +64 -16
  66. package/dist/docs/breadcrumb.md +489 -56
  67. package/dist/docs/calendar.json +8 -1
  68. package/dist/docs/calendar.md +2 -1
  69. package/dist/docs/chart.examples.md +48 -0
  70. package/dist/docs/chart.json +60 -7
  71. package/dist/docs/chart.md +9 -5
  72. package/dist/docs/collapsible.examples.md +575 -0
  73. package/dist/docs/collapsible.json +89 -49
  74. package/dist/docs/collapsible.md +47 -197
  75. package/dist/docs/context-menu.json +58 -18
  76. package/dist/docs/context-menu.md +442 -77
  77. package/dist/docs/currency-field.examples.md +1 -1
  78. package/dist/docs/currency-field.json +4 -4
  79. package/dist/docs/currency-field.md +3 -3
  80. package/dist/docs/data-grid.json +15 -1
  81. package/dist/docs/data-grid.md +1 -1
  82. package/dist/docs/data-grid.props.md +2 -0
  83. package/dist/docs/date-picker.json +9 -2
  84. package/dist/docs/date-picker.md +3 -2
  85. package/dist/docs/date-range-picker.json +9 -2
  86. package/dist/docs/date-range-picker.md +3 -2
  87. package/dist/docs/datetime-picker.json +9 -2
  88. package/dist/docs/datetime-picker.md +3 -2
  89. package/dist/docs/datetime-range-picker.json +9 -2
  90. package/dist/docs/datetime-range-picker.md +3 -2
  91. package/dist/docs/field.json +15 -1
  92. package/dist/docs/field.md +3 -1
  93. package/dist/docs/floating-panel.json +56 -0
  94. package/dist/docs/floating-panel.md +329 -8
  95. package/dist/docs/guidelines/async-feedback.md +11 -1
  96. package/dist/docs/guidelines/index.md +1 -0
  97. package/dist/docs/hover-card.json +65 -17
  98. package/dist/docs/hover-card.md +422 -64
  99. package/dist/docs/loading-overlay.examples.md +577 -0
  100. package/dist/docs/loading-overlay.json +55 -23
  101. package/dist/docs/loading-overlay.md +49 -168
  102. package/dist/docs/menu.json +67 -0
  103. package/dist/docs/menu.md +8 -1
  104. package/dist/docs/menubar.json +55 -15
  105. package/dist/docs/menubar.md +488 -42
  106. package/dist/docs/pagination.json +89 -33
  107. package/dist/docs/pagination.md +462 -55
  108. package/dist/docs/popover.json +41 -3
  109. package/dist/docs/popover.md +5 -2
  110. package/dist/docs/section.json +1 -1
  111. package/dist/docs/section.md +1 -1
  112. package/dist/docs/select.json +55 -1
  113. package/dist/docs/select.md +7 -2
  114. package/dist/docs/skills/theme-app/SKILL.md +3 -2
  115. package/dist/docs/skills/waiting-states/SKILL.md +4 -1
  116. package/dist/docs/stat-card.json +9 -1
  117. package/dist/docs/stat-card.md +2 -1
  118. package/dist/docs/switch.json +12 -5
  119. package/dist/docs/switch.md +5 -4
  120. package/dist/docs/tag.json +8 -0
  121. package/dist/docs/tag.md +1 -0
  122. package/dist/docs/time-picker.json +1 -1
  123. package/dist/docs/time-picker.md +1 -1
  124. package/dist/docs/time-range-picker.json +1 -1
  125. package/dist/docs/time-range-picker.md +1 -1
  126. package/dist/docs/toggle-group.examples.md +584 -0
  127. package/dist/docs/toggle-group.json +84 -20
  128. package/dist/docs/toggle-group.md +17 -182
  129. package/dist/docs/toggle.json +93 -37
  130. package/dist/docs/toggle.md +304 -51
  131. package/dist/{drawer-Du1aC1px.js → drawer-CQagePr_.js} +256 -256
  132. package/dist/drawer.js +1 -1
  133. package/dist/{entity-picker-BwJX0gNJ.js → entity-picker-CC4VoC3p.js} +2 -2
  134. package/dist/entity-picker.js +1 -1
  135. package/dist/{event-calendar-biSTH0yK.js → event-calendar-CjmF_e0H.js} +6 -6
  136. package/dist/event-calendar.js +1 -1
  137. package/dist/field-C-HRhke0.js +421 -0
  138. package/dist/{field-group-7zV68b3d.js → field-group-CU0PasvW.js} +1 -1
  139. package/dist/field-group.js +1 -1
  140. package/dist/field.js +1 -1
  141. package/dist/{filter-bar-BQZFgV0A.js → filter-bar-B3QJD7SZ.js} +25 -25
  142. package/dist/filter-bar.js +1 -1
  143. package/dist/{hover-card-D8OyhmEG.js → hover-card-CTItbEfH.js} +2 -2
  144. package/dist/hover-card.js +1 -1
  145. package/dist/{import-export-center-DWSEOV5Z.js → import-export-center-CW8YVZev.js} +3 -3
  146. package/dist/import-export-center.js +1 -1
  147. package/dist/index.js +132 -132
  148. package/dist/{listbox-CWU3DiEt.js → listbox-ZqiJ2yer.js} +1 -1
  149. package/dist/listbox.js +1 -1
  150. package/dist/{loading-overlay-BLIrcaoj.js → loading-overlay-BxIktMtQ.js} +1 -1
  151. package/dist/loading-overlay.js +1 -1
  152. package/dist/{markdown-7wOBMXTl.js → markdown-BdskE4-L.js} +1 -1
  153. package/dist/markdown.js +1 -1
  154. package/dist/menu-parts-DXs5YuUA.js +932 -0
  155. package/dist/menu.js +1 -1
  156. package/dist/{menubar-k8Q4_p9l.js → menubar-CVoAFc6r.js} +2 -2
  157. package/dist/menubar.js +1 -1
  158. package/dist/{multi-select-DEd_92BC.js → multi-select-Dc2d6dDB.js} +1 -1
  159. package/dist/multi-select.js +1 -1
  160. package/dist/{number-field-BJKoidAE.js → number-field-BQ54hXmk.js} +1 -1
  161. package/dist/number-field.js +1 -1
  162. package/dist/{otp-input-Czz9Z6dQ.js → otp-input-DRooqa3f.js} +1 -1
  163. package/dist/otp-input.js +1 -1
  164. package/dist/{page-header-NN3Jq5vb.js → page-header-DmwBGwlm.js} +1 -1
  165. package/dist/page-header.js +1 -1
  166. package/dist/{pagination-D0PUAFYm.js → pagination-BRXuyPzo.js} +1 -1
  167. package/dist/pagination.js +1 -1
  168. package/dist/{picker-frame-_9ZqQOjf.js → picker-frame-B6sPCP5Y.js} +1 -1
  169. package/dist/popover-1DlOu95x.js +576 -0
  170. package/dist/popover.js +1 -1
  171. package/dist/{progress-indicator-D0acshNn.js → progress-indicator-DRr0Gj6w.js} +1 -0
  172. package/dist/progress-indicator.js +1 -1
  173. package/dist/{prompt-composer-Lsfcz_i9.js → prompt-composer-tYIs39rn.js} +1 -1
  174. package/dist/prompt-composer.js +1 -1
  175. package/dist/{radio-group-_ZRUgcI5.js → radio-group-AW3xcYYh.js} +2 -2
  176. package/dist/radio-group.js +1 -1
  177. package/dist/{rating-C6AkIIUi.js → rating-h3qdHLNi.js} +1 -1
  178. package/dist/rating.js +1 -1
  179. package/dist/{saved-views-BvRFgSdg.js → saved-views-nqn0SDXn.js} +8 -8
  180. package/dist/saved-views.js +1 -1
  181. package/dist/{section-CQPQf6RU.js → section-D_qOfdxR.js} +1 -0
  182. package/dist/section.js +1 -1
  183. package/dist/{segmented-control-D52GeOlS.js → segmented-control-CbK7SurB.js} +2 -2
  184. package/dist/segmented-control.js +1 -1
  185. package/dist/select-d448Wkzb.js +1124 -0
  186. package/dist/select.js +1 -1
  187. package/dist/{side-navigation-Cwi2FHOz.js → side-navigation-CKRETc8E.js} +99 -99
  188. package/dist/side-navigation.js +1 -1
  189. package/dist/{slider-DQqQ0skr.js → slider-DQ2CnxTO.js} +1 -1
  190. package/dist/slider.js +1 -1
  191. package/dist/{split-button-BYowsA6Q.js → split-button-D4MPKSB2.js} +1 -1
  192. package/dist/split-button.js +1 -1
  193. package/dist/{stat-card-CmpabaTc.js → stat-card-CL3Xe6pV.js} +4 -1
  194. package/dist/stat-card.js +1 -1
  195. package/dist/styles/action-bar.css +2 -2
  196. package/dist/styles/app-shell.css +4 -2
  197. package/dist/styles/attachment.css +3 -1
  198. package/dist/styles/badge.css +1 -1
  199. package/dist/styles/calendar.css +1 -1
  200. package/dist/styles/cascader.css +3 -1
  201. package/dist/styles/chart.css +3 -1
  202. package/dist/styles/checkbox-group.css +2 -0
  203. package/dist/styles/checkbox.css +2 -0
  204. package/dist/styles/color-picker.css +3 -3
  205. package/dist/styles/column-manager.css +3 -3
  206. package/dist/styles/combobox.css +2 -0
  207. package/dist/styles/context-menu.css +1 -1
  208. package/dist/styles/currency-field.css +2 -0
  209. package/dist/styles/dashboard-grid.css +3 -3
  210. package/dist/styles/data-grid.css +8 -8
  211. package/dist/styles/data-list.css +3 -1
  212. package/dist/styles/date-field.css +2 -0
  213. package/dist/styles/date-picker.css +4 -2
  214. package/dist/styles/date-range-picker.css +4 -2
  215. package/dist/styles/datetime-field.css +2 -0
  216. package/dist/styles/datetime-picker.css +4 -2
  217. package/dist/styles/datetime-range-picker.css +4 -2
  218. package/dist/styles/detail-panel.css +5 -3
  219. package/dist/styles/entity-picker.css +4 -2
  220. package/dist/styles/event-calendar.css +5 -3
  221. package/dist/styles/field-group.css +2 -0
  222. package/dist/styles/field.css +2 -0
  223. package/dist/styles/filter-bar.css +7 -7
  224. package/dist/styles/floating-panel.css +1 -1
  225. package/dist/styles/hover-card.css +1 -1
  226. package/dist/styles/import-export-center.css +9 -7
  227. package/dist/styles/index.css +22 -20
  228. package/dist/styles/listbox.css +2 -0
  229. package/dist/styles/loading-overlay.css +3 -1
  230. package/dist/styles/markdown.css +2 -0
  231. package/dist/styles/menu.css +1 -1
  232. package/dist/styles/menubar.css +1 -1
  233. package/dist/styles/multi-select.css +3 -1
  234. package/dist/styles/number-field.css +2 -0
  235. package/dist/styles/otp-input.css +2 -0
  236. package/dist/styles/page-header.css +3 -1
  237. package/dist/styles/pagination.css +1 -1
  238. package/dist/styles/popover.css +1 -1
  239. package/dist/styles/progress-indicator.css +3 -1
  240. package/dist/styles/prompt-composer.css +2 -0
  241. package/dist/styles/radio-group.css +2 -0
  242. package/dist/styles/rating.css +2 -0
  243. package/dist/styles/saved-views.css +3 -3
  244. package/dist/styles/section.css +1 -1
  245. package/dist/styles/segmented-control.css +2 -0
  246. package/dist/styles/select.css +4 -2
  247. package/dist/styles/side-navigation.css +4 -2
  248. package/dist/styles/slider.css +2 -0
  249. package/dist/styles/split-button.css +1 -1
  250. package/dist/styles/stat-card.css +1 -1
  251. package/dist/styles/switch.css +9 -1
  252. package/dist/styles/table.css +6 -6
  253. package/dist/styles/tag.css +1 -1
  254. package/dist/styles/tags-input.css +3 -1
  255. package/dist/styles/text-field.css +2 -0
  256. package/dist/styles/textarea.css +3 -1
  257. package/dist/styles/time-field.css +2 -0
  258. package/dist/styles/time-picker.css +3 -1
  259. package/dist/styles/time-range-picker.css +3 -1
  260. package/dist/styles/toast.css +3 -1
  261. package/dist/styles/toggle-group.css +3 -1
  262. package/dist/styles/toolbar.css +1 -1
  263. package/dist/styles/top-navigation.css +4 -2
  264. package/dist/styles/transfer.css +2 -0
  265. package/dist/styles/upload.css +5 -1
  266. package/dist/styles/wizard.css +1 -1
  267. package/dist/styles.css +1 -1
  268. package/dist/switch-DxMukg7F.js +154 -0
  269. package/dist/switch.js +1 -1
  270. package/dist/{table-MGb3iZY_.js → table-BecApjeD.js} +50 -50
  271. package/dist/table.js +1 -1
  272. package/dist/{tag-BYzDYvM_.js → tag-DCMsVXN6.js} +31 -28
  273. package/dist/tag.js +1 -1
  274. package/dist/{tags-input-O87zTh7h.js → tags-input-CqCeLtk-.js} +1 -1
  275. package/dist/tags-input.js +1 -1
  276. package/dist/{text-field-Cnjc7LB5.js → text-field-CMOkJ9Z6.js} +1 -1
  277. package/dist/text-field.js +1 -1
  278. package/dist/{textarea-DcA7jwOM.js → textarea-DfqPfXTr.js} +1 -1
  279. package/dist/textarea.js +1 -1
  280. package/dist/{time-field-BanhrUvf.js → time-field-GyLQsxcc.js} +1 -1
  281. package/dist/time-field.js +1 -1
  282. package/dist/time-picker-CGHPnust.js +315 -0
  283. package/dist/time-picker.js +1 -1
  284. package/dist/{time-range-picker-ar40oPcf.js → time-range-picker-BMRtAqPy.js} +119 -117
  285. package/dist/time-range-picker.js +1 -1
  286. package/dist/{toast-Cg28GkqX.js → toast-aM_ga1mc.js} +1 -1
  287. package/dist/toast.js +1 -1
  288. package/dist/{toggle-zDTD5G3H.js → toggle-DSEEtL3Y.js} +7 -2
  289. package/dist/{toggle-group-D7GQyNQP.js → toggle-group-DZEWkVRo.js} +8 -3
  290. package/dist/toggle-group.js +1 -1
  291. package/dist/toggle.js +1 -1
  292. package/dist/{toolbar-DOV4BKY8.js → toolbar-BP7ka6lN.js} +1 -1
  293. package/dist/toolbar.js +1 -1
  294. package/dist/{top-navigation-C73WDqLg.js → top-navigation-D8IHPOmm.js} +1 -1
  295. package/dist/top-navigation.js +1 -1
  296. package/dist/{transfer-CuLlF_nY.js → transfer-sKUvmEKe.js} +5 -5
  297. package/dist/transfer.js +1 -1
  298. package/dist/types/app-shell/app-shell-parts.d.ts +7 -0
  299. package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
  300. package/dist/types/app-shell/index.d.ts +1 -1
  301. package/dist/types/app-shell/index.d.ts.map +1 -1
  302. package/dist/types/badge/badge.d.ts +1 -1
  303. package/dist/types/badge/badge.d.ts.map +1 -1
  304. package/dist/types/badge/badge.types.d.ts +6 -0
  305. package/dist/types/badge/badge.types.d.ts.map +1 -1
  306. package/dist/types/calendar/calendar-day-cell.d.ts +3 -1
  307. package/dist/types/calendar/calendar-day-cell.d.ts.map +1 -1
  308. package/dist/types/calendar/calendar-defaults.d.ts +1 -1
  309. package/dist/types/calendar/calendar-defaults.d.ts.map +1 -1
  310. package/dist/types/calendar/calendar.d.ts +1 -1
  311. package/dist/types/calendar/calendar.d.ts.map +1 -1
  312. package/dist/types/calendar/calendar.types.d.ts +8 -0
  313. package/dist/types/calendar/calendar.types.d.ts.map +1 -1
  314. package/dist/types/calendar/use-clock-today.d.ts +10 -0
  315. package/dist/types/calendar/use-clock-today.d.ts.map +1 -0
  316. package/dist/types/chart/chart-help.d.ts +11 -0
  317. package/dist/types/chart/chart-help.d.ts.map +1 -0
  318. package/dist/types/chart/chart.d.ts.map +1 -1
  319. package/dist/types/chart/index.d.ts +1 -1
  320. package/dist/types/chart/index.d.ts.map +1 -1
  321. package/dist/types/currency-field/currency-field.d.ts +3 -3
  322. package/dist/types/currency-field/currency-field.d.ts.map +1 -1
  323. package/dist/types/currency-field/currency-field.types.d.ts +4 -3
  324. package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
  325. package/dist/types/dashboard-grid/dashboard-widget-help.d.ts +3 -1
  326. package/dist/types/dashboard-grid/dashboard-widget-help.d.ts.map +1 -1
  327. package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
  328. package/dist/types/data-grid/data-grid-context.d.ts +4 -0
  329. package/dist/types/data-grid/data-grid-context.d.ts.map +1 -1
  330. package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
  331. package/dist/types/data-grid/data-grid.d.ts +1 -1
  332. package/dist/types/data-grid/data-grid.d.ts.map +1 -1
  333. package/dist/types/data-grid/data-grid.types.d.ts +13 -0
  334. package/dist/types/data-grid/data-grid.types.d.ts.map +1 -1
  335. package/dist/types/date-picker/date-picker-defaults.d.ts.map +1 -1
  336. package/dist/types/date-picker/date-picker-panel.d.ts +2 -0
  337. package/dist/types/date-picker/date-picker-panel.d.ts.map +1 -1
  338. package/dist/types/date-picker/date-picker.d.ts.map +1 -1
  339. package/dist/types/date-picker/date-picker.types.d.ts +9 -0
  340. package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
  341. package/dist/types/date-picker/use-date-picker.d.ts +6 -3
  342. package/dist/types/date-picker/use-date-picker.d.ts.map +1 -1
  343. package/dist/types/date-range-picker/date-range-panel.d.ts +2 -0
  344. package/dist/types/date-range-picker/date-range-panel.d.ts.map +1 -1
  345. package/dist/types/date-range-picker/date-range-picker-defaults.d.ts.map +1 -1
  346. package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
  347. package/dist/types/date-range-picker/date-range-picker.types.d.ts +9 -0
  348. package/dist/types/date-range-picker/date-range-picker.types.d.ts.map +1 -1
  349. package/dist/types/date-range-picker/use-date-range-picker.d.ts +1 -0
  350. package/dist/types/date-range-picker/use-date-range-picker.d.ts.map +1 -1
  351. package/dist/types/datetime-picker/datetime-picker-defaults.d.ts.map +1 -1
  352. package/dist/types/datetime-picker/datetime-picker-panel.d.ts +2 -0
  353. package/dist/types/datetime-picker/datetime-picker-panel.d.ts.map +1 -1
  354. package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
  355. package/dist/types/datetime-picker/datetime-picker.types.d.ts +9 -0
  356. package/dist/types/datetime-picker/datetime-picker.types.d.ts.map +1 -1
  357. package/dist/types/datetime-picker/use-datetime-picker.d.ts +2 -1
  358. package/dist/types/datetime-picker/use-datetime-picker.d.ts.map +1 -1
  359. package/dist/types/datetime-range-picker/datetime-range-panel.d.ts +2 -0
  360. package/dist/types/datetime-range-picker/datetime-range-panel.d.ts.map +1 -1
  361. package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts.map +1 -1
  362. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
  363. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts +9 -0
  364. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts.map +1 -1
  365. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts +2 -1
  366. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts.map +1 -1
  367. package/dist/types/field/field-defaults.d.ts +1 -1
  368. package/dist/types/field/field-defaults.d.ts.map +1 -1
  369. package/dist/types/field/field-help-sheet.d.ts +15 -0
  370. package/dist/types/field/field-help-sheet.d.ts.map +1 -0
  371. package/dist/types/field/field-parts.d.ts +1 -1
  372. package/dist/types/field/field-parts.d.ts.map +1 -1
  373. package/dist/types/field/field.types.d.ts +11 -0
  374. package/dist/types/field/field.types.d.ts.map +1 -1
  375. package/dist/types/field/index.d.ts +1 -1
  376. package/dist/types/field/index.d.ts.map +1 -1
  377. package/dist/types/menu/index.d.ts +1 -1
  378. package/dist/types/menu/index.d.ts.map +1 -1
  379. package/dist/types/menu/menu-defaults.d.ts.map +1 -1
  380. package/dist/types/menu/menu-parts.d.ts.map +1 -1
  381. package/dist/types/menu/menu-sheet-step.d.ts +6 -0
  382. package/dist/types/menu/menu-sheet-step.d.ts.map +1 -0
  383. package/dist/types/menu/menu.d.ts +1 -1
  384. package/dist/types/menu/menu.d.ts.map +1 -1
  385. package/dist/types/menu/menu.types.d.ts +15 -0
  386. package/dist/types/menu/menu.types.d.ts.map +1 -1
  387. package/dist/types/menu/use-menu-sheet.d.ts +9 -0
  388. package/dist/types/menu/use-menu-sheet.d.ts.map +1 -0
  389. package/dist/types/pagination/pagination-parts.d.ts.map +1 -1
  390. package/dist/types/picker-panel/picker-footer.d.ts +8 -2
  391. package/dist/types/picker-panel/picker-footer.d.ts.map +1 -1
  392. package/dist/types/picker-panel/picker-layer.d.ts +4 -1
  393. package/dist/types/picker-panel/picker-layer.d.ts.map +1 -1
  394. package/dist/types/picker-panel/use-media-query.d.ts +2 -2
  395. package/dist/types/picker-panel/use-media-query.d.ts.map +1 -1
  396. package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -1
  397. package/dist/types/popover/index.d.ts +1 -1
  398. package/dist/types/popover/index.d.ts.map +1 -1
  399. package/dist/types/popover/popover-parts.d.ts +2 -1
  400. package/dist/types/popover/popover-parts.d.ts.map +1 -1
  401. package/dist/types/popover/popover.d.ts +4 -2
  402. package/dist/types/popover/popover.d.ts.map +1 -1
  403. package/dist/types/popover/popover.types.d.ts +17 -0
  404. package/dist/types/popover/popover.types.d.ts.map +1 -1
  405. package/dist/types/progress-indicator/loader.d.ts +1 -0
  406. package/dist/types/progress-indicator/loader.d.ts.map +1 -1
  407. package/dist/types/section/section.d.ts.map +1 -1
  408. package/dist/types/section/section.types.d.ts +4 -2
  409. package/dist/types/section/section.types.d.ts.map +1 -1
  410. package/dist/types/select/index.d.ts +1 -1
  411. package/dist/types/select/index.d.ts.map +1 -1
  412. package/dist/types/select/select-defaults.d.ts.map +1 -1
  413. package/dist/types/select/select-parts.d.ts.map +1 -1
  414. package/dist/types/select/select.d.ts +6 -2
  415. package/dist/types/select/select.d.ts.map +1 -1
  416. package/dist/types/select/select.types.d.ts +9 -0
  417. package/dist/types/select/select.types.d.ts.map +1 -1
  418. package/dist/types/select/use-select-sheet.d.ts +9 -0
  419. package/dist/types/select/use-select-sheet.d.ts.map +1 -0
  420. package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
  421. package/dist/types/switch/switch-defaults.d.ts.map +1 -1
  422. package/dist/types/switch/switch.d.ts +2 -1
  423. package/dist/types/switch/switch.d.ts.map +1 -1
  424. package/dist/types/switch/switch.types.d.ts +9 -0
  425. package/dist/types/switch/switch.types.d.ts.map +1 -1
  426. package/dist/types/tag/tag-chip.d.ts +4 -1
  427. package/dist/types/tag/tag-chip.d.ts.map +1 -1
  428. package/dist/types/tag/tag.d.ts +1 -1
  429. package/dist/types/tag/tag.d.ts.map +1 -1
  430. package/dist/types/tag/tag.types.d.ts +6 -0
  431. package/dist/types/tag/tag.types.d.ts.map +1 -1
  432. package/dist/types/time-picker/time-picker-panel.d.ts +3 -1
  433. package/dist/types/time-picker/time-picker-panel.d.ts.map +1 -1
  434. package/dist/types/time-picker/time-picker.d.ts.map +1 -1
  435. package/dist/types/time-range-picker/time-range-panel.d.ts +2 -0
  436. package/dist/types/time-range-picker/time-range-panel.d.ts.map +1 -1
  437. package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
  438. package/dist/types/toggle/toggle.d.ts.map +1 -1
  439. package/dist/types/toggle/toggle.types.d.ts +4 -1
  440. package/dist/types/toggle/toggle.types.d.ts.map +1 -1
  441. package/dist/types/toggle-group/toggle-group-parts.d.ts.map +1 -1
  442. package/dist/types/toggle-group/toggle-group.types.d.ts +4 -1
  443. package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
  444. package/dist/{upload-DggJrkQ7.js → upload-CuMOaPK3.js} +2 -2
  445. package/dist/upload.js +1 -1
  446. package/dist/use-date-picker-DdSX3RE4.js +137 -0
  447. package/dist/use-media-query-DJY5h_K5.js +15 -0
  448. package/dist/use-picker-draft-I_pxqYsc.js +384 -0
  449. package/dist/{wizard-BokOrtwq.js → wizard-4c0X7Bx_.js} +1 -1
  450. package/dist/wizard.js +1 -1
  451. package/package.json +6 -6
  452. package/dist/calendar-D3QZDlm0.js +0 -598
  453. package/dist/chart-DwXqQZjQ.js +0 -1027
  454. package/dist/column-manager-BBGczWQe.js +0 -586
  455. package/dist/dashboard-grid-DAY_CjCW.js +0 -1191
  456. package/dist/field-vOVzvq5t.js +0 -368
  457. package/dist/menu-parts-DgL617_H.js +0 -814
  458. package/dist/picker-jump-BcTRIJs6.js +0 -70
  459. package/dist/popover-BfEn2wdZ.js +0 -500
  460. package/dist/select-BkUuIVBK.js +0 -1017
  461. package/dist/switch-C2krbZHI.js +0 -147
  462. package/dist/time-picker-z4GSRuha.js +0 -313
  463. package/dist/use-date-picker-DL8tRXji.js +0 -63
  464. package/dist/use-picker-draft-Bw8VFaj0.js +0 -377
@@ -94,91 +94,91 @@
94
94
  "type": "readonly string[]",
95
95
  "defaultValue": "—",
96
96
  "appliesTo": "Accordion",
97
- "description": "Present means the consumer owns the set of open panels, for the life of the component. Each entry is a Collapsible’s value"
97
+ "description": "Present means the consumer owns the set of open panels, for the life of the component. Each entry is a Collapsible’s value."
98
98
  },
99
99
  {
100
100
  "name": "defaultValue",
101
101
  "type": "readonly string[]",
102
102
  "defaultValue": "—",
103
103
  "appliesTo": "Accordion",
104
- "description": "The set an uncontrolled accordion starts from, read once. A later change to it does not silently become new state"
104
+ "description": "The set an uncontrolled accordion starts from, read once. A later change to it does not silently become new state."
105
105
  },
106
106
  {
107
107
  "name": "multiple",
108
108
  "type": "boolean",
109
109
  "defaultValue": "false",
110
110
  "appliesTo": "Accordion, AccordionDefaultsProvider",
111
- "description": "Whether more than one panel may be open. With it off, opening one closes the one that was, and that panel is told the reason was select"
111
+ "description": "Whether more than one panel may be open. With it off, opening one closes the one that was, and that panel is told the reason was select."
112
112
  },
113
113
  {
114
114
  "name": "requireOpen",
115
115
  "type": "boolean",
116
116
  "defaultValue": "false",
117
117
  "appliesTo": "Accordion, AccordionDefaultsProvider",
118
- "description": "Whether the set refuses to empty. The one open header then carries aria-disabled=\"true\", which is what the pattern asks of an accordion that does not permit its panel to be collapsed"
118
+ "description": "Whether the set refuses to empty. The one open header then carries aria-disabled=\"true\", which is what the pattern asks of an accordion that does not permit its panel to be collapsed."
119
119
  },
120
120
  {
121
121
  "name": "loop",
122
122
  "type": "boolean",
123
123
  "defaultValue": "true",
124
124
  "appliesTo": "Accordion, AccordionDefaultsProvider",
125
- "description": "Whether the arrow keys wrap past the ends of the set"
125
+ "description": "Whether the arrow keys wrap past the ends of the set."
126
126
  },
127
127
  {
128
128
  "name": "size",
129
129
  "type": "'sm' | 'md' | 'lg'",
130
130
  "defaultValue": "md",
131
131
  "appliesTo": "Accordion, AccordionDefaultsProvider",
132
- "description": "The step every item sits at, and the air between cards under separated"
132
+ "description": "The step every item sits at, and the air between cards under separated."
133
133
  },
134
134
  {
135
135
  "name": "variant",
136
136
  "type": "'plain' | 'ruled' | 'framed' | 'separated'",
137
137
  "defaultValue": "ruled",
138
138
  "appliesTo": "Accordion, AccordionDefaultsProvider",
139
- "description": "How the set is drawn. Each value maps onto the item variant the set hands over: plain to plain, ruled and framed to ruled, separated to framed. The set never selects into an item to draw it"
139
+ "description": "How the set is drawn. Each value maps onto the item variant the set hands over: plain to plain, ruled and framed to ruled, separated to framed. The set never selects into an item to draw it."
140
140
  },
141
141
  {
142
142
  "name": "indicator",
143
143
  "type": "'chevron' | 'plus-minus' | 'none'",
144
144
  "defaultValue": "chevron",
145
145
  "appliesTo": "Accordion, AccordionDefaultsProvider",
146
- "description": "The mark every header carries, handed to each item"
146
+ "description": "The mark every header carries, handed to each item."
147
147
  },
148
148
  {
149
149
  "name": "togglePlacement",
150
150
  "type": "'end' | 'start'",
151
151
  "defaultValue": "end",
152
152
  "appliesTo": "Accordion, AccordionDefaultsProvider",
153
- "description": "Which side of the words that mark stands on, handed to each item"
153
+ "description": "Which side of the words that mark stands on, handed to each item."
154
154
  },
155
155
  {
156
156
  "name": "headingLevel",
157
157
  "type": "'none' | '1' | '2' | '3' | '4' | '5' | '6'",
158
158
  "defaultValue": "3",
159
159
  "appliesTo": "Accordion, AccordionDefaultsProvider",
160
- "description": "The heading element every item’s header renders as. 3 is the level the pattern’s own example uses for a set inside a section"
160
+ "description": "The heading element every item’s header renders as. 3 is the level the pattern’s own example uses for a set inside a section."
161
161
  },
162
162
  {
163
163
  "name": "mount",
164
164
  "type": "'active' | 'lazy' | 'eager' | 'until-found'",
165
165
  "defaultValue": "eager",
166
166
  "appliesTo": "Accordion, AccordionDefaultsProvider",
167
- "description": "When each panel’s content exists, handed to every item"
167
+ "description": "When each panel’s content exists, handed to every item."
168
168
  },
169
169
  {
170
170
  "name": "truncate",
171
171
  "type": "boolean",
172
172
  "defaultValue": "false",
173
173
  "appliesTo": "Accordion, AccordionDefaultsProvider",
174
- "description": "Clips every title to one line instead of letting the row grow"
174
+ "description": "Clips every title to one line instead of letting the row grow."
175
175
  },
176
176
  {
177
177
  "name": "disabled",
178
178
  "type": "boolean",
179
179
  "defaultValue": "false",
180
180
  "appliesTo": "Accordion",
181
- "description": "Reaches every item, and every trigger as the native attribute"
181
+ "description": "Reaches every item, and every trigger as the native attribute."
182
182
  }
183
183
  ],
184
184
  "composition": [
@@ -187,35 +187,35 @@
187
187
  "type": "Ref<AccordionHandle>",
188
188
  "defaultValue": "—",
189
189
  "appliesTo": "Accordion",
190
- "description": "openAll() and closeAll(), the two moves an array cannot express while the family owns the array. They are on a handle of their own so ref keeps reaching the element, which is the rule for every other family here"
190
+ "description": "openAll() and closeAll(), the two moves an array cannot express while the family owns the array. They are on a handle of their own so ref keeps reaching the element, which is the rule for every other family here."
191
191
  },
192
192
  {
193
193
  "name": "render",
194
194
  "type": "(props) => ReactNode",
195
195
  "defaultValue": "—",
196
196
  "appliesTo": "Accordion",
197
- "description": "Substitutes the set’s root and hands it every attribute — a set of sections can be a real section element"
197
+ "description": "Substitutes the set’s root and hands it every attribute — a set of sections can be a real section element."
198
198
  },
199
199
  {
200
200
  "name": "ref",
201
201
  "type": "Ref<HTMLElement>",
202
202
  "defaultValue": "—",
203
203
  "appliesTo": "Accordion",
204
- "description": "Reaches the element itself, so the platform’s own methods are the platform’s"
204
+ "description": "Reaches the element itself, so the platform’s own methods are the platform’s."
205
205
  },
206
206
  {
207
207
  "name": "useAccordion()",
208
208
  "type": "() => AccordionContextValue | undefined",
209
209
  "defaultValue": "—",
210
210
  "appliesTo": "inside Accordion",
211
- "description": "What each item reads: the axes the set hands over, whether a value is open, whether it is held open, and toggle(value, reason). It is undefined outside a set rather than a throw, because a Collapsible standing alone is a complete component"
211
+ "description": "What each item reads: the axes the set hands over, whether a value is open, whether it is held open, and toggle(value, reason). It is undefined outside a set rather than a throw, because a Collapsible standing alone is a complete component."
212
212
  },
213
213
  {
214
214
  "name": "AccordionDefaultsProvider",
215
215
  "type": "{ multiple, requireOpen, loop, size, variant, indicator, togglePlacement, headingLevel, mount, truncate }",
216
216
  "defaultValue": "—",
217
217
  "appliesTo": "a subtree",
218
- "description": "The ten decisions an application takes once. A set that states any of them itself still wins"
218
+ "description": "The ten decisions an application takes once. A set that states any of them itself still wins."
219
219
  }
220
220
  ],
221
221
  "events": [
@@ -275,8 +275,8 @@
275
275
  "title": "One panel open, or several",
276
276
  "note": "With multiple off, opening one closes the one that was — and that panel is told it closed with the reason select, not because the reader asked it to.",
277
277
  "language": "tsx",
278
- "source": "<Accordion multiple defaultValue={['delivery', 'payment']}>\n …\n</Accordion>;\n",
279
- "verdict": "excerpt"
278
+ "source": "import { Accordion } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\n\nconst TASKS = [\n {\n value: 'receiving',\n title: 'Receiving',\n body: '14 pallets arrive today between 08:00 and 15:00.',\n },\n { value: 'putaway', title: 'Putaway', body: '6 pallets wait in dock 3 for a bin assignment.' },\n { value: 'counts', title: 'Cycle counts', body: 'Aisles 12 to 15 are due this week.' },\n { value: 'dispatch', title: 'Dispatch', body: 'The 16:30 carrier pickup holds 38 parcels.' },\n];\n\nexport default function AccordionMultiple() {\n return (\n <Accordion multiple defaultValue={['receiving', 'putaway']}>\n {TASKS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n );\n}\n",
279
+ "verdict": "example"
280
280
  },
281
281
  {
282
282
  "id": "requireOpen",
@@ -299,32 +299,32 @@
299
299
  "title": "The step the set sits at",
300
300
  "note": "The set hands the step to every item, so one word moves the type of every title and the rhythm of every row at once. The gap between cards moves with it.",
301
301
  "language": "tsx",
302
- "source": "<Accordion size=\"lg\" variant=\"separated\">\n …\n</Accordion>;\n",
303
- "verdict": "excerpt"
302
+ "source": "import { Accordion } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst SECTIONS = [\n {\n value: 'delivery',\n title: 'Delivery',\n body: 'Scheduled for September 12 with Harbor Freight, tracking HF-48213.',\n },\n { value: 'payment', title: 'Payment', body: 'Invoice INV-20877 for $2,146.50, due October 4.' },\n];\n\nconst SIZES = ['sm', 'md', 'lg'] as const;\n\nexport default function AccordionSizes() {\n return (\n <Stack gap={6}>\n {SIZES.map((value) => (\n <Stack key={value} gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n size=\"{value}\"\n </Text>\n <Accordion size={value} defaultValue={['delivery']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n ))}\n </Stack>\n );\n}\n",
303
+ "verdict": "example"
304
304
  },
305
305
  {
306
306
  "id": "mount",
307
307
  "title": "When each panel’s content exists",
308
308
  "note": "The set hands the strategy to every item: eager keeps every panel ready to transition, lazy builds one on its first open, and active drops each one as it closes.",
309
309
  "language": "tsx",
310
- "source": "<Accordion mount=\"lazy\">…</Accordion>;\n",
311
- "verdict": "excerpt"
310
+ "source": "import { Accordion } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Stack } from '@slotted/react/stack';\nimport { TextField } from '@slotted/react/text-field';\nimport { Text } from '@slotted/react/typography';\n\nconst MOUNTS = ['active', 'lazy', 'eager', 'until-found'] as const;\n\nexport default function AccordionMount() {\n return (\n <Stack gap={6}>\n {MOUNTS.map((mount) => (\n <Stack key={mount} gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n mount=\"{mount}\"\n </Text>\n <Accordion mount={mount}>\n <Collapsible value=\"note\">\n <CollapsibleHeader>\n <CollapsibleTrigger>Carrier note</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>\n <Field>\n <FieldLabel>Note for the carrier</FieldLabel>\n <TextField />\n </Field>\n </CollapsiblePanel>\n </Collapsible>\n </Accordion>\n </Stack>\n ))}\n </Stack>\n );\n}\n",
311
+ "verdict": "example"
312
312
  },
313
313
  {
314
314
  "id": "states",
315
315
  "title": "Every state the set paints",
316
316
  "note": "A disabled set reaches every trigger as the native attribute, and one item may be out of action inside a live set. Hover and press are the item’s, held back for both.",
317
317
  "language": "tsx",
318
- "source": "<Accordion>\n <Collapsible value=\"delivery\" disabled>\n …\n </Collapsible>\n</Accordion>;\n",
319
- "verdict": "excerpt"
318
+ "source": "import { Accordion } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst SECTIONS = [\n {\n value: 'delivery',\n title: 'Delivery',\n body: 'Scheduled for September 12 with Harbor Freight, tracking HF-48213.',\n },\n { value: 'payment', title: 'Payment', body: 'Invoice INV-20877 for $2,146.50, due October 4.' },\n];\n\nconst REVIEW = [\n {\n value: 'delivery',\n title: 'Delivery',\n body: 'Scheduled for September 12 with Harbor Freight, tracking HF-48213.',\n },\n { value: 'payment', title: 'Payment', body: 'Invoice INV-20877 for $2,146.50, due October 4.' },\n {\n value: 'hold',\n title: 'Credit hold',\n body: 'Released by finance on October 1.',\n disabled: true,\n },\n];\n\nexport default function AccordionStates() {\n return (\n <Stack gap={6}>\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n disabled\n </Text>\n <Accordion disabled defaultValue={['payment']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n disabled on one item\n </Text>\n <Accordion defaultValue={['payment']}>\n {REVIEW.map((section) => (\n <Collapsible key={section.value} value={section.value} disabled={section.disabled}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n </Stack>\n );\n}\n",
319
+ "verdict": "example"
320
320
  },
321
321
  {
322
322
  "id": "imperative",
323
323
  "title": "Opening and closing everything",
324
324
  "note": "A controlled consumer already owns the array and needs neither of these; an uncontrolled one has no array to set, which is the case the handle exists for.",
325
325
  "language": "tsx",
326
- "source": "const set = useRef<AccordionHandle>(null);\n\n<Accordion handle={set} multiple>\n …\n</Accordion>;\n\n<Button onClick={() => set.current?.openAll()}>Open all</Button>;\n",
327
- "verdict": "excerpt"
326
+ "source": "import { useRef } from 'react';\nimport { Accordion } from '@slotted/react/accordion';\nimport type { AccordionHandle } from '@slotted/react/accordion';\nimport { Button } from '@slotted/react/button';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\n\nconst TASKS = [\n {\n value: 'receiving',\n title: 'Receiving',\n body: '14 pallets arrive today between 08:00 and 15:00.',\n },\n { value: 'putaway', title: 'Putaway', body: '6 pallets wait in dock 3 for a bin assignment.' },\n { value: 'counts', title: 'Cycle counts', body: 'Aisles 12 to 15 are due this week.' },\n {\n value: 'archive',\n title: 'Archived pallets',\n body: 'Moved to cold storage on September 30.',\n disabled: true,\n },\n];\n\nexport default function AccordionImperative() {\n const set = useRef<AccordionHandle>(null);\n\n return (\n <Stack gap={4}>\n <Inline gap={2}>\n <Button size=\"sm\" variant=\"outline\" onClick={() => set.current?.openAll()}>\n Open all\n </Button>\n <Button size=\"sm\" variant=\"outline\" onClick={() => set.current?.closeAll()}>\n Close all\n </Button>\n </Inline>\n <Accordion handle={set} multiple>\n {TASKS.map((task) => (\n <Collapsible key={task.value} value={task.value} disabled={task.disabled}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{task.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{task.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n );\n}\n",
327
+ "verdict": "example"
328
328
  },
329
329
  {
330
330
  "id": "content",
@@ -349,6 +349,62 @@
349
349
  "language": "tsx",
350
350
  "source": "<Accordion onValueChange={(value, request) => report(request.reason)}>…</Accordion>;\n",
351
351
  "verdict": "excerpt"
352
+ },
353
+ {
354
+ "id": "basic",
355
+ "title": "basic.tsx",
356
+ "note": null,
357
+ "language": "tsx",
358
+ "source": "import { Accordion } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\n\nconst SECTIONS = [\n {\n value: 'delivery',\n title: 'Delivery',\n body: 'Scheduled for September 12 with Harbor Freight, tracking HF-48213.',\n },\n { value: 'payment', title: 'Payment', body: 'Invoice INV-20877 for $2,146.50, due October 4.' },\n {\n value: 'returns',\n title: 'Returns',\n body: 'Accepted within 30 days of delivery, with the original packing slip.',\n },\n];\n\nexport default function AccordionBasic() {\n return (\n <Accordion defaultValue={['delivery']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n );\n}\n",
359
+ "verdict": "example"
360
+ },
361
+ {
362
+ "id": "controlled",
363
+ "title": "controlled.tsx",
364
+ "note": null,
365
+ "language": "tsx",
366
+ "source": "import { useState } from 'react';\nimport { Accordion } from '@slotted/react/accordion';\nimport type { AccordionChangeRequest } from '@slotted/react/accordion';\nimport { Button } from '@slotted/react/button';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst SECTIONS = [\n {\n value: 'delivery',\n title: 'Delivery',\n body: 'Scheduled for September 12 with Harbor Freight, tracking HF-48213.',\n },\n { value: 'payment', title: 'Payment', body: 'Invoice INV-20877 for $2,146.50, due October 4.' },\n {\n value: 'returns',\n title: 'Returns',\n body: 'Accepted within 30 days of delivery, with the original packing slip.',\n },\n];\n\nexport default function AccordionControlled() {\n const [open, setOpen] = useState<readonly string[]>(['delivery']);\n const [reason, setReason] = useState('none');\n\n function handleValueChange(next: readonly string[], request: AccordionChangeRequest) {\n setOpen(next);\n setReason(request.reason);\n }\n\n return (\n <Stack gap={4}>\n <Inline gap={3} align=\"center\" justify=\"between\">\n <Text size=\"sm\" tone=\"muted\">\n Open: {open.join(', ') || 'none'}. Last change by the reader: {reason}.\n </Text>\n <Button size=\"sm\" variant=\"outline\" onClick={() => setOpen(['payment'])}>\n Show payment\n </Button>\n </Inline>\n <Accordion value={open} onValueChange={handleValueChange}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n );\n}\n",
367
+ "verdict": "example"
368
+ },
369
+ {
370
+ "id": "defaults",
371
+ "title": "defaults.tsx",
372
+ "note": null,
373
+ "language": "tsx",
374
+ "source": "import { Accordion, AccordionDefaultsProvider } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst SECTIONS = [\n {\n value: 'po',\n title: 'Purchase order PO-44821 from Harbor & Pine Supply Co. awaiting approval',\n body: 'Requested by Mira Alvarez for $12,480.00.',\n },\n {\n value: 'rma',\n title: 'Return authorization RMA-3107 for 24 damaged cartons',\n body: 'Credit of $1,036.80 issues after inspection.',\n },\n];\n\nexport default function AccordionDefaults() {\n return (\n <AccordionDefaultsProvider variant=\"separated\" indicator=\"plus-minus\" truncate>\n <Stack gap={6}>\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n From the defaults\n </Text>\n <Accordion defaultValue={['po']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n variant=\"plain\" on the set\n </Text>\n <Accordion variant=\"plain\" defaultValue={['po']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n </Stack>\n </AccordionDefaultsProvider>\n );\n}\n",
375
+ "verdict": "example"
376
+ },
377
+ {
378
+ "id": "headings",
379
+ "title": "headings.tsx",
380
+ "note": null,
381
+ "language": "tsx",
382
+ "source": "import { Accordion } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst SECTIONS = [\n {\n value: 'delivery',\n title: 'Delivery',\n body: 'Scheduled for September 12 with Harbor Freight, tracking HF-48213.',\n },\n { value: 'payment', title: 'Payment', body: 'Invoice INV-20877 for $2,146.50, due October 4.' },\n];\n\nexport default function AccordionHeadings() {\n return (\n <Stack gap={6}>\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n headingLevel=\"2\"\n </Text>\n <Accordion headingLevel=\"2\" defaultValue={['delivery']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n headingLevel=\"none\"\n </Text>\n <Accordion headingLevel=\"none\" defaultValue={['delivery']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n </Stack>\n );\n}\n",
383
+ "verdict": "example"
384
+ },
385
+ {
386
+ "id": "indicator",
387
+ "title": "indicator.tsx",
388
+ "note": null,
389
+ "language": "tsx",
390
+ "source": "import { Accordion } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst SECTIONS = [\n {\n value: 'delivery',\n title: 'Delivery',\n body: 'Scheduled for September 12 with Harbor Freight, tracking HF-48213.',\n },\n { value: 'payment', title: 'Payment', body: 'Invoice INV-20877 for $2,146.50, due October 4.' },\n];\n\nexport default function AccordionIndicator() {\n return (\n <Stack gap={6}>\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n indicator=\"chevron\"\n </Text>\n <Accordion indicator=\"chevron\" defaultValue={['delivery']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n indicator=\"plus-minus\" togglePlacement=\"start\"\n </Text>\n <Accordion indicator=\"plus-minus\" togglePlacement=\"start\" defaultValue={['delivery']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n <Stack gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n indicator=\"none\"\n </Text>\n <Accordion indicator=\"none\" defaultValue={['delivery']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n </Stack>\n );\n}\n",
391
+ "verdict": "example"
392
+ },
393
+ {
394
+ "id": "require-open",
395
+ "title": "require-open.tsx",
396
+ "note": null,
397
+ "language": "tsx",
398
+ "source": "import { Accordion } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\n\nconst ACCOUNT = [\n { value: 'summary', title: 'Summary', body: 'Harbor & Pine Supply Co., customer since 2019.' },\n {\n value: 'contacts',\n title: 'Contacts',\n body: 'Mira Alvarez, purchasing, and Tomas Berg, accounts payable.',\n },\n {\n value: 'terms',\n title: 'Payment terms',\n body: 'Net 30, with a 2% discount when paid within 10 days.',\n },\n];\n\nexport default function AccordionRequireOpen() {\n return (\n <Accordion requireOpen defaultValue={['summary']}>\n {ACCOUNT.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n );\n}\n",
399
+ "verdict": "example"
400
+ },
401
+ {
402
+ "id": "variants",
403
+ "title": "variants.tsx",
404
+ "note": null,
405
+ "language": "tsx",
406
+ "source": "import { Accordion } from '@slotted/react/accordion';\nimport {\n Collapsible,\n CollapsibleHeader,\n CollapsiblePanel,\n CollapsibleTrigger,\n} from '@slotted/react/collapsible';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst SECTIONS = [\n {\n value: 'delivery',\n title: 'Delivery',\n body: 'Scheduled for September 12 with Harbor Freight, tracking HF-48213.',\n },\n { value: 'payment', title: 'Payment', body: 'Invoice INV-20877 for $2,146.50, due October 4.' },\n];\n\nconst VARIANTS = ['plain', 'ruled', 'framed', 'separated'] as const;\n\nexport default function AccordionVariants() {\n return (\n <Stack gap={6}>\n {VARIANTS.map((value) => (\n <Stack key={value} gap={2}>\n <Text size=\"sm\" tone=\"muted\">\n variant=\"{value}\"\n </Text>\n <Accordion variant={value} defaultValue={['delivery']}>\n {SECTIONS.map((section) => (\n <Collapsible key={section.value} value={section.value}>\n <CollapsibleHeader>\n <CollapsibleTrigger>{section.title}</CollapsibleTrigger>\n </CollapsibleHeader>\n <CollapsiblePanel>{section.body}</CollapsiblePanel>\n </Collapsible>\n ))}\n </Accordion>\n </Stack>\n ))}\n </Stack>\n );\n}\n",
407
+ "verdict": "example"
352
408
  }
353
409
  ]
354
410
  }
@@ -11,23 +11,45 @@ import { Accordion, AccordionDefaultsProvider, Collapsible, CollapsibleHeader, C
11
11
 
12
12
  ## Minimal example
13
13
 
14
- Excerpt — not a complete module
14
+ Example
15
15
 
16
16
  ```tsx
17
- <Accordion defaultValue={['delivery']}>
18
- <Collapsible value="delivery">
19
- <CollapsibleHeader>
20
- <CollapsibleTrigger>Delivery</CollapsibleTrigger>
21
- </CollapsibleHeader>
22
- <CollapsiblePanel>Scheduled for September 12.</CollapsiblePanel>
23
- </Collapsible>
24
- <Collapsible value="payment">
25
- <CollapsibleHeader>
26
- <CollapsibleTrigger>Payment</CollapsibleTrigger>
27
- </CollapsibleHeader>
28
- <CollapsiblePanel>Credit card, approved.</CollapsiblePanel>
29
- </Collapsible>
30
- </Accordion>;
17
+ import { Accordion } from '@slotted/react/accordion';
18
+ import {
19
+ Collapsible,
20
+ CollapsibleHeader,
21
+ CollapsiblePanel,
22
+ CollapsibleTrigger,
23
+ } from '@slotted/react/collapsible';
24
+
25
+ const SECTIONS = [
26
+ {
27
+ value: 'delivery',
28
+ title: 'Delivery',
29
+ body: 'Scheduled for September 12 with Harbor Freight, tracking HF-48213.',
30
+ },
31
+ { value: 'payment', title: 'Payment', body: 'Invoice INV-20877 for $2,146.50, due October 4.' },
32
+ {
33
+ value: 'returns',
34
+ title: 'Returns',
35
+ body: 'Accepted within 30 days of delivery, with the original packing slip.',
36
+ },
37
+ ];
38
+
39
+ export default function AccordionBasic() {
40
+ return (
41
+ <Accordion defaultValue={['delivery']}>
42
+ {SECTIONS.map((section) => (
43
+ <Collapsible key={section.value} value={section.value}>
44
+ <CollapsibleHeader>
45
+ <CollapsibleTrigger>{section.title}</CollapsibleTrigger>
46
+ </CollapsibleHeader>
47
+ <CollapsiblePanel>{section.body}</CollapsiblePanel>
48
+ </Collapsible>
49
+ ))}
50
+ </Accordion>
51
+ );
52
+ }
31
53
  ```
32
54
 
33
55
  ## Anatomy
@@ -40,24 +62,24 @@ Excerpt — not a complete module
40
62
 
41
63
  | Name | Type | Default | Applies to | Description |
42
64
  | --- | --- | --- | --- | --- |
43
- | `value` | `readonly string[]` | — | Accordion | Present means the consumer owns the set of open panels, for the life of the component. Each entry is a Collapsible’s value |
44
- | `defaultValue` | `readonly string[]` | — | Accordion | The set an uncontrolled accordion starts from, read once. A later change to it does not silently become new state |
45
- | `multiple` | `boolean` | false | Accordion, AccordionDefaultsProvider | Whether more than one panel may be open. With it off, opening one closes the one that was, and that panel is told the reason was select |
46
- | `requireOpen` | `boolean` | false | Accordion, AccordionDefaultsProvider | Whether the set refuses to empty. The one open header then carries aria-disabled="true", which is what the pattern asks of an accordion that does not permit its panel to be collapsed |
47
- | `loop` | `boolean` | true | Accordion, AccordionDefaultsProvider | Whether the arrow keys wrap past the ends of the set |
48
- | `size` | `'sm' \| 'md' \| 'lg'` | md | Accordion, AccordionDefaultsProvider | The step every item sits at, and the air between cards under separated |
49
- | `variant` | `'plain' \| 'ruled' \| 'framed' \| 'separated'` | ruled | Accordion, AccordionDefaultsProvider | How the set is drawn. Each value maps onto the item variant the set hands over: plain to plain, ruled and framed to ruled, separated to framed. The set never selects into an item to draw it |
50
- | `indicator` | `'chevron' \| 'plus-minus' \| 'none'` | chevron | Accordion, AccordionDefaultsProvider | The mark every header carries, handed to each item |
51
- | `togglePlacement` | `'end' \| 'start'` | end | Accordion, AccordionDefaultsProvider | Which side of the words that mark stands on, handed to each item |
52
- | `headingLevel` | `'none' \| '1' \| '2' \| '3' \| '4' \| '5' \| '6'` | 3 | Accordion, AccordionDefaultsProvider | The heading element every item’s header renders as. 3 is the level the pattern’s own example uses for a set inside a section |
53
- | `mount` | `'active' \| 'lazy' \| 'eager' \| 'until-found'` | eager | Accordion, AccordionDefaultsProvider | When each panel’s content exists, handed to every item |
54
- | `truncate` | `boolean` | false | Accordion, AccordionDefaultsProvider | Clips every title to one line instead of letting the row grow |
55
- | `disabled` | `boolean` | false | Accordion | Reaches every item, and every trigger as the native attribute |
56
- | `handle` | `Ref<AccordionHandle>` | — | Accordion | openAll() and closeAll(), the two moves an array cannot express while the family owns the array. They are on a handle of their own so ref keeps reaching the element, which is the rule for every other family here |
57
- | `render` | `(props) => ReactNode` | — | Accordion | Substitutes the set’s root and hands it every attribute — a set of sections can be a real section element |
58
- | `ref` | `Ref<HTMLElement>` | — | Accordion | Reaches the element itself, so the platform’s own methods are the platform’s |
59
- | `useAccordion()` | `() => AccordionContextValue \| undefined` | — | inside Accordion | What each item reads: the axes the set hands over, whether a value is open, whether it is held open, and toggle(value, reason). It is undefined outside a set rather than a throw, because a Collapsible standing alone is a complete component |
60
- | `AccordionDefaultsProvider` | `{ multiple, requireOpen, loop, size, variant, indicator, togglePlacement, headingLevel, mount, truncate }` | — | a subtree | The ten decisions an application takes once. A set that states any of them itself still wins |
65
+ | `value` | `readonly string[]` | — | Accordion | Present means the consumer owns the set of open panels, for the life of the component. Each entry is a Collapsible’s value. |
66
+ | `defaultValue` | `readonly string[]` | — | Accordion | The set an uncontrolled accordion starts from, read once. A later change to it does not silently become new state. |
67
+ | `multiple` | `boolean` | false | Accordion, AccordionDefaultsProvider | Whether more than one panel may be open. With it off, opening one closes the one that was, and that panel is told the reason was select. |
68
+ | `requireOpen` | `boolean` | false | Accordion, AccordionDefaultsProvider | Whether the set refuses to empty. The one open header then carries aria-disabled="true", which is what the pattern asks of an accordion that does not permit its panel to be collapsed. |
69
+ | `loop` | `boolean` | true | Accordion, AccordionDefaultsProvider | Whether the arrow keys wrap past the ends of the set. |
70
+ | `size` | `'sm' \| 'md' \| 'lg'` | md | Accordion, AccordionDefaultsProvider | The step every item sits at, and the air between cards under separated. |
71
+ | `variant` | `'plain' \| 'ruled' \| 'framed' \| 'separated'` | ruled | Accordion, AccordionDefaultsProvider | How the set is drawn. Each value maps onto the item variant the set hands over: plain to plain, ruled and framed to ruled, separated to framed. The set never selects into an item to draw it. |
72
+ | `indicator` | `'chevron' \| 'plus-minus' \| 'none'` | chevron | Accordion, AccordionDefaultsProvider | The mark every header carries, handed to each item. |
73
+ | `togglePlacement` | `'end' \| 'start'` | end | Accordion, AccordionDefaultsProvider | Which side of the words that mark stands on, handed to each item. |
74
+ | `headingLevel` | `'none' \| '1' \| '2' \| '3' \| '4' \| '5' \| '6'` | 3 | Accordion, AccordionDefaultsProvider | The heading element every item’s header renders as. 3 is the level the pattern’s own example uses for a set inside a section. |
75
+ | `mount` | `'active' \| 'lazy' \| 'eager' \| 'until-found'` | eager | Accordion, AccordionDefaultsProvider | When each panel’s content exists, handed to every item. |
76
+ | `truncate` | `boolean` | false | Accordion, AccordionDefaultsProvider | Clips every title to one line instead of letting the row grow. |
77
+ | `disabled` | `boolean` | false | Accordion | Reaches every item, and every trigger as the native attribute. |
78
+ | `handle` | `Ref<AccordionHandle>` | — | Accordion | openAll() and closeAll(), the two moves an array cannot express while the family owns the array. They are on a handle of their own so ref keeps reaching the element, which is the rule for every other family here. |
79
+ | `render` | `(props) => ReactNode` | — | Accordion | Substitutes the set’s root and hands it every attribute — a set of sections can be a real section element. |
80
+ | `ref` | `Ref<HTMLElement>` | — | Accordion | Reaches the element itself, so the platform’s own methods are the platform’s. |
81
+ | `useAccordion()` | `() => AccordionContextValue \| undefined` | — | inside Accordion | What each item reads: the axes the set hands over, whether a value is open, whether it is held open, and toggle(value, reason). It is undefined outside a set rather than a throw, because a Collapsible standing alone is a complete component. |
82
+ | `AccordionDefaultsProvider` | `{ multiple, requireOpen, loop, size, variant, indicator, togglePlacement, headingLevel, mount, truncate }` | — | a subtree | The ten decisions an application takes once. A set that states any of them itself still wins. |
61
83
 
62
84
  ## Events
63
85
 
@@ -93,122 +115,4 @@ Excerpt — not a complete module
93
115
 
94
116
  ## Examples
95
117
 
96
- ### One panel open, or several
97
-
98
- With multiple off, opening one closes the one that was — and that panel is told it closed with the reason select, not because the reader asked it to.
99
-
100
- Excerpt — not a complete module
101
-
102
- ```tsx
103
- <Accordion multiple defaultValue={['delivery', 'payment']}>
104
- …
105
- </Accordion>;
106
- ```
107
-
108
- ### A set that refuses to empty
109
-
110
- The one open header carries aria-disabled="true", which is the pattern’s own instruction for an accordion that does not permit its panel to be collapsed. It stays focusable and announced.
111
-
112
- Excerpt — not a complete module
113
-
114
- ```tsx
115
- <Accordion requireOpen defaultValue={['delivery']}>
116
- …
117
- </Accordion>;
118
- ```
119
-
120
- ### The four ways a set is drawn
121
-
122
- ruled puts one hairline per seam and closes the stack at the bottom, framed wraps that set in one frame, separated gives each item a card, and plain paints nothing at all.
123
-
124
- Excerpt — not a complete module
125
-
126
- ```tsx
127
- <Accordion variant="separated">…</Accordion>;
128
- ```
129
-
130
- ### The step the set sits at
131
-
132
- The set hands the step to every item, so one word moves the type of every title and the rhythm of every row at once. The gap between cards moves with it.
133
-
134
- Excerpt — not a complete module
135
-
136
- ```tsx
137
- <Accordion size="lg" variant="separated">
138
- …
139
- </Accordion>;
140
- ```
141
-
142
- ### When each panel’s content exists
143
-
144
- The set hands the strategy to every item: eager keeps every panel ready to transition, lazy builds one on its first open, and active drops each one as it closes.
145
-
146
- Excerpt — not a complete module
147
-
148
- ```tsx
149
- <Accordion mount="lazy">…</Accordion>;
150
- ```
151
-
152
- ### Every state the set paints
153
-
154
- A disabled set reaches every trigger as the native attribute, and one item may be out of action inside a live set. Hover and press are the item’s, held back for both.
155
-
156
- Excerpt — not a complete module
157
-
158
- ```tsx
159
- <Accordion>
160
- <Collapsible value="delivery" disabled>
161
- …
162
- </Collapsible>
163
- </Accordion>;
164
- ```
165
-
166
- ### Opening and closing everything
167
-
168
- A controlled consumer already owns the array and needs neither of these; an uncontrolled one has no array to set, which is the case the handle exists for.
169
-
170
- Excerpt — not a complete module
171
-
172
- ```tsx
173
- const set = useRef<AccordionHandle>(null);
174
-
175
- <Accordion handle={set} multiple>
176
- …
177
- </Accordion>;
178
-
179
- <Button onClick={() => set.current?.openAll()}>Open all</Button>;
180
- ```
181
-
182
- ### Content the set did not choose
183
-
184
- A hundred sections, a title longer than its row, and an accordion nested inside another’s panel — which stays closed, because nothing in the family is a descendant rule.
185
-
186
- Excerpt — not a complete module
187
-
188
- ```tsx
189
- <CollapsiblePanel>
190
- <Accordion variant="plain">…</Accordion>
191
- </CollapsiblePanel>;
192
- ```
193
-
194
- ### Setting it once, and reaching past it
195
-
196
- The provider carries the ten decisions an application takes once, and a set that states any of them still wins; render substitutes the set’s own root.
197
-
198
- Excerpt — not a complete module
199
-
200
- ```tsx
201
- <AccordionDefaultsProvider variant="separated" multiple>
202
- <Accordion>…</Accordion>
203
- </AccordionDefaultsProvider>;
204
- ```
205
-
206
- ### The pattern’s table, and the four keys beside it
207
-
208
- Every header is a Tab stop, which is what the pattern requires; the arrows, Home and End move focus on top of that sequence and open nothing at all.
209
-
210
- Excerpt — not a complete module
211
-
212
- ```tsx
213
- <Accordion onValueChange={(value, request) => report(request.reason)}>…</Accordion>;
214
- ```
118
+ See [accordion.examples.md](./accordion.examples.md).