@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
@@ -108,84 +108,84 @@
108
108
  "type": "'plain' | 'raised'",
109
109
  "defaultValue": "plain",
110
110
  "appliesTo": "ActionBar, ActionBarDefaultsProvider",
111
- "description": "Whether the bar paints a ground and a rule of its own. plain is for a bar that already stands on one — a Page footer, a Card footer; raised is the bar with nothing under it"
111
+ "description": "Whether the bar paints a ground and a rule of its own. plain is for a bar that already stands on one — a Page footer, a Card footer; raised is the bar with nothing under it."
112
112
  },
113
113
  {
114
114
  "name": "size",
115
115
  "type": "'sm' | 'md' | 'lg'",
116
116
  "defaultValue": "md",
117
117
  "appliesTo": "ActionBar, ActionBarDefaultsProvider",
118
- "description": "The bar’s own inset, gap, minimum height and rule, from the control scales. It also reaches the buttons inside through the Button family’s own defaults token, so a button that states its own size still wins"
118
+ "description": "The bar’s own inset, gap, minimum height and rule, from the control scales. It also reaches the buttons inside through the Button family’s own defaults token, so a button that states its own size still wins."
119
119
  },
120
120
  {
121
121
  "name": "align",
122
122
  "type": "'end' | 'start' | 'center'",
123
123
  "defaultValue": "end",
124
124
  "appliesTo": "ActionBar, ActionBarDefaultsProvider",
125
- "description": "Where the run sits in the room left after the status. end is the anchor that keeps the action that confirms still, and it is the default for that reason"
125
+ "description": "Where the run sits in the room left after the status. end is the anchor that keeps the action that confirms still, and it is the default for that reason."
126
126
  },
127
127
  {
128
128
  "name": "sticky",
129
129
  "type": "boolean",
130
130
  "defaultValue": "false",
131
131
  "appliesTo": "ActionBar, ActionBarDefaultsProvider",
132
- "description": "Whether the bar sticks to the end of the region that scrolls. Sticky and never fixed: it takes its own height in the flow, and its offset is whatever Page publishes as --slotted-page-sticky-bottom, so it stops above that page’s footer rather than covering it"
132
+ "description": "Whether the bar sticks to the end of the region that scrolls. Sticky and never fixed: it takes its own height in the flow, and its offset is whatever Page publishes as --slotted-page-sticky-bottom, so it stops above that page’s footer rather than covering it."
133
133
  },
134
134
  {
135
135
  "name": "present",
136
136
  "type": "boolean",
137
137
  "defaultValue": "true",
138
138
  "appliesTo": "ActionBar",
139
- "description": "Whether the bar belongs on screen at all — a bulk bar while there is a selection, a save bar while there are unsaved changes. It enters from below, leaves the same way, and leaves the document once it has left the view. It is an input rather than a state model: the bar never asks to appear, so there is nothing to cancel"
139
+ "description": "Whether the bar belongs on screen at all — a bulk bar while there is a selection, a save bar while there are unsaved changes. It enters from below, leaves the same way, and leaves the document once it has left the view. It is an input rather than a state model: the bar never asks to appear, so there is nothing to cancel."
140
140
  },
141
141
  {
142
142
  "name": "onOverflowChange",
143
143
  "type": "(hidden: number) => void",
144
144
  "defaultValue": "—",
145
145
  "appliesTo": "ActionBar",
146
- "description": "How many actions gave way, once per change. There is no controlled pair over the collapsed set: it is a measurement, and a consumer who owned it could assert that a bar fits when the layout says it does not"
146
+ "description": "How many actions gave way, once per change. There is no controlled pair over the collapsed set: it is a measurement, and a consumer who owned it could assert that a bar fits when the layout says it does not."
147
147
  },
148
148
  {
149
149
  "name": "priority",
150
150
  "type": "'pinned' | 'high' | 'low' | 'hide' | 'always'",
151
151
  "defaultValue": "low with a counterpart, pinned without",
152
152
  "appliesTo": "ActionBarAction",
153
- "description": "Where the action stands in the order of giving way. pinned never goes; high goes after low and hide; low is the first into the surface; hide goes first and is not offered in the surface at all; always is never in the bar. A rank that needs a counterpart and has none behaves as pinned, so a consumer error leaves the control on the bar"
153
+ "description": "Where the action stands in the order of giving way. pinned never goes; high goes after low and hide; low is the first into the surface; hide goes first and is not offered in the surface at all; always is never in the bar. A rank that needs a counterpart and has none behaves as pinned, so a consumer error leaves the control on the bar."
154
154
  },
155
155
  {
156
156
  "name": "counterpart",
157
157
  "type": "ReactNode",
158
158
  "defaultValue": "—",
159
159
  "appliesTo": "ActionBarAction",
160
- "description": "What the action becomes in the surface. An action that declares none is pinned — pinning is the absence of a counterpart rather than a second prop, so the two can never disagree. It is not called overflow, because that word names what a container does with more content than it has room for"
160
+ "description": "What the action becomes in the surface. An action that declares none is pinned — pinning is the absence of a counterpart rather than a second prop, so the two can never disagree. It is not called overflow, because that word names what a container does with more content than it has room for."
161
161
  },
162
162
  {
163
163
  "name": "label",
164
164
  "type": "string | ((hidden: number) => string)",
165
165
  "defaultValue": "counted",
166
166
  "appliesTo": "ActionBarOverflow",
167
- "description": "The accessible name of the control that holds what did not fit. The default counts — \"3 more actions\" — because three dots say nothing about how much is behind them, in the language in force, with its plural"
167
+ "description": "The accessible name of the control that holds what did not fit. The default counts — \"3 more actions\" — because three dots say nothing about how much is behind them, in the language in force, with its plural."
168
168
  },
169
169
  {
170
170
  "name": "align, side, size",
171
171
  "type": "MenuAlign | MenuSide | MenuSize",
172
172
  "defaultValue": "from the Menu defaults",
173
173
  "appliesTo": "ActionBarOverflow",
174
- "description": "Where the surface sits against the trigger, and its own measure. Everything else about the layer an application sets once with MenuDefaultsProvider"
174
+ "description": "Where the surface sits against the trigger, and its own measure. Everything else about the layer an application sets once with MenuDefaultsProvider."
175
175
  },
176
176
  {
177
177
  "name": "aria-label",
178
178
  "type": "string",
179
179
  "defaultValue": "—",
180
180
  "appliesTo": "ActionBar",
181
- "description": "The name of the bar. The family writes none: only the page knows which task the bar finishes. aria-labelledby works the same way"
181
+ "description": "The name of the bar. Action Bar writes none: only the page knows which task the bar finishes. aria-labelledby works the same way."
182
182
  },
183
183
  {
184
184
  "name": "role",
185
185
  "type": "string",
186
186
  "defaultValue": "group",
187
187
  "appliesTo": "ActionBar",
188
- "description": "group, because there is no roving focus to declare — ARIA makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management. A consumer with ten icon-only actions may write toolbar themselves and keeps it, but that consumer wants the Toolbar family"
188
+ "description": "group, because there is no roving focus to declare — ARIA makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management. A consumer with ten icon-only actions may write toolbar themselves and keeps it, but that consumer wants the Toolbar family."
189
189
  }
190
190
  ],
191
191
  "composition": [
@@ -194,49 +194,49 @@
194
194
  "type": "(props) => ReactNode",
195
195
  "defaultValue": "—",
196
196
  "appliesTo": "every part",
197
- "description": "Substitutes any of the six roots and hands it every attribute — the bar can be a footer, the status a p, and the overflow trigger the consumer’s own IconButton with the Menu wiring on it"
197
+ "description": "Substitutes any of the six roots and hands it every attribute — the bar can be a footer, the status a p, and the overflow trigger the consumer’s own IconButton with the Menu wiring on it."
198
198
  },
199
199
  {
200
200
  "name": "ActionBarDefaultsProvider",
201
201
  "type": "{ variant, size, align, sticky }",
202
202
  "defaultValue": "—",
203
203
  "appliesTo": "a subtree",
204
- "description": "The four decisions an application takes once. A bar that states any of them itself still wins"
204
+ "description": "The four decisions an application takes once. A bar that states any of them itself still wins."
205
205
  },
206
206
  {
207
207
  "name": "menuRef",
208
208
  "type": "Ref<MenuHandle>",
209
209
  "defaultValue": "—",
210
210
  "appliesTo": "ActionBarOverflow",
211
- "description": "Reaches the surface’s imperative actions — open, close and focus — which belong to the Menu family rather than to this one"
211
+ "description": "Reaches the surface’s imperative actions — open, close and focus — which belong to the Menu family rather than to this one."
212
212
  },
213
213
  {
214
214
  "name": "useActionBarOverflow",
215
215
  "type": "() => { surface, counterpart }",
216
216
  "defaultValue": "—",
217
217
  "appliesTo": "inside ActionBar",
218
- "description": "What the parts read: the actions the surface holds, in the order the bar holds them, and what each one becomes. A consumer’s own trigger reads the same value"
218
+ "description": "What the parts read: the actions the surface holds, in the order the bar holds them, and what each one becomes. A consumer’s own trigger reads the same value."
219
219
  },
220
220
  {
221
221
  "name": "ref",
222
222
  "type": "Ref<HTMLDivElement>",
223
223
  "defaultValue": "—",
224
224
  "appliesTo": "ActionBar and every part",
225
- "description": "Reaches the element itself. No imperative handle is invented: focus() on the action a page wants to start from is the platform’s own"
225
+ "description": "Reaches the element itself. No imperative handle is invented: focus() on the action a page wants to start from is the platform’s own."
226
226
  },
227
227
  {
228
228
  "name": "fieldset",
229
229
  "type": "the platform’s own element",
230
230
  "defaultValue": "—",
231
231
  "appliesTo": "around an ActionBar",
232
- "description": "How a bar is taken out of action. A container cannot disable controls it does not own, and a bar that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent"
232
+ "description": "How a bar is taken out of action. A container cannot disable controls it does not own, and a bar that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent."
233
233
  },
234
234
  {
235
235
  "name": "Page footer",
236
236
  "type": "the Page family’s own slot",
237
237
  "defaultValue": "—",
238
238
  "appliesTo": "around an ActionBar",
239
- "description": "Where a page’s bar belongs. Page paints the ground, the rule and the sticky behavior; this family arranges what is on it, which is why variant=\"plain\" paints nothing"
239
+ "description": "Where a page’s bar belongs. Page paints the ground, the rule and the sticky behavior; Action Bar arranges what is on it, which is why variant=\"plain\" paints nothing."
240
240
  }
241
241
  ],
242
242
  "events": [],
@@ -245,7 +245,7 @@
245
245
  "The role follows the departure. ARIA 1.2 makes toolbar a subclass of group, and the subclass is what is asserted when there is focus management to declare; without it, group is what is true. The bar names itself with the consumer’s aria-label or aria-labelledby, because only the page knows which task it finishes — and a role the consumer wrote on the element survives the family’s own.",
246
246
  "The only keyboard this family owns is the overflow trigger’s, and it is the Menu family’s: Enter, Space and ArrowDown open the surface, Escape closes it and returns focus to the trigger. Focus is moved onto the trigger before the action holding it is hidden, so a reader who was on the fifth button lands on the control that now holds it rather than on the document body.",
247
247
  "The trigger’s accessible name carries the count rather than the mark, so a reader hears “3 more actions” instead of three dots, in the language in force with its plural. The count in the DOM, data-collapsed, is the same fact for a stylesheet or a test.",
248
- "A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it. The family writes no data-disabled and declares no disabled state, because it does not own the capability — a container that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent.",
248
+ "A bar out of action is a fieldset around it: the platform disables every control inside and takes them out of the tab order with it. Action Bar writes no data-disabled and declares no disabled state, because it does not own the capability — a container that refused interaction while its controls still looked operable is the defect the state precedence exists to prevent.",
249
249
  "A bar that is not present leaves the document once it has left the view, rather than staying mounted and hidden. Carbon’s batch bar writes aria-hidden on its root and leaves the buttons inside reachable by Tab, which puts focus in a region the screen reader announces as absent. Appearing never moves focus either: the bar is not a dialog, and taking focus from a reader who is ticking boxes is exactly the jump a selection bar must not make.",
250
250
  "Under forced colors the rule between two runs keeps its own paint, because a background flattens to Canvas and would take the boundary between a destructive action and a frequent one with it. Everything else the reader sees belongs to the controls the consumer placed, and each keeps its own states, its own focus ring and its own contrast."
251
251
  ]
@@ -308,16 +308,16 @@
308
308
  "title": "Playground",
309
309
  "note": "One bar with every axis on it, driven by the controls below the canvas. Tab through it: each action is its own stop, in the order the form is read, and no arrow key is bound.",
310
310
  "language": "tsx",
311
- "source": "<ActionBar aria-label=\"Order actions\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\" tone=\"secondary\">\n Cancelar\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Submit for approval</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
311
+ "source": "<ActionBar aria-label=\"Order actions\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\" tone=\"secondary\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Submit for approval</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
312
312
  "verdict": "excerpt"
313
313
  },
314
314
  {
315
315
  "id": "priority",
316
316
  "title": "Which action gives way first",
317
- "note": "Narrow the stage and watch the order: “Preview” goes without a trace, “Duplicate” becomes a menu row, “Return” follows it, and “Approve” never moves. Position decides nothing here — the rank does.",
317
+ "note": "Narrow the stage and watch the order: the action ranked hide goes without a trace, the low one becomes a menu row, the high one follows it, and the pinned action never moves. Position decides nothing here — the rank does.",
318
318
  "language": "tsx",
319
- "source": "<ActionBarActions>\n {/* Gives way before every other rank, and is not offered in the menu. */}\n <ActionBarAction priority=\"hide\">\n <Button variant=\"ghost\">Preview</Button>\n </ActionBarAction>\n {/* low is the default for an action that declares a counterpart. */}\n <ActionBarAction counterpart={<MenuItem>Duplicar</MenuItem>}>\n <Button variant=\"ghost\">Duplicar</Button>\n </ActionBarAction>\n <ActionBarAction priority=\"high\" counterpart={<MenuItem>Devolver</MenuItem>}>\n <Button variant=\"outline\">Devolver</Button>\n </ActionBarAction>\n {/* No counterpart, so it is pinned: it has nowhere to go. */}\n <ActionBarAction>\n <Button>Aprovar</Button>\n </ActionBarAction>\n <ActionBarOverflow />\n</ActionBarActions>;\n",
320
- "verdict": "excerpt"
319
+ "source": "import {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarOverflow,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { MenuItem } from '@slotted/react/menu';\n\nexport default function ActionBarPriorityExample() {\n return (\n <ActionBar aria-label=\"Purchase order PO-4521 actions\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction priority=\"hide\">\n <Button variant=\"ghost\">Preview PDF</Button>\n </ActionBarAction>\n <ActionBarAction counterpart={<MenuItem>Duplicate order</MenuItem>}>\n <Button variant=\"ghost\">Duplicate order</Button>\n </ActionBarAction>\n <ActionBarAction priority=\"high\" counterpart={<MenuItem>Send back to buyer</MenuItem>}>\n <Button variant=\"outline\">Send back to buyer</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Approve</Button>\n </ActionBarAction>\n <ActionBarOverflow />\n </ActionBarActions>\n </ActionBar>\n );\n}\n",
320
+ "verdict": "example"
321
321
  },
322
322
  {
323
323
  "id": "overflowMenu",
@@ -330,81 +330,81 @@
330
330
  {
331
331
  "id": "stability",
332
332
  "title": "The action that confirms does not move",
333
- "note": "Four bars on one stage: no message, a short one, one that fills the bar, and a secondary action removed by a permission filter. Read the right edge — “Aprovar” is on the same pixel in all four.",
333
+ "note": "Four bars on one stage: no message, a short one, one that fills the bar, and a secondary action removed by a permission filter. Read the right edge — the action that confirms is on the same pixel in all four.",
334
334
  "language": "tsx",
335
- "source": "// The run carries margin-inline-start: auto, so what grows or leaves\n// moves what is *before* the last action and never the last action.\n<ActionBar aria-label=\"Order actions\">\n {dirty ? <ActionBarStatus>{message}</ActionBarStatus> : null}\n <ActionBarActions>\n {canReturn ? (\n <ActionBarAction>\n <Button variant=\"ghost\">Devolver</Button>\n </ActionBarAction>\n ) : null}\n <ActionBarAction>\n <Button loading={saving}>Aprovar</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
335
+ "source": "// The run carries margin-inline-start: auto, so what grows or leaves\n// moves what is *before* the last action and never the last action.\n<ActionBar aria-label=\"Order actions\">\n {dirty ? <ActionBarStatus>{message}</ActionBarStatus> : null}\n <ActionBarActions>\n {canReturn ? (\n <ActionBarAction>\n <Button variant=\"ghost\">Send back</Button>\n </ActionBarAction>\n ) : null}\n <ActionBarAction>\n <Button loading={saving}>Approve</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
336
336
  "verdict": "excerpt"
337
337
  },
338
338
  {
339
339
  "id": "danger",
340
340
  "title": "A destructive action, and the rule beside it",
341
- "note": "The first bar keeps “Void invoice” away from the two frequent actions with the bar’s own rule. The second is the case nobody writes down: the action that confirms *is* the destructive one, and the rule is what a hand about to press Keep reads.",
341
+ "note": "The first bar keeps “Void invoice” away from the two frequent actions with the bar’s own rule. The second is the case nobody writes down: the action that confirms is the destructive one, and the rule separates it from the action that keeps the record.",
342
342
  "language": "tsx",
343
- "source": "<ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\" tone=\"danger\">\n Void invoice\n </Button>\n </ActionBarAction>\n <ActionBarSeparator />\n <ActionBarAction>\n <Button variant=\"ghost\" tone=\"secondary\">\n Cancelar\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Guardar</Button>\n </ActionBarAction>\n</ActionBarActions>;\n",
344
- "verdict": "excerpt"
343
+ "source": "import {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarSeparator,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function ActionBarDangerExample() {\n return (\n <Stack gap={3}>\n <ActionBar aria-label=\"Invoice INV-20418 actions\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"danger\" variant=\"ghost\">\n Void invoice\n </Button>\n </ActionBarAction>\n <ActionBarSeparator />\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save invoice</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Confirm voiding of invoice INV-20418\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Keep invoice\n </Button>\n </ActionBarAction>\n <ActionBarSeparator />\n <ActionBarAction>\n <Button tone=\"danger\">Void invoice</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n </Stack>\n );\n}\n",
344
+ "verdict": "example"
345
345
  },
346
346
  {
347
347
  "id": "status",
348
348
  "title": "The sentence at the start",
349
349
  "note": "Four things a product actually puts there — a timestamp, a dirty-state marker, an inline message and a validation count — and the same two actions under each. The slot takes what room is left and shortens itself rather than pushing.",
350
350
  "language": "tsx",
351
- "source": "<ActionBarStatus>\n <StatusIndicator status=\"warning\">3 campos por preencher</StatusIndicator>\n</ActionBarStatus>;\n",
352
- "verdict": "excerpt"
351
+ "source": "import {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarStatus,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { InlineMessage } from '@slotted/react/inline-message';\nimport { Stack } from '@slotted/react/stack';\nimport { StatusIndicator } from '@slotted/react/status-indicator';\n\nexport default function ActionBarStatusExample() {\n return (\n <Stack gap={3}>\n <ActionBar aria-label=\"Order SO-20418 actions, no status\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Order SO-20418 actions, saved time\" variant=\"raised\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Order SO-20418 actions, missing fields\" variant=\"raised\">\n <ActionBarStatus>\n <StatusIndicator status=\"warning\">3 required fields are empty</StatusIndicator>\n </ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Order SO-20418 actions, credit limit\" variant=\"raised\">\n <ActionBarStatus>\n <InlineMessage tone=\"danger\">\n The order total of 18,400 USD is above the 15,000 USD credit limit of Harbor Outfitters.\n </InlineMessage>\n </ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n </Stack>\n );\n}\n",
352
+ "verdict": "example"
353
353
  },
354
354
  {
355
355
  "id": "bulk",
356
356
  "title": "The bar a selection brings",
357
- "note": "Table owns the selection and its count; this family supplies the place, the ranks and the entry. Toggle the selection and watch the bar arrive from below rather than appear — and leave the document when it goes, rather than staying hidden and still reachable by Tab.",
357
+ "note": "Table owns the selection and its count; Action Bar supplies the place, the ranks and the entry. Toggle the selection and watch the bar arrive from below rather than appear — and leave the document when it goes, rather than staying hidden and still reachable by Tab.",
358
358
  "language": "tsx",
359
- "source": "<ActionBar aria-label=\"Selection actions\" present={selected.length > 0} variant=\"raised\">\n <ActionBarStatus>\n <strong>{selected.length} invoices selected</strong>\n <Button size=\"sm\" variant=\"ghost\" tone=\"accent\" onClick={selectAll}>\n Select all {total} matching the filter\n </Button>\n </ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction counterpart={<MenuItem>Exportar</MenuItem>}>\n <Button variant=\"ghost\">Exportar</Button>\n </ActionBarAction>\n <ActionBarSeparator />\n <ActionBarAction>\n <Button tone=\"danger\">Anular</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
360
- "verdict": "excerpt"
359
+ "source": "import { useState } from 'react';\n\nimport {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarSeparator,\n ActionBarStatus,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function ActionBarBulkExample() {\n const [selected, setSelected] = useState(true);\n\n return (\n <Stack gap={3}>\n <Inline>\n <Button variant=\"outline\" onClick={() => setSelected(!selected)}>\n {selected ? 'Clear selection' : 'Select 12 invoices'}\n </Button>\n </Inline>\n <ActionBar aria-label=\"Selected invoices actions\" present={selected} variant=\"raised\">\n <ActionBarStatus>12 invoices selected</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\">Export to CSV</Button>\n </ActionBarAction>\n <ActionBarSeparator />\n <ActionBarAction>\n <Button tone=\"danger\">Void invoices</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n </Stack>\n );\n}\n",
360
+ "verdict": "example"
361
361
  },
362
362
  {
363
363
  "id": "sticky",
364
364
  "title": "Stuck to the end of what scrolls",
365
365
  "note": "Scroll the panel: the bar stays at the bottom and the last line of content scrolls up to it rather than under it. Inside a Page it reads --slotted-page-sticky-bottom and stops above that page’s own footer instead of covering it.",
366
366
  "language": "tsx",
367
- "source": "<ActionBar aria-label=\"Form actions\" sticky variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button>Guardar</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
368
- "verdict": "excerpt"
367
+ "source": "import {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarStatus,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { ScrollArea } from '@slotted/react/scroll-area';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nconst LINES = [\n 'Waterproof shell jacket, 24 units',\n 'Trail running shoes, 40 units',\n 'Insulated bottle 750 ml, 120 units',\n 'Merino base layer, 60 units',\n 'Camp stove, 18 units',\n 'Headlamp 400 lumens, 75 units',\n 'Dry bag 20 L, 90 units',\n 'Trekking poles, 32 units',\n];\n\nexport default function ActionBarStickyExample() {\n return (\n <ScrollArea maxBlockSize=\"14rem\" messages={{ label: 'Lines of order SO-20418' }}>\n <ScrollArea.Content>\n <Stack gap={3}>\n {LINES.map((line) => (\n <Text key={line} size=\"sm\">\n {line}\n </Text>\n ))}\n <ActionBar aria-label=\"Order SO-20418 actions\" sticky variant=\"raised\">\n <ActionBarStatus>8 lines</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button>Save changes</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n </Stack>\n </ScrollArea.Content>\n </ScrollArea>\n );\n}\n",
368
+ "verdict": "example"
369
369
  },
370
370
  {
371
371
  "id": "align",
372
372
  "title": "Where the run sits",
373
373
  "note": "end is the anchor and the default; start puts the run beside the status; center places it in what is left. The field disagrees about this one — Salesforce centers a docked footer, Polaris ends it, Fluent starts it — so it is an axis.",
374
374
  "language": "tsx",
375
- "source": "<ActionBar aria-label=\"Actions\" align=\"center\" variant=\"raised\" />;\n",
376
- "verdict": "excerpt"
375
+ "source": "import {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarStatus,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function ActionBarAlignExample() {\n return (\n <Stack gap={3}>\n <ActionBar aria-label=\"Actions at the end\" align=\"end\" variant=\"raised\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Actions at the start\" align=\"start\" variant=\"raised\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Actions at the center\" align=\"center\" variant=\"raised\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n </Stack>\n );\n}\n",
376
+ "verdict": "example"
377
377
  },
378
378
  {
379
379
  "id": "sizes",
380
380
  "title": "The step the bar sits at",
381
381
  "note": "The size moves the bar’s own inset, gap, minimum height and rule — and it reaches the buttons through the Button family’s own defaults, so a bar does not make a consumer repeat size on every control. A button that states its own still wins.",
382
382
  "language": "tsx",
383
- "source": "<ActionBar aria-label=\"Actions\" size=\"sm\" variant=\"raised\">\n <ActionBarActions>\n {/* No size here: the bar hands its own down. */}\n <ActionBarAction>\n <Button variant=\"ghost\">Cancelar</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button size=\"lg\">Guardar</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
384
- "verdict": "excerpt"
383
+ "source": "import {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarStatus,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function ActionBarSizesExample() {\n return (\n <Stack gap={3}>\n <ActionBar aria-label=\"Small bar\" size=\"sm\" variant=\"raised\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Medium bar\" size=\"md\" variant=\"raised\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Large bar\" size=\"lg\" variant=\"raised\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button size=\"sm\" tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n </Stack>\n );\n}\n",
384
+ "verdict": "example"
385
385
  },
386
386
  {
387
387
  "id": "variant",
388
388
  "title": "Whether the bar paints a ground",
389
- "note": "plain is the default and paints nothing — a bar inside a Page footer is already standing on a ground that family painted. raised takes the surface and one hairline at the top, which is the bar with no page around it: a drawer, a dialog, a card.",
389
+ "note": "plain is the default and paints nothing — a bar inside a Page footer is already standing on a ground that Page painted. raised takes the surface and one hairline at the top, which is the bar with no page around it: a drawer, a dialog, a card.",
390
390
  "language": "tsx",
391
- "source": "<ActionBar aria-label=\"Actions\" variant=\"plain\" />;\n<ActionBar aria-label=\"Actions\" variant=\"raised\" />;\n",
392
- "verdict": "excerpt"
391
+ "source": "import { ActionBar, ActionBarAction, ActionBarActions } from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { Card, CardBody, CardFooter } from '@slotted/react/card';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function ActionBarVariantExample() {\n return (\n <Stack gap={4}>\n <Card>\n <CardBody>\n <Text>Order SO-20418 ships on Friday.</Text>\n </CardBody>\n <CardFooter>\n <ActionBar aria-label=\"Order SO-20418 actions in a card\" variant=\"plain\">\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Cancel order\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Confirm shipment</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n </CardFooter>\n </Card>\n\n <ActionBar aria-label=\"Order SO-20418 actions on their own\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Cancel order\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Confirm shipment</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n </Stack>\n );\n}\n",
392
+ "verdict": "example"
393
393
  },
394
394
  {
395
395
  "id": "stacked",
396
396
  "title": "The bar on a phone",
397
397
  "note": "Below 24rem of container a bar with no overflow control becomes a full-width column with the action that confirms on top, and the collapse stops running — a column has room for everything, so there is no menu. A bar with an overflow control keeps one row: the actions without a counterpart stay and the rest fold into the menu. The DOM order does not change, so Tab still reads the form’s order.",
398
398
  "language": "tsx",
399
- "source": "// The breakpoint lives in the stylesheet's container query, and the\n// binding reads back the property that query raises rather than holding\n// a copy of the number.\n<ActionBar aria-label=\"Order actions\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\">Discard changes</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save changes</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
400
- "verdict": "excerpt"
399
+ "source": "import {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarOverflow,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { MenuItem } from '@slotted/react/menu';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function ActionBarStackedExample() {\n return (\n <Stack gap={4}>\n <ActionBar aria-label=\"Order SO-20418 actions without a menu\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard all changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button variant=\"outline\">Save as draft</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Submit for approval</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Order SO-20418 actions with a menu\" variant=\"raised\">\n <ActionBarActions>\n <ActionBarAction counterpart={<MenuItem>Discard all changes</MenuItem>}>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard all changes\n </Button>\n </ActionBarAction>\n <ActionBarAction counterpart={<MenuItem>Save as draft</MenuItem>}>\n <Button variant=\"outline\">Save as draft</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Submit for approval</Button>\n </ActionBarAction>\n <ActionBarOverflow />\n </ActionBarActions>\n </ActionBar>\n </Stack>\n );\n}\n",
400
+ "verdict": "example"
401
401
  },
402
402
  {
403
403
  "id": "content",
404
- "title": "Content the family did not choose",
405
- "note": "A German label twice the length of the Portuguese one, a reference number with no spaces in it, and an action mid-flight. The bar never truncates a label: it wraps, or the action goes to the menu where there is a whole row for it.",
404
+ "title": "Content the application chose",
405
+ "note": "Two long labels, a reference number with no spaces in it, and an action mid-flight. The bar never truncates a label: it wraps, or the action goes to the menu where there is a whole row for it.",
406
406
  "language": "tsx",
407
- "source": "<ActionBar aria-label=\"Bestellaktionen\" variant=\"raised\">\n <ActionBarStatus>Entwurf um 14:07 gespeichert</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\">Änderungen verwerfen</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button loading>Zur Genehmigung einreichen</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
407
+ "source": "<ActionBar aria-label=\"Order actions\" variant=\"raised\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\">Discard all changes</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button loading>Submit for approval</Button>\n </ActionBarAction>\n </ActionBarActions>\n</ActionBar>;\n",
408
408
  "verdict": "excerpt"
409
409
  },
410
410
  {
@@ -412,7 +412,7 @@
412
412
  "title": "Setting it once, and standing beside other families",
413
413
  "note": "The provider carries the four decisions an application takes once. The bar is what goes inside a Page footer, inside a Drawer and under a Table — and every part can be rendered as the consumer’s own element.",
414
414
  "language": "tsx",
415
- "source": "<ActionBarDefaultsProvider size=\"sm\" variant=\"plain\">\n <Page\n footer={\n <ActionBar aria-label=\"Order actions\" render={(props) => <div {...props} />}>\n <ActionBarActions>\n <ActionBarAction>\n <Button>Submeter</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n }\n >\n <PageBody>…</PageBody>\n </Page>\n</ActionBarDefaultsProvider>;\n",
415
+ "source": "<ActionBarDefaultsProvider size=\"sm\" variant=\"plain\">\n <Page\n footer={\n <ActionBar aria-label=\"Order actions\" render={(props) => <div {...props} />}>\n <ActionBarActions>\n <ActionBarAction>\n <Button>Submit order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n }\n >\n <PageBody>…</PageBody>\n </Page>\n</ActionBarDefaultsProvider>;\n",
416
416
  "verdict": "excerpt"
417
417
  },
418
418
  {
@@ -420,8 +420,32 @@
420
420
  "title": "The keyboard, and what a reader hears",
421
421
  "note": "Tab reaches each action in the order the author wrote it. The bar is role=\"group\" with the consumer’s own name; a fieldset around it is how it goes out of action, and the platform takes the controls out of the tab order with it.",
422
422
  "language": "tsx",
423
- "source": "<fieldset disabled={submitting}>\n <ActionBar aria-label=\"Order actions\">\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\">Cancelar</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Guardar</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n</fieldset>;\n",
423
+ "source": "<fieldset disabled={submitting}>\n <ActionBar aria-label=\"Order actions\">\n <ActionBarActions>\n <ActionBarAction>\n <Button variant=\"ghost\">Discard changes</Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n</fieldset>;\n",
424
424
  "verdict": "excerpt"
425
+ },
426
+ {
427
+ "id": "basic",
428
+ "title": "basic.tsx",
429
+ "note": null,
430
+ "language": "tsx",
431
+ "source": "import {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarStatus,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\n\nexport default function ActionBarBasicExample() {\n return (\n <ActionBar aria-label=\"Purchase order PO-4521 actions\" variant=\"raised\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Submit for approval</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n );\n}\n",
432
+ "verdict": "example"
433
+ },
434
+ {
435
+ "id": "defaults",
436
+ "title": "defaults.tsx",
437
+ "note": null,
438
+ "language": "tsx",
439
+ "source": "import {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarDefaultsProvider,\n ActionBarStatus,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function ActionBarDefaultsExample() {\n return (\n <ActionBarDefaultsProvider align=\"start\" size=\"sm\" variant=\"raised\">\n <Stack gap={3}>\n <ActionBar aria-label=\"Bar with the defaults\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n\n <ActionBar aria-label=\"Bar with its own align and size\" align=\"end\" size=\"lg\">\n <ActionBarStatus>Draft saved at 14:07</ActionBarStatus>\n <ActionBarActions>\n <ActionBarAction>\n <Button tone=\"secondary\" variant=\"ghost\">\n Discard changes\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Save order</Button>\n </ActionBarAction>\n </ActionBarActions>\n </ActionBar>\n </Stack>\n </ActionBarDefaultsProvider>\n );\n}\n",
440
+ "verdict": "example"
441
+ },
442
+ {
443
+ "id": "overflow-menu",
444
+ "title": "overflow-menu.tsx",
445
+ "note": null,
446
+ "language": "tsx",
447
+ "source": "import { useState } from 'react';\n\nimport {\n ActionBar,\n ActionBarAction,\n ActionBarActions,\n ActionBarOverflow,\n ActionBarSeparator,\n} from '@slotted/react/action-bar';\nimport { Button } from '@slotted/react/button';\nimport { MenuItem } from '@slotted/react/menu';\nimport { Stack } from '@slotted/react/stack';\nimport { Text } from '@slotted/react/typography';\n\nexport default function ActionBarOverflowMenuExample() {\n const [hidden, setHidden] = useState(0);\n\n return (\n <Stack gap={3}>\n <ActionBar\n aria-label=\"Invoice INV-20418 actions\"\n onOverflowChange={setHidden}\n variant=\"raised\"\n >\n <ActionBarActions>\n <ActionBarAction priority=\"always\" counterpart={<MenuItem>View history</MenuItem>}>\n <Button variant=\"ghost\">View history</Button>\n </ActionBarAction>\n <ActionBarAction counterpart={<MenuItem>Export to CSV</MenuItem>}>\n <Button variant=\"ghost\">Export to CSV</Button>\n </ActionBarAction>\n <ActionBarAction counterpart={<MenuItem>Print remittance</MenuItem>}>\n <Button variant=\"ghost\">Print remittance</Button>\n </ActionBarAction>\n <ActionBarSeparator />\n <ActionBarAction counterpart={<MenuItem>Void invoice</MenuItem>}>\n <Button tone=\"danger\" variant=\"ghost\">\n Void invoice\n </Button>\n </ActionBarAction>\n <ActionBarAction>\n <Button>Record payment</Button>\n </ActionBarAction>\n <ActionBarOverflow label={(count) => `More invoice actions (${count})`} />\n </ActionBarActions>\n </ActionBar>\n <Text size=\"sm\" tone=\"muted\">\n Actions that gave way: {hidden}\n </Text>\n </Stack>\n );\n}\n",
448
+ "verdict": "example"
425
449
  }
426
450
  ]
427
451
  }