@adobe/spectrum-component-api-schemas 2.0.0 → 3.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 +71 -0
- package/package.json +1 -1
- package/schemas/components/help-text.json +3 -2
- package/schemas/components/meter.json +4 -0
- package/schemas/components/popover.json +2 -2
- package/schemas/components/progress-bar.json +14 -0
- package/schemas/components/rating.json +4 -2
- package/schemas/components/search-field.json +8 -0
- package/schemas/components/select-box.json +11 -2
- package/schemas/components/status-light.json +8 -6
- package/schemas/components/text-area.json +4 -0
- package/schemas/components/text-field.json +4 -0
- package/schemas/components/tooltip.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,76 @@
|
|
|
1
1
|
# @adobe/spectrum-component-api-schemas
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#610](https://github.com/adobe/spectrum-tokens/pull/610) [`13d9202`](https://github.com/adobe/spectrum-tokens/commit/13d920273c02c78d3748522de6a7c7ee39b39814) Thanks [@GarthDB](https://github.com/GarthDB)! - Component schema improvements for Batch 1 components
|
|
8
|
+
|
|
9
|
+
Quality control pass on the Design API table for v0, ensuring schema consistency and completeness across S2 components.
|
|
10
|
+
|
|
11
|
+
## Component Schemas Changed (0 added, 0 deleted, 11 updated)
|
|
12
|
+
|
|
13
|
+
**Original Branch:** `main`
|
|
14
|
+
**New Branch:** `component-schema-batch1-fixes`
|
|
15
|
+
|
|
16
|
+
### 🚨 Breaking Changes Detected (5)
|
|
17
|
+
|
|
18
|
+
This release introduces **5 breaking change(s)** to component schemas. Please review carefully and ensure proper versioning.
|
|
19
|
+
|
|
20
|
+
<details open><summary><strong>💥 Breaking Updates</strong></summary>
|
|
21
|
+
|
|
22
|
+
**popover**
|
|
23
|
+
- Added: `hideTip` (boolean, default: false) - replaces removed `showTip`
|
|
24
|
+
|
|
25
|
+
**rating**
|
|
26
|
+
- Added: `value.minimum` (0), `value.maximum` (5), `value.multipleOf` (0.5)
|
|
27
|
+
- Updated: `value.description` - "From 0 to 5, can be a decimal to represent half stars"
|
|
28
|
+
|
|
29
|
+
**select-box**
|
|
30
|
+
- Added: `hideIllustration` (boolean, default: false) - replaces removed `showIllustration`
|
|
31
|
+
- Added: `isDisabled` (boolean, default: false)
|
|
32
|
+
- Added: `multiple` (boolean, default: false) - "Set to true to allow multiple selections"
|
|
33
|
+
- Updated: `orientation.default` changed to "vertical"
|
|
34
|
+
|
|
35
|
+
**status-light**
|
|
36
|
+
- Added: Colors to `variant.enum`: "gray", "red", "orange", "green", "cyan"
|
|
37
|
+
- Added: `required` - ["label"] - label is now required
|
|
38
|
+
- Removed: `isDisabled` property
|
|
39
|
+
|
|
40
|
+
**tooltip**
|
|
41
|
+
- Removed: "positive" from `variant.enum`
|
|
42
|
+
- Updated: `hasIcon.description` - "If the neutral variant, there is never an icon"
|
|
43
|
+
|
|
44
|
+
</details>
|
|
45
|
+
|
|
46
|
+
### ✅ Non-Breaking Updates (6)
|
|
47
|
+
|
|
48
|
+
<details><summary><strong>🔄 Compatible Changes</strong></summary>
|
|
49
|
+
|
|
50
|
+
**help-text**
|
|
51
|
+
- Added: "negative" to `variant.enum`
|
|
52
|
+
- Added: `isDisabled.description` - "Help text cannot be both disabled and negative variant"
|
|
53
|
+
|
|
54
|
+
**meter**
|
|
55
|
+
- Added: `hideLabel` (boolean, default: false)
|
|
56
|
+
|
|
57
|
+
**progress-bar**
|
|
58
|
+
- Added: `staticColor` (string, enum: ["white"]) - "Static color can only be white, otherwise it is default"
|
|
59
|
+
- Added: `labelPosition` (string, enum: ["top", "side"], default: "top")
|
|
60
|
+
- Added: `hideLabel` (boolean, default: false)
|
|
61
|
+
|
|
62
|
+
**search-field**
|
|
63
|
+
- Added: `hideLabel` (boolean, default: false)
|
|
64
|
+
- Added: `icon` ($ref: workflow-icon.json) - "Icon must be present if the label is not defined"
|
|
65
|
+
|
|
66
|
+
**text-area**
|
|
67
|
+
- Added: `hideLabel` (boolean, default: false)
|
|
68
|
+
|
|
69
|
+
**text-field**
|
|
70
|
+
- Added: `hideLabel` (boolean, default: false)
|
|
71
|
+
|
|
72
|
+
</details>
|
|
73
|
+
|
|
3
74
|
## 2.0.0
|
|
4
75
|
|
|
5
76
|
### Major Changes
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"variant": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"enum": ["neutral"],
|
|
17
|
+
"enum": ["neutral", "negative"],
|
|
18
18
|
"default": "neutral"
|
|
19
19
|
},
|
|
20
20
|
"hideIcon": {
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"isDisabled": {
|
|
31
31
|
"type": "boolean",
|
|
32
|
-
"default": false
|
|
32
|
+
"default": false,
|
|
33
|
+
"description": "Help text cannot be both disabled and negative variant."
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
}
|
|
@@ -14,9 +14,23 @@
|
|
|
14
14
|
"enum": ["default", "over background"],
|
|
15
15
|
"default": "default"
|
|
16
16
|
},
|
|
17
|
+
"staticColor": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["white"],
|
|
20
|
+
"description": "Static color can only be white, otherwise it is default."
|
|
21
|
+
},
|
|
17
22
|
"label": {
|
|
18
23
|
"type": "string"
|
|
19
24
|
},
|
|
25
|
+
"labelPosition": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": ["top", "side"],
|
|
28
|
+
"default": "top"
|
|
29
|
+
},
|
|
30
|
+
"hideLabel": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false
|
|
33
|
+
},
|
|
20
34
|
"value": {
|
|
21
35
|
"type": "number",
|
|
22
36
|
"description": "Not applicable when indeterminate."
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
"properties": {
|
|
12
12
|
"value": {
|
|
13
13
|
"type": "number",
|
|
14
|
-
"
|
|
14
|
+
"minimum": 0,
|
|
15
|
+
"maximum": 5,
|
|
15
16
|
"default": 0,
|
|
16
|
-
"
|
|
17
|
+
"multipleOf": 0.5,
|
|
18
|
+
"description": "From 0 to 5, can be a decimal to represent half stars"
|
|
17
19
|
},
|
|
18
20
|
"isEmphasized": {
|
|
19
21
|
"type": "boolean",
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"label": {
|
|
13
13
|
"type": "string"
|
|
14
14
|
},
|
|
15
|
+
"hideLabel": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"icon": {
|
|
20
|
+
"$ref": "https://opensource.adobe.com/spectrum-tokens/schemas/types/workflow-icon.json",
|
|
21
|
+
"description": "Icon must be present if the label is not defined."
|
|
22
|
+
},
|
|
15
23
|
"value": {
|
|
16
24
|
"type": "string"
|
|
17
25
|
},
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"orientation": {
|
|
16
16
|
"type": "string",
|
|
17
17
|
"enum": ["horizontal", "vertical"],
|
|
18
|
-
"default": "
|
|
18
|
+
"default": "vertical"
|
|
19
19
|
},
|
|
20
20
|
"body": {
|
|
21
21
|
"type": "string"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"type": "boolean",
|
|
25
25
|
"default": false
|
|
26
26
|
},
|
|
27
|
-
"
|
|
27
|
+
"hideIllustration": {
|
|
28
28
|
"type": "boolean",
|
|
29
29
|
"default": false
|
|
30
30
|
},
|
|
@@ -32,10 +32,19 @@
|
|
|
32
32
|
"type": "boolean",
|
|
33
33
|
"default": false
|
|
34
34
|
},
|
|
35
|
+
"isDisabled": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
35
39
|
"state": {
|
|
36
40
|
"type": "string",
|
|
37
41
|
"enum": ["default", "down", "hover", "keyboard focus"],
|
|
38
42
|
"default": "default"
|
|
43
|
+
},
|
|
44
|
+
"multiple": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"default": false,
|
|
47
|
+
"description": "Set to true to allow multiple selections."
|
|
39
48
|
}
|
|
40
49
|
}
|
|
41
50
|
}
|
|
@@ -32,7 +32,12 @@
|
|
|
32
32
|
"turquoise",
|
|
33
33
|
"cinnamon",
|
|
34
34
|
"brown",
|
|
35
|
-
"silver"
|
|
35
|
+
"silver",
|
|
36
|
+
"gray",
|
|
37
|
+
"red",
|
|
38
|
+
"orange",
|
|
39
|
+
"green",
|
|
40
|
+
"cyan"
|
|
36
41
|
],
|
|
37
42
|
"default": "informative"
|
|
38
43
|
},
|
|
@@ -40,10 +45,7 @@
|
|
|
40
45
|
"type": "string",
|
|
41
46
|
"enum": ["s", "m", "l", "xl"],
|
|
42
47
|
"default": "m"
|
|
43
|
-
},
|
|
44
|
-
"isDisabled": {
|
|
45
|
-
"type": "boolean",
|
|
46
|
-
"default": false
|
|
47
48
|
}
|
|
48
|
-
}
|
|
49
|
+
},
|
|
50
|
+
"required": ["label"]
|
|
49
51
|
}
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"variant": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"enum": ["neutral", "informative", "
|
|
17
|
+
"enum": ["neutral", "informative", "negative"],
|
|
18
18
|
"default": "neutral"
|
|
19
19
|
},
|
|
20
20
|
"hasIcon": {
|
|
21
21
|
"type": "boolean",
|
|
22
|
-
"description": "If the neutral variant, there
|
|
22
|
+
"description": "If the neutral variant, there is never an icon.",
|
|
23
23
|
"default": false
|
|
24
24
|
},
|
|
25
25
|
"maxWidth": {
|