Skip to content

Commit 2fcb597

Browse files
authored
Merge branch 'main' into fix-add-nb-date-placeholder
2 parents 2ebe233 + f821086 commit 2fcb597

File tree

548 files changed

+10229
-5164
lines changed

Some content is hidden

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

548 files changed

+10229
-5164
lines changed

.circleci/comment.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const Octokit = require('@octokit/rest');
2-
const fs = require('fs');
32

43
const octokit = new Octokit({
54
auth: `token ${process.env.GITHUB_TOKEN}`
@@ -36,25 +35,26 @@ async function run() {
3635
repo: 'react-spectrum',
3736
pull_number
3837
});
38+
// eslint-disable-next-line max-depth
3939
if (data && data.head.repo.full_name !== 'adobe/react-spectrum' && data.head.sha === forkHeadCommit) {
4040
pr = pull_number;
4141
break;
4242
}
4343
}
4444
} else if (process.env.CIRCLE_BRANCH === 'main') {
45-
//If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
45+
// If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
4646
await octokit.repos.createCommitComment({
4747
owner: 'adobe',
4848
repo: 'react-spectrum',
4949
commit_sha: process.env.CIRCLE_SHA1,
5050
body: `Verdaccio builds:
5151
[CRA Test App](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/rsp-cra-18/index.html)
5252
[NextJS Test App](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/next/index.html)
53-
[RAC Tailwind Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/rac-tailwind/index.html)
5453
[RAC Spectrum + Tailwind Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/rac-spectrum-tailwind/index.html)
5554
[S2 Parcel Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-parcel-example/index.html)
5655
[S2 Custom Icons](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/icon-builder-fixture/index.html)
5756
[S2 Webpack Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-webpack-5-example/index.html)
57+
[S2 Next.js Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-next-macros/index.html)
5858
[CRA Test App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/build-stats.txt)
5959
[NextJS App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/next-build-stats.txt)
6060
[Publish stats](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/publish.json)
@@ -85,7 +85,7 @@ async function run() {
8585
* [View the S2 docs](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/s2-docs/index.html)`
8686
});
8787
} catch (err) {
88-
console.error(err)
88+
console.error(err);
8989
}
9090
}
9191
}

.circleci/config.yml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,15 @@ jobs:
532532
environment:
533533
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
534534

535+
- run:
536+
name: build docs off verdaccio retry
537+
command: |
538+
./scripts/verdaccio-ci.sh
539+
./scripts/verdaccio-build.sh
540+
environment:
541+
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
542+
when: on_fail
543+
535544
- persist_to_workspace:
536545
root: verdaccio_dist
537546
paths:
@@ -603,7 +612,7 @@ jobs:
603612
paths:
604613
- '*/verdaccio/next'
605614

606-
v-rac-tailwind:
615+
v-rac-rsp-tailwind:
607616
executor: rsp-xlarge
608617
steps:
609618
- restore_cache:
@@ -613,19 +622,19 @@ jobs:
613622
at: /tmp/verdaccio-workspace
614623

615624
- run:
616-
name: build rac-tailwind off verdaccio
625+
name: build rac-rsp-tailwind off verdaccio
617626
command: |
618627
./scripts/verdaccio-ci.sh
619-
./scripts/verdaccio-build-rac-tailwind.sh
628+
./scripts/verdaccio-build-rac-rsp-tailwind.sh
620629
environment:
621630
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
622631

623632
- persist_to_workspace:
624633
root: verdaccio_dist
625634
paths:
626-
- '*/verdaccio/rac-tailwind'
635+
- '*/verdaccio/rac-spectrum-tailwind'
627636

628-
v-rac-rsp-tailwind:
637+
v-s2-parcel:
629638
executor: rsp-xlarge
630639
steps:
631640
- restore_cache:
@@ -635,19 +644,19 @@ jobs:
635644
at: /tmp/verdaccio-workspace
636645

637646
- run:
638-
name: build rac-rsp-tailwind off verdaccio
647+
name: build s2-parcel off verdaccio
639648
command: |
640649
./scripts/verdaccio-ci.sh
641-
./scripts/verdaccio-build-rac-rsp-tailwind.sh
650+
./scripts/verdaccio-build-s2-parcel.sh
642651
environment:
643652
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
644653

645654
- persist_to_workspace:
646655
root: verdaccio_dist
647656
paths:
648-
- '*/verdaccio/rac-spectrum-tailwind'
657+
- '*/verdaccio/s2-parcel-example'
649658

650-
v-s2-parcel:
659+
v-s2-webpack:
651660
executor: rsp-xlarge
652661
steps:
653662
- restore_cache:
@@ -657,19 +666,19 @@ jobs:
657666
at: /tmp/verdaccio-workspace
658667

659668
- run:
660-
name: build s2-parcel off verdaccio
669+
name: build s2-webpack off verdaccio
661670
command: |
662671
./scripts/verdaccio-ci.sh
663-
./scripts/verdaccio-build-s2-parcel.sh
672+
./scripts/verdaccio-build-s2-webpack.sh
664673
environment:
665674
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
666675

667676
- persist_to_workspace:
668677
root: verdaccio_dist
669678
paths:
670-
- '*/verdaccio/s2-parcel-example'
679+
- '*/verdaccio/s2-webpack-5-example'
671680

672-
v-s2-webpack:
681+
v-s2-next:
673682
executor: rsp-xlarge
674683
steps:
675684
- restore_cache:
@@ -679,17 +688,17 @@ jobs:
679688
at: /tmp/verdaccio-workspace
680689

681690
- run:
682-
name: build s2-webpack off verdaccio
691+
name: build s2-next off verdaccio
683692
command: |
684693
./scripts/verdaccio-ci.sh
685-
./scripts/verdaccio-build-s2-webpack.sh
694+
./scripts/verdaccio-build-s2-next.sh
686695
environment:
687696
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
688697

689698
- persist_to_workspace:
690699
root: verdaccio_dist
691700
paths:
692-
- '*/verdaccio/s2-webpack-5-example'
701+
- '*/verdaccio/s2-next-macros'
693702

694703
v-icon-builder:
695704
executor: rsp-xlarge
@@ -918,9 +927,6 @@ workflows:
918927
- v-nextjs:
919928
requires:
920929
- verdaccio
921-
- v-rac-tailwind:
922-
requires:
923-
- verdaccio
924930
- v-rac-rsp-tailwind:
925931
requires:
926932
- verdaccio
@@ -930,6 +936,9 @@ workflows:
930936
- v-s2-webpack:
931937
requires:
932938
- verdaccio
939+
- v-s2-next:
940+
requires:
941+
- verdaccio
933942
- v-icon-builder:
934943
requires:
935944
- verdaccio
@@ -961,10 +970,10 @@ workflows:
961970
- v-rsp-cra-18
962971
- v-webpack-4
963972
- v-nextjs
964-
- v-rac-tailwind
965973
- v-rac-rsp-tailwind
966974
- v-s2-parcel
967975
- v-s2-webpack
976+
- v-s2-next
968977
- v-icon-builder
969978
- v-publish-stats
970979
- comment:

.github/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
needs translations:
2+
- changed-files:
3+
- any-glob-to-any-file: ['**/intl/*.json']

.github/workflows/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5
13+
with:
14+
sync-labels: true

.storybook-s2/docs/Illustrations.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function Illustrations() {
3535
size="XS"
3636
isQuiet
3737
aria-label="Copy"
38-
onPress={() => navigator.clipboard.writeText(`import ${name} from '@react-spectrum/s2/illustrations/gradient/${gradientStyle}/${icon}';`)}>
38+
onPress={() => navigator.clipboard.writeText(`import ${icon} from '@react-spectrum/s2/illustrations/gradient/${gradientStyle}/${icon}';`)}>
3939
<Paste />
4040
</ActionButton>
4141
</span>

.storybook-s2/docs/Release Notes.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ export default MDXLayout;
44

55
# Release Notes
66

7+
## v0.10.0
8+
9+
### Font update
10+
11+
This release introduces a new font for Spectrum 2: Adobe Clean Spectrum VF. This is an evolution of the previous Adobe Clean, with slightly updated metrics allowing for better vertical centering. Along with this update, the S2 Provider component now automatically handles loading the fonts needed for the user's language. The new font does not affect previous versions of React Spectrum.
12+
13+
If you previously used `page.css` without a `Provider`, you'll need to add a `Provider` around your app to load the fonts. See the [updated docs](?path=/docs/intro--docs#setting-up-your-app) for details.
14+
15+
### New Components
16+
17+
* [Calendar](?path=/docs/calendar--docs)
18+
* [RangeCalendar](?path=/docs/rangecalendar--docs)
19+
* [DateField](?path=/docs/datefield--docs)
20+
* [DatePicker](?path=/docs/datepicker--docs)
21+
* [DateRangePicker](?path=/docs/daterangepicker--docs)
22+
* [TimeField](?path=/docs/timefield--docs)
23+
24+
### Updates
25+
26+
* [CardView](?path=/docs/cardview--docs): Fix ActionBar from not scrolling
27+
* [ActionButton](?path=/docs/actionbutton--docs): Fix avatar-only ActionButtons to have square dimensions
28+
* [Tabs](?path=/docs/tabs--docs): Improve selection indicator animation, fix collasped tabs
29+
* [ProgressCircle](?path=/docs/progresscircle--docs): Add track outline in High Contrast Mode
30+
* [Switch](?path=/docs/switch--docs): Fix the toggle in RTL locales
31+
* [TreeView](?path=/docs/treeview--docs): Support async loading
32+
733
## v0.9.1
834

935
### Updates

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ build:
100100
done
101101
node scripts/buildI18n.js
102102
node scripts/generateIconDts.js
103+
node scripts/fixUseClient.js
103104

104105
website:
105106
yarn build:docs --public-url /reactspectrum/$$(git rev-parse HEAD)/docs --dist-dir dist/$$(git rev-parse HEAD)/docs

eslint.config.mjs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -445,29 +445,6 @@ export default [{
445445
"jsdoc/require-jsdoc": OFF,
446446
"jsdoc/require-description": OFF,
447447
},
448-
}, {
449-
files: [
450-
"packages/**/*.ts",
451-
"packages/**/*.tsx"
452-
],
453-
454-
rules: {
455-
"@typescript-eslint/explicit-module-boundary-types": ERROR,
456-
},
457-
}, {
458-
files: [
459-
"**/dev/**",
460-
"**/test/**",
461-
"**/stories/**",
462-
"**/docs/**",
463-
"**/chromatic/**",
464-
"**/chromatic-fc/**",
465-
"**/__tests__/**"
466-
],
467-
468-
rules: {
469-
"@typescript-eslint/explicit-module-boundary-types": OFF,
470-
},
471448
}, {
472449
files: [
473450
"packages/@react-aria/focus/src/**/*.ts",
@@ -504,4 +481,4 @@ export default [{
504481
rules: {
505482
"react/react-in-jsx-scope": OFF,
506483
},
507-
}];
484+
}];

examples/rac-tailwind/.parcelrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/rac-tailwind/.postcssrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)