From 450d5904a2ab9ab77796b302253ab1add5d643ef Mon Sep 17 00:00:00 2001 From: Maik Marschner Date: Sat, 3 Aug 2019 19:15:02 +0200 Subject: [PATCH] Replace classnames with clsx. Closes #283 --- package-lock.json | 6 +++--- package.json | 2 +- src/ChipInput.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 01d6fce..02b91dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4216,7 +4216,8 @@ "classnames": { "version": "2.2.6", "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz", - "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==" + "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==", + "dev": true }, "clean-css": { "version": "4.2.1", @@ -4383,8 +4384,7 @@ "clsx": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.0.4.tgz", - "integrity": "sha512-1mQ557MIZTrL/140j+JVdRM6e31/OA4vTYxXgqIIZlndyfjHpyawKZia1Im05Vp9BWmImkcNrNtFYQMyFcgJDg==", - "dev": true + "integrity": "sha512-1mQ557MIZTrL/140j+JVdRM6e31/OA4vTYxXgqIIZlndyfjHpyawKZia1Im05Vp9BWmImkcNrNtFYQMyFcgJDg==" }, "co": { "version": "4.6.0", diff --git a/package.json b/package.json index 9cf0dac..7ec555b 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "react-dom": "^16.8.6" }, "dependencies": { - "classnames": "^2.2.5", + "clsx": "^1.0.4", "prop-types": "^15.6.1" }, "jest": { diff --git a/src/ChipInput.js b/src/ChipInput.js index 0e5c799..729a310 100644 --- a/src/ChipInput.js +++ b/src/ChipInput.js @@ -14,7 +14,7 @@ import withStyles from '@material-ui/core/styles/withStyles' import blue from '@material-ui/core/colors/blue' import FormControl from '@material-ui/core/FormControl' import FormHelperText from '@material-ui/core/FormHelperText' -import cx from 'classnames' +import cx from 'clsx' const variantComponent = { standard: Input,