Skip to content

Commit

Permalink
Add S2 Illustrations (adobe#6851)
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett authored Aug 13, 2024
1 parent 6bbb8c1 commit 6943a6b
Show file tree
Hide file tree
Showing 529 changed files with 10,346 additions and 199 deletions.
2 changes: 1 addition & 1 deletion .parcelrc-build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"style-types:*.ts": ["@parcel/transformer-typescript-types"],
"packages/**/intl/*.json": ["parcel-transformer-intl"],
"bundle-text:*.svg": ["@parcel/transformer-svg", "@parcel/transformer-inline-string"],
"packages/@react-spectrum/s2/s2wf-icons/*.svg": ["parcel-transformer-icon"],
"packages/@react-spectrum/s2/{s2wf-icons,spectrum-illustrations}/**/*.svg": ["parcel-transformer-icon"],
// Disable PostCSS from running over style macro output
"packages/@react-spectrum/s2/**/*.css": ["@parcel/transformer-css"],
"*.svg": ["@parcel/transformer-svg-react"],
Expand Down
2 changes: 1 addition & 1 deletion .storybook-s2/.parcelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"resolvers": ["@parcel/resolver-glob", "parcel-resolver-storybook", "..."],
"transformers": {
"packages/@react-spectrum/s2/{src,stories}/*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": ["parcel-transformer-react-docgen-typescript", "..."],
"packages/@react-spectrum/s2/s2wf-icons/*.svg": ["parcel-transformer-icon"],
"packages/@react-spectrum/s2/{s2wf-icons,spectrum-illustrations}/**/*.svg": ["parcel-transformer-icon"],
"packages/*/*/intl/*.json": ["parcel-transformer-intl"],
// Disable PostCSS from running over style macro output
"*.css": ["@parcel/transformer-css"],
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ clean_dist:
rm -rf packages/{react-aria,react-aria-components,react-stately}/i18n
rm -rf packages/@adobe/react-spectrum/i18n
rm -rf packages/@react-aria/i18n/server
rm -rf packages/@react-spectrum/s2/style/dist packages/@react-spectrum/s2/page.css packages/@react-spectrum/s2/icons
rm -rf packages/@react-spectrum/s2/style/dist packages/@react-spectrum/s2/page.css packages/@react-spectrum/s2/icons packages/@react-spectrum/s2/illustrations

clean_parcel:
rm -rf .parcel-cache
Expand Down Expand Up @@ -107,6 +107,7 @@ build:
do node scripts/buildEsm.js $$pkg; \
done
node scripts/buildI18n.js
node scripts/copyIconDts.js

website:
yarn build:docs --public-url /reactspectrum/$$(git rev-parse HEAD)/docs --dist-dir dist/$$(git rev-parse HEAD)/docs
Expand Down
1 change: 1 addition & 0 deletions packages/@react-spectrum/s2/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
icons
illustrations
page.css
27 changes: 24 additions & 3 deletions packages/@react-spectrum/s2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@
"require": "./style/dist/main.cjs"
},
"./icons/*": {
"types": "./icon.d.ts",
"types": "./icons/*.d.ts",
"module": "./icons/*.mjs",
"import": "./icons/*.mjs",
"require": "./icons/*.cjs"
}
},
"./illustrations/*": {
"types": "./illustrations/*.d.ts",
"module": "./illustrations/*.mjs",
"import": "./illustrations/*.mjs",
"require": "./illustrations/*.cjs"
},
"./illustrations/linear/internal/*": null
},
"targets": {
"module": {},
Expand Down Expand Up @@ -72,6 +79,20 @@
"isLibrary": true,
"outputFormat": "commonjs",
"includeNodeModules": false
},
"illustrations-module": {
"source": ["spectrum-illustrations/gradient/*.svg", "spectrum-illustrations/linear/*.tsx"],
"distDir": "illustrations",
"isLibrary": true,
"outputFormat": "esmodule",
"includeNodeModules": false
},
"illustrations-main": {
"source": ["spectrum-illustrations/gradient/*.svg", "spectrum-illustrations/linear/*.tsx"],
"distDir": "illustrations",
"isLibrary": true,
"outputFormat": "commonjs",
"includeNodeModules": false
}
},
"browserslist": "last 2 Chrome versions, last 2 Safari versions, last 2 Firefox versions, last 2 Edge versions",
Expand All @@ -84,7 +105,7 @@
"style/package.json",
"page.css",
"icons",
"icon.d.ts",
"illustrations",
"src"
],
"scripts": {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6943a6b

Please sign in to comment.