diff --git a/package.json b/package.json index 2e518400..8b79f8ac 100644 --- a/package.json +++ b/package.json @@ -43,14 +43,14 @@ }, "dependencies": { "@uirouter/core": "6.0.7", - "classnames": "^2.2.5", + "classnames": "^2.3.1", "prop-types": "^15.6.1" }, "peerDependencies": { "react": "^16.8.0" }, "devDependencies": { - "@types/classnames": "^2.2.11", + "@types/classnames": "^2.3.1", "@types/enzyme": "^3.10.8", "@types/jest": "^26.0.19", "@types/lodash": "^4.14.165", diff --git a/src/components/UISref.tsx b/src/components/UISref.tsx index 9612208f..2969b506 100644 --- a/src/components/UISref.tsx +++ b/src/components/UISref.tsx @@ -1,14 +1,11 @@ import { isFunction, TransitionOptions } from '@uirouter/core'; -import * as _classNames from 'classnames'; +import classNames from 'classnames'; import * as PropTypes from 'prop-types'; import * as React from 'react'; import { cloneElement, useCallback, useMemo } from 'react'; import { useSref } from '../hooks/useSref'; -/** @hidden */ -let classNames = _classNames; - export interface UISrefProps { children?: any; to: string; diff --git a/src/components/UISrefActive.tsx b/src/components/UISrefActive.tsx index 405de7cf..be18c977 100644 --- a/src/components/UISrefActive.tsx +++ b/src/components/UISrefActive.tsx @@ -1,12 +1,9 @@ import * as React from 'react'; import { useState, useCallback, useContext, useMemo, cloneElement } from 'react'; -import * as _classNames from 'classnames'; +import classNames from 'classnames'; import { useCurrentStateAndParams, useRouter } from '../hooks'; -/** @hidden */ -let classNames = _classNames; - export interface UISrefActiveState { stateName: string; params: object; diff --git a/yarn.lock b/yarn.lock index 7b3bf0a7..68c85afe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -531,10 +531,12 @@ dependencies: "@types/node" "*" -"@types/classnames@^2.2.11": - version "2.2.11" - resolved "https://registry.yarnpkg.com/@types/classnames/-/classnames-2.2.11.tgz#2521cc86f69d15c5b90664e4829d84566052c1cf" - integrity sha512-2koNhpWm3DgWRp5tpkiJ8JGc1xTn2q0l+jUNUE7oMKXUf5NpI9AIdC4kbjGNFBdHtcxBD18LAksoudAVhFKCjw== +"@types/classnames@^2.3.1": + version "2.3.1" + resolved "https://registry.yarnpkg.com/@types/classnames/-/classnames-2.3.1.tgz#3c2467aa0f1a93f1f021e3b9bcf938bd5dfdc0dd" + integrity sha512-zeOWb0JGBoVmlQoznvqXbE0tEC/HONsnoUNH19Hc96NFsTAwTXbTqb8FMYkru1F/iqp7a18Ws3nWJvtA1sHD1A== + dependencies: + classnames "*" "@types/color-name@^1.1.1": version "1.1.1" @@ -2265,9 +2267,10 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" -classnames@^2.2.5: - version "2.2.6" - resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" +classnames@*, classnames@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.3.1.tgz#dfcfa3891e306ec1dad105d0e88f4417b8535e8e" + integrity sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA== cliui@^5.0.0: version "5.0.0"