@elliemae/ds-text-wrapper 2.3.0-alpha.8 → 2.3.0-alpha.9
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.
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
/**
|
|
4
|
+
* if we don't care about word break
|
|
5
|
+
* const regx = new RegExp(`.{1,${maxCharacters}}`, 'g')
|
|
6
|
+
* text.match(regx)
|
|
7
|
+
*
|
|
8
|
+
* @param {*} param0
|
|
9
|
+
*/
|
|
10
|
+
declare const DSTextWrapper: {
|
|
11
|
+
({ containerProps, className, style, text, maxCharacters, maxWidth, textEllipsis, textAlignment, wordBreak, }: {
|
|
12
|
+
containerProps: any;
|
|
13
|
+
className: any;
|
|
14
|
+
style: any;
|
|
15
|
+
text: any;
|
|
16
|
+
maxCharacters: any;
|
|
17
|
+
maxWidth: any;
|
|
18
|
+
textEllipsis: any;
|
|
19
|
+
textAlignment: any;
|
|
20
|
+
wordBreak: any;
|
|
21
|
+
}): JSX.Element;
|
|
22
|
+
propTypes: {
|
|
23
|
+
containerProps: {
|
|
24
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
28
|
+
};
|
|
29
|
+
className: {
|
|
30
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
34
|
+
};
|
|
35
|
+
style: {
|
|
36
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
37
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
|
+
};
|
|
39
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
40
|
+
};
|
|
41
|
+
text: import("react-desc").PropTypesDescValue;
|
|
42
|
+
maxCharacters: {
|
|
43
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
44
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
45
|
+
};
|
|
46
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
47
|
+
};
|
|
48
|
+
maxWidth: {
|
|
49
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
50
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
53
|
+
};
|
|
54
|
+
textEllipsis: {
|
|
55
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
56
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
57
|
+
};
|
|
58
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
59
|
+
};
|
|
60
|
+
textAlignment: {
|
|
61
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
65
|
+
};
|
|
66
|
+
wordBreak: {
|
|
67
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
68
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
69
|
+
};
|
|
70
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
defaultProps: {
|
|
74
|
+
containerProps: {};
|
|
75
|
+
className: string;
|
|
76
|
+
style: {};
|
|
77
|
+
text: string;
|
|
78
|
+
maxCharacters: number;
|
|
79
|
+
maxWidth: string;
|
|
80
|
+
textEllipsis: boolean;
|
|
81
|
+
textAlignment: string;
|
|
82
|
+
wordBreak: boolean;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
declare const TextWrapperWithSchema: {
|
|
86
|
+
(props?: unknown): JSX.Element;
|
|
87
|
+
propTypes: unknown;
|
|
88
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
89
|
+
};
|
|
90
|
+
export { DSTextWrapper, TextWrapperWithSchema };
|
|
91
|
+
export default DSTextWrapper;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const textProps: {
|
|
3
|
+
containerProps: {
|
|
4
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
5
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
6
|
+
};
|
|
7
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
8
|
+
};
|
|
9
|
+
className: {
|
|
10
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
11
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
12
|
+
};
|
|
13
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
14
|
+
};
|
|
15
|
+
style: {
|
|
16
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
|
+
};
|
|
21
|
+
text: import("react-desc").PropTypesDescValue;
|
|
22
|
+
maxCharacters: {
|
|
23
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
27
|
+
};
|
|
28
|
+
maxWidth: {
|
|
29
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
30
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
33
|
+
};
|
|
34
|
+
textEllipsis: {
|
|
35
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
39
|
+
};
|
|
40
|
+
textAlignment: {
|
|
41
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
42
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
45
|
+
};
|
|
46
|
+
wordBreak: {
|
|
47
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
51
|
+
};
|
|
52
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-text-wrapper",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Text Wrapper",
|
|
6
6
|
"files": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"author": "ICE MT",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@elliemae/ds-classnames": "2.3.0-alpha.
|
|
44
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.9",
|
|
45
45
|
"react-desc": "~4.1.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|