@gyramais/gyra-design 0.1.91 → 0.1.92
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.
|
@@ -17,6 +17,7 @@ type InputProps = {
|
|
|
17
17
|
key: string;
|
|
18
18
|
trigger: string | RegExp;
|
|
19
19
|
color?: string;
|
|
20
|
+
backgroundColor?: string;
|
|
20
21
|
items: {
|
|
21
22
|
value: string;
|
|
22
23
|
label: string;
|
|
@@ -40,6 +41,16 @@ type InputProps = {
|
|
|
40
41
|
float?: number;
|
|
41
42
|
};
|
|
42
43
|
}) => void;
|
|
44
|
+
onMentionEnter?: (context: {
|
|
45
|
+
value: string;
|
|
46
|
+
label: string;
|
|
47
|
+
trigger: string;
|
|
48
|
+
}) => void;
|
|
49
|
+
onMentionExit?: (context: {
|
|
50
|
+
value: string;
|
|
51
|
+
label: string;
|
|
52
|
+
trigger: string;
|
|
53
|
+
}) => void;
|
|
43
54
|
};
|
|
44
55
|
declare const masks: {
|
|
45
56
|
phoneNumber: (string | RegExp)[];
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.css";
|
|
3
|
+
type MentionContextInfo = {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
trigger: string;
|
|
7
|
+
};
|
|
8
|
+
type MentionSuggestion = {
|
|
9
|
+
key: string;
|
|
10
|
+
trigger: string | RegExp;
|
|
11
|
+
color?: string;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
items: {
|
|
14
|
+
value: string;
|
|
15
|
+
label: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
3
18
|
type MentionProps = {
|
|
4
19
|
id?: string;
|
|
5
20
|
className?: string;
|
|
@@ -27,16 +42,9 @@ type MentionProps = {
|
|
|
27
42
|
float?: number;
|
|
28
43
|
};
|
|
29
44
|
}) => void;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
color?: string;
|
|
34
|
-
backgroundColor?: string;
|
|
35
|
-
items: {
|
|
36
|
-
value: string;
|
|
37
|
-
label: string;
|
|
38
|
-
}[];
|
|
39
|
-
}[];
|
|
45
|
+
onMentionEnter?: (context: MentionContextInfo) => void;
|
|
46
|
+
onMentionExit?: (context: MentionContextInfo) => void;
|
|
47
|
+
suggestions?: MentionSuggestion[];
|
|
40
48
|
};
|
|
41
49
|
declare const Mention: React.ForwardRefExoticComponent<MentionProps & React.RefAttributes<unknown>>;
|
|
42
50
|
export { Mention };
|