@beehexa/design-rules 2611.5.5 → 2611.8.1

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 (316) hide show
  1. package/README.md +1 -1
  2. package/dist/AGENTS.md +1 -1
  3. package/dist/catalog.json +3053 -777
  4. package/dist/docs/public/_redirects +2 -2
  5. package/dist/docs/public/r/action-bar.json +26 -0
  6. package/dist/docs/public/r/beehexa-theme.json +18 -0
  7. package/dist/docs/public/r/button-group.json +26 -0
  8. package/dist/docs/public/r/button.json +28 -0
  9. package/dist/docs/public/r/copy-button.json +26 -0
  10. package/dist/docs/public/r/dropdown-menu.json +56 -0
  11. package/dist/docs/public/r/index.json +66 -0
  12. package/dist/docs/public/r/segmented-control.json +31 -0
  13. package/dist/docs/public/r/toggle.json +26 -0
  14. package/dist/docs/public/r/toolbar.json +46 -0
  15. package/dist/docs/public/r/tooltip.json +41 -0
  16. package/dist/docs/scripts/color-pairs.mjs +2 -0
  17. package/dist/docs/src/components/ChildPages.astro +8 -1
  18. package/dist/docs/src/components/CodeExample.astro +123 -6
  19. package/dist/docs/src/components/ColorDemo.astro +21 -18
  20. package/dist/docs/src/components/ComponentTabs.astro +1 -1
  21. package/dist/docs/src/components/DocsFooter.astro +1 -1
  22. package/dist/docs/src/components/ElevationDemo.astro +2 -2
  23. package/dist/docs/src/components/HelpOptions.astro +8 -6
  24. package/dist/docs/src/components/IconBrowser.astro +2 -2
  25. package/dist/docs/src/components/LayoutDemo.astro +178 -99
  26. package/dist/docs/src/components/NativeControlsDemo.astro +169 -44
  27. package/dist/docs/src/components/NativeFlowDemo.astro +206 -0
  28. package/dist/docs/src/components/PhaseTable.astro +9 -5
  29. package/dist/docs/src/components/RoleGuides.astro +30 -22
  30. package/dist/docs/src/components/RuleDemo.astro +111 -0
  31. package/dist/docs/src/components/ShapeDemo.astro +25 -37
  32. package/dist/docs/src/components/SiteHeader.astro +1 -1
  33. package/dist/docs/src/components/SpacingDemo.astro +5 -3
  34. package/dist/docs/src/components/SwitchToggle.astro +13 -0
  35. package/dist/docs/src/components/SystemAreas.astro +9 -6
  36. package/dist/docs/src/components/TableOfContents.astro +1 -1
  37. package/dist/docs/src/components/TokenSearch.astro +64 -0
  38. package/dist/docs/src/components/TokenTable.astro +14 -9
  39. package/dist/docs/src/components/TypeDemo.astro +1 -1
  40. package/dist/docs/src/components/logos/LogoClearSpace.astro +1 -1
  41. package/dist/docs/src/content/components/action-bar/accessibility.mdx +32 -0
  42. package/dist/docs/src/content/components/action-bar/changelog.mdx +7 -0
  43. package/dist/docs/src/content/components/action-bar/code.mdx +69 -0
  44. package/dist/docs/src/content/components/action-bar/examples.mdx +16 -0
  45. package/dist/docs/src/content/components/action-bar/meta.json +9 -0
  46. package/dist/docs/src/content/components/action-bar/style.mdx +13 -0
  47. package/dist/docs/src/content/components/action-bar/usage.mdx +35 -0
  48. package/dist/docs/src/content/components/button/accessibility.mdx +10 -5
  49. package/dist/docs/src/content/components/button/changelog.mdx +26 -1
  50. package/dist/docs/src/content/components/button/code.mdx +130 -25
  51. package/dist/docs/src/content/components/button/examples.mdx +109 -23
  52. package/dist/docs/src/content/components/button/meta.json +5 -1
  53. package/dist/docs/src/content/components/button/style.mdx +72 -0
  54. package/dist/docs/src/content/components/button/usage.mdx +118 -29
  55. package/dist/docs/src/content/components/button-group/accessibility.mdx +32 -0
  56. package/dist/docs/src/content/components/button-group/changelog.mdx +7 -0
  57. package/dist/docs/src/content/components/button-group/code.mdx +39 -0
  58. package/dist/docs/src/content/components/button-group/examples.mdx +36 -0
  59. package/dist/docs/src/content/components/button-group/meta.json +9 -0
  60. package/dist/docs/src/content/components/button-group/style.mdx +12 -0
  61. package/dist/docs/src/content/components/button-group/usage.mdx +31 -0
  62. package/dist/docs/src/content/components/icon-button/accessibility.mdx +35 -0
  63. package/dist/docs/src/content/components/icon-button/changelog.mdx +7 -0
  64. package/dist/docs/src/content/components/icon-button/code.mdx +66 -0
  65. package/dist/docs/src/content/components/icon-button/examples.mdx +46 -0
  66. package/dist/docs/src/content/components/icon-button/meta.json +9 -0
  67. package/dist/docs/src/content/components/icon-button/style.mdx +13 -0
  68. package/dist/docs/src/content/components/icon-button/usage.mdx +42 -0
  69. package/dist/docs/src/content/components/menu-button/accessibility.mdx +36 -0
  70. package/dist/docs/src/content/components/menu-button/changelog.mdx +7 -0
  71. package/dist/docs/src/content/components/menu-button/code.mdx +55 -0
  72. package/dist/docs/src/content/components/menu-button/examples.mdx +26 -0
  73. package/dist/docs/src/content/components/menu-button/meta.json +9 -0
  74. package/dist/docs/src/content/components/menu-button/style.mdx +15 -0
  75. package/dist/docs/src/content/components/menu-button/usage.mdx +44 -0
  76. package/dist/docs/src/content/components/resizable-panel/meta.json +5 -1
  77. package/dist/docs/src/content/{foundations/styles/scrollbars.mdx → components/scrollbar/code.mdx} +20 -39
  78. package/dist/docs/src/content/components/scrollbar/meta.json +9 -0
  79. package/dist/docs/src/content/components/scrollbar/usage.mdx +36 -0
  80. package/dist/docs/src/content/components/segmented-control/accessibility.mdx +32 -0
  81. package/dist/docs/src/content/components/segmented-control/changelog.mdx +7 -0
  82. package/dist/docs/src/content/components/segmented-control/code.mdx +46 -0
  83. package/dist/docs/src/content/components/segmented-control/examples.mdx +26 -0
  84. package/dist/docs/src/content/components/segmented-control/meta.json +9 -0
  85. package/dist/docs/src/content/components/segmented-control/style.mdx +13 -0
  86. package/dist/docs/src/content/components/segmented-control/usage.mdx +38 -0
  87. package/dist/docs/src/content/components/split-button/accessibility.mdx +32 -0
  88. package/dist/docs/src/content/components/split-button/changelog.mdx +7 -0
  89. package/dist/docs/src/content/components/split-button/code.mdx +57 -0
  90. package/dist/docs/src/content/components/split-button/examples.mdx +26 -0
  91. package/dist/docs/src/content/components/split-button/meta.json +9 -0
  92. package/dist/docs/src/content/components/split-button/style.mdx +12 -0
  93. package/dist/docs/src/content/components/split-button/usage.mdx +28 -0
  94. package/dist/docs/src/content/components/switch/accessibility.mdx +28 -0
  95. package/dist/docs/src/content/components/switch/examples.mdx +35 -0
  96. package/dist/docs/src/content/components/switch/meta.json +9 -0
  97. package/dist/docs/src/content/components/switch/usage.mdx +44 -0
  98. package/dist/docs/src/content/components/toggle-button/accessibility.mdx +31 -0
  99. package/dist/docs/src/content/components/toggle-button/changelog.mdx +7 -0
  100. package/dist/docs/src/content/components/toggle-button/code.mdx +45 -0
  101. package/dist/docs/src/content/components/toggle-button/examples.mdx +36 -0
  102. package/dist/docs/src/content/components/toggle-button/meta.json +9 -0
  103. package/dist/docs/src/content/components/toggle-button/style.mdx +11 -0
  104. package/dist/docs/src/content/components/toggle-button/usage.mdx +33 -0
  105. package/dist/docs/src/content/components/toolbar/accessibility.mdx +33 -0
  106. package/dist/docs/src/content/components/toolbar/changelog.mdx +7 -0
  107. package/dist/docs/src/content/components/toolbar/code.mdx +81 -0
  108. package/dist/docs/src/content/components/toolbar/examples.mdx +16 -0
  109. package/dist/docs/src/content/components/toolbar/meta.json +9 -0
  110. package/dist/docs/src/content/components/toolbar/style.mdx +12 -0
  111. package/dist/docs/src/content/components/toolbar/usage.mdx +36 -0
  112. package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +4 -2
  113. package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +1 -1
  114. package/dist/docs/src/content/foundations/guidelines/content/messages.mdx +67 -0
  115. package/dist/docs/src/content/foundations/guidelines/content/numbers-dates-and-currency.mdx +72 -0
  116. package/dist/docs/src/content/foundations/guidelines/content/style-and-grammar.mdx +92 -0
  117. package/dist/docs/src/content/foundations/guidelines/content/terms.mdx +57 -0
  118. package/dist/docs/src/content/foundations/guidelines/content/voice-and-tone.mdx +48 -0
  119. package/dist/docs/src/content/foundations/guidelines/content.mdx +22 -17
  120. package/dist/docs/src/content/foundations/styles/border.mdx +1 -6
  121. package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +66 -6
  122. package/dist/docs/src/content/foundations/styles/color/usage.mdx +5 -5
  123. package/dist/docs/src/content/foundations/styles/data-visualization.mdx +2 -78
  124. package/dist/docs/src/content/foundations/styles/elevation.mdx +2 -2
  125. package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
  126. package/dist/docs/src/content/foundations/styles/icons/code.mdx +1 -1
  127. package/dist/docs/src/content/foundations/styles/icons/library.mdx +2 -2
  128. package/dist/docs/src/content/foundations/styles/icons/usage.mdx +0 -3
  129. package/dist/docs/src/content/foundations/styles/interaction-states.mdx +13 -69
  130. package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +4 -9
  131. package/dist/docs/src/content/foundations/styles/layout/grid.mdx +1 -1
  132. package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +3 -0
  133. package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +3 -3
  134. package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +1 -1
  135. package/dist/docs/src/content/foundations/styles/motion.mdx +3 -1
  136. package/dist/docs/src/content/foundations/styles/radius.mdx +32 -28
  137. package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -6
  138. package/dist/docs/src/content/foundations/styles/spacing.mdx +1 -1
  139. package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
  140. package/dist/docs/src/content/foundations/styles/typography/usage.mdx +7 -0
  141. package/dist/docs/src/content/foundations/styles/z-index.mdx +3 -16
  142. package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +51 -2
  143. package/dist/docs/src/content/foundations/tokens/index.mdx +91 -6
  144. package/dist/docs/src/content/get-started/content.mdx +25 -3
  145. package/dist/docs/src/content/get-started/design.mdx +34 -15
  146. package/dist/docs/src/content/get-started/develop.mdx +83 -28
  147. package/dist/docs/src/content/get-started/get-help.mdx +21 -5
  148. package/dist/docs/src/content/get-started/index.mdx +11 -12
  149. package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +176 -48
  150. package/dist/docs/src/content/tools/application-content.mdx +52 -13
  151. package/dist/docs/src/content/tools/editors.mdx +36 -28
  152. package/dist/docs/src/content/tools/mermaid.mdx +42 -9
  153. package/dist/docs/src/content/tools/vueflow.mdx +199 -60
  154. package/dist/docs/src/content-vi/components/action-bar/accessibility.mdx +32 -0
  155. package/dist/docs/src/content-vi/components/action-bar/changelog.mdx +7 -0
  156. package/dist/docs/src/content-vi/components/action-bar/code.mdx +69 -0
  157. package/dist/docs/src/content-vi/components/action-bar/examples.mdx +16 -0
  158. package/dist/docs/src/content-vi/components/action-bar/style.mdx +13 -0
  159. package/dist/docs/src/content-vi/components/action-bar/usage.mdx +35 -0
  160. package/dist/docs/src/content-vi/components/button/accessibility.mdx +56 -0
  161. package/dist/docs/src/content-vi/components/button/changelog.mdx +31 -0
  162. package/dist/docs/src/content-vi/components/button/code.mdx +139 -0
  163. package/dist/docs/src/content-vi/components/button/examples.mdx +126 -0
  164. package/dist/docs/src/content-vi/components/button/style.mdx +72 -0
  165. package/dist/docs/src/content-vi/components/button/usage.mdx +133 -0
  166. package/dist/docs/src/content-vi/components/button-group/accessibility.mdx +32 -0
  167. package/dist/docs/src/content-vi/components/button-group/changelog.mdx +7 -0
  168. package/dist/docs/src/content-vi/components/button-group/code.mdx +39 -0
  169. package/dist/docs/src/content-vi/components/button-group/examples.mdx +36 -0
  170. package/dist/docs/src/content-vi/components/button-group/style.mdx +12 -0
  171. package/dist/docs/src/content-vi/components/button-group/usage.mdx +31 -0
  172. package/dist/docs/src/content-vi/components/icon-button/accessibility.mdx +35 -0
  173. package/dist/docs/src/content-vi/components/icon-button/changelog.mdx +7 -0
  174. package/dist/docs/src/content-vi/components/icon-button/code.mdx +66 -0
  175. package/dist/docs/src/content-vi/components/icon-button/examples.mdx +46 -0
  176. package/dist/docs/src/content-vi/components/icon-button/style.mdx +13 -0
  177. package/dist/docs/src/content-vi/components/icon-button/usage.mdx +42 -0
  178. package/dist/docs/src/content-vi/components/menu-button/accessibility.mdx +36 -0
  179. package/dist/docs/src/content-vi/components/menu-button/changelog.mdx +7 -0
  180. package/dist/docs/src/content-vi/components/menu-button/code.mdx +55 -0
  181. package/dist/docs/src/content-vi/components/menu-button/examples.mdx +26 -0
  182. package/dist/docs/src/content-vi/components/menu-button/style.mdx +15 -0
  183. package/dist/docs/src/content-vi/components/menu-button/usage.mdx +44 -0
  184. package/dist/docs/src/content-vi/components/resizable-panel/accessibility.mdx +58 -0
  185. package/dist/docs/src/content-vi/components/resizable-panel/changelog.mdx +20 -0
  186. package/dist/docs/src/content-vi/components/resizable-panel/code.mdx +78 -0
  187. package/dist/docs/src/content-vi/components/resizable-panel/examples.mdx +83 -0
  188. package/dist/docs/src/content-vi/components/resizable-panel/usage.mdx +97 -0
  189. package/dist/docs/src/content-vi/components/scrollbar/code.mdx +71 -0
  190. package/dist/docs/src/content-vi/components/scrollbar/usage.mdx +36 -0
  191. package/dist/docs/src/content-vi/components/segmented-control/accessibility.mdx +32 -0
  192. package/dist/docs/src/content-vi/components/segmented-control/changelog.mdx +7 -0
  193. package/dist/docs/src/content-vi/components/segmented-control/code.mdx +46 -0
  194. package/dist/docs/src/content-vi/components/segmented-control/examples.mdx +26 -0
  195. package/dist/docs/src/content-vi/components/segmented-control/style.mdx +13 -0
  196. package/dist/docs/src/content-vi/components/segmented-control/usage.mdx +38 -0
  197. package/dist/docs/src/content-vi/components/split-button/accessibility.mdx +32 -0
  198. package/dist/docs/src/content-vi/components/split-button/changelog.mdx +7 -0
  199. package/dist/docs/src/content-vi/components/split-button/code.mdx +57 -0
  200. package/dist/docs/src/content-vi/components/split-button/examples.mdx +26 -0
  201. package/dist/docs/src/content-vi/components/split-button/style.mdx +12 -0
  202. package/dist/docs/src/content-vi/components/split-button/usage.mdx +28 -0
  203. package/dist/docs/src/content-vi/components/switch/accessibility.mdx +28 -0
  204. package/dist/docs/src/content-vi/components/switch/examples.mdx +35 -0
  205. package/dist/docs/src/content-vi/components/switch/usage.mdx +44 -0
  206. package/dist/docs/src/content-vi/components/toggle-button/accessibility.mdx +31 -0
  207. package/dist/docs/src/content-vi/components/toggle-button/changelog.mdx +7 -0
  208. package/dist/docs/src/content-vi/components/toggle-button/code.mdx +45 -0
  209. package/dist/docs/src/content-vi/components/toggle-button/examples.mdx +36 -0
  210. package/dist/docs/src/content-vi/components/toggle-button/style.mdx +11 -0
  211. package/dist/docs/src/content-vi/components/toggle-button/usage.mdx +33 -0
  212. package/dist/docs/src/content-vi/components/toolbar/accessibility.mdx +33 -0
  213. package/dist/docs/src/content-vi/components/toolbar/changelog.mdx +7 -0
  214. package/dist/docs/src/content-vi/components/toolbar/code.mdx +81 -0
  215. package/dist/docs/src/content-vi/components/toolbar/examples.mdx +16 -0
  216. package/dist/docs/src/content-vi/components/toolbar/style.mdx +12 -0
  217. package/dist/docs/src/content-vi/components/toolbar/usage.mdx +36 -0
  218. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +4 -2
  219. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +1 -1
  220. package/dist/docs/src/content-vi/foundations/guidelines/content/messages.mdx +67 -0
  221. package/dist/docs/src/content-vi/foundations/guidelines/content/numbers-dates-and-currency.mdx +71 -0
  222. package/dist/docs/src/content-vi/foundations/guidelines/content/style-and-grammar.mdx +91 -0
  223. package/dist/docs/src/content-vi/foundations/guidelines/content/terms.mdx +57 -0
  224. package/dist/docs/src/content-vi/foundations/guidelines/content/voice-and-tone.mdx +48 -0
  225. package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +24 -19
  226. package/dist/docs/src/content-vi/foundations/styles/border.mdx +1 -5
  227. package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +65 -6
  228. package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +1 -1
  229. package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +7 -7
  230. package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +1 -1
  231. package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +3 -3
  232. package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +2 -2
  233. package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +1 -1
  234. package/dist/docs/src/content-vi/foundations/styles/icons/library.mdx +2 -2
  235. package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +1 -4
  236. package/dist/docs/src/content-vi/foundations/styles/illustration.mdx +3 -3
  237. package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +13 -10
  238. package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +4 -9
  239. package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +1 -1
  240. package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +3 -0
  241. package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +4 -4
  242. package/dist/docs/src/content-vi/foundations/styles/logos/product-logos.mdx +1 -1
  243. package/dist/docs/src/content-vi/foundations/styles/logos/using-the-logo.mdx +1 -1
  244. package/dist/docs/src/content-vi/foundations/styles/motion.mdx +3 -1
  245. package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +2 -2
  246. package/dist/docs/src/content-vi/foundations/styles/radius.mdx +32 -28
  247. package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -6
  248. package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +1 -1
  249. package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
  250. package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +7 -0
  251. package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +3 -16
  252. package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +51 -2
  253. package/dist/docs/src/content-vi/foundations/tokens/index.mdx +90 -5
  254. package/dist/docs/src/content-vi/get-started/content.mdx +36 -0
  255. package/dist/docs/src/content-vi/get-started/design.mdx +49 -0
  256. package/dist/docs/src/content-vi/get-started/develop.mdx +110 -0
  257. package/dist/docs/src/content-vi/get-started/get-help.mdx +35 -0
  258. package/dist/docs/src/content-vi/get-started/index.mdx +49 -0
  259. package/dist/docs/src/content-vi/release-phases/index.mdx +11 -0
  260. package/dist/docs/src/content-vi/tools/ai-agents.mdx +36 -0
  261. package/dist/docs/src/content-vi/tools/ant-design-vue-theme.mdx +676 -0
  262. package/dist/docs/src/content-vi/tools/application-content.mdx +171 -0
  263. package/dist/docs/src/content-vi/tools/editors.mdx +254 -0
  264. package/dist/docs/src/content-vi/tools/eslint.mdx +15 -0
  265. package/dist/docs/src/content-vi/tools/index.mdx +7 -0
  266. package/dist/docs/src/content-vi/tools/mermaid.mdx +179 -0
  267. package/dist/docs/src/content-vi/tools/stylelint.mdx +18 -0
  268. package/dist/docs/src/content-vi/tools/vueflow.mdx +264 -0
  269. package/dist/docs/src/content.config.ts +13 -2
  270. package/dist/docs/src/lib/dates.ts +8 -0
  271. package/dist/docs/src/lib/i18n.ts +1 -0
  272. package/dist/docs/src/lib/icons.ts +2 -2
  273. package/dist/docs/src/lib/lucide-svg.ts +14 -0
  274. package/dist/docs/src/lib/navigation.ts +7 -4
  275. package/dist/docs/src/lib/token-descriptions-vi.ts +254 -12
  276. package/dist/docs/src/lib/tokens.ts +3 -0
  277. package/dist/docs/src/lib/utils.ts +9 -0
  278. package/dist/docs/src/styles/chrome.css +7 -7
  279. package/dist/docs/src/styles/color.css +31 -31
  280. package/dist/docs/src/styles/docs.css +75 -46
  281. package/dist/docs/src/styles/elevation.css +1 -1
  282. package/dist/docs/src/styles/global.css +28 -11
  283. package/dist/docs/src/styles/icons.css +16 -16
  284. package/dist/docs/src/styles/kit.css +71 -10
  285. package/dist/docs/src/styles/layout.css +16 -11
  286. package/dist/docs/src/styles/logos.css +24 -24
  287. package/dist/docs/src/styles/opacity.css +3 -3
  288. package/dist/docs/src/styles/registry.css +10 -0
  289. package/dist/docs/src/styles/rules.css +24 -0
  290. package/dist/docs/src/styles/shapes.css +2 -2
  291. package/dist/docs/src/styles/tokens.css +213 -120
  292. package/dist/docs/src/styles/tokens.js +69 -32
  293. package/dist/docs/src/styles/typography.css +9 -9
  294. package/dist/docs/src/styles/zindex.css +6 -5
  295. package/dist/docs/tokens/button.json +51 -0
  296. package/dist/docs/tokens/color.json +13 -8
  297. package/dist/docs/tokens/components.json +39 -0
  298. package/dist/docs/tokens/content.json +103 -10
  299. package/dist/docs/tokens/diagram.json +490 -49
  300. package/dist/docs/tokens/editor.json +128 -22
  301. package/dist/docs/tokens/flow.json +412 -80
  302. package/dist/docs/tokens/layout.json +13 -4
  303. package/dist/docs/tokens/motion.json +14 -0
  304. package/dist/docs/tokens/radius.json +9 -9
  305. package/dist/docs/tokens/renderer.json +8 -0
  306. package/dist/docs/tokens/resize.json +84 -15
  307. package/dist/docs/tokens/scrollbar.json +42 -7
  308. package/dist/docs/tokens/size.json +6 -6
  309. package/dist/docs/tokens/spacing.json +1 -1
  310. package/dist/docs/tokens/switch.json +306 -51
  311. package/dist/docs/tokens/typography.json +1 -1
  312. package/dist/docs/tokens/visualization.json +465 -53
  313. package/dist/docs/tokens/z-index.json +0 -10
  314. package/dist/index.js +3053 -777
  315. package/package.json +1 -1
  316. package/dist/docs/src/brand/structure-proposal.md +0 -227
@@ -0,0 +1,9 @@
1
+ {
2
+ "title": "Split button",
3
+ "description": "Runs a default action with one click and offers related alternatives in a menu next to it.",
4
+ "group": "Actions",
5
+ "vi": {
6
+ "title": "Split button",
7
+ "description": "Chạy thao tác mặc định bằng một cú bấm và đưa các phương án liên quan vào menu ngay bên cạnh."
8
+ }
9
+ }
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: Parts, tokens, sizes and spacing of Split button.
3
+ ---
4
+
5
+ ## Tokens
6
+
7
+ | Part | Tokens and values |
8
+ | --- | --- |
9
+ | Shape | Joined (D2): outer corners `radius.control`, inner corners 0, borders overlap |
10
+ | Primary divider | `color.background.primary.hover` |
11
+ | Menu half | Square icon button with `chevron-down`; pressed look while open |
12
+ | Menu | As Menu button |
@@ -0,0 +1,28 @@
1
+ ---
2
+ description: When to use split button, its parts, states, keys and accessibility.
3
+ ---
4
+
5
+ > **Draft.** Proposed from the survey of 18 design systems and not yet approved. It is in the registry so teams can try it; the API may still change before approval.
6
+
7
+ ## When to use
8
+
9
+ - When one action is used most of the time and two or three close alternatives exist: Run now, with Run in test mode in the menu.
10
+
11
+ ## When not to use
12
+
13
+ - When no action is clearly the default. Use a [menu button](/components/menu-button/usage/).
14
+ - When the alternatives are unrelated. Use separate buttons.
15
+
16
+ ## Anatomy
17
+
18
+ Two real buttons joined into one control (D2): the action button and an icon-only menu button with `chevron-down`. Only the outer corners keep `radius.control`; the touching edges overlap into one line. In the Primary variant the divider uses `color.background.primary.hover`.
19
+
20
+ ## States
21
+
22
+ Each half has its own hover, pressed and focus. The menu half keeps the pressed look while its menu is open. Disabled applies to both halves together.
23
+
24
+ ## Accessibility
25
+
26
+ - The pair sits in `role="group"` with an `aria-label` that names the action.
27
+ - The menu half has its own name, such as "More ways to run", plus `aria-haspopup="menu"` and `aria-expanded`.
28
+ - Tab reaches each half; the menu follows the [menu button](/components/menu-button/usage/) keys.
@@ -0,0 +1,28 @@
1
+ ---
2
+ description: How Switch meets WCAG 2.2 AA, its keys, what it gives you and what your team does.
3
+ ---
4
+
5
+ ## Conformance
6
+
7
+ **Switch meets WCAG 2.2 level AA when used as described on this page.** It follows the [Switch pattern](https://www.w3.org/WAI/ARIA/apg/patterns/switch/) of the WAI-ARIA Authoring Practices.
8
+
9
+ ## Keyboard
10
+
11
+ | Key | Action |
12
+ | --- | --- |
13
+ | <kbd>Tab</kbd> | Moves focus to the switch. A disabled switch is skipped. |
14
+ | <kbd>Space</kbd> | Turns the setting on or off. |
15
+
16
+ ## What the switch gives you
17
+
18
+ - A native `<button>` with `role="switch"` and `aria-checked`, so screen readers say the name and whether it is on.
19
+ - Thumb and label against their track: at least 4.5:1 in every state except disabled, in light and dark. The lowest pair measured is 5.64:1.
20
+ - The OFF edge against its track: at least 3:1 (WCAG 1.4.11). The lowest measured is 3.00:1, OFF on hover in light.
21
+ - The focus ring: at least 6.64:1 against the page, surface, subtle and overlay backgrounds.
22
+ - State shown by the thumb position, not by colour alone.
23
+
24
+ ## What your team does
25
+
26
+ - **Name it.** The label says what the setting does: "Sync orders automatically", not "Enable". Put the label next to the switch, or set `aria-label`.
27
+ - **Save at once.** A switch changes the setting when it is pressed. If saving takes time, show the loading state and say when it is done or when it fails.
28
+ - **Don't change the label to describe the state.** "Sync is on" next to an ON switch says the same thing twice.
@@ -0,0 +1,35 @@
1
+ ---
2
+ description: Live switches built from the switch tokens. Click one or press Space to turn it on or off.
3
+ ---
4
+ import CodeExample from '../../../components/CodeExample.astro';
5
+ import SwitchToggle from '../../../components/SwitchToggle.astro';
6
+
7
+ ## Off and on
8
+
9
+ Put the label next to the switch and point to it with `aria-labelledby`. Click a switch, or Tab to it and press <kbd>Space</kbd>.
10
+
11
+ <CodeExample code={`<span class="bh-switch-field">
12
+ <button class="bh-switch" type="button" role="switch" aria-checked="false" aria-labelledby="sw-sync"></button>
13
+ <span id="sw-sync">Sync orders automatically</span>
14
+ </span>
15
+ <span class="bh-switch-field">
16
+ <button class="bh-switch" type="button" role="switch" aria-checked="true" aria-labelledby="sw-email"></button>
17
+ <span id="sw-email">Email me when a sync fails</span>
18
+ </span>`} />
19
+
20
+ ## Disabled
21
+
22
+ Use it only when the setting can't be changed right now, and say why next to it.
23
+
24
+ <CodeExample code={`<span class="bh-switch-field">
25
+ <button class="bh-switch" type="button" role="switch" aria-checked="false" aria-labelledby="sw-off-disabled" aria-describedby="sw-off-why" disabled></button>
26
+ <span id="sw-off-disabled">Sync inventory</span>
27
+ </span>
28
+ <p class="bh-switch-hint" id="sw-off-why">Turn on order sync first.</p>
29
+ <span class="bh-switch-field">
30
+ <button class="bh-switch" type="button" role="switch" aria-checked="true" aria-labelledby="sw-on-disabled" aria-describedby="sw-on-why" disabled></button>
31
+ <span id="sw-on-disabled">Sync orders</span>
32
+ </span>
33
+ <p class="bh-switch-hint" id="sw-on-why">Only a workspace admin can change this.</p>`} />
34
+
35
+ <SwitchToggle />
@@ -0,0 +1,9 @@
1
+ {
2
+ "title": "Switch",
3
+ "description": "A switch turns a single setting on or off, and the change takes effect at once.",
4
+ "group": "Forms",
5
+ "vi": {
6
+ "title": "Công tắc",
7
+ "description": "Công tắc bật hoặc tắt một thiết lập, và thay đổi có hiệu lực ngay."
8
+ }
9
+ }
@@ -0,0 +1,44 @@
1
+ ---
2
+ description: When to use a switch, how it looks in each state, and the tokens it uses.
3
+ ---
4
+ import TokenTable from '../../../components/TokenTable.astro';
5
+
6
+ ## When to use
7
+
8
+ - To turn one setting on or off when the change takes effect at once, such as pausing a sync job.
9
+
10
+ ## When not to use
11
+
12
+ - For a choice saved later with a form's Save button. Use a checkbox.
13
+ - For more than two options. Use radio buttons or a segmented control.
14
+
15
+ ## Colours
16
+
17
+ **ON is neutral, not success. OFF is available, not disabled.**
18
+
19
+ - ON uses the colours of the primary button: the `background.neutral.bold` track with the inverse thumb and label. Never success green or brand yellow, because a switch shows a setting, not the result of an operation.
20
+ - OFF has the `background.neutral` track, a thumb in the icon colour and a `border.bold` edge, so people can see it is a control they can use. Don't give it the disabled colours.
21
+ - Each state has its own thumb colour, paired with its track, and a label colour for On and Off text when a product shows it inside a wider track. Don't put one white thumb on both tracks: on the light OFF track it disappears.
22
+
23
+ ## States
24
+
25
+ All colour names below start with `color.`.
26
+
27
+ | State | OFF | ON | Other cue |
28
+ | --- | --- | --- | --- |
29
+ | Normal | Track `background.neutral`; thumb `icon`; label `text`; edge `border.bold` | Track and edge `background.neutral.bold`; thumb `icon.inverse`; label `text.inverse` | Thumb position and `aria-checked` |
30
+ | Hover | Track `.hover`; same thumb, label and edge | Track and edge `.hover`; same thumb and label | The checked state doesn't change |
31
+ | Pressed | Track `.pressed`; same thumb and label; edge graphite 10 | Track and edge `.pressed`; same thumb and label | The OFF edge keeps 3:1 against its pressed track |
32
+ | Focus | Same colours as normal | Same colours as normal | The focus ring `switch.focus-ring`, 2 px with a 2 px gap |
33
+ | Loading | Same colours as normal OFF | Same colours as normal ON | A spinner in `switch.{off,on}.loading-icon`; the switch can't be changed until the save ends |
34
+ | Disabled | The disabled colours for track, thumb, label and edge | The same disabled colours; the thumb stays in the ON position | No transparency |
35
+
36
+ ON works like the primary button: its track is graphite 12, the last step, so hover moves one step back (graphite 11) and pressed two steps back (graphite 10). The tokens already do this, in light and in dark.
37
+
38
+ ## Size
39
+
40
+ The track is 36 × 20 px (`switch.size.track.width`, `switch.size.track.height`) with a 16 px thumb (`switch.size.thumb`), and both use `radius.full`. The area that responds to a click is at least 24 × 24 px, and 44 × 44 px on touch screens.
41
+
42
+ ## Tokens
43
+
44
+ <TokenTable prefix="switch" />
@@ -0,0 +1,31 @@
1
+ ---
2
+ description: Keys, what Toggle button gives you and what your team does.
3
+ ---
4
+
5
+ ## Conformance
6
+
7
+ **Toggle button meets WCAG 2.2 level AA when used as described on these pages.** It follows the [Button (toggle button) pattern](https://www.w3.org/WAI/ARIA/apg/patterns/button/) of the WAI-ARIA Authoring Practices.
8
+
9
+ ## Keyboard
10
+
11
+ | Key | Action |
12
+ | --- | --- |
13
+ | <kbd>Tab</kbd> | Moves focus to the toggle. |
14
+ | <kbd>Enter</kbd> or <kbd>Space</kbd> | Turns it on or off. |
15
+
16
+ ## What Toggle button gives you
17
+
18
+ - `aria-pressed="true"` or `"false"`, read as "toggle button, pressed".
19
+ - An on state shown by fill and border, not by colour alone.
20
+
21
+ ## What your team does
22
+
23
+ - Keep the same label in both states.
24
+ - Use a switch for a saved setting.
25
+
26
+ ## WCAG criteria
27
+
28
+ | Criterion | Level | How |
29
+ | --- | --- | --- |
30
+ | 1.4.11 Non-text Contrast | AA | Bold border on the on state |
31
+ | 4.1.2 Name, Role, Value | A | `aria-pressed` |
@@ -0,0 +1,7 @@
1
+ ---
2
+ ---
3
+
4
+ ## 0.1.0 – 7 November 2026
5
+
6
+ - First version, as a draft: registry component, examples, code, style and accessibility tabs.
7
+ - Built from the survey of 18 design systems on the Button page.
@@ -0,0 +1,45 @@
1
+ ---
2
+ description: Install, props and the parts Toggle button is built from.
3
+ ---
4
+
5
+ ## Install
6
+
7
+ Run these in the app, after `shadcn-vue init` and the Beehexa theme ([Button › Code](/components/button/code/)):
8
+
9
+ ```bash
10
+ npx shadcn-vue@latest add https://beehexa.design/r/button.json
11
+ npx shadcn-vue@latest add https://beehexa.design/r/toggle.json
12
+ ```
13
+
14
+ ## Use
15
+
16
+ ```vue
17
+ <script setup lang="ts">
18
+ import { Pin } from '@lucide/vue'
19
+ import { ref } from 'vue'
20
+ import { Toggle } from '@/components/ui/toggle'
21
+
22
+ const pinned = ref(true)
23
+ </script>
24
+
25
+ <template>
26
+ <div class="flex items-center gap-(--bh-space-100)">
27
+ <Toggle v-model="pinned" variant="outline"><Pin />Pin</Toggle>
28
+ <Toggle><Pin />Pin</Toggle>
29
+ <Toggle variant="outline" disabled><Pin />Pin</Toggle>
30
+ </div>
31
+ </template>
32
+ ```
33
+
34
+ ## Props
35
+
36
+ | Prop | Values | Notes |
37
+ | --- | --- | --- |
38
+ | `v-model` (`modelValue`) | boolean | On or off |
39
+ | `variant` | `default`, `outline` | Subtle or Default button |
40
+ | `size` | Button sizes | `sm`, `default`, `lg`, `icon-sm`, `icon`, `icon-lg` |
41
+ | `disabled` | boolean | |
42
+
43
+ ## Built on
44
+
45
+ Wraps the reka-ui Toggle with the shadcn-vue Toggle API and the Button styles.
@@ -0,0 +1,36 @@
1
+ ---
2
+ description: Live examples of Toggle button, with the exact Vue file that renders each one.
3
+ ---
4
+ import CodeExample from '../../../components/CodeExample.astro';
5
+ import ToggleBasic from '../../../../registry/beehexa/examples/toggle-button/en/ToggleBasic.vue';
6
+ import ToggleBasicSource from '../../../../registry/beehexa/examples/toggle-button/en/ToggleBasic.vue?raw';
7
+ import ToggleIcon from '../../../../registry/beehexa/examples/toggle-button/en/ToggleIcon.vue';
8
+ import ToggleIconSource from '../../../../registry/beehexa/examples/toggle-button/en/ToggleIcon.vue?raw';
9
+ import ToggleFilter from '../../../../registry/beehexa/examples/toggle-button/en/ToggleFilter.vue';
10
+ import ToggleFilterSource from '../../../../registry/beehexa/examples/toggle-button/en/ToggleFilter.vue?raw';
11
+
12
+ Every example is a complete Vue file. Copy it into an app that has the registry installed, or open it in StackBlitz.
13
+
14
+ ## On and off
15
+
16
+ Default (outline) and Subtle toggles. On: graphite 5 fill with a bold border, so it never looks like hover.
17
+
18
+ <CodeExample source={ToggleBasicSource} file="ToggleBasic.vue">
19
+ <ToggleBasic client:visible />
20
+ </CodeExample>
21
+
22
+ ## Icon only
23
+
24
+ An icon-only toggle names the option, not the state: "Wrap lines".
25
+
26
+ <CodeExample source={ToggleIconSource} file="ToggleIcon.vue">
27
+ <ToggleIcon client:visible />
28
+ </CodeExample>
29
+
30
+ ## Filter a list
31
+
32
+ The change applies at once, without a Save button.
33
+
34
+ <CodeExample source={ToggleFilterSource} file="ToggleFilter.vue">
35
+ <ToggleFilter client:visible />
36
+ </CodeExample>
@@ -0,0 +1,9 @@
1
+ {
2
+ "title": "Toggle button",
3
+ "description": "A button that stays on or off, such as Pin or Show only errors.",
4
+ "group": "Actions",
5
+ "vi": {
6
+ "title": "Toggle button",
7
+ "description": "Nút giữ trạng thái bật hoặc tắt, như Ghim hay Chỉ hiện lỗi."
8
+ }
9
+ }
@@ -0,0 +1,11 @@
1
+ ---
2
+ description: Parts, tokens, sizes and spacing of Toggle button.
3
+ ---
4
+
5
+ ## Tokens
6
+
7
+ | Part | Tokens and values |
8
+ | --- | --- |
9
+ | Off | The Default or Subtle button at rest |
10
+ | On | Fill `button.background.selected` (graphite 5), border `button.border.selected` (`color.border.bold`), D15 |
11
+ | Hover, pressed, focus, disabled | As Button |
@@ -0,0 +1,33 @@
1
+ ---
2
+ description: When to use toggle button, its parts, states, keys and accessibility.
3
+ ---
4
+
5
+ > **Draft.** Proposed from the survey of 18 design systems and not yet approved. It is in the registry so teams can try it; the API may still change before approval.
6
+
7
+ ## When to use
8
+
9
+ - To turn a mode or a view option on and off in a toolbar or above a list: Pin, Show only errors, Wrap lines.
10
+
11
+ ## When not to use
12
+
13
+ - For a setting that is saved, such as in a settings form. Use a [switch](/components/switch/usage/).
14
+ - To choose one option out of several. Use a [segmented control](/components/segmented-control/usage/).
15
+
16
+ ## States
17
+
18
+ | State | Look |
19
+ | --- | --- |
20
+ | Off | The Default or Subtle button at rest |
21
+ | On | Fill `button.background.selected` (graphite 5) and border `button.border.selected` (`color.border.bold`), D15 |
22
+ | Hover, pressed, focus, disabled | As Button. An on button keeps its fill on hover |
23
+
24
+ The on fill is two steps above the button hover, so an on button never looks like a hovered one. The bold border is the second cue, so the state never depends on fill alone.
25
+
26
+ ## Content
27
+
28
+ The label stays the same in both states, such as "Pin". Change the icon if it helps (an outlined and a filled pin), never the meaning of the label.
29
+
30
+ ## Accessibility
31
+
32
+ - `aria-pressed="true"` or `"false"`. Screen readers announce "toggle button, pressed".
33
+ - Text on the on fill: 10.7:1 in light, 10.3:1 in dark. The bold border reaches 3.7:1 against the surface.
@@ -0,0 +1,33 @@
1
+ ---
2
+ description: Keys, what Toolbar gives you and what your team does.
3
+ ---
4
+
5
+ ## Conformance
6
+
7
+ **Toolbar meets WCAG 2.2 level AA when used as described on these pages.** It follows the [Toolbar pattern](https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/) of the WAI-ARIA Authoring Practices.
8
+
9
+ ## Keyboard
10
+
11
+ | Key | Action |
12
+ | --- | --- |
13
+ | <kbd>Tab</kbd> | Enters on the last-used tool; the next Tab leaves the toolbar. |
14
+ | <kbd>←</kbd> <kbd>→</kbd> | Move between tools. |
15
+ | <kbd>Home</kbd>, <kbd>End</kbd> | First and last tool. |
16
+ | <kbd>Enter</kbd> or <kbd>Space</kbd> | Runs or toggles the tool. |
17
+
18
+ ## What Toolbar gives you
19
+
20
+ - `role="toolbar"` with one tool in the tab order at a time (roving tabindex).
21
+ - Toggle tools with `aria-pressed`, or `aria-checked` in a single group.
22
+
23
+ ## What your team does
24
+
25
+ - Name the toolbar and every icon-only tool.
26
+ - Show each name in a tooltip.
27
+
28
+ ## WCAG criteria
29
+
30
+ | Criterion | Level | How |
31
+ | --- | --- | --- |
32
+ | 2.1.1 Keyboard | A | Arrow keys, Home and End |
33
+ | 4.1.2 Name, Role, Value | A | `role="toolbar"` with a name |
@@ -0,0 +1,7 @@
1
+ ---
2
+ ---
3
+
4
+ ## 0.1.0 – 7 November 2026
5
+
6
+ - First version, as a draft: registry component, examples, code, style and accessibility tabs.
7
+ - Built from the survey of 18 design systems on the Button page.
@@ -0,0 +1,81 @@
1
+ ---
2
+ description: Install, props and the parts Toolbar is built from.
3
+ ---
4
+
5
+ ## Install
6
+
7
+ Run these in the app, after `shadcn-vue init` and the Beehexa theme ([Button › Code](/components/button/code/)):
8
+
9
+ ```bash
10
+ npx shadcn-vue@latest add https://beehexa.design/r/button.json
11
+ npx shadcn-vue@latest add https://beehexa.design/r/toolbar.json
12
+ npx shadcn-vue@latest add https://beehexa.design/r/tooltip.json
13
+ ```
14
+
15
+ ## Use
16
+
17
+ ```vue
18
+ <script setup lang="ts">
19
+ import { Grid3x3, Magnet, Maximize, Redo2, Undo2, ZoomIn, ZoomOut } from '@lucide/vue'
20
+ import { ref } from 'vue'
21
+ import { Toolbar, ToolbarButton, ToolbarSeparator, ToolbarToggleGroup, ToolbarToggleItem } from '@/components/ui/toolbar'
22
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
23
+
24
+ const history = [
25
+ { label: 'Undo', icon: Undo2 },
26
+ { label: 'Redo', icon: Redo2 },
27
+ ]
28
+ const zoom = [
29
+ { label: 'Zoom out', icon: ZoomOut },
30
+ { label: 'Zoom in', icon: ZoomIn },
31
+ { label: 'Fit to screen', icon: Maximize },
32
+ ]
33
+ const options = [
34
+ { value: 'grid', label: 'Show grid', icon: Grid3x3 },
35
+ { value: 'snap', label: 'Snap to grid', icon: Magnet },
36
+ ]
37
+ const on = ref(['grid'])
38
+ </script>
39
+
40
+ <template>
41
+ <TooltipProvider>
42
+ <Toolbar aria-label="Diagram tools">
43
+ <Tooltip v-for="tool in history" :key="tool.label">
44
+ <TooltipTrigger as-child>
45
+ <ToolbarButton :aria-label="tool.label"><component :is="tool.icon" /></ToolbarButton>
46
+ </TooltipTrigger>
47
+ <TooltipContent>{{ tool.label }}</TooltipContent>
48
+ </Tooltip>
49
+ <ToolbarSeparator />
50
+ <Tooltip v-for="tool in zoom" :key="tool.label">
51
+ <TooltipTrigger as-child>
52
+ <ToolbarButton :aria-label="tool.label"><component :is="tool.icon" /></ToolbarButton>
53
+ </TooltipTrigger>
54
+ <TooltipContent>{{ tool.label }}</TooltipContent>
55
+ </Tooltip>
56
+ <ToolbarSeparator />
57
+ <ToolbarToggleGroup v-model="on" type="multiple">
58
+ <Tooltip v-for="tool in options" :key="tool.value">
59
+ <TooltipTrigger as-child>
60
+ <ToolbarToggleItem :value="tool.value" :aria-label="tool.label"><component :is="tool.icon" /></ToolbarToggleItem>
61
+ </TooltipTrigger>
62
+ <TooltipContent>{{ tool.label }}</TooltipContent>
63
+ </Tooltip>
64
+ </ToolbarToggleGroup>
65
+ </Toolbar>
66
+ </TooltipProvider>
67
+ </template>
68
+ ```
69
+
70
+ ## Props
71
+
72
+ | Prop | Values | Notes |
73
+ | --- | --- | --- |
74
+ | Toolbar `aria-label` | string | Required, such as "Diagram tools" |
75
+ | Toolbar `orientation` | `horizontal` (default), `vertical` | |
76
+ | ToolbarButton `variant`, `size` | Button values; default `ghost`, `icon` | |
77
+ | ToolbarToggleGroup `type` | `single`, `multiple` | `v-model` holds the value or the list |
78
+
79
+ ## Built on
80
+
81
+ Wraps the reka-ui Toolbar. Tools use the Button styles; toggle tools use the toggle-button on look.
@@ -0,0 +1,16 @@
1
+ ---
2
+ description: Live examples of Toolbar, with the exact Vue file that renders each one.
3
+ ---
4
+ import CodeExample from '../../../components/CodeExample.astro';
5
+ import ToolbarDiagram from '../../../../registry/beehexa/examples/toolbar/en/ToolbarDiagram.vue';
6
+ import ToolbarDiagramSource from '../../../../registry/beehexa/examples/toolbar/en/ToolbarDiagram.vue?raw';
7
+
8
+ Every example is a complete Vue file. Copy it into an app that has the registry installed, or open it in StackBlitz.
9
+
10
+ ## Diagram tools
11
+
12
+ History, zoom and view options in groups split by separators. Grid and Snap are toggle tools.
13
+
14
+ <CodeExample source={ToolbarDiagramSource} file="ToolbarDiagram.vue">
15
+ <ToolbarDiagram client:visible />
16
+ </CodeExample>
@@ -0,0 +1,9 @@
1
+ {
2
+ "title": "Toolbar",
3
+ "description": "A row of tools for a view or an editor, reached with Tab once and moved through with the arrow keys.",
4
+ "group": "Actions",
5
+ "vi": {
6
+ "title": "Thanh công cụ",
7
+ "description": "Một hàng công cụ cho một view hoặc editor, Tab vào một lần và di chuyển bằng phím mũi tên."
8
+ }
9
+ }
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: Parts, tokens, sizes and spacing of Toolbar.
3
+ ---
4
+
5
+ ## Tokens
6
+
7
+ | Part | Tokens and values |
8
+ | --- | --- |
9
+ | Container | `color.surface`, border `color.border`, `radius.control`, padding `space.050` |
10
+ | Tools | Subtle icon buttons, `size.control.default`, `space.050` apart |
11
+ | Separator | `border.width.default` of `color.border`, `space.050` on each side |
12
+ | Toggle on | `button.background.selected`, `button.border.selected` |
@@ -0,0 +1,36 @@
1
+ ---
2
+ description: When to use toolbar, its parts, states, keys and accessibility.
3
+ ---
4
+
5
+ > **Draft.** Proposed from the survey of 18 design systems and not yet approved. It is in the registry so teams can try it; the API may still change before approval.
6
+
7
+ ## When to use
8
+
9
+ - Above a canvas, a diagram or an editor: undo, redo, zoom, fit to screen.
10
+ - When there are more than about five related tools that users repeat often.
11
+
12
+ ## When not to use
13
+
14
+ - For two or three actions at the end of a form. Use a [button group](/components/button-group/usage/).
15
+ - For page navigation. Use tabs or a menu.
16
+
17
+ ## Anatomy
18
+
19
+ | Part | Notes |
20
+ | --- | --- |
21
+ | Container | `color.surface`, border `color.border`, `radius.control`, padding `space.050` |
22
+ | Tools | Icon buttons (Subtle), toggle buttons, menu buttons |
23
+ | Separator | 1 px `color.border` between groups of tools |
24
+
25
+ ## Keyboard
26
+
27
+ | Key | Does |
28
+ | --- | --- |
29
+ | Tab | Enters the toolbar on the last-used tool; the next Tab leaves it |
30
+ | Left and Right arrows | Move between tools |
31
+ | Home, End | First and last tool |
32
+
33
+ ## Accessibility
34
+
35
+ - `role="toolbar"` and an `aria-label`, such as "Diagram tools".
36
+ - Only one tool is in the tab order at a time (roving tabindex).
@@ -29,8 +29,9 @@ This table explains how the standards relate. It is not a claim of conformance t
29
29
  ## How we check
30
30
 
31
31
  - **Every build** checks every text, icon and border colour pair for contrast in light and dark. A pair that fails stops the build.
32
- - **Every change** to a page or a component is checked with axe, with the keyboard, at 200% zoom and at 320 px wide before it is published.
33
- - **Every major release** is tested with NVDA, JAWS, VoiceOver and TalkBack, as listed in [Testing](/foundations/guidelines/accessibility/testing/#screen-readers-and-browsers).
32
+ - **On 4 November 2026**, every page of this site was checked with axe in light and dark, and at 320 px wide.
33
+ - **On 6 November 2026**, all 186 pages, in English and Vietnamese, were checked again with axe against the WCAG 2.2 A and AA rules, in light and dark. The issues on this site's own pages were fixed; the ones left are listed below.
34
+ - Product teams follow the checks in [Testing](/foundations/guidelines/accessibility/testing/) before they ship a screen.
34
35
 
35
36
  ## Known issues
36
37
 
@@ -39,6 +40,7 @@ This table explains how the standards relate. It is not a claim of conformance t
39
40
  | Vietnamese pages | Pages without a Vietnamese text show the English text, marked as English for screen readers. | In progress |
40
41
  | Conformance report | The first accessibility conformance report (ACR), in the VPAT® format, will cover this site and Button and will be published on this page. | Planned |
41
42
  | Screen readers | This site and Button have not been tested with NVDA, JAWS, VoiceOver or TalkBack. | Planned |
43
+ | Ant Design Vue theme page | In the live framework examples on this page, four selects from Ant Design Vue 4.2.6 lack `aria-expanded` and point to lists that are not in the page until they open. | In progress |
42
44
 
43
45
  ## Feedback
44
46
 
@@ -10,7 +10,7 @@ updated: 2026-11-04
10
10
 
11
11
  ## Before handoff (designers)
12
12
 
13
- - **Contrast**: text and icons use the token pairs listed in [Color › Accessibility](/foundations/styles/color/accessibility/). Check text on images and charts by hand.
13
+ - **Contrast**: text and icons use the token pairs listed in [colour accessibility](/foundations/styles/color/accessibility/). Check text on images and charts by hand.
14
14
  - **Colour alone**: every status, error and selection has a word, an icon or a second cue.
15
15
  - **Focus order**: number the Tab stops on the frame. Mark where focus goes when a dialog, drawer or menu opens and closes.
16
16
  - **Names**: write what a screen reader should say for every icon button and image. Mark decorative images as decorative.