Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ lib
es
yarn.lock
package-lock.json
pnpm-lock.yaml
coverage/
.doc
# umi
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@
"coverage": "rc-test --coverage"
},
"dependencies": {
"classnames": "^2.2.1",
"@rc-component/input": "~1.1.0",
"@rc-component/resize-observer": "^1.0.0",
"@rc-component/util": "^1.3.0"
"@rc-component/util": "^1.3.0",
"clsx": "^2.1.1"
},
"devDependencies": {
"@rc-component/father-plugin": "^2.0.2",
"@rc-component/np": "^1.0.3",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^15.0.0",
"@types/classnames": "^2.2.9",
"@types/node": "^24.5.2",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@umijs/fabric": "^2.0.8",
Expand Down
4 changes: 2 additions & 2 deletions src/ResizableTextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ResizeObserver from '@rc-component/resize-observer';
import useControlledState from '@rc-component/util/lib/hooks/useControlledState';
import useLayoutEffect from '@rc-component/util/lib/hooks/useLayoutEffect';
import raf from '@rc-component/util/lib/raf';
import classNames from 'classnames';
import { clsx } from 'clsx';
import * as React from 'react';
import type { TextAreaProps } from '.';
import calculateAutoSizeStyle from './calculateNodeHeight';
Expand Down Expand Up @@ -162,7 +162,7 @@ const ResizableTextArea = React.forwardRef<ResizableTextAreaRef, TextAreaProps>(
{...restProps}
ref={textareaRef}
style={mergedStyle}
className={classNames(prefixCls, className, {
className={clsx(prefixCls, className, {
[`${prefixCls}-disabled`]: disabled,
})}
disabled={disabled}
Expand Down
2 changes: 1 addition & 1 deletion src/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { type HolderRef } from '@rc-component/input/lib/BaseInput';
import useCount from '@rc-component/input/lib/hooks/useCount';
import { resolveOnChange } from '@rc-component/input/lib/utils/commonUtils';
import useControlledState from '@rc-component/util/lib/hooks/useControlledState';
import clsx from 'classnames';
import { clsx } from 'clsx';
import type { ReactNode } from 'react';
import React, { useEffect, useImperativeHandle, useRef } from 'react';
import ResizableTextArea from './ResizableTextArea';
Expand Down