@adobe/spectrum-tokens 14.11.0 → 14.12.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/CHANGELOG.md +14 -0
- package/dist/json/variables.json +6361 -6361
- package/moon.yml +14 -0
- package/package.json +1 -1
- package/schemas/token-types/alias.json +49 -8
- package/schemas/token-types/multiplier.json +1 -1
- package/schemas/token-types/token.json +6 -2
- package/src/color-aliases.json +1121 -1121
- package/src/color-component.json +228 -228
- package/src/color-palette.json +3152 -3152
- package/src/icons.json +586 -693
- package/src/layout-component.json +4545 -4627
- package/src/layout.json +1335 -1348
- package/src/semantic-color-palette.json +228 -228
- package/src/typography.json +768 -768
- package/test/schemaValidators/alias.test.js +48 -6
package/moon.yml
CHANGED
|
@@ -94,6 +94,19 @@ tasks:
|
|
|
94
94
|
- sdk:build
|
|
95
95
|
inputs:
|
|
96
96
|
- "@globs(sources)"
|
|
97
|
+
verifyLegacyOutput:
|
|
98
|
+
command: ../../sdk/target/debug/design-data
|
|
99
|
+
args:
|
|
100
|
+
- migrate
|
|
101
|
+
- legacy-verify
|
|
102
|
+
- ../design-data/tokens
|
|
103
|
+
- --reference
|
|
104
|
+
- ./src
|
|
105
|
+
platform: system
|
|
106
|
+
deps:
|
|
107
|
+
- sdk:build
|
|
108
|
+
inputs:
|
|
109
|
+
- "@globs(sources)"
|
|
97
110
|
test:
|
|
98
111
|
command:
|
|
99
112
|
- pnpm
|
|
@@ -108,6 +121,7 @@ tasks:
|
|
|
108
121
|
- ~:buildTokens
|
|
109
122
|
- ~:verifyDesignDataSnapshot
|
|
110
123
|
- ~:verifyLegacyRoundtrip
|
|
124
|
+
- ~:verifyLegacyOutput
|
|
111
125
|
platform: node
|
|
112
126
|
test-watch:
|
|
113
127
|
command:
|
package/package.json
CHANGED
|
@@ -2,26 +2,67 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json",
|
|
4
4
|
"title": "Alias",
|
|
5
|
-
"description": "A token that references another token.",
|
|
5
|
+
"description": "A token that references another token. Accepts both the legacy value-form ('{name}') and the cascade canonical form ('$ref': '<uuid>').",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"
|
|
7
|
+
"required": ["$schema", "uuid"],
|
|
8
|
+
"oneOf": [
|
|
8
9
|
{
|
|
9
|
-
"
|
|
10
|
+
"description": "Legacy format: alias target wrapped in curly braces, e.g. {blue-100}.",
|
|
11
|
+
"required": ["value"],
|
|
12
|
+
"not": { "required": ["$ref"] },
|
|
13
|
+
"properties": {
|
|
14
|
+
"value": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^\\{(\\w|-)*\\}$"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"description": "Cascade canonical format: alias target UUID (rename-proof, resolvable via uuid_index).",
|
|
22
|
+
"required": ["$ref"],
|
|
23
|
+
"not": { "required": ["value"] },
|
|
24
|
+
"properties": {
|
|
25
|
+
"$ref": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
10
30
|
}
|
|
11
31
|
],
|
|
12
32
|
"properties": {
|
|
13
33
|
"$schema": {
|
|
14
34
|
"const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json"
|
|
15
35
|
},
|
|
16
|
-
"
|
|
17
|
-
"type": "string",
|
|
18
|
-
"pattern": "^\\{(\\w|-)*\\}$"
|
|
19
|
-
},
|
|
36
|
+
"name": {},
|
|
20
37
|
"component": {},
|
|
21
38
|
"private": {},
|
|
22
39
|
"deprecated": {},
|
|
23
40
|
"deprecated_comment": {},
|
|
24
41
|
"description": {},
|
|
25
|
-
"uuid": {
|
|
42
|
+
"uuid": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
45
|
+
"format": "uuid"
|
|
46
|
+
},
|
|
47
|
+
"set_uuid": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Set-level UUID carried from the cascade migration (used by legacy-output to reconstruct the outer set UUID)."
|
|
50
|
+
},
|
|
51
|
+
"set_schema": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Set-level schema URL carried from the cascade migration."
|
|
54
|
+
},
|
|
55
|
+
"replaced_by": {
|
|
56
|
+
"oneOf": [
|
|
57
|
+
{ "type": "string", "format": "uuid" },
|
|
58
|
+
{
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": { "type": "string", "format": "uuid" },
|
|
61
|
+
"minItems": 1
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"introduced": { "type": "string" },
|
|
66
|
+
"plannedRemoval": { "type": "string" }
|
|
26
67
|
}
|
|
27
68
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/multiplier.json",
|
|
4
4
|
"title": "Multiplier",
|
|
5
|
-
"description": "A float used to multiply a value by a given amount.
|
|
5
|
+
"description": "A float used to multiply a value by a given amount. Used for line-height and margin multipliers.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
@@ -43,7 +43,11 @@
|
|
|
43
43
|
"replaced_by": {
|
|
44
44
|
"oneOf": [
|
|
45
45
|
{ "type": "string", "format": "uuid" },
|
|
46
|
-
{
|
|
46
|
+
{
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": { "type": "string", "format": "uuid" },
|
|
49
|
+
"minItems": 1
|
|
50
|
+
}
|
|
47
51
|
],
|
|
48
52
|
"description": "UUID(s) of the replacement token(s). Array form requires deprecated_comment."
|
|
49
53
|
},
|
|
@@ -57,7 +61,7 @@
|
|
|
57
61
|
},
|
|
58
62
|
"uuid": {
|
|
59
63
|
"type": "string",
|
|
60
|
-
"pattern": "^[0-9a-fA-F]{8}
|
|
64
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
61
65
|
"format": "uuid"
|
|
62
66
|
}
|
|
63
67
|
},
|