Skip to content

Commit

Permalink
Merge branch 'main' into reusable-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snowystinger authored Sep 27, 2024
2 parents 05fe52b + d57bd8d commit f5b196b
Show file tree
Hide file tree
Showing 254 changed files with 9,244 additions and 478 deletions.
2 changes: 1 addition & 1 deletion .chromatic-fc/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
},
stories: [
'../packages/**/chromatic-fc/**/*.stories.{js,jsx,ts,tsx}',
'../packages/@react-spectrum/s2/stories/*.stories.@(js|jsx|mjs|ts|tsx)'
'../packages/@react-spectrum/s2/chromatic/*.stories.@(js|jsx|mjs|ts|tsx)'
],
addons: process.env.NODE_ENV === 'production' ? [] : [
'@storybook/addon-actions',
Expand Down
1 change: 0 additions & 1 deletion .chromatic/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = {
},
stories: [
'../packages/**/chromatic/**/*.stories.@(js|jsx|ts|tsx)',
'../packages/@react-spectrum/s2/stories/*.stories.@(js|jsx|mjs|ts|tsx)',
'../packages/@react-spectrum/s2/chromatic/*.stories.@(js|jsx|mjs|ts|tsx)'
],
addons: process.env.NODE_ENV === 'production' ? [] : [
Expand Down
2 changes: 2 additions & 0 deletions .circleci/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ async function run() {
[NextJS Test App](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/next/index.html)
[RAC Tailwind Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/rac-tailwind/index.html)
[RAC Spectrum + Tailwind Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/rac-spectrum-tailwind/index.html)
[S2 Parcel Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-parcel-example/index.html)
[S2 Webpack Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-webpack-5-example/index.html)
[CRA Test App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/build-stats.txt)
[NextJS App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/next-build-stats.txt)
[Publish stats](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/publish.json)
Expand Down
2 changes: 1 addition & 1 deletion .storybook-s2/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const preview = {
channel.on(DARK_MODE_EVENT_NAME, setDark);
return () => channel.removeListener(DARK_MODE_EVENT_NAME, setDark);
}, []);
return <DocsContainer {...props} theme={dark ? themes.dark : themes.light} />;
return <DocsContainer {...props} theme={{...(dark ? themes.dark : themes.light), appContentBg: 'var(--s2-container-bg)'}} />;
},
source: {
// code: null, // Will disable code button, and show "No code available"
Expand Down
1 change: 0 additions & 1 deletion examples/s2-parcel-example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
node_modules
package-lock.json
yarn.lock
894 changes: 894 additions & 0 deletions examples/s2-parcel-example/.yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions examples/s2-parcel-example/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
6 changes: 4 additions & 2 deletions examples/s2-parcel-example/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"packageManager": "[email protected]",
"devDependencies": {
"parcel": "^2.12.0",
"process": "^0.11.10"
},
"dependencies": {
"@react-spectrum/s2": "^0.0.0",
"@react-spectrum/s2": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"scripts": {
"dev": "parcel src/index.html"
"dev": "parcel src/index.html",
"build": "parcel build src/index.html"
}
}
Loading

0 comments on commit f5b196b

Please sign in to comment.