Skip to content

Commit f71d572

Browse files
authored
perf: uninstall classnames, install clsx (#139)
1 parent 48186a9 commit f71d572

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ lib
2727
es
2828
yarn.lock
2929
package-lock.json
30+
pnpm-lock.yaml
3031
coverage/
3132
.doc
3233
dist/

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@
4444
"prepare": "husky install"
4545
},
4646
"dependencies": {
47-
"classnames": "^2.2.1",
48-
"@rc-component/util": "^1.3.0"
47+
"@rc-component/util": "^1.3.0",
48+
"clsx": "^2.1.1"
4949
},
5050
"devDependencies": {
5151
"@rc-component/father-plugin": "^2.0.3",
5252
"@rc-component/np": "^1.0.3",
5353
"@testing-library/jest-dom": "^6.6.3",
5454
"@testing-library/react": "^16.0.1",
5555
"@testing-library/user-event": "^14.0.0-beta",
56-
"@types/classnames": "^2.2.9",
5756
"@types/jest": "^30.0.0",
57+
"@types/node": "^24.5.2",
5858
"@types/react": "^19.0.0",
5959
"@types/react-dom": "^19.0.1",
6060
"@umijs/fabric": "^4.0.0",

src/BaseInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import clsx from 'classnames';
1+
import { clsx } from 'clsx';
22
import type { ReactElement, ReactNode } from 'react';
33
import React, { cloneElement, useRef } from 'react';
44
import type { BaseInputProps } from './interface';

src/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import clsx from 'classnames';
1+
import { clsx } from 'clsx';
22
import useControlledState from '@rc-component/util/lib/hooks/useControlledState';
33
import omit from '@rc-component/util/lib/omit';
44
import React, {

0 commit comments

Comments
 (0)