@adobe/spectrum-tokens 14.14.0 → 15.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 +74 -0
- package/dist/json/drover.json +9 -9
- package/dist/json/variables.json +23717 -23717
- package/manifest.json +85 -2
- package/naming-exceptions.json +444 -0
- package/package.json +1 -1
- package/schemas/token-types/multiplier.json +1 -1
- package/snapshots/validation-snapshot.json +1091 -573
- package/src/accordion.json +838 -0
- package/src/action-bar.json +96 -0
- package/src/action-button.json +80 -0
- package/src/alert-banner.json +143 -0
- package/src/alert-dialog.json +66 -0
- package/src/avatar-group.json +44 -0
- package/src/avatar.json +470 -0
- package/src/bar-panel.json +41 -0
- package/src/body.json +284 -0
- package/src/breadcrumbs.json +439 -0
- package/src/button.json +8 -0
- package/src/card-horizontal.json +29 -0
- package/src/card.json +366 -0
- package/src/checkbox.json +150 -0
- package/src/coach-indicator.json +56 -0
- package/src/coach-mark.json +211 -0
- package/src/code.json +188 -0
- package/src/collection-card.json +62 -0
- package/src/color-area.json +94 -0
- package/src/color-control.json +19 -0
- package/src/color-handle.json +105 -0
- package/src/color-loupe.json +67 -0
- package/src/color-palette.json +0 -18
- package/src/color-slider.json +60 -0
- package/src/color-wheel.json +54 -0
- package/src/combo-box.json +68 -0
- package/src/contextual-help.json +56 -0
- package/src/date-field.json +17 -0
- package/src/date-picker.json +24 -0
- package/src/detail.json +443 -0
- package/src/divider.json +32 -0
- package/src/double-calendar.json +14 -0
- package/src/drop-zone.json +96 -0
- package/src/field-label.json +274 -0
- package/src/field.json +293 -0
- package/src/floating-action-button.json +29 -0
- package/src/form-item.json +26 -0
- package/src/heading.json +616 -0
- package/src/help-text.json +46 -0
- package/src/illustrated-message.json +190 -0
- package/src/in-field-button.json +213 -0
- package/src/in-field-progress-circle.json +89 -0
- package/src/in-line-alert.json +8 -0
- package/src/layout-component.json +441 -13188
- package/src/layout.json +44 -305
- package/src/list-view.json +68 -0
- package/src/menu.json +519 -0
- package/src/meter.json +108 -0
- package/src/number-field.json +214 -0
- package/src/opacity-checkerboard.json +84 -0
- package/src/picker.json +111 -0
- package/src/popover.json +88 -0
- package/src/progress-bar.json +82 -0
- package/src/progress-circle.json +104 -0
- package/src/radio-button.json +156 -0
- package/src/rating.json +116 -0
- package/src/search-field.json +8 -0
- package/src/segmented-control.json +20 -0
- package/src/segmented-text-field.json +16 -0
- package/src/select-box.json +245 -0
- package/src/side-navigation.json +437 -0
- package/src/single-calendar.json +14 -0
- package/src/slider.json +770 -0
- package/src/stack-item.json +254 -0
- package/src/standard-dialog.json +60 -0
- package/src/standard-panel.json +92 -0
- package/src/status-light.json +186 -0
- package/src/steplist.json +112 -0
- package/src/swatch-group.json +23 -0
- package/src/swatch.json +124 -0
- package/src/switch.json +354 -0
- package/src/table.json +1849 -0
- package/src/tabs.json +882 -0
- package/src/tag-field.json +181 -0
- package/src/tag.json +306 -0
- package/src/takeover-dialog.json +14 -0
- package/src/text-area.json +36 -0
- package/src/text-field.json +8 -0
- package/src/thumbnail.json +236 -0
- package/src/time-field.json +17 -0
- package/src/title.json +272 -0
- package/src/toast.json +96 -0
- package/src/tooltip.json +59 -0
- package/src/tray.json +22 -0
- package/src/tree-view.json +420 -0
- package/src/triple-calendar.json +14 -0
- package/src/typography.json +0 -1477
- package/src/user-card.json +50 -0
- package/test/checkComponentProps.js +24 -5
- package/src/color-component.json +0 -611
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# [**@adobe/spectrum-tokens**](https://github.com/adobe/spectrum-design-data)
|
|
2
2
|
|
|
3
|
+
## 15.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#1330](https://github.com/adobe/spectrum-design-data/pull/1330) [`afbadb2`](https://github.com/adobe/spectrum-design-data/commit/afbadb23a3ddd75640777909cdf97b849fc0daa7) Thanks [@GarthDB](https://github.com/GarthDB)! - Reorganize `src/` into per-component token files, following the CTR
|
|
8
|
+
migration in `@adobe/spectrum-design-data` (spectrum-design-data-x29.4).
|
|
9
|
+
Token content is unchanged byte-for-byte per token; only the file each
|
|
10
|
+
token lives in changes. Breaking for any consumer importing a specific
|
|
11
|
+
`src/*` path directly (`exports["./src/*"]`) rather than through the
|
|
12
|
+
package's aggregated output.
|
|
13
|
+
- **packages/tokens/src/{color-palette,layout-component,layout,typography}.json**:
|
|
14
|
+
name.component-scoped tokens removed.
|
|
15
|
+
- **packages/tokens/src/\*.json**: 84 new per-component files (e.g.
|
|
16
|
+
`body.json`, `popover.json`, `button.json`) holding the tokens moved
|
|
17
|
+
out of the files above.
|
|
18
|
+
- **packages/tokens/src/color-component.json**: removed — the cascade
|
|
19
|
+
source (`color-component.tokens.json`) now has 0 tokens post-migration,
|
|
20
|
+
so the legacy generator no longer emits this file.
|
|
21
|
+
- **packages/tokens/manifest.json**: regenerated (`node tasks/buildManifest.js`)
|
|
22
|
+
to include the 84 new per-component files; was stale after the reorg,
|
|
23
|
+
failing `checkManifest.test.js`.
|
|
24
|
+
|
|
25
|
+
## 14.15.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- [#1229](https://github.com/adobe/spectrum-design-data/pull/1229) [`b4f79db`](https://github.com/adobe/spectrum-design-data/commit/b4f79db78d8b889b46b98d0fc26d424c1d4fe5fe) Thanks [@GarthDB](https://github.com/GarthDB)! - Route tab-item, menu-item, and in-field-stepper anatomy sub-parts to their real parent
|
|
30
|
+
component, clearing 123 SPEC-009 warnings (part of spectrum-design-data-uep; remaining
|
|
31
|
+
71 tokens tracked separately pending a taxonomy ruling).
|
|
32
|
+
- **packages/design-data/registry/anatomy-terms.json**: add `in-field-stepper`; mark
|
|
33
|
+
`tab-item`/`menu-item` `usedIn: ["tokens"]`.
|
|
34
|
+
- **packages/design-data/tokens/{layout,color}-component.tokens.json**: 123 tokens gain
|
|
35
|
+
`component` (real parent: `tabs`, `menu`, `number-field`) + `anatomy` (sub-part) + a
|
|
36
|
+
pinned `legacyKey` so the published key is unchanged.
|
|
37
|
+
- **packages/tokens/src/{layout,color}-component.json**: regenerated; only the flat
|
|
38
|
+
`component` attribute value changed (67 tokens), no key renames.
|
|
39
|
+
- **packages/tokens/naming-exceptions.json** / **validation-snapshot.json**: track the
|
|
40
|
+
49 tokens whose pinned legacy key no longer roundtrips through canonical name
|
|
41
|
+
generation (category `anatomy-decomposition`).
|
|
42
|
+
- **packages/tokens/test/checkComponentProps.js**: recognize anatomy sub-part prefixes
|
|
43
|
+
(via the anatomy registry) as valid even when they don't match `component`.
|
|
44
|
+
- **sdk/core/src/migrate.rs**: `thin_name_val` now pins `legacyKey` when a corrected
|
|
45
|
+
`component` no longer reproduces the original key, fixing legacy→cascade roundtrip.
|
|
46
|
+
|
|
47
|
+
- [#1231](https://github.com/adobe/spectrum-design-data/pull/1231) [`62e74d7`](https://github.com/adobe/spectrum-design-data/commit/62e74d7f4d59bcc3e63fbc5b7c594f65ef78b024) Thanks [@GarthDB](https://github.com/GarthDB)! - Re-key icon tokens off the new `icon` name field (part of spectrum-design-data-aui),
|
|
48
|
+
clearing ~315 SPEC-009 warnings. Published legacy keys are unchanged.
|
|
49
|
+
- **packages/design-data/registry/icon-terms.json**: new registry, 12 icon ids (`icon`,
|
|
50
|
+
`ui`, `checkmark`, `chevron`, `dash`, `arrow`, `cross`, `add`, `link-out`,
|
|
51
|
+
`drag-handle`, `asterisk`, `gripper`), with `tokenName` long-form expansions.
|
|
52
|
+
- **packages/design-data/tokens/icons.tokens.json**: 191 tokens re-keyed
|
|
53
|
+
`component:'icon'` → `icon:'icon'`.
|
|
54
|
+
- **packages/design-data/tokens/layout-component.tokens.json**: 124 tokens re-keyed
|
|
55
|
+
`component:'X-icon'` → `icon:'X'` across 11 distinct values.
|
|
56
|
+
- **sdk/core/src/naming.rs**: `extract_legacy_key` gains an icon (non-color) branch and
|
|
57
|
+
a thin-format guard so re-keyed tokens still resolve to their original legacy key.
|
|
58
|
+
- **sdk/core/src/legacy.rs**: legacy-metadata hoisting (`resolve_owner_component`) now
|
|
59
|
+
falls back to the icon field so published `component` metadata is unaffected.
|
|
60
|
+
- **packages/tokens/src/icons.json**, **layout-component.json**: regenerated, byte-identical
|
|
61
|
+
to their pre-change state.
|
|
62
|
+
|
|
63
|
+
- [#1238](https://github.com/adobe/spectrum-design-data/pull/1238) [`8d8bf09`](https://github.com/adobe/spectrum-design-data/commit/8d8bf0904e716ed86b10f890251980f73f0215c7) Thanks [@GarthDB](https://github.com/GarthDB)! - Decompose the 16 remaining fused-property typography tokens onto proper
|
|
64
|
+
`component`/`property`/`family`/`script`/`emphasis`/`size` fields (closes
|
|
65
|
+
spectrum-design-data-1lf).
|
|
66
|
+
- **packages/design-data/tokens/typography.tokens.json**:
|
|
67
|
+
`body-cjk-size-{l,m,s,xl,xs,xxl,xxs,xxxl}`, `body-size-xxs`, `heading-cjk-font-weight`,
|
|
68
|
+
`heading-cjk-size-xxxxl`, `heading-size-xxxxl` get `component`/`property`/`script`/`size`
|
|
69
|
+
fields, retaining `legacyKey` to pin their published fused name.
|
|
70
|
+
`heading-{sans-serif,serif}[-emphasized]-font-weight` get `component`/`property`/`family`/
|
|
71
|
+
`emphasis` fields; their reconstructed names already match the fused originals, so no
|
|
72
|
+
`legacyKey` pin is needed.
|
|
73
|
+
- **packages/tokens/src/typography.json**: regenerated legacy output now carries a
|
|
74
|
+
`component` attribute on these 16 tokens (previously absent) — an accepted, additive
|
|
75
|
+
publish diff.
|
|
76
|
+
|
|
3
77
|
## 14.14.0
|
|
4
78
|
|
|
5
79
|
### Minor Changes
|
package/dist/json/drover.json
CHANGED
|
@@ -1782,11 +1782,7 @@
|
|
|
1782
1782
|
"background-opacity-down": "0.1",
|
|
1783
1783
|
"background-opacity-hover": "0.1",
|
|
1784
1784
|
"background-opacity-key-focus": "0.1",
|
|
1785
|
-
"banner-gap-horizontal": "24px",
|
|
1786
|
-
"banner-gap-vertical": "8px",
|
|
1787
|
-
"banner-padding-horizontal": "16px",
|
|
1788
1785
|
"banner-padding-horizontal-compact": "8px",
|
|
1789
|
-
"banner-padding-vertical": "12px",
|
|
1790
1786
|
"bar-panel-maximum-width": "72px",
|
|
1791
1787
|
"bar-panel-minimum-width": "40px",
|
|
1792
1788
|
"bar-panel-spacing-extra-spacious": "20px",
|
|
@@ -2341,6 +2337,9 @@
|
|
|
2341
2337
|
"form-item-gap-large": "6px",
|
|
2342
2338
|
"form-item-gap-medium": "6px",
|
|
2343
2339
|
"form-item-gap-small": "4px",
|
|
2340
|
+
"gap-horizontal": "24px",
|
|
2341
|
+
"gap-regular": "4px",
|
|
2342
|
+
"gap-vertical": "8px",
|
|
2344
2343
|
"gradient-stop-2-avatar": 0.6666,
|
|
2345
2344
|
"gradient-stop-2-genai": 0.3333,
|
|
2346
2345
|
"gradient-stop-2-premium": 0.6666,
|
|
@@ -2458,7 +2457,6 @@
|
|
|
2458
2457
|
"link-out-icon-size-400": "16px",
|
|
2459
2458
|
"link-out-icon-size-75": "10px",
|
|
2460
2459
|
"list-gap-compact": "2px",
|
|
2461
|
-
"list-gap-regular": "4px",
|
|
2462
2460
|
"list-gap-spacious": "8px",
|
|
2463
2461
|
"list-indent-large": "24px",
|
|
2464
2462
|
"list-indent-medium": "16px",
|
|
@@ -2523,6 +2521,8 @@
|
|
|
2523
2521
|
"opacity-checkerboard-square-size-medium": "8px",
|
|
2524
2522
|
"opacity-checkerboard-square-size-small": "4px",
|
|
2525
2523
|
"opacity-disabled": "0.3",
|
|
2524
|
+
"padding-horizontal": "16px",
|
|
2525
|
+
"padding-vertical": "12px",
|
|
2526
2526
|
"picker-border-width": "1px",
|
|
2527
2527
|
"picker-end-edge-to-disclosure-icon-quiet": "0px",
|
|
2528
2528
|
"picker-end-edge-to-disclousure-icon-quiet": "0px",
|
|
@@ -2679,7 +2679,7 @@
|
|
|
2679
2679
|
"spacing-85": "6px",
|
|
2680
2680
|
"spacing-900": "80px",
|
|
2681
2681
|
"stack-item-action-to-navigation": "4px",
|
|
2682
|
-
"stack-item-drag-handle-to-control": "8px",
|
|
2682
|
+
"stack-item-drag-handle-icon-to-control": "8px",
|
|
2683
2683
|
"stack-item-edge-to-control": "12px",
|
|
2684
2684
|
"stack-item-edge-to-visual": "12px",
|
|
2685
2685
|
"stack-item-header-minimum-width": "200px",
|
|
@@ -3028,9 +3028,9 @@
|
|
|
3028
3028
|
"tree-view-bottom-to-label": "12px",
|
|
3029
3029
|
"tree-view-disclosure-indicator-height": "32px",
|
|
3030
3030
|
"tree-view-disclosure-indicator-width": "34px",
|
|
3031
|
-
"tree-view-drag-handle-to-checkbox": "8px",
|
|
3031
|
+
"tree-view-drag-handle-icon-to-checkbox": "8px",
|
|
3032
3032
|
"tree-view-edge-to-checkbox": "12px",
|
|
3033
|
-
"tree-view-edge-to-drag-handle": "4px",
|
|
3033
|
+
"tree-view-edge-to-drag-handle-icon": "4px",
|
|
3034
3034
|
"tree-view-end-edge-to-action-area": "6px",
|
|
3035
3035
|
"tree-view-header-to-item": "-1px",
|
|
3036
3036
|
"tree-view-item-to-header": "24px",
|
|
@@ -3047,7 +3047,7 @@
|
|
|
3047
3047
|
"tree-view-top-to-action-button": "4px",
|
|
3048
3048
|
"tree-view-top-to-checkbox": "4px",
|
|
3049
3049
|
"tree-view-top-to-disclosure-indicator": "15px",
|
|
3050
|
-
"tree-view-top-to-drag-handle": "15px",
|
|
3050
|
+
"tree-view-top-to-drag-handle-icon": "15px",
|
|
3051
3051
|
"tree-view-top-to-label": "10px",
|
|
3052
3052
|
"triple-calendar-popover-minimum-height": "320px",
|
|
3053
3053
|
"triple-calendar-popover-minimum-width": "912px",
|