@canonical/design-system 0.1.0 → 0.1.1
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/.gemini/settings.json +14 -0
- package/.github/ISSUE_TEMPLATE/propose-changes-to-existing-ui-block.md +14 -0
- package/.github/ISSUE_TEMPLATE/propose-new-ui-block.md +26 -0
- package/.github/workflows/sync-coda-manual.yml +12 -0
- package/.github/workflows/sync-coda-scheduled.yml +13 -0
- package/.github/workflows/sync-coda.yml +38 -0
- package/.mcp.json +8 -2
- package/GEMINI.md +2 -0
- package/README.md +71 -51
- package/data/apps/component/file_tree.ttl +6 -7
- package/data/apps/component/key_value_pair.ttl +6 -7
- package/data/apps/component/navigation.ttl +6 -7
- package/data/apps/component/notification.ttl +7 -0
- package/data/apps/component/skeleton_loading.ttl +6 -7
- package/data/apps/component/status_bar.ttl +6 -7
- package/data/apps/component/toolbar.ttl +6 -7
- package/data/apps/group/notifications.ttl +7 -0
- package/data/apps/layout/application_layout.ttl +8 -7
- package/data/apps/layout/content_layout.ttl +9 -0
- package/data/apps/layout/empty_layout.ttl +6 -7
- package/data/apps/layout/list_page_layout.ttl +6 -7
- package/data/apps/layout/settings_page_layout.ttl +6 -7
- package/data/apps/layout/view_layout.ttl +9 -0
- package/data/apps/pattern/code_diff.ttl +6 -7
- package/data/apps/pattern/data_table.ttl +6 -7
- package/data/apps/pattern/destructive_modal.ttl +6 -7
- package/data/apps/pattern/key_value_summary.ttl +6 -7
- package/data/apps/pattern/keyboard_shortcuts.ttl +6 -7
- package/data/apps/pattern/notification_center.ttl +6 -7
- package/data/apps/pattern/side_panel.ttl +6 -7
- package/data/apps/pattern/sidepanel_stacked.ttl +6 -7
- package/data/apps/subcomponent/file_tree-node.ttl +7 -0
- package/data/apps.ttl +3 -4
- package/data/apps_anbox/component/copy_to_clipboard.ttl +7 -0
- package/data/apps_anbox/pattern/side_menu.ttl +13 -0
- package/data/apps_anbox.ttl +4 -0
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +7 -0
- package/data/apps_juju.ttl +4 -0
- package/data/apps_landscape/component/password_constraints.ttl +32 -0
- package/data/apps_landscape.ttl +4 -0
- package/data/apps_launchpad/component/badge.ttl +22 -0
- package/data/apps_launchpad/component/breadcrumbs.ttl +14 -0
- package/data/apps_launchpad/component/button.ttl +34 -0
- package/data/apps_launchpad/component/checkbox.ttl +28 -0
- package/data/apps_launchpad/component/chip.ttl +42 -0
- package/data/apps_launchpad/component/combobox.ttl +51 -0
- package/data/apps_launchpad/component/description_list.ttl +13 -0
- package/data/apps_launchpad/component/radio.ttl +34 -0
- package/data/apps_launchpad/component/select.ttl +34 -0
- package/data/apps_launchpad/component/switch.ttl +21 -0
- package/data/apps_launchpad/component/text_input.ttl +35 -0
- package/data/apps_launchpad/component/textarea.ttl +35 -0
- package/data/apps_launchpad/component/tooltip.ttl +27 -0
- package/data/apps_launchpad/component/user_avatar.ttl +25 -0
- package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +29 -0
- package/data/apps_launchpad/subcomponent/combobox-footer.ttl +13 -0
- package/data/apps_launchpad/subcomponent/combobox-group.ttl +20 -0
- package/data/apps_launchpad/subcomponent/combobox-helper.ttl +19 -0
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +13 -0
- package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +13 -0
- package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +29 -0
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +22 -0
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +19 -0
- package/data/apps_launchpad.ttl +4 -0
- package/data/apps_lxd/component/confirmation_checkbox.ttl +7 -0
- package/data/apps_lxd/component/copy_to_clipboard.ttl +7 -0
- package/data/apps_lxd/view/network_topology.ttl +7 -0
- package/data/apps_lxd.ttl +4 -0
- package/data/apps_portal/component/badge.ttl +7 -0
- package/data/apps_portal.ttl +4 -0
- package/data/apps_workplace/component/label-highlight.ttl +7 -0
- package/data/apps_workplace.ttl +4 -0
- package/data/apps_wpe.ttl +3 -4
- package/data/documentation/layout/documentation_layout.ttl +6 -7
- package/data/documentation/pattern/library_side_navigation.ttl +7 -0
- package/data/documentation.ttl +3 -4
- package/data/global/component/accordion.ttl +11 -12
- package/data/global/component/announcement.ttl +6 -7
- package/data/global/component/badge.ttl +7 -8
- package/data/global/component/breadcrumbs.ttl +13 -0
- package/data/global/component/button.ttl +27 -17
- package/data/global/component/button_link.ttl +7 -0
- package/data/global/component/card.ttl +6 -7
- package/data/global/component/chip.ttl +6 -7
- package/data/global/component/code.ttl +7 -0
- package/data/global/component/code_snippet-content.ttl +7 -0
- package/data/global/component/code_snippet-header.ttl +7 -0
- package/data/global/component/code_snippet.ttl +6 -7
- package/data/global/component/contextual_menu.ttl +6 -7
- package/data/global/component/heading.ttl +11 -12
- package/data/global/component/icon.ttl +12 -12
- package/data/global/component/icon_in_container.ttl +6 -7
- package/data/global/component/keyboard_key.ttl +6 -7
- package/data/global/component/label.ttl +12 -13
- package/data/global/component/notification_inline.ttl +6 -7
- package/data/global/component/notification_toast.ttl +6 -7
- package/data/global/component/pagination.ttl +6 -7
- package/data/global/component/popover.ttl +6 -7
- package/data/global/component/rich_text_editor.ttl +6 -7
- package/data/global/component/search_bar.ttl +6 -7
- package/data/global/component/table.ttl +6 -7
- package/data/global/component/tabs.ttl +6 -7
- package/data/global/component/theme_switcher.ttl +6 -7
- package/data/global/component/tile.ttl +11 -12
- package/data/global/component/tooltip.ttl +182 -7
- package/data/global/group/buttons.ttl +6 -7
- package/data/global/group/cards.ttl +6 -7
- package/data/global/group/code_snippets.ttl +7 -0
- package/data/global/group/keyboard_keys.ttl +7 -0
- package/data/global/group/tiles.ttl +6 -7
- package/data/global/layout/error_layout.ttl +6 -7
- package/data/global/layout/form_layout.ttl +6 -7
- package/data/global/layout/identity_page_form.ttl +6 -7
- package/data/global/modifier/alpha.ttl +5 -5
- package/data/global/modifier/beta.ttl +5 -5
- package/data/global/modifier/caution.ttl +5 -5
- package/data/global/modifier/comfortable.ttl +5 -5
- package/data/global/modifier/completed.ttl +5 -5
- package/data/global/modifier/constructive.ttl +5 -5
- package/data/global/modifier/dark.ttl +5 -5
- package/data/global/modifier/dense.ttl +5 -5
- package/data/global/modifier/destructive.ttl +5 -5
- package/data/global/modifier/editable.ttl +5 -5
- package/data/global/modifier/elevated.ttl +5 -5
- package/data/global/modifier/error.ttl +5 -5
- package/data/global/modifier/experimental.ttl +5 -5
- package/data/global/modifier/failed.ttl +5 -5
- package/data/global/modifier/focused.ttl +5 -5
- package/data/global/modifier/highlighted.ttl +5 -5
- package/data/global/modifier/in_progress.ttl +5 -5
- package/data/global/modifier/information.ttl +5 -5
- package/data/global/modifier/light.ttl +5 -5
- package/data/global/modifier/loading.ttl +5 -5
- package/data/global/modifier/muted.ttl +5 -5
- package/data/global/modifier/paper.ttl +5 -5
- package/data/global/modifier/planned.ttl +5 -5
- package/data/global/modifier/primary.ttl +5 -5
- package/data/global/modifier/secondary.ttl +5 -5
- package/data/global/modifier/stable.ttl +5 -5
- package/data/global/modifier/success.ttl +5 -5
- package/data/global/modifier/tertiary.ttl +5 -5
- package/data/global/modifier/warning.ttl +5 -5
- package/data/global/modifier/wireframe.ttl +5 -5
- package/data/global/modifier_family/_color_luminosity.ttl +5 -6
- package/data/global/modifier_family/_emphasis.ttl +5 -6
- package/data/global/modifier_family/_other.ttl +5 -6
- package/data/global/modifier_family/anticipation.ttl +5 -6
- package/data/global/modifier_family/criticality.ttl +5 -6
- package/data/global/modifier_family/density.ttl +5 -6
- package/data/global/modifier_family/importance.ttl +5 -6
- package/data/global/modifier_family/lifecycle.ttl +5 -6
- package/data/global/modifier_family/release.ttl +5 -6
- package/data/global/pattern/dropdown_button.ttl +7 -0
- package/data/global/pattern/info_table.ttl +6 -7
- package/data/global/pattern/modal.ttl +6 -7
- package/data/global/pattern/navigation.ttl +6 -7
- package/data/global/pattern/stepper.ttl +6 -7
- package/data/global/pattern/table_of_contents.ttl +6 -7
- package/data/global/pattern/timeline.ttl +60 -12
- package/data/global/subcomponent/accordion-item.ttl +15 -16
- package/data/global/subcomponent/breadcrumbs-item.ttl +15 -16
- package/data/global/subcomponent/card-content.ttl +11 -12
- package/data/global/subcomponent/card-header.ttl +11 -12
- package/data/global/subcomponent/card-image.ttl +16 -17
- package/data/global/subcomponent/card-thumbnail.ttl +7 -0
- package/data/global/subcomponent/divider.ttl +6 -7
- package/data/global/subcomponent/modal-content.ttl +6 -7
- package/data/global/subcomponent/modal-footer.ttl +6 -7
- package/data/global/subcomponent/modal-header.ttl +6 -7
- package/data/global/subcomponent/spinner.ttl +6 -7
- package/data/global/subcomponent/table-cell.ttl +6 -7
- package/data/global/subcomponent/table-row.ttl +6 -7
- package/data/global/subcomponent/tile-content.ttl +11 -12
- package/data/global/subcomponent/tile-header.ttl +11 -12
- package/data/global/subcomponent/timeline-content.ttl +11 -12
- package/data/global/subcomponent/timeline-event.ttl +42 -27
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +7 -0
- package/data/global/subcomponent/timeline-header.ttl +6 -7
- package/data/global/view/settings_view.ttl +7 -0
- package/data/global.ttl +3 -4
- package/data/global_form/component/checkbox_input.ttl +6 -7
- package/data/global_form/component/choices_input.ttl +6 -7
- package/data/global_form/component/combobox_input.ttl +6 -7
- package/data/global_form/component/custom_choices_input.ttl +6 -7
- package/data/global_form/component/datepicker_input.ttl +6 -7
- package/data/global_form/component/rating_input.ttl +6 -7
- package/data/global_form/component/rich_text_input.ttl +7 -0
- package/data/global_form/component/segmented_control_input.ttl +6 -7
- package/data/global_form/component/slider_input.ttl +6 -7
- package/data/global_form/component/switch_input.ttl +6 -7
- package/data/global_form/component/text_input.ttl +6 -7
- package/data/global_form/component/textarea_input.ttl +6 -7
- package/data/global_form/component/wysiwginput.ttl +6 -7
- package/data/global_form/pattern/field.ttl +6 -7
- package/data/global_form/pattern/form.ttl +6 -7
- package/data/global_form/subcomponent/field-description.ttl +6 -7
- package/data/global_form/subcomponent/field-label.ttl +6 -7
- package/data/global_form.ttl +3 -4
- package/data/site/component/blog_card.ttl +7 -0
- package/data/site/component/quote.ttl +6 -7
- package/data/site/component/rule.ttl +6 -7
- package/data/site/component/section.ttl +6 -7
- package/data/site/group/blog_cards.ttl +7 -0
- package/data/site/layout/blog_page_layout.ttl +7 -0
- package/data/site/layout/case_study_layout.ttl +7 -0
- package/data/site/layout/site_layout.ttl +6 -7
- package/data/site/pattern/hero-github.ttl +6 -7
- package/data/site/pattern/hero.ttl +6 -7
- package/data/site/pattern/info_table.ttl +6 -7
- package/data/site/pattern/pricing_section.ttl +7 -0
- package/data/site/pattern/pricing_table.ttl +7 -0
- package/data/site/pattern/read_more_section.ttl +7 -0
- package/data/site/pattern/skip_link.ttl +6 -7
- package/data/site.ttl +3 -4
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +7 -0
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +7 -0
- package/data/sites_webcomponentsprototype/component/list.ttl +7 -0
- package/data/sites_webcomponentsprototype/component/tabs.ttl +7 -0
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +8 -0
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +7 -0
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +7 -0
- package/data/sites_webcomponentsprototype.ttl +4 -0
- package/data/stores.ttl +3 -4
- package/definitions/ontology.ttl +39 -25
- package/package.json +8 -8
- package/skills/anatomy-author/SKILL.md +9 -9
- package/skills/component-specifier/SKILL.md +81 -85
- package/skills/design-auditor/SKILL.md +45 -45
- package/source.json +35 -33
- package/src/collect/generateTurtle.tests.ts +21 -38
- package/src/commands/transform.ts +27 -3
- package/src/config/source.schema.json +9 -0
- package/src/config/types.ts +7 -0
- package/src/constants.ts +6 -7
- package/src/graph/GraphStore.tests.ts +23 -23
- package/src/graph/GraphStore.ts +2 -2
- package/src/graph/PrefixMap.tests.ts +16 -16
- package/src/graph/PrefixMap.ts +1 -1
- package/src/graph/buildUri.tests.ts +26 -13
- package/src/graph/buildUri.ts +17 -5
- package/src/serializers/JSONSerializer.tests.ts +2 -5
- package/src/serializers/TTLSerializer.tests.ts +2 -4
- package/src/serializers/TTLSerializer.ts +2 -2
- package/src/transform/resolveReferences.tests.ts +2 -2
- package/src/transform/transform.tests.ts +5 -7
- package/src/transform/transform.ts +3 -1
- package/src/transform/transformRow.tests.ts +149 -50
- package/src/transform/transformRow.ts +27 -3
- package/data/global/component/link.ttl +0 -8
- package/data/global/pattern/breadcrumbs.ttl +0 -14
- package/data/global/pattern/select_button.ttl +0 -8
- package/data/global/subcomponent/timeline-footer.ttl +0 -8
- package/session/A.DSL.md +0 -429
- package/session/B.NOTES.md +0 -84
- package/session/global.component.accordion.yaml +0 -13
- package/session/global.component.button.yaml +0 -26
- package/session/global.component.card.yaml +0 -24
- package/session/global.component.icon.yaml +0 -7
- package/session/global.component.label.yaml +0 -7
- package/session/global.component.tile.yaml +0 -21
- package/session/global.component.timeline.yaml +0 -20
- package/session/global.pattern.breadcrumbs.yaml +0 -13
- package/session/global.subcomponent.accordion-item.yaml +0 -37
- package/session/global.subcomponent.breadcrumbs-item.yaml +0 -21
- package/session/global.subcomponent.card-content.yaml +0 -7
- package/session/global.subcomponent.card-header.yaml +0 -22
- package/session/global.subcomponent.card-image.yaml +0 -7
- package/session/global.subcomponent.tile-content.yaml +0 -7
- package/session/global.subcomponent.tile-header.yaml +0 -8
- package/session/global.subcomponent.timeline-content.yaml +0 -13
- package/session/global.subcomponent.timeline-event.yaml +0 -20
- package/session/global.subcomponent.timeline-footer.yaml +0 -9
- package/session/global.subcomponent.timeline-header.yaml +0 -18
package/definitions/ontology.ttl
CHANGED
|
@@ -22,6 +22,12 @@ ds:acceptanceCriteria
|
|
|
22
22
|
rdfs:domain rdf:Property ;
|
|
23
23
|
rdfs:range xsd:string .
|
|
24
24
|
|
|
25
|
+
ds:completionGuidance
|
|
26
|
+
a owl:AnnotationProperty ;
|
|
27
|
+
rdfs:label "completionGuidance" ;
|
|
28
|
+
skos:definition "Completion guidance for this property. This will be shown in an interface for the contributors." ;
|
|
29
|
+
rdfs:domain rdf:Property ;
|
|
30
|
+
rdfs:range xsd:string .
|
|
25
31
|
|
|
26
32
|
####
|
|
27
33
|
# DATATYPES
|
|
@@ -44,7 +50,6 @@ ds:SemverString
|
|
|
44
50
|
skos:definition "Semantic version string following semver specification (MAJOR.MINOR.PATCH)" .
|
|
45
51
|
|
|
46
52
|
|
|
47
|
-
|
|
48
53
|
###############################################################################
|
|
49
54
|
# 1. CORE CLASSES
|
|
50
55
|
###############################################################################
|
|
@@ -148,16 +153,18 @@ ds:name
|
|
|
148
153
|
rdfs:domain ds:UIElement ;
|
|
149
154
|
rdfs:range xsd:string ;
|
|
150
155
|
rdfs:label "name" ;
|
|
151
|
-
skos:definition "" ;
|
|
152
|
-
ds:acceptanceCriteria "
|
|
156
|
+
skos:definition "A human-readable text for the UI element. The primary identifier of the UI element, used for referencing and display purposes." ;
|
|
157
|
+
ds:acceptanceCriteria "Must be a concise, descriptive name that clearly identifies the UI element. Should be unique within the design system and avoid generic terms like 'button' or 'input' without context." ;
|
|
158
|
+
ds:completionGuidance "Provide a clear and descriptive name for the UI element that accurately reflects its purpose and functionality within the design system." .
|
|
153
159
|
|
|
154
|
-
ds:
|
|
160
|
+
ds:summary
|
|
155
161
|
a owl:DatatypeProperty ;
|
|
156
162
|
rdfs:domain ds:UIElement ;
|
|
157
163
|
rdfs:range xsd:string ;
|
|
158
|
-
rdfs:label "
|
|
159
|
-
skos:definition "" ;
|
|
160
|
-
ds:acceptanceCriteria "
|
|
164
|
+
rdfs:label "summary" ;
|
|
165
|
+
skos:definition "A comprehensive paragraph of text that states the singular purpose of the UI element." ;
|
|
166
|
+
ds:acceptanceCriteria "Concise paragraph (3-5 sentences) that clearly describes the purpose of the UI element, lists at least 2-3 use cases, and is written in a clear and accessible way. Enables readers to quickly determine if this is the right component for their needs." ;
|
|
167
|
+
ds:completionGuidance "Write an introduction to the component that gives a quick overview of the UI block (component or pattern). Start with the primary purpose of the UI block and list all the main use cases relating to them. Make sure to include information that can help users decide about if this is the right UI block they need." .
|
|
161
168
|
|
|
162
169
|
ds:version
|
|
163
170
|
a owl:DatatypeProperty, owl:FunctionalProperty ;
|
|
@@ -165,7 +172,8 @@ ds:version
|
|
|
165
172
|
rdfs:range ds:SemverString ;
|
|
166
173
|
rdfs:label "version" ;
|
|
167
174
|
skos:definition "Semantic version of the UI element following semver specification" ;
|
|
168
|
-
ds:acceptanceCriteria "Must follow semantic versioning format: MAJOR.MINOR.PATCH with optional pre-release and build metadata"
|
|
175
|
+
ds:acceptanceCriteria "Must follow semantic versioning format: MAJOR.MINOR.PATCH with optional pre-release and build metadata" ;
|
|
176
|
+
ds:completionGuidance "Provide a semantic version number following the MAJOR.MINOR.PATCH format (e.g., 1.0.0, 2.1.3). Include optional pre-release identifiers (e.g., 1.0.0-alpha) and build metadata (e.g., 1.0.0+build.123456789)." .
|
|
169
177
|
|
|
170
178
|
ds:uri
|
|
171
179
|
a owl:DatatypeProperty, owl:InverseFunctionalProperty ;
|
|
@@ -173,7 +181,7 @@ ds:uri
|
|
|
173
181
|
rdfs:range ds:URIString ;
|
|
174
182
|
rdfs:label "URI" ;
|
|
175
183
|
skos:definition "Unique identifier for the UI element" ;
|
|
176
|
-
ds:acceptanceCriteria "" .
|
|
184
|
+
ds:acceptanceCriteria "Matches the required format: ds:[tier]:[class]:[name]:[version]. Where:[tier] is a valid tier name (core, global, global_form, apps, site, etc.); [class] is a valid UIElement class (component, pattern, layout, modifier, modifier_family, subcomponent, etc.); [name] is lowercase with underscores (e.g., button, empty_state, file_tree); [version] follows semantic versioning (MAJOR.MINOR or MAJOR.MINOR.PATCH)" .
|
|
177
185
|
|
|
178
186
|
ds:decisionLog
|
|
179
187
|
a owl:DatatypeProperty ;
|
|
@@ -181,10 +189,11 @@ ds:decisionLog
|
|
|
181
189
|
rdfs:range xsd:string ;
|
|
182
190
|
rdfs:label "decisionLog" ;
|
|
183
191
|
skos:definition "Log of decisions with [date][author][content]" ;
|
|
184
|
-
ds:acceptanceCriteria "[date] Contains the date of the decision made, [author] Links to the decision maker, [content] Contains the reasons of change, is clear on what the change is"
|
|
192
|
+
ds:acceptanceCriteria "[date] Contains the date of the decision made, [author] Links to the decision maker, [content] Contains the reasons of change, is clear on what the change is" ;
|
|
193
|
+
ds:completionGuidance "Document any decisions made regarding the UI element, including the date of the decision, the author responsible for the decision, and a clear explanation of the change or decision made. This log helps maintain a history of changes and the rationale behind them." .
|
|
185
194
|
|
|
186
195
|
###############################################################################
|
|
187
|
-
#
|
|
196
|
+
# 5. PROPERTIES - UIBlock Specific
|
|
188
197
|
###############################################################################
|
|
189
198
|
|
|
190
199
|
ds:tier
|
|
@@ -193,7 +202,8 @@ ds:tier
|
|
|
193
202
|
rdfs:range ds:Tier ;
|
|
194
203
|
rdfs:label "tier" ;
|
|
195
204
|
skos:definition "The tier to which the UI block belongs to" ;
|
|
196
|
-
ds:acceptanceCriteria "
|
|
205
|
+
ds:acceptanceCriteria "Has to be mandatory and singular. Must be one of the predefined tier values (core, global, global_form, apps, site, etc.)." ;
|
|
206
|
+
ds:completionGuidance "Assign the UI block to a specific tier within the design system. Choose from predefined tier values such as core, global, global_form, apps, site, etc. This property is mandatory and should have only one value." .
|
|
197
207
|
|
|
198
208
|
ds:nextRequiredStep
|
|
199
209
|
a owl:DatatypeProperty ;
|
|
@@ -208,8 +218,8 @@ ds:figmaLink
|
|
|
208
218
|
rdfs:domain ds:UIBlock ;
|
|
209
219
|
rdfs:range xsd:anyURI ;
|
|
210
220
|
rdfs:label "figmaLink" ;
|
|
211
|
-
skos:definition "" ;
|
|
212
|
-
ds:acceptanceCriteria "" .
|
|
221
|
+
skos:definition "Link to the Figma design file for this UI block" ;
|
|
222
|
+
ds:acceptanceCriteria "Must be a valid URL pointing to the Figma design file for this UI block. The URL should be accessible and correctly formatted." .
|
|
213
223
|
|
|
214
224
|
ds:wireframeLink
|
|
215
225
|
a owl:DatatypeProperty ;
|
|
@@ -225,7 +235,7 @@ ds:anatomyClassic
|
|
|
225
235
|
rdfs:range xsd:string ;
|
|
226
236
|
rdfs:label "anatomyClassic" ;
|
|
227
237
|
skos:definition "Legacy anatomy field (free-form text). Superseded by ds:anatomyDsl." ;
|
|
228
|
-
ds:acceptanceCriteria "" .
|
|
238
|
+
ds:acceptanceCriteria "Identifies all significant UI block parts and their relationships. Parts are decomposed only to the level where they are meaningful and reusable (e.g., if a component is made of other published components, reference those components instead of redescribing them). Each part is assigned a descriptive name, visual slot and description of its role in the overall component structure. Relationships between parts are documented: cardinality (1, 0..1, 1..*) and nesting (which parts are contained within others). Includes visual annotations or diagrams showing the anatomical structure. Both visual representation and text list align and describe the same parts. No orphaned or unnamed parts—every element in the anatomy is accounted for" .
|
|
229
239
|
|
|
230
240
|
ds:anatomyDsl
|
|
231
241
|
a owl:DatatypeProperty ;
|
|
@@ -240,32 +250,36 @@ ds:whenToUse
|
|
|
240
250
|
rdfs:domain ds:UIBlock ;
|
|
241
251
|
rdfs:range xsd:string ;
|
|
242
252
|
rdfs:label "whenToUse" ;
|
|
243
|
-
skos:definition "" ;
|
|
244
|
-
ds:acceptanceCriteria "
|
|
253
|
+
skos:definition "Describes the use cases and contexts where this UI block is most appropriate. Provides guidance for deciding when to use and when not to use the component." ;
|
|
254
|
+
ds:acceptanceCriteria "Must be a clear and concise description of when this UI block should be used. Should include all possible use cases where the component is appropriate. Each use case should be clearly defined and distinct from others. All variants of the UI block should be considered in this description. Examples should be taken from real-world and released usage scenarios to illustrate the use cases effectively." ;
|
|
255
|
+
ds:completionGuidance "Provide a clear and concise description of the use cases and contexts where this UI block is most appropriate. Include all possible scenarios where the component should be used, ensuring that each use case is clearly defined and distinct from others. This information will help users understand when to choose this component for their design needs. All variants of the UI block should be considered in this description. All examples should be taken from real-world and released usage scenarios." .
|
|
245
256
|
|
|
246
257
|
ds:whenNotToUse
|
|
247
258
|
a owl:DatatypeProperty ;
|
|
248
259
|
rdfs:domain ds:UIBlock ;
|
|
249
260
|
rdfs:range xsd:string ;
|
|
250
261
|
rdfs:label "whenNotToUse" ;
|
|
251
|
-
skos:definition "" ;
|
|
252
|
-
ds:acceptanceCriteria "
|
|
262
|
+
skos:definition "Describes the use cases and contexts where this UI block is NOT appropriate. Provides guidance for deciding when NOT to use the component and what to use instead." ;
|
|
263
|
+
ds:acceptanceCriteria "Must be a clear and concise description of when this UI block should NOT be used. Should include all possible use cases where the component is inappropriate. Each use case should be clearly defined and distinct from others. All variants of the UI block should be considered in this description. Examples should be taken from real-world and released usage scenarios to illustrate the use cases effectively." ;
|
|
264
|
+
ds:completionGuidance "Provide a clear and concise description of the use cases and contexts where this UI block is NOT appropriate. Include all reasonable possible scenarios where the component should not be used, ensuring that each use case is clearly defined and distinct from others. This information will help users understand when NOT to choose this component for their design needs. All variants of the UI block should be considered in this description. All examples should be taken from real-world and released usage scenarios." .
|
|
253
265
|
|
|
254
266
|
ds:properties
|
|
255
267
|
a owl:DatatypeProperty ;
|
|
256
268
|
rdfs:domain ds:UIBlock ;
|
|
257
269
|
rdfs:range xsd:string ;
|
|
258
270
|
rdfs:label "properties" ;
|
|
259
|
-
skos:definition "" ;
|
|
260
|
-
ds:acceptanceCriteria "
|
|
271
|
+
skos:definition "Formal specification of all configurable attributes (properties) that can be set on this UI block to customize its appearance, behavior, or state. Each property documents its name, data type, whether it's required, default value, and purpose within the component." ;
|
|
272
|
+
ds:acceptanceCriteria "Must be a complete and accurate specification of all configurable attributes for this UI block. Each property must be clearly defined with its name, data type, whether it's required, default value, and purpose. The specification should be structured in a way that is easy to understand and reference, such as a table or list format. " ;
|
|
273
|
+
ds:completionGuidance "Provide a formal specification of all configurable attributes for this UI block. For each property, include the name, data type, whether it's required, default value, and a clear description of its purpose within the component. This information will help users understand how to customize the UI block to fit their specific design needs." .
|
|
261
274
|
|
|
262
275
|
ds:guidelines
|
|
263
276
|
a owl:DatatypeProperty ;
|
|
264
277
|
rdfs:domain ds:UIBlock ;
|
|
265
278
|
rdfs:range xsd:string ;
|
|
266
279
|
rdfs:label "guidelines" ;
|
|
267
|
-
skos:definition "" ; #TODO
|
|
268
|
-
ds:acceptanceCriteria "
|
|
280
|
+
skos:definition "Detailed specification for correctly using and implementing the UI block. " ; #TODO
|
|
281
|
+
ds:acceptanceCriteria "These guidelines should contain the best practices for accessibility, responsiveness, content handling, localization, animation and keyboard intercation of this UI block. They should be comprehensive and cover all important aspects of using and implementing the component correctly." ;
|
|
282
|
+
ds:completionGuidance "Provide detailed guidelines for correctly using and implementing the UI block. Include best practices for accessibility, responsiveness, content handling, localization, animation, and keyboard interaction. Ensure that the guidelines are comprehensive and cover all important aspects of using and implementing the component correctly." .
|
|
269
283
|
|
|
270
284
|
ds:variants
|
|
271
285
|
a owl:DatatypeProperty ;
|
|
@@ -276,7 +290,7 @@ ds:variants
|
|
|
276
290
|
ds:acceptanceCriteria "" . #TODO
|
|
277
291
|
|
|
278
292
|
###############################################################################
|
|
279
|
-
#
|
|
293
|
+
# 6. PROPERTIES - Relationships
|
|
280
294
|
###############################################################################
|
|
281
295
|
|
|
282
296
|
ds:usesToken
|
|
@@ -339,7 +353,7 @@ ds:labelReason # Move to reification
|
|
|
339
353
|
skos:definition "" . #TODO
|
|
340
354
|
|
|
341
355
|
###############################################################################
|
|
342
|
-
#
|
|
356
|
+
# 7. PROPERTIES - Class-Specific
|
|
343
357
|
###############################################################################
|
|
344
358
|
|
|
345
359
|
# Subcomponent
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"types": "src/index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "LGPL-3.0",
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.1",
|
|
8
8
|
"bin": {
|
|
9
9
|
"collect-implementations": "./src/collect-implementations.ts"
|
|
10
10
|
},
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"generate:coda-types": "openapi-typescript https://coda.io/apis/v1/openapi.json -o src/providers/CodaProvider.types.generated.ts"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@biomejs/biome": "^2.3.
|
|
28
|
-
"@canonical/biome-config": "^0.
|
|
29
|
-
"@canonical/typescript-config-react": "^0.
|
|
27
|
+
"@biomejs/biome": "^2.3.14",
|
|
28
|
+
"@canonical/biome-config": "^0.12.0",
|
|
29
|
+
"@canonical/typescript-config-react": "^0.12.0",
|
|
30
30
|
"@types/bun": "latest",
|
|
31
31
|
"@types/jsonld": "^1.5.15",
|
|
32
32
|
"@types/n3": "^1.26.1",
|
|
33
|
-
"openapi-typescript": "^7.
|
|
34
|
-
"vite-tsconfig-paths": "^
|
|
35
|
-
"vitest": "^4.0.
|
|
33
|
+
"openapi-typescript": "^7.12.0",
|
|
34
|
+
"vite-tsconfig-paths": "^6.1.0",
|
|
35
|
+
"vitest": "^4.0.18"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"ajv": "^8.17.1",
|
|
39
39
|
"jsonld": "^9.0.0",
|
|
40
|
-
"n3": "^
|
|
40
|
+
"n3": "^2.0.1"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -25,13 +25,13 @@ This skill helps you author these specifications correctly and consistently.
|
|
|
25
25
|
Before writing an anatomy, understand the component's context:
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
1. sem_lookup(type: "
|
|
28
|
+
1. sem_lookup(type: "ds:Component", filters: {"ds:tier": "ds:global"})
|
|
29
29
|
-> Find existing components in the target tier
|
|
30
30
|
|
|
31
31
|
2. sem_context(node: "ds:global.component.button")
|
|
32
32
|
-> See modifier families and relationships
|
|
33
33
|
|
|
34
|
-
3. sem_lookup(type: "
|
|
34
|
+
3. sem_lookup(type: "ds:Subcomponent", filters: {"ds:parentComponent": "ds:global.component.card"})
|
|
35
35
|
-> Find existing subcomponents for composition patterns
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -40,18 +40,18 @@ Before writing an anatomy, understand the component's context:
|
|
|
40
40
|
**Find components by tier:**
|
|
41
41
|
```sparql
|
|
42
42
|
SELECT ?component ?name WHERE {
|
|
43
|
-
?component a
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
?component a ds:Component ;
|
|
44
|
+
ds:name ?name ;
|
|
45
|
+
ds:tier ds:global .
|
|
46
46
|
}
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
**Find subcomponents of a component:**
|
|
50
50
|
```sparql
|
|
51
51
|
SELECT ?sub ?name WHERE {
|
|
52
|
-
?sub a
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
?sub a ds:Subcomponent ;
|
|
53
|
+
ds:name ?name ;
|
|
54
|
+
ds:parentComponent ds:global.component.card .
|
|
55
55
|
}
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -576,7 +576,7 @@ node:
|
|
|
576
576
|
First, determine if the component exists in the design system:
|
|
577
577
|
|
|
578
578
|
```
|
|
579
|
-
sem_lookup(type: "
|
|
579
|
+
sem_lookup(type: "ds:Component", filters: {"ds:name": "Button"})
|
|
580
580
|
```
|
|
581
581
|
|
|
582
582
|
If it exists, gather context:
|
|
@@ -13,19 +13,19 @@ Specify new UI components with full ontological structure, ensuring consistency
|
|
|
13
13
|
|
|
14
14
|
Before creating a component, understand the context:
|
|
15
15
|
|
|
16
|
-
1. **Identify the tier**: Call `sem_lookup(type: "
|
|
17
|
-
2. **Check existing components**: Call `sem_lookup(type: "
|
|
18
|
-
3. **Understand modifier families**: Call `sem_lookup(type: "
|
|
16
|
+
1. **Identify the tier**: Call `sem_lookup(type: "ds:Tier")` to see available tiers
|
|
17
|
+
2. **Check existing components**: Call `sem_lookup(type: "ds:Component", filters: {"ds:tier": "{tier-uri}"})` to see siblings
|
|
18
|
+
3. **Understand modifier families**: Call `sem_lookup(type: "ds:ModifierFamily")` to see available variant axes
|
|
19
19
|
4. **Check for similar components**: Call `sem_sparql` to search by name patterns
|
|
20
20
|
|
|
21
21
|
```
|
|
22
|
-
sem_lookup(type: "
|
|
22
|
+
sem_lookup(type: "ds:Tier")
|
|
23
23
|
→ Choose tier based on scope (global, apps, site, etc.)
|
|
24
24
|
|
|
25
|
-
sem_lookup(type: "
|
|
25
|
+
sem_lookup(type: "ds:Component", filters: {"ds:tier": "ds:global"})
|
|
26
26
|
→ See existing components in that tier
|
|
27
27
|
|
|
28
|
-
sem_lookup(type: "
|
|
28
|
+
sem_lookup(type: "ds:ModifierFamily")
|
|
29
29
|
→ Identify which modifier families apply
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -69,14 +69,13 @@ Is it for e-commerce?
|
|
|
69
69
|
Query existing modifier families and their usage:
|
|
70
70
|
|
|
71
71
|
```sparql
|
|
72
|
-
PREFIX
|
|
73
|
-
PREFIX ds: <https://ds.canonical.com/data/>
|
|
72
|
+
PREFIX ds: <https://ds.canonical.com/>
|
|
74
73
|
|
|
75
74
|
SELECT ?family ?familyName (COUNT(?component) as ?usage) WHERE {
|
|
76
|
-
?family a
|
|
77
|
-
|
|
75
|
+
?family a ds:ModifierFamily ;
|
|
76
|
+
ds:name ?familyName .
|
|
78
77
|
OPTIONAL {
|
|
79
|
-
?component
|
|
78
|
+
?component ds:hasModifierFamily ?family .
|
|
80
79
|
}
|
|
81
80
|
} GROUP BY ?family ?familyName
|
|
82
81
|
ORDER BY DESC(?usage)
|
|
@@ -109,12 +108,12 @@ Ask the user:
|
|
|
109
108
|
Before creating, verify uniqueness:
|
|
110
109
|
|
|
111
110
|
```sparql
|
|
112
|
-
PREFIX
|
|
111
|
+
PREFIX ds: <https://ds.canonical.com/ontology#>
|
|
113
112
|
|
|
114
113
|
SELECT ?existing ?name ?tier WHERE {
|
|
115
|
-
?existing a
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
?existing a ds:Component ;
|
|
115
|
+
ds:name ?name ;
|
|
116
|
+
ds:tier ?tier .
|
|
118
117
|
FILTER(CONTAINS(LCASE(?name), "{search-term}"))
|
|
119
118
|
}
|
|
120
119
|
```
|
|
@@ -128,39 +127,38 @@ Use the templates below based on gathered information.
|
|
|
128
127
|
### Component Template (Turtle)
|
|
129
128
|
|
|
130
129
|
```turtle
|
|
131
|
-
@prefix
|
|
132
|
-
@prefix ds: <https://ds.canonical.com/data/> .
|
|
130
|
+
@prefix ds: <https://ds.canonical.com/> .
|
|
133
131
|
|
|
134
|
-
ds:{tier}.component.{snake_case_name} a
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
ds:{tier}.component.{snake_case_name} a ds:Component ;
|
|
133
|
+
ds:name "{DisplayName}" ;
|
|
134
|
+
ds:summary """{
|
|
137
135
|
One-paragraph description of what the component is and does.
|
|
138
136
|
Focus on the problem it solves, not implementation details.
|
|
139
137
|
}""" ;
|
|
140
|
-
|
|
138
|
+
ds:tier ds:{tier} ;
|
|
141
139
|
|
|
142
140
|
# Modifier families (remove if not applicable)
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
ds:hasModifierFamily ds:global.modifier_family.{family1} ;
|
|
142
|
+
ds:hasModifierFamily ds:global.modifier_family.{family2} ;
|
|
145
143
|
|
|
146
144
|
# Usage guidance
|
|
147
|
-
|
|
145
|
+
ds:whenToUse """{
|
|
148
146
|
- Scenario 1 when this component is appropriate
|
|
149
147
|
- Scenario 2
|
|
150
148
|
- Scenario 3
|
|
151
149
|
}""" ;
|
|
152
|
-
|
|
150
|
+
ds:whenNotToUse """{
|
|
153
151
|
- Anti-pattern 1: use {alternative} instead
|
|
154
152
|
- Anti-pattern 2
|
|
155
153
|
}""" ;
|
|
156
154
|
|
|
157
155
|
# Design links (add when available)
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
#
|
|
156
|
+
# ds:figmaLink <https://figma.com/file/...> ;
|
|
157
|
+
# ds:wireframeLink <https://...> ;
|
|
158
|
+
# ds:anatomy <https://...> ;
|
|
161
159
|
|
|
162
160
|
# Guidelines
|
|
163
|
-
|
|
161
|
+
ds:guidelines """{
|
|
164
162
|
## Anatomy
|
|
165
163
|
- Part 1: description
|
|
166
164
|
- Part 2: description
|
|
@@ -180,48 +178,47 @@ Focus on the problem it solves, not implementation details.
|
|
|
180
178
|
```json
|
|
181
179
|
{
|
|
182
180
|
"@context": {
|
|
183
|
-
"
|
|
184
|
-
"ds": "https://ds.canonical.com/data/"
|
|
181
|
+
"ds": "https://ds.canonical.com/"
|
|
185
182
|
},
|
|
186
183
|
"@id": "ds:{tier}.component.{snake_case_name}",
|
|
187
|
-
"@type": "
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
184
|
+
"@type": "ds:Component",
|
|
185
|
+
"ds:name": "{DisplayName}",
|
|
186
|
+
"ds:summary": "{description}",
|
|
187
|
+
"ds:tier": { "@id": "ds:{tier}" },
|
|
188
|
+
"ds:hasModifierFamily": [
|
|
192
189
|
{ "@id": "ds:global.modifier_family.{family1}" }
|
|
193
190
|
],
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
191
|
+
"ds:whenToUse": "{usage guidance}",
|
|
192
|
+
"ds:whenNotToUse": "{anti-patterns}",
|
|
193
|
+
"ds:guidelines": "{guidelines}"
|
|
197
194
|
}
|
|
198
195
|
```
|
|
199
196
|
|
|
200
197
|
### Subcomponent Template
|
|
201
198
|
|
|
202
199
|
```turtle
|
|
203
|
-
ds:{tier}.subcomponent.{parent}_{part} a
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
200
|
+
ds:{tier}.subcomponent.{parent}_{part} a ds:Subcomponent ;
|
|
201
|
+
ds:name "{PartName}" ;
|
|
202
|
+
ds:summary "{What this part does}" ;
|
|
203
|
+
ds:tier ds:{tier} ;
|
|
204
|
+
ds:parentComponent ds:{tier}.component.{parent} ;
|
|
205
|
+
ds:standalone false . # true if can be used independently
|
|
209
206
|
```
|
|
210
207
|
|
|
211
208
|
### Pattern Template
|
|
212
209
|
|
|
213
210
|
```turtle
|
|
214
|
-
ds:{tier}.pattern.{snake_case_name} a
|
|
215
|
-
|
|
216
|
-
|
|
211
|
+
ds:{tier}.pattern.{snake_case_name} a ds:Pattern ;
|
|
212
|
+
ds:name "{PatternName}" ;
|
|
213
|
+
ds:summary """{
|
|
217
214
|
Description of the UX problem this pattern solves.
|
|
218
215
|
}""" ;
|
|
219
|
-
|
|
220
|
-
|
|
216
|
+
ds:tier ds:{tier} ;
|
|
217
|
+
ds:whenToUse """{
|
|
221
218
|
- User scenario 1
|
|
222
219
|
- User scenario 2
|
|
223
220
|
}""" ;
|
|
224
|
-
|
|
221
|
+
ds:guidelines """{
|
|
225
222
|
## Structure
|
|
226
223
|
- Required elements
|
|
227
224
|
- Optional elements
|
|
@@ -235,14 +232,14 @@ Description of the UX problem this pattern solves.
|
|
|
235
232
|
### Layout Template
|
|
236
233
|
|
|
237
234
|
```turtle
|
|
238
|
-
ds:{tier}.layout.{snake_case_name} a
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
235
|
+
ds:{tier}.layout.{snake_case_name} a ds:Layout ;
|
|
236
|
+
ds:name "{LayoutName}" ;
|
|
237
|
+
ds:summary "{Purpose of this layout}" ;
|
|
238
|
+
ds:tier ds:{tier} ;
|
|
239
|
+
ds:domain "{information domain}" ;
|
|
240
|
+
ds:grid "{css grid definition}" ;
|
|
241
|
+
ds:gridAreas "{named areas}" ;
|
|
242
|
+
ds:targetDevices "{desktop, tablet, mobile}" .
|
|
246
243
|
```
|
|
247
244
|
|
|
248
245
|
## File Placement
|
|
@@ -282,14 +279,14 @@ Check for:
|
|
|
282
279
|
### Discovery Phase
|
|
283
280
|
|
|
284
281
|
```
|
|
285
|
-
sem_lookup(type: "
|
|
282
|
+
sem_lookup(type: "ds:Tier")
|
|
286
283
|
→ apps tier is appropriate for application navigation
|
|
287
284
|
|
|
288
|
-
sem_lookup(type: "
|
|
285
|
+
sem_lookup(type: "ds:Component", filters: {"ds:tier": "ds:apps"})
|
|
289
286
|
→ See existing: Navigation, Toolbar, StatusBar
|
|
290
287
|
→ Breadcrumb would complement Navigation
|
|
291
288
|
|
|
292
|
-
sem_lookup(type: "
|
|
289
|
+
sem_lookup(type: "ds:ModifierFamily")
|
|
293
290
|
→ density might apply (compact breadcrumbs)
|
|
294
291
|
```
|
|
295
292
|
|
|
@@ -298,28 +295,27 @@ sem_lookup(type: "dso:ModifierFamily")
|
|
|
298
295
|
**File:** `data/apps/component/breadcrumb.ttl`
|
|
299
296
|
|
|
300
297
|
```turtle
|
|
301
|
-
@prefix
|
|
302
|
-
@prefix ds: <https://ds.canonical.com/data/> .
|
|
298
|
+
@prefix ds: <https://ds.canonical.com/> .
|
|
303
299
|
|
|
304
|
-
ds:apps.component.breadcrumb a
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
300
|
+
ds:apps.component.breadcrumb a ds:Component ;
|
|
301
|
+
ds:name "Breadcrumb" ;
|
|
302
|
+
ds:summary """Breadcrumbs display the user's current location within a hierarchical navigation structure, enabling quick traversal back to parent pages.""" ;
|
|
303
|
+
ds:tier ds:apps ;
|
|
308
304
|
|
|
309
|
-
|
|
305
|
+
ds:hasModifierFamily ds:global.modifier_family.density ;
|
|
310
306
|
|
|
311
|
-
|
|
307
|
+
ds:whenToUse """
|
|
312
308
|
- When users need to understand their location in a hierarchy
|
|
313
309
|
- When quick navigation to parent levels is valuable
|
|
314
310
|
- In applications with deep navigation structures (3+ levels)
|
|
315
311
|
""" ;
|
|
316
|
-
|
|
312
|
+
ds:whenNotToUse """
|
|
317
313
|
- For flat navigation structures (use tabs instead)
|
|
318
314
|
- As the primary navigation method (supplement, don't replace)
|
|
319
315
|
- When hierarchy is only 1-2 levels deep
|
|
320
316
|
""" ;
|
|
321
317
|
|
|
322
|
-
|
|
318
|
+
ds:guidelines """
|
|
323
319
|
## Anatomy
|
|
324
320
|
- Container: horizontal list of links
|
|
325
321
|
- Separator: visual divider between items (typically "/" or ">")
|
|
@@ -337,19 +333,19 @@ ds:apps.component.breadcrumb a dso:Component ;
|
|
|
337
333
|
- Separator is decorative (aria-hidden)
|
|
338
334
|
""" .
|
|
339
335
|
|
|
340
|
-
ds:apps.subcomponent.breadcrumb_item a
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
ds:apps.subcomponent.breadcrumb_separator a
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
336
|
+
ds:apps.subcomponent.breadcrumb_item a ds:Subcomponent ;
|
|
337
|
+
ds:name "BreadcrumbItem" ;
|
|
338
|
+
ds:summary "Individual item in the breadcrumb trail" ;
|
|
339
|
+
ds:tier ds:apps ;
|
|
340
|
+
ds:parentComponent ds:apps.component.breadcrumb ;
|
|
341
|
+
ds:standalone false .
|
|
342
|
+
|
|
343
|
+
ds:apps.subcomponent.breadcrumb_separator a ds:Subcomponent ;
|
|
344
|
+
ds:name "BreadcrumbSeparator" ;
|
|
345
|
+
ds:summary "Visual separator between breadcrumb items" ;
|
|
346
|
+
ds:tier ds:apps ;
|
|
347
|
+
ds:parentComponent ds:apps.component.breadcrumb ;
|
|
348
|
+
ds:standalone false .
|
|
353
349
|
```
|
|
354
350
|
|
|
355
351
|
## Response Format
|