@adobe/spectrum-component-api-schemas 0.0.0-schema-20240620220450 → 0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @adobe/spectrum-component-api-schemas
2
2
 
3
+ ## 0.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#353](https://github.com/adobe/spectrum-tokens/pull/353) [`71e674a`](https://github.com/adobe/spectrum-tokens/commit/71e674ad6baa630a900785ae21c9dcae93233b21) Thanks [@karstens](https://github.com/karstens)! - Release to latest branch
8
+
9
+ ## 0.0.0-schema-20240821152525
10
+
11
+ ### Patch Changes
12
+
13
+ - [#353](https://github.com/adobe/spectrum-tokens/pull/353) [`dc2d6c6`](https://github.com/adobe/spectrum-tokens/commit/dc2d6c6e12c1ea4fdc0d891b3fd50ea0b1697dd7) Thanks [@karstens](https://github.com/karstens)! - Making adjustments to bring the schema more in line with what was on the spectrum website.
14
+
3
15
  ## 0.0.0-schema-20240620220450
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-component-api-schemas",
3
- "version": "0.0.0-schema-20240620220450",
3
+ "version": "0.0.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -22,9 +22,8 @@
22
22
  },
23
23
  "size": {
24
24
  "type": "string",
25
- "enum": ["s", "m", "l", "xl"],
26
- "default": "m",
27
- "pattern": "^(x?s|m|x{0,3}l)$"
25
+ "enum": ["xs", "s", "m", "l", "xl"],
26
+ "default": "m"
28
27
  },
29
28
  "isQuiet": {
30
29
  "type": "boolean",
@@ -40,7 +39,8 @@
40
39
  },
41
40
  "staticColor": {
42
41
  "type": "string",
43
- "enum": ["white", "black"]
42
+ "enum": ["white", "black"],
43
+ "description": "Static color must not be set for the default version of this component."
44
44
  },
45
45
  "selectedTextColor": {
46
46
  "$ref": "https://opensource.adobe.com/spectrum-tokens/schemas/types/hex-color.json"
@@ -15,7 +15,9 @@
15
15
  "default": 100
16
16
  },
17
17
  "image": {
18
- "type": "string"
18
+ "type": "string",
19
+ "enum": ["text", "image"],
20
+ "default": "image"
19
21
  },
20
22
  "isDisabled": {
21
23
  "type": "boolean",
@@ -27,7 +27,8 @@
27
27
  },
28
28
  "staticColor": {
29
29
  "type": "string",
30
- "enum": ["white", "black"]
30
+ "enum": ["white", "black"],
31
+ "description": "Static color must not be set for the default version of this component."
31
32
  },
32
33
  "style": {
33
34
  "type": "string",
@@ -20,7 +20,7 @@
20
20
  "staticColor": {
21
21
  "type": "string",
22
22
  "enum": ["white", "black"],
23
- "default": null
23
+ "description": "Static color must not be set for the default version of this component."
24
24
  },
25
25
  "isDisabled": {
26
26
  "type": "boolean",
@@ -21,7 +21,7 @@
21
21
  "staticColor": {
22
22
  "type": "string",
23
23
  "enum": ["white", "black"],
24
- "default": null
24
+ "description": "Static color must not be set for the default version of this component."
25
25
  },
26
26
  "state": {
27
27
  "type": "string",
@@ -10,7 +10,7 @@
10
10
  "type": "object",
11
11
  "properties": {
12
12
  "width": {
13
- "type": "integer"
13
+ "type": "number"
14
14
  },
15
15
  "height": {
16
16
  "type": "number"
@@ -10,9 +10,10 @@
10
10
  "type": "object",
11
11
  "properties": {
12
12
  "value": {
13
- "type": "integer",
14
- "minimum": 0,
15
- "maximum": 5
13
+ "type": "number",
14
+ "enum": [0, 1, 2, 3, 4, 5],
15
+ "default": 0,
16
+ "description": "From 0 to 5"
16
17
  },
17
18
  "isEmphasized": {
18
19
  "type": "boolean",
@@ -9,24 +9,46 @@
9
9
  },
10
10
  "type": "object",
11
11
  "properties": {
12
- "label": {
13
- "type": "string"
12
+ "orientation": {
13
+ "type": "string",
14
+ "enum": ["horizontal", "vertical"],
15
+ "default": "vertical"
14
16
  },
15
- "icon": {
16
- "$ref": "https://opensource.adobe.com/spectrum-tokens/schemas/types/workflow-icon.json"
17
+ "size": {
18
+ "type": "string",
19
+ "enum": ["s", "m", "l", "xl"],
20
+ "default": "m"
17
21
  },
18
- "isSelected": {
22
+ "density": {
23
+ "type": "string",
24
+ "enum": ["compact", "regular"],
25
+ "default": "regular"
26
+ },
27
+ "isFluid": {
28
+ "type": "boolean",
29
+ "default": false,
30
+ "description": "This overrides density and is only applicable to horizontal tabs."
31
+ },
32
+ "isQuiet": {
19
33
  "type": "boolean",
20
34
  "default": false
21
35
  },
22
- "isDisabled": {
36
+ "isEmphasized": {
23
37
  "type": "boolean",
24
38
  "default": false
25
39
  },
26
- "state": {
40
+ "alignment": {
41
+ "type": "string",
42
+ "enum": ["start", "center"],
43
+ "default": "start"
44
+ },
45
+ "selectedItem": {
46
+ "description": "(list of available items)"
47
+ },
48
+ "keyboardActivation": {
27
49
  "type": "string",
28
- "enum": ["default", "hover", "down", "keyboard focus"],
29
- "default": "default"
50
+ "enum": ["manual", "automatic"],
51
+ "default": "manual"
30
52
  }
31
53
  }
32
54
  }