@adobe/spectrum-design-data 0.17.0 → 1.0.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/fields/state.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
3
3
  "specVersion": "1.0.0-draft",
4
4
  "name": "state",
5
- "description": "Interactive or semantic state (e.g. hover, focus, disabled, selected). Compound states use hyphenation (e.g. selected-hover).",
5
+ "description": "Interactive or semantic state (e.g. hover, focus, disabled, selected), as an ordered array of atomic state ids. Compound states list mode-state before interaction-state (e.g. [\"selected\", \"hover\"]).",
6
6
  "kind": "semantic",
7
7
  "registry": "packages/design-data/registry/states.json",
8
8
  "validation": "advisory",
@@ -11,5 +11,5 @@
11
11
  },
12
12
  "scope": null,
13
13
  "required": false,
14
- "valueType": "string"
14
+ "valueType": "array"
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-design-data",
3
- "version": "0.17.0",
3
+ "version": "1.0.0",
4
4
  "description": "Spectrum design tokens in cascade format — the canonical source of truth for @adobe/spectrum-tokens",
5
5
  "type": "module",
6
6
  "repository": {
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "ajv": "^8.12.0",
64
64
  "ajv-formats": "^3.0.1",
65
- "@adobe/design-data-spec": "2.9.0"
65
+ "@adobe/design-data-spec": "3.0.0"
66
66
  },
67
67
  "scripts": {}
68
68
  }
@@ -3,7 +3,7 @@
3
3
  "type": "state",
4
4
  "description": "Interaction states for components",
5
5
  "allowCustom": true,
6
- "customPattern": "^[a-z][a-z0-9-]*(\\s\\+\\s[a-z][a-z0-9-]*)*$",
6
+ "customPattern": "^[a-z][a-z0-9-]*$",
7
7
  "values": [
8
8
  {
9
9
  "id": "default",