contour-ds 1.1.2 → 1.7.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 +30 -2
- package/dist/agent-rules.json +5 -1
- package/dist/build-manifest.json +94 -93
- package/dist/contour-wc.esm.js +4443 -534
- package/dist/contour-wc.esm.min.js +1 -1
- package/dist/contour-wc.js +4441 -528
- package/dist/contour-wc.min.js +1 -1
- package/dist/contour.components.json +4054 -171
- package/dist/contour.css +1325 -565
- package/dist/contour.d.ts +119 -62
- package/dist/contour.esm.js +23 -0
- package/dist/contour.esm.min.js +1 -1
- package/dist/contour.js +23 -0
- package/dist/contour.min.css +1 -1
- package/dist/contour.min.js +1 -1
- package/dist/contour.tokens.json +47 -2
- package/dist/docs/actions.md +6 -2
- package/dist/docs/affordances.md +19 -3
- package/dist/docs/apireference.md +30 -0
- package/dist/docs/colour.md +2 -2
- package/dist/docs/componentindex.md +39 -0
- package/dist/docs/data.md +38 -3
- package/dist/docs/docs.md +6 -2
- package/dist/docs/feedback.md +13 -3
- package/dist/docs/field.md +7 -2
- package/dist/docs/forms.md +35 -3
- package/dist/docs/index.json +44 -75
- package/dist/docs/install.md +4 -2
- package/dist/docs/landing.md +3 -2
- package/dist/docs/mapengine.md +9 -3
- package/dist/docs/motion.md +5 -2
- package/dist/docs/navigation.md +10 -3
- package/dist/docs/overlays.md +26 -3
- package/dist/docs/overview.md +2 -2
- package/dist/docs/patterns.md +38 -3
- package/dist/docs/playground.md +5 -2
- package/dist/docs/principles.md +2 -2
- package/dist/docs/recipes.md +7 -3
- package/dist/docs/space.md +2 -2
- package/dist/docs/status.md +19 -3
- package/dist/docs/surfaces.md +7 -3
- package/dist/docs/theming.md +5 -2
- package/dist/docs/type.md +2 -2
- package/dist/docs/webcomponents.md +26 -7
- package/dist/map-chrome.mapbox.css +4 -4
- package/dist/map-chrome.maplibre.css +4 -4
- package/dist/registry/items/contour-core.json +2 -2
- package/dist/registry/items/contour-data.json +2 -2
- package/dist/registry/items/contour-docs.json +2 -2
- package/dist/registry/items/contour-landing.json +2 -2
- package/dist/registry/registry.json +8 -8
- package/dist/surfaces/contour-core.min.css +1 -1
- package/dist/surfaces/contour-data.min.css +1 -1
- package/dist/surfaces/contour-docs.min.css +1 -1
- package/dist/surfaces/contour-landing.min.css +1 -1
- package/dist/wc/behaviours.mjs +69 -11
- package/dist/wc/content.mjs +163 -8
- package/dist/wc/core.mjs +177 -36
- package/dist/wc/dashboard.mjs +69 -4
- package/dist/wc/data.mjs +933 -128
- package/dist/wc/docs.mjs +118 -0
- package/dist/wc/feedback.mjs +75 -13
- package/dist/wc/forms.mjs +371 -34
- package/dist/wc/index.mjs +31 -3
- package/dist/wc/interaction.mjs +11 -6
- package/dist/wc/map.mjs +142 -38
- package/dist/wc/misc.mjs +29 -1
- package/dist/wc/navigation.mjs +424 -75
- package/dist/wc/registration.mjs +8 -4
- package/dist/wc/shadow.mjs +29 -12
- package/dist/wc/states.mjs +15 -0
- package/dist/wc/svg.mjs +10 -0
- package/dist/wc/ui.mjs +1767 -129
- package/package.json +39 -6
package/dist/docs/patterns.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Patterns
|
|
2
2
|
|
|
3
|
-
Section `patterns` — marker `17`, position 18 of
|
|
3
|
+
Section `patterns` — marker `17`, position 18 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
@@ -8,28 +8,63 @@ private until v1.0). See `index.json` for the whole set and the shared statement
|
|
|
8
8
|
|
|
9
9
|
Recurring arrangements, documented so a landing page, a documentation site and a dashboard speak the same visual language.
|
|
10
10
|
|
|
11
|
+
Equivalent contour-* elements are catalogued in §23.
|
|
12
|
+
|
|
11
13
|
Run routing without dedicated infrastructure and keep the deployment footprint minimal. The data never leaves the browser.
|
|
12
14
|
|
|
13
15
|
Every desire line is the map arguing with the plan.
|
|
14
16
|
|
|
17
|
+
A filter bar, a table, and an empty/error state composed into one task.
|
|
18
|
+
|
|
19
|
+
A multi-field form with validity, reset, and submit.
|
|
20
|
+
|
|
21
|
+
Selecting a row highlights the corresponding map feature and vice versa.
|
|
22
|
+
|
|
23
|
+
A time slider drives a chart; stale data is badged.
|
|
24
|
+
|
|
25
|
+
A layer panel controls map-area slots.
|
|
26
|
+
|
|
27
|
+
A docs shell with URL-synced section state.
|
|
28
|
+
|
|
29
|
+
Documentation content.
|
|
30
|
+
|
|
15
31
|
## Subsections
|
|
16
32
|
|
|
17
33
|
- Fewer servers. Faster interactions.
|
|
34
|
+
- Filter + query + empty/error
|
|
35
|
+
- Form validation
|
|
36
|
+
- Map + table selection
|
|
37
|
+
- Time slider + chart + stale data
|
|
38
|
+
- Layer panel + map slot
|
|
39
|
+
- Documentation page with URL state
|
|
40
|
+
- Web component counterpart
|
|
18
41
|
|
|
19
42
|
## Blocks documented here
|
|
20
43
|
|
|
21
|
-
|
|
44
|
+
19 block(s). Their facts live in `../contour.components.json`;
|
|
22
45
|
only the names are here, because the same figure in two files is how a document
|
|
23
46
|
starts disagreeing with itself.
|
|
24
47
|
|
|
48
|
+
- `.c-badge`
|
|
25
49
|
- `.c-btn`
|
|
50
|
+
- `.c-cluster`
|
|
51
|
+
- `.c-docs-nav`
|
|
52
|
+
- `.c-field`
|
|
53
|
+
- `.c-filter-bar`
|
|
26
54
|
- `.c-icon-badge`
|
|
55
|
+
- `.c-input`
|
|
56
|
+
- `.c-kbd`
|
|
27
57
|
- `.c-link`
|
|
58
|
+
- `.c-map-area`
|
|
59
|
+
- `.c-map-slot`
|
|
28
60
|
- `.c-plate`
|
|
29
61
|
- `.c-pullquote`
|
|
30
62
|
- `.c-section-head`
|
|
63
|
+
- `.c-stack`
|
|
31
64
|
- `.c-stat`
|
|
65
|
+
- `.c-table`
|
|
66
|
+
- `.c-table-wrap`
|
|
32
67
|
|
|
33
68
|
---
|
|
34
69
|
|
|
35
|
-
Source `index.html` @ `
|
|
70
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
package/dist/docs/playground.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Playground
|
|
2
2
|
|
|
3
|
-
Section `playground` — marker `20`, position 21 of
|
|
3
|
+
Section `playground` — marker `20`, position 21 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
@@ -8,11 +8,14 @@ private until v1.0). See `index.json` for the whole set and the shared statement
|
|
|
8
8
|
|
|
9
9
|
Every decision in the system is a custom property. Change one and watch the component respond — this is the same mechanism a consumer would use to retheme. The playground writes into a .c-theme-scope, a subtree that re-derives the brand layer from its own knobs.
|
|
10
10
|
|
|
11
|
+
Equivalent contour-* elements are catalogued in §23.
|
|
12
|
+
|
|
11
13
|
The playground writes directly to the scoped container. Nothing here is a special case — it is the same custom-property contract the tokens expose.
|
|
12
14
|
|
|
13
15
|
## Subsections
|
|
14
16
|
|
|
15
17
|
- A component under test
|
|
18
|
+
- Web component counterpart
|
|
16
19
|
|
|
17
20
|
## Blocks documented here
|
|
18
21
|
|
|
@@ -35,4 +38,4 @@ starts disagreeing with itself.
|
|
|
35
38
|
|
|
36
39
|
---
|
|
37
40
|
|
|
38
|
-
Source `index.html` @ `
|
|
41
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
package/dist/docs/principles.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Six rules that break every tie.
|
|
2
2
|
|
|
3
|
-
Section `principles` — marker `01`, position 2 of
|
|
3
|
+
Section `principles` — marker `01`, position 2 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
@@ -42,4 +42,4 @@ starts disagreeing with itself.
|
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
45
|
-
Source `index.html` @ `
|
|
45
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
package/dist/docs/recipes.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Three shells, one system.
|
|
2
2
|
|
|
3
|
-
Section `recipes` — marker `19`, position 20 of
|
|
3
|
+
Section `recipes` — marker `19`, position 20 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
@@ -8,6 +8,8 @@ private until v1.0). See `index.json` for the whole set and the shared statement
|
|
|
8
8
|
|
|
9
9
|
Contour covers landing pages, documentation sites and technical dashboards. The components are shared; the composition, density and type scale change. Below are all three, rendered live.
|
|
10
10
|
|
|
11
|
+
Equivalent contour-* elements are catalogued in §23.
|
|
12
|
+
|
|
11
13
|
A page whose only job is to earn a click. Generous type, one primary action, and a hero that shows the product rather than describing it. The contour field runs full-bleed behind everything.
|
|
12
14
|
|
|
13
15
|
Compute routes and isolines from OpenMapTiles entirely client-side. No routing server, no third-party API, no data leaving the device.
|
|
@@ -47,10 +49,11 @@ By route volume
|
|
|
47
49
|
- Landing page
|
|
48
50
|
- Documentation site
|
|
49
51
|
- Technical dashboard
|
|
52
|
+
- Web component counterpart
|
|
50
53
|
|
|
51
54
|
## Blocks documented here
|
|
52
55
|
|
|
53
|
-
|
|
56
|
+
40 block(s). Their facts live in `../contour.components.json`;
|
|
54
57
|
only the names are here, because the same figure in two files is how a document
|
|
55
58
|
starts disagreeing with itself.
|
|
56
59
|
|
|
@@ -76,6 +79,7 @@ starts disagreeing with itself.
|
|
|
76
79
|
- `.c-filter-pill`
|
|
77
80
|
- `.c-icon-badge`
|
|
78
81
|
- `.c-install`
|
|
82
|
+
- `.c-kbd`
|
|
79
83
|
- `.c-kpi`
|
|
80
84
|
- `.c-landing-features`
|
|
81
85
|
- `.c-landing-hero`
|
|
@@ -103,4 +107,4 @@ part of the component contract and nothing in an installed package defines them:
|
|
|
103
107
|
|
|
104
108
|
---
|
|
105
109
|
|
|
106
|
-
Source `index.html` @ `
|
|
110
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
package/dist/docs/space.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# A 4px base, and shapes that stay soft.
|
|
2
2
|
|
|
3
|
-
Section `space` — marker `04`, position 5 of
|
|
3
|
+
Section `space` — marker `04`, position 5 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
@@ -35,4 +35,4 @@ starts disagreeing with itself.
|
|
|
35
35
|
|
|
36
36
|
---
|
|
37
37
|
|
|
38
|
-
Source `index.html` @ `
|
|
38
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
package/dist/docs/status.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Status & labels
|
|
2
2
|
|
|
3
|
-
Section `status` — marker `
|
|
3
|
+
Section `status` — marker `07`, position 9 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
@@ -8,9 +8,19 @@ private until v1.0). See `index.json` for the whole set and the shared statement
|
|
|
8
8
|
|
|
9
9
|
Badges carry a category. Chips carry a value. Pills carry a state. The waypoint dot carries presence. Four jobs, four shapes — never interchangeable.
|
|
10
10
|
|
|
11
|
+
Equivalent contour-* elements are catalogued in §23.
|
|
12
|
+
|
|
13
|
+
## Subsections
|
|
14
|
+
|
|
15
|
+
- Web component counterpart
|
|
16
|
+
- Empty state
|
|
17
|
+
- Skeleton
|
|
18
|
+
- Loading
|
|
19
|
+
- Web component counterparts
|
|
20
|
+
|
|
11
21
|
## Blocks documented here
|
|
12
22
|
|
|
13
|
-
|
|
23
|
+
16 block(s). Their facts live in `../contour.components.json`;
|
|
14
24
|
only the names are here, because the same figure in two files is how a document
|
|
15
25
|
starts disagreeing with itself.
|
|
16
26
|
|
|
@@ -19,12 +29,18 @@ starts disagreeing with itself.
|
|
|
19
29
|
- `.c-btn`
|
|
20
30
|
- `.c-chip`
|
|
21
31
|
- `.c-dot`
|
|
32
|
+
- `.c-empty`
|
|
22
33
|
- `.c-icon-badge`
|
|
34
|
+
- `.c-kbd`
|
|
23
35
|
- `.c-live-badge`
|
|
36
|
+
- `.c-loading`
|
|
24
37
|
- `.c-pill`
|
|
25
38
|
- `.c-section-head`
|
|
39
|
+
- `.c-skeleton`
|
|
40
|
+
- `.c-skeleton-group`
|
|
41
|
+
- `.c-spinner`
|
|
26
42
|
- `.c-tag`
|
|
27
43
|
|
|
28
44
|
---
|
|
29
45
|
|
|
30
|
-
Source `index.html` @ `
|
|
46
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
package/dist/docs/surfaces.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Surfaces
|
|
2
2
|
|
|
3
|
-
Section `surfaces` — marker `09`, position 10 of
|
|
3
|
+
Section `surfaces` — marker `09`, position 10 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
@@ -8,6 +8,8 @@ private until v1.0). See `index.json` for the whole set and the shared statement
|
|
|
8
8
|
|
|
9
9
|
Cards are for things that are independently actionable. Information that only belongs to its group does not get a container — it gets space and a rule.
|
|
10
10
|
|
|
11
|
+
Equivalent contour-* elements are catalogued in §23.
|
|
12
|
+
|
|
11
13
|
Route calculation runs in single-digit milliseconds once the tile graph is built.
|
|
12
14
|
|
|
13
15
|
Catchment areas and travel-time bands, with inner breaks for context.
|
|
@@ -37,10 +39,11 @@ Scroll container with content-visibility for performance. Virtualization logic i
|
|
|
37
39
|
- Feature blocks
|
|
38
40
|
- Foundations
|
|
39
41
|
- Components
|
|
42
|
+
- Web component counterpart
|
|
40
43
|
|
|
41
44
|
## Blocks documented here
|
|
42
45
|
|
|
43
|
-
|
|
46
|
+
19 block(s). Their facts live in `../contour.components.json`;
|
|
44
47
|
only the names are here, because the same figure in two files is how a document
|
|
45
48
|
starts disagreeing with itself.
|
|
46
49
|
|
|
@@ -55,6 +58,7 @@ starts disagreeing with itself.
|
|
|
55
58
|
- `.c-feature`
|
|
56
59
|
- `.c-footer`
|
|
57
60
|
- `.c-icon-badge`
|
|
61
|
+
- `.c-kbd`
|
|
58
62
|
- `.c-link`
|
|
59
63
|
- `.c-mark`
|
|
60
64
|
- `.c-plate`
|
|
@@ -65,4 +69,4 @@ starts disagreeing with itself.
|
|
|
65
69
|
|
|
66
70
|
---
|
|
67
71
|
|
|
68
|
-
Source `index.html` @ `
|
|
72
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
package/dist/docs/theming.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Two themes, one cascade.
|
|
2
2
|
|
|
3
|
-
Section `theming` — marker `21`, position 22 of
|
|
3
|
+
Section `theming` — marker `21`, position 22 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
@@ -8,6 +8,8 @@ private until v1.0). See `index.json` for the whole set and the shared statement
|
|
|
8
8
|
|
|
9
9
|
The color-scheme property on :root is the only switch. Every semantic token resolves through light-dark(), so the palette follows the OS by default — and CSS never depends on JavaScript to be readable.
|
|
10
10
|
|
|
11
|
+
Equivalent contour-* elements are catalogued in §23.
|
|
12
|
+
|
|
11
13
|
Deeper surfaces, one hairline, no shadows. Designed for long sessions in a dim room and for maps that need to glow against the page.
|
|
12
14
|
|
|
13
15
|
A paper-white chart with ink text. The same five families, re-stepped for contrast on light surfaces — not an inversion of the dark palette.
|
|
@@ -45,6 +47,7 @@ Full surface with the complete content and a wider layout.
|
|
|
45
47
|
- Card
|
|
46
48
|
- Preview
|
|
47
49
|
- Detail
|
|
50
|
+
- Web component counterpart
|
|
48
51
|
|
|
49
52
|
## Blocks documented here
|
|
50
53
|
|
|
@@ -65,4 +68,4 @@ starts disagreeing with itself.
|
|
|
65
68
|
|
|
66
69
|
---
|
|
67
70
|
|
|
68
|
-
Source `index.html` @ `
|
|
71
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
package/dist/docs/type.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Two families, one superfamily.
|
|
2
2
|
|
|
3
|
-
Section `type` — marker `03`, position 4 of
|
|
3
|
+
Section `type` — marker `03`, position 4 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
@@ -28,4 +28,4 @@ starts disagreeing with itself.
|
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
|
31
|
-
Source `index.html` @ `
|
|
31
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
# Web components
|
|
2
2
|
|
|
3
|
-
Section `webcomponents` — marker `23`, position 24 of
|
|
3
|
+
Section `webcomponents` — marker `23`, position 24 of 27 in the guide.
|
|
4
4
|
Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
|
|
5
5
|
private until v1.0). See `index.json` for the whole set and the shared statement.
|
|
6
6
|
|
|
7
7
|
## What the guide says
|
|
8
8
|
|
|
9
|
+
Detailed interactive stories, controls, keyboard paths and workflow demonstrations live in the optional Storybook workshop (npm run storybook). This section keeps the concise contract, reactivity, events, slots/parts and ownership boundary; Storybook links back to it and does not redefine it.
|
|
10
|
+
|
|
11
|
+
Open the local Storybook workshop after npm run build, or start it with npm run storybook. The complete registered-element catalogue is in Registered elements; focused interaction stories include forms, charts, overlays and dashboard workflows.
|
|
12
|
+
|
|
9
13
|
Optional progressive enhancement. Load contour-wc.js after ds.css to use contour-* and contour-shadow-* custom elements that generate their scaffolding from attributes. Light-DOM elements use the cascade directly; shadow-DOM elements ship slots and adopted stylesheets for encapsulation.
|
|
10
14
|
|
|
11
15
|
Where each shape of the markup lives: §04–§22 show every block as the CSS an author writes by hand, and this section shows the same blocks as elements that generate it. The division is deliberate, not a migration left half-done. The raw markup is the contract a consumer copies, and it works with no script at all; this layer is the optional enhancement over that same contract, so a page can drop it and lose nothing but its attributes.
|
|
@@ -16,14 +20,24 @@ Composition: components never reach into one another. A host composes by nesting
|
|
|
16
20
|
|
|
17
21
|
Shadow layer parity: the contour-shadow-* wrappers are a styling shell. They adopt the document's sheets and wire a small set of behaviours (tabs, segmented, combobox, tree, menu, pagination, copy, removable); the remaining wrappers provide ARIA setup only. Shadow tabs and code-tabs use a slot template and expect authored panels, unlike the light-DOM tabs which generate panels from the tabs attribute. Consumers who need full widget behaviour should use the light-DOM contour-* elements.
|
|
18
22
|
|
|
23
|
+
Async-state contract: 60 components expose loading, error, empty, retry and skeleton attributes, rendered through the shared wireStates / renderStates helpers in src/js/wc/states.mjs. A component that reads one of these attributes but does not call wireStates is a bug.
|
|
24
|
+
|
|
25
|
+
Property reflection: every component declares a properties map (name → { attribute, type }), and ContourBase installs accessors so el.value = 42 writes the attribute and triggers the normal re-render path. Types are String (default), Number and Boolean; a null/false value removes the attribute. Components that observe an attribute but omit it from properties are not reflectable — the wc-contract gate flags the gap.
|
|
26
|
+
|
|
27
|
+
Mutation and events: attributes are the public input; a consumer mutates them directly (el.setAttribute("variant", "danger") or the reflected property) and the component re-renders. Interactive components emit the bubbling contour:* events in the table above with composed: true, so a parent — including one inside a shadow root — handles them without coupling to internals. Form controls use ElementInternals and emit contour:input / contour:change with { name, value, checked }.
|
|
28
|
+
|
|
29
|
+
Slots and parts: the contour-shadow-* wrappers adopt the document's sheets and expose ::part() hooks for the named regions in their templates; slotted content is preserved across re-render because the base class snapshots authored nodes. Loading, error, empty and skeleton states are rendered through the shared wireStates / renderStates helpers, so a component that reads one of those attributes without calling wireStates is a bug.
|
|
30
|
+
|
|
19
31
|
Token-name compatibility: consumers migrating from libreship may keep their --ls-* names by aliasing them onto the corresponding --color-* / --chart-* tokens on :root; the system publishes only the Contour names.
|
|
20
32
|
|
|
21
|
-
|
|
33
|
+
The same table contract composes inside a stack, while an error boundary keeps a fallback local to the failed widget.
|
|
22
34
|
|
|
23
|
-
|
|
35
|
+
Every contour:* event the layer dispatches, the payload keys an emission site can carry, and the composed flag. Payload keys are the union of keys the emission sites pass; an empty payload is an event that carries no detail object. Composition here is what the flag is for: a component hosted inside another author's shadow root still surfaces its events to the document, and a consumer reads the same frozen list from window.ContourEvents.
|
|
24
36
|
|
|
25
37
|
One card, two ways to change it. Writing three attributes in turn rebuilds the card three times; the same three writes inside batch() rebuild it once. The count is the element's own renderCount, not a number this page keeps, so it cannot drift from what the layer did.
|
|
26
38
|
|
|
39
|
+
Concise usage notes for the web-component layer. The generated API cards above cover structural inputs (observed attributes, properties, parts); these notes cover intent, composition and gotchas the cards cannot express. Full text: tmp/dx_notes.md.
|
|
40
|
+
|
|
27
41
|
Toggle attributes live and watch the component re-render. The alert's variant and the kpi's value are driven by the controls below; no page-level state is kept.
|
|
28
42
|
|
|
29
43
|
contour-input, contour-select, contour-check and contour-switch participate in a native form via ElementInternals: their values are submitted, validated and reset like native controls. Submit the form below to see the FormData it produces.
|
|
@@ -44,38 +58,43 @@ Content behind the scrim.
|
|
|
44
58
|
|
|
45
59
|
## Subsections
|
|
46
60
|
|
|
61
|
+
- Composition and states
|
|
47
62
|
- Event vocabulary
|
|
48
|
-
- Component API reference
|
|
49
63
|
- Reactivity, counted
|
|
64
|
+
- DX notes (per component)
|
|
50
65
|
- Reactivity playground
|
|
51
66
|
- Form association
|
|
52
67
|
- Event emission
|
|
53
68
|
|
|
54
69
|
## Blocks documented here
|
|
55
70
|
|
|
56
|
-
|
|
71
|
+
22 block(s). Their facts live in `../contour.components.json`;
|
|
57
72
|
only the names are here, because the same figure in two files is how a document
|
|
58
73
|
starts disagreeing with itself.
|
|
59
74
|
|
|
60
75
|
- `.c-btn`
|
|
61
76
|
- `.c-card`
|
|
62
77
|
- `.c-cluster`
|
|
63
|
-
- `.c-
|
|
78
|
+
- `.c-geocoder`
|
|
64
79
|
- `.c-icon-badge`
|
|
65
80
|
- `.c-kbd`
|
|
81
|
+
- `.c-link`
|
|
66
82
|
- `.c-panel`
|
|
83
|
+
- `.c-price`
|
|
67
84
|
- `.c-range`
|
|
68
85
|
- `.c-scrim`
|
|
69
86
|
- `.c-section-head`
|
|
70
87
|
- `.c-select`
|
|
88
|
+
- `.c-shortcut`
|
|
71
89
|
- `.c-shortcut-list`
|
|
72
90
|
- `.c-shortcut-overlay`
|
|
73
91
|
- `.c-shortcut-panel`
|
|
74
92
|
- `.c-shortcut-row`
|
|
93
|
+
- `.c-spatial-filter`
|
|
75
94
|
- `.c-stack`
|
|
76
95
|
- `.c-table`
|
|
77
96
|
- `.c-table-wrap`
|
|
78
97
|
|
|
79
98
|
---
|
|
80
99
|
|
|
81
|
-
Source `index.html` @ `
|
|
100
|
+
Source `index.html` @ `10d181ea8e0eb659` · last committed 2026-11-04T18:12:14+01:00 · no URL: the project is private until v1.0.
|
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
|
|
117
117
|
/* Focus ring — re-keyed to Contour's focus token, matching the vendor's
|
|
118
118
|
compound selector so the override actually applies. */
|
|
119
|
-
.maplibregl-ctrl-attrib-button:focus,
|
|
120
|
-
.maplibregl-ctrl-group button:focus,
|
|
121
|
-
.mapboxgl-ctrl-attrib-button:focus,
|
|
122
|
-
.mapboxgl-ctrl-group button:focus {
|
|
119
|
+
.maplibregl-ctrl-attrib-button:focus-visible,
|
|
120
|
+
.maplibregl-ctrl-group button:focus-visible,
|
|
121
|
+
.mapboxgl-ctrl-attrib-button:focus-visible,
|
|
122
|
+
.mapboxgl-ctrl-group button:focus-visible {
|
|
123
123
|
box-shadow: 0 0 0 2px var(--color-focus-ring),
|
|
124
124
|
0 0 0 4px var(--color-focus-halo);
|
|
125
125
|
outline: none;
|
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
|
|
117
117
|
/* Focus ring — re-keyed to Contour's focus token, matching the vendor's
|
|
118
118
|
compound selector so the override actually applies. */
|
|
119
|
-
.maplibregl-ctrl-attrib-button:focus,
|
|
120
|
-
.maplibregl-ctrl-group button:focus,
|
|
121
|
-
.mapboxgl-ctrl-attrib-button:focus,
|
|
122
|
-
.mapboxgl-ctrl-group button:focus {
|
|
119
|
+
.maplibregl-ctrl-attrib-button:focus-visible,
|
|
120
|
+
.maplibregl-ctrl-group button:focus-visible,
|
|
121
|
+
.mapboxgl-ctrl-attrib-button:focus-visible,
|
|
122
|
+
.mapboxgl-ctrl-group button:focus-visible {
|
|
123
123
|
box-shadow: 0 0 0 2px var(--color-focus-ring),
|
|
124
124
|
0 0 0 4px var(--color-focus-halo);
|
|
125
125
|
outline: none;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "contour-core",
|
|
4
4
|
"type": "registry:style",
|
|
5
5
|
"title": "Contour core",
|
|
6
|
-
"description": "Contour core surface:
|
|
6
|
+
"description": "Contour core surface: 145.1 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
|
|
7
7
|
"registryDependencies": [],
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"meta": {
|
|
36
36
|
"distribution": "pointer",
|
|
37
37
|
"selfContained": true,
|
|
38
|
-
"bundleBytes":
|
|
38
|
+
"bundleBytes": 148611,
|
|
39
39
|
"shared": [
|
|
40
40
|
{
|
|
41
41
|
"path": "contour.tokens.json",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "contour-data",
|
|
4
4
|
"type": "registry:style",
|
|
5
5
|
"title": "Contour data",
|
|
6
|
-
"description": "Contour data surface:
|
|
6
|
+
"description": "Contour data surface: 192.9 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
|
|
7
7
|
"registryDependencies": [],
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"meta": {
|
|
36
36
|
"distribution": "pointer",
|
|
37
37
|
"selfContained": true,
|
|
38
|
-
"bundleBytes":
|
|
38
|
+
"bundleBytes": 197559,
|
|
39
39
|
"shared": [
|
|
40
40
|
{
|
|
41
41
|
"path": "contour.tokens.json",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "contour-docs",
|
|
4
4
|
"type": "registry:style",
|
|
5
5
|
"title": "Contour docs",
|
|
6
|
-
"description": "Contour docs surface:
|
|
6
|
+
"description": "Contour docs surface: 160.7 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
|
|
7
7
|
"registryDependencies": [],
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"meta": {
|
|
36
36
|
"distribution": "pointer",
|
|
37
37
|
"selfContained": true,
|
|
38
|
-
"bundleBytes":
|
|
38
|
+
"bundleBytes": 164577,
|
|
39
39
|
"shared": [
|
|
40
40
|
{
|
|
41
41
|
"path": "contour.tokens.json",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "contour-landing",
|
|
4
4
|
"type": "registry:style",
|
|
5
5
|
"title": "Contour landing",
|
|
6
|
-
"description": "Contour landing surface:
|
|
6
|
+
"description": "Contour landing surface: 152.8 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
|
|
7
7
|
"registryDependencies": [],
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"meta": {
|
|
36
36
|
"distribution": "pointer",
|
|
37
37
|
"selfContained": true,
|
|
38
|
-
"bundleBytes":
|
|
38
|
+
"bundleBytes": 156484,
|
|
39
39
|
"shared": [
|
|
40
40
|
{
|
|
41
41
|
"path": "contour.tokens.json",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "contour-core",
|
|
9
9
|
"type": "registry:style",
|
|
10
10
|
"title": "Contour core",
|
|
11
|
-
"description": "Contour core surface:
|
|
11
|
+
"description": "Contour core surface: 145.1 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
|
|
12
12
|
"registryDependencies": [],
|
|
13
13
|
"files": [
|
|
14
14
|
{
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"meta": {
|
|
41
41
|
"distribution": "pointer",
|
|
42
42
|
"selfContained": true,
|
|
43
|
-
"bundleBytes":
|
|
43
|
+
"bundleBytes": 148611,
|
|
44
44
|
"shared": [
|
|
45
45
|
{
|
|
46
46
|
"path": "contour.tokens.json",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"name": "contour-data",
|
|
71
71
|
"type": "registry:style",
|
|
72
72
|
"title": "Contour data",
|
|
73
|
-
"description": "Contour data surface:
|
|
73
|
+
"description": "Contour data surface: 192.9 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
|
|
74
74
|
"registryDependencies": [],
|
|
75
75
|
"files": [
|
|
76
76
|
{
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"meta": {
|
|
103
103
|
"distribution": "pointer",
|
|
104
104
|
"selfContained": true,
|
|
105
|
-
"bundleBytes":
|
|
105
|
+
"bundleBytes": 197559,
|
|
106
106
|
"shared": [
|
|
107
107
|
{
|
|
108
108
|
"path": "contour.tokens.json",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"name": "contour-docs",
|
|
133
133
|
"type": "registry:style",
|
|
134
134
|
"title": "Contour docs",
|
|
135
|
-
"description": "Contour docs surface:
|
|
135
|
+
"description": "Contour docs surface: 160.7 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
|
|
136
136
|
"registryDependencies": [],
|
|
137
137
|
"files": [
|
|
138
138
|
{
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"meta": {
|
|
165
165
|
"distribution": "pointer",
|
|
166
166
|
"selfContained": true,
|
|
167
|
-
"bundleBytes":
|
|
167
|
+
"bundleBytes": 164577,
|
|
168
168
|
"shared": [
|
|
169
169
|
{
|
|
170
170
|
"path": "contour.tokens.json",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"name": "contour-landing",
|
|
195
195
|
"type": "registry:style",
|
|
196
196
|
"title": "Contour landing",
|
|
197
|
-
"description": "Contour landing surface:
|
|
197
|
+
"description": "Contour landing surface: 152.8 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
|
|
198
198
|
"registryDependencies": [],
|
|
199
199
|
"files": [
|
|
200
200
|
{
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"meta": {
|
|
227
227
|
"distribution": "pointer",
|
|
228
228
|
"selfContained": true,
|
|
229
|
-
"bundleBytes":
|
|
229
|
+
"bundleBytes": 156484,
|
|
230
230
|
"shared": [
|
|
231
231
|
{
|
|
232
232
|
"path": "contour.tokens.json",
|