aha-components 1.7.10 → 1.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Textarea.esm.js +1 -1
- package/dist/Textarea.esm.js.map +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/Textarea.js.map +1 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +2 -0
- package/dist/components/Textarea/Textarea.test.d.ts +1 -0
- package/dist/components/Textarea/index.d.ts +12 -0
- package/dist/design-tokens/theme.css +824 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/theme.css +824 -1
- package/package.json +1 -1
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
interface LinkifyOptions {
|
|
3
|
+
validate?: (url: string) => boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
needProtocol?: boolean;
|
|
6
|
+
needHost?: boolean;
|
|
7
|
+
allowedTlds?: string[];
|
|
8
|
+
}
|
|
2
9
|
export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
|
|
3
10
|
/** 是否禁用 */
|
|
4
11
|
disabled?: boolean;
|
|
@@ -33,6 +40,11 @@ export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTex
|
|
|
33
40
|
onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
34
41
|
/** 失焦回调 */
|
|
35
42
|
onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
43
|
+
/** 是否启用实时链接识别 */
|
|
44
|
+
linkify?: boolean;
|
|
45
|
+
/** 链接识别配置 */
|
|
46
|
+
linkifyOptions?: LinkifyOptions;
|
|
36
47
|
}
|
|
48
|
+
export declare const websiteValidator: (url: string, needProtocol?: boolean, needHost?: boolean, allowedTlds?: string[]) => boolean;
|
|
37
49
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
38
50
|
export default Textarea;
|