@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.
- package/README.md +1 -1
- package/dist/AGENTS.md +1 -1
- package/dist/catalog.json +3053 -777
- package/dist/docs/public/_redirects +2 -2
- package/dist/docs/public/r/action-bar.json +26 -0
- package/dist/docs/public/r/beehexa-theme.json +18 -0
- package/dist/docs/public/r/button-group.json +26 -0
- package/dist/docs/public/r/button.json +28 -0
- package/dist/docs/public/r/copy-button.json +26 -0
- package/dist/docs/public/r/dropdown-menu.json +56 -0
- package/dist/docs/public/r/index.json +66 -0
- package/dist/docs/public/r/segmented-control.json +31 -0
- package/dist/docs/public/r/toggle.json +26 -0
- package/dist/docs/public/r/toolbar.json +46 -0
- package/dist/docs/public/r/tooltip.json +41 -0
- package/dist/docs/scripts/color-pairs.mjs +2 -0
- package/dist/docs/src/components/ChildPages.astro +8 -1
- package/dist/docs/src/components/CodeExample.astro +123 -6
- package/dist/docs/src/components/ColorDemo.astro +21 -18
- package/dist/docs/src/components/ComponentTabs.astro +1 -1
- package/dist/docs/src/components/DocsFooter.astro +1 -1
- package/dist/docs/src/components/ElevationDemo.astro +2 -2
- package/dist/docs/src/components/HelpOptions.astro +8 -6
- package/dist/docs/src/components/IconBrowser.astro +2 -2
- package/dist/docs/src/components/LayoutDemo.astro +178 -99
- package/dist/docs/src/components/NativeControlsDemo.astro +169 -44
- package/dist/docs/src/components/NativeFlowDemo.astro +206 -0
- package/dist/docs/src/components/PhaseTable.astro +9 -5
- package/dist/docs/src/components/RoleGuides.astro +30 -22
- package/dist/docs/src/components/RuleDemo.astro +111 -0
- package/dist/docs/src/components/ShapeDemo.astro +25 -37
- package/dist/docs/src/components/SiteHeader.astro +1 -1
- package/dist/docs/src/components/SpacingDemo.astro +5 -3
- package/dist/docs/src/components/SwitchToggle.astro +13 -0
- package/dist/docs/src/components/SystemAreas.astro +9 -6
- package/dist/docs/src/components/TableOfContents.astro +1 -1
- package/dist/docs/src/components/TokenSearch.astro +64 -0
- package/dist/docs/src/components/TokenTable.astro +14 -9
- package/dist/docs/src/components/TypeDemo.astro +1 -1
- package/dist/docs/src/components/logos/LogoClearSpace.astro +1 -1
- package/dist/docs/src/content/components/action-bar/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/action-bar/changelog.mdx +7 -0
- package/dist/docs/src/content/components/action-bar/code.mdx +69 -0
- package/dist/docs/src/content/components/action-bar/examples.mdx +16 -0
- package/dist/docs/src/content/components/action-bar/meta.json +9 -0
- package/dist/docs/src/content/components/action-bar/style.mdx +13 -0
- package/dist/docs/src/content/components/action-bar/usage.mdx +35 -0
- package/dist/docs/src/content/components/button/accessibility.mdx +10 -5
- package/dist/docs/src/content/components/button/changelog.mdx +26 -1
- package/dist/docs/src/content/components/button/code.mdx +130 -25
- package/dist/docs/src/content/components/button/examples.mdx +109 -23
- package/dist/docs/src/content/components/button/meta.json +5 -1
- package/dist/docs/src/content/components/button/style.mdx +72 -0
- package/dist/docs/src/content/components/button/usage.mdx +118 -29
- package/dist/docs/src/content/components/button-group/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/button-group/changelog.mdx +7 -0
- package/dist/docs/src/content/components/button-group/code.mdx +39 -0
- package/dist/docs/src/content/components/button-group/examples.mdx +36 -0
- package/dist/docs/src/content/components/button-group/meta.json +9 -0
- package/dist/docs/src/content/components/button-group/style.mdx +12 -0
- package/dist/docs/src/content/components/button-group/usage.mdx +31 -0
- package/dist/docs/src/content/components/icon-button/accessibility.mdx +35 -0
- package/dist/docs/src/content/components/icon-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/icon-button/code.mdx +66 -0
- package/dist/docs/src/content/components/icon-button/examples.mdx +46 -0
- package/dist/docs/src/content/components/icon-button/meta.json +9 -0
- package/dist/docs/src/content/components/icon-button/style.mdx +13 -0
- package/dist/docs/src/content/components/icon-button/usage.mdx +42 -0
- package/dist/docs/src/content/components/menu-button/accessibility.mdx +36 -0
- package/dist/docs/src/content/components/menu-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/menu-button/code.mdx +55 -0
- package/dist/docs/src/content/components/menu-button/examples.mdx +26 -0
- package/dist/docs/src/content/components/menu-button/meta.json +9 -0
- package/dist/docs/src/content/components/menu-button/style.mdx +15 -0
- package/dist/docs/src/content/components/menu-button/usage.mdx +44 -0
- package/dist/docs/src/content/components/resizable-panel/meta.json +5 -1
- package/dist/docs/src/content/{foundations/styles/scrollbars.mdx → components/scrollbar/code.mdx} +20 -39
- package/dist/docs/src/content/components/scrollbar/meta.json +9 -0
- package/dist/docs/src/content/components/scrollbar/usage.mdx +36 -0
- package/dist/docs/src/content/components/segmented-control/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/segmented-control/changelog.mdx +7 -0
- package/dist/docs/src/content/components/segmented-control/code.mdx +46 -0
- package/dist/docs/src/content/components/segmented-control/examples.mdx +26 -0
- package/dist/docs/src/content/components/segmented-control/meta.json +9 -0
- package/dist/docs/src/content/components/segmented-control/style.mdx +13 -0
- package/dist/docs/src/content/components/segmented-control/usage.mdx +38 -0
- package/dist/docs/src/content/components/split-button/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/split-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/split-button/code.mdx +57 -0
- package/dist/docs/src/content/components/split-button/examples.mdx +26 -0
- package/dist/docs/src/content/components/split-button/meta.json +9 -0
- package/dist/docs/src/content/components/split-button/style.mdx +12 -0
- package/dist/docs/src/content/components/split-button/usage.mdx +28 -0
- package/dist/docs/src/content/components/switch/accessibility.mdx +28 -0
- package/dist/docs/src/content/components/switch/examples.mdx +35 -0
- package/dist/docs/src/content/components/switch/meta.json +9 -0
- package/dist/docs/src/content/components/switch/usage.mdx +44 -0
- package/dist/docs/src/content/components/toggle-button/accessibility.mdx +31 -0
- package/dist/docs/src/content/components/toggle-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/toggle-button/code.mdx +45 -0
- package/dist/docs/src/content/components/toggle-button/examples.mdx +36 -0
- package/dist/docs/src/content/components/toggle-button/meta.json +9 -0
- package/dist/docs/src/content/components/toggle-button/style.mdx +11 -0
- package/dist/docs/src/content/components/toggle-button/usage.mdx +33 -0
- package/dist/docs/src/content/components/toolbar/accessibility.mdx +33 -0
- package/dist/docs/src/content/components/toolbar/changelog.mdx +7 -0
- package/dist/docs/src/content/components/toolbar/code.mdx +81 -0
- package/dist/docs/src/content/components/toolbar/examples.mdx +16 -0
- package/dist/docs/src/content/components/toolbar/meta.json +9 -0
- package/dist/docs/src/content/components/toolbar/style.mdx +12 -0
- package/dist/docs/src/content/components/toolbar/usage.mdx +36 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +4 -2
- package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +1 -1
- package/dist/docs/src/content/foundations/guidelines/content/messages.mdx +67 -0
- package/dist/docs/src/content/foundations/guidelines/content/numbers-dates-and-currency.mdx +72 -0
- package/dist/docs/src/content/foundations/guidelines/content/style-and-grammar.mdx +92 -0
- package/dist/docs/src/content/foundations/guidelines/content/terms.mdx +57 -0
- package/dist/docs/src/content/foundations/guidelines/content/voice-and-tone.mdx +48 -0
- package/dist/docs/src/content/foundations/guidelines/content.mdx +22 -17
- package/dist/docs/src/content/foundations/styles/border.mdx +1 -6
- package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +66 -6
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +5 -5
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +2 -78
- package/dist/docs/src/content/foundations/styles/elevation.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/code.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/library.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/usage.mdx +0 -3
- package/dist/docs/src/content/foundations/styles/interaction-states.mdx +13 -69
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +4 -9
- package/dist/docs/src/content/foundations/styles/layout/grid.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +3 -0
- package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/motion.mdx +3 -1
- package/dist/docs/src/content/foundations/styles/radius.mdx +32 -28
- package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -6
- package/dist/docs/src/content/foundations/styles/spacing.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/typography/usage.mdx +7 -0
- package/dist/docs/src/content/foundations/styles/z-index.mdx +3 -16
- package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +51 -2
- package/dist/docs/src/content/foundations/tokens/index.mdx +91 -6
- package/dist/docs/src/content/get-started/content.mdx +25 -3
- package/dist/docs/src/content/get-started/design.mdx +34 -15
- package/dist/docs/src/content/get-started/develop.mdx +83 -28
- package/dist/docs/src/content/get-started/get-help.mdx +21 -5
- package/dist/docs/src/content/get-started/index.mdx +11 -12
- package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +176 -48
- package/dist/docs/src/content/tools/application-content.mdx +52 -13
- package/dist/docs/src/content/tools/editors.mdx +36 -28
- package/dist/docs/src/content/tools/mermaid.mdx +42 -9
- package/dist/docs/src/content/tools/vueflow.mdx +199 -60
- package/dist/docs/src/content-vi/components/action-bar/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/action-bar/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/action-bar/code.mdx +69 -0
- package/dist/docs/src/content-vi/components/action-bar/examples.mdx +16 -0
- package/dist/docs/src/content-vi/components/action-bar/style.mdx +13 -0
- package/dist/docs/src/content-vi/components/action-bar/usage.mdx +35 -0
- package/dist/docs/src/content-vi/components/button/accessibility.mdx +56 -0
- package/dist/docs/src/content-vi/components/button/changelog.mdx +31 -0
- package/dist/docs/src/content-vi/components/button/code.mdx +139 -0
- package/dist/docs/src/content-vi/components/button/examples.mdx +126 -0
- package/dist/docs/src/content-vi/components/button/style.mdx +72 -0
- package/dist/docs/src/content-vi/components/button/usage.mdx +133 -0
- package/dist/docs/src/content-vi/components/button-group/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/button-group/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/button-group/code.mdx +39 -0
- package/dist/docs/src/content-vi/components/button-group/examples.mdx +36 -0
- package/dist/docs/src/content-vi/components/button-group/style.mdx +12 -0
- package/dist/docs/src/content-vi/components/button-group/usage.mdx +31 -0
- package/dist/docs/src/content-vi/components/icon-button/accessibility.mdx +35 -0
- package/dist/docs/src/content-vi/components/icon-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/icon-button/code.mdx +66 -0
- package/dist/docs/src/content-vi/components/icon-button/examples.mdx +46 -0
- package/dist/docs/src/content-vi/components/icon-button/style.mdx +13 -0
- package/dist/docs/src/content-vi/components/icon-button/usage.mdx +42 -0
- package/dist/docs/src/content-vi/components/menu-button/accessibility.mdx +36 -0
- package/dist/docs/src/content-vi/components/menu-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/menu-button/code.mdx +55 -0
- package/dist/docs/src/content-vi/components/menu-button/examples.mdx +26 -0
- package/dist/docs/src/content-vi/components/menu-button/style.mdx +15 -0
- package/dist/docs/src/content-vi/components/menu-button/usage.mdx +44 -0
- package/dist/docs/src/content-vi/components/resizable-panel/accessibility.mdx +58 -0
- package/dist/docs/src/content-vi/components/resizable-panel/changelog.mdx +20 -0
- package/dist/docs/src/content-vi/components/resizable-panel/code.mdx +78 -0
- package/dist/docs/src/content-vi/components/resizable-panel/examples.mdx +83 -0
- package/dist/docs/src/content-vi/components/resizable-panel/usage.mdx +97 -0
- package/dist/docs/src/content-vi/components/scrollbar/code.mdx +71 -0
- package/dist/docs/src/content-vi/components/scrollbar/usage.mdx +36 -0
- package/dist/docs/src/content-vi/components/segmented-control/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/segmented-control/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/segmented-control/code.mdx +46 -0
- package/dist/docs/src/content-vi/components/segmented-control/examples.mdx +26 -0
- package/dist/docs/src/content-vi/components/segmented-control/style.mdx +13 -0
- package/dist/docs/src/content-vi/components/segmented-control/usage.mdx +38 -0
- package/dist/docs/src/content-vi/components/split-button/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/split-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/split-button/code.mdx +57 -0
- package/dist/docs/src/content-vi/components/split-button/examples.mdx +26 -0
- package/dist/docs/src/content-vi/components/split-button/style.mdx +12 -0
- package/dist/docs/src/content-vi/components/split-button/usage.mdx +28 -0
- package/dist/docs/src/content-vi/components/switch/accessibility.mdx +28 -0
- package/dist/docs/src/content-vi/components/switch/examples.mdx +35 -0
- package/dist/docs/src/content-vi/components/switch/usage.mdx +44 -0
- package/dist/docs/src/content-vi/components/toggle-button/accessibility.mdx +31 -0
- package/dist/docs/src/content-vi/components/toggle-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/toggle-button/code.mdx +45 -0
- package/dist/docs/src/content-vi/components/toggle-button/examples.mdx +36 -0
- package/dist/docs/src/content-vi/components/toggle-button/style.mdx +11 -0
- package/dist/docs/src/content-vi/components/toggle-button/usage.mdx +33 -0
- package/dist/docs/src/content-vi/components/toolbar/accessibility.mdx +33 -0
- package/dist/docs/src/content-vi/components/toolbar/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/toolbar/code.mdx +81 -0
- package/dist/docs/src/content-vi/components/toolbar/examples.mdx +16 -0
- package/dist/docs/src/content-vi/components/toolbar/style.mdx +12 -0
- package/dist/docs/src/content-vi/components/toolbar/usage.mdx +36 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/guidelines/content/messages.mdx +67 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/numbers-dates-and-currency.mdx +71 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/style-and-grammar.mdx +91 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/terms.mdx +57 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/voice-and-tone.mdx +48 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +24 -19
- package/dist/docs/src/content-vi/foundations/styles/border.mdx +1 -5
- package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +65 -6
- package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +7 -7
- package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/library.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +1 -4
- package/dist/docs/src/content-vi/foundations/styles/illustration.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +13 -10
- package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +4 -9
- package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +3 -0
- package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +4 -4
- package/dist/docs/src/content-vi/foundations/styles/logos/product-logos.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/logos/using-the-logo.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/motion.mdx +3 -1
- package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +32 -28
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -6
- package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +7 -0
- package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +3 -16
- package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +51 -2
- package/dist/docs/src/content-vi/foundations/tokens/index.mdx +90 -5
- package/dist/docs/src/content-vi/get-started/content.mdx +36 -0
- package/dist/docs/src/content-vi/get-started/design.mdx +49 -0
- package/dist/docs/src/content-vi/get-started/develop.mdx +110 -0
- package/dist/docs/src/content-vi/get-started/get-help.mdx +35 -0
- package/dist/docs/src/content-vi/get-started/index.mdx +49 -0
- package/dist/docs/src/content-vi/release-phases/index.mdx +11 -0
- package/dist/docs/src/content-vi/tools/ai-agents.mdx +36 -0
- package/dist/docs/src/content-vi/tools/ant-design-vue-theme.mdx +676 -0
- package/dist/docs/src/content-vi/tools/application-content.mdx +171 -0
- package/dist/docs/src/content-vi/tools/editors.mdx +254 -0
- package/dist/docs/src/content-vi/tools/eslint.mdx +15 -0
- package/dist/docs/src/content-vi/tools/index.mdx +7 -0
- package/dist/docs/src/content-vi/tools/mermaid.mdx +179 -0
- package/dist/docs/src/content-vi/tools/stylelint.mdx +18 -0
- package/dist/docs/src/content-vi/tools/vueflow.mdx +264 -0
- package/dist/docs/src/content.config.ts +13 -2
- package/dist/docs/src/lib/dates.ts +8 -0
- package/dist/docs/src/lib/i18n.ts +1 -0
- package/dist/docs/src/lib/icons.ts +2 -2
- package/dist/docs/src/lib/lucide-svg.ts +14 -0
- package/dist/docs/src/lib/navigation.ts +7 -4
- package/dist/docs/src/lib/token-descriptions-vi.ts +254 -12
- package/dist/docs/src/lib/tokens.ts +3 -0
- package/dist/docs/src/lib/utils.ts +9 -0
- package/dist/docs/src/styles/chrome.css +7 -7
- package/dist/docs/src/styles/color.css +31 -31
- package/dist/docs/src/styles/docs.css +75 -46
- package/dist/docs/src/styles/elevation.css +1 -1
- package/dist/docs/src/styles/global.css +28 -11
- package/dist/docs/src/styles/icons.css +16 -16
- package/dist/docs/src/styles/kit.css +71 -10
- package/dist/docs/src/styles/layout.css +16 -11
- package/dist/docs/src/styles/logos.css +24 -24
- package/dist/docs/src/styles/opacity.css +3 -3
- package/dist/docs/src/styles/registry.css +10 -0
- package/dist/docs/src/styles/rules.css +24 -0
- package/dist/docs/src/styles/shapes.css +2 -2
- package/dist/docs/src/styles/tokens.css +213 -120
- package/dist/docs/src/styles/tokens.js +69 -32
- package/dist/docs/src/styles/typography.css +9 -9
- package/dist/docs/src/styles/zindex.css +6 -5
- package/dist/docs/tokens/button.json +51 -0
- package/dist/docs/tokens/color.json +13 -8
- package/dist/docs/tokens/components.json +39 -0
- package/dist/docs/tokens/content.json +103 -10
- package/dist/docs/tokens/diagram.json +490 -49
- package/dist/docs/tokens/editor.json +128 -22
- package/dist/docs/tokens/flow.json +412 -80
- package/dist/docs/tokens/layout.json +13 -4
- package/dist/docs/tokens/motion.json +14 -0
- package/dist/docs/tokens/radius.json +9 -9
- package/dist/docs/tokens/renderer.json +8 -0
- package/dist/docs/tokens/resize.json +84 -15
- package/dist/docs/tokens/scrollbar.json +42 -7
- package/dist/docs/tokens/size.json +6 -6
- package/dist/docs/tokens/spacing.json +1 -1
- package/dist/docs/tokens/switch.json +306 -51
- package/dist/docs/tokens/typography.json +1 -1
- package/dist/docs/tokens/visualization.json +465 -53
- package/dist/docs/tokens/z-index.json +0 -10
- package/dist/index.js +3053 -777
- package/package.json +1 -1
- package/dist/docs/src/brand/structure-proposal.md +0 -227
|
@@ -4,6 +4,19 @@ description: Source-backed Mermaid configuration, descriptive execution states,
|
|
|
4
4
|
order: 6
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
import NativeFlowDemo from '../../components/NativeFlowDemo.astro';
|
|
8
|
+
|
|
9
|
+
## Native anatomy and execution demonstration
|
|
10
|
+
|
|
11
|
+
<NativeFlowDemo />
|
|
12
|
+
|
|
13
|
+
This is the public native compact model rendered by Mermaid, not a set of HTML
|
|
14
|
+
lookalike cards. Switch execution evidence off to inspect the untouched definition;
|
|
15
|
+
the example's run readings are explicitly sample data, not business-success claims.
|
|
16
|
+
Change the site theme/language, direction and zoom, select with a pointer or keyboard,
|
|
17
|
+
then export the actual SVG. Category masks, native shapes, edge labels and typed
|
|
18
|
+
state geometry survive those changes.
|
|
19
|
+
|
|
7
20
|
Use `@beehexa/mermaid-tokens` for every Mermaid initialization. It returns a fresh
|
|
8
21
|
`MermaidConfig` from `@beehexa/design-tokens`; Mermaid remains a peer dependency.
|
|
9
22
|
Pass the active `dark` and `locale` on every render. A theme or language change
|
|
@@ -67,11 +80,18 @@ export. Add `hx-flow` to the SVG root and bind `workerFlowSvgStyle(canvas)` from
|
|
|
67
80
|
and typed state line-work remain native; the adapter owns literal source paint,
|
|
68
81
|
neutral category tile/glyph pairs and the canonical tile radius.
|
|
69
82
|
|
|
70
|
-
The
|
|
71
|
-
|
|
72
|
-
the
|
|
73
|
-
|
|
74
|
-
|
|
83
|
+
The native model now encloses the complete escaped title in renderer-owned `<b>`
|
|
84
|
+
and separates secondary `KEY · TYPE` metadata with its native `<br>`. The adapter
|
|
85
|
+
binds the entire title to `font.heading.xsmall` and metadata to `font.body.small`;
|
|
86
|
+
wrapping never changes a title line into metadata. Source supplies the fixed
|
|
87
|
+
category tile/glyph dimensions and neutral pair, without replacing native shapes,
|
|
88
|
+
family masks, state markers or compact/public address mapping. Authored markup
|
|
89
|
+
remains escaped; a consumer must not mutate labels or substitute an emitter.
|
|
90
|
+
|
|
91
|
+
This anatomy is implemented in the canonical model source. The pinned published
|
|
92
|
+
model predates the full-title implementation; local verification uses its built
|
|
93
|
+
public export through `HEXASYNC_LOCAL_PACKAGES=1`, not a source alias. A local
|
|
94
|
+
build is not a claim that the model or this site has been released.
|
|
75
95
|
Embedded SVG CSS also supplies opaque source edge-label pairs and explicit
|
|
76
96
|
`"cv05", "cv08"` features alongside the complete font shorthand; SVG/export must
|
|
77
97
|
not depend on the document's universal font-feature rule.
|
|
@@ -113,9 +133,10 @@ state, not an execution-status colour; native focus/keyboard behavior stays inta
|
|
|
113
133
|
|
|
114
134
|
Rectangular node/cluster/actor/note surfaces, execution cards, category tiles and
|
|
115
135
|
small label surfaces use `radius.100` (8 px), including SVG export. Circles,
|
|
116
|
-
diamonds and edge paths retain topology geometry.
|
|
117
|
-
|
|
118
|
-
`radius.150` (12 px).
|
|
136
|
+
diamonds and edge paths retain topology geometry. Inspector cards remain 8 px.
|
|
137
|
+
Viewport docks use an 8 px frame with 4 px padding and actual 4 px control
|
|
138
|
+
buttons, not 8 px Button corners. Dialogs/drawers use `radius.150` (12 px).
|
|
139
|
+
Follow the [Radius role scale](/foundations/styles/radius/).
|
|
119
140
|
|
|
120
141
|
Authoring previews use `diagram.preview-height` for both split panels and
|
|
121
142
|
`diagram.minimum-height` for the drawing viewport; fullscreen fills the enclosing
|
|
@@ -140,6 +161,12 @@ application theme changes before the new drawing lands. Fonts, locale line heigh
|
|
|
140
161
|
state paint and outer selection geometry must survive SVG/PNG capture. A transparent
|
|
141
162
|
image or white sheet behind dark labels is not a valid fallback.
|
|
142
163
|
|
|
164
|
+
The native demo snapshots its opaque canvas colour onto each completed SVG before
|
|
165
|
+
export. Both the supported published model's plain `<p>` labels and local rich
|
|
166
|
+
`<b>` titles retain one completion/reached/unfinished/failure glyph, not colour
|
|
167
|
+
alone. Embedded body/title font shorthands explicitly retain Source `font.features`,
|
|
168
|
+
so standalone downloads do not depend on document-wide token CSS for character variants.
|
|
169
|
+
|
|
143
170
|
All package source is in `tokens/diagram.json`; consumers must not maintain a
|
|
144
171
|
second palette or copy generated token values. Local package references are for
|
|
145
172
|
local development only until an authorized release exists.
|
|
@@ -172,7 +199,7 @@ but two executed endpoints alone do not prove a typed traversal.
|
|
|
172
199
|
## Shared drawing viewport and dock
|
|
173
200
|
|
|
174
201
|
Data Flow is the canonical canvas reference: `diagram.canvas` and `diagram.grid`,
|
|
175
|
-
with
|
|
202
|
+
with `diagram.grid-gap` (16 px) grid spacing and `diagram.grid-dot` (1 px) dots in camera coordinates. These are graph
|
|
176
203
|
geometry, not reader-target dimensions. `.bh-diagram-viewport` supplies the Source
|
|
177
204
|
dot pattern; bind its `--bh-canvas-grid-x`, `--bh-canvas-grid-y` and
|
|
178
205
|
`--bh-canvas-grid-scale` to the existing camera. The SVG root and default stage
|
|
@@ -188,3 +215,9 @@ blank band. Stop pointer/wheel/non-Escape keyboard propagation on the dock,
|
|
|
188
215
|
preserving native focus, popups and overlay Escape handling. Keep genuine action
|
|
189
216
|
differences; do not copy Data Flow-only actions into Mermaid.
|
|
190
217
|
|
|
218
|
+
The complete native Space role combination keeps both Source insets inside the
|
|
219
|
+
allocated viewport, including below-readable-minimum hosts. Its width constraint
|
|
220
|
+
takes precedence over the generic control-group width. Keep one native horizontal
|
|
221
|
+
scroll row so every action remains fully reachable at larger reader roots; do not
|
|
222
|
+
clip the last action or override the dock width in a consumer.
|
|
223
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: VueFlow theme
|
|
3
|
-
description: Source-backed
|
|
3
|
+
description: Source-backed generic graph colour tones, paired themes and VueFlow 1 integration.
|
|
4
4
|
order: 5
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -49,75 +49,212 @@ package. Recompute when theme or locale changes. Keep ready/error handlers and f
|
|
|
49
49
|
with padding `0.2` when the host becomes measurable or changes size. VueFlow 1's actual
|
|
50
50
|
`fitViewOnInit` option is used; do not pass invented viewport option names.
|
|
51
51
|
|
|
52
|
-
##
|
|
52
|
+
## Colour tones are not statuses
|
|
53
53
|
|
|
54
|
-
`
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
A
|
|
54
|
+
`FlowTone` (`FLOW_TONES`) names eight generic colour tones: `blue`, `red`, `green`,
|
|
55
|
+
`crimson`, `yellow`, `teal`, `magenta` and `purple`. Each reads one existing foundation
|
|
56
|
+
`flow.category.*` role set; the foundation keys keep their names, and the package gives a
|
|
57
|
+
tone no meaning. The consumer decides which of its own node or relation kinds takes which
|
|
58
|
+
tone. A tone must not be interpreted as success, failure or warning. Keep the node's kind
|
|
59
|
+
label and icon; colour is never its sole identity, and a tone does not certify the state of
|
|
60
|
+
an execution.
|
|
59
61
|
|
|
60
|
-
Each
|
|
61
|
-
light/dark role. Use `
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
For a native
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
their actual paint. Decision foreground and border remain separate roles.
|
|
62
|
+
Each tone supplies `foreground`, `background`, `border` and `hover` as an opaque paired
|
|
63
|
+
light/dark role. Use `getFlowTonePalette(tone)` for CSS-backed bindings; its `border` is
|
|
64
|
+
the frame/edge identity. These source roles replace historical application-owned palettes,
|
|
65
|
+
alpha overlays, gradients and palette-adjustment functions. Never append hex alpha suffixes
|
|
66
|
+
to a CSS variable, or lighten a resolved role downstream.
|
|
67
|
+
For a native kind Tag, bind `getFlowToneBadgeStyles(tone)` to the public `style` prop and
|
|
68
|
+
omit `color`. This cached immutable recipe pairs the tone foreground/background/border
|
|
69
|
+
instead of putting native white text on a frame/edge stroke. The canonical contrast check
|
|
70
|
+
includes all eight small-text pairs in both themes at WCAG AA 4.5:1; the native family
|
|
71
|
+
demonstrates their actual paint. The teal foreground and border remain separate roles.
|
|
71
72
|
|
|
72
73
|
|
|
73
74
|
Selection uses `color.border.selected` plus the selected outline; keyboard focus separately
|
|
74
75
|
uses `color.border.focus`, the focused border width and `state.focus.offset`. Errors use the
|
|
75
76
|
danger frame plus dashed/non-colour indication and a readable error label. Selection or focus
|
|
76
|
-
must not overwrite
|
|
77
|
+
must not overwrite tone identity, hide an error, or be conveyed only through colour.
|
|
77
78
|
Resting handles use the neutral icon role. Focus color is reserved for actual focus,
|
|
78
79
|
not an always-on connector decoration.
|
|
79
80
|
|
|
80
|
-
##
|
|
81
|
+
## Native WorkflowViewer anatomy
|
|
82
|
+
|
|
83
|
+
Keep the actual `WorkflowViewer` / `WorkflowNodeCard` and provide its public
|
|
84
|
+
`NodeLook`: title, subtitle, kind, caption, category icon, source/destination
|
|
85
|
+
logos, domain indicators and optional typed execution. The Source companion
|
|
86
|
+
`.bh-workflow-canvas` binds those existing slots to complete Source roles:
|
|
87
|
+
`font.heading.xsmall` for the fully wrapped title, `font.body.default` for the
|
|
88
|
+
description and `font.body.small` for kind, caption and indicators. The fixed
|
|
89
|
+
neutral category tile is not a run-state badge. Do not replace a rich native
|
|
90
|
+
node with its ID or a plain rectangle in order to apply tokens.
|
|
91
|
+
Native stadium nodes grow to their content's intrinsic width within the existing
|
|
92
|
+
native minimum and maximum. Short terminal titles remain whole beside their category
|
|
93
|
+
glyph and optional execution marker. Keep the native maximum; do not remove a marker,
|
|
94
|
+
clip a title or add consumer-specific terminal widths.
|
|
95
|
+
|
|
96
|
+
Ordinary cards can explicitly opt into `NodeLook.sizing: 'content'`. The native
|
|
97
|
+
canvas owns only the width mechanism: the box grows to content between
|
|
98
|
+
`--wf-node-content-min-width` and `--wf-node-content-max-width`. The Source
|
|
99
|
+
companion owns those roles (`diagram.card.width` and twice that role) and the whole
|
|
100
|
+
presentation recipe: title/kind wrap, the growing head and every source/destination
|
|
101
|
+
logo kept within the card. No declaration is defined in both stylesheets. No fixed-width
|
|
102
|
+
increase applies to other consumers; stadium, diamond and ellipse cards ignore the opt-in.
|
|
103
|
+
Keep all logos; do not supply guessed geometry or patch card internals downstream.
|
|
104
|
+
|
|
105
|
+
Native `WorkflowEdge.tone` is orthogonal to `variant`. Use `blue`, `red` or `green`:
|
|
106
|
+
Source binds `--wf-edge-tone-<tone>` to the existing foundation border roles
|
|
107
|
+
`--bh-flow-category-task-border`, `--bh-flow-category-dependency-border` and
|
|
108
|
+
`--bh-flow-category-transformation-border` in the current theme (foundation names
|
|
109
|
+
unchanged), with static solid, short-dash and dash-dot cues. The consumer maps its own
|
|
110
|
+
relation kinds onto these tones. Do not use failure to colour a relation. The native
|
|
111
|
+
renderer validates tokens, retains tone ink/cues under hover, selection, trace, failure,
|
|
112
|
+
possible and context, and carries them to arrowheads and jump swatches. PNG export reuses
|
|
113
|
+
the native exporter's DOM/stylesheet serialization, with no tone-specific path. Omitted tone
|
|
114
|
+
preserves existing edge behavior.
|
|
115
|
+
|
|
116
|
+
Relation certainty, context and failure are shape cues, never a new dash pattern,
|
|
117
|
+
a colour change of the tone or an opacity reduction, so each tone dash stays unique
|
|
118
|
+
(WCAG 1.4.1/1.4.11):
|
|
119
|
+
|
|
120
|
+
- **Possible** (`certainty: 'possible'`, a dynamic-route candidate or SWITCH case): a
|
|
121
|
+
hollow mini-diamond at the source end, the BPMN 2.0 conditional-flow marker.
|
|
122
|
+
- **Context** (`context: true`, retained breadcrumb context): a UML-style open
|
|
123
|
+
arrowhead and the thinner resting stroke `--wf-edge-context-width`, a package-owned
|
|
124
|
+
variable bound to the foundation `border.width.default`; highlight widens it as usual.
|
|
125
|
+
- **Toned failure** (`variant: 'failure'` with a tone): tone ink and tone dash, plus
|
|
126
|
+
the Lucide `CircleX` mark painted with `color.icon.danger` (`--wf-edge-failure-icon`)
|
|
127
|
+
beside the edge label. The mark is decorative (`aria-hidden`); jump names and the
|
|
128
|
+
legend keep the words. An untoned failure keeps the failure ink and `5 4` dash.
|
|
129
|
+
|
|
130
|
+
Possible and context may combine. Pass the localized group name as `familyLabel`:
|
|
131
|
+
jump chips and lists are then named `{family} jump to {target}`, numbered `(n of m)`
|
|
132
|
+
when parallel jumps would share a name. Localize the whole name, numbering and list
|
|
133
|
+
titles through the viewer's `texts.jumps` (`WorkflowJumpTexts`), keeping the group word
|
|
134
|
+
first; a localized group inside the English default is not a localized name. Sources:
|
|
135
|
+
`packages/vueflow-tokens/src/styles.css` and the native `workflow-canvas` edge.
|
|
136
|
+
These source bindings do not prove appearance: manually check both themes, many logos,
|
|
137
|
+
long titles, parallel tones, possible/context/failure marks, trace/hover/fullscreen
|
|
138
|
+
and exported PNG.
|
|
139
|
+
|
|
140
|
+
**Group frames.** A native group (`WorkflowNode.group`, the built-in `wf-group` node) is
|
|
141
|
+
the node's card as a header with a round expand/collapse toggle; expanded, its children sit
|
|
142
|
+
inside a frame below the header. The companion binds the frame to the package-owned
|
|
143
|
+
`--wf-group-*` variables, each over an existing foundation role: border `color.border`,
|
|
144
|
+
border width `border.width.default`, radius `radius.card`, fill `color.surface.subtle`
|
|
145
|
+
and, for a frame inside a frame, `color.background.neutral`, so the levels read apart;
|
|
146
|
+
padding `space.stack` and header gap `space.150`. No flow-specific foundation token backs
|
|
147
|
+
them. The native layout reads `--wf-group-padding` and
|
|
148
|
+
`--wf-group-header-gap` from the canvas, so keep both plain lengths. High contrast draws
|
|
149
|
+
the frame border in text ink. A frame is a container, never a tone or a run state:
|
|
150
|
+
do not tint it by tone or status.
|
|
151
|
+
|
|
152
|
+
**Selection box.** Shift + drag on the empty native canvas draws a box that selects the
|
|
153
|
+
cards it touches (an expanded frame only when fully inside). The companion binds it to the
|
|
154
|
+
same selection recipe as `.bh-vue-flow .vue-flow__selection`: a transparent box (no fill, so
|
|
155
|
+
the swept cards stay visible) with a dashed `border.width.selected` border in
|
|
156
|
+
`color.border.focus`, in light and dark. A selection keeps the node selection ring; the box
|
|
157
|
+
is never a tone or run-state cue.
|
|
158
|
+
|
|
159
|
+
**Find box.** The native viewer's find box (`/` or the dock's Search) is an overlay with a
|
|
160
|
+
search field and result rows. The companion binds its `--wf-find-*` and the shared `--wf-list-*`
|
|
161
|
+
roles: `color.surface.overlay`, `elevation.shadow.overlay` and `radius.overlay`, with no border
|
|
162
|
+
(an overlay is set apart by its surface and shadow) and a `color.border` divider under the field.
|
|
163
|
+
The field and the empty state use `font.body.default`, the placeholder `color.text.subtlest`
|
|
164
|
+
and the empty state `color.text.subtle`. A row uses `font.label.default` for the node's name,
|
|
165
|
+
`space.075` / `space.item.x` padding, at least `size.control.default` high (`size.target.touch`
|
|
166
|
+
on coarse pointers and below 768 px) and `radius.item`; the kind label after the name is
|
|
167
|
+
`font.body.small` in `color.text.subtle`, and a node without a name shows its id in
|
|
168
|
+
`font.code.default`. Names wrap at word boundaries and are never truncated; only a single word
|
|
169
|
+
wider than the row breaks. Rows take the overlay item states one step apart: the row under the
|
|
170
|
+
pointer `color.surface.overlay.hover`; the keyboard-active row `color.surface.overlay.selected`
|
|
171
|
+
with the `border.width.selected` start bar in `color.border.selected` as its non-colour cue;
|
|
172
|
+
that row hovered `color.surface.overlay.selected.hover`. Text keeps its colour in every state;
|
|
173
|
+
each pair is in the checked contrast list. Focus is the field's ring around the whole box
|
|
174
|
+
(`border.width.focused`, `color.border.focus`, `state.focus.offset`). While a row is under the
|
|
175
|
+
pointer or reached with ↓ / ↑, the canvas previews its node with the existing hover state and
|
|
176
|
+
the node's outer ring (`diagram.selection-ring`); it ends when the pointer leaves the list, the
|
|
177
|
+
query changes or the box closes, and never changes the selection, the trace or the viewport (an
|
|
178
|
+
off-screen node is not panned to). Do not restyle the box per viewer.
|
|
179
|
+
|
|
180
|
+
Diamond and ellipse titles and kind captions wrap at word boundaries and are never truncated:
|
|
181
|
+
their side padding follows their width, so a mid-word break would read as two words and an
|
|
182
|
+
ellipsis would hide the node's own name. Only a single word wider than the content box
|
|
183
|
+
breaks. Ordinary cards may still break a long unbroken title anywhere.
|
|
184
|
+
|
|
185
|
+
`NodeLook.execution` is absent for definitions. Typed states retain their
|
|
186
|
+
`diagram.*` fill/stroke/text pairs and native non-colour marker; the not-taken
|
|
187
|
+
boundary is dashed. Selection, hover and keyboard focus stay on independent
|
|
188
|
+
outer-ring geometry, so a selected failed node remains visibly failed.
|
|
189
|
+
Repetition, logos and group disclosure remain domain metadata.
|
|
190
|
+
|
|
191
|
+
The real native live demo belongs to the
|
|
192
|
+
[`workflow-canvas` producer playground](https://github.com/hexasync-saas/workflow-canvas#native-source-anatomy-playground),
|
|
193
|
+
not a replacement renderer embedded here. In that checkout run
|
|
194
|
+
`npm ci && npm run playground -- --host 127.0.0.1 --port 5174` and open
|
|
195
|
+
`http://127.0.0.1:5174/?anatomy`. It reuses the existing nine-node credential,
|
|
196
|
+
38-node RPA and loop fixtures with theme/language controls, explicit sample
|
|
197
|
+
typed execution, long title/metadata, native ports, selection and native PNG
|
|
198
|
+
export. Build Source packages first and prepend `HEXASYNC_LOCAL_PACKAGES=1`
|
|
199
|
+
to verify unpublished adapter anatomy from built public exports. Default
|
|
200
|
+
playground installs remain registry-only; Source site CI needs no access to
|
|
201
|
+
the private native canvas package. The [Mermaid demonstration](/tools/mermaid/)
|
|
202
|
+
runs here using its public native model and the same Source anatomy roles.
|
|
203
|
+
|
|
204
|
+
Routing stays in the native canvas. Unpinned edges select attachment sides from
|
|
205
|
+
the current measured layout; authored source/target pins remain authoritative.
|
|
206
|
+
After dragging a task or expanding a group, do not repin every edge to one side
|
|
207
|
+
or resurrect a downstream layout processor to hide an attachment defect.
|
|
81
208
|
|
|
82
|
-
|
|
83
|
-
spacing, shape, categorical pairs and source dimensions. Keep custom icons, connector logos,
|
|
84
|
-
labels, handles, accessibility semantics and events in the application. Meaningful loading
|
|
85
|
-
indicators may move; decorative node entrances, pulsing identities, rotating idle icons,
|
|
86
|
-
hover transforms, flowing edge dashes, gradients and glass are not part of the theme.
|
|
209
|
+
## Custom content and geometry
|
|
87
210
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
211
|
+
Use `getFlowNodeStyles({ tone, width, height, shape? }, state)` for custom node bodies.
|
|
212
|
+
It binds semantic fonts, spacing, the tone pair and the consumer-owned dimensions;
|
|
213
|
+
`shape: 'circle'` rounds the body fully and `state.dashed` dashes its border. Keep custom
|
|
214
|
+
icons, logos, labels, handles, accessibility semantics and events in the application.
|
|
215
|
+
Meaningful loading indicators may move; decorative node entrances, pulsing identities,
|
|
216
|
+
rotating idle icons, hover transforms, flowing edge dashes, gradients and glass are not part
|
|
217
|
+
of the theme.
|
|
218
|
+
|
|
219
|
+
Custom tone content uses `getFlowToneStyles(tone, part?)`;
|
|
220
|
+
`foreground` sets tone text, `border` sets border colour and `background`
|
|
221
|
+
sets its paired surface. Tone glyphs use `getFlowIconStyles(tone, options)`,
|
|
222
|
+
whose default colour is the tone border, not text. Options accept source icon
|
|
92
223
|
size names or numeric API sizes, an already source-resolved colour, and disabled.
|
|
93
224
|
Status icon keys (`status-success|warning|error|info|loading`) and control keys
|
|
94
225
|
(`control-expand|collapse|help`) resolve separate operational/neutral icon roles.
|
|
95
|
-
`edge-dependency|edge-transformation` preserve their categorical identity.
|
|
96
226
|
`bh-flow-icon[data-bh-loading="true"]` supplies meaningful loading motion with
|
|
97
|
-
reduced-motion support. Never animate an idle
|
|
227
|
+
reduced-motion support. Never animate an idle kind icon.
|
|
98
228
|
|
|
99
|
-
For a labelled relationship indicator use `bh-flow-
|
|
100
|
-
`data-bh-
|
|
101
|
-
geometry and
|
|
229
|
+
For a labelled relationship indicator use `bh-flow-tone-mark` and
|
|
230
|
+
`data-bh-tone="<FlowTone>"`: the source owns its `space.075` circular
|
|
231
|
+
geometry and tone border-colour fill (`blue` when unset). A label/count must preserve the
|
|
102
232
|
non-colour meaning; this mark does not communicate execution status.
|
|
103
233
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
decision **160×160**, loop **120×120**, profile **240×100**. Do not confuse task-transformation
|
|
108
|
-
cards with individual transformation steps. Rendering, layout and half-dimension centering
|
|
109
|
-
must use the same source. Preserve existing graph coordinates during theme adoption.
|
|
234
|
+
The package ships no node-size, grid or layout tables: node geometry belongs to the
|
|
235
|
+
consumer, and rendering, layout and half-dimension centering must read the same consumer
|
|
236
|
+
source. Preserve existing graph coordinates during theme adoption.
|
|
110
237
|
|
|
111
238
|
Graph layout coordinates, intrinsic sizing, flex/grid mechanics and viewport transforms are
|
|
112
|
-
not palette values. Do not arbitrarily round them to the spacing scale.
|
|
239
|
+
not palette values. Do not arbitrarily round them to the spacing scale. Tone adaptation
|
|
113
240
|
must not mutate the graph's IDs, expansion state, saved positions or relationship semantics.
|
|
114
241
|
|
|
115
242
|
Ordinary node bodies, MiniMap cards and Controls frames use `radius.100` (8 px).
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
243
|
+
Their actual control buttons use `radius.050` (4 px), without clipping focus;
|
|
244
|
+
4 px frame padding nests those control corners inside the 8 px frame. Node
|
|
245
|
+
logos retain their nested `radius.075` (6 px). Circular nodes keep their
|
|
246
|
+
true circular geometry, as do connection handles; edge-routing radius remains
|
|
247
|
+
path geometry. Inspector cards remain 8 px and dialogs/drawers use
|
|
248
|
+
`radius.150` (12 px). The native WorkflowDock shares this compact frame/control
|
|
249
|
+
family and floats inside the viewport, default lower-left, outside camera
|
|
250
|
+
transforms; never replace it with a full-width toolbar band. Text-editor headers
|
|
251
|
+
remain intrinsic document chrome. Follow the [Radius role scale](/foundations/styles/radius/).
|
|
252
|
+
The native dock's zoom-menu surface uses `radius.overlay` (8 px), independently
|
|
253
|
+
of compact Buttons and menu items; do not derive it from a button radius plus
|
|
254
|
+
a fixed pixel offset. Keep native MiniMap/legend surfaces at
|
|
255
|
+
`radius.100` and the actual keyboard-shortcuts Dialog at `radius.150`; its close
|
|
256
|
+
Button still uses `radius.050`. These role bindings belong to the Source companion,
|
|
257
|
+
not per-viewer CSS or a global chrome-radius change.
|
|
121
258
|
|
|
122
259
|
Bind the user's high-contrast setting to `data-bh-high-contrast="true"` on the actual
|
|
123
260
|
`bh-vue-flow` host. The companion CSS widens node/edge/path, button and custom
|
|
@@ -142,22 +279,24 @@ slot alongside its built-in controls rather than replacing the dock.
|
|
|
142
279
|
|
|
143
280
|
## Edges, controls and export
|
|
144
281
|
|
|
145
|
-
`styleTargetEdge(edge, nodes)` preserves the directed edge's target identity on
|
|
146
|
-
and marker
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
edge
|
|
282
|
+
`styleTargetEdge(edge, nodes, toneOf?)` preserves the directed edge's target identity on
|
|
283
|
+
both stroke and marker from the target node's tone (`toneOf(node)`, `blue` when omitted or
|
|
284
|
+
when the target is missing), keeps other edge data, and disables decorative traversal
|
|
285
|
+
motion. The application may retain dashed lines to communicate its own relation semantics.
|
|
286
|
+
The custom edge renderer must consume the supplied stroke rather than replace it with an
|
|
287
|
+
unrelated edge palette. `FLOW_EDGE` centralizes widths, marker size, path radius and handle
|
|
288
|
+
size.
|
|
150
289
|
|
|
151
|
-
Custom edge paths use `getFlowEdgeStyles(
|
|
290
|
+
Custom edge paths use `getFlowEdgeStyles(tone, suppliedStyle?)` for the full
|
|
152
291
|
SVG presentation recipe. It preserves a supplied directed target stroke over the
|
|
153
|
-
|
|
154
|
-
|
|
292
|
+
tone fallback and a supplied static dash, and uses `FLOW_EDGE.width`, no fill and a
|
|
293
|
+
non-scaling stroke; the consumer owns what a dash means.
|
|
155
294
|
Path coordinates, marker shapes and relationship direction remain graph geometry.
|
|
156
295
|
Edge styles and node container styles use VueFlow's public `Styles` type, including
|
|
157
296
|
custom theme variables. Detail simplification accepts and returns that same native
|
|
158
297
|
contract; applications do not need casts or copied style objects to assign it.
|
|
159
|
-
`styleTargetEdge` retains an explicit open/closed arrow kind
|
|
160
|
-
|
|
298
|
+
`styleTargetEdge` retains an explicit open/closed arrow kind.
|
|
299
|
+
`createVueFlowTheme({ nodeTone })` colours MiniMap nodes the same way (`blue` by default).
|
|
161
300
|
|
|
162
301
|
The CSS companion addresses actual VueFlow core/default nodes, handles, edge labels, selection,
|
|
163
302
|
Controls buttons and MiniMap surfaces. Controls preserve normal, hover, disabled and focus
|
|
@@ -169,21 +308,21 @@ background or independent system-font palette. Preserve snapshot/fit/restore, ov
|
|
|
169
308
|
resolution feedback and capture fallback handling. Check the real exported image, not just a
|
|
170
309
|
successful capture call.
|
|
171
310
|
|
|
172
|
-
Graph fullscreen uses an isolated local stacking context at `z-index.modal` (400),
|
|
173
|
-
|
|
311
|
+
Graph fullscreen uses an isolated local stacking context at `z-index.modal` (400), like
|
|
312
|
+
other fullscreen surfaces, so global inspectors opened from it stay above it. Private child chrome
|
|
174
313
|
ordering such as z10/z15 stays inside that context; do not assign global1001/1002
|
|
175
314
|
to graph controls. Verify real inspector/dialog ordering, Escape and focus return.
|
|
176
315
|
|
|
177
316
|
`getFlowDetailStyles(level, suppliedStyle)` removes shadow at minimal detail;
|
|
178
317
|
basic and detailed return the supplied style unchanged. It never reduces opacity:
|
|
179
|
-
node state, text contrast, focus and
|
|
318
|
+
node state, text contrast, focus and tone semantics must remain readable at
|
|
180
319
|
every zoom level. Viewport thresholds, metadata, measured positions and scheduling
|
|
181
320
|
remain consumer logic; no nodes, relationships or data fields may be discarded.
|
|
182
321
|
|
|
183
322
|
## Verification
|
|
184
323
|
|
|
185
324
|
Exercise light and dark, English and Vietnamese, selected plus focused and error nodes,
|
|
186
|
-
long labels,
|
|
325
|
+
long labels, consumer-owned dimensions, target-coloured arrows, zoom/snap/fitting, expanded groups,
|
|
187
326
|
cycles, narrow and fullscreen hosts, ESC exit, Controls, MiniMap and export. Calculate contrast
|
|
188
327
|
for the actual paired foreground/background and meaningful borders in each rendered theme;
|
|
189
328
|
source tokens and typed configuration alone are not accessibility or visual proof.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Các phím, những gì Action bar có sẵn và những gì đội của bạn cần làm.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Mức tuân thủ
|
|
6
|
+
|
|
7
|
+
**Action bar đạt WCAG 2.2 mức AA khi được dùng như mô tả trên các trang này.**
|
|
8
|
+
|
|
9
|
+
## Bàn phím
|
|
10
|
+
|
|
11
|
+
| Phím | Tác dụng |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| <kbd>Tab</kbd> | Đi qua các thao tác và nút đóng. |
|
|
14
|
+
| <kbd>Esc</kbd> | Bỏ chọn khi focus đang ở trong thanh. |
|
|
15
|
+
|
|
16
|
+
## Những gì Action bar có sẵn
|
|
17
|
+
|
|
18
|
+
- Một vùng có tên (`role="region"`).
|
|
19
|
+
- Live region lịch sự, luôn có trong trang, đọc số lượng mỗi khi thay đổi.
|
|
20
|
+
- Nút đóng có tên.
|
|
21
|
+
|
|
22
|
+
## Những gì đội của bạn cần làm
|
|
23
|
+
|
|
24
|
+
- Trả focus về bảng sau khi bỏ chọn.
|
|
25
|
+
- Hỏi xác nhận trước khi xóa hàng loạt, rồi nói điều đã xảy ra: "Đã tạm dừng 3 kết nối".
|
|
26
|
+
|
|
27
|
+
## Tiêu chí WCAG
|
|
28
|
+
|
|
29
|
+
| Tiêu chí | Mức | Cách đạt |
|
|
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,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Cài đặt, props và các phần tạo nên Action bar.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Cài đặt
|
|
6
|
+
|
|
7
|
+
Chạy trong app, sau `shadcn-vue init` và theme Beehexa ([Nút › Code](/vi/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
|
+
## Cách dùng
|
|
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: 'Đơn hàng sang ERP' },
|
|
25
|
+
{ id: 'stock', name: 'Tồn kho từ kho' },
|
|
26
|
+
{ id: 'customers', name: 'Khách hàng sang CRM' },
|
|
27
|
+
]
|
|
28
|
+
const selected = ref<string[]>(['orders', 'stock'])
|
|
29
|
+
const status = computed(() => `${selected.value.length} kết nối đã chọn`)
|
|
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="Thao tác cho các kết nối đã chọn"
|
|
38
|
+
clear-label="Bỏ chọn"
|
|
39
|
+
@clear="selected = []"
|
|
40
|
+
>
|
|
41
|
+
<Button variant="outline" size="sm"><Pause />Tạm dừng</Button>
|
|
42
|
+
<Button variant="outline" size="sm"><Download />Xuất</Button>
|
|
43
|
+
<Button variant="ghost-destructive" size="sm"><Trash2 />Xóa</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 | Giá trị | Ghi chú |
|
|
60
|
+
| --- | --- | --- |
|
|
61
|
+
| `open` | boolean | True khi có ít nhất một hàng được chọn |
|
|
62
|
+
| `status` | chuỗi | Số lượng, như "3 kết nối đã chọn" |
|
|
63
|
+
| `label` | chuỗi | Tên vùng, như "Thao tác cho các hàng đã chọn" |
|
|
64
|
+
| `clearLabel` | chuỗi, mặc định `Clear selection` | Tên nút đóng |
|
|
65
|
+
| `@clear` | sự kiện | Nút đóng và Esc; hãy bỏ chọn |
|
|
66
|
+
|
|
67
|
+
## Dựng từ
|
|
68
|
+
|
|
69
|
+
Component của Beehexa, không có bản tương ứng trong shadcn-vue. Các thao tác bên trong là Button cỡ nhỏ.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Ví dụ trực tiếp của Action bar, kèm đúng file Vue tạo ra từng ví dụ.
|
|
3
|
+
---
|
|
4
|
+
import CodeExample from '../../../components/CodeExample.astro';
|
|
5
|
+
import ActionBarTable from '../../../../registry/beehexa/examples/action-bar/vi/ActionBarTable.vue';
|
|
6
|
+
import ActionBarTableSource from '../../../../registry/beehexa/examples/action-bar/vi/ActionBarTable.vue?raw';
|
|
7
|
+
|
|
8
|
+
Mỗi ví dụ là một file Vue hoàn chỉnh. Chép vào app đã cài registry, hoặc mở trong StackBlitz.
|
|
9
|
+
|
|
10
|
+
## Thao tác hàng loạt
|
|
11
|
+
|
|
12
|
+
Chọn hàng để hiện thanh; bỏ chọn hoặc bấm Esc trong thanh để ẩn.
|
|
13
|
+
|
|
14
|
+
<CodeExample source={ActionBarTableSource} file="ActionBarTable.vue">
|
|
15
|
+
<ActionBarTable client:visible />
|
|
16
|
+
</CodeExample>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Cấu tạo, token, kích thước và khoảng cách của Action bar.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Token
|
|
6
|
+
|
|
7
|
+
| Phần | Token và giá trị |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| Khung | `color.surface.overlay`, viền `color.border`, `elevation.shadow.overlay`, `radius.card` |
|
|
10
|
+
| Padding | `space.100`, `space.200` ở đầu |
|
|
11
|
+
| Khoảng cách | `space.200` giữa số lượng và thao tác; `space.100` giữa các thao tác |
|
|
12
|
+
| Số lượng | `font.label.default` |
|
|
13
|
+
| Thao tác | Nút nhỏ (24 px); Nhẹ nguy hiểm cho thao tác xóa |
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Khi nào dùng thanh thao tác, cấu tạo, trạng thái, phím và khả năng tiếp cận.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
> **Bản nháp.** Đề xuất từ khảo sát 18 design system, chưa được duyệt. Đã có trong registry để các đội dùng thử; API còn có thể đổi trước khi duyệt.
|
|
6
|
+
|
|
7
|
+
## Khi nào dùng
|
|
8
|
+
|
|
9
|
+
- Trong bảng hoặc danh sách, khi người dùng chọn nhiều dòng rồi thao tác một lần: tạm dừng, xóa, xuất.
|
|
10
|
+
|
|
11
|
+
## Khi nào không dùng
|
|
12
|
+
|
|
13
|
+
- Khi chưa có gì được chọn. Ẩn thanh đi.
|
|
14
|
+
- Cho thao tác của cả trang. Đặt chúng ở đầu trang.
|
|
15
|
+
|
|
16
|
+
## Cấu tạo
|
|
17
|
+
|
|
18
|
+
| Phần | Ghi chú |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| Khung | `color.surface.overlay`, viền `color.border`, `elevation.shadow.overlay`, `radius.card`. Nằm phía trên bảng hoặc nổi ở cuối bảng |
|
|
21
|
+
| Số lượng | "3 kết nối đã chọn", `font.label.default` |
|
|
22
|
+
| Thao tác | Nút cỡ nhỏ (24 px); Danger cho xóa, có xác nhận |
|
|
23
|
+
| Bỏ chọn | Nút Subtle chỉ có icon `x`, tên "Bỏ chọn" |
|
|
24
|
+
|
|
25
|
+
## Hành vi
|
|
26
|
+
|
|
27
|
+
- Hiện khi chọn dòng đầu tiên và ẩn khi bỏ chọn dòng cuối cùng.
|
|
28
|
+
- Số lượng cập nhật mỗi lần thay đổi.
|
|
29
|
+
- Sau thao tác hàng loạt, nói rõ kết quả, như "Đã tạm dừng 3 kết nối".
|
|
30
|
+
|
|
31
|
+
## Khả năng tiếp cận
|
|
32
|
+
|
|
33
|
+
- Thanh là một region có `aria-label`, như "Thao tác cho các dòng đã chọn".
|
|
34
|
+
- Live region (polite) đọc số lượng mỗi khi đổi.
|
|
35
|
+
- Phím Esc bỏ chọn khi focus đang ở trong thanh.
|