@adobe/design-data-spec 3.4.1 → 3.5.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.
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tokens": [
|
|
3
|
+
{
|
|
4
|
+
"name": {
|
|
5
|
+
"component": "accordion",
|
|
6
|
+
"property": "top-to-text-compact-medium"
|
|
7
|
+
},
|
|
8
|
+
"value": "5px",
|
|
9
|
+
"uuid": "aaaaaaaa-0058-4000-8000-000000000001",
|
|
10
|
+
"lifecycle": {
|
|
11
|
+
"deprecatedIn": "14.3.0",
|
|
12
|
+
"replacedBy": "aaaaaaaa-0058-4000-8000-000000000002"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": { "property": "base-padding-vertical-medium" },
|
|
17
|
+
"value": "5px",
|
|
18
|
+
"uuid": "aaaaaaaa-0058-4000-8000-000000000002"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"relationships": [
|
|
22
|
+
{
|
|
23
|
+
"scope": {
|
|
24
|
+
"component": "accordion",
|
|
25
|
+
"property": "top-to-text-compact-medium"
|
|
26
|
+
},
|
|
27
|
+
"$ref": "aaaaaaaa-0058-4000-8000-000000000001"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"components": [
|
|
31
|
+
{
|
|
32
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/accordion.json",
|
|
33
|
+
"name": "accordion",
|
|
34
|
+
"displayName": "Accordion",
|
|
35
|
+
"meta": { "category": "actions" }
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
package/package.json
CHANGED
package/rules/rules.yaml
CHANGED
|
@@ -690,3 +690,20 @@ rules:
|
|
|
690
690
|
message: "Relationship '{relationship}' may need a legacyKey to round-trip through the legacy generator"
|
|
691
691
|
spec_ref: spec/relationship-format.md#legacy-fields-interim
|
|
692
692
|
introduced_in: "1.0.0-draft"
|
|
693
|
+
|
|
694
|
+
- id: SPEC-058
|
|
695
|
+
name: ctr-ref-not-deprecated
|
|
696
|
+
severity: warning
|
|
697
|
+
layer: 2
|
|
698
|
+
category: naming-consistency
|
|
699
|
+
note: >
|
|
700
|
+
Warning, not error: some deprecated targets have no `replacedBy` (or an ambiguous
|
|
701
|
+
array-form one) and can't be auto-corrected without manual triage, so this can't be
|
|
702
|
+
a hard gate yet.
|
|
703
|
+
assert: >
|
|
704
|
+
A relationship-only CTR's `$ref` (no `uuid`/`legacyKey`) SHOULD NOT resolve to a
|
|
705
|
+
token whose `lifecycle.deprecatedIn` is set. A value-owning CTR (`uuid`/`legacyKey`
|
|
706
|
+
present) is exempt — it legitimately *is* the deprecated token record.
|
|
707
|
+
message: "Relationship $ref {ref} resolves to a token deprecated in {deprecatedIn}"
|
|
708
|
+
spec_ref: spec/relationship-format.md#legacy-fields-interim
|
|
709
|
+
introduced_in: "1.0.0-draft"
|
package/spec/mode-sets.md
CHANGED
|
@@ -27,11 +27,11 @@ A **mode set declaration** is a JSON object describing one axis of variation. It
|
|
|
27
27
|
|
|
28
28
|
These mode sets are declared in the `mode-sets/` catalog (see [Mode Set catalog](#mode-set-catalog)) and **SHOULD** be used consistently across Spectrum-compatible datasets:
|
|
29
29
|
|
|
30
|
-
| `name` | `modes` | `default` | Notes
|
|
31
|
-
| ------------- | ---------------------------- | --------- |
|
|
32
|
-
| `colorScheme` | `light`, `dark`, `wireframe` | `light` | Theme / appearance.
|
|
33
|
-
| `scale` | `desktop`, `mobile` | `desktop` | Density scale. Legacy names; desktop = medium, mobile = large in W3C terminology.
|
|
34
|
-
| `contrast` | `regular`, `high` | `regular` | Accessibility contrast level.
|
|
30
|
+
| `name` | `modes` | `default` | Notes |
|
|
31
|
+
| ------------- | ---------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
32
|
+
| `colorScheme` | `light`, `dark`, `wireframe` | `light` | Theme / appearance. |
|
|
33
|
+
| `scale` | `desktop`, `mobile` | `desktop` | Density scale. Legacy names; desktop = medium, mobile = large in W3C terminology. |
|
|
34
|
+
| `contrast` | `regular`, `high` | `regular` | Accessibility contrast level. iOS platform data authors `increased` as a synonym for `high` — treat the two as the same crosswalk term, not distinct values. |
|
|
35
35
|
|
|
36
36
|
## Mode Set catalog
|
|
37
37
|
|