@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
@@ -71,9 +71,12 @@ this keeps keyboard/awaited confirmations above their live owner. Nested drawers
71
71
  `getAntDesignVueOverlayZIndex(fullscreen, ownerZIndex)` as `rootStyle.zIndex` so
72
72
  surface and mask move together; AntD4's `zIndex` prop styles only the content wrapper.
73
73
  Body-teleported fullscreen editors/images and fullscreen native Modals capture
74
- `getAntDesignVueFullscreenZIndex()` before mounting their root. This combines the
75
- fullscreen role with above-owner ordering; a fixed450 must not fall below a nested
76
- native Drawer451. Mark custom roots only once they are active, avoiding self-counting.
74
+ `getAntDesignVueFullscreenZIndex()` before mounting their root. This uses
75
+ `z-index.modal` with above-owner ordering, not a separate fullscreen tier.
76
+ Mark custom roots only once they are active, avoiding self-counting. The seven
77
+ approved tiers have no fullscreen450 or readiness650 token; blocking loading
78
+ also uses `z-index.modal`. Keep owner-relative ordering below
79
+ `z-index.tooltip` and `z-index.toast`; reserve `z-index.spotlight` for tours.
77
80
  Tour's inline native default also requires its public
78
81
  `zIndex` prop bound to `z-index.spotlight`.
79
82
 
@@ -165,9 +168,19 @@ The companion CSS provides opt-in native structural contracts, not application s
165
168
  width/height without repainting it. `data-bh-target="responsive"` applies the
166
169
  same target only for coarse pointers. Keep native type, size, disabled and
167
170
  keyboard semantics; no page-owned target sizing is needed.
168
- - The observed root can also be passed to `tokenPixels(name, locale, rootFontSize)`
169
- for actual Avatar/Image numeric props replacing scalable rem CSS. Child setup
170
- calls reuse the sole provider's readonly measurement, not another observer.
171
+ - Native Modal/Drawer close controls also use the root-scaled coarse-pointer
172
+ target. Closable Modal headers reserve the whole target height and center the
173
+ title beside it, so the close hit area never covers the first body control.
174
+ Modal titles reserve that native control's lane only when it is present;
175
+ short `closable=false` confirmations do not receive an empty title inset.
176
+ - A native Flex span inside Button remains a flex layout rather than inheriting
177
+ AntD4's ordinary inline text-span display. Keep semantic title/description
178
+ content separate through native composition, not another button wrapper.
179
+ - Pass the observed root to `tokenPixels(name, locale, rootFontSize)` for actual
180
+ Avatar/Image/Space/Row numeric props, including compact dock gaps. Omitting that
181
+ argument intentionally returns nominal16px-root pixels; it does not read the
182
+ browser's current root. Child setup calls reuse the sole provider's readonly
183
+ measurement, not another observer. Keep CSS dimensions on scalable source roles.
171
184
 
172
185
  Keep custom business data/slot meaning and host structure in the consumer, not
173
186
  presentation recipes. Do not recreate native selectors through per-page
@@ -180,40 +193,50 @@ presentation recipes. Do not recreate native selectors through per-page
180
193
  | `colorPrimary` | `color.background.neutral.bold` |
181
194
  | `colorText` | `color.text` |
182
195
  | `colorBorder` | `color.border` |
183
- | `borderRadius` | `radius.100` (8 px) |
184
- | `borderRadiusXS` / `borderRadiusSM` | `radius.025` (2 px) / `radius.050` (4 px) |
185
- | `borderRadiusLG` / `borderRadiusOuter` | `radius.150` (12 px) / `radius.075` (6 px) |
196
+ | `borderRadius` | `radius.control` (6 px) |
197
+ | `borderRadiusXS` / `borderRadiusSM` | `radius.025` (2 px) / `radius.control.small` (4 px) |
198
+ | `borderRadiusLG` / `borderRadiusOuter` | `radius.card` (8 px) / `radius.control` (6 px) |
186
199
  | `fontFamily` | `font.family.sans` |
187
200
 
188
- Use the complete [Radius role scale](/foundations/styles/radius/), not one radius
189
- for every component. Buttons, inputs and selects use `radius.050` (4 px) at
190
- small/default/large sizes, including explicit circle/round Button sizing. Menu
191
- frames/items, checkboxes, tags and badge counts also use 4 px. A Select popup is
192
- a separate surface and retains `radius.100` (8 px), as do Card/Popover/Tooltip/Alert.
193
- Modal/Drawer use `radius.150` (12 px). Groups with 4 px padding use
194
- 8 px outside and nested 4 px inside; groups with 8 px padding use 12 px outside
195
- and nested 4 px inside. `radius.200` (16 px) has no current component role.
196
- Full-width tables, joined Search edges
197
- and fullscreen surfaces remain square. `radius.full` is for avatars, switches
198
- and pill-shaped chips; true radio/status circles and graph geometry remain intact.
199
- `radius.025` (2 px) and `radius.075` (6 px) are nested parts, not control defaults.
200
- The adapter pins role-specific component aliases and the companion CSS closes
201
- fixed badge/Switch/Segmented/Drawer recipes. Consumers must remove competing
202
- corner overrides, not add `.ant-*` radius patches.
203
- Explicit Button `shape="circle"` / `shape="round"` props keep their native sizing,
204
- but the source companion still gives them the 4 px control corner. They are not
205
- avatar, Switch or pill-chip roles.
201
+ Use the [Radius roles](/foundations/styles/radius/), not one radius for every
202
+ component:
203
+
204
+ | Component | Radius token |
205
+ | --- | --- |
206
+ | Button, Input, Select trigger, Radio button, Segmented, side navigation item | `radius.control` (6 px) |
207
+ | 24 px controls | `radius.control.small` (4 px) |
208
+ | Items in a dropdown or submenu popup | `radius.item` (4 px) |
209
+ | Tooltip, tag, badge count | `radius.050` (4 px) |
210
+ | Checkbox | `radius.025` (2 px) |
211
+ | Card, Alert, Collapse, Tabs and other in-page containers | `radius.card` (8 px) |
212
+ | Dropdown, submenu popup, Select popup, Popover, Message, Notification | `radius.overlay` (8 px) |
213
+ | Modal, Drawer | `radius.modal` (12 px) |
214
+ | Avatar (circle), Switch, chip | `radius.pill` |
215
+ | Full-width table, joined Search edges, fullscreen surface | `radius.0` |
216
+
217
+ Groups with 4 px padding use 8 px outside; groups with 8 px padding use 12 px
218
+ outside. The adapter pins these component aliases and the companion CSS covers
219
+ the badge, Switch, Segmented and Drawer cases that have no theme input.
220
+ Consumers must remove competing corner overrides, not add `.ant-*` radius patches.
221
+ Explicit Button `shape="circle"` / `shape="round"` props keep their native sizing
222
+ and the `radius.control` corner. They are not avatar, Switch or chip roles.
206
223
 
207
224
  The adapter also pins semantic hover/pressed/disabled/link/status/selection/focus roles instead
208
225
  of allowing a framework-generated blue palette to leak through. Inputs, selects, checkboxes
209
226
  and radios use `color.border.bold` while cards/tables use `color.border`. Layout header and
210
- sider and mobile navigation drawer share `color.surface.subtle`; there is no separate shell palette or nested isolated
227
+ sider sit on `color.surface.page`, separated from the content by a `color.border` line; the mobile
228
+ navigation drawer is a drawer on `color.surface.overlay`. There is no separate shell palette or nested isolated
211
229
  theme. Use `font.body.default` for table data, `font.label.small` for headers/tags,
212
230
  `font.heading.medium` for modal titles and `font.heading.small` for drawer titles.
213
231
 
214
- Native Menu icons keep the source icon box and a `space.050` title gap. Title text
215
- uses `font.label.default` rather than the row-height line box, keeping Vietnamese
216
- labels and adjacent consumer-owned title/tag content vertically aligned.
232
+ Native Menu icons use the native `icon` slot, source icon box and a `space.050`
233
+ title gap. Do not rebuild the icon/label row in a Space with a page-specific gap.
234
+ Title text uses `font.label.default` rather than the row-height line box, keeping
235
+ Vietnamese labels and adjacent title/tag content vertically aligned.
236
+ Native Tree content keeps its icon and shrinkable title centered as one row.
237
+ If a custom title already includes its glyphs, leave `showIcon` off; AntD4 otherwise
238
+ reserves another empty icon box. Native selection, expansion and keyboard ownership
239
+ are unchanged. Apply required content roles to a semantic host, not AntD4 Flex.
217
240
 
218
241
  ### Ant Design Vue 4 component contracts
219
242
 
@@ -267,19 +290,64 @@ AntD4 supports only one shared thumb/label pair, no pressed track paint and no
267
290
  explicit disabled color pairs. Its spinner foreground and translucent green
268
291
  thumb shadow are also not configurable as paired parts. The companion CSS closes
269
292
  those evidenced gaps, while normal/hover track paint stays in native aliases.
270
- `opacityLoading: 1` removes native loading/disabled dimming; explicit opaque
271
- disabled roles remain distinct from enabled OFF. Loading retains the current
272
- normal checked pair and a high-contrast native spinner, including when both
293
+ `opacityLoading: 1` removes native loading/disabled dimming. Disabled ON uses
294
+ `color.background.neutral.bold.pressed` with inverse thumb/label; disabled OFF uses
295
+ the disabled track, subtle thumb/label and bold boundary. Native checked position,
296
+ disabled behavior and cursor remain unchanged; both values must be readable.
297
+ Loading retains the current normal checked pair and a high-contrast native spinner, including when both
273
298
  loading and disabled props are set. It never predicts or changes the saved value.
274
299
 
275
300
  Keep native controlled binding, `change` callback and keyboard operation. The
276
301
  native button is disabled during loading; pending/disabled activation must not
277
302
  save twice or update checked state. Business save operations and errors remain
278
- application-owned. See the [active interaction-state demo](/foundations/styles/interaction-states/#live-native-switch-states)
279
- for both sizes, OFF/ON loading and disabled states, EN/VI labels, visible callback
280
- counts and a delayed controlled-save example. No consumer `.ant-switch` patch,
303
+ application-owned. Test both sizes, OFF/ON loading and disabled states, EN/VI labels,
304
+ callback counts and a delayed controlled save. No consumer `.ant-switch` patch,
281
305
  palette literal or custom Switch implementation is necessary.
282
306
 
307
+ ### Contrast, links and native Segmented
308
+
309
+ The [Source contrast and link rules](/foundations/styles/color/accessibility/)
310
+ are authoritative for every text/label/tag and effective background in both themes.
311
+ Read-only IDs, titles, dependency names and status values must not use disabled
312
+ roles. Use paired semantic status text/fills, not arbitrary hue tags or inverse
313
+ text over subtle fills. Normal text requires 4.5:1, large text 3:1 and meaningful
314
+ boundaries 3:1 at rest, hover, pressed and selected states, including composites.
315
+
316
+ Anchors, Typography links, link Buttons and prose links have no underline by
317
+ default, including hover. `.bh-link-underline` is the sole explicit opt-in.
318
+ Keep `color.link`/`color.link.hover` and Source focus rings; never mute a link
319
+ into metadata. Ordinary prose/document links use Source semibold as a persistent
320
+ non-colour cue; explicitly opt an authored link into underlining when its
321
+ surrounding prose is already semibold. Navigation and native link Buttons keep
322
+ their existing component typography.
323
+
324
+ Use native Segmented through this same root provider and companion CSS. Source
325
+ removes the opaque `::after` label overlay and applies paired backgrounds directly
326
+ to stable item hover/pressed/selected-hover states. While AntD's native thumb is
327
+ present during motion, these opaque item fills are suppressed so they cannot
328
+ cover it. Native selection and keyboard behavior remain unchanged.
329
+ Never add consumer state paint or synthetic selected items.
330
+ The selected item and moving thumb use the native `boxShadow` alias for an inset
331
+ `border.width.default` / `color.border.bold` boundary that identifies selection
332
+ persistently without covering the label.
333
+ The [live native matrix](/foundations/styles/interaction-states/#live-native-switch-states)
334
+ includes all sizes, enabled/disabled and selected/unselected items for hover,
335
+ press, click and keyboard verification. Follow the
336
+ [spacing, truncation and motion invariants](/foundations/styles/interaction-states/#label-spacing-and-motion-invariants);
337
+ hover must never obscure text or be the only way to expose information.
338
+
339
+ Keep the size-specific native Segmented label `line-height`; do not apply a
340
+ font shorthand that resets it. The default toolbar Input, Segmented and Button
341
+ must share their native control center, including wrapped toolbar groups.
342
+ For metric rows, use headerless native Cards with `bh-ant-subgrid-card` in a
343
+ parent grid with two shared automatic rows. Compose label/icon first and
344
+ value/actions second, retaining native padding, source gaps and wrapping.
345
+ Use `bh-icon-slot` with `data-bh-size="responsive"` only for passive indicators
346
+ beside small responsive icon Buttons; it supplies matching geometry, not an action.
347
+ Do not position labels or icons with manual pixel offsets to compensate for a
348
+ native line-box or shared-row defect.
349
+
350
+
283
351
  ### Companion CSS and structural classes
284
352
 
285
353
  Use component tokens first. The package CSS fills actual AntD4 gaps: semantic label/header/title
@@ -299,7 +367,7 @@ These framework fixes are automatic, not per-page overrides.
299
367
 
300
368
  Native Search, Input addon buttons, compact InputGroup and horizontal Space.Compact
301
369
  share an intrinsic flex-stretched row: input and action top/bottom edges stay aligned,
302
- adjacent borders overlap once, exposed corners stay 4 px and touching corners stay zero.
370
+ adjacent borders overlap once, exposed corners use `radius.control` and touching corners stay zero.
303
371
  Source font roles are retained. Small Vietnamese fields/actions grow together to 26 px;
304
372
  do not clip accents or shrink type to force 24 px. Default actions share field
305
373
  error/warning/disabled borders; primary/danger actions retain their semantic roles.
@@ -322,10 +390,23 @@ For data inspection, bind `width="var(--bh-ant-overlay-width)"` and apply
322
390
  Add `bh-ant-inspection-modal--wide` / `bh-ant-inspection-drawer--wide` only for an explicit
323
391
  content-heavy variant. The variable selects `layout.overlay.default` / `.wide`, and `.mobile`
324
392
  below `breakpoint.lg`. Short confirmations and navigation drawers retain their own widths.
393
+ The Modal's `max-width: 100%` caps that width to its native scrolling wrap, which
394
+ excludes the vertical scrollbar. Do not replace the cap with `100vw` or hide
395
+ horizontal overflow: the mobile width token may fill the viewport, but the actual
396
+ Modal must still fit its available containing block.
325
397
  Fullscreen modes are Modal `wrapClassName="full-screen"` and Drawer
326
398
  `rootClassName="fullscreen"`; AntD4 Modal has no `rootClassName` prop. These preserve
327
399
  bounded scroll mechanics, not decoration.
328
400
 
401
+ ### Native field names
402
+
403
+ Bind a real `<label for="…">` to the native Select's explicit `id`, or use the
404
+ corresponding native Form Item label association. In AntD4, an `aria-label` on
405
+ Select can name its outer generic wrapper while leaving the actual combobox
406
+ unnamed. Check the combobox's accessible name and native label activation, not
407
+ just an attribute on a component root. Use Vue `useId()` plus a row identity for
408
+ repeated fields; do not add a wrapper or an attribute-copying observer.
409
+
329
410
  ### Verify the actual framework
330
411
 
331
412
  Exercise light/dark × English/Vietnamese with the real CSS imported: buttons and validated
@@ -368,7 +449,7 @@ These are Ant Design Vue’s own heights. The theme still sets each one from its
368
449
 
369
450
  ## Breakpoints
370
451
 
371
- **Override the `screen*` tokens with the Beehexa [breakpoints](/foundations/styles/layout/breakpoints/).** The default Ant Design Vue values are different (576, 992, 1200 and 1600 px).
452
+ **Override the `screen*` tokens with the Beehexa <a class="bh-link-underline" href="/foundations/styles/layout/breakpoints/">breakpoints</a>.** The default Ant Design Vue values are different (576, 992, 1200 and 1600 px).
372
453
 
373
454
  The `Min` and `Max` tokens are computed from the defaults, not from your overrides. Set them too: each `Max` is the next breakpoint minus 1.
374
455
 
@@ -440,6 +521,9 @@ replacement, a skin-only wrapper, or copying Card/Button geometry into the app.
440
521
 
441
522
  - Native Card's `hoverable` prop remains optional. `data-bh-selected="true"`
442
523
  adds a selected fill and independent inset cue; omitting it restores the base.
524
+ In a composed selectable Card, `data-bh-card-action="primary"` on the primary
525
+ native text Button retains `aria-pressed` and keyboard focus without duplicating
526
+ the outer Card's selected frame. Independent actions retain ordinary Button paint.
443
527
  - Reuse `bh-data-accent` with an existing semantic `data-bh-status`, `data-bh-band`,
444
528
  `data-bh-metric`, `data-bh-job-type` or `data-bh-priority` for an optional leading
445
529
  edge on a real Card. It adds no selection or hover behavior. A status/category
@@ -455,6 +539,14 @@ replacement, a skin-only wrapper, or copying Card/Button geometry into the app.
455
539
  height, paint or the surrounding responsive page-region layout.
456
540
  - `bh-card-link` on a real navigation anchor wrapping Card removes competing
457
541
  link paint/underline and supplies source keyboard focus, not Card skin.
542
+ - `bh-ant-card-action-row` uses the native Card title/extra slots with a shrinkable
543
+ leading track and reserved trailing action. Source head inset stays consistent
544
+ across Card sizes; the real link remains a flexible inline title/metadata row.
545
+ See [application content](/tools/application-content/#semantic-content-and-genuine-composition).
546
+ - `bh-ant-metric-tooltip` on a native Tooltip overlay and `bh-metric-tooltip`
547
+ on its semantic title-slot host separate date/header, metric definition list and
548
+ explanation. The token-backed readable width is capped by the viewport; native
549
+ popup placement, theme, keyboard and touch behavior stay with the actual owner.
458
550
 
459
551
  Business components may own data, state, behavior and meaningful composition of
460
552
  these primitives. Inventory and remove redundant replacement components and every
@@ -486,8 +578,8 @@ Actual identity Avatars stay native. Do not use brand hue as operational status.
486
578
 
487
579
  ### Native Image preview
488
580
 
489
- The official Image `zIndexPopupBase` and `zIndexPopup` tokens use the fullscreen
490
- band. That alone cannot clear an owner nested above it: AntD4.2.6 Preview drops
581
+ The official Image `zIndexPopupBase` and `zIndexPopup` tokens use `z-index.modal`.
582
+ That alone cannot clear an owner nested above it: AntD4.2.6 Preview drops
491
583
  both declared Dialog `zIndex` and `wrapProps`. The setup composable
492
584
  `useNativeImagePreviewContainer(labelGetter)` from
493
585
  `@beehexa/ant-design-vue-tokens/image` owns the official lazy body portal:
@@ -569,6 +661,7 @@ const progressSize = computed(() => getAntDesignVueStepProgressSize(rootFontSize
569
661
  :steps="props.total"
570
662
  :percent="props.index / props.total * 100"
571
663
  :size="progressSize"
664
+ status="normal"
572
665
  :stroke-color="getStatusColor('info', 'border', { dark: props.dark })"
573
666
  :show-info="false"
574
667
  aria-hidden="true"
@@ -582,6 +675,12 @@ business transitions. The helper supplies geometry only; native Progress
582
675
  owns the rendered count and active marks. Hide the redundant bar from assistive
583
676
  technology only when adjacent text already conveys the same progress.
584
677
 
678
+ For current-position feedback, explicitly set `status="normal"`: reaching the
679
+ last authored group does not mean the operation succeeded. Render failure or
680
+ completion status only from actual workflow evidence, independently of the
681
+ index. A one-group workflow still has one real mark; an absent/zero total has no
682
+ bar. Do not manufacture a denominator from screenshot geometry or API-step count.
683
+
585
684
  `bh-ant-step-progress` opts that native root into intrinsic inline width,
586
685
  zero native outer margins, the source `content.step-progress.gap` (4px at
587
686
  root16), and wrapping without a trailing item margin. CSS does not replace
@@ -599,7 +698,7 @@ For route-loading feedback use real native `Progress` with `bh-ant-navigation-pr
599
698
  `showInfo=false`, `status="normal"`, `strokeLinecap="square"` and its native size tuple.
600
699
  Use `border.width.focused` for the thin line and `color.brand.yellow` for its optional
601
700
  brand stroke. The application owns fixed viewport positioning at `top: 0`, width and
602
- the loading z-index; the adapter removes AntD's inline baseline gap and outer margins,
701
+ its layer from the seven [z-index](/foundations/styles/z-index/) tokens; the adapter removes AntD's inline baseline gap and outer margins,
603
702
  so the actual ink begins at the allocated top edge without negative offsets.
604
703
 
605
704
  Progress reflects completed navigation milestones, not invented network percentages.
@@ -621,7 +720,7 @@ and native Space: center it in the row rather than inventing a shell skin.
621
720
 
622
721
  Button small/default/large use source control heights24/32/40px at the nominal
623
722
  root; typography is label-small for small and label-default otherwise.
624
- Button/Input/Select and Menu frame corners use radius050; Select popup is100.
723
+ Button/Input/Select and side navigation items use `radius.control`; Select popups and menus use `radius.overlay`.
625
724
  The numeric theme/root observer and rem CSS scale together.
626
725
  AntD4 only inserts margin for `.anticon` siblings, not Lucide SVGs in `#icon`;
627
726
  the source supplies one space100 flex gap for all real Buttons and removes
@@ -662,12 +761,32 @@ danger text/on-bold pairs are the remaining native-token gaps; source CSS
662
761
  handles only those cases, excluding disabled controls and genuine selection.
663
762
  Apps must not add a local shadow/border reset or a focus suppression.
664
763
 
764
+ The compact native dock uses `bh-control-group` and `data-bh-variant="dock"`
765
+ on Space. Its neutral text-action paint excludes danger, ghost, real selected
766
+ toggles, loading controls and disabled anchors, so the same role/state contracts
767
+ still apply inside the dock. Open actions may use `aria-expanded`; genuine
768
+ toggles use `aria-pressed` and retain the selected fill plus structural indicator.
769
+ AntD4 href Buttons render anchors with a native `disabled` attribute, not the
770
+ `:disabled` pseudo-class or a generated disabled class. Native enabled hover/active
771
+ selectors still match those anchors. The companion recognises `[disabled]` and
772
+ `aria-disabled="true"` with sufficient native-state specificity: disabled text
773
+ stays disabled; fill/border roles match the native non-href Button for solid,
774
+ text/link, ghost and danger/ghost combinations. Set the native `disabled` prop, supply
775
+ `aria-disabled="true"` and `tabindex="-1"` for an unavailable href Button; native
776
+ AntD click handling blocks its navigation. ARIA or CSS alone never disables a
777
+ link. Do not manufacture AntD classes or replace genuine links with pointer-only
778
+ handlers.
779
+
665
780
  ### Live native state and progress matrix
666
781
 
667
782
  Use the site theme/language controls and browser root font preference.
668
783
  Change Button size, hover/hold a press, Tab/Enter/Space through available
669
784
  actions, and inspect actual activation counts. Loading/disabled Buttons and
670
- the disabled native anchor must not activate. Progress uses the same actual
785
+ genuine disabled href variants must not activate, including inside the compact dock.
786
+ Toggle its selected action and check danger hover/pressed without neutral repaint.
787
+ The long native Card title wraps independently of its extra action on mobile.
788
+ Switch examples include loading and disabled together; loading retains checked
789
+ paint and the spinner while callbacks stay blocked. Progress uses the same actual
671
790
  count/index for its opt-in and no-opt-in renderers.
672
791
 
673
792
  <NativeControlsDemo />
@@ -687,16 +806,25 @@ not an optional consumer override. Header extras remain available. Standard
687
806
  Timeline dots, tails and custom dots align to the first content line; wrapped
688
807
  event content stays in the native timeline column. Label/alternate/right
689
808
  timelines retain their distinct native alignment.
809
+ For event rows with inline native small Buttons, bind `data-bh-layout="actions"`
810
+ on the Timeline and center the native Flex row. This shares the first line's
811
+ allocation with `size.control.small` (or `size.target.touch` on coarse pointers),
812
+ so the dot/tail do not stay above text beside a taller touch action. Plain text
813
+ timelines keep their normal source line box. AntD4 Timeline exposes no component
814
+ sizing token; this bounded composition does not change label/right/alternate modes.
690
815
 
691
816
  AntD4 Flex does not forward arbitrary `role`, `aria-*`, `data-*` or DOM listeners.
692
817
  Do not put required semantics, source opt-ins or keyboard handlers on it. Use
693
818
  native Space/Typography where appropriate, or retain a real semantic host with
694
819
  minimal structural flex/grid CSS. Do not introduce a forwarding wrapper.
695
820
 
696
- Use `bh-content-toolbar` and `bh-content-toolbar__group` on actual toolbar hosts;
697
- the source owns spacing, padding, wrapping and mobile control minimums. These
698
- recipes apply to editor/diagram/graph controls, not page-specific skins.
699
- Keep the host and its flex children shrinkable with `min-width: 0`.
821
+ Use `bh-content-toolbar` and `bh-content-toolbar__group` on actual intrinsic
822
+ text-editor toolbar hosts; the source owns spacing, padding, wrapping and mobile
823
+ control minimums. Graph navigation instead uses the compact Source dock floating
824
+ inside its drawing viewport, default lower-left, never a full-width header band.
825
+ Follow the [canvas dock contract](/tools/mermaid/#shared-drawing-viewport-and-dock)
826
+ without copying graph-only actions to text editors. These are shared recipes,
827
+ not page-specific skins. Keep hosts and flex children shrinkable with `min-width: 0`.
700
828
 
701
829
  Bind `bh-ant-fill-spin` through Spin's **wrapperClassName**, not its class:
702
830
  the nested-loading wrapper carries the bounded height. Drawer fill/flush modes
@@ -27,12 +27,12 @@ actual brand asset and aspect ratio; use neutral native Tag/Avatar/Image anatomy
27
27
  Do not hash names into a palette or recolor identities as success/warning/danger.
28
28
  Operational status, selection and keyboard focus are independent meanings.
29
29
 
30
- | Content part | Source role (nominal16px root) |
30
+ | Content part | Source role (nominal 16 px root) |
31
31
  |---|---|
32
- | Connector/partner brand image height; intrinsic width | `content.partner-logo.image-size`28px |
33
- | Person or permission-member avatar | `content.avatar.size`40px |
34
- | System/provider frame / contained glyph | `content.identity-mark.size`44px / `image-size`24px |
35
- | Empty-state illustration container | `content.empty-illustration.size`96px |
32
+ | Connector/partner brand image height; intrinsic width | `content.partner-logo.image-size` 24px |
33
+ | Person or permission-member avatar | `content.avatar.size` 32px |
34
+ | System/provider frame / contained glyph | `content.identity-mark.size` 44px / `image-size` 24px |
35
+ | Empty-state illustration container | `content.empty-illustration.size` 96px |
36
36
 
37
37
  Use real native Image for connector/partner brands: `:preview="false"`,
38
38
  `:height="tokenPixels('content.partner-logo.image-size', locale, root)"`,
@@ -96,14 +96,17 @@ The remaining source opt-ins have bounded purposes:
96
96
  control row; ordinary text-editor headers stay separate.
97
97
  - `bh-ant-card-action-row` extends a real native header-only Card: leading title
98
98
  and metadata share one flexible inline row; wrap only when they cannot fit.
99
- The native `extra` slot keeps the independent trailing action boundary.
100
- Stretch the Card/head in the actual grid or native column so native centered
101
- actions align within each row even when names wrap or a Card has no logos.
102
- Source adds `space.200` block inset: AntD4's ordinary one-line head has only a
103
- minimum height, not block padding. The real RouterLink uses `space.100` gap,
104
- `bh-card-link__title` on the flexible name and `bh-card-link__metadata` on its
105
- optional native metadata Flex. Do not force title and logos into grid rows,
106
- fix Card heights, hide metadata, insert fillers or add per-card offsets.
99
+ The native head wrapper has two tracks: `minmax(0, 1fr)` for title/metadata and
100
+ a nonshrinking trailing `extra` action. This grid is **not** applied to the link:
101
+ title and logos remain inline/flexible. Both axes of the head use `space.200`
102
+ inset, including small native Cards; action ends therefore align independently
103
+ of title, logo or badge widths. The action track is at least the default control
104
+ target (touch target on coarse pointers), vertically centered.
105
+ Stretch the Card/head in the actual grid or native column when row heights
106
+ should match. The real RouterLink uses `space.100` gap,
107
+ `bh-card-link__title` on the shrinkable/wrapping name and
108
+ `bh-card-link__metadata` on its optional wrapping metadata Flex.
109
+ Do not fix Card heights, hide metadata, insert fillers or add per-card offsets.
107
110
  Put a real RouterLink with `bh-card-link` in `title`; optional noninteractive
108
111
  metadata stays inside that link. Source extends its click/focus area across
109
112
  the Card; native Buttons/dropdowns remain independent siblings in `extra`,
@@ -131,6 +134,39 @@ outline. Omit an optional variant to recover the configured native base. Disable
131
134
  activation is native/business behavior, never a CSS substitute. Charts and severity
132
135
  follow [data-visualization roles](/foundations/styles/data-visualization/).
133
136
 
137
+ ### Selection belongs to the Card
138
+
139
+ A selected composed Card binds `data-bh-selected` on the actual native Card.
140
+ Its primary title action may retain meaningful `aria-pressed` while opting into
141
+ `data-bh-card-action="primary"` on a native text Button. The Card owns selected
142
+ fill/frame; this Button does not draw a second selected border or inset stripe.
143
+ It retains ordinary hover/press feedback and native Enter/Space activation.
144
+ Keyboard focus remains visible on the Button and outside the containing Card.
145
+ Other actions, including independent filter toggles, keep normal Button states.
146
+ Do not replace `aria-pressed` with `aria-current` merely to avoid selected paint,
147
+ or turn a Card containing Buttons into another `role="button"`.
148
+
149
+ ### Structured date and metric Tooltips
150
+
151
+ Use the native Tooltip `title` slot and
152
+ `overlay-class-name="bh-ant-metric-tooltip"`. Inside it, a semantic
153
+ `div.bh-metric-tooltip` contains a `strong` date/header followed by a `dl` of
154
+ alternating `dt` labels and `dd` values. Optional explanation follows the list.
155
+ The Source column composition keeps the date separate from metric columns;
156
+ the shared definition-list grid wraps labels at words and end-aligns unbroken
157
+ tabular values. It does not split labels into one-character columns.
158
+
159
+ `content.tooltip.metric-max-inline-size` is a maximum (28rem), not a fixed width.
160
+ The native popup also keeps `space.200` viewport insets, uses canonical Tooltip
161
+ `space.050`/`space.075` padding and `space.100` content/row gaps, and retains its
162
+ inverse text/surface pair. This opt-in never broadens ordinary text Tooltips.
163
+ Keep native placement/overflow adjustment and the owner's popup container.
164
+ Use hover and keyboard focus; for plotted SVG marks preserve the equivalent
165
+ accessible numeric summary, focus/Escape dismissal and real touch selection.
166
+ If a controlled popup must stay open while hovered, put its listeners on the
167
+ real semantic content host: AntD4 Flex drops arbitrary listeners.
168
+
169
+
134
170
  ## Measured resize and gesture capabilities
135
171
 
136
172
  Use `ResizablePanel` from `@beehexa/vue-components` for resizable two-pane
@@ -157,6 +193,9 @@ not item geometry, order or lifecycle. `bh-drag-surface` is only for an existing
157
193
  owned direct-manipulation gesture, never scroll-only content.
158
194
 
159
195
  `bh-height-transition` owns measured-height motion and reduced-motion behavior.
196
+ For a measured `min-height`, use the public selector
197
+ `.bh-height-transition[data-bh-property='min-height']`; retain the measured
198
+ property rather than substituting fixed height or a consumer transition rule.
160
199
  Its explicit `--bh-height-transition-duration` parameter preserves an existing
161
200
  public duration prop; measurement/release timers must use that same duration.
162
201
  `bh-content-reveal` is readiness opacity, with `data-bh-ready="true"`; it changes
@@ -16,7 +16,7 @@ Inserted lines use `editor.diff.inserted.background` with the inserted `text` an
16
16
 
17
17
  ## Numeric framework APIs
18
18
 
19
- Monaco and similar frameworks require resolved values, not CSS `var()` strings. Use the public `tokenPixels(name, locale)` export from `@beehexa/design-tokens` at numeric framework boundaries. It resolves Vietnamese dimension alternatives and converts `rem` to nominal pixels using the source 16 px reference. This conversion is independent of the CSS entrypoint: normal `/css` remains scalable with the reader's root setting, and neither the helper nor the editor adapter changes that setting. Do not copy a downstream token table. `editor.font.family`, `.size`, `.lineHeight` and `.weight` carry the complete `font.code.default` recipe (14/20, Vietnamese 14/24). Configure all four, not just font size. Preserve legitimate editor settings such as read-only, wrapping, language workers, cancellation and diff layout.
19
+ Monaco and similar frameworks require resolved values, not CSS `var()` strings. Use `tokenPixels(name, locale, observedRootFontSize)` at numeric framework boundaries and reuse `useAntDesignVueRootFontSize()` from the existing Source provider. The nominal16px default is not a reader-root override. Do not copy a downstream token table. `editor.font.family`, `.size`, `.lineHeight` and `.weight` carry the complete `font.code.default` recipe (nominal14/20, Vietnamese14/24); configure all four. Preserve read-only, wrapping, language workers, cancellation and diff layout.
20
20
 
21
21
  ## Public editor companion
22
22
 
@@ -25,25 +25,37 @@ companion subpath for embedded content and editors; it is not a sixth package.
25
25
  Import the package's `styles.css` once alongside token CSS.
26
26
 
27
27
  ```ts
28
+ import { computed } from 'vue'
29
+ import { useI18n } from 'vue-i18n'
30
+ import { useAntDesignVueRootFontSize } from '@beehexa/ant-design-vue-tokens'
28
31
  import {
29
32
  beehexaEditorOptions,
30
33
  registerBeehexaMonacoThemes,
34
+ useBeehexaMonacoDiffOptions,
31
35
  } from '@beehexa/ant-design-vue-tokens/editor'
32
36
 
33
37
  // Use the runtime returned by the application's existing lazy editor loader.
34
38
  registerBeehexaMonacoThemes(monaco)
35
- const options = {
36
- ...beehexaEditorOptions(locale),
37
- theme: dark ? 'beehexa-dark' : 'beehexa-light',
39
+ const { locale } = useI18n()
40
+ const rootFontSize = useAntDesignVueRootFontSize()
41
+ const options = computed(() => ({
42
+ ...beehexaEditorOptions(locale.value, rootFontSize.value),
38
43
  readOnly: true,
39
- }
44
+ }))
45
+ const onDiffEditorMount = useBeehexaMonacoDiffOptions(options)
46
+ // Bind options, the registered theme and @editor-did-mount to the real DiffEditor.
40
47
  ```
41
48
 
42
- `beehexaEditorOptions(locale = 'en')` returns the complete code font recipe;
43
- Vietnamese locale tags such as `vi` and `vi-VN` select its taller line height.
44
- Apply the returned options again when locale changes. The four font fields form
45
- the exported `BeehexaEditorOptions` structural subset of Monaco's official
46
- construction options, not a replacement for its full option type.
49
+ `beehexaEditorOptions(locale = 'en', rootFontSize = 16)` returns the complete code
50
+ font and scrollbar options. Vietnamese locale tags such as `vi` and `vi-VN`
51
+ select taller leading. Reapply options when locale or the observed root changes.
52
+ `useBeehexaMonacoDiffOptions(options)` bridges the missing options watcher in
53
+ `monaco-editor-vue3` DiffEditor. Create it in setup and bind the returned callback
54
+ to each real `editor-did-mount`; it applies current options at mount and to all
55
+ retained instances on change. Native disposal removes instances and the Vue
56
+ scope clears the binding. Models, selection, scroll and native ownership remain
57
+ unchanged. The exported `BeehexaEditorOptions` is a structural subset of Monaco's
58
+ official construction options, not a replacement for its full option type.
47
59
 
48
60
  `registerBeehexaMonacoThemes(runtime)` defines exactly `beehexa-light` and
49
61
  `beehexa-dark`, including syntax, gutter, selection, diff, input, completion,
@@ -91,22 +103,18 @@ containers use the same editor canvas so their padded frame remains paired too.
91
103
  Syntax names language constructs; operational severity, priority, status and data
92
104
  visualization meanings remain separate and retain textual cues.
93
105
 
94
- Image inspection uses `.bh-content-image` for `radius.100`; set
95
- `data-bh-zoomable="true"` only when an actual click handler opens inspection,
96
- which supplies the source zoom-in cursor. `.bh-content-image--fullscreen`
97
- adds the overlay shadow and a default image cursor. `.bh-content-fullscreen`
98
- provides the single scrim layer and zoom-out cursor for its click-to-close gesture.
99
- Keep the image's propagation stop so clicking the image does not close inspection.
100
- Image/copy/fullscreen buttons use
101
- `.bh-content-action` from the package's interaction companion and
102
- `data-bh-copied="true"` for a successful-copy icon cue. Keep an accessible copied
103
- announcement or label; color alone is insufficient. `.bh-content-error` provides
104
- the semantic danger text/surface/frame for an explicit content-render failure.
105
-
106
- `.bh-content-skeleton` from the interaction companion supplies the neutral
107
- `color.skeleton` fill and `radius.100` for custom loading placeholders. The host
108
- retains the represented content's geometry and loading announcement; a placeholder
109
- is not an interactive control and must not communicate a status outcome through color.
106
+ Inline images use `.bh-content-image` for `radius.100`; set
107
+ `data-bh-zoomable="true"` only when a real action opens inspection. Use the
108
+ framework's native Image preview for the inspection overlay, controls, keyboard
109
+ dismissal and focus return rather than adding a second fullscreen scrim.
110
+
111
+ Image, copy and fullscreen actions use native Button APIs and icon slots.
112
+ Preserve accessible names and copied announcements; a Source semantic success
113
+ icon may supplement the announcement but color alone is insufficient.
114
+ Explicit render failures use native Alert, and loading states use native
115
+ Skeleton/Spin APIs. Allocate the represented content's geometry and retain its
116
+ loading announcement; a placeholder is not an interactive control or a
117
+ status outcome.
110
118
 
111
119
  ## Allocated interactive renderer viewports
112
120
 
@@ -245,7 +253,7 @@ do not reintroduce local table paint. Reuse native source-configured Table for
245
253
  sorting, filtering, pagination or row-selection interactions.
246
254
 
247
255
  `.bh-content-highlight` pairs `background.brand.bold` with `text.on-brand`,
248
- zero padding and `radius.00` for an in-place search match. The matched text stays
256
+ zero padding and `radius.0` for an in-place search match. The matched text stays
249
257
  real text and search navigation retains its accessible current-match indication.
250
258
  `.bh-app` on `body` opts into `body.default`, `text` and `surface.page` without
251
259
  setting root font size, margins or page geometry.
@@ -268,4 +276,4 @@ The component owns pointer capture/cancellation, local editor/iframe drag shield
268
276
 
269
277
  ## Fullscreen and popup ordering
270
278
 
271
- Fullscreen editors, code viewers and image inspection use `z-index.fullscreen` (450) with isolation. Monaco completion, hover and parameter-hint widgets use `z-index.tooltip` (600); ordinary in-page popups keep framework layers inside their owner via the adapter's contextual container. Mark custom fullscreen hosts with `data-bh-overlay-owner`. Native confirmations resolve invocation-time ordering through `getAntDesignVueModalZIndex`, and nested drawers use `getAntDesignVueOverlayZIndex` with their live owner layer. Blocking global loading uses `z-index.loading` (650), below always-visible toast feedback (700). See [Z-index](/foundations/styles/z-index/) for the complete ordering. Avoid a new local z-index scale or a glass effect; custom fullscreen surfaces use semantic surfaces and image inspection uses one `color.surface.scrim` layer. Layering does not replace focus containment, Escape handling, focus return, scroll locking or reachable controls.
279
+ Fullscreen editors, code viewers and image inspection use `z-index.modal` (400) with isolation, like dialogs and drawers. Monaco completion, hover and parameter-hint widgets use `z-index.tooltip` (600); ordinary in-page popups keep framework layers inside their owner via the adapter's contextual container. Mark custom fullscreen hosts with `data-bh-overlay-owner`. Native confirmations resolve invocation-time ordering through `getAntDesignVueModalZIndex`, and nested drawers use `getAntDesignVueOverlayZIndex` with their live owner layer. Blocking global loading covers the page like a dialog, so it uses `z-index.modal` (400); toast feedback (700) stays on top. See [Z-index](/foundations/styles/z-index/) for the complete ordering. Avoid a new local z-index scale or a glass effect; custom fullscreen surfaces use semantic surfaces and image inspection uses one `color.surface.scrim` layer. Layering does not replace focus containment, Escape handling, focus return, scroll locking or reachable controls.