@adobe/design-data-spec 4.5.0 → 4.7.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/conformance/manifest-extensions/README.md +44 -36
- package/conformance/manifest-extensions/invalid/component-option-extension-missing-component/expected-errors.json +6 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-missing-component/extensions/platform-extensions/broken.json +4 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-missing-component/manifest.json +4 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-canonical-value/expected-errors.json +5 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-canonical-value/extensions/components/button.json +16 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-canonical-value/extensions/platform-extensions/broken.json +12 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-canonical-value/manifest.json +4 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-component/expected-errors.json +1 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-component/extensions/platform-extensions/broken.json +6 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-component/manifest.json +4 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-option/expected-errors.json +1 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-option/extensions/components/button.json +16 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-option/extensions/platform-extensions/broken.json +4 -0
- package/conformance/manifest-extensions/invalid/component-option-extension-unknown-option/manifest.json +4 -0
- package/conformance/manifest-extensions/valid/injects-component-option-extension/expected.json +18 -0
- package/conformance/manifest-extensions/valid/injects-component-option-extension/extensions/components/button.json +20 -0
- package/conformance/manifest-extensions/valid/injects-component-option-extension/extensions/platform-extensions/web-components-button.json +18 -0
- package/conformance/manifest-extensions/valid/injects-component-option-extension/manifest.json +4 -0
- package/llms.txt +29 -0
- package/package.json +4 -1
- package/schemas/manifest.schema.json +1 -1
- package/schemas/platform-extension.json +73 -1
- package/schemas/token-file.json +33 -0
- package/schemas/token-types/alias.json +70 -0
- package/schemas/token-types/alignment.json +28 -0
- package/schemas/token-types/angle.json +26 -0
- package/schemas/token-types/color-set.json +73 -0
- package/schemas/token-types/color.json +27 -0
- package/schemas/token-types/dimension.json +27 -0
- package/schemas/token-types/drop-shadow.json +52 -0
- package/schemas/token-types/font-family.json +27 -0
- package/schemas/token-types/font-size.json +27 -0
- package/schemas/token-types/font-style.json +27 -0
- package/schemas/token-types/font-weight.json +27 -0
- package/schemas/token-types/gradient-stop.json +28 -0
- package/schemas/token-types/multiplier.json +26 -0
- package/schemas/token-types/opacity.json +27 -0
- package/schemas/token-types/scale-set.json +64 -0
- package/schemas/token-types/set.json +30 -0
- package/schemas/token-types/system-set.json +86 -0
- package/schemas/token-types/text-transform.json +27 -0
- package/schemas/token-types/token.json +75 -0
- package/schemas/token-types/typography.json +48 -0
- package/spec/manifest.md +4 -4
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/typography.json",
|
|
4
|
+
"title": "Typography",
|
|
5
|
+
"description": "A composite typography token.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "token.json"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"$schema": {
|
|
14
|
+
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/typography.json"
|
|
15
|
+
},
|
|
16
|
+
"value": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"fontFamily": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
22
|
+
},
|
|
23
|
+
"fontSize": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
26
|
+
},
|
|
27
|
+
"fontWeight": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
30
|
+
},
|
|
31
|
+
"letterSpacing": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
34
|
+
},
|
|
35
|
+
"lineHeight": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"component": {},
|
|
42
|
+
"private": {},
|
|
43
|
+
"deprecated": {},
|
|
44
|
+
"deprecated_comment": {},
|
|
45
|
+
"description": {},
|
|
46
|
+
"uuid": {}
|
|
47
|
+
}
|
|
48
|
+
}
|
package/spec/manifest.md
CHANGED
|
@@ -35,10 +35,10 @@ A manifest **MUST** conform to [`manifest.schema.json`](../schemas/manifest.sche
|
|
|
35
35
|
|
|
36
36
|
## Required fields
|
|
37
37
|
|
|
38
|
-
| Field | Type | Description
|
|
39
|
-
| ------------------- | ------ |
|
|
40
|
-
| `specVersion` | string | **MUST** be `1.0.0-draft` for documents targeting this draft.
|
|
41
|
-
| `foundationVersion` | string | Pin to a released foundation version (semver or tag string).
|
|
38
|
+
| Field | Type | Description |
|
|
39
|
+
| ------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
40
|
+
| `specVersion` | string | **MUST** be `1.0.0-draft` for documents targeting this draft. |
|
|
41
|
+
| `foundationVersion` | string | Pin to a released foundation version (semver or tag string). Spectrum platforms use the canonical package tag `@adobe/spectrum-design-data@<version>`, not the generated legacy `@adobe/spectrum-tokens`. |
|
|
42
42
|
|
|
43
43
|
## Optional fields
|
|
44
44
|
|