@starci/grammar 0.3.0 → 0.4.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 +74 -39
- package/dist/common/conformance.d.ts +31 -0
- package/dist/common/conformance.d.ts.map +1 -0
- package/dist/common/conformance.js +33 -0
- package/dist/common/conformance.js.map +1 -0
- package/dist/common/index.d.ts +5 -5
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +5 -10
- package/dist/common/index.js.map +1 -1
- package/dist/common/registry.d.ts +79 -0
- package/dist/common/registry.d.ts.map +1 -0
- package/dist/common/registry.js +34 -0
- package/dist/common/registry.js.map +1 -0
- package/dist/common/renderers.d.ts +41 -0
- package/dist/common/renderers.d.ts.map +1 -0
- package/dist/common/renderers.js +44 -0
- package/dist/common/renderers.js.map +1 -0
- package/dist/common/rule-catalog.generated.d.ts +40 -0
- package/dist/common/rule-catalog.generated.d.ts.map +1 -0
- package/dist/common/rule-catalog.generated.js +230 -0
- package/dist/common/rule-catalog.generated.js.map +1 -0
- package/dist/common/spacing.d.ts +20 -0
- package/dist/common/spacing.d.ts.map +1 -0
- package/dist/common/spacing.js +18 -0
- package/dist/common/spacing.js.map +1 -0
- package/dist/common/state.d.ts +6 -0
- package/dist/common/state.d.ts.map +1 -0
- package/dist/common/state.js +11 -0
- package/dist/common/state.js.map +1 -0
- package/dist/common/styles.css +1566 -2
- package/dist/core/OtpInput.d.ts.map +1 -1
- package/dist/core/OtpInput.js +2 -1
- package/dist/core/OtpInput.js.map +1 -1
- package/dist/core/branch/MarkdownArticle/index.d.ts.map +1 -1
- package/dist/core/branch/MarkdownArticle/index.js +2 -2
- package/dist/core/branch/MarkdownArticle/index.js.map +1 -1
- package/dist/core/branch/Rail/classNames.d.ts.map +1 -1
- package/dist/core/branch/Rail/classNames.js +4 -4
- package/dist/core/branch/Rail/classNames.js.map +1 -1
- package/dist/core/branch/Rail/index.d.ts +4 -0
- package/dist/core/branch/Rail/index.d.ts.map +1 -1
- package/dist/core/branch/Rail/index.js +12 -2
- package/dist/core/branch/Rail/index.js.map +1 -1
- package/dist/core/branch/Subnav/classNames.d.ts +8 -0
- package/dist/core/branch/Subnav/classNames.d.ts.map +1 -0
- package/dist/core/branch/Subnav/classNames.js +9 -0
- package/dist/core/branch/Subnav/classNames.js.map +1 -0
- package/dist/core/branch/Subnav/index.d.ts +17 -0
- package/dist/core/branch/Subnav/index.d.ts.map +1 -0
- package/dist/core/branch/Subnav/index.js +6 -0
- package/dist/core/branch/Subnav/index.js.map +1 -0
- package/dist/core/branch/SurfaceAccordionCard/classNames.d.ts +6 -2
- package/dist/core/branch/SurfaceAccordionCard/classNames.d.ts.map +1 -1
- package/dist/core/branch/SurfaceAccordionCard/classNames.js +14 -9
- package/dist/core/branch/SurfaceAccordionCard/classNames.js.map +1 -1
- package/dist/core/branch/SurfaceAccordionCard/index.d.ts +8 -1
- package/dist/core/branch/SurfaceAccordionCard/index.d.ts.map +1 -1
- package/dist/core/branch/SurfaceAccordionCard/index.js +29 -11
- package/dist/core/branch/SurfaceAccordionCard/index.js.map +1 -1
- package/dist/core/branch/SurfaceCard/classNames.d.ts +11 -1
- package/dist/core/branch/SurfaceCard/classNames.d.ts.map +1 -1
- package/dist/core/branch/SurfaceCard/classNames.js +16 -7
- package/dist/core/branch/SurfaceCard/classNames.js.map +1 -1
- package/dist/core/branch/SurfaceCard/index.d.ts +11 -1
- package/dist/core/branch/SurfaceCard/index.d.ts.map +1 -1
- package/dist/core/branch/SurfaceCard/index.js +15 -4
- package/dist/core/branch/SurfaceCard/index.js.map +1 -1
- package/dist/core/branch/SurfaceListCard/classNames.d.ts +2 -0
- package/dist/core/branch/SurfaceListCard/classNames.d.ts.map +1 -1
- package/dist/core/branch/SurfaceListCard/classNames.js +7 -5
- package/dist/core/branch/SurfaceListCard/classNames.js.map +1 -1
- package/dist/core/branch/SurfaceListCard/index.d.ts.map +1 -1
- package/dist/core/branch/SurfaceListCard/index.js +3 -2
- package/dist/core/branch/SurfaceListCard/index.js.map +1 -1
- package/dist/core/branch/Tabs/classNames.d.ts +11 -0
- package/dist/core/branch/Tabs/classNames.d.ts.map +1 -0
- package/dist/core/branch/Tabs/classNames.js +13 -0
- package/dist/core/branch/Tabs/classNames.js.map +1 -0
- package/dist/core/branch/Tabs/index.d.ts +22 -0
- package/dist/core/branch/Tabs/index.d.ts.map +1 -0
- package/dist/core/branch/Tabs/index.js +28 -0
- package/dist/core/branch/Tabs/index.js.map +1 -0
- package/dist/core/branch/Tooltip/classNames.d.ts +3 -0
- package/dist/core/branch/Tooltip/classNames.d.ts.map +1 -0
- package/dist/core/branch/Tooltip/classNames.js +4 -0
- package/dist/core/branch/Tooltip/classNames.js.map +1 -0
- package/dist/core/branch/Tooltip/index.d.ts +18 -0
- package/dist/core/branch/Tooltip/index.d.ts.map +1 -0
- package/dist/core/branch/Tooltip/index.js +14 -0
- package/dist/core/branch/Tooltip/index.js.map +1 -0
- package/dist/core/classNames.d.ts.map +1 -1
- package/dist/core/classNames.js +3 -3
- package/dist/core/classNames.js.map +1 -1
- package/dist/core/composite/EmptyNotice/index.d.ts +17 -0
- package/dist/core/composite/EmptyNotice/index.d.ts.map +1 -0
- package/dist/core/composite/EmptyNotice/index.js +7 -0
- package/dist/core/composite/EmptyNotice/index.js.map +1 -0
- package/dist/core/composite/HorizontalScrollRegion/index.d.ts +2 -0
- package/dist/core/composite/HorizontalScrollRegion/index.d.ts.map +1 -1
- package/dist/core/composite/HorizontalScrollRegion/index.js +5 -2
- package/dist/core/composite/HorizontalScrollRegion/index.js.map +1 -1
- package/dist/core/composite/StaticStateRow/index.d.ts.map +1 -1
- package/dist/core/composite/StaticStateRow/index.js +1 -1
- package/dist/core/composite/StaticStateRow/index.js.map +1 -1
- package/dist/core/composite/VerticalScrollRegion/index.d.ts +2 -0
- package/dist/core/composite/VerticalScrollRegion/index.d.ts.map +1 -1
- package/dist/core/composite/VerticalScrollRegion/index.js +2 -2
- package/dist/core/composite/VerticalScrollRegion/index.js.map +1 -1
- package/dist/core/composition/ChatWorkspace/classNames.d.ts +30 -0
- package/dist/core/composition/ChatWorkspace/classNames.d.ts.map +1 -0
- package/dist/core/composition/ChatWorkspace/classNames.js +31 -0
- package/dist/core/composition/ChatWorkspace/classNames.js.map +1 -0
- package/dist/core/composition/ChatWorkspace/index.d.ts +48 -0
- package/dist/core/composition/ChatWorkspace/index.d.ts.map +1 -0
- package/dist/core/composition/ChatWorkspace/index.js +40 -0
- package/dist/core/composition/ChatWorkspace/index.js.map +1 -0
- package/dist/core/composition/NavigationFeatureNav/classNames.d.ts +9 -0
- package/dist/core/composition/NavigationFeatureNav/classNames.d.ts.map +1 -0
- package/dist/core/composition/NavigationFeatureNav/classNames.js +10 -0
- package/dist/core/composition/NavigationFeatureNav/classNames.js.map +1 -0
- package/dist/core/composition/NavigationFeatureNav/index.d.ts +26 -0
- package/dist/core/composition/NavigationFeatureNav/index.d.ts.map +1 -0
- package/dist/core/composition/NavigationFeatureNav/index.js +13 -0
- package/dist/core/composition/NavigationFeatureNav/index.js.map +1 -0
- package/dist/core/composition/PrimaryRailLayout/index.d.ts +14 -0
- package/dist/core/composition/PrimaryRailLayout/index.d.ts.map +1 -0
- package/dist/core/composition/PrimaryRailLayout/index.js +8 -0
- package/dist/core/composition/PrimaryRailLayout/index.js.map +1 -0
- package/dist/core/composition/Sidebar/index.d.ts +31 -0
- package/dist/core/composition/Sidebar/index.d.ts.map +1 -0
- package/dist/core/composition/Sidebar/index.js +40 -0
- package/dist/core/composition/Sidebar/index.js.map +1 -0
- package/dist/core/composition/WorkspaceShell/classNames.d.ts +11 -0
- package/dist/core/composition/WorkspaceShell/classNames.d.ts.map +1 -0
- package/dist/core/composition/WorkspaceShell/classNames.js +12 -0
- package/dist/core/composition/WorkspaceShell/classNames.js.map +1 -0
- package/dist/core/composition/WorkspaceShell/index.d.ts +67 -0
- package/dist/core/composition/WorkspaceShell/index.d.ts.map +1 -0
- package/dist/core/composition/WorkspaceShell/index.js +20 -0
- package/dist/core/composition/WorkspaceShell/index.js.map +1 -0
- package/dist/core/dna.d.ts +180 -0
- package/dist/core/dna.d.ts.map +1 -0
- package/dist/core/dna.js +175 -0
- package/dist/core/dna.js.map +1 -0
- package/dist/core/index.d.ts +58 -11
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +27 -11
- package/dist/core/index.js.map +1 -1
- package/dist/core/primitive/Badge/index.d.ts +12 -0
- package/dist/core/primitive/Badge/index.d.ts.map +1 -0
- package/dist/core/primitive/Badge/index.js +15 -0
- package/dist/core/primitive/Badge/index.js.map +1 -0
- package/dist/core/primitive/Button/index.d.ts +52 -0
- package/dist/core/primitive/Button/index.d.ts.map +1 -0
- package/dist/core/primitive/Button/index.js +26 -0
- package/dist/core/primitive/Button/index.js.map +1 -0
- package/dist/core/primitive/Divider/index.d.ts +7 -0
- package/dist/core/primitive/Divider/index.d.ts.map +1 -0
- package/dist/core/primitive/Divider/index.js +5 -0
- package/dist/core/primitive/Divider/index.js.map +1 -0
- package/dist/core/primitive/GrammarRoot/index.d.ts +10 -0
- package/dist/core/primitive/GrammarRoot/index.d.ts.map +1 -0
- package/dist/core/primitive/GrammarRoot/index.js +5 -0
- package/dist/core/primitive/GrammarRoot/index.js.map +1 -0
- package/dist/core/primitive/Heading/index.d.ts +15 -0
- package/dist/core/primitive/Heading/index.d.ts.map +1 -0
- package/dist/core/primitive/Heading/index.js +26 -0
- package/dist/core/primitive/Heading/index.js.map +1 -0
- package/dist/core/primitive/Icon/index.d.ts +31 -0
- package/dist/core/primitive/Icon/index.d.ts.map +1 -0
- package/dist/core/primitive/Icon/index.js +23 -0
- package/dist/core/primitive/Icon/index.js.map +1 -0
- package/dist/core/primitive/IconButton/index.d.ts +13 -0
- package/dist/core/primitive/IconButton/index.d.ts.map +1 -0
- package/dist/core/primitive/IconButton/index.js +9 -0
- package/dist/core/primitive/IconButton/index.js.map +1 -0
- package/dist/core/primitive/IconTile/index.d.ts +17 -0
- package/dist/core/primitive/IconTile/index.d.ts.map +1 -0
- package/dist/core/primitive/IconTile/index.js +32 -0
- package/dist/core/primitive/IconTile/index.js.map +1 -0
- package/dist/core/primitive/IncludedMark/index.d.ts +10 -0
- package/dist/core/primitive/IncludedMark/index.d.ts.map +1 -0
- package/dist/core/primitive/IncludedMark/index.js +8 -0
- package/dist/core/primitive/IncludedMark/index.js.map +1 -0
- package/dist/core/primitive/Input/index.d.ts +31 -0
- package/dist/core/primitive/Input/index.d.ts.map +1 -0
- package/dist/core/primitive/Input/index.js +27 -0
- package/dist/core/primitive/Input/index.js.map +1 -0
- package/dist/core/primitive/Label/classNames.d.ts +12 -0
- package/dist/core/primitive/Label/classNames.d.ts.map +1 -0
- package/dist/core/primitive/Label/classNames.js +13 -0
- package/dist/core/primitive/Label/classNames.js.map +1 -0
- package/dist/core/primitive/Label/index.d.ts +11 -0
- package/dist/core/primitive/Label/index.d.ts.map +1 -0
- package/dist/core/primitive/Label/index.js +14 -0
- package/dist/core/primitive/Label/index.js.map +1 -0
- package/dist/core/primitive/MediaFrame/index.d.ts +15 -0
- package/dist/core/primitive/MediaFrame/index.d.ts.map +1 -0
- package/dist/core/primitive/MediaFrame/index.js +8 -0
- package/dist/core/primitive/MediaFrame/index.js.map +1 -0
- package/dist/core/primitive/PageContainer/index.d.ts +9 -0
- package/dist/core/primitive/PageContainer/index.d.ts.map +1 -0
- package/dist/core/primitive/PageContainer/index.js +8 -0
- package/dist/core/primitive/PageContainer/index.js.map +1 -0
- package/dist/core/primitive/Progress/index.d.ts +11 -0
- package/dist/core/primitive/Progress/index.d.ts.map +1 -0
- package/dist/core/primitive/Progress/index.js +13 -0
- package/dist/core/primitive/Progress/index.js.map +1 -0
- package/dist/core/primitive/RankArtwork/index.d.ts +12 -0
- package/dist/core/primitive/RankArtwork/index.d.ts.map +1 -0
- package/dist/core/primitive/RankArtwork/index.js +14 -0
- package/dist/core/primitive/RankArtwork/index.js.map +1 -0
- package/dist/core/primitive/SectionHeader/index.d.ts +15 -0
- package/dist/core/primitive/SectionHeader/index.d.ts.map +1 -0
- package/dist/core/primitive/SectionHeader/index.js +6 -0
- package/dist/core/primitive/SectionHeader/index.js.map +1 -0
- package/dist/core/primitive/SurfaceCopyGroup/index.d.ts +7 -0
- package/dist/core/primitive/SurfaceCopyGroup/index.d.ts.map +1 -0
- package/dist/core/primitive/SurfaceCopyGroup/index.js +5 -0
- package/dist/core/primitive/SurfaceCopyGroup/index.js.map +1 -0
- package/dist/core/primitive/Text/index.d.ts +25 -0
- package/dist/core/primitive/Text/index.d.ts.map +1 -0
- package/dist/core/primitive/Text/index.js +57 -0
- package/dist/core/primitive/Text/index.js.map +1 -0
- package/dist/core/primitive/TextAction/index.d.ts +45 -0
- package/dist/core/primitive/TextAction/index.d.ts.map +1 -0
- package/dist/core/primitive/TextAction/index.js +112 -0
- package/dist/core/primitive/TextAction/index.js.map +1 -0
- package/dist/core/primitive/actionStyles.d.ts +5 -0
- package/dist/core/primitive/actionStyles.d.ts.map +1 -0
- package/dist/core/primitive/actionStyles.js +19 -0
- package/dist/core/primitive/actionStyles.js.map +1 -0
- package/dist/core/state.d.ts +2 -2
- package/dist/core/state.js +1 -1
- package/dist/core/styles.css +163 -592
- package/dist/heritage/index.d.ts +27 -0
- package/dist/heritage/index.d.ts.map +1 -0
- package/dist/heritage/index.js +44 -0
- package/dist/heritage/index.js.map +1 -0
- package/dist/heritage/styles.css +165 -0
- package/dist/offset-pop/index.d.ts +12 -0
- package/dist/offset-pop/index.d.ts.map +1 -0
- package/dist/offset-pop/index.js +41 -0
- package/dist/offset-pop/index.js.map +1 -0
- package/dist/offset-pop/styles.css +292 -393
- package/package.json +78 -68
- package/dist/core/scrollable-surfaces.spec.d.ts +0 -2
- package/dist/core/scrollable-surfaces.spec.d.ts.map +0 -1
- package/dist/core/scrollable-surfaces.spec.js +0 -37
- package/dist/core/scrollable-surfaces.spec.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,44 +1,79 @@
|
|
|
1
|
-
# `@starci/grammar`
|
|
2
|
-
|
|
3
|
-
`@starci/grammar`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
- `@starci/grammar/
|
|
11
|
-
|
|
12
|
-
- `@starci/grammar/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
# `@starci/grammar`
|
|
2
|
+
|
|
3
|
+
`@starci/grammar` separates one shared, business-free UI contract from sibling visual families.
|
|
4
|
+
Common owns typed props, semantics, renderer anatomy, universal states/scales, and the family
|
|
5
|
+
registry. Core, Heritage, and Offset Pop implement that contract with independently scoped visual
|
|
6
|
+
DNA. The package contains no routes, domain entities, product decisions, or feature-named shells.
|
|
7
|
+
|
|
8
|
+
## Public entry points
|
|
9
|
+
|
|
10
|
+
- `@starci/grammar/common` — shared React renderers, presentation-state helpers, and their CSS. Anonymous layout/action owners include `WorkspaceShell`, `Sidebar`, `Link`, and `TextAction`.
|
|
11
|
+
- `@starci/grammar/core` — the StarCi Core family, its scoped root, DNA, and compatibility aliases.
|
|
12
|
+
- `@starci/grammar/heritage` and `@starci/grammar/offset-pop` — sibling family roots,
|
|
13
|
+
conformance receipts, and scoped visual overlays.
|
|
14
|
+
- `@starci/grammar/common/styles.css`, `@starci/grammar/core/styles.css`,
|
|
15
|
+
`@starci/grammar/heritage/styles.css`, and
|
|
16
|
+
`@starci/grammar/offset-pop/styles.css` — package stylesheets. Short `.css` export aliases are
|
|
17
|
+
also available.
|
|
18
|
+
|
|
19
|
+
Install the workspace package while developing locally:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npm install ./packages/grammar
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Import components from the focused entry point:
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import {
|
|
29
|
+
PageContainer,
|
|
30
|
+
PrimaryRailLayout,
|
|
31
|
+
SurfaceCard,
|
|
32
|
+
} from "@starci/grammar/common"
|
|
33
|
+
import { CoreGrammarRoot } from "@starci/grammar/core"
|
|
26
34
|
import "@starci/grammar/core/styles.css"
|
|
35
|
+
|
|
36
|
+
export const ProductSurface = () => (
|
|
37
|
+
<CoreGrammarRoot>
|
|
38
|
+
<PageContainer>
|
|
39
|
+
<PrimaryRailLayout
|
|
40
|
+
primary={<SurfaceCard ariaLabel="Main">...</SurfaceCard>}
|
|
41
|
+
rail={<SurfaceCard ariaLabel="Progress">...</SurfaceCard>}
|
|
42
|
+
/>
|
|
43
|
+
</PageContainer>
|
|
44
|
+
</CoreGrammarRoot>
|
|
45
|
+
)
|
|
27
46
|
```
|
|
28
47
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
48
|
+
`GrammarRoot` from Common is neutral. `CoreGrammarRoot` applies `data-grammar-family="core"` and
|
|
49
|
+
the Core stylesheet imports Common anatomy before adding StarCi light, dark, system, forced-colour,
|
|
50
|
+
and HeroUI-compatible tokens. `STARCI_CORE_DNA` exposes the immutable
|
|
51
|
+
design values, `STARCI_CORE_SPACING_SCALE` exposes the canonical 4px spacing steps,
|
|
52
|
+
`STARCI_CORE_TOKEN_NAMES` exposes their CSS adaptation contract, and
|
|
53
|
+
`STARCI_CORE_TOKEN_DEFAULTS` / `STARCI_CORE_DARK_TOKEN_DEFAULTS` expose the exact packaged values.
|
|
34
54
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
npm run typecheck
|
|
39
|
-
npm test
|
|
40
|
-
npm pack --dry-run
|
|
41
|
-
```
|
|
55
|
+
Heritage and Offset Pop replace only the neutral family root; every other Common renderer and prop
|
|
56
|
+
contract is inherited. Each family stylesheet imports Common anatomy directly and never imports a
|
|
57
|
+
sibling family stylesheet.
|
|
42
58
|
|
|
43
|
-
|
|
44
|
-
|
|
59
|
+
`IncludedMark` is the purpose-named 20px outlined circle-check for included offering content; it
|
|
60
|
+
inherits foreground and never claims completion. `SurfaceCopyGroup` packages Core's compact `0.5rem`
|
|
61
|
+
title/explanation rhythm. A `SurfaceCard` without `wholeAction` identifies itself as `static`, which
|
|
62
|
+
is the appropriate comparison surface when its short facts must remain visible together.
|
|
63
|
+
|
|
64
|
+
Common components accept ordinary typed React props and keep semantic DOM and accessibility behavior.
|
|
65
|
+
The application translates business data into those props; a family changes presentation only.
|
|
66
|
+
`MediaFrame` presents an already selected asset and never decides whether to generate one. The
|
|
67
|
+
machine-checkable `COMMON_UI_RULE_IDS`/`defineGrammarRuleConformance` boundary verifies that each
|
|
68
|
+
family accounts for the canonical UI X-n catalog without copying the laws into package code.
|
|
69
|
+
|
|
70
|
+
## Package checks
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
npm run typecheck
|
|
74
|
+
npm test
|
|
75
|
+
npm pack --dry-run
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The package requires Node.js 20 or newer and has peer dependencies on React 18+ and
|
|
79
|
+
`@heroui/react` 3.2+.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { RULE_FAMILY_COUNTS } from "./rule-catalog.generated.js";
|
|
2
|
+
/**
|
|
3
|
+
* The catalog is GENERATED, not transcribed.
|
|
4
|
+
*
|
|
5
|
+
* The table that used to live here was a hand-typed copy of the knowledge tree's family list, and
|
|
6
|
+
* a copy is only correct on the day it is typed. By the time anyone looked, `accessibility` had
|
|
7
|
+
* renamed its ids from `ACCESSIBILITY-n` to `A11Y-n`, `render-truth` published `TRUTH-n`,
|
|
8
|
+
* `text-flow` published `FLOW-n`, and MEASURE, OVERFLOW and TONE had appeared - none of which the
|
|
9
|
+
* table knew, while three of its families named rules that no longer existed anywhere. Every
|
|
10
|
+
* conformance check went on passing against the wrong catalog, which is the worst outcome a check
|
|
11
|
+
* can have.
|
|
12
|
+
*
|
|
13
|
+
* Regenerate with `node scripts/generate-rule-catalog.mjs [knowledgeDir]` from the package root.
|
|
14
|
+
*/
|
|
15
|
+
export { RULE_FAMILY_COUNTS };
|
|
16
|
+
/** Every canonical Common UI rule id, exactly as the knowledge tree spells it. */
|
|
17
|
+
export declare const COMMON_UI_RULE_IDS: readonly string[];
|
|
18
|
+
export type GrammarRuleConformance = {
|
|
19
|
+
readonly familyId: string;
|
|
20
|
+
readonly inheritedCommonRules: ReadonlyArray<string>;
|
|
21
|
+
readonly familyEvidence: Readonly<Record<string, ReadonlyArray<string>>>;
|
|
22
|
+
};
|
|
23
|
+
/** Machine-checkable family coverage against the canonical knowledge/ui X-n catalog. */
|
|
24
|
+
export declare const defineGrammarRuleConformance: (definition: GrammarRuleConformance) => Readonly<{
|
|
25
|
+
familyId: string;
|
|
26
|
+
inheritedCommonRules: readonly string[];
|
|
27
|
+
familyEvidence: Readonly<{
|
|
28
|
+
[x: string]: readonly string[];
|
|
29
|
+
}>;
|
|
30
|
+
}>;
|
|
31
|
+
//# sourceMappingURL=conformance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../../src/common/conformance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAEpF;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAE7B,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,mBAAqB,CAAA;AAEpD,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IACpD,QAAQ,CAAC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;CAC3E,CAAA;AAED,wFAAwF;AACxF,eAAO,MAAM,4BAA4B,GAAI,YAAY,sBAAsB;;;;;;EAa9E,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CANONICAL_RULE_IDS, RULE_FAMILY_COUNTS } from "./rule-catalog.generated.js";
|
|
2
|
+
/**
|
|
3
|
+
* The catalog is GENERATED, not transcribed.
|
|
4
|
+
*
|
|
5
|
+
* The table that used to live here was a hand-typed copy of the knowledge tree's family list, and
|
|
6
|
+
* a copy is only correct on the day it is typed. By the time anyone looked, `accessibility` had
|
|
7
|
+
* renamed its ids from `ACCESSIBILITY-n` to `A11Y-n`, `render-truth` published `TRUTH-n`,
|
|
8
|
+
* `text-flow` published `FLOW-n`, and MEASURE, OVERFLOW and TONE had appeared - none of which the
|
|
9
|
+
* table knew, while three of its families named rules that no longer existed anywhere. Every
|
|
10
|
+
* conformance check went on passing against the wrong catalog, which is the worst outcome a check
|
|
11
|
+
* can have.
|
|
12
|
+
*
|
|
13
|
+
* Regenerate with `node scripts/generate-rule-catalog.mjs [knowledgeDir]` from the package root.
|
|
14
|
+
*/
|
|
15
|
+
export { RULE_FAMILY_COUNTS };
|
|
16
|
+
/** Every canonical Common UI rule id, exactly as the knowledge tree spells it. */
|
|
17
|
+
export const COMMON_UI_RULE_IDS = CANONICAL_RULE_IDS;
|
|
18
|
+
/** Machine-checkable family coverage against the canonical knowledge/ui X-n catalog. */
|
|
19
|
+
export const defineGrammarRuleConformance = (definition) => {
|
|
20
|
+
const inherited = new Set(definition.inheritedCommonRules);
|
|
21
|
+
const evidence = new Set(Object.keys(definition.familyEvidence));
|
|
22
|
+
const missing = COMMON_UI_RULE_IDS.filter((rule) => !inherited.has(rule) && !evidence.has(rule));
|
|
23
|
+
const unknown = [...inherited, ...evidence].filter((rule) => !COMMON_UI_RULE_IDS.includes(rule));
|
|
24
|
+
if (missing.length > 0 || unknown.length > 0) {
|
|
25
|
+
throw new TypeError(`Invalid ${definition.familyId} Grammar conformance: missing=[${missing.join(", ")}], unknown=[${unknown.join(", ")}]`);
|
|
26
|
+
}
|
|
27
|
+
return Object.freeze({
|
|
28
|
+
familyId: definition.familyId,
|
|
29
|
+
inheritedCommonRules: Object.freeze([...definition.inheritedCommonRules]),
|
|
30
|
+
familyEvidence: Object.freeze({ ...definition.familyEvidence }),
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=conformance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformance.js","sourceRoot":"","sources":["../../src/common/conformance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAEpF;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAE7B,kFAAkF;AAClF,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAA;AAQpD,wFAAwF;AACxF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,UAAkC,EAAE,EAAE;IAC/E,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAA;IAC1D,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAA;IAChE,MAAM,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAA;IAChG,MAAM,OAAO,GAAG,CAAC,GAAG,SAAS,EAAE,GAAG,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;IAChG,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3C,MAAM,IAAI,SAAS,CAAC,WAAW,UAAU,CAAC,QAAQ,kCAAkC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC/I,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;QACjB,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;QACzE,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,UAAU,CAAC,cAAc,EAAE,CAAC;KAClE,CAAC,CAAA;AACN,CAAC,CAAA"}
|
package/dist/common/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export type
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export { PRESENTATION_STATES, assertPresentationState, isPresentationState, type PresentationState } from "./state.js";
|
|
2
|
+
export { COMMON_SPACING_SCALE, COMMON_SPACING_TOKENS, type CommonSpacingStep, type CommonSpacingValue } from "./spacing.js";
|
|
3
|
+
export { COMMON_UI_RULE_IDS, defineGrammarRuleConformance, type GrammarRuleConformance } from "./conformance.js";
|
|
4
|
+
export * from "./renderers.js";
|
|
5
|
+
export { COMMON_GRAMMAR_COMPONENTS, defineGrammarFamily, type CommonGrammarComponentName, type GrammarComponentRenderer, type GrammarFamilyContract, type GrammarFamilyStyles, } from "./registry.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACtH,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC3H,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAChH,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EACH,yBAAyB,EACzB,mBAAmB,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GAC3B,MAAM,eAAe,CAAA"}
|
package/dist/common/index.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const isPresentationState = (value) => (typeof value === "string" && stateSet.has(value));
|
|
7
|
-
export const assertPresentationState = (value) => {
|
|
8
|
-
if (!isPresentationState(value))
|
|
9
|
-
throw new TypeError(`Unknown presentation state: ${JSON.stringify(value)}`);
|
|
10
|
-
};
|
|
1
|
+
export { PRESENTATION_STATES, assertPresentationState, isPresentationState } from "./state.js";
|
|
2
|
+
export { COMMON_SPACING_SCALE, COMMON_SPACING_TOKENS } from "./spacing.js";
|
|
3
|
+
export { COMMON_UI_RULE_IDS, defineGrammarRuleConformance } from "./conformance.js";
|
|
4
|
+
export * from "./renderers.js";
|
|
5
|
+
export { COMMON_GRAMMAR_COMPONENTS, defineGrammarFamily, } from "./registry.js";
|
|
11
6
|
//# sourceMappingURL=index.js.map
|
package/dist/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,mBAAmB,EAA0B,MAAM,YAAY,CAAA;AACtH,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAmD,MAAM,cAAc,CAAA;AAC3H,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAA+B,MAAM,kBAAkB,CAAA;AAChH,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EACH,yBAAyB,EACzB,mBAAmB,GAKtB,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { ComponentProps, ComponentType, ElementType } from "react";
|
|
2
|
+
export type GrammarComponentRenderer<Props> = ComponentType<Props>;
|
|
3
|
+
type GrammarRendererRegistry = Readonly<Record<string, ElementType>>;
|
|
4
|
+
type CompatibleReplacements<Common extends GrammarRendererRegistry> = {
|
|
5
|
+
readonly [Name in keyof Common]?: GrammarComponentRenderer<ComponentProps<Common[Name]>>;
|
|
6
|
+
};
|
|
7
|
+
type ExtensionWithoutCommonCollisions<Common extends GrammarRendererRegistry, Extensions extends GrammarRendererRegistry> = Extensions & {
|
|
8
|
+
readonly [Name in Extract<keyof Extensions, keyof Common>]: never;
|
|
9
|
+
};
|
|
10
|
+
export declare const COMMON_GRAMMAR_COMPONENTS: Readonly<{
|
|
11
|
+
readonly Badge: ({ children, startContent, tone, isSkeleton }: import("./renderers.js").BadgeProps) => import("react").JSX.Element;
|
|
12
|
+
readonly Button: (props: import("./renderers.js").ButtonProps) => import("react").JSX.Element;
|
|
13
|
+
readonly ChatWorkspace: (props: import("./renderers.js").ChatWorkspaceProps) => import("react").JSX.Element;
|
|
14
|
+
readonly Divider: ({ label }: import("./renderers.js").DividerProps) => import("react").JSX.Element;
|
|
15
|
+
readonly EmptyNotice: ({ message, description, iconSource, actionLabel, actionStartContent, actionVariant, isActionPending, onAction, }: import("./renderers.js").EmptyNoticeProps) => import("react").JSX.Element;
|
|
16
|
+
readonly FencedCodeBlock: (props: import("./renderers.js").FencedCodeBlockProps) => import("react").JSX.Element;
|
|
17
|
+
readonly GrammarRoot: ({ className, theme, ...props }: import("./renderers.js").GrammarRootProps) => import("react").JSX.Element;
|
|
18
|
+
readonly Heading: ({ children, level, scale, isSkeleton, isVisuallyHidden, }: import("./renderers.js").HeadingProps) => import("react").JSX.Element;
|
|
19
|
+
readonly HorizontalScrollRegion: import("react").ForwardRefExoticComponent<Omit<import("./renderers.js").HorizontalScrollRegionProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
readonly Icon: ({ source: Source, usage, ariaLabel, isSkeleton }: import("./renderers.js").IconProps) => import("react").JSX.Element;
|
|
21
|
+
readonly IconButton: ({ source, label, isActive, isDisabled, isSkeleton, onPress, }: import("./renderers.js").IconButtonProps) => import("react").JSX.Element;
|
|
22
|
+
readonly IconTile: ({ source, artwork, ariaLabel, tone, size, isSkeleton, }: import("./renderers.js").IconTileProps) => import("react").JSX.Element;
|
|
23
|
+
readonly IncludedMark: ({ className, label, ...props }: import("./renderers.js").IncludedMarkProps) => import("react").JSX.Element;
|
|
24
|
+
readonly Input: ({ id, name, label, kind: kindName, variant, placeholder, defaultValue, value, hint, errorMessage, isError, isDisabled, isRequired, isSkeleton, revealLabel, hideLabel, revealIcon: RevealIcon, hideIcon: HideIcon, onValueChange, }: import("./renderers.js").InputProps) => import("react").JSX.Element;
|
|
25
|
+
readonly Label: ({ id, children, depth, as }: import("./renderers.js").LabelProps) => import("react").JSX.Element;
|
|
26
|
+
readonly LeadingNumber: (props: import("./renderers.js").LeadingNumberProps) => import("react").JSX.Element;
|
|
27
|
+
readonly MarkdownArticle: (props: import("./renderers.js").MarkdownArticleProps) => import("react").JSX.Element;
|
|
28
|
+
readonly MarkdownTableFrame: (props: import("./renderers.js").MarkdownTableFrameProps) => import("react").JSX.Element;
|
|
29
|
+
readonly MediaFrame: ({ children, caption, aspect, fit, treatment, className, }: import("./renderers.js").MediaFrameProps) => import("react").JSX.Element;
|
|
30
|
+
readonly NavigationFeatureNav: ({ identity, navigation, navigationLabel, compactNavigationTrigger, compactNavigationTriggerLabel, actions, actionsLabel, featureNavigation, featureNavigationLabel, measure, position, className, ...headerProps }: import("./renderers.js").NavigationFeatureNavProps) => import("react").JSX.Element;
|
|
31
|
+
readonly OtpInput: (props: import("./renderers.js").OtpInputProps) => import("react").JSX.Element;
|
|
32
|
+
readonly PageContainer: ({ className, measure, ...props }: import("./renderers.js").PageContainerProps) => import("react").JSX.Element;
|
|
33
|
+
readonly PrimaryRailLayout: ({ primary, rail, railWidth, align, className, }: import("./renderers.js").PrimaryRailLayoutProps) => import("react").JSX.Element;
|
|
34
|
+
readonly Progress: ({ label, value, isSkeleton }: import("./renderers.js").ProgressProps) => import("react").JSX.Element;
|
|
35
|
+
readonly Rail: (props: import("./renderers.js").RailProps) => import("react").JSX.Element;
|
|
36
|
+
readonly RankArtwork: ({ className, kind, label, ...props }: import("./renderers.js").RankArtworkProps) => import("react").JSX.Element;
|
|
37
|
+
readonly SectionHeader: ({ title, description, eyebrow, action, level, className, id, composition, }: import("./renderers.js").SectionHeaderProps) => import("react").JSX.Element;
|
|
38
|
+
readonly Sidebar: ({ label, groups, selectedKey, presentation, isCollapsed, collapseLabel, expandLabel, toggleSource, header, footer, onAction, onCollapsedChange, }: import("./renderers.js").SidebarProps) => import("react").JSX.Element;
|
|
39
|
+
readonly StateMark: (props: import("./renderers.js").StateMarkProps) => import("react").JSX.Element | null;
|
|
40
|
+
readonly StaticStateRow: (props: import("./renderers.js").StaticStateRowProps) => import("react").JSX.Element;
|
|
41
|
+
readonly Subnav: ({ label, title, leading, menuIcon, openMenuLabel, closeMenuLabel, isMenuOpen, onMenuOpenChange, position, visibility, className, ...navProps }: import("./renderers.js").SubnavProps) => import("react").JSX.Element;
|
|
42
|
+
readonly SurfaceAccordionCard: <Summary, Body>(props: import("./renderers.js").SurfaceAccordionCardProps<Summary, Body>) => import("react").JSX.Element;
|
|
43
|
+
readonly SurfaceCard: (props: import("./renderers.js").SurfaceCardProps) => import("react").JSX.Element;
|
|
44
|
+
readonly SurfaceCopyGroup: ({ className, density, ...props }: import("./renderers.js").SurfaceCopyGroupProps) => import("react").JSX.Element;
|
|
45
|
+
readonly SurfaceListCard: (props: import("./renderers.js").SurfaceListCardProps) => import("react").JSX.Element;
|
|
46
|
+
readonly Tabs: (props: import("./renderers.js").TabsProps) => import("react").JSX.Element;
|
|
47
|
+
readonly Text: ({ as: Element, id, children, startContent, size, tone, weight, live, isSkeleton, isSuperseded, parentEmphasis, }: import("./renderers.js").TextProps) => import("react").JSX.Element;
|
|
48
|
+
readonly TextAction: (props: import("./renderers.js").TextActionProps) => import("react").JSX.Element;
|
|
49
|
+
readonly Tooltip: ({ content, children, placement, }: import("./renderers.js").TooltipProps) => import("react").JSX.Element;
|
|
50
|
+
readonly VerticalScrollRegion: (props: import("./renderers.js").VerticalScrollRegionProps) => import("react").JSX.Element;
|
|
51
|
+
readonly WorkspaceShell: (props: import("./renderers.js").WorkspaceShellProps) => import("react").JSX.Element;
|
|
52
|
+
}>;
|
|
53
|
+
export type CommonGrammarComponentName = keyof typeof COMMON_GRAMMAR_COMPONENTS;
|
|
54
|
+
export type GrammarFamilyStyles<FamilyId extends string> = {
|
|
55
|
+
readonly entrypoint: `@starci/grammar/${string}/styles.css`;
|
|
56
|
+
readonly scope: {
|
|
57
|
+
readonly attribute: "data-grammar-family";
|
|
58
|
+
readonly value: FamilyId;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export type GrammarFamilyContract<FamilyId extends string, Extensions extends GrammarRendererRegistry> = {
|
|
62
|
+
readonly id: FamilyId;
|
|
63
|
+
readonly styles: GrammarFamilyStyles<FamilyId>;
|
|
64
|
+
readonly components: Readonly<typeof COMMON_GRAMMAR_COMPONENTS & Extensions>;
|
|
65
|
+
readonly scopeProps: Readonly<{
|
|
66
|
+
"data-grammar-family": FamilyId;
|
|
67
|
+
}>;
|
|
68
|
+
};
|
|
69
|
+
/** Define one visual family over the stable Common semantic contract. */
|
|
70
|
+
export declare const defineGrammarFamily: <const FamilyId extends string, const Replacements extends CompatibleReplacements<typeof COMMON_GRAMMAR_COMPONENTS>, const Extensions extends GrammarRendererRegistry>(definition: {
|
|
71
|
+
readonly id: FamilyId;
|
|
72
|
+
readonly styles: GrammarFamilyStyles<FamilyId>;
|
|
73
|
+
readonly components: {
|
|
74
|
+
readonly replacements: Replacements;
|
|
75
|
+
readonly extensions: ExtensionWithoutCommonCollisions<typeof COMMON_GRAMMAR_COMPONENTS, Extensions>;
|
|
76
|
+
};
|
|
77
|
+
}) => GrammarFamilyContract<FamilyId, Extensions>;
|
|
78
|
+
export {};
|
|
79
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/common/registry.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAEvE,MAAM,MAAM,wBAAwB,CAAC,KAAK,IAAI,aAAa,CAAC,KAAK,CAAC,CAAA;AAClE,KAAK,uBAAuB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAA;AACpE,KAAK,sBAAsB,CAAC,MAAM,SAAS,uBAAuB,IAAI;IAClE,QAAQ,EAAE,IAAI,IAAI,MAAM,MAAM,CAAC,CAAC,EAAE,wBAAwB,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;CAC3F,CAAA;AACD,KAAK,gCAAgC,CAAC,MAAM,SAAS,uBAAuB,EAAE,UAAU,SAAS,uBAAuB,IACpH,UAAU,GAAG;IAAE,QAAQ,EAAE,IAAI,IAAI,OAAO,CAAC,MAAM,UAAU,EAAE,MAAM,MAAM,CAAC,GAAG,KAAK;CAAE,CAAA;AAEtF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ3B,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AU,CAuB7C,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Badge, Button, ChatWorkspace, Divider, EmptyNotice, FencedCodeBlock, GrammarRoot, Heading, HorizontalScrollRegion, Icon, IconButton, IconTile, IncludedMark, Input, Label, LeadingNumber, MarkdownArticle, MarkdownTableFrame, MediaFrame, NavigationFeatureNav, OtpInput, PageContainer, PrimaryRailLayout, Progress, Rail, RankArtwork, SectionHeader, Sidebar, StateMark, StaticStateRow, Subnav, SurfaceAccordionCard, SurfaceCard, SurfaceCopyGroup, SurfaceListCard, Tabs, Text, TextAction, Tooltip, VerticalScrollRegion, WorkspaceShell, } from "./renderers.js";
|
|
3
|
+
export const COMMON_GRAMMAR_COMPONENTS = Object.freeze({
|
|
4
|
+
Badge, Button, ChatWorkspace, Divider, EmptyNotice, FencedCodeBlock, GrammarRoot,
|
|
5
|
+
Heading, HorizontalScrollRegion, Icon, IconButton, IconTile, IncludedMark, Input,
|
|
6
|
+
Label, LeadingNumber, MarkdownArticle, MarkdownTableFrame, MediaFrame,
|
|
7
|
+
NavigationFeatureNav, OtpInput, PageContainer, PrimaryRailLayout, Progress, Rail,
|
|
8
|
+
RankArtwork, SectionHeader, Sidebar, StateMark, StaticStateRow, Subnav,
|
|
9
|
+
SurfaceAccordionCard, SurfaceCard, SurfaceCopyGroup, SurfaceListCard, Tabs, Text,
|
|
10
|
+
TextAction, Tooltip, VerticalScrollRegion, WorkspaceShell,
|
|
11
|
+
});
|
|
12
|
+
/** Define one visual family over the stable Common semantic contract. */
|
|
13
|
+
export const defineGrammarFamily = (definition) => {
|
|
14
|
+
if (definition.styles.scope.value !== definition.id) {
|
|
15
|
+
throw new TypeError("Grammar family CSS scope must match the family id");
|
|
16
|
+
}
|
|
17
|
+
for (const name of Object.keys(definition.components.replacements)) {
|
|
18
|
+
if (!(name in COMMON_GRAMMAR_COMPONENTS))
|
|
19
|
+
throw new TypeError(`Cannot replace unknown Common component: ${name}`);
|
|
20
|
+
}
|
|
21
|
+
for (const name of Object.keys(definition.components.extensions)) {
|
|
22
|
+
if (name in COMMON_GRAMMAR_COMPONENTS)
|
|
23
|
+
throw new TypeError(`Grammar extension collides with Common component: ${name}`);
|
|
24
|
+
}
|
|
25
|
+
const mergedComponents = {};
|
|
26
|
+
Object.assign(mergedComponents, COMMON_GRAMMAR_COMPONENTS, definition.components.replacements, definition.components.extensions);
|
|
27
|
+
return Object.freeze({
|
|
28
|
+
id: definition.id,
|
|
29
|
+
styles: Object.freeze({ entrypoint: definition.styles.entrypoint, scope: Object.freeze({ ...definition.styles.scope }) }),
|
|
30
|
+
components: Object.freeze(mergedComponents),
|
|
31
|
+
scopeProps: Object.freeze({ "data-grammar-family": definition.id }),
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/common/registry.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EACH,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAChF,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAChF,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,EAAE,UAAU,EACrE,oBAAoB,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAChF,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EACtE,oBAAoB,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EAChF,UAAU,EAAE,OAAO,EAAE,oBAAoB,EAAE,cAAc,GAC5D,MAAM,gBAAgB,CAAA;AAWvB,MAAM,CAAC,MAAM,yBAAyB,G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IACD,MAAM,gBAAgB,GAAgC,EAAE,CAAA;IACxD,MAAM,CAAC,MAAM,CACT,gBAAgB,EAChB,yBAAyB,EACzB,UAAU,CAAC,UAAU,CAAC,YAAY,EAClC,UAAU,CAAC,UAAU,CAAC,UAAU,CACnC,CAAA;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;QACjB,EAAE,EAAE,UAAU,CAAC,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC;QACzH,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAuE;QACjH,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,qBAAqB,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC;KACtE,CAAC,CAAA;AACN,CAAC,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { GrammarRoot, type GrammarRootProps } from "../core/primitive/GrammarRoot/index.js";
|
|
2
|
+
export { PageContainer, type PageContainerProps } from "../core/primitive/PageContainer/index.js";
|
|
3
|
+
export { Badge, type BadgeProps, type BadgeTone } from "../core/primitive/Badge/index.js";
|
|
4
|
+
export { Button, type ButtonProps, type ButtonSize, type ButtonType, type ButtonVariant } from "../core/primitive/Button/index.js";
|
|
5
|
+
export { Divider, type DividerProps } from "../core/primitive/Divider/index.js";
|
|
6
|
+
export { Heading, type HeadingLevel, type HeadingProps, type HeadingScale } from "../core/primitive/Heading/index.js";
|
|
7
|
+
export { Icon, type IconProps, type IconUsage, type IconSource, type IconSourceProps } from "../core/primitive/Icon/index.js";
|
|
8
|
+
export { IconTile, type IconTileProps, type IconTileSize, type IconTileTone } from "../core/primitive/IconTile/index.js";
|
|
9
|
+
export { IconButton, type IconButtonProps } from "../core/primitive/IconButton/index.js";
|
|
10
|
+
export { Label, type LabelProps } from "../core/primitive/Label/index.js";
|
|
11
|
+
export { Input, type InputKind, type InputProps, type InputVariant } from "../core/primitive/Input/index.js";
|
|
12
|
+
export { Progress, type ProgressProps } from "../core/primitive/Progress/index.js";
|
|
13
|
+
export { Text, type TextAs, type TextLive, type TextProps, type TextSize, type TextTone, type TextWeight } from "../core/primitive/Text/index.js";
|
|
14
|
+
export { TextAction, type TextActionAppearance, type TextActionProps, type TextActionSize } from "../core/primitive/TextAction/index.js";
|
|
15
|
+
export { SectionHeader, type SectionHeaderProps } from "../core/primitive/SectionHeader/index.js";
|
|
16
|
+
export { MediaFrame, type MediaFrameProps } from "../core/primitive/MediaFrame/index.js";
|
|
17
|
+
export { IncludedMark, type IncludedMarkProps } from "../core/primitive/IncludedMark/index.js";
|
|
18
|
+
export { RankArtwork, type RankArtworkKind, type RankArtworkProps } from "../core/primitive/RankArtwork/index.js";
|
|
19
|
+
export { SurfaceCopyGroup, type SurfaceCopyGroupProps } from "../core/primitive/SurfaceCopyGroup/index.js";
|
|
20
|
+
export { PrimaryRailLayout, type PrimaryRailLayoutProps } from "../core/composition/PrimaryRailLayout/index.js";
|
|
21
|
+
export { NavigationFeatureNav, type NavigationFeatureNavProps } from "../core/composition/NavigationFeatureNav/index.js";
|
|
22
|
+
export { Sidebar, type SidebarGroup, type SidebarItem, type SidebarProps } from "../core/composition/Sidebar/index.js";
|
|
23
|
+
export { WorkspaceShell, type WorkspaceShellProps } from "../core/composition/WorkspaceShell/index.js";
|
|
24
|
+
export { ChatWorkspace, type ChatWorkspaceProps } from "../core/composition/ChatWorkspace/index.js";
|
|
25
|
+
export { StateMark, type StateMarkProps } from "../core/StateMark.js";
|
|
26
|
+
export { LeadingNumber, type LeadingNumberProps } from "../core/LeadingNumber.js";
|
|
27
|
+
export { OtpInput, type OtpInputProps } from "../core/OtpInput.js";
|
|
28
|
+
export { StaticStateRow, type StaticStateRowData, type StaticStateRowProps } from "../core/composite/StaticStateRow/index.js";
|
|
29
|
+
export { EmptyNotice, type EmptyNoticeProps } from "../core/composite/EmptyNotice/index.js";
|
|
30
|
+
export { HorizontalScrollRegion, type HorizontalScrollRegionProps } from "../core/composite/HorizontalScrollRegion/index.js";
|
|
31
|
+
export { VerticalScrollRegion, type VerticalScrollRegionProps } from "../core/composite/VerticalScrollRegion/index.js";
|
|
32
|
+
export { SurfaceCard, type SurfaceCardProps, type WholeCardAction } from "../core/branch/SurfaceCard/index.js";
|
|
33
|
+
export { SurfaceListCard, type SurfaceListCardProps } from "../core/branch/SurfaceListCard/index.js";
|
|
34
|
+
export { FencedCodeBlock, MarkdownArticle, MarkdownTableFrame, type FencedCodeBlockProps, type MarkdownArticleProps, type MarkdownTableFrameProps } from "../core/branch/MarkdownArticle/index.js";
|
|
35
|
+
export { SurfaceAccordionCard, type SurfaceAccordionCardItem, type SurfaceAccordionCardProps } from "../core/branch/SurfaceAccordionCard/index.js";
|
|
36
|
+
export { Rail, type RailProps } from "../core/branch/Rail/index.js";
|
|
37
|
+
export { Subnav, type SubnavProps } from "../core/branch/Subnav/index.js";
|
|
38
|
+
export { Tabs, type TabItem, type TabsProps } from "../core/branch/Tabs/index.js";
|
|
39
|
+
export { Tooltip, type TooltipPlacement, type TooltipProps } from "../core/branch/Tooltip/index.js";
|
|
40
|
+
export { formCompactSurfaceClassName, formFieldClassName, formPageClassName, formScreenReaderLabelClassName, formScrollViewportClassName, formSurfaceClassName, horizontalScrollRegionClassName } from "../core/classNames.js";
|
|
41
|
+
//# sourceMappingURL=renderers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderers.d.ts","sourceRoot":"","sources":["../../src/common/renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAC3F,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AACjG,OAAO,EAAE,KAAK,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;AACtH,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAC9G,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AACpG,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,KAAK,uBAAuB,EAAE,MAAM,yCAAyC,CAAA;AAClM,OAAO,EAAE,oBAAoB,EAAE,KAAK,wBAAwB,EAAE,KAAK,yBAAyB,EAAE,MAAM,8CAA8C,CAAA;AAClJ,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,EAAE,IAAI,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACjF,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnG,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Common is the public semantic/props authority. Physical renderer paths remain
|
|
2
|
+
// internal compatibility storage until the package can move them without a
|
|
3
|
+
// breaking source-layout migration.
|
|
4
|
+
export { GrammarRoot } from "../core/primitive/GrammarRoot/index.js";
|
|
5
|
+
export { PageContainer } from "../core/primitive/PageContainer/index.js";
|
|
6
|
+
export { Badge } from "../core/primitive/Badge/index.js";
|
|
7
|
+
export { Button } from "../core/primitive/Button/index.js";
|
|
8
|
+
export { Divider } from "../core/primitive/Divider/index.js";
|
|
9
|
+
export { Heading } from "../core/primitive/Heading/index.js";
|
|
10
|
+
export { Icon } from "../core/primitive/Icon/index.js";
|
|
11
|
+
export { IconTile } from "../core/primitive/IconTile/index.js";
|
|
12
|
+
export { IconButton } from "../core/primitive/IconButton/index.js";
|
|
13
|
+
export { Label } from "../core/primitive/Label/index.js";
|
|
14
|
+
export { Input } from "../core/primitive/Input/index.js";
|
|
15
|
+
export { Progress } from "../core/primitive/Progress/index.js";
|
|
16
|
+
export { Text } from "../core/primitive/Text/index.js";
|
|
17
|
+
export { TextAction } from "../core/primitive/TextAction/index.js";
|
|
18
|
+
export { SectionHeader } from "../core/primitive/SectionHeader/index.js";
|
|
19
|
+
export { MediaFrame } from "../core/primitive/MediaFrame/index.js";
|
|
20
|
+
export { IncludedMark } from "../core/primitive/IncludedMark/index.js";
|
|
21
|
+
export { RankArtwork } from "../core/primitive/RankArtwork/index.js";
|
|
22
|
+
export { SurfaceCopyGroup } from "../core/primitive/SurfaceCopyGroup/index.js";
|
|
23
|
+
export { PrimaryRailLayout } from "../core/composition/PrimaryRailLayout/index.js";
|
|
24
|
+
export { NavigationFeatureNav } from "../core/composition/NavigationFeatureNav/index.js";
|
|
25
|
+
export { Sidebar } from "../core/composition/Sidebar/index.js";
|
|
26
|
+
export { WorkspaceShell } from "../core/composition/WorkspaceShell/index.js";
|
|
27
|
+
export { ChatWorkspace } from "../core/composition/ChatWorkspace/index.js";
|
|
28
|
+
export { StateMark } from "../core/StateMark.js";
|
|
29
|
+
export { LeadingNumber } from "../core/LeadingNumber.js";
|
|
30
|
+
export { OtpInput } from "../core/OtpInput.js";
|
|
31
|
+
export { StaticStateRow } from "../core/composite/StaticStateRow/index.js";
|
|
32
|
+
export { EmptyNotice } from "../core/composite/EmptyNotice/index.js";
|
|
33
|
+
export { HorizontalScrollRegion } from "../core/composite/HorizontalScrollRegion/index.js";
|
|
34
|
+
export { VerticalScrollRegion } from "../core/composite/VerticalScrollRegion/index.js";
|
|
35
|
+
export { SurfaceCard } from "../core/branch/SurfaceCard/index.js";
|
|
36
|
+
export { SurfaceListCard } from "../core/branch/SurfaceListCard/index.js";
|
|
37
|
+
export { FencedCodeBlock, MarkdownArticle, MarkdownTableFrame } from "../core/branch/MarkdownArticle/index.js";
|
|
38
|
+
export { SurfaceAccordionCard } from "../core/branch/SurfaceAccordionCard/index.js";
|
|
39
|
+
export { Rail } from "../core/branch/Rail/index.js";
|
|
40
|
+
export { Subnav } from "../core/branch/Subnav/index.js";
|
|
41
|
+
export { Tabs } from "../core/branch/Tabs/index.js";
|
|
42
|
+
export { Tooltip } from "../core/branch/Tooltip/index.js";
|
|
43
|
+
export { formCompactSurfaceClassName, formFieldClassName, formPageClassName, formScreenReaderLabelClassName, formScrollViewportClassName, formSurfaceClassName, horizontalScrollRegionClassName } from "../core/classNames.js";
|
|
44
|
+
//# sourceMappingURL=renderers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderers.js","sourceRoot":"","sources":["../../src/common/renderers.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,2EAA2E;AAC3E,oCAAoC;AACpC,OAAO,EAAE,WAAW,EAAyB,MAAM,wCAAwC,CAAA;AAC3F,OAAO,EAAE,aAAa,EAA2B,MAAM,0CAA0C,CAAA;AACjG,OAAO,EAAE,KAAK,EAAmC,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,MAAM,EAA0E,MAAM,mCAAmC,CAAA;AAClI,OAAO,EAAE,OAAO,EAAqB,MAAM,oCAAoC,CAAA;AAC/E,OAAO,EAAE,OAAO,EAA2D,MAAM,oCAAoC,CAAA;AACrH,OAAO,EAAE,IAAI,EAAyE,MAAM,iCAAiC,CAAA;AAC7H,OAAO,EAAE,QAAQ,EAA4D,MAAM,qCAAqC,CAAA;AACxH,OAAO,EAAE,UAAU,EAAwB,MAAM,uCAAuC,CAAA;AACxF,OAAO,EAAE,KAAK,EAAmB,MAAM,kCAAkC,CAAA;AACzE,OAAO,EAAE,KAAK,EAAsD,MAAM,kCAAkC,CAAA;AAC5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AAA;AAClM,OAAO,EAAE,oBAAoB,EAAiE,MAAM,8CAA8C,CAAA;AAClJ,OAAO,EAAE,IAAI,EAAkB,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,MAAM,EAAoB,MAAM,gCAAgC,CAAA;AACzE,OAAO,EAAE,IAAI,EAAgC,MAAM,8BAA8B,CAAA;AACjF,OAAO,EAAE,OAAO,EAA4C,MAAM,iCAAiC,CAAA;AACnG,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** How many rule ids each family publishes. Reported for coverage summaries, never expanded. */
|
|
2
|
+
export declare const RULE_FAMILY_COUNTS: Readonly<{
|
|
3
|
+
readonly A11Y: 4;
|
|
4
|
+
readonly ACCENT: 5;
|
|
5
|
+
readonly ACTION: 4;
|
|
6
|
+
readonly BOUNDARY: 6;
|
|
7
|
+
readonly COLOR: 2;
|
|
8
|
+
readonly "CONTROL-STATE": 4;
|
|
9
|
+
readonly "CORE-BOUNDARY": 5;
|
|
10
|
+
readonly "CORE-SURFACE": 5;
|
|
11
|
+
readonly CTA: 5;
|
|
12
|
+
readonly FEEDBACK: 4;
|
|
13
|
+
readonly FIELD: 4;
|
|
14
|
+
readonly FLOW: 5;
|
|
15
|
+
readonly FOCUS: 5;
|
|
16
|
+
readonly FONT: 6;
|
|
17
|
+
readonly GAP: 7;
|
|
18
|
+
readonly HIERARCHY: 5;
|
|
19
|
+
readonly ICON: 6;
|
|
20
|
+
readonly LAYOUT: 5;
|
|
21
|
+
readonly MARGIN: 7;
|
|
22
|
+
readonly MEASURE: 7;
|
|
23
|
+
readonly MEDIA: 6;
|
|
24
|
+
readonly MOTION: 4;
|
|
25
|
+
readonly OVERFLOW: 5;
|
|
26
|
+
readonly PADDING: 9;
|
|
27
|
+
readonly RESPONSIVE: 5;
|
|
28
|
+
readonly STATE: 7;
|
|
29
|
+
readonly SURFACE: 6;
|
|
30
|
+
readonly TONE: 3;
|
|
31
|
+
readonly TRUTH: 4;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Every canonical rule id, exactly as the tree spells it.
|
|
35
|
+
*
|
|
36
|
+
* The ids are listed rather than expanded from the counts above: the spacing families start at
|
|
37
|
+
* `-0`, so a `1..count` expansion would both invent `PADDING-9` and lose `PADDING-0`.
|
|
38
|
+
*/
|
|
39
|
+
export declare const CANONICAL_RULE_IDS: ReadonlyArray<string>;
|
|
40
|
+
//# sourceMappingURL=rule-catalog.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-catalog.generated.d.ts","sourceRoot":"","sources":["../../src/common/rule-catalog.generated.ts"],"names":[],"mappings":"AAWA,gGAAgG;AAChG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BpB,CAAA;AAEX;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,MAAM,CAoLnD,CAAA"}
|