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

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 (298) hide show
  1. package/dist/{app-shell-D54YkU7E.js → app-shell-DsWhsSMU.js} +3 -2
  2. package/dist/app-shell.js +1 -1
  3. package/dist/attachment-TZykYNu5.js +300 -0
  4. package/dist/attachment.js +2 -2
  5. package/dist/{avatar-group-bJaZE1_C.js → avatar-group-Bzmmj2HI.js} +2 -1
  6. package/dist/avatar-group.js +1 -1
  7. package/dist/{carousel-B9nMK7Yf.js → carousel-CRNz-T3g.js} +1 -1
  8. package/dist/carousel.js +1 -1
  9. package/dist/{command-palette-C90CzfQi.js → command-palette-Bgf5tfCI.js} +160 -156
  10. package/dist/command-palette.js +1 -1
  11. package/dist/{data-grid-D106baPp.js → data-grid-DUft3rJb.js} +1 -1
  12. package/dist/data-grid.js +1 -1
  13. package/dist/{data-list-BA0xrySM.js → data-list-Dv3orBtf.js} +15 -15
  14. package/dist/data-list.js +1 -1
  15. package/dist/detail-panel-Cke3ZFU3.js +342 -0
  16. package/dist/detail-panel.js +2 -2
  17. package/dist/docs/action-bar.examples.md +768 -0
  18. package/dist/docs/action-bar.json +74 -50
  19. package/dist/docs/action-bar.md +49 -311
  20. package/dist/docs/app-shell.examples.md +1221 -64
  21. package/dist/docs/app-shell.json +92 -60
  22. package/dist/docs/app-shell.md +92 -57
  23. package/dist/docs/attachment.examples.md +689 -0
  24. package/dist/docs/attachment.json +69 -37
  25. package/dist/docs/attachment.md +44 -203
  26. package/dist/docs/avatar-group.json +111 -23
  27. package/dist/docs/avatar-group.md +487 -28
  28. package/dist/docs/button-group.json +98 -2
  29. package/dist/docs/button-group.md +411 -8
  30. package/dist/docs/calendar.examples.md +512 -0
  31. package/dist/docs/calendar.json +72 -24
  32. package/dist/docs/calendar.md +18 -147
  33. package/dist/docs/carousel.examples.md +868 -0
  34. package/dist/docs/carousel.json +58 -50
  35. package/dist/docs/carousel.md +66 -300
  36. package/dist/docs/cascader.examples.md +1269 -0
  37. package/dist/docs/cascader.json +72 -16
  38. package/dist/docs/cascader.md +78 -154
  39. package/dist/docs/chart.examples.md +734 -24
  40. package/dist/docs/chart.json +93 -13
  41. package/dist/docs/chart.md +28 -7
  42. package/dist/docs/clock.json +71 -15
  43. package/dist/docs/clock.md +326 -21
  44. package/dist/docs/code-block.json +79 -55
  45. package/dist/docs/code-block.md +417 -74
  46. package/dist/docs/color-picker.json +60 -12
  47. package/dist/docs/color-picker.md +245 -22
  48. package/dist/docs/column-manager.examples.md +764 -0
  49. package/dist/docs/column-manager.json +68 -12
  50. package/dist/docs/column-manager.md +44 -203
  51. package/dist/docs/command-palette.examples.md +747 -0
  52. package/dist/docs/command-palette.json +48 -24
  53. package/dist/docs/command-palette.md +60 -339
  54. package/dist/docs/currency-field.examples.md +355 -73
  55. package/dist/docs/currency-field.json +96 -64
  56. package/dist/docs/currency-field.md +57 -50
  57. package/dist/docs/dashboard-grid.examples.md +629 -0
  58. package/dist/docs/dashboard-grid.json +64 -16
  59. package/dist/docs/dashboard-grid.md +34 -152
  60. package/dist/docs/data-list.examples.md +1556 -0
  61. package/dist/docs/data-list.json +58 -18
  62. package/dist/docs/data-list.md +139 -224
  63. package/dist/docs/date-field.examples.md +543 -0
  64. package/dist/docs/date-field.json +64 -24
  65. package/dist/docs/date-field.md +22 -168
  66. package/dist/docs/datetime-field.examples.md +699 -0
  67. package/dist/docs/datetime-field.json +79 -31
  68. package/dist/docs/datetime-field.md +24 -269
  69. package/dist/docs/datetime-range-picker.examples.md +682 -0
  70. package/dist/docs/datetime-range-picker.json +117 -61
  71. package/dist/docs/datetime-range-picker.md +59 -224
  72. package/dist/docs/description-list.examples.md +652 -0
  73. package/dist/docs/description-list.json +49 -25
  74. package/dist/docs/description-list.md +33 -188
  75. package/dist/docs/detail-panel.examples.md +1177 -0
  76. package/dist/docs/detail-panel.json +69 -53
  77. package/dist/docs/detail-panel.md +114 -324
  78. package/dist/docs/entity-picker.examples.md +1037 -0
  79. package/dist/docs/entity-picker.json +66 -18
  80. package/dist/docs/entity-picker.md +56 -246
  81. package/dist/docs/event-calendar.examples.md +749 -49
  82. package/dist/docs/event-calendar.json +46 -22
  83. package/dist/docs/event-calendar.md +81 -11
  84. package/dist/docs/field-group.examples.md +554 -0
  85. package/dist/docs/field-group.json +98 -34
  86. package/dist/docs/field-group.md +55 -133
  87. package/dist/docs/filter-bar.examples.md +772 -0
  88. package/dist/docs/filter-bar.json +41 -25
  89. package/dist/docs/filter-bar.md +42 -246
  90. package/dist/docs/form.examples.md +579 -0
  91. package/dist/docs/form.json +87 -39
  92. package/dist/docs/form.md +53 -177
  93. package/dist/docs/fullscreen.examples.md +558 -0
  94. package/dist/docs/fullscreen.json +58 -18
  95. package/dist/docs/fullscreen.md +50 -169
  96. package/dist/docs/highlight.json +57 -25
  97. package/dist/docs/highlight.md +402 -50
  98. package/dist/docs/icon.json +85 -5
  99. package/dist/docs/icon.md +401 -10
  100. package/dist/docs/image.examples.md +670 -0
  101. package/dist/docs/image.json +44 -28
  102. package/dist/docs/image.md +24 -176
  103. package/dist/docs/import-export-center.examples.md +1280 -0
  104. package/dist/docs/import-export-center.json +67 -27
  105. package/dist/docs/import-export-center.md +121 -226
  106. package/dist/docs/list-item.examples.md +769 -0
  107. package/dist/docs/list-item.json +110 -38
  108. package/dist/docs/list-item.md +84 -201
  109. package/dist/docs/listbox.examples.md +858 -0
  110. package/dist/docs/listbox.json +76 -28
  111. package/dist/docs/listbox.md +41 -263
  112. package/dist/docs/markdown.json +79 -55
  113. package/dist/docs/markdown.md +581 -85
  114. package/dist/docs/media-viewer.examples.md +1038 -0
  115. package/dist/docs/media-viewer.json +70 -15
  116. package/dist/docs/media-viewer.md +84 -135
  117. package/dist/docs/message-scroller.examples.md +1193 -0
  118. package/dist/docs/message-scroller.json +41 -17
  119. package/dist/docs/message-scroller.md +80 -134
  120. package/dist/docs/message.examples.md +944 -0
  121. package/dist/docs/message.json +64 -16
  122. package/dist/docs/message.md +34 -326
  123. package/dist/docs/meter.json +58 -26
  124. package/dist/docs/meter.md +312 -32
  125. package/dist/docs/navigation-menu.examples.md +1107 -0
  126. package/dist/docs/navigation-menu.json +57 -41
  127. package/dist/docs/navigation-menu.md +105 -298
  128. package/dist/docs/notification-center.examples.md +1045 -0
  129. package/dist/docs/notification-center.json +71 -15
  130. package/dist/docs/notification-center.md +76 -266
  131. package/dist/docs/otp-input.examples.md +490 -0
  132. package/dist/docs/otp-input.json +65 -25
  133. package/dist/docs/otp-input.md +20 -191
  134. package/dist/docs/page-header.examples.md +1041 -0
  135. package/dist/docs/page-header.json +75 -43
  136. package/dist/docs/page-header.md +79 -291
  137. package/dist/docs/page.examples.md +633 -0
  138. package/dist/docs/page.json +48 -16
  139. package/dist/docs/page.md +62 -129
  140. package/dist/docs/prompt-composer.examples.md +630 -0
  141. package/dist/docs/prompt-composer.json +66 -18
  142. package/dist/docs/prompt-composer.md +35 -161
  143. package/dist/docs/prose.json +69 -37
  144. package/dist/docs/prose.md +393 -75
  145. package/dist/docs/rating.examples.md +525 -0
  146. package/dist/docs/rating.json +92 -28
  147. package/dist/docs/rating.md +27 -241
  148. package/dist/docs/saved-views.examples.md +1108 -0
  149. package/dist/docs/saved-views.json +53 -21
  150. package/dist/docs/saved-views.md +86 -171
  151. package/dist/docs/scroll-area.examples.md +837 -0
  152. package/dist/docs/scroll-area.json +64 -24
  153. package/dist/docs/scroll-area.md +57 -140
  154. package/dist/docs/section.examples.md +676 -0
  155. package/dist/docs/section.json +68 -20
  156. package/dist/docs/section.md +39 -162
  157. package/dist/docs/segmented-control.examples.md +480 -0
  158. package/dist/docs/segmented-control.json +76 -28
  159. package/dist/docs/segmented-control.md +20 -191
  160. package/dist/docs/side-navigation.examples.md +1468 -0
  161. package/dist/docs/side-navigation.json +53 -53
  162. package/dist/docs/side-navigation.md +79 -354
  163. package/dist/docs/slider.examples.md +505 -0
  164. package/dist/docs/slider.json +91 -51
  165. package/dist/docs/slider.md +47 -212
  166. package/dist/docs/sparkline.json +60 -36
  167. package/dist/docs/sparkline.md +447 -71
  168. package/dist/docs/split-button.examples.md +509 -0
  169. package/dist/docs/split-button.json +73 -41
  170. package/dist/docs/split-button.md +64 -194
  171. package/dist/docs/splitter.examples.md +921 -0
  172. package/dist/docs/splitter.json +94 -46
  173. package/dist/docs/splitter.md +75 -182
  174. package/dist/docs/stat-card.examples.md +725 -0
  175. package/dist/docs/stat-card.json +89 -41
  176. package/dist/docs/stat-card.md +55 -227
  177. package/dist/docs/status-indicator.json +80 -32
  178. package/dist/docs/status-indicator.md +409 -65
  179. package/dist/docs/stepper.json +53 -21
  180. package/dist/docs/stepper.md +369 -48
  181. package/dist/docs/table-of-contents.examples.md +550 -0
  182. package/dist/docs/table-of-contents.json +60 -28
  183. package/dist/docs/table-of-contents.md +70 -205
  184. package/dist/docs/tags-input.examples.md +541 -0
  185. package/dist/docs/tags-input.json +64 -16
  186. package/dist/docs/tags-input.md +15 -262
  187. package/dist/docs/time-field.examples.md +587 -0
  188. package/dist/docs/time-field.json +69 -29
  189. package/dist/docs/time-field.md +21 -223
  190. package/dist/docs/time-picker.json +117 -53
  191. package/dist/docs/time-picker.md +499 -54
  192. package/dist/docs/time-range-picker.examples.md +750 -0
  193. package/dist/docs/time-range-picker.json +139 -75
  194. package/dist/docs/time-range-picker.md +63 -225
  195. package/dist/docs/timeline.examples.md +617 -0
  196. package/dist/docs/timeline.json +44 -28
  197. package/dist/docs/timeline.md +34 -208
  198. package/dist/docs/toolbar.json +56 -16
  199. package/dist/docs/toolbar.md +357 -63
  200. package/dist/docs/top-navigation.examples.md +1206 -140
  201. package/dist/docs/top-navigation.json +49 -33
  202. package/dist/docs/top-navigation.md +87 -36
  203. package/dist/docs/tour.examples.md +960 -0
  204. package/dist/docs/tour.json +57 -25
  205. package/dist/docs/tour.md +60 -244
  206. package/dist/docs/transfer.examples.md +631 -0
  207. package/dist/docs/transfer.json +80 -16
  208. package/dist/docs/transfer.md +41 -170
  209. package/dist/docs/typography.json +96 -0
  210. package/dist/docs/typography.md +352 -4
  211. package/dist/docs/upload.examples.md +555 -53
  212. package/dist/docs/upload.json +62 -30
  213. package/dist/docs/upload.md +46 -11
  214. package/dist/docs/wizard.examples.md +1389 -0
  215. package/dist/docs/wizard.json +89 -49
  216. package/dist/docs/wizard.md +122 -263
  217. package/dist/{entity-picker-CC4VoC3p.js → entity-picker-C78f3Z0o.js} +9 -6
  218. package/dist/entity-picker.js +1 -1
  219. package/dist/{event-calendar-CjmF_e0H.js → event-calendar-DJPoCi-O.js} +1 -1
  220. package/dist/event-calendar.js +1 -1
  221. package/dist/{filter-bar-B3QJD7SZ.js → filter-bar-D61wiQFP.js} +1 -1
  222. package/dist/filter-bar.js +1 -1
  223. package/dist/{import-export-center-CW8YVZev.js → import-export-center-mqvmlzwB.js} +44 -36
  224. package/dist/import-export-center.js +1 -1
  225. package/dist/index.js +58 -58
  226. package/dist/{markdown-BdskE4-L.js → markdown-8CtV4k44.js} +2 -2
  227. package/dist/markdown.js +1 -1
  228. package/dist/{media-viewer-zEXcwfEY.js → media-viewer-C_cbuAq-.js} +64 -60
  229. package/dist/media-viewer.js +2 -2
  230. package/dist/message-P91bEGyV.js +455 -0
  231. package/dist/message.js +2 -2
  232. package/dist/{page-header-DmwBGwlm.js → page-header-jeAIQSZM.js} +103 -108
  233. package/dist/page-header.js +1 -1
  234. package/dist/section-CVTQdWBl.js +216 -0
  235. package/dist/section.js +2 -2
  236. package/dist/{segmented-control-CbK7SurB.js → segmented-control-BSMVjukr.js} +1 -1
  237. package/dist/segmented-control.js +1 -1
  238. package/dist/{side-navigation-CKRETc8E.js → side-navigation-BQzBxz2B.js} +179 -179
  239. package/dist/side-navigation.js +1 -1
  240. package/dist/{stat-card-CL3Xe6pV.js → stat-card-BpGZiFbG.js} +12 -14
  241. package/dist/stat-card.js +1 -1
  242. package/dist/{stepper-DHdrANZI.js → stepper-Cxb_tHnA.js} +130 -127
  243. package/dist/stepper.js +2 -2
  244. package/dist/styles/carousel.css +1 -1
  245. package/dist/styles/index.css +1 -1
  246. package/dist/styles.css +1 -1
  247. package/dist/{timeline-BiL2CXfn.js → timeline-ZngK6zLC.js} +9 -6
  248. package/dist/timeline.js +1 -1
  249. package/dist/top-navigation-YSEQzBhD.js +744 -0
  250. package/dist/top-navigation.js +2 -2
  251. package/dist/{transfer-sKUvmEKe.js → transfer-Cv5yQuTN.js} +1 -1
  252. package/dist/transfer.js +1 -1
  253. package/dist/types/attachment/attachment-parts.d.ts +24 -11
  254. package/dist/types/attachment/attachment-parts.d.ts.map +1 -1
  255. package/dist/types/attachment/attachment.d.ts +3 -3
  256. package/dist/types/attachment/attachment.d.ts.map +1 -1
  257. package/dist/types/avatar-group/avatar-group.d.ts.map +1 -1
  258. package/dist/types/carousel/carousel-parts.d.ts +2 -2
  259. package/dist/types/command-palette/command-palette.d.ts.map +1 -1
  260. package/dist/types/data-list/data-list.d.ts.map +1 -1
  261. package/dist/types/detail-panel/detail-panel-parts.d.ts +10 -3
  262. package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
  263. package/dist/types/detail-panel/detail-panel.d.ts.map +1 -1
  264. package/dist/types/detail-panel/detail-panel.types.d.ts +7 -0
  265. package/dist/types/detail-panel/detail-panel.types.d.ts.map +1 -1
  266. package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
  267. package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
  268. package/dist/types/media-viewer/index.d.ts +2 -2
  269. package/dist/types/media-viewer/index.d.ts.map +1 -1
  270. package/dist/types/media-viewer/media-viewer-bar.d.ts +3 -1
  271. package/dist/types/media-viewer/media-viewer-bar.d.ts.map +1 -1
  272. package/dist/types/media-viewer/media-viewer.types.d.ts +1 -0
  273. package/dist/types/media-viewer/media-viewer.types.d.ts.map +1 -1
  274. package/dist/types/message/message-parts.d.ts +7 -0
  275. package/dist/types/message/message-parts.d.ts.map +1 -1
  276. package/dist/types/message/message.d.ts.map +1 -1
  277. package/dist/types/page-header/page-header-parts.d.ts.map +1 -1
  278. package/dist/types/section/section-parts.d.ts +16 -8
  279. package/dist/types/section/section-parts.d.ts.map +1 -1
  280. package/dist/types/section/section.d.ts.map +1 -1
  281. package/dist/types/segmented-control/segmented-control-parts.d.ts.map +1 -1
  282. package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
  283. package/dist/types/stat-card/stat-card-delta.d.ts.map +1 -1
  284. package/dist/types/stat-card/stat-card-parts.d.ts +3 -3
  285. package/dist/types/stat-card/stat-card-parts.d.ts.map +1 -1
  286. package/dist/types/stepper/stepper-parts.d.ts +11 -2
  287. package/dist/types/stepper/stepper-parts.d.ts.map +1 -1
  288. package/dist/types/stepper/stepper.d.ts.map +1 -1
  289. package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
  290. package/dist/types/top-navigation/top-navigation.d.ts.map +1 -1
  291. package/dist/{wizard-4c0X7Bx_.js → wizard-Dfryz1id.js} +214 -214
  292. package/dist/wizard.js +1 -1
  293. package/package.json +6 -6
  294. package/dist/attachment-MqczA38F.js +0 -292
  295. package/dist/detail-panel-EImAtksY.js +0 -327
  296. package/dist/message-D1Dd6Y2k.js +0 -452
  297. package/dist/section-D_qOfdxR.js +0 -213
  298. package/dist/top-navigation-D8IHPOmm.js +0 -744
@@ -133,7 +133,7 @@
133
133
  "part": "panel",
134
134
  "element": "div",
135
135
  "required": false,
136
- "purpose": "The content of the step it is written inside, rendered only while that step is current. A group labelled by its own header rather than a tabpanel, and focusable so a consumer moving focus after a change has somewhere to put it."
136
+ "purpose": "The content of the step it is written inside, shown only while that step is current: the panel of every other step stays in the DOM under the hidden attribute. A group labelled by its own header rather than a tabpanel, and focusable so a consumer moving focus after a change has somewhere to put it."
137
137
  }
138
138
  ],
139
139
  "api": [
@@ -277,11 +277,11 @@
277
277
  {
278
278
  "name": "onStepChange",
279
279
  "payload": "(step: number, request: ChangeRequest<number>)",
280
- "when": "Before the step moves. The request carries the step it replaces, the reason — pointer, keyboard or programmatic — and the originating event. Cancelling it commits nothing, and that is how a consumer refuses a move: this family ships no isStepValid, because the request already says the same thing at the same moment."
280
+ "when": "Before the step moves. The request carries the step it replaces, the reason — pointer, keyboard or programmatic — and the originating event. Cancelling it commits nothing, and that is how a consumer refuses a move: Stepper has no isStepValid, because the request already says the same thing at the same moment."
281
281
  }
282
282
  ],
283
283
  "accessibility": [
284
- "The family refuses role=\"tablist\" and role=\"tab\", which Angular Material gives a horizontal stepper. Section 7 of the feature guide forbids it in the Tabs entry itself: tabs are for peer views in one context, not for the steps of a process, and a tab list would tell a reader the panels may be taken in any order. What replaces it is an ol and li for the sequence and the set size, a name on the list, and a status in words inside every header.",
284
+ "Stepper does not use role=\"tablist\" or role=\"tab\", which Angular Material gives a horizontal stepper. Tabs are for peer views in one context, not for the steps of a process, and a tab list would tell a reader the panels may be taken in any order. What replaces it is an ol and li for the sequence and the set size, a name on the list, and a status in words inside every header.",
285
285
  "The current header carries aria-current=\"step\", which is the value the ARIA specification names for a link inside a step indicator for a step-based process. The item beside it also carries data-current, because the marker, the label and the connector are all styled from the item and none of them is the trigger.",
286
286
  "A step a linear flow has not opened carries aria-disabled rather than disabled, so it keeps its place in the tab sequence. A reader can find out the step exists and that it is not yet available, which a removed tab stop would not tell them.",
287
287
  "Each header holds a visually hidden status, so what a reader hears is \"Cart, Step 2 of 4, current\" rather than \"2\". The marker is aria-hidden for the same reason: the number is the picture, and the words are the announcement.",
@@ -377,64 +377,64 @@
377
377
  "title": "Which way the flow runs",
378
378
  "note": "Horizontal is a row of equal columns, so five steps divide the width evenly however long their names are. Vertical runs the connector down the marker center and leaves room for a panel under each step.",
379
379
  "language": "tsx",
380
- "source": "<Stepper orientation=\"vertical\">\n <StepperList>{steps}</StepperList>\n</Stepper>;\n",
381
- "verdict": "excerpt"
380
+ "source": "import { Stack } from '@slotted/react/stack';\nimport { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperOrientation() {\n return (\n <Stack gap={8}>\n <Stepper defaultStep={1} messages={{ label: 'Fulfillment' }} orientation=\"horizontal\">\n <StepperList>\n <StepperStep complete label=\"Order intake\" />\n <StepperStep label=\"Picking\" />\n <StepperStep label=\"Packing\" />\n <StepperStep label=\"Dispatch\" />\n </StepperList>\n </Stepper>\n <Stepper defaultStep={2} messages={{ label: 'Return' }} orientation=\"vertical\">\n <StepperList>\n <StepperStep complete label=\"Request received\" />\n <StepperStep complete label=\"Item inspected\" />\n <StepperStep label=\"Refund issued\" />\n </StepperList>\n </Stepper>\n </Stack>\n );\n}\n",
381
+ "verdict": "example"
382
382
  },
383
383
  {
384
384
  "id": "statuses",
385
385
  "title": "The five things a step can be",
386
386
  "note": "Each status is a fill and a shape, never a color alone: an outline for pending, a ring for current, a filled disc with a check for complete, a red disc with a cross for a failure, and a grey outline for a step the flow closed.",
387
387
  "language": "tsx",
388
- "source": "<StepperStep label=\"Cart\" complete />;\n<StepperStep label=\"Address\" invalid />;\n<StepperStep label=\"Review\" disabled />;\n",
389
- "verdict": "excerpt"
388
+ "source": "import { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperStatuses() {\n return (\n <Stepper defaultStep={2} messages={{ label: 'Supplier onboarding' }} orientation=\"vertical\">\n <StepperList>\n <StepperStep complete description=\"Verified on 4 March\" label=\"Company profile\" />\n <StepperStep\n description=\"The certificate expired on 28 February\"\n invalid\n label=\"Tax documents\"\n />\n <StepperStep description=\"IBAN and settlement currency\" label=\"Bank details\" />\n <StepperStep description=\"Checking sanctions lists\" label=\"Compliance check\" loading />\n <StepperStep description=\"Closed by procurement\" disabled label=\"Contract\" />\n <StepperStep label=\"Activation\" />\n </StepperList>\n </Stepper>\n );\n}\n",
389
+ "verdict": "example"
390
390
  },
391
391
  {
392
392
  "id": "linear",
393
393
  "title": "A flow that must be taken in order",
394
- "note": "With linear, a header is reachable only once every step before it is complete. The rest keep their place in the tab sequence and say aria-disabled, so a reader can find the step and learn it is not yet open.",
394
+ "note": "With linear, a header ahead of the current step is reachable only once every step before it is complete. The rest keep their place in the tab sequence and say aria-disabled, so a reader can find the step and learn it is not yet open.",
395
395
  "language": "tsx",
396
- "source": "<Stepper linear onStepChange={(step, request) => valid || request.cancel()}>\n <StepperList>{steps}</StepperList>\n</Stepper>;\n",
397
- "verdict": "excerpt"
396
+ "source": "import { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperLinear() {\n return (\n <Stepper defaultStep={1} linear messages={{ label: 'Month-end close' }}>\n <StepperList>\n <StepperStep complete label=\"Reconcile banks\" />\n <StepperStep complete label=\"Post accruals\" />\n <StepperStep label=\"Review variances\" />\n <StepperStep label=\"Approve\" />\n <StepperStep label=\"Publish\" />\n </StepperList>\n </Stepper>\n );\n}\n",
397
+ "verdict": "example"
398
398
  },
399
399
  {
400
400
  "id": "navigation",
401
401
  "title": "What a header is",
402
402
  "note": "button is a control the reader presses, link is a destination with its own URL, and none is a span nothing can press — one family covering both an interactive stepper and a read-only progress indicator.",
403
403
  "language": "tsx",
404
- "source": "<Stepper navigation=\"link\">\n <StepperList>\n <StepperStep href=\"/checkout/cart\" label=\"Cart\" />\n </StepperList>\n</Stepper>;\n",
405
- "verdict": "excerpt"
404
+ "source": "import { Stack } from '@slotted/react/stack';\nimport { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperNavigation() {\n return (\n <Stack gap={8}>\n <Stepper defaultStep={1} messages={{ label: 'Quote, button' }} navigation=\"button\">\n <StepperList>\n <StepperStep complete label=\"Quote\" />\n <StepperStep label=\"Order\" />\n <StepperStep label=\"Invoice\" />\n </StepperList>\n </Stepper>\n <Stepper defaultStep={1} messages={{ label: 'Checkout, link' }} navigation=\"link\">\n <StepperList>\n <StepperStep complete href=\"#cart\" label=\"Cart\" />\n <StepperStep href=\"#shipping\" label=\"Shipping\" />\n <StepperStep href=\"#payment\" label=\"Payment\" />\n </StepperList>\n </Stepper>\n <Stepper defaultStep={2} messages={{ label: 'Shipment, none' }} navigation=\"none\">\n <StepperList>\n <StepperStep complete label=\"Order placed\" />\n <StepperStep complete label=\"Packed\" />\n <StepperStep label=\"Shipped\" />\n <StepperStep label=\"Delivered\" />\n </StepperList>\n </Stepper>\n </Stack>\n );\n}\n",
405
+ "verdict": "example"
406
406
  },
407
407
  {
408
408
  "id": "placement",
409
409
  "title": "Where the label sits",
410
410
  "note": "end puts the name beside the marker and leaves the connector whatever the name does not take; bottom centers the marker over its own column, which is what a row of five long names needs.",
411
411
  "language": "tsx",
412
- "source": "<Stepper labelPlacement=\"bottom\">\n <StepperList>{steps}</StepperList>\n</Stepper>;\n",
413
- "verdict": "excerpt"
412
+ "source": "import { Stack } from '@slotted/react/stack';\nimport { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperPlacement() {\n return (\n <Stack gap={8}>\n <Stepper\n defaultStep={2}\n labelPlacement=\"end\"\n messages={{ label: 'Purchase, label at the end' }}\n >\n <StepperList>\n <StepperStep complete label=\"Requisition\" />\n <StepperStep complete label=\"Approval\" />\n <StepperStep label=\"Purchase order\" />\n <StepperStep label=\"Goods receipt\" />\n <StepperStep label=\"Payment\" />\n </StepperList>\n </Stepper>\n <Stepper\n defaultStep={2}\n labelPlacement=\"bottom\"\n messages={{ label: 'Purchase, label at the bottom' }}\n >\n <StepperList>\n <StepperStep complete label=\"Requisition\" />\n <StepperStep complete label=\"Approval\" />\n <StepperStep label=\"Purchase order\" />\n <StepperStep label=\"Goods receipt\" />\n <StepperStep label=\"Payment\" />\n </StepperList>\n </Stepper>\n </Stack>\n );\n}\n",
413
+ "verdict": "example"
414
414
  },
415
415
  {
416
416
  "id": "panels",
417
417
  "title": "The content of a step",
418
- "note": "A panel renders only while its own step is current, so the flow shows one at a time. It is a group labelled by its header, and the button that advances is yours — this family ships none.",
418
+ "note": "A panel is shown only while its own step is current, so the flow shows one at a time. It is a group labelled by its header, and the button that advances is yours: Stepper paints none.",
419
419
  "language": "tsx",
420
- "source": "<StepperStep label=\"Address\">\n <StepperPanel>\n <AddressForm />\n </StepperPanel>\n</StepperStep>;\n",
421
- "verdict": "excerpt"
420
+ "source": "import { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport {\n Stepper,\n StepperList,\n StepperPanel,\n StepperStep,\n useStepper,\n} from '@slotted/react/stepper';\nimport { Text } from '@slotted/react/typography';\n\nexport default function StepperPanels() {\n return (\n <Stepper autoComplete messages={{ label: 'New purchase order' }} orientation=\"vertical\">\n <StepperList>\n <StepperStep label=\"Supplier\">\n <StepperPanel>\n <Text size=\"sm\">Harbor Freight Supply, net 30, euro invoicing.</Text>\n </StepperPanel>\n </StepperStep>\n <StepperStep label=\"Delivery\">\n <StepperPanel>\n <Text size=\"sm\">Rotterdam hub, dock 4, window 08:00 to 12:00.</Text>\n </StepperPanel>\n </StepperStep>\n <StepperStep label=\"Confirmation\">\n <StepperPanel>\n <Text size=\"sm\">120 pallets, 18,400 EUR. The order goes out when you confirm.</Text>\n </StepperPanel>\n </StepperStep>\n </StepperList>\n <Actions />\n </Stepper>\n );\n}\n\nfunction Actions() {\n const stepper = useStepper();\n\n return (\n <Inline gap={2}>\n <Button\n disabled={!stepper.canGoPrevious}\n onClick={() => stepper.previous()}\n variant=\"outline\"\n >\n Back\n </Button>\n <Button disabled={!stepper.canGoNext} onClick={() => stepper.next()}>\n Continue\n </Button>\n </Inline>\n );\n}\n",
421
+ "verdict": "example"
422
422
  },
423
423
  {
424
424
  "id": "compact",
425
425
  "title": "A row with no room to be one",
426
426
  "note": "Below thirty rems of its own inline size a horizontal stepper becomes a column. Drag the stage narrower and watch the connectors turn with it, rather than five names shrinking to two characters each.",
427
427
  "language": "tsx",
428
- "source": "// The reflow is a container query on the family itself, so a stepper in a\n// narrow panel becomes a column while the same one on a full page does not.\n<Stepper orientation=\"horizontal\">\n <StepperList>{steps}</StepperList>\n</Stepper>;\n",
429
- "verdict": "excerpt"
428
+ "source": "import { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperCompact() {\n return (\n <Stepper defaultStep={2} messages={{ label: 'Inbound shipment' }} orientation=\"horizontal\">\n <StepperList>\n <StepperStep complete label=\"Booked\" />\n <StepperStep complete label=\"Departed\" />\n <StepperStep label=\"Customs\" />\n <StepperStep label=\"Unloading\" />\n <StepperStep label=\"Put away\" />\n </StepperList>\n </Stepper>\n );\n}\n",
429
+ "verdict": "example"
430
430
  },
431
431
  {
432
432
  "id": "content",
433
433
  "title": "Names the flow did not choose",
434
434
  "note": "Six steps, a German compound and a phrase of four words. The label wraps inside its own column, the marker never does, and the connector takes whatever is left.",
435
435
  "language": "tsx",
436
- "source": "<StepperStep description=\"Compiled in 42 seconds\" label=\"Zahlungsabwicklungseinstellungen\" />;\n",
437
- "verdict": "excerpt"
436
+ "source": "import { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperContent() {\n return (\n <Stepper defaultStep={2} messages={{ label: 'Quarter close' }}>\n <StepperList>\n <StepperStep\n complete\n description=\"Signed 3 April\"\n label=\"Intercompany reconciliation and eliminations\"\n />\n <StepperStep complete label=\"Accruals\" />\n <StepperStep description=\"14 open items\" label=\"Foreign currency revaluation\" />\n <StepperStep label=\"Tax\" />\n <StepperStep description=\"Due 21 April\" label=\"Consolidation and group reporting\" />\n <StepperStep label=\"Sign-off\" />\n </StepperList>\n </Stepper>\n );\n}\n",
437
+ "verdict": "example"
438
438
  },
439
439
  {
440
440
  "id": "composition",
@@ -451,6 +451,38 @@
451
451
  "language": "tsx",
452
452
  "source": "// \"Cart, Step 1 of 4, completed\" — the position and the status in words,\n// because the number in the circle is hidden from assistive technology.\n<Stepper defaultStep={1} messages={{ label: 'Checkout' }}>\n <StepperList>{steps}</StepperList>\n</Stepper>;\n",
453
453
  "verdict": "excerpt"
454
+ },
455
+ {
456
+ "id": "basic",
457
+ "title": "basic.tsx",
458
+ "note": null,
459
+ "language": "tsx",
460
+ "source": "import { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperBasic() {\n return (\n <Stepper defaultStep={1} messages={{ label: 'Checkout' }}>\n <StepperList>\n <StepperStep complete label=\"Cart\" />\n <StepperStep label=\"Address\" />\n <StepperStep label=\"Payment\" />\n <StepperStep label=\"Review\" />\n </StepperList>\n </Stepper>\n );\n}\n",
461
+ "verdict": "example"
462
+ },
463
+ {
464
+ "id": "controlled",
465
+ "title": "controlled.tsx",
466
+ "note": null,
467
+ "language": "tsx",
468
+ "source": "import { useState } from 'react';\n\nimport { Stack } from '@slotted/react/stack';\nimport { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\nimport type { StepperChangeRequest } from '@slotted/react/stepper';\nimport { Switch } from '@slotted/react/switch';\nimport { Text } from '@slotted/react/typography';\n\nexport default function StepperControlled() {\n const [step, setStep] = useState(0);\n const [confirmed, setConfirmed] = useState(false);\n\n function handleStepChange(next: number, request: StepperChangeRequest) {\n if (next > step && !confirmed) {\n request.cancel();\n return;\n }\n\n setStep(next);\n }\n\n return (\n <Stack gap={5}>\n <Switch checked={confirmed} onCheckedChange={setConfirmed}>\n Delivery address confirmed\n </Switch>\n <Stepper messages={{ label: 'Delivery' }} onStepChange={handleStepChange} step={step}>\n <StepperList>\n <StepperStep label=\"Address\" />\n <StepperStep label=\"Carrier\" />\n <StepperStep label=\"Time slot\" />\n </StepperList>\n </Stepper>\n <Text size=\"sm\" tone=\"muted\">\n {confirmed\n ? 'Forward moves are allowed.'\n : 'Forward moves are refused until the address is confirmed.'}\n </Text>\n </Stack>\n );\n}\n",
469
+ "verdict": "example"
470
+ },
471
+ {
472
+ "id": "defaults",
473
+ "title": "defaults.tsx",
474
+ "note": null,
475
+ "language": "tsx",
476
+ "source": "import { Stack } from '@slotted/react/stack';\nimport { Stepper, StepperDefaultsProvider, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperDefaults() {\n return (\n <StepperDefaultsProvider labelPlacement=\"bottom\" linear>\n <Stack gap={8}>\n <Stepper defaultStep={1} messages={{ label: 'Payroll run' }}>\n <StepperList>\n <StepperStep complete label=\"Hours\" />\n <StepperStep label=\"Deductions\" />\n <StepperStep label=\"Approval\" />\n <StepperStep label=\"Payment\" />\n </StepperList>\n </Stepper>\n <Stepper defaultStep={1} labelPlacement=\"end\" messages={{ label: 'Bonus run' }}>\n <StepperList>\n <StepperStep complete label=\"Targets\" />\n <StepperStep label=\"Approval\" />\n <StepperStep label=\"Payment\" />\n </StepperList>\n </Stepper>\n </Stack>\n </StepperDefaultsProvider>\n );\n}\n",
477
+ "verdict": "example"
478
+ },
479
+ {
480
+ "id": "messages",
481
+ "title": "messages.tsx",
482
+ "note": null,
483
+ "language": "tsx",
484
+ "source": "import { Stepper, StepperList, StepperStep } from '@slotted/react/stepper';\n\nexport default function StepperMessages() {\n return (\n <Stepper\n defaultStep={1}\n linear\n messages={{\n complete: 'done',\n current: 'in progress',\n label: 'Warehouse transfer',\n position: 'Stage {index} of {count}',\n unavailable: 'locked',\n }}\n >\n <StepperList>\n <StepperStep complete label=\"Pick list\" />\n <StepperStep label=\"Loading\" />\n <StepperStep label=\"Transit\" />\n <StepperStep label=\"Receiving\" />\n </StepperList>\n </Stepper>\n );\n}\n",
485
+ "verdict": "example"
454
486
  }
455
487
  ]
456
488
  }