@adobe/spectrum-tokens 14.2.1 → 14.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-tokens",
3
- "version": "14.2.1",
3
+ "version": "14.2.3",
4
4
  "description": "Design tokens for Spectrum, Adobe's design system",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -21,6 +21,11 @@
21
21
  "provenance": true
22
22
  },
23
23
  "homepage": "https://github.com/adobe/spectrum-design-data/tree/main/packages/tokens#readme",
24
+ "exports": {
25
+ ".": "./index.js",
26
+ "./schemas/token-file.json": "./schemas/token-file.json",
27
+ "./dist/*": "./dist/*"
28
+ },
24
29
  "devDependencies": {
25
30
  "ajv": "^8.17.1",
26
31
  "ajv-formats": "^3.0.1",
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-file.json",
4
+ "title": "Spectrum token file",
5
+ "description": "Top-level shape for legacy Spectrum token JSON files (packages/tokens/src/*.json). Each property key is a token name; each value is a token object with a $schema discriminator.",
6
+ "type": "object",
7
+ "patternProperties": {
8
+ "^[a-z0-9]+(-[a-z0-9]+)*$": {
9
+ "anyOf": [
10
+ { "$ref": "token-types/alias.json" },
11
+ { "$ref": "token-types/color.json" },
12
+ { "$ref": "token-types/color-set.json" },
13
+ { "$ref": "token-types/dimension.json" },
14
+ { "$ref": "token-types/drop-shadow.json" },
15
+ { "$ref": "token-types/font-family.json" },
16
+ { "$ref": "token-types/font-size.json" },
17
+ { "$ref": "token-types/font-style.json" },
18
+ { "$ref": "token-types/font-weight.json" },
19
+ { "$ref": "token-types/gradient-stop.json" },
20
+ { "$ref": "token-types/multiplier.json" },
21
+ { "$ref": "token-types/opacity.json" },
22
+ { "$ref": "token-types/scale-set.json" },
23
+ { "$ref": "token-types/set.json" },
24
+ { "$ref": "token-types/system-set.json" },
25
+ { "$ref": "token-types/text-align.json" },
26
+ { "$ref": "token-types/text-transform.json" },
27
+ { "$ref": "token-types/token.json" },
28
+ { "$ref": "token-types/typography.json" }
29
+ ]
30
+ }
31
+ },
32
+ "additionalProperties": false
33
+ }
@@ -14,8 +14,7 @@
14
14
  "const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/multiplier.json"
15
15
  },
16
16
  "value": {
17
- "type": "number",
18
- "pattern": "^(?:\\d+\\.?\\d*)|(?:\\.?\\d+)$"
17
+ "type": "number"
19
18
  },
20
19
  "component": {},
21
20
  "private": {},