contour-ds 1.1.2 → 1.5.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 (71) hide show
  1. package/README.md +7 -1
  2. package/dist/agent-rules.json +5 -1
  3. package/dist/build-manifest.json +93 -92
  4. package/dist/contour-wc.esm.js +4113 -480
  5. package/dist/contour-wc.esm.min.js +1 -1
  6. package/dist/contour-wc.js +4115 -478
  7. package/dist/contour-wc.min.js +1 -1
  8. package/dist/contour.components.json +2597 -135
  9. package/dist/contour.css +625 -27
  10. package/dist/contour.d.ts +109 -61
  11. package/dist/contour.esm.js +16 -0
  12. package/dist/contour.js +16 -0
  13. package/dist/contour.min.css +1 -1
  14. package/dist/contour.tokens.json +37 -0
  15. package/dist/docs/actions.md +6 -2
  16. package/dist/docs/affordances.md +19 -3
  17. package/dist/docs/colour.md +2 -2
  18. package/dist/docs/componentindex.md +39 -0
  19. package/dist/docs/data.md +38 -3
  20. package/dist/docs/docs.md +6 -2
  21. package/dist/docs/feedback.md +13 -3
  22. package/dist/docs/field.md +7 -2
  23. package/dist/docs/forms.md +35 -3
  24. package/dist/docs/index.json +32 -76
  25. package/dist/docs/install.md +4 -2
  26. package/dist/docs/landing.md +3 -2
  27. package/dist/docs/mapengine.md +9 -3
  28. package/dist/docs/motion.md +5 -2
  29. package/dist/docs/navigation.md +10 -3
  30. package/dist/docs/overlays.md +26 -3
  31. package/dist/docs/overview.md +2 -2
  32. package/dist/docs/patterns.md +38 -3
  33. package/dist/docs/playground.md +5 -2
  34. package/dist/docs/principles.md +2 -2
  35. package/dist/docs/recipes.md +7 -3
  36. package/dist/docs/space.md +2 -2
  37. package/dist/docs/status.md +19 -3
  38. package/dist/docs/surfaces.md +7 -3
  39. package/dist/docs/theming.md +5 -2
  40. package/dist/docs/type.md +2 -2
  41. package/dist/docs/webcomponents.md +26 -3
  42. package/dist/map-chrome.mapbox.css +4 -4
  43. package/dist/map-chrome.maplibre.css +4 -4
  44. package/dist/registry/items/contour-core.json +2 -2
  45. package/dist/registry/items/contour-data.json +2 -2
  46. package/dist/registry/items/contour-docs.json +2 -2
  47. package/dist/registry/items/contour-landing.json +2 -2
  48. package/dist/registry/registry.json +8 -8
  49. package/dist/surfaces/contour-core.min.css +1 -1
  50. package/dist/surfaces/contour-data.min.css +1 -1
  51. package/dist/surfaces/contour-docs.min.css +1 -1
  52. package/dist/surfaces/contour-landing.min.css +1 -1
  53. package/dist/wc/behaviours.mjs +69 -11
  54. package/dist/wc/content.mjs +163 -8
  55. package/dist/wc/core.mjs +145 -34
  56. package/dist/wc/dashboard.mjs +69 -4
  57. package/dist/wc/data.mjs +866 -115
  58. package/dist/wc/docs.mjs +1 -0
  59. package/dist/wc/feedback.mjs +75 -13
  60. package/dist/wc/forms.mjs +371 -34
  61. package/dist/wc/index.mjs +7 -3
  62. package/dist/wc/interaction.mjs +11 -6
  63. package/dist/wc/map.mjs +121 -38
  64. package/dist/wc/misc.mjs +29 -1
  65. package/dist/wc/navigation.mjs +424 -75
  66. package/dist/wc/registration.mjs +8 -4
  67. package/dist/wc/shadow.mjs +29 -12
  68. package/dist/wc/states.mjs +15 -0
  69. package/dist/wc/svg.mjs +10 -0
  70. package/dist/wc/ui.mjs +1710 -126
  71. package/package.json +39 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contour-ds",
3
- "version": "1.1.2",
3
+ "version": "1.5.0",
4
4
  "description": "A token-driven design system for spatial interfaces",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,9 +12,12 @@
12
12
  "integrations/"
13
13
  ],
14
14
  "scripts": {
15
- "build": "node tools/build.mjs",
15
+ "build:core": "node tools/build.mjs",
16
+ "generate:storybook": "node tools/gen-storybook-stories.mjs",
17
+ "build": "npm run build:core && npm run generate:storybook && storybook build --output-dir storybook",
16
18
  "snippets": "node tools/snippets.mjs",
17
19
  "check:tokens": "node tools/check-tokens.mjs",
20
+ "check:dead-css": "node tools/check-dead-css.mjs",
18
21
  "check:motion": "node tools/check-motion.mjs",
19
22
  "check:defs": "node tools/check-defs.mjs",
20
23
  "check:light-dark": "node tools/gen-light-dark.mjs --check",
@@ -25,10 +28,23 @@
25
28
  "check:chart": "node tools/audit/chart-geometry.mjs",
26
29
  "check:chart-names": "node tools/audit/chart-names.mjs",
27
30
  "validate": "npx html-validate index.html templates/*.html",
28
- "prepack": "node tools/build.mjs",
31
+ "prepack": "npm run build:core",
29
32
  "check:docs-exec": "node tools/execute-docs.mjs",
30
33
  "check:reflow": "node tools/audit/check-reflow.mjs",
31
- "check:doctor": "node tools/doctor.mjs"
34
+ "check:doctor": "node tools/doctor.mjs",
35
+ "test": "vitest run",
36
+ "test:unit": "vitest run tests/unit",
37
+ "test:integration": "vitest run tests/integration",
38
+ "test:e2e": "playwright test",
39
+ "test:coverage": "vitest run --coverage",
40
+ "test:watch": "vitest",
41
+ "storybook": "npm run build:core && npm run generate:storybook && storybook dev -p 6006",
42
+ "build:storybook": "npm run build",
43
+ "build-storybook": "npm run build:storybook",
44
+ "test:storybook": "npm run build && vitest run --project storybook",
45
+ "check:storybook-coverage": "node tools/check-storybook-coverage.mjs",
46
+ "screenshot:baseline": "node tools/screenshot-baseline.mjs",
47
+ "check:storybook": "npm run build-storybook && npm run test:storybook && npm run check:storybook-coverage"
32
48
  },
33
49
  "keywords": [
34
50
  "design-system",
@@ -82,12 +98,26 @@
82
98
  "node": ">=18"
83
99
  },
84
100
  "devDependencies": {
101
+ "@axe-core/playwright": "^4.14.0",
102
+ "@playwright/test": "^1.64.1",
103
+ "@storybook/addon-a11y": "^10.6.5",
104
+ "@storybook/addon-docs": "^10.6.5",
105
+ "@storybook/addon-mcp": "^10.6.5",
106
+ "@storybook/addon-vitest": "^10.6.5",
107
+ "@storybook/web-components-vite": "^10.6.5",
108
+ "@vitest/browser-playwright": "^5.1.0",
109
+ "@vitest/coverage-v8": "^5.1.0",
85
110
  "ajv": "8.20.0",
86
111
  "dembrandt": "0.39.2",
112
+ "html-validate": "11.18.0",
113
+ "jsdom": "^30.1.3",
114
+ "lit": "3.3.3",
87
115
  "playwright-core": "1.64.1",
88
- "html-validate": "11.17.0"
116
+ "storybook": "^10.6.5",
117
+ "vite": "^8.3.5",
118
+ "vitest": "^5.1.0"
89
119
  },
90
- "author": "Abel V\u00e1zquez Montoro",
120
+ "author": "Abel Vázquez Montoro",
91
121
  "repository": {
92
122
  "type": "git",
93
123
  "url": "https://github.com/AbelVM/contour-ds.git"
@@ -98,5 +128,8 @@
98
128
  },
99
129
  "publishConfig": {
100
130
  "access": "public"
131
+ },
132
+ "allowScripts": {
133
+ "esbuild@0.28.2": true
101
134
  }
102
135
  }