Skip to content

Commit

Permalink
Chore(web-react): Icon and web package are optional peer dependencies
Browse files Browse the repository at this point in the history
  * we can use web-react without web and icons package
  * the web-react package is technically unstyled, it uses class names only
  * however some kind of styling must be used, and in a same manner the icons must be used
  * icons are exported and generated from the supernova
  * web package is used as a base for styling, so install it
  • Loading branch information
literat committed Dec 16, 2024
1 parent 44eb2e1 commit 1f47a22
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions packages/web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"types": "./index.d.ts",
"dependencies": {
"@floating-ui/react": "^0.26.5",
"@react-hook/resize-observer": "^1.2.6",
"classnames": "^2.3.1",
"html-dom-parser": "5.0.10",
"html-react-parser": "5.1.18",
Expand Down Expand Up @@ -85,11 +86,18 @@
"webpack-merge": "6.0.1"
},
"peerDependencies": {
"@lmc-eu/spirit-design-tokens": "*",
"@lmc-eu/spirit-icons": "*",
"@lmc-eu/spirit-web": "*",
"react": "^17.0.2 || ^18.0.0",
"react-dom": "^17.0.2 || ^18.0.0"
"react-dom": "^17.0.2 || ^18.0.0",
"@lmc-eu/spirit-icons": "^1.1.1",
"@lmc-eu/spirit-web": "^1.10.0"
},
"peerDependenciesMeta": {
"@lmc-eu/spirit-icons": {
"optional": true
},
"@lmc-eu/spirit-web": {
"optional": true
}
},
"scripts": {
"build:prepare": "shx rm -rf dist && shx mkdir -p dist && shx cp package.json README.md dist/ ",
Expand Down

0 comments on commit 1f47a22

Please sign in to comment.