@ui5/webcomponents-react-base
Advanced tools
Comparing version 0.0.0-12e32789 to 0.0.0-185b915fe1
{ | ||
"name": "@ui5/webcomponents-react-base", | ||
"version": "0.0.0-12e32789", | ||
"version": "0.0.0-185b915fe1", | ||
"description": "Base for ui5-webcomponents-react", | ||
"main": "index.cjs.js", | ||
"module": "index.esm.js", | ||
"types": "index.d.ts", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"./package.json": "./package.json", | ||
"./dist": "./dist/index.js", | ||
"./dist/*": "./dist/*", | ||
"./dist/*.js": "./dist/*.js" | ||
}, | ||
"homepage": "https://sap.github.io/ui5-webcomponents-react", | ||
@@ -16,30 +27,15 @@ "repository": { | ||
"license": "Apache-2.0", | ||
"sideEffects": [ | ||
"**/third-party/*", | ||
"./polyfill/*", | ||
"core-js/**/*", | ||
"intersection-observer" | ||
], | ||
"sideEffects": false, | ||
"scripts": { | ||
"clean": "rimraf cjs Device hooks lib polyfill styling types utils index.esm.js index.d.ts", | ||
"build:rollup": "rollup -c rollup.config.js", | ||
"build:polyfills": "tsc ./src/polyfill/*.ts --outDir ./polyfill --skipLibCheck", | ||
"build": "npm-run-all -s build:rollup build:polyfills" | ||
"clean": "rimraf dist" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "7.10.2", | ||
"core-js": "3.6.5", | ||
"intersection-observer": "0.8.0", | ||
"resize-observer-polyfill": "1.5.1", | ||
"smoothscroll-polyfill": "0.4.4" | ||
}, | ||
"devDependencies": { | ||
"@sap-theming/theming-base-content": "11.1.18" | ||
}, | ||
"peerDependencies": { | ||
"@ui5/webcomponents-base": "0.20.0", | ||
"react": "^16.8.0", | ||
"react-jss": "^10.0.4" | ||
"@types/react": "*", | ||
"@ui5/webcomponents-base": "~1.24.0", | ||
"react": "^16.14.0 || ^17.0.0 || ^18.0.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@types/react": { | ||
"optional": true | ||
}, | ||
"@ui5/webcomponents-base": { | ||
@@ -50,5 +46,21 @@ "optional": true | ||
"publishConfig": { | ||
"access": "public" | ||
"access": "public", | ||
"tag": "V1" | ||
}, | ||
"gitHead": "12e32789cfddb40a6f56738e6d1fbe5904e7d459" | ||
"bin": { | ||
"ui5wcr-codemod": "./bin/codemod.js" | ||
}, | ||
"files": [ | ||
"bin", | ||
"codemods", | ||
"dist", | ||
"CHANGELOG.md", | ||
"LICENSE", | ||
"NOTICE.txt", | ||
"README.md" | ||
], | ||
"dependencies": { | ||
"use-sync-external-store": "1.2.2" | ||
}, | ||
"gitHead": "185b915fe193c1523fb221c4f2166ef24adb7484" | ||
} |
# @ui5/webcomponents-react-base | ||
Base Utilities for ui5-webcomponents-react | ||
## Installation | ||
``` | ||
yarn add @ui5/webcomponents-react-base | ||
OR | ||
npm install @ui5/webcomponents-react-base --save | ||
npm install @ui5/webcomponents-react-base | ||
``` | ||
## Modules | ||
## Usage | ||
### StyleClassHelper | ||
Concat multiple CSS Module into an instance of this class helper and place them into a react component.<br> | ||
Example: | ||
```javascript | ||
import { StyleClassHelper } from '@ui5/webcomponents-react-base/lib/StyleClassHelper'; | ||
import style from 'YOUR_STYLESHEET'; | ||
This package is a collection of utils for the `@ui5/webcomponents-react` project. Please only use [public utils](https://sap.github.io/ui5-webcomponents-react/?path=/docs/knowledge-base-public-utils--docs) described in our documentation, as all others are not subject to semantic versioning and can therefore change without notice. | ||
const classes = new StyleClassHelper.of(style.text); | ||
classes.put(style.anotherClass); | ||
classes.put(style.thirdClass) | ||
## Contribute | ||
const MyComponent = props => ( | ||
<div className={classes}> | ||
My Component | ||
</div> | ||
); | ||
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents-react/blob/main/CONTRIBUTING.md). | ||
export default MyComponent; | ||
## License | ||
``` | ||
Please see our [LICENSE](https://github.com/SAP/ui5-webcomponents-react/blob/main/LICENSE) for copyright and license information. | ||
Detailed information including third-party components and their licensing/copyright information is available via the [REUSE tool](https://api.reuse.software/info/github.com/SAP/ui5-webcomponents-react). | ||
## Contribute | ||
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents-react/blob/master/CONTRIBUTING.md). | ||
## License | ||
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. | ||
This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents-react/blob/master/LICENSE) file. | ||
<!-- Use the force, round 2 --> |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
4
0
0
100
3645
1
Yes
287221
51
25
2
2
+ Added@lit-labs/ssr-dom-shim@1.2.1(transitive)
+ Added@types/prop-types@15.7.13(transitive)
+ Added@types/react@18.3.12(transitive)
+ Added@types/trusted-types@2.0.7(transitive)
+ Added@ui5/webcomponents-base@1.24.13(transitive)
+ Addedlit-html@2.8.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addeduse-sync-external-store@1.2.2(transitive)
- Removed@babel/runtime@7.10.2
- Removedcore-js@3.6.5
- Removedintersection-observer@0.8.0
- Removedresize-observer-polyfill@1.5.1
- Removedsmoothscroll-polyfill@0.4.4
- Removed@babel/runtime@7.10.2(transitive)
- Removed@emotion/is-prop-valid@0.7.3(transitive)
- Removed@emotion/memoize@0.7.1(transitive)
- Removed@ui5/webcomponents-base@0.20.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedcore-js@3.6.5(transitive)
- Removedcss-jss@10.10.0(transitive)
- Removedcss-vars-ponyfill@2.4.9(transitive)
- Removedcss-vendor@2.0.8(transitive)
- Removedget-css-data@2.1.1(transitive)
- Removedhoist-non-react-statics@3.3.2(transitive)
- Removedhyphenate-style-name@1.1.0(transitive)
- Removedintersection-observer@0.8.0(transitive)
- Removedis-in-browser@1.1.3(transitive)
- Removedjss@10.10.0(transitive)
- Removedjss-plugin-camel-case@10.10.0(transitive)
- Removedjss-plugin-compose@10.10.0(transitive)
- Removedjss-plugin-default-unit@10.10.0(transitive)
- Removedjss-plugin-expand@10.10.0(transitive)
- Removedjss-plugin-extend@10.10.0(transitive)
- Removedjss-plugin-global@10.10.0(transitive)
- Removedjss-plugin-nested@10.10.0(transitive)
- Removedjss-plugin-props-sort@10.10.0(transitive)
- Removedjss-plugin-rule-value-function@10.10.0(transitive)
- Removedjss-plugin-rule-value-observable@10.10.0(transitive)
- Removedjss-plugin-template@10.10.0(transitive)
- Removedjss-plugin-vendor-prefixer@10.10.0(transitive)
- Removedjss-preset-default@10.10.0(transitive)
- Removedlit-html@1.4.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-display-name@0.2.5(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedreact-jss@10.10.0(transitive)
- Removedregenerator-runtime@0.12.10.13.11(transitive)
- Removedresize-observer-polyfill@1.5.1(transitive)
- Removedshallow-equal@1.2.1(transitive)
- Removedsmoothscroll-polyfill@0.4.4(transitive)
- Removedsymbol-observable@1.2.0(transitive)
- Removedtheming@3.3.0(transitive)
- Removedtiny-warning@1.0.3(transitive)
- Removedurl-search-params-polyfill@5.1.0(transitive)