@canonical/design-system 0.48.0 → 0.49.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 (108) hide show
  1. package/README.md +3 -3
  2. package/data/apps/component/side_navigation.ttl +17 -17
  3. package/data/apps/pattern/side_panel.ttl +12 -12
  4. package/data/apps/subcomponent/data_table-persistent_selection.ttl +1 -1
  5. package/data/apps/subcomponent/side_navigation-primary_navigation.ttl +638 -0
  6. package/data/apps/subcomponent/side_navigation-secondary_navigation.ttl +646 -0
  7. package/data/apps/subcomponent/side_panel-content.ttl +54 -0
  8. package/data/apps/subcomponent/side_panel-footer.ttl +1 -1
  9. package/data/apps/subcomponent/side_panel-header.ttl +1 -1
  10. package/data/apps.ttl +2 -1
  11. package/data/apps_anbox.ttl +2 -1
  12. package/data/apps_debcrafters.ttl +2 -1
  13. package/data/apps_juju.ttl +2 -1
  14. package/data/apps_landscape.ttl +2 -1
  15. package/data/apps_launchpad.ttl +2 -1
  16. package/data/apps_lxd/component/favorite_star_icon_button.ttl +16 -0
  17. package/data/apps_lxd.ttl +2 -1
  18. package/data/apps_notary.ttl +2 -1
  19. package/data/apps_portal.ttl +2 -1
  20. package/data/apps_workplace.ttl +2 -1
  21. package/data/documentation/pattern/library_side_navigation.ttl +1 -1
  22. package/data/documentation.ttl +2 -1
  23. package/data/global/component/announcement.ttl +1 -1
  24. package/data/global/component/badge.ttl +1 -1
  25. package/data/global/component/chip.ttl +1 -1
  26. package/data/global/component/tag.ttl +1 -1
  27. package/data/global/modifier/achromat.ttl +1 -1
  28. package/data/global/modifier/alpha.ttl +1 -1
  29. package/data/global/modifier/beta.ttl +1 -1
  30. package/data/global/modifier/branded.ttl +8 -0
  31. package/data/global/modifier/caution.ttl +1 -1
  32. package/data/global/modifier/comfortable.ttl +1 -1
  33. package/data/global/modifier/completed.ttl +1 -1
  34. package/data/global/modifier/constructive.ttl +1 -1
  35. package/data/global/modifier/{success.ttl → contrasted.ttl} +3 -3
  36. package/data/global/modifier/dark.ttl +1 -1
  37. package/data/global/modifier/dense.ttl +1 -1
  38. package/data/global/modifier/deprecated.ttl +1 -1
  39. package/data/global/modifier/destructive.ttl +1 -1
  40. package/data/global/modifier/deutan.ttl +1 -1
  41. package/data/global/modifier/end_of_life.ttl +1 -1
  42. package/data/global/modifier/error.ttl +2 -2
  43. package/data/global/modifier/experimental.ttl +1 -1
  44. package/data/global/modifier/failed.ttl +1 -1
  45. package/data/global/modifier/highlighted.ttl +8 -0
  46. package/data/global/modifier/in_progress.ttl +1 -1
  47. package/data/global/modifier/information.ttl +2 -2
  48. package/data/global/modifier/{surface2.ttl → layer1.ttl} +2 -2
  49. package/data/global/modifier/{surface3.ttl → layer2.ttl} +2 -2
  50. package/data/global/modifier/{surface1.ttl → layer3.ttl} +2 -2
  51. package/data/global/modifier/less.ttl +1 -1
  52. package/data/global/modifier/light.ttl +1 -1
  53. package/data/global/modifier/lts.ttl +1 -1
  54. package/data/global/modifier/more.ttl +1 -1
  55. package/data/global/modifier/muted.ttl +8 -0
  56. package/data/global/modifier/planned.ttl +1 -1
  57. package/data/global/modifier/primary.ttl +1 -1
  58. package/data/global/modifier/protan.ttl +1 -1
  59. package/data/global/modifier/secondary.ttl +1 -1
  60. package/data/global/modifier/stable.ttl +1 -1
  61. package/data/global/modifier/standard.ttl +1 -1
  62. package/data/global/modifier/tertiary.ttl +1 -1
  63. package/data/global/modifier/tritan.ttl +1 -1
  64. package/data/global/modifier/typical.ttl +1 -1
  65. package/data/global/modifier/warning.ttl +2 -2
  66. package/data/global/modifier_family/anticipation.ttl +1 -0
  67. package/data/global/modifier_family/color.ttl +1 -0
  68. package/data/global/modifier_family/color_vision.ttl +1 -0
  69. package/data/global/modifier_family/contrast.ttl +1 -0
  70. package/data/global/modifier_family/density.ttl +1 -0
  71. package/data/global/modifier_family/emphasis.ttl +10 -0
  72. package/data/global/modifier_family/importance.ttl +1 -0
  73. package/data/global/modifier_family/lifecycle.ttl +1 -0
  74. package/data/global/modifier_family/release.ttl +1 -0
  75. package/data/global/modifier_family/severity.ttl +10 -0
  76. package/data/global/modifier_family/support.ttl +1 -0
  77. package/data/global/modifier_family/surface.ttl +2 -1
  78. package/data/global/pattern/form.ttl +6 -1
  79. package/data/global/pattern/modal.ttl +5 -0
  80. package/data/global/{modifier_family/_other.ttl → state/editable.ttl} +2 -2
  81. package/data/global/{modifier_family/_emphasis.ttl → state/focused.ttl} +2 -2
  82. package/data/global/{modifier_family/_color_luminosity.ttl → state/invalid.ttl} +2 -2
  83. package/data/global/{modifier/modal.ttl → state/loading.ttl} +3 -3
  84. package/data/global/state/valid.ttl +8 -0
  85. package/data/global/state/wireframe.ttl +8 -0
  86. package/data/global.ttl +2 -1
  87. package/data/global_dataviews/component/query_chip.ttl +1 -1
  88. package/data/global_dataviews/modifier/exclusion.ttl +1 -1
  89. package/data/global_dataviews/modifier/inclusion.ttl +1 -1
  90. package/data/global_dataviews/modifier/match.ttl +1 -1
  91. package/data/global_dataviews/modifier/presence.ttl +1 -1
  92. package/data/global_dataviews/modifier/range.ttl +1 -1
  93. package/data/global_dataviews/modifier_family/condition.ttl +1 -0
  94. package/data/global_dataviews.ttl +2 -1
  95. package/data/sites/component/store_card.ttl +1 -1
  96. package/data/sites.ttl +2 -1
  97. package/data/sites_stores.ttl +2 -1
  98. package/data/sites_webcomponentsprototype/component/list.ttl +6 -1
  99. package/data/sites_webcomponentsprototype.ttl +2 -1
  100. package/definitions/ontology.ttl +46 -0
  101. package/package.json +6 -6
  102. package/skills/design-auditor/SKILL.md +4 -4
  103. package/skills/implement-component/SKILL.md +1 -1
  104. package/skills/specify-component/SKILL.md +1 -1
  105. package/src/graph/GraphStore.ts +8 -2
  106. package/data/global/modifier/elevated.ttl +0 -8
  107. package/data/global/modifier_family/criticality.ttl +0 -9
  108. package/data/global/modifier_family/elevation.ttl +0 -9
@@ -243,8 +243,8 @@ it would accept.
243
243
 
244
244
  **A symbol's coverage — which families may rebind it — is `token lookup`'s
245
245
  `### Covered by` section**, not `modifier lookup`'s. `pragma modifier lookup
246
- Criticality` answers with the family's `### Values` (Error, Information, Success,
247
- Warning) and is the read for what a family offers; `pragma token lookup color.text`
246
+ Severity` answers with the family's `### Values` (Information, Warning,
247
+ Error) and is the read for what a family offers; `pragma token lookup color.text`
248
248
  answers with the families that reach it. Audit from both ends: a family with values
249
249
  nothing covers, and a symbol no family covers, are different findings.
250
250
 
@@ -252,13 +252,13 @@ The family end has no verb of its own — the predicate is `dt:covers`, and the
252
252
  below is the read (the Family Coverage query under Key Queries lists it per family):
253
253
 
254
254
  ```bash
255
- pragma graph query "SELECT ?symbol WHERE { ds:global.modifier_family.criticality dt:covers ?symbol }"
255
+ pragma graph query "SELECT ?symbol WHERE { ds:global.modifier_family.severity dt:covers ?symbol }"
256
256
  ```
257
257
 
258
258
  `modifier lookup` renders the family's values and nothing else, so the family's OWN
259
259
  documentation fields never appear in it — a family with a blank `ds:summary` looks
260
260
  identical to a documented one. For a quality finding about the family itself, inspect
261
- it: `pragma graph inspect ds:global.modifier_family.criticality`. This is the
261
+ it: `pragma graph inspect ds:global.modifier_family.severity`. This is the
262
262
  present-but-blank trap again, one level up from the blocks.
263
263
 
264
264
  `pragma variable lookup modifier-color-text` is the third view of the same fact, and
@@ -409,7 +409,7 @@ still be the wrong symbol for the property you are writing — `anatomy-author`
409
409
  the per-key namespaces, and `anatomies validate --authored` is what enforces them.
410
410
 
411
411
  **`token values --symbol <symbol>`** is one row per position. For a channel it shows
412
- the routing: `modifier.color.text | criticality.error | color.text.error` says that
412
+ the routing: `modifier.color.text | severity.error | color.text.error` says that
413
413
  under `.error`, reading the channel gets you the error text colour. For a flat symbol
414
414
  it shows the resolved value per coordinate, `mode.dark` included.
415
415
 
@@ -328,7 +328,7 @@ renders SKILL.md only — open that file directly for the complete spec).
328
328
 
329
329
  **A modifier family the spec claims is expressed in the anatomy by CONSUMING its
330
330
  channel, never by naming it.** There is no style key, `@state` or `switch`
331
- discriminator that takes a family name, so an anatomy that supports Criticality on its
331
+ discriminator that takes a family name, so an anatomy that supports Severity on its
332
332
  fill colour says so by binding the channel of the symbol the fill reads —
333
333
  `appearance.background: [modifier.color.foreground.primary, color.foreground.primary]`
334
334
  for a filled surface, `typography.color: [modifier.color.text, color.text]` for text.
@@ -38,13 +38,19 @@ export default class GraphStore {
38
38
  * @param subject - Subject URI (e.g., "ds:button")
39
39
  * @param predicate - Predicate URI (e.g., "ds:name")
40
40
  * @param value - Literal string value
41
+ * @param datatype - Datatype URI; absent → a plain string literal
41
42
  */
42
- addLiteral(subject: string, predicate: string, value: string): void {
43
+ addLiteral(
44
+ subject: string,
45
+ predicate: string,
46
+ value: string,
47
+ datatype?: string,
48
+ ): void {
43
49
  this.store.addQuad(
44
50
  quad(
45
51
  namedNode(subject),
46
52
  namedNode(predicate),
47
- literal(value),
53
+ datatype ? literal(value, namedNode(datatype)) : literal(value),
48
54
  defaultGraph(),
49
55
  ),
50
56
  );
@@ -1,8 +0,0 @@
1
- @prefix ds: <https://ds.canonical.com/>.
2
- @prefix anatomy: <https://anatomy.canonical.com/>.
3
- @prefix dt: <https://dt.canonical.com/>.
4
-
5
- ds:global.modifier.elevated a ds:Modifier;
6
- ds:name "Elevated (?)";
7
- ds:summary "";
8
- ds:modifierFamily ds:global.modifier_family.elevation.
@@ -1,9 +0,0 @@
1
- @prefix ds: <https://ds.canonical.com/>.
2
- @prefix anatomy: <https://anatomy.canonical.com/>.
3
- @prefix dt: <https://dt.canonical.com/>.
4
-
5
- ds:global.modifier_family.criticality a ds:ModifierFamily;
6
- ds:name "Criticality";
7
- ds:summary "";
8
- ds:tier ds:global;
9
- ds:hasModifier ds:global.modifier.success, ds:global.modifier.information, ds:global.modifier.warning, ds:global.modifier.error.
@@ -1,9 +0,0 @@
1
- @prefix ds: <https://ds.canonical.com/>.
2
- @prefix anatomy: <https://anatomy.canonical.com/>.
3
- @prefix dt: <https://dt.canonical.com/>.
4
-
5
- ds:global.modifier_family.elevation a ds:ModifierFamily;
6
- ds:name "Elevation";
7
- ds:summary "Fixed per component; bound in anatomy as semantic tokens, not a modifier.";
8
- ds:tier ds:global;
9
- ds:hasModifier ds:global.modifier.modal, ds:global.modifier.elevated.