@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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.side_panel-content a ds:Subcomponent;
|
|
6
|
+
ds:name "SidePanel.Content";
|
|
7
|
+
ds:summary "The side panel content sits between the header and the footer and holds the panel's main body, such as details or form fields. It is always present. Its children are stacked vertically with a consistent gap. It hugs its content when the content fits. When the content is taller than the space between the header and the footer, it fills that space and scrolls. Its top padding clears the header, which sits over the top of it. The header and footer stay in place while the content scrolls beneath them.";
|
|
8
|
+
ds:anatomyDsl "---\nnode:\n uri: apps.subcomponent.side_panel-content\n styles:\n layout.type: flex\n layout.direction: column\n # Hugs the content until it is taller than the space between the header\n # and the footer, then fills that space and scrolls.\n layout.overflow.block: auto\n spacing.gap: dimension.300\n # Clears the header, which sits over the top of the content.\n spacing.internal.block.start: dimension.800\n spacing.internal.block.end: dimension.300\n spacing.internal.inline.start: dimension.300\n spacing.internal.inline.end: dimension.300";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "The side panel content is a required part of [SidePanel](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fjHExV6dWH), which covers when to use it.";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:parentComponent ds:apps.pattern.side_panel;
|
|
14
|
+
ds:hasTokenBinding [
|
|
15
|
+
a ds:TokenBinding;
|
|
16
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-content;
|
|
17
|
+
ds:node "$root";
|
|
18
|
+
anatomy:styleKey "spacing.gap";
|
|
19
|
+
anatomy:styleState "default";
|
|
20
|
+
ds:rank 1;
|
|
21
|
+
ds:consumesSymbol dt:dimension.300
|
|
22
|
+
], [
|
|
23
|
+
a ds:TokenBinding;
|
|
24
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-content;
|
|
25
|
+
ds:node "$root";
|
|
26
|
+
anatomy:styleKey "spacing.internal.block.start";
|
|
27
|
+
anatomy:styleState "default";
|
|
28
|
+
ds:rank 1;
|
|
29
|
+
ds:consumesSymbol dt:dimension.800
|
|
30
|
+
], [
|
|
31
|
+
a ds:TokenBinding;
|
|
32
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-content;
|
|
33
|
+
ds:node "$root";
|
|
34
|
+
anatomy:styleKey "spacing.internal.block.end";
|
|
35
|
+
anatomy:styleState "default";
|
|
36
|
+
ds:rank 1;
|
|
37
|
+
ds:consumesSymbol dt:dimension.300
|
|
38
|
+
], [
|
|
39
|
+
a ds:TokenBinding;
|
|
40
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-content;
|
|
41
|
+
ds:node "$root";
|
|
42
|
+
anatomy:styleKey "spacing.internal.inline.start";
|
|
43
|
+
anatomy:styleState "default";
|
|
44
|
+
ds:rank 1;
|
|
45
|
+
ds:consumesSymbol dt:dimension.300
|
|
46
|
+
], [
|
|
47
|
+
a ds:TokenBinding;
|
|
48
|
+
ds:viaBlock ds:apps.subcomponent.side_panel-content;
|
|
49
|
+
ds:node "$root";
|
|
50
|
+
anatomy:styleKey "spacing.internal.inline.end";
|
|
51
|
+
anatomy:styleState "default";
|
|
52
|
+
ds:rank 1;
|
|
53
|
+
ds:consumesSymbol dt:dimension.300
|
|
54
|
+
].
|
|
@@ -7,7 +7,7 @@ ds:apps.subcomponent.side_panel-footer a ds:Subcomponent;
|
|
|
7
7
|
ds:summary "The side panel footer sits at the bottom of the panel and holds its actions, such as confirming or cancelling. It is optional. It follows the content directly when the content fits. When the content continues below the visible area, the footer becomes sticky at the bottom of the panel, so the actions stay in reach, and a divider appears along its top edge.";
|
|
8
8
|
ds:anatomyDsl "---\nnode:\n uri: apps.subcomponent.side_panel-footer\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: flex-start\n # Anchors the overflow divider.\n layout.position: relative\n # The block padding of the footer that follows the content: the content's own\n # bottom padding supplies the space above it. While the content continues\n # below, the footer is pinned and takes dimension.200 above and below\n # instead; the roster has no way to scope a style to that condition.\n spacing.internal.block.start: 0\n spacing.internal.block.end: dimension.300\n spacing.internal.inline.start: dimension.300\n spacing.internal.inline.end: dimension.300\n appearance.background: color.background\n edges:\n - node:\n role: button group\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: center\n spacing.gap: dimension.100\n edges:\n - node:\n uri: global.component.button\n relation:\n cardinality: \"1..*\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n role: overflow divider\n styles:\n layout.position: absolute\n layout.offset.top: 0\n layout.offset.left: 0\n size.width: 100%\n # The design draws the rule 2px thick, and no stroke-thickness symbol\n # of that width is declared, so the width is a literal.\n size.block: 2px\n appearance.background: color.border.muted\n relation:\n # Drawn along the footer's top edge only while the content continues\n # below it.\n cardinality: \"0..1\"";
|
|
9
9
|
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16310-1223&t=TFFErubqFoeQwq3Y-1\n\n## Styling\n\n### Layout and spacing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16287-8536&t=TFFErubqFoeQwq3Y-1\n\n### Colors\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16294-12094&t=TFFErubqFoeQwq3Y-1";
|
|
10
|
-
ds:usage "";
|
|
10
|
+
ds:usage "The side panel footer is an optional part of [SidePanel](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fjHExV6dWH), which covers when to use it.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
13
|
ds:documentationStage ds:tag.needscoredocumentation;
|
|
@@ -7,7 +7,7 @@ ds:apps.subcomponent.side_panel-header a ds:Subcomponent;
|
|
|
7
7
|
ds:summary "The side panel header sits at the top of the panel and names it with a title. It holds a close button for dismissing the panel. It is always present and stays fixed at the top while the content scrolls beneath it. A divider appears along its bottom edge when the content continues above the visible area.";
|
|
8
8
|
ds:anatomyDsl "---\nnode:\n uri: apps.subcomponent.side_panel-header\n styles:\n layout.type: flex\n layout.direction: row\n layout.align: flex-start\n # Anchors the overflow divider.\n layout.position: relative\n spacing.gap: dimension.200\n spacing.internal.block.start: dimension.200\n spacing.internal.block.end: dimension.200\n spacing.internal.inline.start: dimension.300\n spacing.internal.inline.end: dimension.300\n appearance.background: color.background\n edges:\n - node:\n role: title\n styles:\n layout.flex.grow: 1\n typography.font: typography.heading.2\n typography.color: color.text\n relation:\n cardinality: \"1\"\n slotName: default\n - node:\n uri: global.component.icon_button\n props:\n icon: close\n styles:\n layout.flex.grow: 0\n relation:\n cardinality: \"1\"\n - node:\n role: overflow divider\n styles:\n layout.position: absolute\n layout.offset.bottom: 0\n layout.offset.left: 0\n size.width: 100%\n # The design draws the rule 2px thick, and no stroke-thickness symbol\n # of that width is declared, so the width is a literal.\n size.block: 2px\n appearance.background: color.border.muted\n relation:\n # Drawn along the header's bottom edge only while the content continues\n # above it.\n cardinality: \"0..1\"";
|
|
9
9
|
ds:anatomyClassic "## Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16310-1140&t=TFFErubqFoeQwq3Y-1\n\n## Styling\n\n### Layout and spacing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16289-9826&t=TFFErubqFoeQwq3Y-1\n\n### Colors\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=16294-11879&t=TFFErubqFoeQwq3Y-1\n\n#### Typography\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=15288-4387&t=TFFErubqFoeQwq3Y-1";
|
|
10
|
-
ds:usage "";
|
|
10
|
+
ds:usage "The side panel header is a required part of [SidePanel](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-fjHExV6dWH), which covers when to use it.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
13
|
ds:documentationStage ds:tag.needscoredocumentation;
|
package/data/apps.ttl
CHANGED
package/data/apps_anbox.ttl
CHANGED
package/data/apps_juju.ttl
CHANGED
package/data/apps_landscape.ttl
CHANGED
package/data/apps_launchpad.ttl
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps_lxd.component.favorite_star_icon_button a ds:Component;
|
|
6
|
+
ds:name "FavoriteStarIconButton";
|
|
7
|
+
ds:summary "Used in LXD context switcher, which is a dropdown list of projects. When you star a project using the star icon button, it moves to the group of favorites at the top of the context switcher.";
|
|
8
|
+
ds:anatomyDsl "";
|
|
9
|
+
ds:anatomyClassic "https://www.figma.com/design/6ErBrUUcPiDstRBLZ7VZRx/27.04-LXD-Favorite-project?node-id=9530-3508";
|
|
10
|
+
ds:usage "https://www.figma.com/proto/6ErBrUUcPiDstRBLZ7VZRx/27.04-LXD-Favorite-project?node-id=9485-12828&p=f&viewport=341%2C-473%2C1.51&t=gchiUe83pCmObSx6-1&scaling=min-zoom&content-scaling=fixed&page-id=9478%3A5545\n\nPrototype above";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:apps_lxd;
|
|
13
|
+
ds:changeLog [
|
|
14
|
+
a ds:ChangeLogEntry;
|
|
15
|
+
ds:timestamp "2026-11-27T00:00:00.000+01:00"
|
|
16
|
+
].
|
package/data/apps_lxd.ttl
CHANGED
package/data/apps_notary.ttl
CHANGED
package/data/apps_portal.ttl
CHANGED
package/data/apps_workplace.ttl
CHANGED