@canonical/design-system 0.1.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/.mcp.json +8 -0
- package/README.md +438 -0
- package/biome.json +6 -0
- package/bun.lock +349 -0
- package/data/apps/component/file_tree.ttl +8 -0
- package/data/apps/component/key_value_pair.ttl +8 -0
- package/data/apps/component/navigation.ttl +8 -0
- package/data/apps/component/skeleton_loading.ttl +8 -0
- package/data/apps/component/status_bar.ttl +8 -0
- package/data/apps/component/toolbar.ttl +8 -0
- package/data/apps/layout/application_layout.ttl +8 -0
- package/data/apps/layout/empty_layout.ttl +8 -0
- package/data/apps/layout/list_page_layout.ttl +8 -0
- package/data/apps/layout/settings_page_layout.ttl +8 -0
- package/data/apps/pattern/code_diff.ttl +8 -0
- package/data/apps/pattern/data_table.ttl +8 -0
- package/data/apps/pattern/destructive_modal.ttl +8 -0
- package/data/apps/pattern/key_value_summary.ttl +8 -0
- package/data/apps/pattern/keyboard_shortcuts.ttl +8 -0
- package/data/apps/pattern/notification_center.ttl +8 -0
- package/data/apps/pattern/side_panel.ttl +8 -0
- package/data/apps/pattern/sidepanel_stacked.ttl +8 -0
- package/data/apps.ttl +5 -0
- package/data/apps_wpe.ttl +5 -0
- package/data/documentation/layout/documentation_layout.ttl +8 -0
- package/data/documentation.ttl +5 -0
- package/data/global/component/accordion.ttl +14 -0
- package/data/global/component/announcement.ttl +8 -0
- package/data/global/component/badge.ttl +9 -0
- package/data/global/component/button.ttl +20 -0
- package/data/global/component/card.ttl +8 -0
- package/data/global/component/chip.ttl +8 -0
- package/data/global/component/code_snippet.ttl +8 -0
- package/data/global/component/contextual_menu.ttl +8 -0
- package/data/global/component/heading.ttl +14 -0
- package/data/global/component/icon.ttl +14 -0
- package/data/global/component/icon_in_container.ttl +8 -0
- package/data/global/component/keyboard_key.ttl +8 -0
- package/data/global/component/label.ttl +15 -0
- package/data/global/component/link.ttl +8 -0
- package/data/global/component/notification_inline.ttl +8 -0
- package/data/global/component/notification_toast.ttl +8 -0
- package/data/global/component/pagination.ttl +8 -0
- package/data/global/component/popover.ttl +8 -0
- package/data/global/component/rich_text_editor.ttl +8 -0
- package/data/global/component/search_bar.ttl +8 -0
- package/data/global/component/table.ttl +8 -0
- package/data/global/component/tabs.ttl +8 -0
- package/data/global/component/theme_switcher.ttl +8 -0
- package/data/global/component/tile.ttl +14 -0
- package/data/global/component/tooltip.ttl +8 -0
- package/data/global/group/buttons.ttl +8 -0
- package/data/global/group/cards.ttl +8 -0
- package/data/global/group/tiles.ttl +8 -0
- package/data/global/layout/error_layout.ttl +8 -0
- package/data/global/layout/form_layout.ttl +8 -0
- package/data/global/layout/identity_page_form.ttl +8 -0
- package/data/global/modifier/alpha.ttl +6 -0
- package/data/global/modifier/beta.ttl +6 -0
- package/data/global/modifier/caution.ttl +6 -0
- package/data/global/modifier/comfortable.ttl +6 -0
- package/data/global/modifier/completed.ttl +6 -0
- package/data/global/modifier/constructive.ttl +6 -0
- package/data/global/modifier/dark.ttl +6 -0
- package/data/global/modifier/dense.ttl +6 -0
- package/data/global/modifier/destructive.ttl +6 -0
- package/data/global/modifier/editable.ttl +6 -0
- package/data/global/modifier/elevated.ttl +6 -0
- package/data/global/modifier/error.ttl +6 -0
- package/data/global/modifier/experimental.ttl +6 -0
- package/data/global/modifier/failed.ttl +6 -0
- package/data/global/modifier/focused.ttl +6 -0
- package/data/global/modifier/highlighted.ttl +6 -0
- package/data/global/modifier/in_progress.ttl +6 -0
- package/data/global/modifier/information.ttl +6 -0
- package/data/global/modifier/light.ttl +6 -0
- package/data/global/modifier/loading.ttl +6 -0
- package/data/global/modifier/muted.ttl +6 -0
- package/data/global/modifier/paper.ttl +6 -0
- package/data/global/modifier/planned.ttl +6 -0
- package/data/global/modifier/primary.ttl +6 -0
- package/data/global/modifier/secondary.ttl +6 -0
- package/data/global/modifier/stable.ttl +6 -0
- package/data/global/modifier/success.ttl +6 -0
- package/data/global/modifier/tertiary.ttl +6 -0
- package/data/global/modifier/warning.ttl +6 -0
- package/data/global/modifier/wireframe.ttl +6 -0
- package/data/global/modifier_family/_color_luminosity.ttl +7 -0
- package/data/global/modifier_family/_emphasis.ttl +7 -0
- package/data/global/modifier_family/_other.ttl +7 -0
- package/data/global/modifier_family/anticipation.ttl +7 -0
- package/data/global/modifier_family/criticality.ttl +7 -0
- package/data/global/modifier_family/density.ttl +7 -0
- package/data/global/modifier_family/importance.ttl +7 -0
- package/data/global/modifier_family/lifecycle.ttl +7 -0
- package/data/global/modifier_family/release.ttl +7 -0
- package/data/global/pattern/breadcrumbs.ttl +14 -0
- package/data/global/pattern/info_table.ttl +8 -0
- package/data/global/pattern/modal.ttl +8 -0
- package/data/global/pattern/navigation.ttl +8 -0
- package/data/global/pattern/select_button.ttl +8 -0
- package/data/global/pattern/stepper.ttl +8 -0
- package/data/global/pattern/table_of_contents.ttl +8 -0
- package/data/global/pattern/timeline.ttl +14 -0
- package/data/global/subcomponent/accordion-item.ttl +19 -0
- package/data/global/subcomponent/breadcrumbs-item.ttl +19 -0
- package/data/global/subcomponent/card-content.ttl +14 -0
- package/data/global/subcomponent/card-header.ttl +14 -0
- package/data/global/subcomponent/card-image.ttl +20 -0
- package/data/global/subcomponent/divider.ttl +8 -0
- package/data/global/subcomponent/modal-content.ttl +8 -0
- package/data/global/subcomponent/modal-footer.ttl +8 -0
- package/data/global/subcomponent/modal-header.ttl +8 -0
- package/data/global/subcomponent/spinner.ttl +8 -0
- package/data/global/subcomponent/table-cell.ttl +8 -0
- package/data/global/subcomponent/table-row.ttl +8 -0
- package/data/global/subcomponent/tile-content.ttl +14 -0
- package/data/global/subcomponent/tile-header.ttl +14 -0
- package/data/global/subcomponent/timeline-content.ttl +14 -0
- package/data/global/subcomponent/timeline-event.ttl +31 -0
- package/data/global/subcomponent/timeline-footer.ttl +8 -0
- package/data/global/subcomponent/timeline-header.ttl +8 -0
- package/data/global.ttl +5 -0
- package/data/global_form/component/checkbox_input.ttl +8 -0
- package/data/global_form/component/choices_input.ttl +8 -0
- package/data/global_form/component/combobox_input.ttl +8 -0
- package/data/global_form/component/custom_choices_input.ttl +8 -0
- package/data/global_form/component/datepicker_input.ttl +8 -0
- package/data/global_form/component/rating_input.ttl +8 -0
- package/data/global_form/component/segmented_control_input.ttl +8 -0
- package/data/global_form/component/slider_input.ttl +8 -0
- package/data/global_form/component/switch_input.ttl +8 -0
- package/data/global_form/component/text_input.ttl +8 -0
- package/data/global_form/component/textarea_input.ttl +8 -0
- package/data/global_form/component/wysiwginput.ttl +8 -0
- package/data/global_form/pattern/field.ttl +8 -0
- package/data/global_form/pattern/form.ttl +8 -0
- package/data/global_form/subcomponent/field-description.ttl +8 -0
- package/data/global_form/subcomponent/field-label.ttl +8 -0
- package/data/global_form.ttl +5 -0
- package/data/site/component/quote.ttl +8 -0
- package/data/site/component/rule.ttl +8 -0
- package/data/site/component/section.ttl +8 -0
- package/data/site/layout/site_layout.ttl +8 -0
- package/data/site/pattern/hero-github.ttl +8 -0
- package/data/site/pattern/hero.ttl +8 -0
- package/data/site/pattern/info_table.ttl +8 -0
- package/data/site/pattern/skip_link.ttl +8 -0
- package/data/site.ttl +5 -0
- package/data/stores.ttl +5 -0
- package/definitions/ontology.ttl +498 -0
- package/package.json +42 -0
- package/session/A.DSL.md +429 -0
- package/session/B.NOTES.md +84 -0
- package/session/global.component.accordion.yaml +13 -0
- package/session/global.component.button.yaml +26 -0
- package/session/global.component.card.yaml +24 -0
- package/session/global.component.icon.yaml +7 -0
- package/session/global.component.label.yaml +7 -0
- package/session/global.component.tile.yaml +21 -0
- package/session/global.component.timeline.yaml +20 -0
- package/session/global.pattern.breadcrumbs.yaml +13 -0
- package/session/global.subcomponent.accordion-item.yaml +37 -0
- package/session/global.subcomponent.breadcrumbs-item.yaml +21 -0
- package/session/global.subcomponent.card-content.yaml +7 -0
- package/session/global.subcomponent.card-header.yaml +22 -0
- package/session/global.subcomponent.card-image.yaml +7 -0
- package/session/global.subcomponent.tile-content.yaml +7 -0
- package/session/global.subcomponent.tile-header.yaml +8 -0
- package/session/global.subcomponent.timeline-content.yaml +13 -0
- package/session/global.subcomponent.timeline-event.yaml +20 -0
- package/session/global.subcomponent.timeline-footer.yaml +9 -0
- package/session/global.subcomponent.timeline-header.yaml +18 -0
- package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +423 -0
- package/skills/anatomy-author/SKILL.md +911 -0
- package/skills/component-specifier/SKILL.md +413 -0
- package/skills/design-auditor/SKILL.md +428 -0
- package/source.json +101 -0
- package/src/cli.ts +45 -0
- package/src/collect/generateTurtle.tests.ts +200 -0
- package/src/collect/generateTurtle.ts +187 -0
- package/src/collect/index.ts +4 -0
- package/src/collect/scanAnnotations.tests.ts +138 -0
- package/src/collect/scanAnnotations.ts +78 -0
- package/src/collect/types.ts +57 -0
- package/src/collect/validateCollectConfig.tests.ts +116 -0
- package/src/collect/validateCollectConfig.ts +74 -0
- package/src/collect-implementations.ts +99 -0
- package/src/commands/extract.tests.ts +41 -0
- package/src/commands/extract.ts +48 -0
- package/src/commands/index.ts +3 -0
- package/src/commands/list.tests.ts +26 -0
- package/src/commands/list.ts +26 -0
- package/src/commands/transform.tests.ts +28 -0
- package/src/commands/transform.ts +133 -0
- package/src/config/index.ts +2 -0
- package/src/config/source.schema.json +110 -0
- package/src/config/types.ts +97 -0
- package/src/config/validateConfig.tests.ts +46 -0
- package/src/config/validateConfig.ts +21 -0
- package/src/constants.ts +20 -0
- package/src/graph/GraphStore.tests.ts +157 -0
- package/src/graph/GraphStore.ts +200 -0
- package/src/graph/PrefixMap.tests.ts +129 -0
- package/src/graph/PrefixMap.ts +95 -0
- package/src/graph/buildUri.tests.ts +158 -0
- package/src/graph/buildUri.ts +69 -0
- package/src/graph/index.ts +4 -0
- package/src/graph/types.ts +20 -0
- package/src/providers/CodaProvider.tests.ts +241 -0
- package/src/providers/CodaProvider.ts +174 -0
- package/src/providers/CodaProvider.types.generated.ts +12236 -0
- package/src/providers/index.ts +18 -0
- package/src/serializers/JSONSerializer.tests.ts +79 -0
- package/src/serializers/JSONSerializer.ts +87 -0
- package/src/serializers/TTLSerializer.tests.ts +75 -0
- package/src/serializers/TTLSerializer.ts +99 -0
- package/src/serializers/index.ts +3 -0
- package/src/serializers/types.ts +16 -0
- package/src/transform/resolveReferences.tests.ts +63 -0
- package/src/transform/resolveReferences.ts +36 -0
- package/src/transform/resolveValue.tests.ts +76 -0
- package/src/transform/resolveValue.ts +87 -0
- package/src/transform/transform.tests.ts +99 -0
- package/src/transform/transform.ts +109 -0
- package/src/transform/transformRow.tests.ts +269 -0
- package/src/transform/transformRow.ts +220 -0
- package/src/transform/types.ts +26 -0
- package/tsconfig.json +8 -0
- package/vite.config.ts +11 -0
- package/vitest.config.ts +21 -0
package/data/site.ttl
ADDED
package/data/stores.ttl
ADDED
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
4
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
5
|
+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
|
6
|
+
@prefix ds: <https://ds.canonical.com/> .
|
|
7
|
+
|
|
8
|
+
# Ontology Declaration
|
|
9
|
+
ds: a owl:Ontology ;
|
|
10
|
+
owl:versionInfo "2.0.0" ;
|
|
11
|
+
rdfs:label "Design System Ontology" ;
|
|
12
|
+
skos:definition "OWL ontology for UI design system based on schema diagram" .
|
|
13
|
+
|
|
14
|
+
###############################################################################
|
|
15
|
+
# METADATA PROPERTY FOR ACCEPTANCE CRITERIA
|
|
16
|
+
###############################################################################
|
|
17
|
+
|
|
18
|
+
ds:acceptanceCriteria
|
|
19
|
+
a owl:AnnotationProperty ;
|
|
20
|
+
rdfs:label "acceptanceCriteria" ;
|
|
21
|
+
skos:definition "Acceptance criteria that must be met for this property" ;
|
|
22
|
+
rdfs:domain rdf:Property ;
|
|
23
|
+
rdfs:range xsd:string .
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
####
|
|
27
|
+
# DATATYPES
|
|
28
|
+
####
|
|
29
|
+
|
|
30
|
+
ds:URIString
|
|
31
|
+
a rdfs:Datatype ;
|
|
32
|
+
owl:onDatatype xsd:string ;
|
|
33
|
+
owl:withRestrictions (
|
|
34
|
+
[ xsd:pattern "^ds:[a-zA-Z]+:[a-zA-Z]+:[a-zA-Z][a-zA-Z0-9]*:[0-9]+\\.[0-9]+\\.[0-9]+(-[a-zA-Z0-9]+)?(\\+[a-zA-Z0-9]+)?$" ]
|
|
35
|
+
) ;
|
|
36
|
+
skos:definition "URI string following pattern ds:[tier]:[class]:[name]:[version]" .
|
|
37
|
+
|
|
38
|
+
ds:SemverString
|
|
39
|
+
a rdfs:Datatype ;
|
|
40
|
+
owl:onDatatype xsd:string ;
|
|
41
|
+
owl:withRestrictions (
|
|
42
|
+
[ xsd:pattern "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?$" ]
|
|
43
|
+
) ;
|
|
44
|
+
skos:definition "Semantic version string following semver specification (MAJOR.MINOR.PATCH)" .
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
###############################################################################
|
|
49
|
+
# 1. CORE CLASSES
|
|
50
|
+
###############################################################################
|
|
51
|
+
|
|
52
|
+
ds:UIElement
|
|
53
|
+
a owl:Class ;
|
|
54
|
+
rdfs:label "UI Element" ;
|
|
55
|
+
skos:definition "Root class for all design system entities" .
|
|
56
|
+
|
|
57
|
+
ds:UIBlock
|
|
58
|
+
a owl:Class ;
|
|
59
|
+
rdfs:subClassOf ds:UIElement ;
|
|
60
|
+
rdfs:label "UI Block" ;
|
|
61
|
+
skos:definition "A category of visual or abstract entity that fulfills a particular role in composing user interfaces" .
|
|
62
|
+
|
|
63
|
+
###############################################################################
|
|
64
|
+
# 2. UI BLOCK SUBCLASSES
|
|
65
|
+
###############################################################################
|
|
66
|
+
|
|
67
|
+
ds:Component
|
|
68
|
+
a owl:Class ;
|
|
69
|
+
rdfs:subClassOf ds:UIBlock ;
|
|
70
|
+
rdfs:label "Component" ;
|
|
71
|
+
skos:definition "An implementable piece of user interface defined by its appearance and behaviour" .
|
|
72
|
+
|
|
73
|
+
ds:Pattern
|
|
74
|
+
a owl:Class ;
|
|
75
|
+
rdfs:subClassOf ds:UIBlock ;
|
|
76
|
+
rdfs:label "Pattern" ;
|
|
77
|
+
skos:definition "A reusable solution to a recurring user problem in a specific context" .
|
|
78
|
+
|
|
79
|
+
ds:Layout
|
|
80
|
+
a owl:Class ;
|
|
81
|
+
rdfs:subClassOf ds:UIBlock ;
|
|
82
|
+
rdfs:label "Layout" ;
|
|
83
|
+
skos:definition "Layouts are an opinionated division of space to navigate a domain of information." .
|
|
84
|
+
|
|
85
|
+
ds:Subcomponent
|
|
86
|
+
a owl:Class ;
|
|
87
|
+
rdfs:subClassOf ds:UIBlock ;
|
|
88
|
+
rdfs:label "Subcomponent" ;
|
|
89
|
+
skos:definition "" . #TODO
|
|
90
|
+
|
|
91
|
+
###############################################################################
|
|
92
|
+
# 3. OTHER CORE CLASSES
|
|
93
|
+
###############################################################################
|
|
94
|
+
|
|
95
|
+
ds:Modifier
|
|
96
|
+
a owl:Class ;
|
|
97
|
+
rdfs:subClassOf ds:UIElement ;
|
|
98
|
+
rdfs:label "Modifier" ;
|
|
99
|
+
skos:definition "" . #TODO
|
|
100
|
+
|
|
101
|
+
ds:ModifierFamily
|
|
102
|
+
a owl:Class ;
|
|
103
|
+
rdfs:subClassOf ds:UIElement ;
|
|
104
|
+
rdfs:label "Modifier Family" ;
|
|
105
|
+
skos:definition "A grouping of related modifiers that can be applied to UI Blocks" .
|
|
106
|
+
|
|
107
|
+
ds:Property
|
|
108
|
+
a owl:Class ;
|
|
109
|
+
rdfs:label "Property" ;
|
|
110
|
+
skos:definition "A configurable property of a UI Block" .
|
|
111
|
+
|
|
112
|
+
ds:Token
|
|
113
|
+
a owl:Class ;
|
|
114
|
+
rdfs:label "Token" ;
|
|
115
|
+
skos:definition "" . #TODO
|
|
116
|
+
|
|
117
|
+
ds:Tier
|
|
118
|
+
a owl:Class ;
|
|
119
|
+
rdfs:label "Tier" ;
|
|
120
|
+
skos:definition "" . #TODO
|
|
121
|
+
|
|
122
|
+
ds:Label
|
|
123
|
+
a owl:Class ;
|
|
124
|
+
rdfs:label "Label" ;
|
|
125
|
+
skos:definition "" . #TODO
|
|
126
|
+
|
|
127
|
+
ds:ImplementationObject
|
|
128
|
+
a owl:Class ;
|
|
129
|
+
rdfs:label "Implementation Object" ;
|
|
130
|
+
skos:definition "Platform-specific implementation of a UI Block" .
|
|
131
|
+
|
|
132
|
+
ds:ImplementationLibrary
|
|
133
|
+
a owl:Class ;
|
|
134
|
+
rdfs:label "Implementation Library" ;
|
|
135
|
+
skos:definition "" . #TODO
|
|
136
|
+
|
|
137
|
+
ds:Affordance
|
|
138
|
+
a owl:Class ;
|
|
139
|
+
rdfs:label "Affordance" ;
|
|
140
|
+
skos:definition "" . #TODO
|
|
141
|
+
|
|
142
|
+
###############################################################################
|
|
143
|
+
# 4. PROPERTIES - UIElement Base Properties
|
|
144
|
+
###############################################################################
|
|
145
|
+
|
|
146
|
+
ds:name
|
|
147
|
+
a owl:DatatypeProperty ;
|
|
148
|
+
rdfs:domain ds:UIElement ;
|
|
149
|
+
rdfs:range xsd:string ;
|
|
150
|
+
rdfs:label "name" ;
|
|
151
|
+
skos:definition "" ; #TODO
|
|
152
|
+
ds:acceptanceCriteria "" . #TODO
|
|
153
|
+
|
|
154
|
+
ds:description
|
|
155
|
+
a owl:DatatypeProperty ;
|
|
156
|
+
rdfs:domain ds:UIElement ;
|
|
157
|
+
rdfs:range xsd:string ;
|
|
158
|
+
rdfs:label "description" ;
|
|
159
|
+
skos:definition "" ; #TODO
|
|
160
|
+
ds:acceptanceCriteria "" . #TODO
|
|
161
|
+
|
|
162
|
+
ds:version
|
|
163
|
+
a owl:DatatypeProperty, owl:FunctionalProperty ;
|
|
164
|
+
rdfs:domain ds:UIElement ;
|
|
165
|
+
rdfs:range ds:SemverString ;
|
|
166
|
+
rdfs:label "version" ;
|
|
167
|
+
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" .
|
|
169
|
+
|
|
170
|
+
ds:uri
|
|
171
|
+
a owl:DatatypeProperty, owl:InverseFunctionalProperty ;
|
|
172
|
+
rdfs:domain ds:UIElement ;
|
|
173
|
+
rdfs:range ds:URIString ;
|
|
174
|
+
rdfs:label "URI" ;
|
|
175
|
+
skos:definition "Unique identifier for the UI element" ;
|
|
176
|
+
ds:acceptanceCriteria "" . #TODO
|
|
177
|
+
|
|
178
|
+
ds:decisionLog
|
|
179
|
+
a owl:DatatypeProperty ;
|
|
180
|
+
rdfs:domain ds:UIElement ;
|
|
181
|
+
rdfs:range xsd:string ;
|
|
182
|
+
rdfs:label "decisionLog" ;
|
|
183
|
+
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" .
|
|
185
|
+
|
|
186
|
+
###############################################################################
|
|
187
|
+
# 6. PROPERTIES - UIBlock Specific
|
|
188
|
+
###############################################################################
|
|
189
|
+
|
|
190
|
+
ds:tier
|
|
191
|
+
a owl:ObjectProperty, owl:FunctionalProperty ;
|
|
192
|
+
rdfs:domain ds:UIBlock ;
|
|
193
|
+
rdfs:range ds:Tier ;
|
|
194
|
+
rdfs:label "tier" ;
|
|
195
|
+
skos:definition "The tier to which the UI block belongs to" ;
|
|
196
|
+
ds:acceptanceCriteria "" . #TODO
|
|
197
|
+
|
|
198
|
+
ds:nextRequiredStep
|
|
199
|
+
a owl:DatatypeProperty ;
|
|
200
|
+
rdfs:domain ds:UIBlock ;
|
|
201
|
+
rdfs:range xsd:string ;
|
|
202
|
+
rdfs:label "nextRequiredStep" ;
|
|
203
|
+
skos:definition "" ; #TODO
|
|
204
|
+
ds:acceptanceCriteria "" . #TODO
|
|
205
|
+
|
|
206
|
+
ds:figmaLink
|
|
207
|
+
a owl:DatatypeProperty ;
|
|
208
|
+
rdfs:domain ds:UIBlock ;
|
|
209
|
+
rdfs:range xsd:anyURI ;
|
|
210
|
+
rdfs:label "figmaLink" ;
|
|
211
|
+
skos:definition "" ; #TODO
|
|
212
|
+
ds:acceptanceCriteria "" . #TODO
|
|
213
|
+
|
|
214
|
+
ds:wireframeLink
|
|
215
|
+
a owl:DatatypeProperty ;
|
|
216
|
+
rdfs:domain ds:UIBlock ;
|
|
217
|
+
rdfs:range xsd:anyURI ;
|
|
218
|
+
rdfs:label "wireframeLink" ;
|
|
219
|
+
skos:definition "" ; #TODO
|
|
220
|
+
ds:acceptanceCriteria "" . #TODO
|
|
221
|
+
|
|
222
|
+
ds:anatomyClassic
|
|
223
|
+
a owl:DatatypeProperty ;
|
|
224
|
+
rdfs:domain ds:UIBlock ;
|
|
225
|
+
rdfs:range xsd:string ;
|
|
226
|
+
rdfs:label "anatomyClassic" ;
|
|
227
|
+
skos:definition "Legacy anatomy field (free-form text). Superseded by ds:anatomyDsl." ;
|
|
228
|
+
ds:acceptanceCriteria "" . #TODO
|
|
229
|
+
|
|
230
|
+
ds:anatomyDsl
|
|
231
|
+
a owl:DatatypeProperty ;
|
|
232
|
+
rdfs:domain ds:UIBlock ;
|
|
233
|
+
rdfs:range xsd:string ;
|
|
234
|
+
rdfs:label "anatomyDsl" ;
|
|
235
|
+
skos:definition "YAML specification of component structure using the Anatomy DSL. Describes nodes (named/anonymous), edges with cardinality, slots, and CTI-inspired styles." ;
|
|
236
|
+
ds:acceptanceCriteria "Must be valid YAML conforming to the Anatomy DSL specification. Root node must be named (have uri). See skills/anatomy-author/SKILL.md for format." .
|
|
237
|
+
|
|
238
|
+
ds:whenToUse
|
|
239
|
+
a owl:DatatypeProperty ;
|
|
240
|
+
rdfs:domain ds:UIBlock ;
|
|
241
|
+
rdfs:range xsd:string ;
|
|
242
|
+
rdfs:label "whenToUse" ;
|
|
243
|
+
skos:definition "" ; #TODO
|
|
244
|
+
ds:acceptanceCriteria "" . #TODO
|
|
245
|
+
|
|
246
|
+
ds:whenNotToUse
|
|
247
|
+
a owl:DatatypeProperty ;
|
|
248
|
+
rdfs:domain ds:UIBlock ;
|
|
249
|
+
rdfs:range xsd:string ;
|
|
250
|
+
rdfs:label "whenNotToUse" ;
|
|
251
|
+
skos:definition "" ; #TODO
|
|
252
|
+
ds:acceptanceCriteria "" . #TODO
|
|
253
|
+
|
|
254
|
+
ds:properties
|
|
255
|
+
a owl:DatatypeProperty ;
|
|
256
|
+
rdfs:domain ds:UIBlock ;
|
|
257
|
+
rdfs:range xsd:string ;
|
|
258
|
+
rdfs:label "properties" ;
|
|
259
|
+
skos:definition "" ; #TODO
|
|
260
|
+
ds:acceptanceCriteria "" . #TODO
|
|
261
|
+
|
|
262
|
+
ds:guidelines
|
|
263
|
+
a owl:DatatypeProperty ;
|
|
264
|
+
rdfs:domain ds:UIBlock ;
|
|
265
|
+
rdfs:range xsd:string ;
|
|
266
|
+
rdfs:label "guidelines" ;
|
|
267
|
+
skos:definition "" ; #TODO
|
|
268
|
+
ds:acceptanceCriteria "" . #TODO
|
|
269
|
+
|
|
270
|
+
ds:variants
|
|
271
|
+
a owl:DatatypeProperty ;
|
|
272
|
+
rdfs:domain ds:UIBlock ;
|
|
273
|
+
rdfs:range xsd:string ;
|
|
274
|
+
rdfs:label "variants" ;
|
|
275
|
+
skos:definition "" ; #TODO
|
|
276
|
+
ds:acceptanceCriteria "" . #TODO
|
|
277
|
+
|
|
278
|
+
###############################################################################
|
|
279
|
+
# 7. PROPERTIES - Relationships
|
|
280
|
+
###############################################################################
|
|
281
|
+
|
|
282
|
+
ds:usesToken
|
|
283
|
+
a owl:ObjectProperty ;
|
|
284
|
+
rdfs:domain ds:UIBlock ;
|
|
285
|
+
rdfs:range ds:Token ;
|
|
286
|
+
rdfs:label "usesToken" ;
|
|
287
|
+
skos:definition "" ; #TODO
|
|
288
|
+
ds:acceptanceCriteria "" . #TODO
|
|
289
|
+
|
|
290
|
+
ds:hasAffordance
|
|
291
|
+
a owl:ObjectProperty ;
|
|
292
|
+
rdfs:domain ds:UIBlock ;
|
|
293
|
+
rdfs:range ds:Affordance ;
|
|
294
|
+
rdfs:label "hasAffordance" ;
|
|
295
|
+
skos:definition "" . #TODO
|
|
296
|
+
|
|
297
|
+
ds:hasLabel
|
|
298
|
+
a owl:ObjectProperty ;
|
|
299
|
+
rdfs:domain ds:UIBlock ;
|
|
300
|
+
rdfs:range ds:Label ;
|
|
301
|
+
rdfs:label "hasLabel" ;
|
|
302
|
+
skos:definition "" ; #TODO
|
|
303
|
+
ds:acceptanceCriteria "" . #TODO
|
|
304
|
+
|
|
305
|
+
ds:hasModifierFamily
|
|
306
|
+
a owl:ObjectProperty ;
|
|
307
|
+
rdfs:domain ds:UIBlock ;
|
|
308
|
+
rdfs:range ds:ModifierFamily ;
|
|
309
|
+
rdfs:label "hasModifierFamily" ;
|
|
310
|
+
skos:definition "Links a UI Block to applicable modifier families" .
|
|
311
|
+
|
|
312
|
+
ds:hasProperty
|
|
313
|
+
a owl:ObjectProperty ;
|
|
314
|
+
rdfs:domain ds:UIBlock ;
|
|
315
|
+
rdfs:range ds:Property ;
|
|
316
|
+
rdfs:label "hasProperty" ;
|
|
317
|
+
skos:definition "Links a UI Block to its configurable properties" .
|
|
318
|
+
|
|
319
|
+
ds:modifierFamily
|
|
320
|
+
a owl:ObjectProperty, owl:FunctionalProperty ;
|
|
321
|
+
rdfs:domain ds:Modifier ;
|
|
322
|
+
rdfs:range ds:ModifierFamily ;
|
|
323
|
+
rdfs:label "modifierFamily" ;
|
|
324
|
+
skos:definition "The modifier family to which this modifier belongs" .
|
|
325
|
+
|
|
326
|
+
ds:hasModifier
|
|
327
|
+
a owl:ObjectProperty ;
|
|
328
|
+
rdfs:domain ds:ModifierFamily ;
|
|
329
|
+
rdfs:range ds:Modifier ;
|
|
330
|
+
owl:inverseOf ds:modifierFamily ;
|
|
331
|
+
rdfs:label "hasModifier" ;
|
|
332
|
+
skos:definition "Modifiers belonging to this modifier family" .
|
|
333
|
+
|
|
334
|
+
ds:labelReason # Move to reification
|
|
335
|
+
a owl:DatatypeProperty ;
|
|
336
|
+
rdfs:domain ds:UIBlock ;
|
|
337
|
+
rdfs:range xsd:string ;
|
|
338
|
+
rdfs:label "" ; #TODO
|
|
339
|
+
skos:definition "" . #TODO
|
|
340
|
+
|
|
341
|
+
###############################################################################
|
|
342
|
+
# 8. PROPERTIES -
|
|
343
|
+
###############################################################################
|
|
344
|
+
|
|
345
|
+
# Subcomponent
|
|
346
|
+
|
|
347
|
+
ds:standalone
|
|
348
|
+
a owl:DatatypeProperty, owl:FunctionalProperty ;
|
|
349
|
+
rdfs:domain ds:Subcomponent ;
|
|
350
|
+
rdfs:range xsd:boolean ;
|
|
351
|
+
rdfs:label "standalone" ;
|
|
352
|
+
skos:definition "" ; #TODO
|
|
353
|
+
ds:acceptanceCriteria "" . #TODO
|
|
354
|
+
|
|
355
|
+
ds:parentComponent
|
|
356
|
+
a owl:ObjectProperty ;
|
|
357
|
+
rdfs:domain ds:Subcomponent ;
|
|
358
|
+
rdfs:range ds:Component ;
|
|
359
|
+
rdfs:label "parentComponent" ;
|
|
360
|
+
skos:definition "Parent component if not standalone" ;
|
|
361
|
+
ds:acceptanceCriteria "" . #TODO
|
|
362
|
+
|
|
363
|
+
ds:hasSubcomponent
|
|
364
|
+
a owl:ObjectProperty ;
|
|
365
|
+
rdfs:domain ds:Component ;
|
|
366
|
+
rdfs:range ds:Subcomponent ;
|
|
367
|
+
owl:inverseOf ds:parentComponent ;
|
|
368
|
+
rdfs:label "hasSubcomponent" ;
|
|
369
|
+
skos:definition "" ; #TODO
|
|
370
|
+
ds:acceptanceCriteria "" . #TODO
|
|
371
|
+
|
|
372
|
+
# Layout
|
|
373
|
+
|
|
374
|
+
ds:grid
|
|
375
|
+
a owl:DatatypeProperty ;
|
|
376
|
+
rdfs:domain ds:Layout ;
|
|
377
|
+
rdfs:range xsd:string ;
|
|
378
|
+
rdfs:label "grid" ;
|
|
379
|
+
skos:definition "" ; #TODO
|
|
380
|
+
ds:acceptanceCriteria "" . #TODO
|
|
381
|
+
|
|
382
|
+
ds:domain
|
|
383
|
+
a owl:DatatypeProperty ;
|
|
384
|
+
rdfs:domain ds:Layout ;
|
|
385
|
+
rdfs:range xsd:string ;
|
|
386
|
+
rdfs:label "domain" ;
|
|
387
|
+
skos:definition "The domain of information associated with the layout." ; #TODO
|
|
388
|
+
ds:acceptanceCriteria "" . #TODO
|
|
389
|
+
|
|
390
|
+
ds:gridAreas
|
|
391
|
+
a owl:DatatypeProperty ;
|
|
392
|
+
rdfs:domain ds:Layout ;
|
|
393
|
+
rdfs:range xsd:string ;
|
|
394
|
+
rdfs:label "gridAreas" ;
|
|
395
|
+
skos:definition "" ; #TODO
|
|
396
|
+
ds:acceptanceCriteria "" . #TODO
|
|
397
|
+
|
|
398
|
+
ds:targetDevices
|
|
399
|
+
a owl:DatatypeProperty ;
|
|
400
|
+
rdfs:domain ds:Layout ;
|
|
401
|
+
rdfs:range xsd:string ;
|
|
402
|
+
rdfs:label "targetDevices" ;
|
|
403
|
+
skos:definition "" ; #TODO
|
|
404
|
+
ds:acceptanceCriteria "" . #TODO
|
|
405
|
+
|
|
406
|
+
# Implementation Object
|
|
407
|
+
|
|
408
|
+
ds:implementsBlock
|
|
409
|
+
a owl:ObjectProperty, owl:FunctionalProperty ;
|
|
410
|
+
rdfs:domain ds:ImplementationObject ;
|
|
411
|
+
rdfs:range ds:UIBlock ;
|
|
412
|
+
rdfs:label "implementsBlock" ;
|
|
413
|
+
skos:definition "" . #TODO
|
|
414
|
+
|
|
415
|
+
ds:implementationVersion
|
|
416
|
+
a owl:DatatypeProperty, owl:FunctionalProperty ;
|
|
417
|
+
rdfs:domain ds:ImplementationObject ;
|
|
418
|
+
rdfs:range xsd:string ;
|
|
419
|
+
rdfs:label "implementationVersion" ;
|
|
420
|
+
skos:definition "" . #TODO
|
|
421
|
+
|
|
422
|
+
ds:library
|
|
423
|
+
a owl:ObjectProperty, owl:FunctionalProperty ;
|
|
424
|
+
rdfs:domain ds:ImplementationObject ;
|
|
425
|
+
rdfs:range ds:ImplementationLibrary ;
|
|
426
|
+
rdfs:label "library" ;
|
|
427
|
+
skos:definition "" . #TODO
|
|
428
|
+
|
|
429
|
+
ds:headLink
|
|
430
|
+
a owl:DatatypeProperty ;
|
|
431
|
+
rdfs:domain ds:ImplementationObject ;
|
|
432
|
+
rdfs:range xsd:anyURI ;
|
|
433
|
+
rdfs:label "headLink" ;
|
|
434
|
+
skos:definition "" . #TODO
|
|
435
|
+
|
|
436
|
+
ds:versionedLink
|
|
437
|
+
a owl:DatatypeProperty ;
|
|
438
|
+
rdfs:domain ds:ImplementationObject ;
|
|
439
|
+
rdfs:range xsd:string ;
|
|
440
|
+
rdfs:label "versionedLink" ;
|
|
441
|
+
skos:definition "" . #TODO
|
|
442
|
+
|
|
443
|
+
ds:isDraft
|
|
444
|
+
a owl:DatatypeProperty ;
|
|
445
|
+
rdfs:domain ds:ImplementationObject ;
|
|
446
|
+
rdfs:range xsd:boolean ;
|
|
447
|
+
rdfs:label "isDraft" ;
|
|
448
|
+
skos:definition "" ; #TODO
|
|
449
|
+
ds:acceptanceCriteria "" . #TODO
|
|
450
|
+
|
|
451
|
+
# Implementation Library
|
|
452
|
+
|
|
453
|
+
ds:libraryName
|
|
454
|
+
a owl:DatatypeProperty ;
|
|
455
|
+
rdfs:domain ds:ImplementationLibrary ;
|
|
456
|
+
rdfs:range xsd:string ;
|
|
457
|
+
rdfs:label "libraryName" ;
|
|
458
|
+
skos:definition "" ; #TODO
|
|
459
|
+
ds:acceptanceCriteria "" . #TODO
|
|
460
|
+
|
|
461
|
+
ds:platform
|
|
462
|
+
a owl:DatatypeProperty ;
|
|
463
|
+
rdfs:domain ds:ImplementationLibrary ;
|
|
464
|
+
rdfs:range xsd:string ;
|
|
465
|
+
rdfs:label "platform" ;
|
|
466
|
+
skos:definition "" ; #TODO
|
|
467
|
+
ds:acceptanceCriteria "" . #TODO
|
|
468
|
+
|
|
469
|
+
ds:libraryDescription
|
|
470
|
+
a owl:DatatypeProperty ;
|
|
471
|
+
rdfs:domain ds:ImplementationLibrary ;
|
|
472
|
+
rdfs:range xsd:string ;
|
|
473
|
+
rdfs:label "libraryDescription" ;
|
|
474
|
+
skos:definition "Describes the tier of DS implemented" ;
|
|
475
|
+
ds:acceptanceCriteria "" . #TODO
|
|
476
|
+
|
|
477
|
+
ds:link
|
|
478
|
+
a owl:DatatypeProperty ;
|
|
479
|
+
rdfs:domain ds:ImplementationLibrary ;
|
|
480
|
+
rdfs:range xsd:anyURI ;
|
|
481
|
+
rdfs:label "link" ;
|
|
482
|
+
skos:definition "Link to main artifact" ;
|
|
483
|
+
ds:acceptanceCriteria "" . #TODO
|
|
484
|
+
|
|
485
|
+
ds:documentation
|
|
486
|
+
a owl:DatatypeProperty ;
|
|
487
|
+
rdfs:domain ds:ImplementationLibrary ;
|
|
488
|
+
rdfs:range xsd:anyURI ;
|
|
489
|
+
rdfs:label "documentation" ;
|
|
490
|
+
skos:definition "Documentation link if different from main" ;
|
|
491
|
+
ds:acceptanceCriteria "" . #TODO
|
|
492
|
+
|
|
493
|
+
ds:libraryTier
|
|
494
|
+
a owl:ObjectProperty ;
|
|
495
|
+
rdfs:domain ds:ImplementationLibrary ;
|
|
496
|
+
rdfs:range ds:Tier ;
|
|
497
|
+
rdfs:label "libraryTier" ;
|
|
498
|
+
ds:acceptanceCriteria "" . #TODO
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@canonical/design-system",
|
|
3
|
+
"module": "index.ts",
|
|
4
|
+
"types": "src/index.ts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "LGPL-3.0",
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"bin": {
|
|
9
|
+
"collect-implementations": "./src/collect-implementations.ts"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"check": "bun run check:biome",
|
|
13
|
+
"check:fix": "bun run check:biome:fix && bun run check:ts",
|
|
14
|
+
"check:biome": "biome check",
|
|
15
|
+
"check:biome:fix": "biome check --write",
|
|
16
|
+
"check:ts": "tsc --noEmit",
|
|
17
|
+
"test": "bun run test:vitest",
|
|
18
|
+
"test:vitest": "vitest run",
|
|
19
|
+
"test:vitest:watch": "vitest",
|
|
20
|
+
"ds:list": "bun src/cli.ts list source.json",
|
|
21
|
+
"ds:extract": "bun src/cli.ts extract source.json",
|
|
22
|
+
"ds:transform": "bun src/cli.ts transform source.json",
|
|
23
|
+
"build": "bun run ds:extract && bun run ds:transform",
|
|
24
|
+
"generate:coda-types": "openapi-typescript https://coda.io/apis/v1/openapi.json -o src/providers/CodaProvider.types.generated.ts"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@biomejs/biome": "^2.3.8",
|
|
28
|
+
"@canonical/biome-config": "^0.10.0-experimental.4",
|
|
29
|
+
"@canonical/typescript-config-react": "^0.10.0-experimental.4",
|
|
30
|
+
"@types/bun": "latest",
|
|
31
|
+
"@types/jsonld": "^1.5.15",
|
|
32
|
+
"@types/n3": "^1.26.1",
|
|
33
|
+
"openapi-typescript": "^7.10.1",
|
|
34
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
35
|
+
"vitest": "^4.0.15"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"ajv": "^8.17.1",
|
|
39
|
+
"jsonld": "^9.0.0",
|
|
40
|
+
"n3": "^1.26.0"
|
|
41
|
+
}
|
|
42
|
+
}
|