contour-ds 1.9.0 → 1.10.0

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 (130) hide show
  1. package/README.md +4 -4
  2. package/dist/build-manifest.json +205 -204
  3. package/dist/contour-wc-content.esm.js +1 -1
  4. package/dist/contour-wc-content.esm.min.js +1 -1
  5. package/dist/contour-wc-core.esm.js +712 -45
  6. package/dist/contour-wc-core.esm.min.js +1 -1
  7. package/dist/contour-wc-dashboard.esm.js +596 -90
  8. package/dist/contour-wc-dashboard.esm.min.js +1 -1
  9. package/dist/contour-wc-data.esm.js +467 -70
  10. package/dist/contour-wc-data.esm.min.js +1 -1
  11. package/dist/contour-wc-docs.esm.js +1 -1
  12. package/dist/contour-wc-docs.esm.min.js +1 -1
  13. package/dist/contour-wc-feedback.esm.js +260 -29
  14. package/dist/contour-wc-feedback.esm.min.js +1 -1
  15. package/dist/contour-wc-forms.esm.js +133 -40
  16. package/dist/contour-wc-forms.esm.min.js +1 -1
  17. package/dist/contour-wc-interaction.esm.js +64 -5
  18. package/dist/contour-wc-interaction.esm.min.js +1 -1
  19. package/dist/contour-wc-layout.esm.js +72 -10
  20. package/dist/contour-wc-layout.esm.min.js +1 -1
  21. package/dist/contour-wc-map.esm.js +69 -9
  22. package/dist/contour-wc-map.esm.min.js +1 -1
  23. package/dist/contour-wc-misc.esm.js +1 -1
  24. package/dist/contour-wc-misc.esm.min.js +1 -1
  25. package/dist/contour-wc-navigation.esm.js +136 -20
  26. package/dist/contour-wc-navigation.esm.min.js +1 -1
  27. package/dist/contour-wc-ui.esm.js +505 -80
  28. package/dist/contour-wc-ui.esm.min.js +1 -1
  29. package/dist/contour-wc.esm.js +2539 -320
  30. package/dist/contour-wc.esm.min.js +1 -1
  31. package/dist/contour-wc.js +2539 -320
  32. package/dist/contour-wc.min.js +1 -1
  33. package/dist/contour.code-snippets +44 -0
  34. package/dist/contour.components.json +12064 -135
  35. package/dist/contour.css +1368 -451
  36. package/dist/contour.d.ts +42 -21
  37. package/dist/contour.esm.js +138 -21
  38. package/dist/contour.esm.min.js +1 -1
  39. package/dist/contour.html-data.json +249 -9
  40. package/dist/contour.js +138 -21
  41. package/dist/contour.min.css +1 -1
  42. package/dist/contour.min.js +1 -1
  43. package/dist/contour.react.d.ts +5 -1
  44. package/dist/contour.single.html +2 -2
  45. package/dist/contour.single.min.css +1 -1
  46. package/dist/contour.tokens.json +36 -1
  47. package/dist/contour.vue.d.ts +5 -1
  48. package/dist/contour.web-types.json +241 -9
  49. package/dist/custom-elements.json +1225 -55
  50. package/dist/docs/actions.md +1 -1
  51. package/dist/docs/affordances.md +1 -1
  52. package/dist/docs/apireference.md +1 -1
  53. package/dist/docs/colour.md +1 -1
  54. package/dist/docs/componentindex.md +1 -1
  55. package/dist/docs/data.md +6 -2
  56. package/dist/docs/docs.md +1 -1
  57. package/dist/docs/feedback.md +1 -1
  58. package/dist/docs/field.md +1 -1
  59. package/dist/docs/forms.md +1 -1
  60. package/dist/docs/index.json +8 -8
  61. package/dist/docs/install.md +1 -1
  62. package/dist/docs/landing.md +1 -1
  63. package/dist/docs/mapengine.md +1 -1
  64. package/dist/docs/motion.md +1 -1
  65. package/dist/docs/navigation.md +1 -1
  66. package/dist/docs/overlays.md +1 -1
  67. package/dist/docs/overview.md +1 -1
  68. package/dist/docs/patterns.md +1 -1
  69. package/dist/docs/playground.md +1 -1
  70. package/dist/docs/principles.md +1 -1
  71. package/dist/docs/recipes.md +1 -1
  72. package/dist/docs/space.md +1 -1
  73. package/dist/docs/status.md +1 -1
  74. package/dist/docs/surfaces.md +1 -1
  75. package/dist/docs/theming.md +5 -2
  76. package/dist/docs/type.md +1 -1
  77. package/dist/docs/webcomponents.md +1 -1
  78. package/dist/hljs.css +34 -17
  79. package/dist/map-chrome-contract.json +26 -0
  80. package/dist/map-chrome.mapbox.css +121 -0
  81. package/dist/map-chrome.maplibre.css +121 -0
  82. package/dist/registry/items/contour-core.json +2 -2
  83. package/dist/registry/items/contour-data.json +2 -2
  84. package/dist/registry/items/contour-docs.json +2 -2
  85. package/dist/registry/items/contour-landing.json +2 -2
  86. package/dist/registry/registry.json +8 -8
  87. package/dist/surfaces/contour-core.min.css +1 -1
  88. package/dist/surfaces/contour-data.min.css +1 -1
  89. package/dist/surfaces/contour-docs.min.css +1 -1
  90. package/dist/surfaces/contour-landing.min.css +1 -1
  91. package/dist/wc/behaviours.mjs +11 -3
  92. package/dist/wc/core.mjs +307 -32
  93. package/dist/wc/dashboard.mjs +129 -20
  94. package/dist/wc/data-chart.mjs +170 -22
  95. package/dist/wc/data-export.mjs +150 -29
  96. package/dist/wc/data-gauge.mjs +11 -4
  97. package/dist/wc/data-geo.mjs +1 -1
  98. package/dist/wc/data-legend.mjs +15 -2
  99. package/dist/wc/data-readout.mjs +12 -1
  100. package/dist/wc/data-series.mjs +73 -5
  101. package/dist/wc/data-table.mjs +37 -8
  102. package/dist/wc/feedback.mjs +259 -28
  103. package/dist/wc/forms-controls.mjs +44 -16
  104. package/dist/wc/forms-field.mjs +46 -4
  105. package/dist/wc/forms-groups.mjs +31 -8
  106. package/dist/wc/forms-input.mjs +11 -11
  107. package/dist/wc/index.mjs +1 -1
  108. package/dist/wc/interaction.mjs +63 -4
  109. package/dist/wc/layout.mjs +72 -10
  110. package/dist/wc/map.mjs +68 -8
  111. package/dist/wc/navigation-menu.mjs +43 -9
  112. package/dist/wc/navigation-shell.mjs +39 -6
  113. package/dist/wc/navigation-tree.mjs +53 -4
  114. package/dist/wc/states.mjs +350 -9
  115. package/dist/wc/svg.mjs +43 -0
  116. package/dist/wc/ui-data.mjs +268 -28
  117. package/dist/wc/ui-feedback.mjs +36 -11
  118. package/dist/wc/ui-inputs.mjs +63 -25
  119. package/dist/wc/ui-overlays.mjs +138 -16
  120. package/integrations/ai/v0-prompt.md +1 -1
  121. package/integrations/frameworks/fixtures/authored/sample.jsx +15 -0
  122. package/integrations/frameworks/fixtures/authored/sample.vue +15 -0
  123. package/integrations/frameworks/fixtures/dist/rendered.html +32 -0
  124. package/integrations/libreship/contract.json +1025 -0
  125. package/integrations/native/README.md +24 -4
  126. package/integrations/native/build/android/colors.xml +278 -0
  127. package/integrations/native/build/flutter/contour_tokens.dart +280 -0
  128. package/integrations/native/build/ios/ContourTokens.swift +280 -0
  129. package/integrations/validate-markup.mjs +57 -7
  130. package/package.json +45 -18
@@ -645,4 +645,125 @@
645
645
 
646
646
  .mapboxgl-ctrl button.mapboxgl-ctrl-level-button-selected:hover {
647
647
  background: var(--color-surface-3);
648
+ }
649
+
650
+ /* Forced Colors Mode (Windows High Contrast). A vendor control that relies on
651
+ a themed background, a mask-painted icon (drawn by `background-color`) or a
652
+ box-shadow focus ring collapses or loses its ring when the UA forces the
653
+ palette. Re-key every surface, edge and icon to system colours, and move the
654
+ focus ring from box-shadow (dropped) to an outline (kept). R34-86. */
655
+ @media (forced-colors: active) {
656
+ .maplibregl-ctrl,
657
+ .mapboxgl-ctrl,
658
+ .maplibregl-ctrl-group,
659
+ .mapboxgl-ctrl-group,
660
+ .maplibregl-ctrl-layers,
661
+ .mapboxgl-ctrl-layers,
662
+ .maplibregl-popup-content,
663
+ .mapboxgl-popup-content {
664
+ background: Canvas;
665
+ border-color: CanvasText;
666
+ color: CanvasText;
667
+ box-shadow: none;
668
+ }
669
+
670
+ .maplibregl-ctrl button,
671
+ .mapboxgl-ctrl button,
672
+ .maplibregl-ctrl-layers button,
673
+ .mapboxgl-ctrl-layers button {
674
+ background: Canvas;
675
+ color: CanvasText;
676
+ }
677
+
678
+ .maplibregl-ctrl button:disabled,
679
+ .mapboxgl-ctrl button:disabled {
680
+ color: GrayText;
681
+ }
682
+
683
+ .maplibregl-ctrl button:not(:disabled):active,
684
+ .mapboxgl-ctrl button:not(:disabled):active,
685
+ .maplibregl-ctrl button:not(:disabled):hover,
686
+ .mapboxgl-ctrl button:not(:disabled):hover {
687
+ background: Highlight;
688
+ color: HighlightText;
689
+ box-shadow: none;
690
+ }
691
+
692
+ /* Mask-painted icons are drawn by background-color; a forced author
693
+ background collapses to Canvas, so point the mask at CanvasText. */
694
+ .maplibregl-ctrl button .maplibregl-ctrl-icon,
695
+ .mapboxgl-ctrl button .mapboxgl-ctrl-icon,
696
+ .maplibregl-ctrl-attrib-button,
697
+ .mapboxgl-ctrl-attrib-button {
698
+ background-color: CanvasText;
699
+ }
700
+
701
+ .maplibregl-ctrl button:disabled .maplibregl-ctrl-icon,
702
+ .mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon {
703
+ background-color: GrayText;
704
+ }
705
+
706
+ .maplibregl-ctrl-attrib,
707
+ .mapboxgl-ctrl-attrib,
708
+ .maplibregl-ctrl-attrib-inner,
709
+ .mapboxgl-ctrl-attrib-inner {
710
+ background: Canvas !important;
711
+ color: CanvasText;
712
+ }
713
+
714
+ .maplibregl-ctrl-attrib a,
715
+ .mapboxgl-ctrl-attrib a {
716
+ color: LinkText;
717
+ }
718
+
719
+ .maplibregl-ctrl-scale,
720
+ .mapboxgl-ctrl-scale {
721
+ background: Canvas;
722
+ border-color: CanvasText;
723
+ color: CanvasText;
724
+ }
725
+
726
+ .maplibregl-marker,
727
+ .mapboxgl-marker {
728
+ color: CanvasText;
729
+ }
730
+
731
+ /* One coloured side per anchor keeps the popup tip a triangle. */
732
+ .maplibregl-popup-anchor-top .maplibregl-popup-tip,
733
+ .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
734
+ .maplibregl-popup-anchor-top-right .maplibregl-popup-tip,
735
+ .mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
736
+ .mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
737
+ .mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
738
+ border-bottom-color: CanvasText;
739
+ }
740
+
741
+ .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
742
+ .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
743
+ .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip,
744
+ .mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
745
+ .mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
746
+ .mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
747
+ border-top-color: CanvasText;
748
+ }
749
+
750
+ .maplibregl-popup-anchor-left .maplibregl-popup-tip,
751
+ .mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
752
+ border-right-color: CanvasText;
753
+ }
754
+
755
+ .maplibregl-popup-anchor-right .maplibregl-popup-tip,
756
+ .mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
757
+ border-left-color: CanvasText;
758
+ }
759
+
760
+ /* Focus ring survives forced colours as an outline, not a shadow. */
761
+ .maplibregl-ctrl-attrib-button:focus-visible,
762
+ .maplibregl-ctrl-group button:focus-visible,
763
+ .mapboxgl-ctrl-attrib-button:focus-visible,
764
+ .mapboxgl-ctrl-group button:focus-visible {
765
+ outline: 2px solid Highlight;
766
+ outline-offset: 2px;
767
+ box-shadow: none;
768
+ }
648
769
  }
@@ -3,7 +3,7 @@
3
3
  "name": "contour-core",
4
4
  "type": "registry:style",
5
5
  "title": "Contour core",
6
- "description": "Contour core surface: 200.3 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
6
+ "description": "Contour core surface: 215.6 kB of layered CSS, self-contained (the core layer is already inside it), 258 blocks and 322 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": 205077,
38
+ "bundleBytes": 220811,
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: 272.8 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
6
+ "description": "Contour data surface: 290.7 kB of layered CSS, self-contained (the core layer is already inside it), 258 blocks and 322 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": 279362,
38
+ "bundleBytes": 297715,
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: 217.5 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
6
+ "description": "Contour docs surface: 233.7 kB of layered CSS, self-contained (the core layer is already inside it), 258 blocks and 322 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": 222691,
38
+ "bundleBytes": 239327,
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: 208.6 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
6
+ "description": "Contour landing surface: 224.1 kB of layered CSS, self-contained (the core layer is already inside it), 258 blocks and 322 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": 213620,
38
+ "bundleBytes": 229465,
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: 200.3 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
11
+ "description": "Contour core surface: 215.6 kB of layered CSS, self-contained (the core layer is already inside it), 258 blocks and 322 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": 205077,
43
+ "bundleBytes": 220811,
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: 272.8 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
73
+ "description": "Contour data surface: 290.7 kB of layered CSS, self-contained (the core layer is already inside it), 258 blocks and 322 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": 279362,
105
+ "bundleBytes": 297715,
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: 217.5 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
135
+ "description": "Contour docs surface: 233.7 kB of layered CSS, self-contained (the core layer is already inside it), 258 blocks and 322 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": 222691,
167
+ "bundleBytes": 239327,
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: 208.6 kB of layered CSS, self-contained (the core layer is already inside it), 254 blocks and 317 custom properties declared under src/.",
197
+ "description": "Contour landing surface: 224.1 kB of layered CSS, self-contained (the core layer is already inside it), 258 blocks and 322 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": 213620,
229
+ "bundleBytes": 229465,
230
230
  "shared": [
231
231
  {
232
232
  "path": "contour.tokens.json",