@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.
- package/README.md +3 -3
- package/data/apps/component/side_navigation.ttl +17 -17
- package/data/apps/pattern/side_panel.ttl +12 -12
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +1 -1
- package/data/apps/subcomponent/side_navigation-primary_navigation.ttl +638 -0
- package/data/apps/subcomponent/side_navigation-secondary_navigation.ttl +646 -0
- package/data/apps/subcomponent/side_panel-content.ttl +54 -0
- package/data/apps/subcomponent/side_panel-footer.ttl +1 -1
- package/data/apps/subcomponent/side_panel-header.ttl +1 -1
- package/data/apps.ttl +2 -1
- package/data/apps_anbox.ttl +2 -1
- package/data/apps_debcrafters.ttl +2 -1
- package/data/apps_juju.ttl +2 -1
- package/data/apps_landscape.ttl +2 -1
- package/data/apps_launchpad.ttl +2 -1
- package/data/apps_lxd/component/favorite_star_icon_button.ttl +16 -0
- package/data/apps_lxd.ttl +2 -1
- package/data/apps_notary.ttl +2 -1
- package/data/apps_portal.ttl +2 -1
- package/data/apps_workplace.ttl +2 -1
- package/data/documentation/pattern/library_side_navigation.ttl +1 -1
- package/data/documentation.ttl +2 -1
- package/data/global/component/announcement.ttl +1 -1
- package/data/global/component/badge.ttl +1 -1
- package/data/global/component/chip.ttl +1 -1
- package/data/global/component/tag.ttl +1 -1
- package/data/global/modifier/achromat.ttl +1 -1
- package/data/global/modifier/alpha.ttl +1 -1
- package/data/global/modifier/beta.ttl +1 -1
- package/data/global/modifier/branded.ttl +8 -0
- package/data/global/modifier/caution.ttl +1 -1
- package/data/global/modifier/comfortable.ttl +1 -1
- package/data/global/modifier/completed.ttl +1 -1
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/{success.ttl → contrasted.ttl} +3 -3
- package/data/global/modifier/dark.ttl +1 -1
- package/data/global/modifier/dense.ttl +1 -1
- package/data/global/modifier/deprecated.ttl +1 -1
- package/data/global/modifier/destructive.ttl +1 -1
- package/data/global/modifier/deutan.ttl +1 -1
- package/data/global/modifier/end_of_life.ttl +1 -1
- package/data/global/modifier/error.ttl +2 -2
- package/data/global/modifier/experimental.ttl +1 -1
- package/data/global/modifier/failed.ttl +1 -1
- package/data/global/modifier/highlighted.ttl +8 -0
- package/data/global/modifier/in_progress.ttl +1 -1
- package/data/global/modifier/information.ttl +2 -2
- package/data/global/modifier/{surface2.ttl → layer1.ttl} +2 -2
- package/data/global/modifier/{surface3.ttl → layer2.ttl} +2 -2
- package/data/global/modifier/{surface1.ttl → layer3.ttl} +2 -2
- package/data/global/modifier/less.ttl +1 -1
- package/data/global/modifier/light.ttl +1 -1
- package/data/global/modifier/lts.ttl +1 -1
- package/data/global/modifier/more.ttl +1 -1
- package/data/global/modifier/muted.ttl +8 -0
- package/data/global/modifier/planned.ttl +1 -1
- package/data/global/modifier/primary.ttl +1 -1
- package/data/global/modifier/protan.ttl +1 -1
- package/data/global/modifier/secondary.ttl +1 -1
- package/data/global/modifier/stable.ttl +1 -1
- package/data/global/modifier/standard.ttl +1 -1
- package/data/global/modifier/tertiary.ttl +1 -1
- package/data/global/modifier/tritan.ttl +1 -1
- package/data/global/modifier/typical.ttl +1 -1
- package/data/global/modifier/warning.ttl +2 -2
- package/data/global/modifier_family/anticipation.ttl +1 -0
- package/data/global/modifier_family/color.ttl +1 -0
- package/data/global/modifier_family/color_vision.ttl +1 -0
- package/data/global/modifier_family/contrast.ttl +1 -0
- package/data/global/modifier_family/density.ttl +1 -0
- package/data/global/modifier_family/emphasis.ttl +10 -0
- package/data/global/modifier_family/importance.ttl +1 -0
- package/data/global/modifier_family/lifecycle.ttl +1 -0
- package/data/global/modifier_family/release.ttl +1 -0
- package/data/global/modifier_family/severity.ttl +10 -0
- package/data/global/modifier_family/support.ttl +1 -0
- package/data/global/modifier_family/surface.ttl +2 -1
- package/data/global/pattern/form.ttl +6 -1
- package/data/global/pattern/modal.ttl +5 -0
- package/data/global/{modifier_family/_other.ttl → state/editable.ttl} +2 -2
- package/data/global/{modifier_family/_emphasis.ttl → state/focused.ttl} +2 -2
- package/data/global/{modifier_family/_color_luminosity.ttl → state/invalid.ttl} +2 -2
- package/data/global/{modifier/modal.ttl → state/loading.ttl} +3 -3
- package/data/global/state/valid.ttl +8 -0
- package/data/global/state/wireframe.ttl +8 -0
- package/data/global.ttl +2 -1
- package/data/global_dataviews/component/query_chip.ttl +1 -1
- package/data/global_dataviews/modifier/exclusion.ttl +1 -1
- package/data/global_dataviews/modifier/inclusion.ttl +1 -1
- package/data/global_dataviews/modifier/match.ttl +1 -1
- package/data/global_dataviews/modifier/presence.ttl +1 -1
- package/data/global_dataviews/modifier/range.ttl +1 -1
- package/data/global_dataviews/modifier_family/condition.ttl +1 -0
- package/data/global_dataviews.ttl +2 -1
- package/data/sites/component/store_card.ttl +1 -1
- package/data/sites.ttl +2 -1
- package/data/sites_stores.ttl +2 -1
- package/data/sites_webcomponentsprototype/component/list.ttl +6 -1
- package/data/sites_webcomponentsprototype.ttl +2 -1
- package/definitions/ontology.ttl +46 -0
- package/package.json +6 -6
- package/skills/design-auditor/SKILL.md +4 -4
- package/skills/implement-component/SKILL.md +1 -1
- package/skills/specify-component/SKILL.md +1 -1
- package/src/graph/GraphStore.ts +8 -2
- package/data/global/modifier/elevated.ttl +0 -8
- package/data/global/modifier_family/criticality.ttl +0 -9
- 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
|
-
|
|
247
|
-
|
|
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.
|
|
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.
|
|
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 |
|
|
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
|
|
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.
|
package/src/graph/GraphStore.ts
CHANGED
|
@@ -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(
|
|
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.
|