contour-ds 1.7.2 → 1.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.
Files changed (109) hide show
  1. package/README.md +80 -11
  2. package/dist/agent-rules.json +16 -0
  3. package/dist/build-manifest.json +181 -104
  4. package/dist/contour-wc-content.esm.js +5125 -0
  5. package/dist/contour-wc-content.esm.min.js +1 -0
  6. package/dist/contour-wc-dashboard.esm.js +8654 -0
  7. package/dist/contour-wc-dashboard.esm.min.js +1 -0
  8. package/dist/contour-wc-data.esm.js +8260 -0
  9. package/dist/contour-wc-data.esm.min.js +1 -0
  10. package/dist/contour-wc-docs.esm.js +4305 -0
  11. package/dist/contour-wc-docs.esm.min.js +1 -0
  12. package/dist/contour-wc-feedback.esm.js +4917 -0
  13. package/dist/contour-wc-feedback.esm.min.js +1 -0
  14. package/dist/contour-wc-forms.esm.js +5688 -0
  15. package/dist/contour-wc-forms.esm.min.js +1 -0
  16. package/dist/contour-wc-interaction.esm.js +4580 -0
  17. package/dist/contour-wc-interaction.esm.min.js +1 -0
  18. package/dist/contour-wc-layout.esm.js +4174 -0
  19. package/dist/contour-wc-layout.esm.min.js +1 -0
  20. package/dist/contour-wc-map.esm.js +5205 -0
  21. package/dist/contour-wc-map.esm.min.js +1 -0
  22. package/dist/contour-wc-misc.esm.js +4264 -0
  23. package/dist/contour-wc-misc.esm.min.js +1 -0
  24. package/dist/contour-wc-navigation.esm.js +5844 -0
  25. package/dist/contour-wc-navigation.esm.min.js +1 -0
  26. package/dist/contour-wc-ui.esm.js +9009 -0
  27. package/dist/contour-wc-ui.esm.min.js +1 -0
  28. package/dist/contour-wc.esm.js +6109 -1641
  29. package/dist/contour-wc.esm.min.js +1 -1
  30. package/dist/contour-wc.js +6108 -1641
  31. package/dist/contour-wc.min.js +1 -1
  32. package/dist/contour.code-snippets +4512 -0
  33. package/dist/contour.components.json +2597 -799
  34. package/dist/contour.css +5275 -4050
  35. package/dist/contour.d.ts +560 -1085
  36. package/dist/contour.esm.js +7 -0
  37. package/dist/contour.esm.min.js +1 -1
  38. package/dist/contour.html-data.json +10311 -0
  39. package/dist/contour.js +7 -0
  40. package/dist/contour.min.css +1 -1
  41. package/dist/contour.min.js +1 -1
  42. package/dist/contour.react.d.ts +420 -0
  43. package/dist/contour.single.html +17 -0
  44. package/dist/contour.single.min.css +1 -0
  45. package/dist/contour.tokens.json +940 -902
  46. package/dist/contour.vue.d.ts +418 -0
  47. package/dist/contour.web-types.json +10703 -0
  48. package/dist/custom-elements.json +30708 -0
  49. package/dist/docs/actions.md +3 -2
  50. package/dist/docs/affordances.md +23 -9
  51. package/dist/docs/apireference.md +1 -1
  52. package/dist/docs/colour.md +1 -1
  53. package/dist/docs/componentindex.md +6 -2
  54. package/dist/docs/data.md +7 -2
  55. package/dist/docs/docs.md +9 -2
  56. package/dist/docs/feedback.md +1 -1
  57. package/dist/docs/field.md +1 -1
  58. package/dist/docs/forms.md +1 -1
  59. package/dist/docs/index.json +22 -20
  60. package/dist/docs/install.md +1 -1
  61. package/dist/docs/landing.md +1 -1
  62. package/dist/docs/mapengine.md +19 -2
  63. package/dist/docs/motion.md +1 -1
  64. package/dist/docs/navigation.md +1 -1
  65. package/dist/docs/overlays.md +1 -1
  66. package/dist/docs/overview.md +1 -1
  67. package/dist/docs/patterns.md +2 -2
  68. package/dist/docs/playground.md +22 -2
  69. package/dist/docs/principles.md +1 -1
  70. package/dist/docs/recipes.md +13 -8
  71. package/dist/docs/space.md +1 -1
  72. package/dist/docs/status.md +14 -2
  73. package/dist/docs/surfaces.md +1 -1
  74. package/dist/docs/theming.md +1 -1
  75. package/dist/docs/type.md +1 -1
  76. package/dist/docs/webcomponents.md +17 -3
  77. package/dist/registry/items/contour-core.json +2 -2
  78. package/dist/registry/items/contour-data.json +2 -2
  79. package/dist/registry/items/contour-docs.json +2 -2
  80. package/dist/registry/items/contour-landing.json +2 -2
  81. package/dist/registry/registry.json +8 -8
  82. package/dist/surfaces/contour-core.min.css +1 -1
  83. package/dist/surfaces/contour-data.min.css +1 -1
  84. package/dist/surfaces/contour-docs.min.css +1 -1
  85. package/dist/surfaces/contour-landing.min.css +1 -1
  86. package/dist/wc/behaviours.mjs +45 -57
  87. package/dist/wc/content.mjs +263 -63
  88. package/dist/wc/core.mjs +390 -71
  89. package/dist/wc/dashboard.mjs +220 -13
  90. package/dist/wc/data.mjs +1075 -460
  91. package/dist/wc/docs.mjs +105 -12
  92. package/dist/wc/feedback.mjs +63 -14
  93. package/dist/wc/forms.mjs +733 -104
  94. package/dist/wc/index.mjs +9 -2
  95. package/dist/wc/interaction.mjs +182 -28
  96. package/dist/wc/layout.mjs +95 -25
  97. package/dist/wc/map.mjs +185 -118
  98. package/dist/wc/misc.mjs +124 -24
  99. package/dist/wc/navigation.mjs +384 -115
  100. package/dist/wc/shadow.mjs +94 -18
  101. package/dist/wc/states.mjs +21 -3
  102. package/dist/wc/svg.mjs +104 -0
  103. package/dist/wc/ui.mjs +1988 -476
  104. package/integrations/README.md +2 -0
  105. package/integrations/ai/CLAUDE.md +3 -3
  106. package/integrations/frameworks/README.md +235 -0
  107. package/integrations/native/style-dictionary.config.json +1 -1
  108. package/integrations/tailwind/contour-theme.css +5 -6
  109. package/package.json +53 -24
@@ -26,8 +26,12 @@ Property reflection: every component declares a properties map (name → { attri
26
26
 
27
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
28
 
29
+ Overlay host API: contour-dialog, contour-drawer and contour-sheet open through show() or its native-named alias showModal() — both are the modal path: they lock the document, inert the background, move focus inside and restore it on close(). The open property reflects the state and routes writes through the same methods, and returnValue persists after close, as on the platform's own dialog element. Each transition emits contour:open / contour:close exactly once; contour-shadow-dialog carries the same surface over a native dialog element.
30
+
29
31
  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
32
 
33
+ Component maturity and completeness: the catalog divides components into four levels of implementation depth: Primitive (single-purpose atomic building blocks like box, stack, readout, kbd; they lay out children or render tokens); Scaffold (structural frames like dash-shell and dashboard-grid that provide CSS classes and wire host attributes but leave windowing/docking to the host application); Composition (hosts that compose multiple primitives through slots and event seams, such as header, sidebar, split-view, and map-area); and Complete widget (autonomous interactive controls with full keyboard navigation, roving tabindex, ARIA roles, form association, and event dispatch, such as combobox, table, dialog, time-slider, and sortable-list). A component that merely renders its HTML markup is not a complete control until it fulfills its interaction, keyboard, form-value and ARIA contracts.
34
+
31
35
  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.
32
36
 
33
37
  The same table contract composes inside a stack, while an error boundary keeps a fallback local to the failed widget.
@@ -40,7 +44,7 @@ Concise usage notes for the web-component layer. The generated API cards above c
40
44
 
41
45
  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.
42
46
 
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.
47
+ The form family — contour-input, contour-textarea, contour-field, contour-select (single and multiple), contour-combobox, contour-check, contour-radio, contour-switch, contour-range, contour-radio-list, contour-version, contour-checkbox-group, contour-search-field, contour-input-group, contour-number-field, contour-date-picker, contour-time-picker, contour-color-picker, contour-file-upload and contour-tags-input — participates in a native form via ElementInternals: values submit under the host's name (a multi-select and a checkbox group submit one entry per selected value), required reports validity, reset restores the authored default, and typed text survives an unrelated attribute change. The wc-contract gate measures each of these contracts. Submit the form below to see the FormData it produces.
44
48
 
45
49
  Interactive components emit bubbling contour:* CustomEvents on the host, so a parent handles them without coupling to internals. The menu below emits contour:select; the pagination emits contour:page.
46
50
 
@@ -56,6 +60,8 @@ Dialog body content.
56
60
 
57
61
  Content behind the scrim.
58
62
 
63
+ Every attribute, boolean attribute, slot and part declared by each block, counted from dist/contour.components.json. Boolean attributes are set by presence; all others take a string value. Blocks with no declared attributes are omitted.
64
+
59
65
  ## Subsections
60
66
 
61
67
  - Composition and states
@@ -65,23 +71,30 @@ Content behind the scrim.
65
71
  - Reactivity playground
66
72
  - Form association
67
73
  - Event emission
74
+ - Attribute & property reference
68
75
 
69
76
  ## Blocks documented here
70
77
 
71
- 22 block(s). Their facts live in `../contour.components.json`;
78
+ 29 block(s). Their facts live in `../contour.components.json`;
72
79
  only the names are here, because the same figure in two files is how a document
73
80
  starts disagreeing with itself.
74
81
 
82
+ - `.c-activity-feed`
83
+ - `.c-avatar`
75
84
  - `.c-btn`
76
85
  - `.c-card`
77
86
  - `.c-cluster`
87
+ - `.c-feature-inspector`
88
+ - `.c-filter-pill`
78
89
  - `.c-geocoder`
79
90
  - `.c-icon-badge`
80
91
  - `.c-kbd`
81
92
  - `.c-link`
82
93
  - `.c-panel`
83
94
  - `.c-price`
95
+ - `.c-provenance`
84
96
  - `.c-range`
97
+ - `.c-saved-view`
85
98
  - `.c-scrim`
86
99
  - `.c-section-head`
87
100
  - `.c-select`
@@ -91,10 +104,11 @@ starts disagreeing with itself.
91
104
  - `.c-shortcut-panel`
92
105
  - `.c-shortcut-row`
93
106
  - `.c-spatial-filter`
107
+ - `.c-split-view`
94
108
  - `.c-stack`
95
109
  - `.c-table`
96
110
  - `.c-table-wrap`
97
111
 
98
112
  ---
99
113
 
100
- Source `index.html` @ `1beb0033376e73f1` · last committed 2026-11-08T12:25:18+01:00 · no URL: the project is private until v1.0.
114
+ Source `index.html` @ `338d3c25b201b176` · last committed 2026-11-19T21:00:59+01:00 · no URL: the project is private until v1.0.
@@ -3,7 +3,7 @@
3
3
  "name": "contour-core",
4
4
  "type": "registry:style",
5
5
  "title": "Contour core",
6
- "description": "Contour core surface: 159.1 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
6
+ "description": "Contour core surface: 182.5 kB of layered CSS, self-contained (the core layer is already inside it), 246 blocks and 310 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": 162908,
38
+ "bundleBytes": 186908,
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: 212.3 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
6
+ "description": "Contour data surface: 247.6 kB of layered CSS, self-contained (the core layer is already inside it), 246 blocks and 310 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": 217357,
38
+ "bundleBytes": 253501,
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: 175.4 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
6
+ "description": "Contour docs surface: 199.7 kB of layered CSS, self-contained (the core layer is already inside it), 246 blocks and 310 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": 179584,
38
+ "bundleBytes": 204461,
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: 167.6 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
6
+ "description": "Contour landing surface: 191.2 kB of layered CSS, self-contained (the core layer is already inside it), 246 blocks and 310 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": 171665,
38
+ "bundleBytes": 195798,
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: 159.1 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
11
+ "description": "Contour core surface: 182.5 kB of layered CSS, self-contained (the core layer is already inside it), 246 blocks and 310 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": 162908,
43
+ "bundleBytes": 186908,
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: 212.3 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
73
+ "description": "Contour data surface: 247.6 kB of layered CSS, self-contained (the core layer is already inside it), 246 blocks and 310 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": 217357,
105
+ "bundleBytes": 253501,
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: 175.4 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
135
+ "description": "Contour docs surface: 199.7 kB of layered CSS, self-contained (the core layer is already inside it), 246 blocks and 310 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": 179584,
167
+ "bundleBytes": 204461,
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: 167.6 kB of layered CSS, self-contained (the core layer is already inside it), 225 blocks and 301 custom properties declared under src/.",
197
+ "description": "Contour landing surface: 191.2 kB of layered CSS, self-contained (the core layer is already inside it), 246 blocks and 310 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": 171665,
229
+ "bundleBytes": 195798,
230
230
  "shared": [
231
231
  {
232
232
  "path": "contour.tokens.json",