Этот текст ещё не переведён. Ниже английский оригинал.
The same components as the HTML library
The header is the contract of section 4 of the build contract of the wave DSN: id, title, level, description, uses, parts, states, status, controls, cssProperties. It is parsed with the one parser of design-components (lib/header.ts).
What counts as a violation.
- A component file has no header, or the header has problems (not YAML, an unknown level, a malformed control).
- The header
idis not the file name, or theleveldoes not match the folder (primitiveinprimitives/,compositeincomposites/,blockinblocks/). - The project has
/design/shtukbase-ui-html/components/and a component is in one library only, or the fieldslevel,controls,states,status,uses,partsof the two headers differ.
The markup itself (tags, text, attributes, classes) is compared by the render test of the package, against the HTML templates, when the library changes; the check compares headers, which a project can edit.
Run. bun .shtukbase/packages/shtukbase-ui-react/checks/same.ts from the project root. A violation is a line per problem and exit code 1.
How to fix. Make the React header equal to the HTML header (copy the YAML), or place the missing component.
/norms/rules/shtukbase-ui-react/SBR-R03.md.Исходный текст