@canonical/design-system 0.1.1 → 0.1.2
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/.github/PULL_REQUEST_TEMPLATE.md +13 -0
- package/.github/workflows/ci.yml +39 -0
- package/.mcp.json +1 -3
- package/biome.json +1 -1
- package/bun.lock +38 -35
- package/data/apps_launchpad/component/badge.ttl +2 -1
- package/data/apps_launchpad/component/button.ttl +2 -1
- package/data/apps_launchpad/component/combobox.ttl +2 -1
- package/data/apps_launchpad/component/text_input.ttl +2 -1
- package/data/apps_launchpad/component/tooltip.ttl +2 -1
- package/data/global/component/announcement.ttl +1 -1
- package/data/global/component/button.ttl +3 -1
- package/data/global/component/code_snippet.ttl +1 -1
- package/data/global/component/heading.ttl +3 -2
- package/data/global/component/tile.ttl +1 -1
- package/data/global/component/tooltip.ttl +38 -19
- package/data/global/pattern/dropdown_button.ttl +1 -1
- package/data/global/pattern/timeline.ttl +8 -4
- package/definitions/ontology.ttl +108 -161
- package/package.json +1 -1
- package/skills/anatomy-author/SKILL.md +5 -0
- package/skills/component-specifier/SKILL.md +5 -2
- package/skills/design-auditor/SKILL.md +5 -0
- package/source.json +7 -2
- package/src/cli.ts +33 -33
- package/src/collect/generateTurtle.tests.ts +181 -176
- package/src/collect/generateTurtle.ts +189 -138
- package/src/collect/index.ts +5 -2
- package/src/collect/scanAnnotations.tests.ts +116 -110
- package/src/collect/scanAnnotations.ts +35 -33
- package/src/collect/types.ts +34 -33
- package/src/collect/validateCollectConfig.tests.ts +135 -112
- package/src/collect/validateCollectConfig.ts +60 -54
- package/src/collect-implementations.ts +101 -88
- package/src/commands/extract.tests.ts +31 -32
- package/src/commands/extract.ts +29 -27
- package/src/commands/index.ts +1 -1
- package/src/commands/list.tests.ts +13 -14
- package/src/commands/list.ts +9 -9
- package/src/commands/transform.tests.ts +21 -21
- package/src/commands/transform.ts +118 -114
- package/src/config/types.ts +40 -40
- package/src/config/validateConfig.tests.ts +31 -31
- package/src/config/validateConfig.ts +9 -9
- package/src/constants.ts +7 -8
- package/src/graph/GraphStore.tests.ts +111 -111
- package/src/graph/GraphStore.ts +205 -189
- package/src/graph/PrefixMap.tests.ts +124 -122
- package/src/graph/PrefixMap.ts +77 -77
- package/src/graph/buildUri.tests.ts +116 -116
- package/src/graph/buildUri.ts +45 -45
- package/src/graph/index.ts +2 -2
- package/src/graph/types.ts +3 -3
- package/src/providers/CodaProvider.tests.ts +233 -233
- package/src/providers/CodaProvider.ts +145 -145
- package/src/providers/CodaProvider.types.generated.ts +12484 -12123
- package/src/providers/index.ts +13 -13
- package/src/serializers/JSONSerializer.tests.ts +64 -64
- package/src/serializers/JSONSerializer.ts +51 -51
- package/src/serializers/TTLSerializer.tests.ts +45 -45
- package/src/serializers/TTLSerializer.ts +64 -57
- package/src/serializers/index.ts +4 -1
- package/src/serializers/types.ts +3 -3
- package/src/transform/resolveReferences.tests.ts +47 -43
- package/src/transform/resolveReferences.ts +18 -18
- package/src/transform/resolveValue.tests.ts +55 -49
- package/src/transform/resolveValue.ts +48 -48
- package/src/transform/transform.tests.ts +90 -77
- package/src/transform/transform.ts +77 -77
- package/src/transform/transformRow.tests.ts +372 -356
- package/src/transform/transformRow.ts +222 -191
- package/src/transform/types.ts +4 -4
- package/tsconfig.json +2 -1
- package/.gemini/settings.json +0 -14
|
@@ -39,24 +39,28 @@ ds:global.pattern.timeline a ds:Pattern;
|
|
|
39
39
|
ds:summary "Defines the Timeline layout – where the dateTime is placed.";
|
|
40
40
|
ds:propertyType "choice";
|
|
41
41
|
ds:optional "false";
|
|
42
|
-
ds:defaultValue "Leading"
|
|
42
|
+
ds:defaultValue "Leading";
|
|
43
|
+
ds:constraints "Leading, Trailing"
|
|
43
44
|
], [
|
|
44
45
|
a ds:Property;
|
|
45
46
|
ds:name "Marker combination";
|
|
46
47
|
ds:summary "Single-choice: Defines which how Marker styles are used by the events.";
|
|
47
48
|
ds:propertyType "choice";
|
|
48
49
|
ds:optional "false";
|
|
49
|
-
ds:defaultValue "Small"
|
|
50
|
+
ds:defaultValue "Small";
|
|
51
|
+
ds:constraints "All sizes, Large and medium, Large and small, Medium and small, Large, Medium, Small"
|
|
50
52
|
], [
|
|
51
53
|
a ds:Property;
|
|
52
54
|
ds:name "Collapsing method";
|
|
53
55
|
ds:summary "Single-choice: Defines whether the Timeline collapses when it exceeds a certain number of events, and specifies how it is collapsed.";
|
|
54
56
|
ds:propertyType "choice";
|
|
55
57
|
ds:optional "false";
|
|
56
|
-
ds:defaultValue "Bottom"
|
|
58
|
+
ds:defaultValue "Bottom";
|
|
59
|
+
ds:constraints "None, Middle, Bottom"
|
|
57
60
|
], [
|
|
58
61
|
a ds:Property;
|
|
59
62
|
ds:name "user";
|
|
60
63
|
ds:propertyType "object";
|
|
61
|
-
ds:optional "false"
|
|
64
|
+
ds:optional "false";
|
|
65
|
+
ds:constraints "the user should contain the name, email, role, and profile picture"
|
|
62
66
|
].
|
package/definitions/ontology.ttl
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
# Ontology Declaration
|
|
9
9
|
ds: a owl:Ontology ;
|
|
10
|
-
owl:versionInfo "
|
|
10
|
+
owl:versionInfo "3.0.0" ;
|
|
11
11
|
rdfs:label "Design System Ontology" ;
|
|
12
12
|
skos:definition "OWL ontology for UI design system based on schema diagram" .
|
|
13
13
|
|
|
14
14
|
###############################################################################
|
|
15
|
-
# METADATA
|
|
15
|
+
# METADATA PROPERTIES
|
|
16
16
|
###############################################################################
|
|
17
17
|
|
|
18
18
|
ds:acceptanceCriteria
|
|
@@ -29,17 +29,9 @@ ds:completionGuidance
|
|
|
29
29
|
rdfs:domain rdf:Property ;
|
|
30
30
|
rdfs:range xsd:string .
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
###############################################################################
|
|
33
33
|
# DATATYPES
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
ds:URIString
|
|
37
|
-
a rdfs:Datatype ;
|
|
38
|
-
owl:onDatatype xsd:string ;
|
|
39
|
-
owl:withRestrictions (
|
|
40
|
-
[ 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]+)?$" ]
|
|
41
|
-
) ;
|
|
42
|
-
skos:definition "URI string following pattern ds:[tier]:[class]:[name]:[version]" .
|
|
34
|
+
###############################################################################
|
|
43
35
|
|
|
44
36
|
ds:SemverString
|
|
45
37
|
a rdfs:Datatype ;
|
|
@@ -49,15 +41,20 @@ ds:SemverString
|
|
|
49
41
|
) ;
|
|
50
42
|
skos:definition "Semantic version string following semver specification (MAJOR.MINOR.PATCH)" .
|
|
51
43
|
|
|
52
|
-
|
|
53
44
|
###############################################################################
|
|
54
45
|
# 1. CORE CLASSES
|
|
55
46
|
###############################################################################
|
|
56
47
|
|
|
48
|
+
ds:Entity
|
|
49
|
+
a owl:Class ;
|
|
50
|
+
rdfs:label "Entity" ;
|
|
51
|
+
skos:definition "Abstract root class for all design system entities. Provides common properties (name, summary) inherited by all classes." .
|
|
52
|
+
|
|
57
53
|
ds:UIElement
|
|
58
54
|
a owl:Class ;
|
|
55
|
+
rdfs:subClassOf ds:Entity ;
|
|
59
56
|
rdfs:label "UI Element" ;
|
|
60
|
-
skos:definition "
|
|
57
|
+
skos:definition "Base class for all visual and interactive design system elements" .
|
|
61
58
|
|
|
62
59
|
ds:UIBlock
|
|
63
60
|
a owl:Class ;
|
|
@@ -91,7 +88,7 @@ ds:Subcomponent
|
|
|
91
88
|
a owl:Class ;
|
|
92
89
|
rdfs:subClassOf ds:UIBlock ;
|
|
93
90
|
rdfs:label "Subcomponent" ;
|
|
94
|
-
skos:definition "" .
|
|
91
|
+
skos:definition "A named part of a Component that has design-system identity but is typically not used independently outside its parent" .
|
|
95
92
|
|
|
96
93
|
###############################################################################
|
|
97
94
|
# 3. OTHER CORE CLASSES
|
|
@@ -101,7 +98,7 @@ ds:Modifier
|
|
|
101
98
|
a owl:Class ;
|
|
102
99
|
rdfs:subClassOf ds:UIElement ;
|
|
103
100
|
rdfs:label "Modifier" ;
|
|
104
|
-
skos:definition "" .
|
|
101
|
+
skos:definition "A named variant value within a ModifierFamily that alters the appearance or behaviour of a UIBlock (e.g. 'primary', 'secondary' within the 'importance' family)" .
|
|
105
102
|
|
|
106
103
|
ds:ModifierFamily
|
|
107
104
|
a owl:Class ;
|
|
@@ -111,86 +108,67 @@ ds:ModifierFamily
|
|
|
111
108
|
|
|
112
109
|
ds:Property
|
|
113
110
|
a owl:Class ;
|
|
111
|
+
rdfs:subClassOf ds:Entity ;
|
|
114
112
|
rdfs:label "Property" ;
|
|
115
113
|
skos:definition "A configurable property of a UI Block" .
|
|
116
114
|
|
|
117
|
-
ds:Token
|
|
118
|
-
a owl:Class ;
|
|
119
|
-
rdfs:label "Token" ;
|
|
120
|
-
skos:definition "" . #TODO
|
|
121
|
-
|
|
122
115
|
ds:Tier
|
|
123
116
|
a owl:Class ;
|
|
117
|
+
rdfs:subClassOf ds:Entity ;
|
|
124
118
|
rdfs:label "Tier" ;
|
|
125
|
-
skos:definition "" .
|
|
126
|
-
|
|
127
|
-
ds:Label
|
|
128
|
-
a owl:Class ;
|
|
129
|
-
rdfs:label "Label" ;
|
|
130
|
-
skos:definition "" . #TODO
|
|
119
|
+
skos:definition "A scope level in the design system hierarchy that determines where UIBlocks are intended to be used (e.g. global, apps, site)" .
|
|
131
120
|
|
|
132
121
|
ds:ImplementationObject
|
|
133
122
|
a owl:Class ;
|
|
123
|
+
rdfs:subClassOf ds:Entity ;
|
|
134
124
|
rdfs:label "Implementation Object" ;
|
|
135
125
|
skos:definition "Platform-specific implementation of a UI Block" .
|
|
136
126
|
|
|
137
127
|
ds:ImplementationLibrary
|
|
138
128
|
a owl:Class ;
|
|
129
|
+
rdfs:subClassOf ds:Entity ;
|
|
139
130
|
rdfs:label "Implementation Library" ;
|
|
140
|
-
skos:definition "" .
|
|
141
|
-
|
|
142
|
-
ds:Affordance
|
|
143
|
-
a owl:Class ;
|
|
144
|
-
rdfs:label "Affordance" ;
|
|
145
|
-
skos:definition "" . #TODO
|
|
131
|
+
skos:definition "A code library or package that provides platform-specific implementations of UIBlocks" .
|
|
146
132
|
|
|
147
133
|
###############################################################################
|
|
148
|
-
# 4. PROPERTIES -
|
|
134
|
+
# 4. PROPERTIES - Entity Base Properties
|
|
149
135
|
###############################################################################
|
|
150
136
|
|
|
151
137
|
ds:name
|
|
152
138
|
a owl:DatatypeProperty ;
|
|
153
|
-
rdfs:domain ds:
|
|
139
|
+
rdfs:domain ds:Entity ;
|
|
154
140
|
rdfs:range xsd:string ;
|
|
155
141
|
rdfs:label "name" ;
|
|
156
|
-
skos:definition "A human-readable text for the
|
|
157
|
-
ds:acceptanceCriteria "Must be a concise, descriptive name that clearly identifies the
|
|
158
|
-
ds:completionGuidance "Provide a clear and descriptive name for the
|
|
142
|
+
skos:definition "A human-readable text for the entity. The primary identifier, used for referencing and display purposes." ;
|
|
143
|
+
ds:acceptanceCriteria "Must be a concise, descriptive name that clearly identifies the entity. Should be unique within the design system and avoid generic terms like 'button' or 'input' without context." ;
|
|
144
|
+
ds:completionGuidance "Provide a clear and descriptive name for the entity that accurately reflects its purpose and functionality within the design system." .
|
|
159
145
|
|
|
160
146
|
ds:summary
|
|
161
147
|
a owl:DatatypeProperty ;
|
|
162
|
-
rdfs:domain ds:
|
|
148
|
+
rdfs:domain ds:Entity ;
|
|
163
149
|
rdfs:range xsd:string ;
|
|
164
150
|
rdfs:label "summary" ;
|
|
165
|
-
skos:definition "A comprehensive paragraph of text that states the singular purpose of the
|
|
166
|
-
ds:acceptanceCriteria "Concise paragraph (3-5 sentences) that clearly describes the purpose of the
|
|
167
|
-
ds:completionGuidance "Write an introduction
|
|
151
|
+
skos:definition "A comprehensive paragraph of text that states the singular purpose of the entity." ;
|
|
152
|
+
ds:acceptanceCriteria "Concise paragraph (3-5 sentences) that clearly describes the purpose of the entity, 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." ;
|
|
153
|
+
ds:completionGuidance "Write an introduction that gives a quick overview of the entity. Start with the primary purpose and list all the main use cases. Make sure to include information that can help users decide if this is the right element they need." .
|
|
168
154
|
|
|
169
155
|
ds:version
|
|
170
156
|
a owl:DatatypeProperty, owl:FunctionalProperty ;
|
|
171
|
-
rdfs:domain ds:
|
|
157
|
+
rdfs:domain ds:Entity ;
|
|
172
158
|
rdfs:range ds:SemverString ;
|
|
173
159
|
rdfs:label "version" ;
|
|
174
|
-
skos:definition "Semantic version of the
|
|
160
|
+
skos:definition "Semantic version of the entity following semver specification" ;
|
|
175
161
|
ds:acceptanceCriteria "Must follow semantic versioning format: MAJOR.MINOR.PATCH with optional pre-release and build metadata" ;
|
|
176
162
|
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)." .
|
|
177
163
|
|
|
178
|
-
ds:uri
|
|
179
|
-
a owl:DatatypeProperty, owl:InverseFunctionalProperty ;
|
|
180
|
-
rdfs:domain ds:UIElement ;
|
|
181
|
-
rdfs:range ds:URIString ;
|
|
182
|
-
rdfs:label "URI" ;
|
|
183
|
-
skos:definition "Unique identifier for the UI element" ;
|
|
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)" .
|
|
185
|
-
|
|
186
164
|
ds:decisionLog
|
|
187
165
|
a owl:DatatypeProperty ;
|
|
188
|
-
rdfs:domain ds:
|
|
166
|
+
rdfs:domain ds:Entity ;
|
|
189
167
|
rdfs:range xsd:string ;
|
|
190
168
|
rdfs:label "decisionLog" ;
|
|
191
169
|
skos:definition "Log of decisions with [date][author][content]" ;
|
|
192
170
|
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
|
|
171
|
+
ds:completionGuidance "Document any decisions made regarding the entity, 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." .
|
|
194
172
|
|
|
195
173
|
###############################################################################
|
|
196
174
|
# 5. PROPERTIES - UIBlock Specific
|
|
@@ -203,15 +181,7 @@ ds:tier
|
|
|
203
181
|
rdfs:label "tier" ;
|
|
204
182
|
skos:definition "The tier to which the UI block belongs to" ;
|
|
205
183
|
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." .
|
|
207
|
-
|
|
208
|
-
ds:nextRequiredStep
|
|
209
|
-
a owl:DatatypeProperty ;
|
|
210
|
-
rdfs:domain ds:UIBlock ;
|
|
211
|
-
rdfs:range xsd:string ;
|
|
212
|
-
rdfs:label "nextRequiredStep" ;
|
|
213
|
-
skos:definition "" ; #TODO
|
|
214
|
-
ds:acceptanceCriteria "" . #TODO
|
|
184
|
+
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." .
|
|
215
185
|
|
|
216
186
|
ds:figmaLink
|
|
217
187
|
a owl:DatatypeProperty ;
|
|
@@ -221,20 +191,12 @@ ds:figmaLink
|
|
|
221
191
|
skos:definition "Link to the Figma design file for this UI block" ;
|
|
222
192
|
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." .
|
|
223
193
|
|
|
224
|
-
ds:wireframeLink
|
|
225
|
-
a owl:DatatypeProperty ;
|
|
226
|
-
rdfs:domain ds:UIBlock ;
|
|
227
|
-
rdfs:range xsd:anyURI ;
|
|
228
|
-
rdfs:label "wireframeLink" ;
|
|
229
|
-
skos:definition "" ; #TODO
|
|
230
|
-
ds:acceptanceCriteria "" . #TODO
|
|
231
|
-
|
|
232
194
|
ds:anatomyClassic
|
|
233
195
|
a owl:DatatypeProperty ;
|
|
234
196
|
rdfs:domain ds:UIBlock ;
|
|
235
197
|
rdfs:range xsd:string ;
|
|
236
198
|
rdfs:label "anatomyClassic" ;
|
|
237
|
-
skos:definition "Legacy anatomy field (free-form text). Superseded by ds:anatomyDsl." ;
|
|
199
|
+
skos:definition "DEPRECATED. Legacy anatomy field (free-form text). Superseded by ds:anatomyDsl." ;
|
|
238
200
|
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" .
|
|
239
201
|
|
|
240
202
|
ds:anatomyDsl
|
|
@@ -250,7 +212,7 @@ ds:whenToUse
|
|
|
250
212
|
rdfs:domain ds:UIBlock ;
|
|
251
213
|
rdfs:range xsd:string ;
|
|
252
214
|
rdfs:label "whenToUse" ;
|
|
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." ;
|
|
215
|
+
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
216
|
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
217
|
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." .
|
|
256
218
|
|
|
@@ -263,59 +225,19 @@ ds:whenNotToUse
|
|
|
263
225
|
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
226
|
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." .
|
|
265
227
|
|
|
266
|
-
ds:properties
|
|
267
|
-
a owl:DatatypeProperty ;
|
|
268
|
-
rdfs:domain ds:UIBlock ;
|
|
269
|
-
rdfs:range xsd:string ;
|
|
270
|
-
rdfs:label "properties" ;
|
|
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." .
|
|
274
|
-
|
|
275
228
|
ds:guidelines
|
|
276
229
|
a owl:DatatypeProperty ;
|
|
277
230
|
rdfs:domain ds:UIBlock ;
|
|
278
231
|
rdfs:range xsd:string ;
|
|
279
232
|
rdfs:label "guidelines" ;
|
|
280
|
-
skos:definition "Detailed specification for correctly using and implementing the UI block.
|
|
281
|
-
ds:acceptanceCriteria "These guidelines should contain the best practices for accessibility, responsiveness, content handling, localization, animation and keyboard
|
|
233
|
+
skos:definition "Detailed specification for correctly using and implementing the UI block." ;
|
|
234
|
+
ds:acceptanceCriteria "These guidelines should contain the best practices for accessibility, responsiveness, content handling, localization, animation and keyboard interaction of this UI block. They should be comprehensive and cover all important aspects of using and implementing the component correctly." ;
|
|
282
235
|
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." .
|
|
283
236
|
|
|
284
|
-
ds:variants
|
|
285
|
-
a owl:DatatypeProperty ;
|
|
286
|
-
rdfs:domain ds:UIBlock ;
|
|
287
|
-
rdfs:range xsd:string ;
|
|
288
|
-
rdfs:label "variants" ;
|
|
289
|
-
skos:definition "" ; #TODO
|
|
290
|
-
ds:acceptanceCriteria "" . #TODO
|
|
291
|
-
|
|
292
237
|
###############################################################################
|
|
293
238
|
# 6. PROPERTIES - Relationships
|
|
294
239
|
###############################################################################
|
|
295
240
|
|
|
296
|
-
ds:usesToken
|
|
297
|
-
a owl:ObjectProperty ;
|
|
298
|
-
rdfs:domain ds:UIBlock ;
|
|
299
|
-
rdfs:range ds:Token ;
|
|
300
|
-
rdfs:label "usesToken" ;
|
|
301
|
-
skos:definition "" ; #TODO
|
|
302
|
-
ds:acceptanceCriteria "" . #TODO
|
|
303
|
-
|
|
304
|
-
ds:hasAffordance
|
|
305
|
-
a owl:ObjectProperty ;
|
|
306
|
-
rdfs:domain ds:UIBlock ;
|
|
307
|
-
rdfs:range ds:Affordance ;
|
|
308
|
-
rdfs:label "hasAffordance" ;
|
|
309
|
-
skos:definition "" . #TODO
|
|
310
|
-
|
|
311
|
-
ds:hasLabel
|
|
312
|
-
a owl:ObjectProperty ;
|
|
313
|
-
rdfs:domain ds:UIBlock ;
|
|
314
|
-
rdfs:range ds:Label ;
|
|
315
|
-
rdfs:label "hasLabel" ;
|
|
316
|
-
skos:definition "" ; #TODO
|
|
317
|
-
ds:acceptanceCriteria "" . #TODO
|
|
318
|
-
|
|
319
241
|
ds:hasModifierFamily
|
|
320
242
|
a owl:ObjectProperty ;
|
|
321
243
|
rdfs:domain ds:UIBlock ;
|
|
@@ -345,13 +267,6 @@ ds:hasModifier
|
|
|
345
267
|
rdfs:label "hasModifier" ;
|
|
346
268
|
skos:definition "Modifiers belonging to this modifier family" .
|
|
347
269
|
|
|
348
|
-
ds:labelReason # Move to reification
|
|
349
|
-
a owl:DatatypeProperty ;
|
|
350
|
-
rdfs:domain ds:UIBlock ;
|
|
351
|
-
rdfs:range xsd:string ;
|
|
352
|
-
rdfs:label "" ; #TODO
|
|
353
|
-
skos:definition "" . #TODO
|
|
354
|
-
|
|
355
270
|
###############################################################################
|
|
356
271
|
# 7. PROPERTIES - Class-Specific
|
|
357
272
|
###############################################################################
|
|
@@ -363,16 +278,16 @@ ds:standalone
|
|
|
363
278
|
rdfs:domain ds:Subcomponent ;
|
|
364
279
|
rdfs:range xsd:boolean ;
|
|
365
280
|
rdfs:label "standalone" ;
|
|
366
|
-
skos:definition "" ;
|
|
367
|
-
ds:acceptanceCriteria "" .
|
|
281
|
+
skos:definition "Whether this subcomponent can be used independently outside its parent component" ;
|
|
282
|
+
ds:acceptanceCriteria "Must be true or false. When true, the subcomponent may appear in UIs without its parent." .
|
|
368
283
|
|
|
369
284
|
ds:parentComponent
|
|
370
285
|
a owl:ObjectProperty ;
|
|
371
286
|
rdfs:domain ds:Subcomponent ;
|
|
372
287
|
rdfs:range ds:Component ;
|
|
373
288
|
rdfs:label "parentComponent" ;
|
|
374
|
-
skos:definition "
|
|
375
|
-
ds:acceptanceCriteria "" .
|
|
289
|
+
skos:definition "The component to which this subcomponent structurally belongs" ;
|
|
290
|
+
ds:acceptanceCriteria "Must reference a valid ds:Component instance" .
|
|
376
291
|
|
|
377
292
|
ds:hasSubcomponent
|
|
378
293
|
a owl:ObjectProperty ;
|
|
@@ -380,8 +295,8 @@ ds:hasSubcomponent
|
|
|
380
295
|
rdfs:range ds:Subcomponent ;
|
|
381
296
|
owl:inverseOf ds:parentComponent ;
|
|
382
297
|
rdfs:label "hasSubcomponent" ;
|
|
383
|
-
skos:definition "" ;
|
|
384
|
-
ds:acceptanceCriteria "" .
|
|
298
|
+
skos:definition "Subcomponents that are structural parts of this component" ;
|
|
299
|
+
ds:acceptanceCriteria "Inverse of ds:parentComponent. Each referenced entity must be a ds:Subcomponent." .
|
|
385
300
|
|
|
386
301
|
# Layout
|
|
387
302
|
|
|
@@ -390,32 +305,66 @@ ds:grid
|
|
|
390
305
|
rdfs:domain ds:Layout ;
|
|
391
306
|
rdfs:range xsd:string ;
|
|
392
307
|
rdfs:label "grid" ;
|
|
393
|
-
skos:definition "" ;
|
|
394
|
-
ds:acceptanceCriteria "" .
|
|
308
|
+
skos:definition "CSS grid template definition for this layout" ;
|
|
309
|
+
ds:acceptanceCriteria "Must be a valid CSS grid-template value or shorthand" .
|
|
395
310
|
|
|
396
311
|
ds:domain
|
|
397
312
|
a owl:DatatypeProperty ;
|
|
398
313
|
rdfs:domain ds:Layout ;
|
|
399
314
|
rdfs:range xsd:string ;
|
|
400
315
|
rdfs:label "domain" ;
|
|
401
|
-
skos:definition "The domain
|
|
402
|
-
ds:acceptanceCriteria "" .
|
|
316
|
+
skos:definition "The information domain this layout is designed to navigate" ;
|
|
317
|
+
ds:acceptanceCriteria "Should describe the category of content the layout organises (e.g. documentation, dashboard, settings)" .
|
|
403
318
|
|
|
404
319
|
ds:gridAreas
|
|
405
320
|
a owl:DatatypeProperty ;
|
|
406
321
|
rdfs:domain ds:Layout ;
|
|
407
322
|
rdfs:range xsd:string ;
|
|
408
323
|
rdfs:label "gridAreas" ;
|
|
409
|
-
skos:definition "" ;
|
|
410
|
-
ds:acceptanceCriteria "" .
|
|
324
|
+
skos:definition "Named CSS grid areas defined by this layout" ;
|
|
325
|
+
ds:acceptanceCriteria "Must be valid CSS grid-area names matching the grid template" .
|
|
411
326
|
|
|
412
327
|
ds:targetDevices
|
|
413
328
|
a owl:DatatypeProperty ;
|
|
414
329
|
rdfs:domain ds:Layout ;
|
|
415
330
|
rdfs:range xsd:string ;
|
|
416
331
|
rdfs:label "targetDevices" ;
|
|
417
|
-
skos:definition "" ;
|
|
418
|
-
ds:acceptanceCriteria "" .
|
|
332
|
+
skos:definition "Device form factors this layout targets" ;
|
|
333
|
+
ds:acceptanceCriteria "Comma-separated list of device categories (e.g. desktop, tablet, mobile)" .
|
|
334
|
+
|
|
335
|
+
# Property
|
|
336
|
+
|
|
337
|
+
ds:propertyType
|
|
338
|
+
a owl:DatatypeProperty ;
|
|
339
|
+
rdfs:domain ds:Property ;
|
|
340
|
+
rdfs:range xsd:string ;
|
|
341
|
+
rdfs:label "propertyType" ;
|
|
342
|
+
skos:definition "The data type of this configurable property (e.g. text, choice, boolean, node)" ;
|
|
343
|
+
ds:acceptanceCriteria "Must be one of the recognised type values used across the design system" .
|
|
344
|
+
|
|
345
|
+
ds:optional
|
|
346
|
+
a owl:DatatypeProperty, owl:FunctionalProperty ;
|
|
347
|
+
rdfs:domain ds:Property ;
|
|
348
|
+
rdfs:range xsd:boolean ;
|
|
349
|
+
rdfs:label "optional" ;
|
|
350
|
+
skos:definition "Whether this property is optional when configuring the UI Block" ;
|
|
351
|
+
ds:acceptanceCriteria "Must be true or false" .
|
|
352
|
+
|
|
353
|
+
ds:defaultValue
|
|
354
|
+
a owl:DatatypeProperty ;
|
|
355
|
+
rdfs:domain ds:Property ;
|
|
356
|
+
rdfs:range xsd:string ;
|
|
357
|
+
rdfs:label "defaultValue" ;
|
|
358
|
+
skos:definition "The default value for this property when not explicitly set by the consumer" ;
|
|
359
|
+
ds:acceptanceCriteria "Must be a valid value for the property's type" .
|
|
360
|
+
|
|
361
|
+
ds:constraints
|
|
362
|
+
a owl:DatatypeProperty ;
|
|
363
|
+
rdfs:domain ds:Property ;
|
|
364
|
+
rdfs:range xsd:string ;
|
|
365
|
+
rdfs:label "constraints" ;
|
|
366
|
+
skos:definition "Constraints on valid values for this property. For choice types, lists allowed values (e.g. '[primary, secondary, tertiary]'). For numbers, specifies ranges. For objects, describes required structure." ;
|
|
367
|
+
ds:acceptanceCriteria "Should describe the valid value space for this property. Format varies by property type." .
|
|
419
368
|
|
|
420
369
|
# Implementation Object
|
|
421
370
|
|
|
@@ -424,89 +373,87 @@ ds:implementsBlock
|
|
|
424
373
|
rdfs:domain ds:ImplementationObject ;
|
|
425
374
|
rdfs:range ds:UIBlock ;
|
|
426
375
|
rdfs:label "implementsBlock" ;
|
|
427
|
-
skos:definition ""
|
|
376
|
+
skos:definition "The UIBlock that this implementation realises in code" ;
|
|
377
|
+
ds:acceptanceCriteria "Must reference a valid ds:UIBlock instance" .
|
|
428
378
|
|
|
429
379
|
ds:implementationVersion
|
|
430
380
|
a owl:DatatypeProperty, owl:FunctionalProperty ;
|
|
431
381
|
rdfs:domain ds:ImplementationObject ;
|
|
432
382
|
rdfs:range xsd:string ;
|
|
433
383
|
rdfs:label "implementationVersion" ;
|
|
434
|
-
skos:definition ""
|
|
384
|
+
skos:definition "Version of this specific implementation, independent of the UIBlock version" ;
|
|
385
|
+
ds:acceptanceCriteria "Should follow semver format" .
|
|
435
386
|
|
|
436
387
|
ds:library
|
|
437
388
|
a owl:ObjectProperty, owl:FunctionalProperty ;
|
|
438
389
|
rdfs:domain ds:ImplementationObject ;
|
|
439
390
|
rdfs:range ds:ImplementationLibrary ;
|
|
440
391
|
rdfs:label "library" ;
|
|
441
|
-
skos:definition ""
|
|
392
|
+
skos:definition "The implementation library that contains this implementation" ;
|
|
393
|
+
ds:acceptanceCriteria "Must reference a valid ds:ImplementationLibrary instance" .
|
|
442
394
|
|
|
443
395
|
ds:headLink
|
|
444
396
|
a owl:DatatypeProperty ;
|
|
445
397
|
rdfs:domain ds:ImplementationObject ;
|
|
446
398
|
rdfs:range xsd:anyURI ;
|
|
447
399
|
rdfs:label "headLink" ;
|
|
448
|
-
skos:definition ""
|
|
400
|
+
skos:definition "URL to the latest/HEAD version of this implementation in source control" ;
|
|
401
|
+
ds:acceptanceCriteria "Must be a valid URL" .
|
|
449
402
|
|
|
450
403
|
ds:versionedLink
|
|
451
404
|
a owl:DatatypeProperty ;
|
|
452
405
|
rdfs:domain ds:ImplementationObject ;
|
|
453
406
|
rdfs:range xsd:string ;
|
|
454
407
|
rdfs:label "versionedLink" ;
|
|
455
|
-
skos:definition ""
|
|
408
|
+
skos:definition "URL to a specific tagged version of this implementation in source control" ;
|
|
409
|
+
ds:acceptanceCriteria "Must be a valid URL including version tag" .
|
|
456
410
|
|
|
457
411
|
ds:isDraft
|
|
458
412
|
a owl:DatatypeProperty ;
|
|
459
413
|
rdfs:domain ds:ImplementationObject ;
|
|
460
414
|
rdfs:range xsd:boolean ;
|
|
461
415
|
rdfs:label "isDraft" ;
|
|
462
|
-
skos:definition "" ;
|
|
463
|
-
ds:acceptanceCriteria "" .
|
|
416
|
+
skos:definition "Whether this implementation is in draft state and not yet ready for production use" ;
|
|
417
|
+
ds:acceptanceCriteria "Must be true or false" .
|
|
464
418
|
|
|
465
|
-
# Implementation Library
|
|
419
|
+
# Implementation Library
|
|
466
420
|
|
|
467
421
|
ds:libraryName
|
|
468
422
|
a owl:DatatypeProperty ;
|
|
469
423
|
rdfs:domain ds:ImplementationLibrary ;
|
|
470
424
|
rdfs:range xsd:string ;
|
|
471
425
|
rdfs:label "libraryName" ;
|
|
472
|
-
skos:definition "" ;
|
|
473
|
-
ds:acceptanceCriteria "" .
|
|
426
|
+
skos:definition "The package or library name as published (e.g. npm package name)" ;
|
|
427
|
+
ds:acceptanceCriteria "Must match the published package identifier" .
|
|
474
428
|
|
|
475
429
|
ds:platform
|
|
476
430
|
a owl:DatatypeProperty ;
|
|
477
431
|
rdfs:domain ds:ImplementationLibrary ;
|
|
478
432
|
rdfs:range xsd:string ;
|
|
479
433
|
rdfs:label "platform" ;
|
|
480
|
-
skos:definition "" ;
|
|
481
|
-
ds:acceptanceCriteria "" .
|
|
482
|
-
|
|
483
|
-
ds:libraryDescription
|
|
484
|
-
a owl:DatatypeProperty ;
|
|
485
|
-
rdfs:domain ds:ImplementationLibrary ;
|
|
486
|
-
rdfs:range xsd:string ;
|
|
487
|
-
rdfs:label "libraryDescription" ;
|
|
488
|
-
skos:definition "Describes the tier of DS implemented" ;
|
|
489
|
-
ds:acceptanceCriteria "" . #TODO
|
|
434
|
+
skos:definition "The platform or technology this library targets (e.g. React, Web Components, Flutter)" ;
|
|
435
|
+
ds:acceptanceCriteria "Should be a recognised platform name" .
|
|
490
436
|
|
|
491
437
|
ds:link
|
|
492
438
|
a owl:DatatypeProperty ;
|
|
493
439
|
rdfs:domain ds:ImplementationLibrary ;
|
|
494
440
|
rdfs:range xsd:anyURI ;
|
|
495
441
|
rdfs:label "link" ;
|
|
496
|
-
skos:definition "
|
|
497
|
-
ds:acceptanceCriteria "" .
|
|
442
|
+
skos:definition "URL to the library's main artifact or repository" ;
|
|
443
|
+
ds:acceptanceCriteria "Must be a valid URL" .
|
|
498
444
|
|
|
499
445
|
ds:documentation
|
|
500
446
|
a owl:DatatypeProperty ;
|
|
501
447
|
rdfs:domain ds:ImplementationLibrary ;
|
|
502
448
|
rdfs:range xsd:anyURI ;
|
|
503
449
|
rdfs:label "documentation" ;
|
|
504
|
-
skos:definition "Documentation link if different from main" ;
|
|
505
|
-
ds:acceptanceCriteria "" .
|
|
450
|
+
skos:definition "Documentation link if different from main artifact" ;
|
|
451
|
+
ds:acceptanceCriteria "Must be a valid URL" .
|
|
506
452
|
|
|
507
453
|
ds:libraryTier
|
|
508
454
|
a owl:ObjectProperty ;
|
|
509
455
|
rdfs:domain ds:ImplementationLibrary ;
|
|
510
456
|
rdfs:range ds:Tier ;
|
|
511
457
|
rdfs:label "libraryTier" ;
|
|
512
|
-
|
|
458
|
+
skos:definition "The design system tier that this library implements" ;
|
|
459
|
+
ds:acceptanceCriteria "Must reference a valid ds:Tier instance" .
|
package/package.json
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: anatomy-author
|
|
3
|
+
description: Write component anatomy specifications using the Design System Anatomy DSL
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Anatomy Author
|
|
2
7
|
|
|
3
8
|
Write component anatomy specifications using the Design System Anatomy DSL. This skill combines semantic discovery (understanding existing components) with procedural authoring (creating well-formed YAML specifications).
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: component-specifier
|
|
3
|
+
description: Specify new UI components with full ontological structure
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Component Specifier
|
|
2
7
|
|
|
3
8
|
Specify new UI components with full ontological structure, ensuring consistency with existing design system patterns. This skill combines semantic discovery (understanding what exists) with procedural authoring (creating well-formed specifications).
|
|
@@ -154,8 +159,6 @@ Focus on the problem it solves, not implementation details.
|
|
|
154
159
|
|
|
155
160
|
# Design links (add when available)
|
|
156
161
|
# ds:figmaLink <https://figma.com/file/...> ;
|
|
157
|
-
# ds:wireframeLink <https://...> ;
|
|
158
|
-
# ds:anatomy <https://...> ;
|
|
159
162
|
|
|
160
163
|
# Guidelines
|
|
161
164
|
ds:guidelines """{
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-auditor
|
|
3
|
+
description: Audit design system coverage, consistency, and quality
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Design Auditor
|
|
2
7
|
|
|
3
8
|
Audit design system coverage, consistency, and quality. This semantic skill analyzes the ontology to find gaps, inconsistencies, and opportunities for improvement across components, patterns, and documentation.
|
package/source.json
CHANGED
|
@@ -37,11 +37,16 @@
|
|
|
37
37
|
"type": "ds:propertyType",
|
|
38
38
|
"summary": "ds:summary",
|
|
39
39
|
"optional": "ds:optional",
|
|
40
|
-
"default": "ds:defaultValue"
|
|
40
|
+
"default": "ds:defaultValue",
|
|
41
|
+
"constraints": "ds:constraints"
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
|
-
"modifier_families": {
|
|
45
|
+
"modifier_families": {
|
|
46
|
+
"@id": "ds:hasModifierFamily",
|
|
47
|
+
"@type": "@id",
|
|
48
|
+
"@container": "@set"
|
|
49
|
+
}
|
|
45
50
|
},
|
|
46
51
|
"class": "{type}",
|
|
47
52
|
"uriTemplate": "{uri}",
|