@adobe/spectrum-tokens 15.8.0 → 15.9.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 +22 -0
- package/dist/json/drover.json +3 -0
- package/dist/json/variables.json +12 -0
- package/naming-exceptions.json +18 -0
- package/package.json +1 -1
- package/snapshots/validation-snapshot.json +21 -0
- package/src/layout.json +21 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# [**@adobe/spectrum-tokens**](https://github.com/adobe/spectrum-design-data)
|
|
2
2
|
|
|
3
|
+
## 15.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1948](https://github.com/adobe/spectrum-design-data/pull/1948) [`53e922b`](https://github.com/adobe/spectrum-design-data/commit/53e922b0293f2b5c2be0e66c99e89b62afa6d605) Thanks [@GarthDB](https://github.com/GarthDB)! - Remove the component `tokenBindings` field. Relationships carry that data.
|
|
8
|
+
- **Spec (breaking):** `tokenBindings` is gone from `component.schema.json` and rule SPEC-027
|
|
9
|
+
is retired. A component that still has the field now fails schema validation. Use
|
|
10
|
+
`relationships/<component>.json`; SPEC-055 checks each `$ref`. To migrate, turn each
|
|
11
|
+
`{ token, context }` entry into a relationship with the token's uuid as `$ref`.
|
|
12
|
+
- **Button:** adds `corner-radius-button-small` (12px), `corner-radius-button-large` (20px)
|
|
13
|
+
and `corner-radius-button-extra-large` (24px) for wrapping labels. The 16px wrapping
|
|
14
|
+
relationship is now scoped to size `m`; `s`, `l` and `xl` have their own. The three names
|
|
15
|
+
were referenced but never defined.
|
|
16
|
+
- **Tabs, date picker:** four bindings with no relationship now have one.
|
|
17
|
+
- **Component data:** declares anatomy parts, sizes and states that relationships already
|
|
18
|
+
used (steplist, menu, table, tag-field, card, stack-item, body, heading, detail). List-view
|
|
19
|
+
and radio-button relationships now name their existing parts. Illustrated message uses a
|
|
20
|
+
`script: cjk` option instead of `-cjk` sizes.
|
|
21
|
+
- **Validation:** `design-data:validate` no longer downgrades component-rule errors to warnings.
|
|
22
|
+
Table declares the `xl` size its relationships use.
|
|
23
|
+
- **Agent MCP:** `describe_component` returns `relationships`; docs drop `tokenBindings`.
|
|
24
|
+
|
|
3
25
|
## 15.8.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/json/drover.json
CHANGED
|
@@ -2397,6 +2397,9 @@
|
|
|
2397
2397
|
"corner-radius-700": "10px",
|
|
2398
2398
|
"corner-radius-75": "3px",
|
|
2399
2399
|
"corner-radius-800": "16px",
|
|
2400
|
+
"corner-radius-button-extra-large": "24px",
|
|
2401
|
+
"corner-radius-button-large": "20px",
|
|
2402
|
+
"corner-radius-button-small": "12px",
|
|
2400
2403
|
"corner-radius-extra-large-default": "16px",
|
|
2401
2404
|
"corner-radius-full": 0.5,
|
|
2402
2405
|
"corner-radius-large-default": "10px",
|
package/dist/json/variables.json
CHANGED
|
@@ -25773,6 +25773,18 @@
|
|
|
25773
25773
|
"value": "16px",
|
|
25774
25774
|
"uuid": "8fc023ca-8aec-40fe-9130-087aa035bac7"
|
|
25775
25775
|
},
|
|
25776
|
+
"corner-radius-button-extra-large": {
|
|
25777
|
+
"value": "24px",
|
|
25778
|
+
"uuid": "bcc60e9b-aa1f-4989-b17f-0aed21a30db7"
|
|
25779
|
+
},
|
|
25780
|
+
"corner-radius-button-large": {
|
|
25781
|
+
"value": "20px",
|
|
25782
|
+
"uuid": "e9940242-95ec-460f-a701-b734ae55f877"
|
|
25783
|
+
},
|
|
25784
|
+
"corner-radius-button-small": {
|
|
25785
|
+
"value": "12px",
|
|
25786
|
+
"uuid": "6c0a6608-4b6b-4f40-b24d-f1d121165638"
|
|
25787
|
+
},
|
|
25776
25788
|
"corner-radius-extra-large-default": {
|
|
25777
25789
|
"ref": "{corner-radius-800}",
|
|
25778
25790
|
"value": "16px",
|
package/naming-exceptions.json
CHANGED
|
@@ -1633,6 +1633,24 @@
|
|
|
1633
1633
|
"file": "layout.json",
|
|
1634
1634
|
"category": "legacy-preserved",
|
|
1635
1635
|
"reason": "legacyKey pinned to the original dangling tokenBindings name (SPEC-027 vpk.1 fix); does not roundtrip through field-order generation"
|
|
1636
|
+
},
|
|
1637
|
+
{
|
|
1638
|
+
"token": "corner-radius-button-small",
|
|
1639
|
+
"file": "layout.json",
|
|
1640
|
+
"category": "legacy-preserved",
|
|
1641
|
+
"reason": "legacyKey pinned to the published Figma token name for the wrapping Button corner radius; does not roundtrip through field-order generation"
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"token": "corner-radius-button-large",
|
|
1645
|
+
"file": "layout.json",
|
|
1646
|
+
"category": "legacy-preserved",
|
|
1647
|
+
"reason": "legacyKey pinned to the published Figma token name for the wrapping Button corner radius; does not roundtrip through field-order generation"
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"token": "corner-radius-button-extra-large",
|
|
1651
|
+
"file": "layout.json",
|
|
1652
|
+
"category": "legacy-preserved",
|
|
1653
|
+
"reason": "legacyKey pinned to the published Figma token name for the wrapping Button corner radius; does not roundtrip through field-order generation"
|
|
1636
1654
|
}
|
|
1637
1655
|
]
|
|
1638
1656
|
}
|
package/package.json
CHANGED
|
@@ -820,6 +820,27 @@
|
|
|
820
820
|
"severity": "info",
|
|
821
821
|
"message": "Known naming exception: 'icon-color-emphasized-background' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
822
822
|
},
|
|
823
|
+
{
|
|
824
|
+
"file": "./src/layout.json",
|
|
825
|
+
"token": "corner-radius-button-extra-large",
|
|
826
|
+
"rule_id": "SPEC-007",
|
|
827
|
+
"severity": "info",
|
|
828
|
+
"message": "Known naming exception: 'corner-radius-button-extra-large' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"file": "./src/layout.json",
|
|
832
|
+
"token": "corner-radius-button-large",
|
|
833
|
+
"rule_id": "SPEC-007",
|
|
834
|
+
"severity": "info",
|
|
835
|
+
"message": "Known naming exception: 'corner-radius-button-large' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"file": "./src/layout.json",
|
|
839
|
+
"token": "corner-radius-button-small",
|
|
840
|
+
"rule_id": "SPEC-007",
|
|
841
|
+
"severity": "info",
|
|
842
|
+
"message": "Known naming exception: 'corner-radius-button-small' does not match canonical generation rules (tracked in naming-exceptions.json)"
|
|
843
|
+
},
|
|
823
844
|
{
|
|
824
845
|
"file": "./src/layout.json",
|
|
825
846
|
"token": "drop-shadow-emphasized-default-blur",
|
package/src/layout.json
CHANGED
|
@@ -2189,6 +2189,27 @@
|
|
|
2189
2189
|
"value": "16px",
|
|
2190
2190
|
"uuid": "8fc023ca-8aec-40fe-9130-087aa035bac7"
|
|
2191
2191
|
},
|
|
2192
|
+
"corner-radius-button-extra-large": {
|
|
2193
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/dimension.json",
|
|
2194
|
+
"component": "button",
|
|
2195
|
+
"value": "24px",
|
|
2196
|
+
"uuid": "bcc60e9b-aa1f-4989-b17f-0aed21a30db7",
|
|
2197
|
+
"description": "Corner radius of a Button when its label wraps (half the button height)"
|
|
2198
|
+
},
|
|
2199
|
+
"corner-radius-button-large": {
|
|
2200
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/dimension.json",
|
|
2201
|
+
"component": "button",
|
|
2202
|
+
"value": "20px",
|
|
2203
|
+
"uuid": "e9940242-95ec-460f-a701-b734ae55f877",
|
|
2204
|
+
"description": "Corner radius of a Button when its label wraps (half the button height)"
|
|
2205
|
+
},
|
|
2206
|
+
"corner-radius-button-small": {
|
|
2207
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/dimension.json",
|
|
2208
|
+
"component": "button",
|
|
2209
|
+
"value": "12px",
|
|
2210
|
+
"uuid": "6c0a6608-4b6b-4f40-b24d-f1d121165638",
|
|
2211
|
+
"description": "Corner radius of a Button when its label wraps (half the button height)"
|
|
2212
|
+
},
|
|
2192
2213
|
"corner-radius-extra-large-default": {
|
|
2193
2214
|
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json",
|
|
2194
2215
|
"value": "{corner-radius-800}",
|