[ENG-46487] feat(webkit): add Flow (data)#682
Open
HerbertJulio wants to merge 2 commits into
Open
Conversation
…des and anchors Reshape the (unreleased) Flow component to a compound, slot-driven API: - Public API is dot-notation now: import Flow and use Flow.Node / Flow.Parallel / Flow.Anchor. index.ts attaches them and is the single ./flow export (mirrors the select pattern). - Nodes are direct children of Flow; remove the FlowList wrapper. - flow-node gains an unstyled prop so the slot content defines the node (start dot, taller node, multi-row card); the default box is gated behind data-styled. - flow-anchor wraps real content and marks where connectors attach (type end = incoming endpoint, type start = outgoing origin). - Connector geometry is centralized in the root: one SVG draws every connector, so a leading/trailing flow-parallel fans in/out with no dangling stubs. - Stories and spec updated to the new API; subcomponent autodocs tables populated via explicit docgen info.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Flow — a directed flow-diagram component in the
datacategory. It renders a horizontal sequence of steps joined by decorative connectors, with optional parallel branches and custom connector-attachment points. Use it for pipelines, workflows, and step-by-step processes.Compound, slot-driven API (import only
Flow):Flow.Node— a step.unstyledlets the slot content define the node entirely (a start dot, a taller node, a multi-row card); otherwise it renders the default box.Flow.Parallel— its directFlow.Nodechildren become parallel branches; the root draws the fan-out/fan-in junctions. A leading/trailing parallel fans only in/out (no dangling stubs).Flow.Anchor— marks where connectors attach inside a custom node (type="end"= incoming endpoint,type="start"= outgoing origin).alignonFlowcontrols vertical alignment.Connector geometry is centralized in the root (one SVG, DOM-measured) — no external positioning/animation libraries, per
.claude/rules/dependencies.md.Notes
./flowexport (index.ts) that attaches the sub-components for dot-notation, mirroring theselectpattern; the parts are also named exports of@aziontech/webkit/flow.webkit:lint,webkit:type-check,build:dts, andstorybook:buildall pass.vue3-vitedocgen does not run on the cross-package webkit SFCs (a repo-wide fix is available as a separate PR if wanted).