@slotted/react 0.1.0-beta.29 → 0.1.0-beta.30

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 (362) hide show
  1. package/dist/{app-shell-CXlO6z0w.js → app-shell-ClwskWBN.js} +1 -1
  2. package/dist/app-shell.js +2 -2
  3. package/dist/docs/AGENTS.snippet.md +1 -1
  4. package/dist/docs/accordion.json +5 -5
  5. package/dist/docs/accordion.md +11 -11
  6. package/dist/docs/action-bar.json +19 -19
  7. package/dist/docs/action-bar.md +29 -29
  8. package/dist/docs/action-sheet.json +5 -5
  9. package/dist/docs/action-sheet.md +15 -15
  10. package/dist/docs/alert.json +11 -11
  11. package/dist/docs/alert.md +17 -17
  12. package/dist/docs/app-shell.examples.md +8 -8
  13. package/dist/docs/app-shell.json +11 -11
  14. package/dist/docs/app-shell.md +2 -2
  15. package/dist/docs/attachment.json +1 -1
  16. package/dist/docs/attachment.md +1 -1
  17. package/dist/docs/avatar-group.json +1 -1
  18. package/dist/docs/avatar-group.md +1 -1
  19. package/dist/docs/avatar.json +10 -10
  20. package/dist/docs/avatar.md +9 -9
  21. package/dist/docs/badge.json +5 -5
  22. package/dist/docs/badge.md +5 -5
  23. package/dist/docs/breadcrumb.json +2 -2
  24. package/dist/docs/breadcrumb.md +2 -2
  25. package/dist/docs/button-group.json +1 -1
  26. package/dist/docs/button-group.md +1 -1
  27. package/dist/docs/button.json +11 -11
  28. package/dist/docs/button.md +7 -7
  29. package/dist/docs/calendar.json +4 -4
  30. package/dist/docs/calendar.md +3 -3
  31. package/dist/docs/card.json +2 -2
  32. package/dist/docs/card.md +2 -2
  33. package/dist/docs/carousel.json +11 -11
  34. package/dist/docs/carousel.md +12 -12
  35. package/dist/docs/chart.examples.md +41 -41
  36. package/dist/docs/chart.json +28 -28
  37. package/dist/docs/chart.md +4 -4
  38. package/dist/docs/checkbox-group.examples.md +12 -12
  39. package/dist/docs/checkbox-group.json +6 -6
  40. package/dist/docs/checkbox-group.md +1 -1
  41. package/dist/docs/checkbox.examples.md +8 -8
  42. package/dist/docs/checkbox.json +7 -7
  43. package/dist/docs/checkbox.md +4 -4
  44. package/dist/docs/code-block.json +1 -1
  45. package/dist/docs/code-block.md +1 -1
  46. package/dist/docs/collapsible.json +12 -12
  47. package/dist/docs/collapsible.md +21 -21
  48. package/dist/docs/color-picker.json +25 -25
  49. package/dist/docs/color-picker.md +15 -15
  50. package/dist/docs/column-manager.json +1 -1
  51. package/dist/docs/column-manager.md +1 -1
  52. package/dist/docs/combobox.json +1 -1
  53. package/dist/docs/combobox.md +1 -1
  54. package/dist/docs/context-menu.json +1 -1
  55. package/dist/docs/context-menu.md +1 -1
  56. package/dist/docs/currency-field.examples.md +1 -1
  57. package/dist/docs/currency-field.json +5 -5
  58. package/dist/docs/currency-field.md +4 -4
  59. package/dist/docs/dashboard-grid.json +1 -1
  60. package/dist/docs/data-grid.json +2 -2
  61. package/dist/docs/data-grid.md +1 -1
  62. package/dist/docs/data-grid.props.md +1 -1
  63. package/dist/docs/date-field.json +4 -4
  64. package/dist/docs/date-field.md +9 -9
  65. package/dist/docs/date-picker.json +1 -1
  66. package/dist/docs/date-range-picker.json +1 -1
  67. package/dist/docs/datetime-field.json +3 -3
  68. package/dist/docs/datetime-field.md +7 -7
  69. package/dist/docs/datetime-picker.json +1 -1
  70. package/dist/docs/datetime-range-picker.examples.md +2 -2
  71. package/dist/docs/datetime-range-picker.json +3 -3
  72. package/dist/docs/datetime-range-picker.md +2 -2
  73. package/dist/docs/description-list.json +5 -5
  74. package/dist/docs/description-list.md +4 -4
  75. package/dist/docs/detail-panel.json +9 -9
  76. package/dist/docs/detail-panel.md +11 -11
  77. package/dist/docs/dialog.examples.md +5 -5
  78. package/dist/docs/dialog.json +12 -12
  79. package/dist/docs/dialog.md +4 -4
  80. package/dist/docs/dialog.props.md +2 -2
  81. package/dist/docs/drawer.examples.md +14 -14
  82. package/dist/docs/drawer.json +8 -8
  83. package/dist/docs/drawer.md +1 -1
  84. package/dist/docs/entity-picker.json +1 -1
  85. package/dist/docs/entity-picker.md +2 -2
  86. package/dist/docs/event-calendar.examples.md +3 -3
  87. package/dist/docs/event-calendar.json +5 -5
  88. package/dist/docs/event-calendar.md +2 -2
  89. package/dist/docs/field-group.json +5 -5
  90. package/dist/docs/field-group.md +9 -9
  91. package/dist/docs/field.examples.md +3 -3
  92. package/dist/docs/field.json +4 -4
  93. package/dist/docs/field.md +1 -1
  94. package/dist/docs/form.json +6 -6
  95. package/dist/docs/form.md +10 -10
  96. package/dist/docs/fullscreen.json +3 -3
  97. package/dist/docs/fullscreen.md +6 -6
  98. package/dist/docs/guidelines/async-feedback.md +2 -2
  99. package/dist/docs/guidelines/builders.md +1 -1
  100. package/dist/docs/guidelines/composition.md +4 -4
  101. package/dist/docs/guidelines/conversations.md +1 -1
  102. package/dist/docs/guidelines/index.md +2 -2
  103. package/dist/docs/guidelines/layout-alignment.md +5 -5
  104. package/dist/docs/guidelines/overviews.md +3 -3
  105. package/dist/docs/guidelines/own-elements.md +7 -7
  106. package/dist/docs/guidelines/record-pages.md +1 -1
  107. package/dist/docs/highlight.json +11 -11
  108. package/dist/docs/highlight.md +18 -18
  109. package/dist/docs/icon.json +2 -2
  110. package/dist/docs/icon.md +2 -2
  111. package/dist/docs/image.json +3 -3
  112. package/dist/docs/image.md +3 -3
  113. package/dist/docs/import-export-center.json +25 -25
  114. package/dist/docs/import-export-center.md +21 -21
  115. package/dist/docs/inline-message.json +14 -14
  116. package/dist/docs/inline-message.md +20 -20
  117. package/dist/docs/inline.json +1 -1
  118. package/dist/docs/inline.md +1 -1
  119. package/dist/docs/kbd.json +2 -2
  120. package/dist/docs/kbd.md +2 -2
  121. package/dist/docs/link.json +7 -7
  122. package/dist/docs/link.md +7 -7
  123. package/dist/docs/list-item.json +1 -1
  124. package/dist/docs/list-item.md +1 -1
  125. package/dist/docs/list.json +2 -2
  126. package/dist/docs/list.md +1 -1
  127. package/dist/docs/listbox.json +1 -1
  128. package/dist/docs/listbox.md +1 -1
  129. package/dist/docs/loading-overlay.json +2 -2
  130. package/dist/docs/loading-overlay.md +2 -2
  131. package/dist/docs/media-viewer.json +1 -1
  132. package/dist/docs/media-viewer.md +1 -1
  133. package/dist/docs/message-scroller.json +1 -1
  134. package/dist/docs/message-scroller.md +1 -1
  135. package/dist/docs/message.json +11 -11
  136. package/dist/docs/message.md +17 -17
  137. package/dist/docs/multi-select.json +1 -1
  138. package/dist/docs/notification-center.json +18 -18
  139. package/dist/docs/notification-center.md +25 -22
  140. package/dist/docs/number-field.examples.md +4 -4
  141. package/dist/docs/number-field.json +3 -3
  142. package/dist/docs/otp-input.json +9 -9
  143. package/dist/docs/otp-input.md +12 -12
  144. package/dist/docs/page-header.json +9 -9
  145. package/dist/docs/page-header.md +23 -23
  146. package/dist/docs/pagination.json +2 -2
  147. package/dist/docs/pagination.md +1 -1
  148. package/dist/docs/popover.examples.md +1 -1
  149. package/dist/docs/popover.json +3 -3
  150. package/dist/docs/popover.md +1 -1
  151. package/dist/docs/progress-indicator.json +4 -4
  152. package/dist/docs/progress-indicator.md +4 -4
  153. package/dist/docs/prompt-composer.json +3 -3
  154. package/dist/docs/prompt-composer.md +4 -4
  155. package/dist/docs/prose.json +1 -1
  156. package/dist/docs/prose.md +1 -1
  157. package/dist/docs/radio-group.examples.md +16 -16
  158. package/dist/docs/radio-group.json +9 -9
  159. package/dist/docs/radio-group.md +2 -2
  160. package/dist/docs/rating.json +18 -18
  161. package/dist/docs/rating.md +19 -23
  162. package/dist/docs/result-state.json +13 -13
  163. package/dist/docs/result-state.md +18 -20
  164. package/dist/docs/saved-views.json +1 -1
  165. package/dist/docs/scroll-area.json +5 -5
  166. package/dist/docs/scroll-area.md +6 -6
  167. package/dist/docs/section.json +6 -6
  168. package/dist/docs/section.md +11 -11
  169. package/dist/docs/segmented-control.json +15 -15
  170. package/dist/docs/segmented-control.md +39 -39
  171. package/dist/docs/skeleton.json +1 -1
  172. package/dist/docs/skeleton.md +1 -1
  173. package/dist/docs/skills/build-own-element/SKILL.md +3 -3
  174. package/dist/docs/skills/compose-screen/SKILL.md +2 -2
  175. package/dist/docs/skills/index.md +2 -2
  176. package/dist/docs/skills/review-screen/SKILL.md +3 -3
  177. package/dist/docs/skills/theme-app/SKILL.md +9 -9
  178. package/dist/docs/skills/waiting-states/SKILL.md +1 -1
  179. package/dist/docs/slider.json +9 -9
  180. package/dist/docs/slider.md +19 -19
  181. package/dist/docs/sparkline.json +8 -8
  182. package/dist/docs/sparkline.md +6 -6
  183. package/dist/docs/split-button.json +11 -11
  184. package/dist/docs/split-button.md +27 -27
  185. package/dist/docs/stack.json +1 -1
  186. package/dist/docs/stack.md +1 -1
  187. package/dist/docs/stat-card.json +3 -3
  188. package/dist/docs/stat-card.md +2 -2
  189. package/dist/docs/status-indicator.json +8 -8
  190. package/dist/docs/status-indicator.md +5 -5
  191. package/dist/docs/stepper.json +4 -4
  192. package/dist/docs/stepper.md +4 -4
  193. package/dist/docs/switch.json +5 -5
  194. package/dist/docs/switch.md +11 -7
  195. package/dist/docs/table-of-contents.json +9 -9
  196. package/dist/docs/table-of-contents.md +13 -13
  197. package/dist/docs/table.examples.md +1 -1
  198. package/dist/docs/table.json +1 -1
  199. package/dist/docs/tabs.json +1 -1
  200. package/dist/docs/tabs.md +1 -1
  201. package/dist/docs/tag.json +21 -21
  202. package/dist/docs/tag.md +18 -18
  203. package/dist/docs/tags-input.json +1 -1
  204. package/dist/docs/tags-input.md +1 -1
  205. package/dist/docs/text-field.examples.md +5 -5
  206. package/dist/docs/text-field.json +5 -5
  207. package/dist/docs/text-field.md +1 -1
  208. package/dist/docs/textarea.examples.md +4 -4
  209. package/dist/docs/textarea.json +2 -2
  210. package/dist/docs/time-field.json +3 -3
  211. package/dist/docs/time-field.md +7 -7
  212. package/dist/docs/time-picker.json +4 -4
  213. package/dist/docs/time-picker.md +7 -7
  214. package/dist/docs/time-range-picker.json +4 -4
  215. package/dist/docs/time-range-picker.md +5 -5
  216. package/dist/docs/toast.json +5 -5
  217. package/dist/docs/toast.md +5 -5
  218. package/dist/docs/toggle-group.json +13 -13
  219. package/dist/docs/toggle-group.md +38 -38
  220. package/dist/docs/toggle.json +8 -8
  221. package/dist/docs/toggle.md +8 -8
  222. package/dist/docs/tokens.md +15 -15
  223. package/dist/docs/toolbar.json +11 -11
  224. package/dist/docs/toolbar.md +28 -28
  225. package/dist/docs/tooltip.json +3 -3
  226. package/dist/docs/tooltip.md +3 -3
  227. package/dist/docs/top-navigation.examples.md +13 -13
  228. package/dist/docs/top-navigation.json +10 -10
  229. package/dist/docs/top-navigation.md +7 -7
  230. package/dist/docs/tour.json +8 -8
  231. package/dist/docs/tour.md +5 -5
  232. package/dist/docs/typography.json +2 -2
  233. package/dist/docs/typography.md +2 -2
  234. package/dist/docs/upload.examples.md +5 -5
  235. package/dist/docs/upload.json +10 -10
  236. package/dist/docs/upload.md +3 -3
  237. package/dist/{form-Im9lGi45.js → form-DnV8ndwm.js} +1 -1
  238. package/dist/form.js +1 -1
  239. package/dist/index.js +8 -8
  240. package/dist/{rating-Cjrwmxyw.js → rating-BtrkTAi0.js} +1 -1
  241. package/dist/rating.js +1 -1
  242. package/dist/{side-navigation-CvIGfGjZ.js → side-navigation-DNMpckRs.js} +1 -1
  243. package/dist/side-navigation.js +1 -1
  244. package/dist/{slider-DuJGh0pf.js → slider-CU89H3i0.js} +1 -1
  245. package/dist/slider.js +1 -1
  246. package/dist/styles/app-shell.css +1 -1
  247. package/dist/styles/index.css +1 -1
  248. package/dist/styles/side-navigation.css +1 -1
  249. package/dist/styles/top-navigation.css +1 -1
  250. package/dist/styles.css +1 -1
  251. package/dist/{top-navigation-D_Jt0jNw.js → top-navigation-C73WDqLg.js} +1 -1
  252. package/dist/top-navigation.js +1 -1
  253. package/dist/types/alert/alert.types.d.ts +2 -2
  254. package/dist/types/alert/alert.types.d.ts.map +1 -1
  255. package/dist/types/app-shell/app-shell-demo/atrio.d.ts.map +1 -1
  256. package/dist/types/app-shell/app-shell-demo/aurora.d.ts +6 -6
  257. package/dist/types/app-shell/app-shell-demo/aurora.d.ts.map +1 -1
  258. package/dist/types/app-shell/app-shell-demo/cadence.d.ts.map +1 -1
  259. package/dist/types/app-shell/app-shell-parts.d.ts +2 -2
  260. package/dist/types/app-shell/app-shell.types.d.ts +1 -1
  261. package/dist/types/app-shell/index.d.ts +2 -2
  262. package/dist/types/avatar/avatar.types.d.ts +8 -8
  263. package/dist/types/avatar/avatar.types.d.ts.map +1 -1
  264. package/dist/types/badge/badge.types.d.ts +4 -4
  265. package/dist/types/badge/badge.types.d.ts.map +1 -1
  266. package/dist/types/breadcrumb/breadcrumb-parts.d.ts +1 -1
  267. package/dist/types/button/button.constants.d.ts +1 -1
  268. package/dist/types/button-group/button-group-separator.d.ts +1 -1
  269. package/dist/types/card/card-selection.d.ts +1 -1
  270. package/dist/types/carousel/carousel-catalogue.d.ts +6 -6
  271. package/dist/types/carousel/carousel-parts.d.ts +2 -2
  272. package/dist/types/code-block/code-block.types.d.ts +1 -1
  273. package/dist/types/collapsible/collapsible.types.d.ts +1 -1
  274. package/dist/types/color-picker/color-picker.d.ts +7 -7
  275. package/dist/types/color-picker/color-picker.d.ts.map +1 -1
  276. package/dist/types/color-picker/color-picker.types.d.ts +5 -5
  277. package/dist/types/color-picker/color-picker.types.d.ts.map +1 -1
  278. package/dist/types/column-manager/column-manager.d.ts +2 -2
  279. package/dist/types/column-manager/column-manager.d.ts.map +1 -1
  280. package/dist/types/combobox/combobox-collection.d.ts +1 -1
  281. package/dist/types/combobox/combobox-defaults.d.ts +1 -1
  282. package/dist/types/command-palette/command-palette-defaults.d.ts +1 -1
  283. package/dist/types/data-grid/data-grid-context.d.ts +2 -2
  284. package/dist/types/description-list/description-list-clipboard.d.ts +1 -1
  285. package/dist/types/detail-panel/detail-panel-demo.d.ts.map +1 -1
  286. package/dist/types/dialog/dialog.types.d.ts +1 -1
  287. package/dist/types/drawer/drawer.types.d.ts +1 -1
  288. package/dist/types/entity-picker/entity-picker.d.ts +1 -1
  289. package/dist/types/field/field-parts.d.ts +1 -1
  290. package/dist/types/field/field.d.ts +1 -1
  291. package/dist/types/field/field.types.d.ts +1 -1
  292. package/dist/types/form/form.d.ts +1 -1
  293. package/dist/types/form/form.types.d.ts +1 -1
  294. package/dist/types/highlight/highlight.types.d.ts +1 -1
  295. package/dist/types/icon/glyph.d.ts +1 -1
  296. package/dist/types/icon/icon.d.ts +2 -2
  297. package/dist/types/icon/icon.types.d.ts +1 -1
  298. package/dist/types/icon/icon.types.d.ts.map +1 -1
  299. package/dist/types/image/image.d.ts +1 -1
  300. package/dist/types/import-export-center/import-export-center-defaults.d.ts +3 -3
  301. package/dist/types/import-export-center/import-export-center-demo.d.ts +2 -2
  302. package/dist/types/import-export-center/import-export-center-demo.d.ts.map +1 -1
  303. package/dist/types/import-export-center/import-export-center.types.d.ts +3 -3
  304. package/dist/types/import-export-center/use-job-toasts.d.ts +3 -3
  305. package/dist/types/inline/inline.d.ts +1 -1
  306. package/dist/types/inline-message/inline-message-defaults.d.ts +1 -1
  307. package/dist/types/inline-message/inline-message.d.ts +2 -2
  308. package/dist/types/inline-message/inline-message.types.d.ts +1 -1
  309. package/dist/types/inline-message/inline-message.types.d.ts.map +1 -1
  310. package/dist/types/kbd/kbd.types.d.ts +1 -1
  311. package/dist/types/list/list.types.d.ts +1 -1
  312. package/dist/types/listbox/listbox-defaults.d.ts +1 -1
  313. package/dist/types/listbox/listbox-parts.d.ts +2 -2
  314. package/dist/types/menu/menu-defaults.d.ts +1 -1
  315. package/dist/types/menu/menu-parts.d.ts +1 -1
  316. package/dist/types/message/message-demo.d.ts +2 -2
  317. package/dist/types/message/message-demo.d.ts.map +1 -1
  318. package/dist/types/message-scroller/message-scroller.d.ts +1 -1
  319. package/dist/types/notification-center/notification-center-defaults.d.ts +2 -2
  320. package/dist/types/notification-center/notification-center-demo.d.ts +1 -1
  321. package/dist/types/notification-center/notification-center-demo.d.ts.map +1 -1
  322. package/dist/types/notification-center/notification-center.types.d.ts +2 -2
  323. package/dist/types/otp-input/otp-input.d.ts +1 -1
  324. package/dist/types/page/page-demo.d.ts +2 -2
  325. package/dist/types/page/page-demo.d.ts.map +1 -1
  326. package/dist/types/progress-indicator/loader.d.ts +1 -1
  327. package/dist/types/progress-indicator/progress-circle.d.ts +1 -1
  328. package/dist/types/progress-indicator/progress-indicator.types.d.ts +1 -1
  329. package/dist/types/rating/rating-summary.d.ts +1 -1
  330. package/dist/types/rating/rating.types.d.ts +1 -1
  331. package/dist/types/result-state/result-state-demo.d.ts +1 -1
  332. package/dist/types/result-state/result-state.types.d.ts +1 -1
  333. package/dist/types/segmented-control/segmented-control.types.d.ts +1 -1
  334. package/dist/types/select/select.types.d.ts +1 -1
  335. package/dist/types/side-navigation/side-navigation.d.ts +1 -1
  336. package/dist/types/stat-card/stat-card.d.ts +1 -1
  337. package/dist/types/status-indicator/status-indicator.types.d.ts +3 -3
  338. package/dist/types/status-indicator/status-indicator.types.d.ts.map +1 -1
  339. package/dist/types/switch/switch.types.d.ts +1 -1
  340. package/dist/types/table/table-parts.d.ts +1 -1
  341. package/dist/types/table/table.types.d.ts +1 -1
  342. package/dist/types/table-of-contents/table-of-contents-demo.d.ts.map +1 -1
  343. package/dist/types/tabs/tabs.types.d.ts +2 -2
  344. package/dist/types/tag/tag.types.d.ts +3 -3
  345. package/dist/types/tag/tag.types.d.ts.map +1 -1
  346. package/dist/types/tags-input/tags-input.d.ts +1 -1
  347. package/dist/types/theme/theme-scope.d.ts +2 -2
  348. package/dist/types/theme/theme-scope.d.ts.map +1 -1
  349. package/dist/types/toast/toast-defaults.d.ts +1 -1
  350. package/dist/types/toast/toast.types.d.ts +2 -2
  351. package/dist/types/toast/toast.types.d.ts.map +1 -1
  352. package/dist/types/toggle/toggle.types.d.ts +1 -1
  353. package/dist/types/toggle-group/toggle-group.types.d.ts +1 -1
  354. package/dist/types/tooltip/tooltip-defaults.d.ts +1 -1
  355. package/dist/types/tour/tour.types.d.ts +2 -2
  356. package/dist/types/typography/text.d.ts +1 -1
  357. package/dist/types/typography/typography.attributes.d.ts +1 -1
  358. package/dist/types/typography/typography.types.d.ts +1 -1
  359. package/dist/types/typography/typography.types.d.ts.map +1 -1
  360. package/dist/{wizard-CpYwQGQ-.js → wizard-CmEJK55_.js} +2 -2
  361. package/dist/wizard.js +1 -1
  362. package/package.json +18 -6
@@ -188,7 +188,7 @@
188
188
  "part": "content",
189
189
  "element": "div",
190
190
  "required": false,
191
- "purpose": "Title, description, time, actions, in that order, or what renderItem returns. Its first line is centred on the visual."
191
+ "purpose": "Title, description, time, actions, in that order, or what renderItem returns. Its first line is centerd on the visual."
192
192
  },
193
193
  {
194
194
  "part": "description",
@@ -200,7 +200,7 @@
200
200
  "part": "time",
201
201
  "element": "time",
202
202
  "required": false,
203
- "purpose": "datetime holds the ISO value; the words are relative — há 2 horas — with the absolute reading in title, or absolute under timeFormat=\"absolute\"."
203
+ "purpose": "datetime holds the ISO value; the words are relative — 2 hours ago — with the absolute reading in title, or absolute under timeFormat=\"absolute\"."
204
204
  },
205
205
  {
206
206
  "part": "controls",
@@ -236,7 +236,7 @@
236
236
  "part": "footer",
237
237
  "element": "div",
238
238
  "required": false,
239
- "purpose": "The consumer’s link from the popover to the page, centred. Absent when not written."
239
+ "purpose": "The consumer’s link from the popover to the page, centerd. Absent when not written."
240
240
  }
241
241
  ],
242
242
  "api": [
@@ -259,7 +259,7 @@
259
259
  "type": "string",
260
260
  "defaultValue": "—",
261
261
  "appliesTo": "NotificationCenter",
262
- "description": "The view an uncontrolled centre starts on, read once. With neither, the first entry of views"
262
+ "description": "The view an uncontrolled center starts on, read once. With neither, the first entry of views"
263
263
  },
264
264
  {
265
265
  "name": "views",
@@ -301,7 +301,7 @@
301
301
  "type": "'relative' | 'absolute'",
302
302
  "defaultValue": "relative",
303
303
  "appliesTo": "NotificationCenter, NotificationCenterDefaultsProvider",
304
- "description": "How time is written: há 2 horas with the absolute reading in title, or the absolute reading alone"
304
+ "description": "How time is written: 2 hours ago with the absolute reading in title, or the absolute reading alone"
305
305
  },
306
306
  {
307
307
  "name": "controls",
@@ -378,7 +378,7 @@
378
378
  "type": "{ size, level, growing, arrivals, timeFormat, controls, timeZone }",
379
379
  "defaultValue": "—",
380
380
  "appliesTo": "a subtree",
381
- "description": "The decisions an application takes once. A centre that states any of them itself still wins"
381
+ "description": "The decisions an application takes once. A center that states any of them itself still wins"
382
382
  },
383
383
  {
384
384
  "name": "native props",
@@ -434,7 +434,7 @@
434
434
  "accessibility": [
435
435
  "The governing pattern is the WAI-ARIA Authoring Practices Feed (w3.org/WAI/ARIA/apg/patterns/feed/): the feed is role=\"feed\" named by the title, every item is an article with tabindex=\"0\", aria-labelledby its title, aria-describedby its description, aria-posinset its position and aria-setsize the consumer’s count, the loaded number under growing=\"none\", or -1 while more may come. PageDown and PageUp move between articles, Control+End and Control+Home leave the feed on either side, and the feed is aria-busy while a page is on its way. The keys are @slotted/core/timeline’s, shared with the timeline family.",
436
436
  "The root is a section — a region — named by aria-labelledby its own heading, Notifications in English, so a reader finds it in the landmark list under the words it shows; a consumer’s aria-label or aria-labelledby wins. The strip is the tabs family’s list with the feed as its one panel: every tab carries aria-controls naming the feed, and ArrowLeft, ArrowRight, Home and End are the tabs family’s.",
437
- "Read is said three ways and none of them is colour alone: the wash under the row, the semibold title, and the read-toggle’s name — Mark as read while unread, Mark as unread once read — so a reader hears the state on the control that changes it. The family’s tone glyphs are all circles; a triangle is refused in this library.",
437
+ "Read is said three ways and none of them is color alone: the wash under the row, the semibold title, and the read-toggle’s name — Mark as read while unread, Mark as unread once read — so a reader hears the state on the control that changes it. The family’s tone glyphs are all circles; a triangle is refused in this library.",
438
438
  "Held arrivals are announced politely once per change of their count, and the unread count once per change after the first, through the shared live announcer. A keyboard reveal moves focus to the first revealed article; a keyboard removal moves it to the next article, the previous, or the first control of the region, so focus never lands on a row that left.",
439
439
  "While loading with nothing loaded, the three skeleton rows are aria-hidden and the feed is busy; the tabs stay, because the views are known before the items are. The article’s focus ring is drawn inward because the rows touch, and every control’s ring outward; the controls are muted at rest and take the text ink on the row under the pointer or holding focus, so they are visible before they are needed and legible when they are."
440
440
  ]
@@ -539,9 +539,9 @@
539
539
  {
540
540
  "id": "anatomy",
541
541
  "title": "Every part, written out",
542
- "note": "The header with the title, its count and a preferences link; the strip with three views; the feed grouped under Hoje and Ontem with an avatar, a family visual and no visual; a button for more; a footer link. Every part the contract names, in one box.",
542
+ "note": "The header with the title, its count and a preferences link; the strip with three views; the feed grouped under Today and Yesterday with an avatar, a family visual and no visual; a button for more; a footer link. Every part the contract names, in one box.",
543
543
  "language": "tsx",
544
- "source": "<NotificationCenter\n actions={<Link href=\"/preferencias\">Preferências</Link>}\n footer={<Link href=\"/notificacoes\">Ver todas as notificações</Link>}\n groupBy={dayOf}\n growing=\"button\"\n items={items}\n views={views}\n/>;\n",
544
+ "source": "<NotificationCenter\n actions={<Link href=\"/preferences\">Preferences</Link>}\n footer={<Link href=\"/notifications\">See all notifications</Link>}\n groupBy={dayOf}\n growing=\"button\"\n items={items}\n views={views}\n/>;\n",
545
545
  "verdict": "excerpt"
546
546
  },
547
547
  {
@@ -557,7 +557,7 @@
557
557
  "title": "Views",
558
558
  "note": "The built-in strip: All and Unread, the second with its count; the family filters the unread view itself. Below, the consumer’s own views — the family shows what it is given for each — and a controlled view that refuses to leave All.",
559
559
  "language": "tsx",
560
- "source": "<NotificationCenter\n items={view === 'mentions' ? mentions : items}\n onViewChange={(next, request) => {\n if (next === 'archived') request.cancel();\n else setView(next);\n }}\n view={view}\n views={[\n { value: 'all', label: 'Todas' },\n { value: 'mentions', label: 'Menções', count: mentions.length },\n { value: 'archived', label: 'Arquivadas' },\n ]}\n/>;\n",
560
+ "source": "<NotificationCenter\n items={view === 'mentions' ? mentions : items}\n onViewChange={(next, request) => {\n if (next === 'archived') request.cancel();\n else setView(next);\n }}\n view={view}\n views={[\n { value: 'all', label: 'All' },\n { value: 'mentions', label: 'Mentions', count: mentions.length },\n { value: 'archived', label: 'Archived' },\n ]}\n/>;\n",
561
561
  "verdict": "excerpt"
562
562
  },
563
563
  {
@@ -573,7 +573,7 @@
573
573
  "title": "Groups",
574
574
  "note": "groupBy files each item under a label — the day here — in the order the items give; the label is a heading one rank below the title and the positions run across the groups.",
575
575
  "language": "tsx",
576
- "source": "<NotificationCenter groupBy={(item) => (isToday(item.time) ? 'Hoje' : 'Ontem')} items={items} />;\n",
576
+ "source": "<NotificationCenter\n groupBy={(item) => (isToday(item.time) ? 'Today' : 'Yesterday')}\n items={items}\n/>;\n",
577
577
  "verdict": "excerpt"
578
578
  },
579
579
  {
@@ -589,15 +589,15 @@
589
589
  "title": "Actions and controls",
590
590
  "note": "Two slots for the consumer: the header’s actions after mark-all, and an item’s actions under its time. The family’s own two controls are the controls axis: both, read alone, dismiss alone, or none for a feed whose store has no per-item read or removal.",
591
591
  "language": "tsx",
592
- "source": "<NotificationCenter\n actions={<Link href=\"/preferencias\">Preferências</Link>}\n controls=\"dismiss\"\n items={items.map((item) => ({\n ...item,\n actions: item.shipment ? <Button size=\"sm\">Ver expedição</Button> : undefined,\n }))}\n/>;\n",
592
+ "source": "<NotificationCenter\n actions={<Link href=\"/preferences\">Preferences</Link>}\n controls=\"dismiss\"\n items={items.map((item) => ({\n ...item,\n actions: item.shipment ? <Button size=\"sm\">View shipment</Button> : undefined,\n }))}\n/>;\n",
593
593
  "verdict": "excerpt"
594
594
  },
595
595
  {
596
596
  "id": "hosts",
597
597
  "title": "Hosts",
598
- "note": "The bell is a Popover trigger with the unread count the family reports through onUnreadChange; inside, the centre at size=\"sm\" with a footer to the page. Open it, press PageDown through the articles, press Escape. The page host is the same family at size=\"md\" with groups.",
598
+ "note": "The bell is a Popover trigger with the unread count the family reports through onUnreadChange; inside, the center at size=\"sm\" with a footer to the page. Open it, press PageDown through the articles, press Escape. The page host is the same family at size=\"md\" with groups.",
599
599
  "language": "tsx",
600
- "source": "<Popover>\n <PopoverTrigger\n render={(props) => (\n <Button {...props} aria-label={`Notificações, ${unread} não lidas`}>\n <BellIcon />\n </Button>\n )}\n />\n <PopoverLayer>\n <PopoverContent aria-label=\"Notificações\">\n <NotificationCenter\n footer={<Link href=\"/notificacoes\">Ver todas as notificações</Link>}\n items={items}\n onUnreadChange={setUnread}\n size=\"sm\"\n />\n </PopoverContent>\n </PopoverLayer>\n</Popover>;\n",
600
+ "source": "<Popover>\n <PopoverTrigger\n render={(props) => (\n <Button {...props} aria-label={`Notifications, ${unread} unread`}>\n <BellIcon />\n </Button>\n )}\n />\n <PopoverLayer>\n <PopoverContent aria-label=\"Notifications\">\n <NotificationCenter\n footer={<Link href=\"/notifications\">See all notifications</Link>}\n items={items}\n onUnreadChange={setUnread}\n size=\"sm\"\n />\n </PopoverContent>\n </PopoverLayer>\n</Popover>;\n",
601
601
  "verdict": "excerpt"
602
602
  },
603
603
  {
@@ -613,7 +613,7 @@
613
613
  "title": "Empty",
614
614
  "note": "A feed with nothing shows messages.empty; the unread view with nothing unread shows messages.caughtUp — All caught up. The empty prop replaces both with a ResultState of the consumer’s own.",
615
615
  "language": "tsx",
616
- "source": "<NotificationCenter\n empty={\n <ResultState reach=\"inline\" status=\"success\">\n <ResultStateContent>\n <ResultStateTitle>Tudo lido</ResultStateTitle>\n <ResultStateDescription>Nada aguarda a sua atenção.</ResultStateDescription>\n </ResultStateContent>\n </ResultState>\n }\n items={[]}\n/>;\n",
616
+ "source": "<NotificationCenter\n empty={\n <ResultState reach=\"inline\" status=\"success\">\n <ResultStateContent>\n <ResultStateTitle>All read</ResultStateTitle>\n <ResultStateDescription>Nothing is waiting for your attention.</ResultStateDescription>\n </ResultStateContent>\n </ResultState>\n }\n items={[]}\n/>;\n",
617
617
  "verdict": "excerpt"
618
618
  },
619
619
  {
@@ -635,7 +635,7 @@
635
635
  {
636
636
  "id": "composition",
637
637
  "title": "Composition",
638
- "note": "The families a centre is made of: Avatar in the visual, Button in the item’s actions and in mark-all, Tabs in the strip, Skeleton while loading, ResultState when empty, Link in the header and the footer. renderItem substitutes the content of a row — a Text and a Badge here — while the article, its wiring and its controls stay the family’s.",
638
+ "note": "The families a center is made of: Avatar in the visual, Button in the item’s actions and in mark-all, Tabs in the strip, Skeleton while loading, ResultState when empty, Link in the header and the footer. renderItem substitutes the content of a row — a Text and a Badge here — while the article, its wiring and its controls stay the family’s.",
639
639
  "language": "tsx",
640
640
  "source": "<NotificationCenter\n items={items}\n renderItem={(item, state) => (\n <>\n <span data-part=\"title\" id={state.ids.title}>\n {item.title}\n </span>\n <Badge size=\"sm\" tone={state.tone} variant=\"soft\">\n {item.category}\n </Badge>\n <time data-part=\"time\" dateTime={state.time.dateTime}>\n {state.time.text}\n </time>\n </>\n )}\n/>;\n",
641
641
  "verdict": "excerpt"
@@ -643,7 +643,7 @@
643
643
  {
644
644
  "id": "defaults",
645
645
  "title": "Defaults and the handle",
646
- "note": "Two centres under one provider: neither states a size or a growing mode, and both read small and paged by button; the second states its own controls and wins. The handle focuses the first article, reveals held arrivals and marks every shown item read with the reason programmatic.",
646
+ "note": "Two centers under one provider: neither states a size or a growing mode, and both read small and paged by button; the second states its own controls and wins. The handle focuses the first article, reveals held arrivals and marks every shown item read with the reason programmatic.",
647
647
  "language": "tsx",
648
648
  "source": "<NotificationCenterDefaultsProvider growing=\"button\" size=\"sm\" timeZone=\"Europe/Lisbon\">\n <App />\n</NotificationCenterDefaultsProvider>;\n",
649
649
  "verdict": "excerpt"
@@ -661,7 +661,7 @@
661
661
  "title": "Accessibility",
662
662
  "note": "The region is named by its heading, the feed by the same, every article by its title and described by its body; the tabs name the feed. Held arrivals and the unread count are announced politely once per change. Read the ring on an article — inward, because the rows touch — and on a control — outward.",
663
663
  "language": "tsx",
664
- "source": "<NotificationCenter aria-label=\"Caixa de entrada da equipa de vendas\" items={items} />;\n",
664
+ "source": "<NotificationCenter aria-label=\"Sales team inbox\" items={items} />;\n",
665
665
  "verdict": "excerpt"
666
666
  }
667
667
  ]
@@ -55,13 +55,13 @@ Excerpt — not a complete module
55
55
  | --- | --- | --- | --- | --- |
56
56
  | `items` | `readonly NotificationItem[]` | — | NotificationCenter | The consumer’s array: key, title, description, time (a PlainDateTime or an ISO instant), read, href, tone, visual, actions. The family holds none of its facts |
57
57
  | `view` | `string` | all | NotificationCenter | Present means the consumer owns the view, for the life of the component. all shows every shown item; unread the ones whose read is false; any other value what the consumer gave |
58
- | `defaultView` | `string` | — | NotificationCenter | The view an uncontrolled centre starts on, read once. With neither, the first entry of views |
58
+ | `defaultView` | `string` | — | NotificationCenter | The view an uncontrolled center starts on, read once. With neither, the first entry of views |
59
59
  | `views` | `readonly { value, label, count? }[]` | all, unread | NotificationCenter | The strip’s entries. Unstated, the built-in All and Unread with the unread count; one entry draws no strip |
60
60
  | `size` | `'sm' \| 'md'` | md | NotificationCenter, NotificationCenterDefaultsProvider | sm for the popover: the small type steps, tighter insets, the small inner-control box. md for the page |
61
61
  | `level` | `'2' \| '3' \| '4'` | 2 | NotificationCenter, NotificationCenterDefaultsProvider | The rank of the header’s heading; group labels take the rank below |
62
62
  | `growing` | `'none' \| 'button' \| 'scroll'` | none | NotificationCenter, NotificationCenterDefaultsProvider | How more is loaded: never, on a button, or when the sentinel under the feed enters the scrollport |
63
63
  | `arrivals` | `'hold' \| 'show'` | hold | NotificationCenter, NotificationCenterDefaultsProvider | Whether a key that arrives while focus is in the feed or the feed’s scroller is past its start waits behind fresh. show holds nothing |
64
- | `timeFormat` | `'relative' \| 'absolute'` | relative | NotificationCenter, NotificationCenterDefaultsProvider | How time is written: há 2 horas with the absolute reading in title, or the absolute reading alone |
64
+ | `timeFormat` | `'relative' \| 'absolute'` | relative | NotificationCenter, NotificationCenterDefaultsProvider | How time is written: 2 hours ago with the absolute reading in title, or the absolute reading alone |
65
65
  | `controls` | `'both' \| 'read' \| 'dismiss' \| 'none'` | both | NotificationCenter, NotificationCenterDefaultsProvider | Which of the family’s two item controls are drawn |
66
66
  | `loading` | `boolean` | false | NotificationCenter | aria-busy on the feed and data-loading on the root; skeleton rows while nothing is loaded, the waiting row under the feed otherwise |
67
67
  | `count` | `number` | — | NotificationCenter | How many items exist in all, for aria-setsize. Unstated, the loaded number under growing="none" and -1 while more may come |
@@ -72,7 +72,7 @@ Excerpt — not a complete module
72
72
  | `renderItem` | `(item, state) => ReactNode` | — | NotificationCenter | Substitutes an item’s content. state carries the position, the resolved tone, the formatted time and the ids for the title and the description; the article, its wiring and its controls stay the family’s |
73
73
  | `render` | `(props) => ReactNode` | — | NotificationCenter | Substitutes the root element and hands it every attribute, the ref callback included |
74
74
  | `ref` | `Ref<NotificationCenterHandle>` | — | NotificationCenter | The element; focus(), which lands on fresh when arrivals are held and on the first article otherwise; reveal(); markAllRead() — the last two with the reason programmatic |
75
- | `NotificationCenterDefaultsProvider` | `{ size, level, growing, arrivals, timeFormat, controls, timeZone }` | — | a subtree | The decisions an application takes once. A centre that states any of them itself still wins |
75
+ | `NotificationCenterDefaultsProvider` | `{ size, level, growing, arrivals, timeFormat, controls, timeZone }` | — | a subtree | The decisions an application takes once. A center that states any of them itself still wins |
76
76
  | `native props` | `ComponentPropsWithRef<"section">` | — | NotificationCenter | aria-*, data-*, className, style and handlers reach the section; a consumer’s aria-label or aria-labelledby replaces the title wiring |
77
77
 
78
78
  ## Events
@@ -104,7 +104,7 @@ Excerpt — not a complete module
104
104
 
105
105
  - The governing pattern is the WAI-ARIA Authoring Practices Feed (w3.org/WAI/ARIA/apg/patterns/feed/): the feed is role="feed" named by the title, every item is an article with tabindex="0", aria-labelledby its title, aria-describedby its description, aria-posinset its position and aria-setsize the consumer’s count, the loaded number under growing="none", or -1 while more may come. PageDown and PageUp move between articles, Control+End and Control+Home leave the feed on either side, and the feed is aria-busy while a page is on its way. The keys are @slotted/core/timeline’s, shared with the timeline family.
106
106
  - The root is a section — a region — named by aria-labelledby its own heading, Notifications in English, so a reader finds it in the landmark list under the words it shows; a consumer’s aria-label or aria-labelledby wins. The strip is the tabs family’s list with the feed as its one panel: every tab carries aria-controls naming the feed, and ArrowLeft, ArrowRight, Home and End are the tabs family’s.
107
- - Read is said three ways and none of them is colour alone: the wash under the row, the semibold title, and the read-toggle’s name — Mark as read while unread, Mark as unread once read — so a reader hears the state on the control that changes it. The family’s tone glyphs are all circles; a triangle is refused in this library.
107
+ - Read is said three ways and none of them is color alone: the wash under the row, the semibold title, and the read-toggle’s name — Mark as read while unread, Mark as unread once read — so a reader hears the state on the control that changes it. The family’s tone glyphs are all circles; a triangle is refused in this library.
108
108
  - Held arrivals are announced politely once per change of their count, and the unread count once per change after the first, through the shared live announcer. A keyboard reveal moves focus to the first revealed article; a keyboard removal moves it to the next article, the previous, or the first control of the region, so focus never lands on a row that left.
109
109
  - While loading with nothing loaded, the three skeleton rows are aria-hidden and the feed is busy; the tabs stay, because the views are known before the items are. The article’s focus ring is drawn inward because the rows touch, and every control’s ring outward; the controls are muted at rest and take the text ink on the row under the pointer or holding focus, so they are visible before they are needed and legible when they are.
110
110
 
@@ -116,14 +116,14 @@ Excerpt — not a complete module
116
116
 
117
117
  ### Every part, written out
118
118
 
119
- The header with the title, its count and a preferences link; the strip with three views; the feed grouped under Hoje and Ontem with an avatar, a family visual and no visual; a button for more; a footer link. Every part the contract names, in one box.
119
+ The header with the title, its count and a preferences link; the strip with three views; the feed grouped under Today and Yesterday with an avatar, a family visual and no visual; a button for more; a footer link. Every part the contract names, in one box.
120
120
 
121
121
  Excerpt — not a complete module
122
122
 
123
123
  ```tsx
124
124
  <NotificationCenter
125
- actions={<Link href="/preferencias">Preferências</Link>}
126
- footer={<Link href="/notificacoes">Ver todas as notificações</Link>}
125
+ actions={<Link href="/preferences">Preferences</Link>}
126
+ footer={<Link href="/notifications">See all notifications</Link>}
127
127
  groupBy={dayOf}
128
128
  growing="button"
129
129
  items={items}
@@ -157,9 +157,9 @@ Excerpt — not a complete module
157
157
  }}
158
158
  view={view}
159
159
  views={[
160
- { value: 'all', label: 'Todas' },
161
- { value: 'mentions', label: 'Menções', count: mentions.length },
162
- { value: 'archived', label: 'Arquivadas' },
160
+ { value: 'all', label: 'All' },
161
+ { value: 'mentions', label: 'Mentions', count: mentions.length },
162
+ { value: 'archived', label: 'Archived' },
163
163
  ]}
164
164
  />;
165
165
  ```
@@ -187,7 +187,10 @@ groupBy files each item under a label — the day here — in the order the item
187
187
  Excerpt — not a complete module
188
188
 
189
189
  ```tsx
190
- <NotificationCenter groupBy={(item) => (isToday(item.time) ? 'Hoje' : 'Ontem')} items={items} />;
190
+ <NotificationCenter
191
+ groupBy={(item) => (isToday(item.time) ? 'Today' : 'Yesterday')}
192
+ items={items}
193
+ />;
191
194
  ```
192
195
 
193
196
  ### Growing
@@ -214,18 +217,18 @@ Excerpt — not a complete module
214
217
 
215
218
  ```tsx
216
219
  <NotificationCenter
217
- actions={<Link href="/preferencias">Preferências</Link>}
220
+ actions={<Link href="/preferences">Preferences</Link>}
218
221
  controls="dismiss"
219
222
  items={items.map((item) => ({
220
223
  ...item,
221
- actions: item.shipment ? <Button size="sm">Ver expedição</Button> : undefined,
224
+ actions: item.shipment ? <Button size="sm">View shipment</Button> : undefined,
222
225
  }))}
223
226
  />;
224
227
  ```
225
228
 
226
229
  ### Hosts
227
230
 
228
- The bell is a Popover trigger with the unread count the family reports through onUnreadChange; inside, the centre at size="sm" with a footer to the page. Open it, press PageDown through the articles, press Escape. The page host is the same family at size="md" with groups.
231
+ The bell is a Popover trigger with the unread count the family reports through onUnreadChange; inside, the center at size="sm" with a footer to the page. Open it, press PageDown through the articles, press Escape. The page host is the same family at size="md" with groups.
229
232
 
230
233
  Excerpt — not a complete module
231
234
 
@@ -233,15 +236,15 @@ Excerpt — not a complete module
233
236
  <Popover>
234
237
  <PopoverTrigger
235
238
  render={(props) => (
236
- <Button {...props} aria-label={`Notificações, ${unread} não lidas`}>
239
+ <Button {...props} aria-label={`Notifications, ${unread} unread`}>
237
240
  <BellIcon />
238
241
  </Button>
239
242
  )}
240
243
  />
241
244
  <PopoverLayer>
242
- <PopoverContent aria-label="Notificações">
245
+ <PopoverContent aria-label="Notifications">
243
246
  <NotificationCenter
244
- footer={<Link href="/notificacoes">Ver todas as notificações</Link>}
247
+ footer={<Link href="/notifications">See all notifications</Link>}
245
248
  items={items}
246
249
  onUnreadChange={setUnread}
247
250
  size="sm"
@@ -272,8 +275,8 @@ Excerpt — not a complete module
272
275
  empty={
273
276
  <ResultState reach="inline" status="success">
274
277
  <ResultStateContent>
275
- <ResultStateTitle>Tudo lido</ResultStateTitle>
276
- <ResultStateDescription>Nada aguarda a sua atenção.</ResultStateDescription>
278
+ <ResultStateTitle>All read</ResultStateTitle>
279
+ <ResultStateDescription>Nothing is waiting for your attention.</ResultStateDescription>
277
280
  </ResultStateContent>
278
281
  </ResultState>
279
282
  }
@@ -306,7 +309,7 @@ Excerpt — not a complete module
306
309
 
307
310
  ### Composition
308
311
 
309
- The families a centre is made of: Avatar in the visual, Button in the item’s actions and in mark-all, Tabs in the strip, Skeleton while loading, ResultState when empty, Link in the header and the footer. renderItem substitutes the content of a row — a Text and a Badge here — while the article, its wiring and its controls stay the family’s.
312
+ The families a center is made of: Avatar in the visual, Button in the item’s actions and in mark-all, Tabs in the strip, Skeleton while loading, ResultState when empty, Link in the header and the footer. renderItem substitutes the content of a row — a Text and a Badge here — while the article, its wiring and its controls stay the family’s.
310
313
 
311
314
  Excerpt — not a complete module
312
315
 
@@ -331,7 +334,7 @@ Excerpt — not a complete module
331
334
 
332
335
  ### Defaults and the handle
333
336
 
334
- Two centres under one provider: neither states a size or a growing mode, and both read small and paged by button; the second states its own controls and wins. The handle focuses the first article, reveals held arrivals and marks every shown item read with the reason programmatic.
337
+ Two centers under one provider: neither states a size or a growing mode, and both read small and paged by button; the second states its own controls and wins. The handle focuses the first article, reveals held arrivals and marks every shown item read with the reason programmatic.
335
338
 
336
339
  Excerpt — not a complete module
337
340
 
@@ -367,5 +370,5 @@ The region is named by its heading, the feed by the same, every article by its t
367
370
  Excerpt — not a complete module
368
371
 
369
372
  ```tsx
370
- <NotificationCenter aria-label="Caixa de entrada da equipa de vendas" items={items} />;
373
+ <NotificationCenter aria-label="Sales team inbox" items={items} />;
371
374
  ```
@@ -13,9 +13,9 @@ Excerpt — not a complete module
13
13
 
14
14
  ```tsx
15
15
  <Field>
16
- <FieldLabel>Quantidade</FieldLabel>
16
+ <FieldLabel>Quantity</FieldLabel>
17
17
  <NumberField defaultValue={3} max={99} min={1} />
18
- <FieldDescription>Máximo de 99 unidades por pedido.</FieldDescription>
18
+ <FieldDescription>Maximum of 99 units per order.</FieldDescription>
19
19
  </Field>;
20
20
  ```
21
21
 
@@ -91,7 +91,7 @@ export default function NumberFieldVariants() {
91
91
 
92
92
  ### Where the two buttons sit, and whether they sit at all
93
93
 
94
- stacked is one column at the inline end; split puts decrement and increment at either end of the frame with the value centred between them, which is the only arrangement whose targets clear 24 pixels in both axes.
94
+ stacked is one column at the inline end; split puts decrement and increment at either end of the frame with the value centerd between them, which is the only arrangement whose targets clear 24 pixels in both axes.
95
95
 
96
96
  Excerpt — not a complete module
97
97
 
@@ -317,7 +317,7 @@ export default function NumberFieldScrubExample() {
317
317
 
318
318
  ### The states the frame paints
319
319
 
320
- Read-only keeps full-strength ink and softens its edge, because the value is real and still submitted; disabled is muted to a measured colour rather than faded, and both withdraw the steppers by disabling them rather than removing them.
320
+ Read-only keeps full-strength ink and softens its edge, because the value is real and still submitted; disabled is muted to a measured color rather than faded, and both withdraw the steppers by disabling them rather than removing them.
321
321
 
322
322
  Example
323
323
 
@@ -471,7 +471,7 @@
471
471
  "title": "Playground",
472
472
  "note": "One control with every axis on it, driven by the controls below the canvas. Type a number, then hold the increment button: it steps once, waits, and then repeats.",
473
473
  "language": "tsx",
474
- "source": "<Field>\n <FieldLabel>Quantidade</FieldLabel>\n <NumberField defaultValue={3} max={99} min={1} />\n <FieldDescription>Máximo de 99 unidades por pedido.</FieldDescription>\n</Field>;\n",
474
+ "source": "<Field>\n <FieldLabel>Quantity</FieldLabel>\n <NumberField defaultValue={3} max={99} min={1} />\n <FieldDescription>Maximum of 99 units per order.</FieldDescription>\n</Field>;\n",
475
475
  "verdict": "excerpt"
476
476
  },
477
477
  {
@@ -493,7 +493,7 @@
493
493
  {
494
494
  "id": "stepper",
495
495
  "title": "Where the two buttons sit, and whether they sit at all",
496
- "note": "stacked is one column at the inline end; split puts decrement and increment at either end of the frame with the value centred between them, which is the only arrangement whose targets clear 24 pixels in both axes.",
496
+ "note": "stacked is one column at the inline end; split puts decrement and increment at either end of the frame with the value centerd between them, which is the only arrangement whose targets clear 24 pixels in both axes.",
497
497
  "language": "tsx",
498
498
  "source": "<NumberField defaultValue={12} stepper=\"stacked\" />;\n\n// The arrangement a thumb can hit, and the one a quantity wants.\n<NumberField defaultValue={3} max={99} min={1} stepper=\"split\" />;\n\n// Typed and never spun, which is what a dense table asks for.\n<NumberField defaultValue={1480} stepper=\"none\" />;\n",
499
499
  "verdict": "excerpt"
@@ -549,7 +549,7 @@
549
549
  {
550
550
  "id": "states",
551
551
  "title": "The states the frame paints",
552
- "note": "Read-only keeps full-strength ink and softens its edge, because the value is real and still submitted; disabled is muted to a measured colour rather than faded, and both withdraw the steppers by disabling them rather than removing them.",
552
+ "note": "Read-only keeps full-strength ink and softens its edge, because the value is real and still submitted; disabled is muted to a measured color rather than faded, and both withdraw the steppers by disabling them rather than removing them.",
553
553
  "language": "tsx",
554
554
  "source": "import { Field, FieldDescription, FieldError, FieldLabel } from '@slotted/react/field';\nimport { NumberField } from '@slotted/react/number-field';\nimport { Stack } from '@slotted/react/stack';\n\nexport default function NumberFieldStates() {\n return (\n <Stack gap={5}>\n <Field invalid>\n <FieldLabel>Quantity to ship</FieldLabel>\n <NumberField defaultValue={120} min={1} />\n <FieldError>Only 39 units of Chai are in stock.</FieldError>\n </Field>\n <Field readOnly>\n <FieldLabel>Units on order</FieldLabel>\n <NumberField defaultValue={40} />\n <FieldDescription>Counted from open purchase orders.</FieldDescription>\n </Field>\n <Field disabled>\n <FieldLabel>Units reserved</FieldLabel>\n <NumberField defaultValue={12} />\n <FieldDescription>Released when the order ships.</FieldDescription>\n </Field>\n </Stack>\n );\n}\n",
555
555
  "verdict": "example"
@@ -298,11 +298,11 @@
298
298
  ],
299
299
  "accessibility": [
300
300
  "There is no WAI-ARIA APG pattern for a verification code: the APG lists no such entry, so the control is the platform’s own textbox and the sources are the HTML specification for the element, the autocomplete attribute’s one-time-code token, and the WebOTP API.",
301
- "One control, one tab stop, one accessible name, one value. Ark, Chakra and Mantine render one input per box and pay for it with N tab stops and no real label; here the boxes are aria-hidden paint over one input, so a screen reader hears \"Código de verificação, edit text, 482\" and nothing about boxes.",
301
+ "One control, one tab stop, one accessible name, one value. Ark, Chakra and Mantine render one input per box and pay for it with N tab stops and no real label; here the boxes are aria-hidden paint over one input, so a screen reader hears \"Verification code, edit text, 482\" and nothing about boxes.",
302
302
  "The control takes its name from the field’s label, through for pointing at the identifier the field derived, and its description and error through aria-describedby merged after anything the consumer wrote.",
303
- "aria-required, never the native required: the native attribute engages browser constraint validation and changes submit behaviour. disabled and readonly are native, because that is what those two words mean.",
304
- "Every key is the browser’s. The family binds nothing — no Escape, no arrow handling — and only normalises the selection after the fact, so a reader who knows a text field knows this one; WCAG 2.1.4 exists for the class of defect single-key shortcuts produce.",
305
- "The focus ring sits on the box where the cursor is, in the theme’s ring colour, and the invalid state retargets that colour rather than repainting it. Invalid is never colour alone: aria-invalid announces it and the field’s error says it in words.",
303
+ "aria-required, never the native required: the native attribute engages browser constraint validation and changes submit behavior. disabled and readonly are native, because that is what those two words mean.",
304
+ "Every key is the browser’s. The family binds nothing — no Escape, no arrow handling — and only normalizes the selection after the fact, so a reader who knows a text field knows this one; WCAG 2.1.4 exists for the class of defect single-key shortcuts produce.",
305
+ "The focus ring sits on the box where the cursor is, in the theme’s ring color, and the invalid state retargets that color rather than repainting it. Invalid is never color alone: aria-invalid announces it and the field’s error says it in words.",
306
306
  "mask is a platform decision, not paint: the control becomes type=\"password\", so the screen reader counts the characters instead of reading a PIN aloud and the keyboard keeps nothing. The cost is that a password manager may offer to save it; autoComplete on the control decides."
307
307
  ]
308
308
  }
@@ -383,7 +383,7 @@
383
383
  "title": "Playground",
384
384
  "note": "The second step of a sign-in, driven by the controls below the canvas. Type into it: the value is one string, the boxes paint it, and the sixth digit completes it.",
385
385
  "language": "tsx",
386
- "source": "<Field>\n <FieldLabel>Código de verificação</FieldLabel>\n <OtpInput name=\"code\" groups={[3, 3]} onComplete={verify} />\n <FieldDescription>Enviámos um SMS para +55 11 9••••-4821.</FieldDescription>\n</Field>;\n",
386
+ "source": "<Field>\n <FieldLabel>Verification code</FieldLabel>\n <OtpInput name=\"code\" groups={[3, 3]} onComplete={verify} />\n <FieldDescription>We sent an SMS to +1 206 •••-4821.</FieldDescription>\n</Field>;\n",
387
387
  "verdict": "excerpt"
388
388
  },
389
389
  {
@@ -415,7 +415,7 @@
415
415
  "title": "What the code accepts",
416
416
  "note": "type decides the characters and the keyboard a phone offers; pattern outranks it per character; transform runs over every edit before the filter. What an edit loses is reported, so the page can say why nothing appeared.",
417
417
  "language": "tsx",
418
- "source": "<OtpInput type=\"numeric\" />;\n<OtpInput type=\"alphanumeric\" length={8} />;\n\n// A backup code is printed in uppercase with a prefix nobody types.\n<OtpInput\n type=\"alphanumeric\"\n length={8}\n transform={(text) => text.replace(/^G-/i, '').toUpperCase()}\n onRejected={(text) => setHint(`\"${text}\" não faz parte do código`)}\n/>;\n\n// Only the characters a hexadecimal code has.\n<OtpInput pattern={/[0-9a-f]/i} />;\n",
418
+ "source": "<OtpInput type=\"numeric\" />;\n<OtpInput type=\"alphanumeric\" length={8} />;\n\n// A backup code is printed in uppercase with a prefix nobody types.\n<OtpInput\n type=\"alphanumeric\"\n length={8}\n transform={(text) => text.replace(/^G-/i, '').toUpperCase()}\n onRejected={(text) => setHint(`\"${text}\" is not part of the code`)}\n/>;\n\n// Only the characters a hexadecimal code has.\n<OtpInput pattern={/[0-9a-f]/i} />;\n",
419
419
  "verdict": "excerpt"
420
420
  },
421
421
  {
@@ -423,13 +423,13 @@
423
423
  "title": "A code nobody should read over your shoulder",
424
424
  "note": "mask makes the control type=\"password\": the platform treats the value as a secret — the screen reader counts characters instead of reading them — and each filled box shows a bullet.",
425
425
  "language": "tsx",
426
- "source": "<Field>\n <FieldLabel>PIN de autorização</FieldLabel>\n <OtpInput length={4} mask attached autoComplete=\"off\" />\n</Field>;\n",
426
+ "source": "<Field>\n <FieldLabel>Authorization PIN</FieldLabel>\n <OtpInput length={4} mask attached autoComplete=\"off\" />\n</Field>;\n",
427
427
  "verdict": "excerpt"
428
428
  },
429
429
  {
430
430
  "id": "states",
431
431
  "title": "The four states the frame paints",
432
- "note": "Invalid keeps its danger edge on every box while the ring says where the cursor is; read-only keeps full-strength ink and only its ground changes; disabled is muted to a measured colour rather than faded, so a disabled form still says what it holds.",
432
+ "note": "Invalid keeps its danger edge on every box while the ring says where the cursor is; read-only keeps full-strength ink and only its ground changes; disabled is muted to a measured color rather than faded, so a disabled form still says what it holds.",
433
433
  "language": "tsx",
434
434
  "source": "// Unstated rather than false, so the control defers to its field.\n<OtpInput invalid defaultValue=\"482910\" />;\n<OtpInput readOnly defaultValue=\"482915\" />;\n<OtpInput disabled defaultValue=\"48\" />;\n\n// A control inside a disabled fieldset is painted too, because the\n// stylesheet matches :disabled beside the attribute.\n",
435
435
  "verdict": "excerpt"
@@ -463,7 +463,7 @@
463
463
  "title": "In a field, with a resend",
464
464
  "note": "The field names the control, describes it and carries its error; the resend is a button and a countdown the page owns, because the family has no clock. The provider sets the length once for an application whose codes are all four digits.",
465
465
  "language": "tsx",
466
- "source": "<Field invalid={error !== null}>\n <FieldLabel>Código de verificação</FieldLabel>\n <OtpInput name=\"code\" groups={[3, 3]} onComplete={verify} />\n <FieldDescription>Enviámos um SMS para +55 11 9••••-4821.</FieldDescription>\n <FieldError>{error}</FieldError>\n</Field>;\n<Button variant=\"ghost\" disabled={seconds > 0} onClick={resend}>\n {seconds > 0 ? `Reenviar em 0:${pad(seconds)}` : 'Reenviar código'}\n</Button>;\n\n// Every code in this application is four digits.\n<OtpInputDefaultsProvider length={4} attached>\n <App />\n</OtpInputDefaultsProvider>;\n",
466
+ "source": "<Field invalid={error !== null}>\n <FieldLabel>Verification code</FieldLabel>\n <OtpInput name=\"code\" groups={[3, 3]} onComplete={verify} />\n <FieldDescription>We sent an SMS to +1 206 •••-4821.</FieldDescription>\n <FieldError>{error}</FieldError>\n</Field>;\n<Button variant=\"ghost\" disabled={seconds > 0} onClick={resend}>\n {seconds > 0 ? `Resend in 0:${pad(seconds)}` : 'Resend code'}\n</Button>;\n\n// Every code in this application is four digits.\n<OtpInputDefaultsProvider length={4} attached>\n <App />\n</OtpInputDefaultsProvider>;\n",
467
467
  "verdict": "excerpt"
468
468
  },
469
469
  {
@@ -15,9 +15,9 @@ Excerpt — not a complete module
15
15
 
16
16
  ```tsx
17
17
  <Field>
18
- <FieldLabel>Código de verificação</FieldLabel>
18
+ <FieldLabel>Verification code</FieldLabel>
19
19
  <OtpInput name="code" groups={[3, 3]} onComplete={verify} />
20
- <FieldDescription>Enviámos um SMS para +55 11 9••••-4821.</FieldDescription>
20
+ <FieldDescription>We sent an SMS to +1 206 •••-4821.</FieldDescription>
21
21
  </Field>;
22
22
  ```
23
23
 
@@ -80,11 +80,11 @@ Excerpt — not a complete module
80
80
  ## Rules
81
81
 
82
82
  - There is no WAI-ARIA APG pattern for a verification code: the APG lists no such entry, so the control is the platform’s own textbox and the sources are the HTML specification for the element, the autocomplete attribute’s one-time-code token, and the WebOTP API.
83
- - One control, one tab stop, one accessible name, one value. Ark, Chakra and Mantine render one input per box and pay for it with N tab stops and no real label; here the boxes are aria-hidden paint over one input, so a screen reader hears "Código de verificação, edit text, 482" and nothing about boxes.
83
+ - One control, one tab stop, one accessible name, one value. Ark, Chakra and Mantine render one input per box and pay for it with N tab stops and no real label; here the boxes are aria-hidden paint over one input, so a screen reader hears "Verification code, edit text, 482" and nothing about boxes.
84
84
  - The control takes its name from the field’s label, through for pointing at the identifier the field derived, and its description and error through aria-describedby merged after anything the consumer wrote.
85
- - aria-required, never the native required: the native attribute engages browser constraint validation and changes submit behaviour. disabled and readonly are native, because that is what those two words mean.
86
- - Every key is the browser’s. The family binds nothing — no Escape, no arrow handling — and only normalises the selection after the fact, so a reader who knows a text field knows this one; WCAG 2.1.4 exists for the class of defect single-key shortcuts produce.
87
- - The focus ring sits on the box where the cursor is, in the theme’s ring colour, and the invalid state retargets that colour rather than repainting it. Invalid is never colour alone: aria-invalid announces it and the field’s error says it in words.
85
+ - aria-required, never the native required: the native attribute engages browser constraint validation and changes submit behavior. disabled and readonly are native, because that is what those two words mean.
86
+ - Every key is the browser’s. The family binds nothing — no Escape, no arrow handling — and only normalizes the selection after the fact, so a reader who knows a text field knows this one; WCAG 2.1.4 exists for the class of defect single-key shortcuts produce.
87
+ - The focus ring sits on the box where the cursor is, in the theme’s ring color, and the invalid state retargets that color rather than repainting it. Invalid is never color alone: aria-invalid announces it and the field’s error says it in words.
88
88
  - mask is a platform decision, not paint: the control becomes type="password", so the screen reader counts the characters instead of reading a PIN aloud and the keyboard keeps nothing. The cost is that a password manager may offer to save it; autoComplete on the control decides.
89
89
 
90
90
  ## Tokens
@@ -149,7 +149,7 @@ Excerpt — not a complete module
149
149
  type="alphanumeric"
150
150
  length={8}
151
151
  transform={(text) => text.replace(/^G-/i, '').toUpperCase()}
152
- onRejected={(text) => setHint(`"${text}" não faz parte do código`)}
152
+ onRejected={(text) => setHint(`"${text}" is not part of the code`)}
153
153
  />;
154
154
 
155
155
  // Only the characters a hexadecimal code has.
@@ -164,14 +164,14 @@ Excerpt — not a complete module
164
164
 
165
165
  ```tsx
166
166
  <Field>
167
- <FieldLabel>PIN de autorização</FieldLabel>
167
+ <FieldLabel>Authorization PIN</FieldLabel>
168
168
  <OtpInput length={4} mask attached autoComplete="off" />
169
169
  </Field>;
170
170
  ```
171
171
 
172
172
  ### The four states the frame paints
173
173
 
174
- Invalid keeps its danger edge on every box while the ring says where the cursor is; read-only keeps full-strength ink and only its ground changes; disabled is muted to a measured colour rather than faded, so a disabled form still says what it holds.
174
+ Invalid keeps its danger edge on every box while the ring says where the cursor is; read-only keeps full-strength ink and only its ground changes; disabled is muted to a measured color rather than faded, so a disabled form still says what it holds.
175
175
 
176
176
  Excerpt — not a complete module
177
177
 
@@ -245,13 +245,13 @@ Excerpt — not a complete module
245
245
 
246
246
  ```tsx
247
247
  <Field invalid={error !== null}>
248
- <FieldLabel>Código de verificação</FieldLabel>
248
+ <FieldLabel>Verification code</FieldLabel>
249
249
  <OtpInput name="code" groups={[3, 3]} onComplete={verify} />
250
- <FieldDescription>Enviámos um SMS para +55 11 9••••-4821.</FieldDescription>
250
+ <FieldDescription>We sent an SMS to +1 206 •••-4821.</FieldDescription>
251
251
  <FieldError>{error}</FieldError>
252
252
  </Field>;
253
253
  <Button variant="ghost" disabled={seconds > 0} onClick={resend}>
254
- {seconds > 0 ? `Reenviar em 0:${pad(seconds)}` : 'Reenviar código'}
254
+ {seconds > 0 ? `Resend in 0:${pad(seconds)}` : 'Resend code'}
255
255
  </Button>;
256
256
 
257
257
  // Every code in this application is four digits.