Skip to content

Commit 1a3245c

Browse files
authored
chore: add peer dep alignment to constraints (#3541)
* chore: add peer dep alignment to constraints * fix: run constraint alignment on all packages
1 parent 205182b commit 1a3245c

File tree

94 files changed

+1817
-1393
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1817
-1393
lines changed

.changeset/kind-waves-cough.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
"@spectrum-css/preview": patch
3+
"@spectrum-css/tokens": patch
4+
"@spectrum-css/accordion": patch
5+
"@spectrum-css/actionbar": patch
6+
"@spectrum-css/actionbutton": patch
7+
"@spectrum-css/actiongroup": patch
8+
"@spectrum-css/actionmenu": patch
9+
"@spectrum-css/alertbanner": patch
10+
"@spectrum-css/alertdialog": patch
11+
"@spectrum-css/asset": patch
12+
"@spectrum-css/assetcard": patch
13+
"@spectrum-css/assetlist": patch
14+
"@spectrum-css/avatar": patch
15+
"@spectrum-css/badge": patch
16+
"@spectrum-css/breadcrumb": patch
17+
"@spectrum-css/button": patch
18+
"@spectrum-css/buttongroup": patch
19+
"@spectrum-css/calendar": patch
20+
"@spectrum-css/card": patch
21+
"@spectrum-css/checkbox": patch
22+
"@spectrum-css/clearbutton": patch
23+
"@spectrum-css/closebutton": patch
24+
"@spectrum-css/coachindicator": patch
25+
"@spectrum-css/coachmark": patch
26+
"@spectrum-css/colorarea": patch
27+
"@spectrum-css/colorhandle": patch
28+
"@spectrum-css/colorloupe": patch
29+
"@spectrum-css/colorslider": patch
30+
"@spectrum-css/colorwheel": patch
31+
"@spectrum-css/combobox": patch
32+
"@spectrum-css/contextualhelp": patch
33+
"@spectrum-css/datepicker": patch
34+
"@spectrum-css/dial": patch
35+
"@spectrum-css/dialog": patch
36+
"@spectrum-css/divider": patch
37+
"@spectrum-css/dropindicator": patch
38+
"@spectrum-css/dropzone": patch
39+
"@spectrum-css/fieldgroup": patch
40+
"@spectrum-css/fieldlabel": patch
41+
"@spectrum-css/floatingactionbutton": patch
42+
"@spectrum-css/form": patch
43+
"@spectrum-css/helptext": patch
44+
"@spectrum-css/icon": patch
45+
"@spectrum-css/illustratedmessage": patch
46+
"@spectrum-css/infieldbutton": patch
47+
"@spectrum-css/inlinealert": patch
48+
"@spectrum-css/link": patch
49+
"@spectrum-css/logicbutton": patch
50+
"@spectrum-css/menu": patch
51+
"@spectrum-css/meter": patch
52+
"@spectrum-css/miller": patch
53+
"@spectrum-css/modal": patch
54+
"@spectrum-css/opacitycheckerboard": patch
55+
"@spectrum-css/page": patch
56+
"@spectrum-css/pagination": patch
57+
"@spectrum-css/picker": patch
58+
"@spectrum-css/pickerbutton": patch
59+
"@spectrum-css/popover": patch
60+
"@spectrum-css/progressbar": patch
61+
"@spectrum-css/progresscircle": patch
62+
"@spectrum-css/radio": patch
63+
"@spectrum-css/rating": patch
64+
"@spectrum-css/search": patch
65+
"@spectrum-css/sidenav": patch
66+
"@spectrum-css/slider": patch
67+
"@spectrum-css/splitview": patch
68+
"@spectrum-css/statuslight": patch
69+
"@spectrum-css/steplist": patch
70+
"@spectrum-css/stepper": patch
71+
"@spectrum-css/swatch": patch
72+
"@spectrum-css/swatchgroup": patch
73+
"@spectrum-css/switch": patch
74+
"@spectrum-css/table": patch
75+
"@spectrum-css/tabs": patch
76+
"@spectrum-css/tag": patch
77+
"@spectrum-css/taggroup": patch
78+
"@spectrum-css/textfield": patch
79+
"@spectrum-css/thumbnail": patch
80+
"@spectrum-css/toast": patch
81+
"@spectrum-css/tooltip": patch
82+
"@spectrum-css/tray": patch
83+
"@spectrum-css/treeview": patch
84+
"@spectrum-css/typography": patch
85+
"@spectrum-css/underlay": patch
86+
"@spectrum-css/well": patch
87+
"@spectrum-tools/stylelint-no-unused-custom-properties": patch
88+
"@spectrum-tools/postcss-add-theming-layer": patch
89+
"@spectrum-tools/postcss-property-rollup": patch
90+
---
91+
92+
Dependency alignment across the project.
93+
94+
Set component peerDependencies as optional to reduce console warnings on downstream projects.

.storybook/manager.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// import "@spectrum-css/bundle";
21
import { addons } from "@storybook/manager-api";
32
import { create } from "@storybook/theming";
43

.storybook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"dependencies": {
4242
"@adobe/spectrum-css-workflow-icons": "^1.5.4",
4343
"@spectrum-css/bundle": "workspace:^",
44-
"@spectrum-css/tokens": "workspace:^",
44+
"@spectrum-css/tokens": "16.0.0",
4545
"@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^15.2.0",
4646
"@spectrum-css/ui-icons": "workspace:^"
4747
},

components/accordion/package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,20 @@
2525
},
2626
"main": "dist/index.css",
2727
"peerDependencies": {
28-
"@spectrum-css/icon": ">=7",
29-
"@spectrum-css/tokens": ">=14 || >=15"
28+
"@spectrum-css/icon": ">=9.0.0 <10.0.0",
29+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0"
30+
},
31+
"peerDependenciesMeta": {
32+
"@spectrum-css/icon": {
33+
"optional": true
34+
},
35+
"@spectrum-css/tokens": {
36+
"optional": true
37+
}
3038
},
3139
"devDependencies": {
3240
"@spectrum-css/icon": "9.0.1",
33-
"@spectrum-css/tokens": "16.0.0",
34-
"eslint": "^8.57.0",
35-
"npm-run-all2": "^7.0.2",
36-
"prettier": "^3.4.2",
37-
"stylelint": "^16.9.0"
41+
"@spectrum-css/tokens": "16.0.0"
3842
},
3943
"keywords": [
4044
"design-system",

components/actionbar/package.json

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,35 @@
2525
},
2626
"main": "dist/index.css",
2727
"peerDependencies": {
28-
"@spectrum-css/actiongroup": ">=5",
29-
"@spectrum-css/closebutton": ">=5",
30-
"@spectrum-css/fieldlabel": ">=8",
31-
"@spectrum-css/popover": ">=7",
32-
"@spectrum-css/tokens": ">=14 || >=15"
28+
"@spectrum-css/actiongroup": ">=6.0.0 <7.0.0",
29+
"@spectrum-css/closebutton": ">=6.0.0 <7.0.0",
30+
"@spectrum-css/fieldlabel": ">=10.0.0 <11.0.0",
31+
"@spectrum-css/popover": ">=8.0.0 <9.0.0",
32+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0"
33+
},
34+
"peerDependenciesMeta": {
35+
"@spectrum-css/actiongroup": {
36+
"optional": true
37+
},
38+
"@spectrum-css/closebutton": {
39+
"optional": true
40+
},
41+
"@spectrum-css/fieldlabel": {
42+
"optional": true
43+
},
44+
"@spectrum-css/popover": {
45+
"optional": true
46+
},
47+
"@spectrum-css/tokens": {
48+
"optional": true
49+
}
3350
},
3451
"devDependencies": {
3552
"@spectrum-css/actiongroup": "6.0.1",
3653
"@spectrum-css/closebutton": "6.0.1",
3754
"@spectrum-css/fieldlabel": "10.0.1",
3855
"@spectrum-css/popover": "8.0.1",
39-
"@spectrum-css/tokens": "16.0.0",
40-
"eslint": "^8.57.0",
41-
"npm-run-all2": "^7.0.2",
42-
"prettier": "^3.4.2",
43-
"stylelint": "^16.9.0"
56+
"@spectrum-css/tokens": "16.0.0"
4457
},
4558
"keywords": [
4659
"design-system",

components/actionbutton/package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,21 @@
2525
},
2626
"main": "dist/index.css",
2727
"peerDependencies": {
28-
"@spectrum-css/icon": ">=7",
29-
"@spectrum-css/tokens": ">=14 || >=15"
28+
"@spectrum-css/icon": ">=9.0.0 <10.0.0",
29+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0"
3030
},
3131
"peerDependenciesMeta": {
3232
"@spectrum-css/icon": {
3333
"optional": true
34+
},
35+
"@spectrum-css/tokens": {
36+
"optional": true
3437
}
3538
},
3639
"devDependencies": {
37-
"@spectrum-css/commons": "workspace:^",
40+
"@spectrum-css/commons": "11.0.0",
3841
"@spectrum-css/icon": "9.0.1",
39-
"@spectrum-css/tokens": "16.0.0",
40-
"eslint": "^8.57.0",
41-
"npm-run-all2": "^7.0.2",
42-
"prettier": "^3.4.2",
43-
"stylelint": "^16.9.0"
42+
"@spectrum-css/tokens": "16.0.0"
4443
},
4544
"keywords": [
4645
"design-system",

components/actiongroup/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,20 @@
2525
},
2626
"main": "dist/index.css",
2727
"peerDependencies": {
28-
"@spectrum-css/actionbutton": ">=6",
29-
"@spectrum-css/tokens": ">=14 || >=15"
28+
"@spectrum-css/actionbutton": ">=7.0.0 <8.0.0",
29+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0"
3030
},
3131
"peerDependenciesMeta": {
3232
"@spectrum-css/actionbutton": {
3333
"optional": true
34+
},
35+
"@spectrum-css/tokens": {
36+
"optional": true
3437
}
3538
},
3639
"devDependencies": {
3740
"@spectrum-css/actionbutton": "7.0.1",
38-
"@spectrum-css/tokens": "16.0.0",
39-
"eslint": "^8.57.0",
40-
"npm-run-all2": "^7.0.2",
41-
"prettier": "^3.4.2",
42-
"stylelint": "^16.9.0"
41+
"@spectrum-css/tokens": "16.0.0"
4342
},
4443
"keywords": [
4544
"design-system",

components/actionmenu/package.json

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,18 @@
2525
},
2626
"main": "dist/index.css",
2727
"peerDependencies": {
28-
"@spectrum-css/actionbutton": ">=6",
29-
"@spectrum-css/icon": ">=7",
30-
"@spectrum-css/menu": ">=7",
31-
"@spectrum-css/popover": ">=7",
32-
"@spectrum-css/tokens": ">=14 || >=15"
28+
"@spectrum-css/actionbutton": ">=7.0.0 <8.0.0",
29+
"@spectrum-css/icon": ">=9.0.0 <10.0.0",
30+
"@spectrum-css/menu": ">=9.0.0 <10.0.0",
31+
"@spectrum-css/popover": ">=8.0.0 <9.0.0",
32+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0"
3333
},
3434
"devDependencies": {
3535
"@spectrum-css/actionbutton": "7.0.1",
3636
"@spectrum-css/icon": "9.0.1",
3737
"@spectrum-css/menu": "9.0.1",
3838
"@spectrum-css/popover": "8.0.1",
39-
"@spectrum-css/tokens": "16.0.0",
40-
"eslint": "^8.57.0",
41-
"npm-run-all2": "^7.0.2",
42-
"prettier": "^3.4.2",
43-
"stylelint": "^16.9.0"
39+
"@spectrum-css/tokens": "16.0.0"
4440
},
4541
"keywords": [
4642
"design-system",
@@ -58,5 +54,22 @@
5854
{
5955
"swc": "https://opensource.adobe.com/spectrum-web-components/components/action-menu/"
6056
}
61-
]
57+
],
58+
"peerDependenciesMeta": {
59+
"@spectrum-css/actionbutton": {
60+
"optional": true
61+
},
62+
"@spectrum-css/icon": {
63+
"optional": true
64+
},
65+
"@spectrum-css/menu": {
66+
"optional": true
67+
},
68+
"@spectrum-css/popover": {
69+
"optional": true
70+
},
71+
"@spectrum-css/tokens": {
72+
"optional": true
73+
}
74+
}
6275
}

components/alertbanner/package.json

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,35 @@
2525
},
2626
"main": "dist/index.css",
2727
"peerDependencies": {
28-
"@spectrum-css/button": ">=13",
29-
"@spectrum-css/closebutton": ">=5",
30-
"@spectrum-css/divider": ">=3",
31-
"@spectrum-css/icon": ">=7",
32-
"@spectrum-css/tokens": ">=14 || >=15"
28+
"@spectrum-css/button": ">=14.0.0 <15.0.0",
29+
"@spectrum-css/closebutton": ">=6.0.0 <7.0.0",
30+
"@spectrum-css/divider": ">=5.0.0 <6.0.0",
31+
"@spectrum-css/icon": ">=9.0.0 <10.0.0",
32+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0"
3333
},
3434
"peerDependenciesMeta": {
35+
"@spectrum-css/button": {
36+
"optional": true
37+
},
38+
"@spectrum-css/closebutton": {
39+
"optional": true
40+
},
41+
"@spectrum-css/divider": {
42+
"optional": true
43+
},
3544
"@spectrum-css/icon": {
3645
"optional": true
46+
},
47+
"@spectrum-css/tokens": {
48+
"optional": true
3749
}
3850
},
3951
"devDependencies": {
4052
"@spectrum-css/button": "14.0.1",
4153
"@spectrum-css/closebutton": "6.0.1",
4254
"@spectrum-css/divider": "5.0.1",
4355
"@spectrum-css/icon": "9.0.1",
44-
"@spectrum-css/tokens": "16.0.0",
45-
"eslint": "^8.57.0",
46-
"npm-run-all2": "^7.0.2",
47-
"prettier": "^3.4.2",
48-
"stylelint": "^16.9.0"
56+
"@spectrum-css/tokens": "16.0.0"
4957
},
5058
"keywords": [
5159
"design-system",

components/alertdialog/package.json

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,31 @@
2525
},
2626
"main": "dist/index.css",
2727
"peerDependencies": {
28-
"@spectrum-css/buttongroup": ">=7",
29-
"@spectrum-css/divider": ">=3",
30-
"@spectrum-css/icon": ">=7",
31-
"@spectrum-css/modal": ">=5",
32-
"@spectrum-css/tokens": ">=14 || >=15",
33-
"@spectrum-css/underlay": ">=4"
28+
"@spectrum-css/buttongroup": ">=9.0.0 <10.0.0",
29+
"@spectrum-css/divider": ">=5.0.0 <6.0.0",
30+
"@spectrum-css/icon": ">=9.0.0 <10.0.0",
31+
"@spectrum-css/modal": ">=7.0.0 <8.0.0",
32+
"@spectrum-css/tokens": ">=16.0.0 <17.0.0",
33+
"@spectrum-css/underlay": ">=6.0.0 <7.0.0"
3434
},
3535
"peerDependenciesMeta": {
3636
"@spectrum-css/buttongroup": {
3737
"optional": true
3838
},
39+
"@spectrum-css/divider": {
40+
"optional": true
41+
},
3942
"@spectrum-css/icon": {
4043
"optional": true
44+
},
45+
"@spectrum-css/modal": {
46+
"optional": true
47+
},
48+
"@spectrum-css/tokens": {
49+
"optional": true
50+
},
51+
"@spectrum-css/underlay": {
52+
"optional": true
4153
}
4254
},
4355
"devDependencies": {
@@ -46,11 +58,7 @@
4658
"@spectrum-css/icon": "9.0.1",
4759
"@spectrum-css/modal": "7.0.1",
4860
"@spectrum-css/tokens": "16.0.0",
49-
"@spectrum-css/underlay": "6.0.1",
50-
"eslint": "^8.57.0",
51-
"npm-run-all2": "^7.0.2",
52-
"prettier": "^3.4.2",
53-
"stylelint": "^16.9.0"
61+
"@spectrum-css/underlay": "6.0.1"
5462
},
5563
"keywords": [
5664
"design-system",

0 commit comments

Comments
 (0)