@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
@@ -240,7 +240,7 @@ const features = [
240
240
  <div class="type-leading">
241
241
  {cols.map((c) => (
242
242
  <figure class={c.bad ? 'is-bad' : ''}>
243
- <p class="type-leading-text" lang={c.lang} style={`font-family:var(--bh-font-family-sans);font-size:14px;font-weight:400;line-height:${c.lh}px;--lh:${c.lh}px`}>{c.text.map((line, i) => <>{i > 0 && <br />}{line}</>)}</p>
243
+ <p class="type-leading-text" lang={c.lang} style={`font-family:var(--bh-font-family-sans);font-size:var(--bh-font-size-200);font-weight:var(--bh-font-weight-regular);line-height:${c.lh}px;--lh:${c.lh}px`}>{c.text.map((line, i) => <>{i > 0 && <br />}{line}</>)}</p>
244
244
  <figcaption><b>{c.title}</b><span>{c.note}</span></figcaption>
245
245
  </figure>
246
246
  ))}
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  // Clear space: x on every side, where x is the x-height of the wordmark, which is also one side of
3
- // the hexagon. Drawn the way GitLab shows its own: a grid of quarter-x cells on which every edge of
3
+ // the hexagon. Drawn as a grid of quarter-x cells on which every edge of
4
4
  // the logo and of the margin is a line; the margin is tinted; the wordmark's own "x", set in the
5
5
  // corner, is the unit.
6
6
  import { COLORS, ICON_H, ICON_PATH, ICON_SCALE, ICON_TOP, WORDMARKS, X_HEIGHT } from '../../lib/logo-geometry';
@@ -0,0 +1,32 @@
1
+ ---
2
+ description: Keys, what Action bar gives you and what your team does.
3
+ ---
4
+
5
+ ## Conformance
6
+
7
+ **Action bar meets WCAG 2.2 level AA when used as described on these pages.**
8
+
9
+ ## Keyboard
10
+
11
+ | Key | Action |
12
+ | --- | --- |
13
+ | <kbd>Tab</kbd> | Moves through the actions and the close button. |
14
+ | <kbd>Esc</kbd> | Clears the selection when focus is in the bar. |
15
+
16
+ ## What Action bar gives you
17
+
18
+ - A named region (`role="region"`).
19
+ - A polite live region, always in the page, that announces the count on every change.
20
+ - A named close button.
21
+
22
+ ## What your team does
23
+
24
+ - Return focus to the table after clearing.
25
+ - Confirm before a bulk delete, then say what happened: "3 connections paused".
26
+
27
+ ## WCAG criteria
28
+
29
+ | Criterion | Level | How |
30
+ | --- | --- | --- |
31
+ | 4.1.3 Status Messages | AA | Count in a polite live region |
32
+ | 2.1.1 Keyboard | A | Esc and Tab |
@@ -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,69 @@
1
+ ---
2
+ description: Install, props and the parts Action bar 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/action-bar.json
12
+ ```
13
+
14
+ ## Use
15
+
16
+ ```vue
17
+ <script setup lang="ts">
18
+ import { Download, Pause, Trash2 } from '@lucide/vue'
19
+ import { computed, ref } from 'vue'
20
+ import { ActionBar } from '@/components/ui/action-bar'
21
+ import { Button } from '@/components/ui/button'
22
+
23
+ const rows = [
24
+ { id: 'orders', name: 'Orders to ERP' },
25
+ { id: 'stock', name: 'Stock from warehouse' },
26
+ { id: 'customers', name: 'Customers to CRM' },
27
+ ]
28
+ const selected = ref<string[]>(['orders', 'stock'])
29
+ const status = computed(() => `${selected.value.length} ${selected.value.length === 1 ? 'connection' : 'connections'} selected`)
30
+ </script>
31
+
32
+ <template>
33
+ <div class="flex w-full max-w-120 flex-col gap-(--bh-space-100)">
34
+ <ActionBar
35
+ :open="selected.length > 0"
36
+ :status="status"
37
+ label="Actions for selected connections"
38
+ clear-label="Clear selection"
39
+ @clear="selected = []"
40
+ >
41
+ <Button variant="outline" size="sm"><Pause />Pause</Button>
42
+ <Button variant="outline" size="sm"><Download />Export</Button>
43
+ <Button variant="ghost-destructive" size="sm"><Trash2 />Delete</Button>
44
+ </ActionBar>
45
+ <ul class="m-0 list-none p-0">
46
+ <li v-for="row in rows" :key="row.id" class="border-b-(length:--bh-border-width-default) border-(--bh-color-border) py-(--bh-space-100)">
47
+ <label class="flex cursor-pointer items-center gap-(--bh-space-100)">
48
+ <input v-model="selected" type="checkbox" :value="row.id" class="size-(--bh-size-icon-default) accent-(--bh-color-background-primary)">
49
+ {{ row.name }}
50
+ </label>
51
+ </li>
52
+ </ul>
53
+ </div>
54
+ </template>
55
+ ```
56
+
57
+ ## Props
58
+
59
+ | Prop | Values | Notes |
60
+ | --- | --- | --- |
61
+ | `open` | boolean | True while at least one row is selected |
62
+ | `status` | string | The count, such as "3 connections selected" |
63
+ | `label` | string | Region name, such as "Actions for selected rows" |
64
+ | `clearLabel` | string, default `Clear selection` | Name of the close button |
65
+ | `@clear` | event | Close button and Esc; clear the selection |
66
+
67
+ ## Built on
68
+
69
+ A Beehexa component with no shadcn-vue counterpart. The actions inside are small Buttons.
@@ -0,0 +1,16 @@
1
+ ---
2
+ description: Live examples of Action bar, with the exact Vue file that renders each one.
3
+ ---
4
+ import CodeExample from '../../../components/CodeExample.astro';
5
+ import ActionBarTable from '../../../../registry/beehexa/examples/action-bar/en/ActionBarTable.vue';
6
+ import ActionBarTableSource from '../../../../registry/beehexa/examples/action-bar/en/ActionBarTable.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
+ ## Bulk actions
11
+
12
+ Select rows to show the bar; clear the selection or press Esc in the bar to hide it.
13
+
14
+ <CodeExample source={ActionBarTableSource} file="ActionBarTable.vue">
15
+ <ActionBarTable client:visible />
16
+ </CodeExample>
@@ -0,0 +1,9 @@
1
+ {
2
+ "title": "Action bar",
3
+ "description": "Shows the actions for the rows a user has selected, with the count and a way to clear the selection.",
4
+ "group": "Actions",
5
+ "vi": {
6
+ "title": "Thanh thao tác",
7
+ "description": "Hiện các thao tác cho những dòng người dùng đã chọn, kèm số lượng và cách bỏ chọn."
8
+ }
9
+ }
@@ -0,0 +1,13 @@
1
+ ---
2
+ description: Parts, tokens, sizes and spacing of Action bar.
3
+ ---
4
+
5
+ ## Tokens
6
+
7
+ | Part | Tokens and values |
8
+ | --- | --- |
9
+ | Container | `color.surface.overlay`, border `color.border`, `elevation.shadow.overlay`, `radius.card` |
10
+ | Padding | `space.100`, `space.200` at the start |
11
+ | Gap | `space.200` between count and actions; `space.100` between actions |
12
+ | Count | `font.label.default` |
13
+ | Actions | Small (24 px) buttons; Subtle danger for delete |
@@ -0,0 +1,35 @@
1
+ ---
2
+ description: When to use action bar, 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
+ - In a table or list where users select several rows and act on them together: pause, delete, export.
10
+
11
+ ## When not to use
12
+
13
+ - When nothing is selected. Hide the bar.
14
+ - For page-level actions. Put them in the page header.
15
+
16
+ ## Anatomy
17
+
18
+ | Part | Notes |
19
+ | --- | --- |
20
+ | Container | `color.surface.overlay`, border `color.border`, `elevation.shadow.overlay`, `radius.card`. Sits above the table or floats at the bottom of it |
21
+ | Count | "3 connections selected", `font.label.default` |
22
+ | Actions | Small (24 px) buttons; Danger for delete, with a confirmation |
23
+ | Clear | Icon-only Subtle button `x`, named "Clear selection" |
24
+
25
+ ## Behaviour
26
+
27
+ - Appears when the first row is selected and hides when the last is cleared.
28
+ - The count updates on every change.
29
+ - After a bulk action, say what happened, such as "3 connections paused".
30
+
31
+ ## Accessibility
32
+
33
+ - The bar is a region with an `aria-label`, such as "Actions for selected rows".
34
+ - A polite live region announces the count when it changes.
35
+ - Esc clears the selection when focus is in the bar.
@@ -10,7 +10,7 @@ description: How Button meets WCAG 2.2 AA, its keys, what it gives you and what
10
10
 
11
11
  | Key | Action |
12
12
  | --- | --- |
13
- | <kbd>Tab</kbd> | Moves focus to the button. Disabled buttons are skipped. |
13
+ | <kbd>Tab</kbd> | Moves focus to the button. Disabled buttons are skipped; unavailable (`aria-disabled`) and loading buttons are not. |
14
14
  | <kbd>Enter</kbd> or <kbd>Space</kbd> | Activates the button. |
15
15
 
16
16
  ## What Button gives you
@@ -20,13 +20,17 @@ description: How Button meets WCAG 2.2 AA, its keys, what it gives you and what
20
20
  - Heights of 24, 32 and 40 px, all at least the 24 × 24 px target; on touch screens the tap area grows to 44 × 44 px (`size.target.touch`).
21
21
  - Text and background that meet 4.5:1 in every state except disabled, in light and dark.
22
22
  - A disabled state that is removed from the tab order and announced as unavailable.
23
+ - An unavailable state (`aria-disabled="true"`) that stays in the tab order, so the reason next to it can be reached and read.
24
+ - A loading state that keeps the button's colours and focus; the spinner is hidden from screen readers.
23
25
 
24
26
  ## What your team does
25
27
 
26
28
  - **Name it.** Start the label with a verb: "Sync orders", not "OK". An icon-only button needs an `aria-label` that says the action, such as "Delete store".
27
29
  - **Use a link to go somewhere.** A button does something; a link goes to a page.
28
30
  - **Say what happened.** When a button shows that it is busy, announce the result when it finishes, for example with a toast or a live region: "Orders synced".
29
- - **Avoid disabling.** A disabled button cannot explain why. Prefer keeping it active and showing what is missing when it is pressed.
31
+ - **Avoid disabling.** A disabled button cannot explain why. Prefer keeping it active and showing what is missing when it is pressed. If it must look unavailable, use `aria-disabled="true"`, link the reason with `aria-describedby`, and ignore clicks in your code.
32
+ - **Loading.** Set `aria-busy="true"`, change the label to say what is happening, ignore clicks until it ends, then announce the result.
33
+ - **New tab.** A link that opens a new tab says so in hidden text: "(opens in a new tab)".
30
34
  - **Toggle buttons** set `aria-pressed="true"` or `"false"`, or change their label, such as "Pause" and "Play".
31
35
 
32
36
  ## WCAG criteria
@@ -45,7 +49,8 @@ description: How Button meets WCAG 2.2 AA, its keys, what it gives you and what
45
49
 
46
50
  | Check | Status | Date |
47
51
  | --- | --- | --- |
48
- | Automated (axe, WCAG 2.2 AA), light and dark | Passed | 4 Nov 2026 |
49
- | Keyboard | Passed | 4 Nov 2026 |
50
- | Touch target, phone screen size | Passed | 4 Nov 2026 |
52
+ | Automated (axe, WCAG 2.2 AA), light and dark | Passed | 4 November 2026 |
53
+ | Keyboard | Passed | 4 November 2026 |
54
+ | Touch target, phone screen size | Passed | 4 November 2026 |
51
55
  | Screen readers (NVDA, VoiceOver) | Planned | |
56
+ | Loading and unavailable states, keyboard and axe | Planned | |
@@ -1,6 +1,31 @@
1
1
  ---
2
2
  ---
3
3
 
4
- ## 0.1.0 – October 20, 2026
4
+ ## 0.3.0 – 7 November 2026
5
+
6
+ - Fixed: Primary and Danger did not change colour when pressed, because the hover rule outweighed the pressed rule.
7
+ - Subtle and Default buttons: stronger hover and pressed fills (graphite 3 and 4) through two component tokens, `button.background.subtle.hover` and `button.background.subtle.pressed`. Rows and menu items are unchanged.
8
+ - Default button: the border darkens one step on hover and while pressed (`color.border.hover`).
9
+ - Toggle on (`aria-pressed="true"`): fill `button.background.selected` with a bold border.
10
+ - Subtle, Subtle danger and Link: no fill and no border when unavailable or disabled; only the text turns grey.
11
+ - An open menu trigger keeps the pressed look (`aria-expanded="true"`).
12
+ - The loading spinner is the Lucide `loader-circle`, shown after 300 ms, one turn a second.
13
+ - Icons now come from the Lucide package instead of hand-written SVG.
14
+ - New Style tab: anatomy, colour tokens per variant and state, sizes, spacing and motion.
15
+ - Examples: the preview can sit on a transparent checkerboard, a light surface or a dark one.
16
+ - Fixed: a loading button showed its icon and the spinner together; the spinner now takes the icon's place.
17
+ - Unavailable: the reason moved from a line under the button to a tooltip (new Tooltip component), as in all five surveyed systems that document a focusable disabled button.
18
+ - Examples are real Vue files: copy, open in StackBlitz, collapse long code, see the file name.
19
+ - Fixed: text inside a light or dark preview kept the page's colour.
20
+
21
+ ## 0.2.0 – 7 November 2026
22
+
23
+ - Pressed state for every variant, small and large sizes, icon-only, full width, and the danger tone on a subtle button.
24
+ - Loading (`aria-busy`) and unavailable (`aria-disabled` with the reason) states.
25
+ - New Code tab: classes, attributes, design tokens and limitations.
26
+ - shadcn-vue: a Beehexa registry with the Button and a theme that maps shadcn-vue variables to Beehexa tokens (`/r/button.json`, `/r/beehexa-theme.json`).
27
+ - Usage: anatomy, allowed combinations, placement and order, and an English–Vietnamese verb list for labels.
28
+
29
+ ## 0.1.0 – 20 October 2026
5
30
 
6
31
  - First documentation of Button. Early Access.
@@ -1,34 +1,139 @@
1
1
  ---
2
- description: Use the Ant Design Vue button with the Beehexa theme.
2
+ description: Classes, attributes and design tokens for Button, the markup for each state, and what Button does not do yet.
3
3
  ---
4
- import CodeExample from '../../../components/CodeExample.astro';
5
4
 
6
- ## Installation
5
+ ## shadcn-vue
7
6
 
8
- Buttons come from Ant Design Vue. Apply the [Beehexa theme](/tools/ant-design-vue-theme/) once at the root of the app.
7
+ The Examples tab uses this component. For Vue apps built with [shadcn-vue](https://www.shadcn-vue.com/) and Tailwind CSS v4, Beehexa publishes its own registry. The Button keeps the shadcn-vue API, so existing code keeps working, and is styled with Beehexa design tokens instead of the shadcn defaults.
9
8
 
10
- ## Usage
9
+ ### Install
11
10
 
12
- <CodeExample lang="vue" code={`<template>
13
- <a-space>
14
- <a-button>Cancel</a-button>
15
- <a-button type="primary" :loading="saving" @click="save">Save changes</a-button>
16
- <a-button danger>Delete integration</a-button>
17
- </a-space>
18
- </template>`} />
11
+ Run these in the app, after `shadcn-vue init`:
19
12
 
20
- ## Props
13
+ ```bash
14
+ npm install @beehexa/design-tokens
15
+ npx shadcn-vue@latest add https://beehexa.design/r/beehexa-theme.json
16
+ npx shadcn-vue@latest add https://beehexa.design/r/button.json
17
+ ```
21
18
 
22
- | Prop | Values | Notes |
23
- | --- | --- | --- |
24
- | `type` | `default`, `primary`, `dashed`, `link`, `text` | Use `primary` once per screen; preserve each variant's role. |
25
- | `danger` | `boolean` | For destructive actions. |
26
- | `ghost` | `boolean` | Transparent outlined native variant; use the appropriate host/foreground pair, not solid-primary label overrides. |
27
- | `loading` | `boolean` | Shows a spinner and blocks repeat clicks. |
28
- | `disabled` | `boolean` | Prefer explaining why an action is unavailable. |
29
- | `size` | `small`, `middle`, `large` | Share the adjacent native field's size. |
30
- | `#icon` | Vue slot | Use the native slot for Lucide or AntD icons; do not add a local margin. |
19
+ Then import the tokens and the theme after Tailwind:
31
20
 
32
- For a compact bordered utility trigger, omit `type` or use `default`. Text Buttons
33
- remain frameless. Give an icon-only Button an accessible name and keep actual
34
- Dropdown/Menu open state, Escape and focus restoration in the feature.
21
+ ```css
22
+ @import 'tailwindcss';
23
+ @import '@beehexa/design-tokens/css';
24
+ @import './assets/beehexa-shadcn.css';
25
+ ```
26
+
27
+ The theme maps the shadcn-vue colour and radius variables to Beehexa tokens, so the other shadcn-vue components follow Beehexa colours too. Dark mode follows `data-theme="dark"` on `<html>`, as on this site.
28
+
29
+ ### Use
30
+
31
+ ```vue
32
+ <script setup lang="ts">
33
+ import { Ellipsis } from '@lucide/vue'
34
+ import { Button } from '@/components/ui/button'
35
+ </script>
36
+
37
+ <template>
38
+ <Button variant="outline">Test connection</Button>
39
+ <Button :loading="saving">{{ saving ? 'Saving…' : 'Save connection' }}</Button>
40
+ <Button variant="ghost-destructive" size="sm">Remove</Button>
41
+ <Button variant="ghost" size="icon" aria-label="More actions">
42
+ <Ellipsis />
43
+ </Button>
44
+ <Button as-child variant="outline">
45
+ <a href="/connections">All connections</a>
46
+ </Button>
47
+ </template>
48
+ ```
49
+
50
+ ### Props
51
+
52
+ | Prop | Values | Default | Beehexa meaning |
53
+ | --- | --- | --- | --- |
54
+ | `variant` | `default` | `default` | Primary |
55
+ | | `outline`, `secondary` | | Default. Beehexa has no filled secondary, so both look the same |
56
+ | | `ghost` | | Subtle |
57
+ | | `destructive` | | Danger |
58
+ | | `ghost-destructive` | | Danger tone on a subtle button (Beehexa addition) |
59
+ | | `link` | | An action inside text; always underlined |
60
+ | `size` | `sm`, `default`, `lg` | `default` | 24, 32 and 40 px; `xs` is the same as `sm` |
61
+ | | `icon-sm`, `icon`, `icon-lg` | | Icon-only squares of 24, 32 and 40 px; `icon-xs` is the same as `icon-sm` |
62
+ | `loading` | `boolean` | `false` | Beehexa addition: spinner in place of the icon, `aria-busy`, clicks ignored |
63
+ | `as`, `asChild` | | `'button'` | Render another element, such as a router link |
64
+
65
+ Pass `aria-disabled="true"` with `aria-describedby` for an unavailable button: it stays focusable and ignores clicks. Use `disabled` only for short waits.
66
+
67
+ The source lives in `registry/beehexa/` in the beehexa.design repository; `node scripts/build-registry.mjs` writes the files served under `/r/`.
68
+
69
+ ## HTML and CSS, without a framework
70
+
71
+ On this site and in any page without Vue, Button is CSS only: add the classes to a native `button`, or to an `a` when it goes to another page. The styles ship in the site kit and use only design tokens.
72
+
73
+ | Class | Effect |
74
+ | --- | --- |
75
+ | `bh-button` | Required. Default variant, default size |
76
+ | `bh-button-primary` | Primary variant |
77
+ | `bh-button-subtle` | Subtle variant: no fill or edge at rest |
78
+ | `bh-button-danger` | Danger. With `bh-button-subtle`, the danger tone on a subtle button |
79
+ | `bh-button-small`, `bh-button-large` | 24 px or 40 px instead of 32 px |
80
+ | `bh-button-icon` | Icon-only: a square of the button's height |
81
+ | `bh-button-block` | Full width |
82
+ | `bh-button-row` | A row of buttons with `space.100` between them; add `is-end` to align it to the end |
83
+
84
+ ## Attributes
85
+
86
+ | Attribute | When |
87
+ | --- | --- |
88
+ | `type="button"` | Always, unless the button submits a form (`type="submit"`) |
89
+ | `aria-label` | Icon-only buttons. If the button also has visible text, the name must contain it |
90
+ | `aria-busy="true"` | While loading. Your code ignores clicks until it is removed |
91
+ | `aria-disabled="true"` with `aria-describedby` | Unavailable but focusable; point to the text that gives the reason |
92
+ | `disabled` | Short waits only; removes the button from the tab order |
93
+ | `aria-haspopup`, `aria-expanded` | The button opens a menu |
94
+ | `aria-pressed` | A toggle button in a toolbar |
95
+ | `target="_blank" rel="noopener noreferrer"` | Links that open a new tab; add an external-link icon and hidden text "(opens in a new tab)" |
96
+
97
+ ## Markup for each state
98
+
99
+ ```html
100
+ <!-- Loading: keep the label, swap the icon for the spinner -->
101
+ <button class="bh-button bh-button-primary" type="button" aria-busy="true">
102
+ <svg aria-hidden="true" class="bh-button-spinner" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg>
103
+ Syncing…
104
+ </button>
105
+
106
+ <!-- Unavailable: the reason is the button's description, shown in a tooltip on hover and focus -->
107
+ <button class="bh-button bh-button-primary" type="button"
108
+ aria-disabled="true" aria-describedby="sync-why">Run sync</button>
109
+ <div role="tooltip" id="sync-why" hidden>Connect an online store first.</div>
110
+
111
+ <!-- Icon only -->
112
+ <button class="bh-button bh-button-subtle bh-button-icon" type="button"
113
+ aria-label="Sync now" title="Sync now">…icon…</button>
114
+ ```
115
+
116
+ The spinner is the Lucide `loader-circle` icon. `kit.css` turns it and shows it only once the wait passes `motion.wait.spinner` (300 ms), so quick actions don't flash it. Under reduced motion it turns more slowly but doesn't stop: it shows that work is running.
117
+
118
+ ## Design tokens
119
+
120
+ Button uses functional tokens plus four component tokens for the neutral hover, pressed and toggle-on fills (see the Style tab). All of them point to functional tokens, so a theme change reaches the button without extra work.
121
+
122
+ | Part | Tokens |
123
+ | --- | --- |
124
+ | Primary | `color.background.primary`, `.hover`, `.pressed`; `color.text.inverse` |
125
+ | Default | `color.surface`, `color.border`, `color.text`; `button.background.subtle.hover`, `.pressed`; `color.border.hover` |
126
+ | Subtle | transparent; `button.background.subtle.hover`, `.pressed` |
127
+ | Toggle on and open menu | `button.background.selected`, `button.border.selected`; `button.background.subtle.pressed` |
128
+ | Danger | `color.background.danger.bold`, `.hover`, `.pressed`; `color.text.on-bold` |
129
+ | Danger tone on subtle | `color.text.danger`; `color.background.danger.subtle.hover`, `.pressed` |
130
+ | Disabled and unavailable | `color.background.disabled`, `color.border.disabled`, `color.text.disabled` |
131
+ | Focus | `color.border.focus`, `border.width.focused`, `state.focus.offset` |
132
+ | Size | `size.control.small`, `.default`, `.large`; `space.control.x.small`, `space.control.x`, `space.control.x.large`; `space.control.gap`; `size.icon.default` |
133
+ | Shape and text | `radius.control`, `radius.control.small`; `border.width.default`; `font.label.default`, `font.label.small` |
134
+ | Motion | `motion.control` for colour changes |
135
+
136
+ ## Limitations
137
+
138
+ - Labels don't wrap. Keep them short instead.
139
+ - The related buttons are separate components: [icon button](/components/icon-button/usage/), [button group](/components/button-group/usage/), [menu button](/components/menu-button/usage/), [split button](/components/split-button/usage/), [toggle button](/components/toggle-button/usage/), [toolbar](/components/toolbar/usage/), [action bar](/components/action-bar/usage/) and [segmented control](/components/segmented-control/usage/).
@@ -1,40 +1,126 @@
1
1
  ---
2
+ description: Live buttons for every variant, size and state, with the exact Vue file that renders each one.
2
3
  ---
3
4
  import CodeExample from '../../../components/CodeExample.astro';
4
- import NativeControlsDemo from '../../../components/NativeControlsDemo.astro';
5
+ import ButtonEmphasis from '../../../../registry/beehexa/examples/button/en/ButtonEmphasis.vue';
6
+ import ButtonEmphasisSource from '../../../../registry/beehexa/examples/button/en/ButtonEmphasis.vue?raw';
7
+ import ButtonDanger from '../../../../registry/beehexa/examples/button/en/ButtonDanger.vue';
8
+ import ButtonDangerSource from '../../../../registry/beehexa/examples/button/en/ButtonDanger.vue?raw';
9
+ import ButtonSizes from '../../../../registry/beehexa/examples/button/en/ButtonSizes.vue';
10
+ import ButtonSizesSource from '../../../../registry/beehexa/examples/button/en/ButtonSizes.vue?raw';
11
+ import ButtonWithIcon from '../../../../registry/beehexa/examples/button/en/ButtonWithIcon.vue';
12
+ import ButtonWithIconSource from '../../../../registry/beehexa/examples/button/en/ButtonWithIcon.vue?raw';
13
+ import ButtonIconOnly from '../../../../registry/beehexa/examples/button/en/ButtonIconOnly.vue';
14
+ import ButtonIconOnlySource from '../../../../registry/beehexa/examples/button/en/ButtonIconOnly.vue?raw';
15
+ import ButtonLoading from '../../../../registry/beehexa/examples/button/en/ButtonLoading.vue';
16
+ import ButtonLoadingSource from '../../../../registry/beehexa/examples/button/en/ButtonLoading.vue?raw';
17
+ import ButtonUnavailable from '../../../../registry/beehexa/examples/button/en/ButtonUnavailable.vue';
18
+ import ButtonUnavailableSource from '../../../../registry/beehexa/examples/button/en/ButtonUnavailable.vue?raw';
19
+ import ButtonDisabled from '../../../../registry/beehexa/examples/button/en/ButtonDisabled.vue';
20
+ import ButtonDisabledSource from '../../../../registry/beehexa/examples/button/en/ButtonDisabled.vue?raw';
21
+ import ButtonFullWidth from '../../../../registry/beehexa/examples/button/en/ButtonFullWidth.vue';
22
+ import ButtonFullWidthSource from '../../../../registry/beehexa/examples/button/en/ButtonFullWidth.vue?raw';
23
+ import ButtonOrder from '../../../../registry/beehexa/examples/button/en/ButtonOrder.vue';
24
+ import ButtonOrderSource from '../../../../registry/beehexa/examples/button/en/ButtonOrder.vue?raw';
25
+ import ButtonAsLink from '../../../../registry/beehexa/examples/button/en/ButtonAsLink.vue';
26
+ import ButtonAsLinkSource from '../../../../registry/beehexa/examples/button/en/ButtonAsLink.vue?raw';
27
+ import ButtonLink from '../../../../registry/beehexa/examples/button/en/ButtonLink.vue';
28
+ import ButtonLinkSource from '../../../../registry/beehexa/examples/button/en/ButtonLink.vue?raw';
5
29
 
6
- ## Live native control family
30
+ Every example is a complete Vue file that uses the Beehexa Button for shadcn-vue, the same component as on the Code tab. Copy it into an app that has the registry installed, or open it in StackBlitz to edit it.
7
31
 
8
- <NativeControlsDemo />
32
+ ## Emphasis
9
33
 
10
- Real AntD components with the public source theme and CSS. Change the site's theme
11
- or language to inspect the family; keyboard focus, Dropdown, search, selection,
12
- clear filters and action details use real native behavior. The bordered language
13
- and icon-only utility controls share page-control geometry; account actions remain
14
- frameless deliberately.
34
+ One primary button for the main action, default buttons for the rest, subtle buttons where a border would add noise.
15
35
 
16
- The state matrix uses actual native default/primary/dashed/link/text/danger/
17
- ghost Buttons, native loading/disabled props, all three native sizes and a
18
- disabled native anchor. The activation counter exercises native blocking
19
- behavior; hover, pressed and keyboard focus are real interactions, not painted
20
- facsimiles. A dark primary is deliberately light; its resting lower shadow is
21
- not blue. The same live demo includes [read-only segmented Progress](/tools/ant-design-vue-theme/#read-only-segmented-native-progress)
22
- with editable real count, first/middle/final states and a native opt-out.
36
+ <CodeExample source={ButtonEmphasisSource} file="ButtonEmphasis.vue">
37
+ <ButtonEmphasis client:visible />
38
+ </CodeExample>
23
39
 
24
- ## Default
40
+ ## Danger
25
41
 
26
- <CodeExample lang="vue" code={`<a-button>Cancel</a-button>`} />
42
+ A danger button confirms an action that deletes data or can’t be undone. Inside a table row, use the danger tone on a subtle button.
27
43
 
28
- ## Primary
44
+ <CodeExample source={ButtonDangerSource} file="ButtonDanger.vue">
45
+ <ButtonDanger client:visible />
46
+ </CodeExample>
29
47
 
30
- Use one primary button for the main action on a screen.
48
+ ## Sizes
31
49
 
32
- <CodeExample lang="vue" code={`<a-button type="primary">Save changes</a-button>`} />
50
+ Match the height of the fields next to the button: small (24 px) in dense tables and toolbars, default (32 px) everywhere else, large (40 px) on sign-in and onboarding pages.
33
51
 
34
- ## Danger
52
+ <CodeExample source={ButtonSizesSource} file="ButtonSizes.vue">
53
+ <ButtonSizes client:visible />
54
+ </CodeExample>
55
+
56
+ ## With an icon
57
+
58
+ The icon goes before the label. A trailing icon is only for an external link or a menu chevron. Icons are decorative; Lucide marks them aria-hidden.
59
+
60
+ <CodeExample source={ButtonWithIconSource} file="ButtonWithIcon.vue">
61
+ <ButtonWithIcon client:visible />
62
+ </CodeExample>
63
+
64
+ ## Icon only
65
+
66
+ Square, with the same height as a button. The name goes in aria-label and also shows on hover and focus. Icon-only buttons in a row sit 12 px apart. See also [Icon button](/components/icon-button/usage/).
67
+
68
+ <CodeExample source={ButtonIconOnlySource} file="ButtonIconOnly.vue">
69
+ <ButtonIconOnly client:visible />
70
+ </CodeExample>
71
+
72
+ ## Loading
73
+
74
+ The button keeps its colours and its focus. After 300 ms a spinner takes the icon’s place, the label says what is happening, and clicks are ignored until the work ends.
75
+
76
+ <CodeExample source={ButtonLoadingSource} file="ButtonLoading.vue">
77
+ <ButtonLoading client:visible />
78
+ </CodeExample>
79
+
80
+ ## Unavailable, with the reason
81
+
82
+ When an action can’t run yet, keep the button focusable with aria-disabled and give the reason in a tooltip, as most design systems with a focusable disabled button do: all five we checked that document one put the reason in a tooltip, and none put a line of text under the button. Keyboard users reach it, and the tooltip opens on focus as well as on hover.
35
83
 
36
- <CodeExample lang="vue" code={`<a-button danger>Delete integration</a-button>`} />
84
+ <CodeExample source={ButtonUnavailableSource} file="ButtonUnavailable.vue">
85
+ <ButtonUnavailable client:visible />
86
+ </CodeExample>
37
87
 
38
88
  ## Disabled
39
89
 
40
- <CodeExample lang="vue" code={`<a-button type="primary" disabled>Save changes</a-button>`} />
90
+ Native disabled removes the button from the tab order. Use it only for a short wait the user already understands, such as while a form loads.
91
+
92
+ <CodeExample source={ButtonDisabledSource} file="ButtonDisabled.vue">
93
+ <ButtonDisabled client:visible />
94
+ </CodeExample>
95
+
96
+ ## Full width
97
+
98
+ For narrow panels and phone screens, such as the sign-in form.
99
+
100
+ <CodeExample source={ButtonFullWidthSource} file="ButtonFullWidth.vue">
101
+ <ButtonFullWidth client:visible />
102
+ </CodeExample>
103
+
104
+ ## Order in a dialog and on a page
105
+
106
+ In dialogs, drawers and wizard footers, buttons sit at the end and the primary button comes last. In a page form, they sit at the start and the primary button comes first.
107
+
108
+ <CodeExample source={ButtonOrderSource} file="ButtonOrder.vue">
109
+ <ButtonOrder client:visible />
110
+ </CodeExample>
111
+
112
+ ## A link that looks like a button
113
+
114
+ When the button goes to another page, render it as an a element with as="a". It keeps link behaviour: open in a new tab, copy the address.
115
+
116
+ <CodeExample source={ButtonAsLinkSource} file="ButtonAsLink.vue">
117
+ <ButtonAsLink client:visible />
118
+ </CodeExample>
119
+
120
+ ## Link
121
+
122
+ An action inside a sentence. Always underlined.
123
+
124
+ <CodeExample source={ButtonLinkSource} file="ButtonLink.vue">
125
+ <ButtonLink client:visible />
126
+ </CodeExample>
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "title": "Button",
3
3
  "description": "A button triggers an action or event, such as submitting a form or opening a dialog.",
4
- "group": "Actions"
4
+ "group": "Actions",
5
+ "vi": {
6
+ "title": "Nút",
7
+ "description": "Nút kích hoạt một thao tác, như gửi biểu mẫu hay mở hộp thoại."
8
+ }
5
9
  }