@elliemae/ds-comments 1.61.0 → 2.0.0-alpha.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/cjs/components/CommentCard.js +74 -76
- package/cjs/components/DSComments.js +4 -17
- package/cjs/components/blocks.js +34 -53
- package/cjs/components/helper.js +4 -5
- package/cjs/index.js +7 -18
- package/esm/components/CommentCard.js +68 -69
- package/esm/components/DSComments.js +0 -13
- package/esm/components/blocks.js +34 -53
- package/esm/components/helper.js +2 -3
- package/esm/index.js +3 -14
- package/package.json +51 -13
- package/types/components/CommentCard.d.ts +143 -0
- package/types/components/DSComments.d.ts +108 -0
- package/types/components/blocks.d.ts +18 -0
- package/types/components/helper.d.ts +3 -0
- package/types/index.d.ts +106 -0
- package/cjs/components/CommentCard.js.map +0 -1
- package/cjs/components/DSComments.js.map +0 -1
- package/cjs/components/blocks.js.map +0 -1
- package/cjs/components/helper.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/components/CommentCard/package.json +0 -10
- package/components/DSComments/package.json +0 -10
- package/components/blocks/package.json +0 -10
- package/components/helper/package.json +0 -10
- package/esm/components/CommentCard.js.map +0 -1
- package/esm/components/DSComments.js.map +0 -1
- package/esm/components/blocks.js.map +0 -1
- package/esm/components/helper.js.map +0 -1
- package/esm/index.js.map +0 -1
package/esm/components/blocks.js
CHANGED
|
@@ -1,71 +1,52 @@
|
|
|
1
1
|
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const blockName = 'comments';
|
|
4
|
+
const WrapperArea = aggregatedClasses('div')(blockName, 'area', () => ({}));
|
|
5
|
+
const WrapperComments = aggregatedClasses('div')(blockName, 'comments', _ref => {
|
|
6
|
+
let {
|
|
7
|
+
hasScroll
|
|
8
|
+
} = _ref;
|
|
9
9
|
return {
|
|
10
|
-
hasScroll
|
|
10
|
+
hasScroll,
|
|
11
11
|
'not-scroll': !hasScroll
|
|
12
12
|
};
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const WrapperCommentsScroll = aggregatedClasses('div')(blockName, 'comments-scroll', _ref2 => {
|
|
15
|
+
let {
|
|
16
|
+
hasScroll
|
|
17
|
+
} = _ref2;
|
|
16
18
|
return {
|
|
17
|
-
hasScroll
|
|
19
|
+
hasScroll,
|
|
18
20
|
'not-scroll': !hasScroll
|
|
19
21
|
};
|
|
20
22
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
var SubmitButton = aggregatedClasses('div')(blockName, 'submit-btn', function () {
|
|
31
|
-
return {};
|
|
32
|
-
});
|
|
33
|
-
var CommentCardWrapper = aggregatedClasses('div')(blockName, 'comment-card-wrapper', function (_ref3) {
|
|
34
|
-
var borderBottom = _ref3.borderBottom;
|
|
23
|
+
const Counter = aggregatedClasses('div')(blockName, 'counter', () => ({}));
|
|
24
|
+
const SubmitWrapper = aggregatedClasses('div')(blockName, 'submit-wrapper', () => ({}));
|
|
25
|
+
const SubmitExternal = aggregatedClasses('div')(blockName, 'submit-external', () => ({}));
|
|
26
|
+
const SubmitButton = aggregatedClasses('div')(blockName, 'submit-btn', () => ({}));
|
|
27
|
+
const CommentCardWrapper = aggregatedClasses('div')(blockName, 'comment-card-wrapper', _ref3 => {
|
|
28
|
+
let {
|
|
29
|
+
borderBottom
|
|
30
|
+
} = _ref3;
|
|
35
31
|
return {
|
|
36
|
-
borderBottom
|
|
32
|
+
borderBottom
|
|
37
33
|
};
|
|
38
34
|
});
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
const CommentCardHeader = aggregatedClasses('div')(blockName, 'comment-card-header', _ref4 => {
|
|
36
|
+
let {
|
|
37
|
+
borderBottom
|
|
38
|
+
} = _ref4;
|
|
41
39
|
return {
|
|
42
|
-
borderBottom
|
|
40
|
+
borderBottom
|
|
43
41
|
};
|
|
44
42
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
var CommentCardData = aggregatedClasses('div')(blockName, 'comment-card-data', function () {
|
|
55
|
-
return {};
|
|
56
|
-
});
|
|
57
|
-
var CommentCardMenu = aggregatedClasses('div')(blockName, 'comment-card-menu', function () {
|
|
58
|
-
return {};
|
|
59
|
-
});
|
|
60
|
-
var CommentEmptyWrapper = aggregatedClasses('div')(blockName, 'comment-empty', function () {
|
|
61
|
-
return {};
|
|
62
|
-
});
|
|
63
|
-
var CommentEmptyIcon = aggregatedClasses('div')(blockName, 'comment-empty-icon', function () {
|
|
64
|
-
return {};
|
|
65
|
-
});
|
|
66
|
-
var CommentEmptyLabel = aggregatedClasses('div')(blockName, 'comment-empty-label', function () {
|
|
67
|
-
return {};
|
|
68
|
-
});
|
|
43
|
+
const CommentCardContent = aggregatedClasses('div')(blockName, 'comment-card-content', () => ({}));
|
|
44
|
+
const CommentCardLeft = aggregatedClasses('div')(blockName, 'comment-card-left', () => ({}));
|
|
45
|
+
const CommentCardName = aggregatedClasses('div')(blockName, 'comment-card-name', () => ({}));
|
|
46
|
+
const CommentCardData = aggregatedClasses('div')(blockName, 'comment-card-data', () => ({}));
|
|
47
|
+
const CommentCardMenu = aggregatedClasses('div')(blockName, 'comment-card-menu', () => ({}));
|
|
48
|
+
const CommentEmptyWrapper = aggregatedClasses('div')(blockName, 'comment-empty', () => ({}));
|
|
49
|
+
const CommentEmptyIcon = aggregatedClasses('div')(blockName, 'comment-empty-icon', () => ({}));
|
|
50
|
+
const CommentEmptyLabel = aggregatedClasses('div')(blockName, 'comment-empty-label', () => ({}));
|
|
69
51
|
|
|
70
52
|
export { CommentCardContent, CommentCardData, CommentCardHeader, CommentCardLeft, CommentCardMenu, CommentCardName, CommentCardWrapper, CommentEmptyIcon, CommentEmptyLabel, CommentEmptyWrapper, Counter, SubmitButton, SubmitExternal, SubmitWrapper, WrapperArea, WrapperComments, WrapperCommentsScroll };
|
|
71
|
-
//# sourceMappingURL=blocks.js.map
|
package/esm/components/helper.js
CHANGED
|
@@ -4,13 +4,12 @@ function getMaxSize() {
|
|
|
4
4
|
return 113;
|
|
5
5
|
}
|
|
6
6
|
function getTime(date) {
|
|
7
|
-
|
|
7
|
+
let formatString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'hh:mm a';
|
|
8
8
|
return moment(date).format(formatString);
|
|
9
9
|
}
|
|
10
10
|
function getDisplayDate(date) {
|
|
11
|
-
|
|
11
|
+
let formatString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'MM/DD/YYYY';
|
|
12
12
|
return moment(date).format(formatString);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export { getDisplayDate, getMaxSize, getTime };
|
|
16
|
-
//# sourceMappingURL=helper.js.map
|
package/esm/index.js
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import DSComments from './components/DSComments.js';
|
|
2
2
|
export { DSCommentCardWithSchema } from './components/CommentCard.js';
|
|
3
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
4
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
5
|
-
import 'react';
|
|
6
|
-
import 'react-desc';
|
|
7
|
-
import '@elliemae/ds-button';
|
|
8
|
-
import '@elliemae/ds-read-more';
|
|
9
|
-
import '@elliemae/ds-dropdownmenu';
|
|
10
|
-
import '@elliemae/ds-icons';
|
|
11
|
-
import './components/blocks.js';
|
|
12
|
-
import '@elliemae/ds-classnames';
|
|
13
|
-
import './components/helper.js';
|
|
14
|
-
import 'moment';
|
|
15
3
|
|
|
16
|
-
|
|
4
|
+
const {
|
|
5
|
+
DSCommentCard
|
|
6
|
+
} = DSComments;
|
|
17
7
|
|
|
18
8
|
export { DSCommentCard, DSCommentCard as default };
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-comments",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.12",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
5
|
+
"description": "ICE MT - Dimsum - Comments",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./components/helper": {
|
|
15
|
+
"import": "./esm/components/helper.js",
|
|
16
|
+
"require": "./cjs/components/helper.js"
|
|
17
|
+
},
|
|
18
|
+
"./components/DSComments": {
|
|
19
|
+
"import": "./esm/components/DSComments.js",
|
|
20
|
+
"require": "./cjs/components/DSComments.js"
|
|
21
|
+
},
|
|
22
|
+
"./components/CommentCard": {
|
|
23
|
+
"import": "./esm/components/CommentCard.js",
|
|
24
|
+
"require": "./cjs/components/CommentCard.js"
|
|
25
|
+
},
|
|
26
|
+
"./components/blocks": {
|
|
27
|
+
"import": "./esm/components/blocks.js",
|
|
28
|
+
"require": "./cjs/components/blocks.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
8
31
|
"sideEffects": [
|
|
9
32
|
"*.css",
|
|
10
33
|
"*.scss"
|
|
11
34
|
],
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"npm": ">=7",
|
|
41
|
+
"node": ">=14"
|
|
42
|
+
},
|
|
43
|
+
"author": "ICE MT",
|
|
12
44
|
"scripts": {
|
|
13
45
|
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
14
46
|
"prebuild": "exit 0",
|
|
@@ -16,21 +48,27 @@
|
|
|
16
48
|
"build": "node ../../scripts/build/build.js"
|
|
17
49
|
},
|
|
18
50
|
"dependencies": {
|
|
19
|
-
"@elliemae/ds-
|
|
20
|
-
"@elliemae/ds-classnames": "
|
|
21
|
-
"@elliemae/ds-dropdownmenu": "
|
|
22
|
-
"@elliemae/ds-icons": "
|
|
51
|
+
"@elliemae/ds-button": "2.0.0-alpha.12",
|
|
52
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.12",
|
|
53
|
+
"@elliemae/ds-dropdownmenu": "2.0.0-alpha.12",
|
|
54
|
+
"@elliemae/ds-icons": "2.0.0-alpha.12",
|
|
55
|
+
"@elliemae/ds-read-more": "2.0.0-alpha.12",
|
|
23
56
|
"moment": "~2.29.1",
|
|
24
57
|
"prop-types": "~15.7.2",
|
|
25
|
-
"react-desc": "
|
|
58
|
+
"react-desc": "~4.1.3"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"styled-components": "~5.3.3"
|
|
26
62
|
},
|
|
27
63
|
"peerDependencies": {
|
|
28
|
-
"lodash": "^4.17.
|
|
29
|
-
"react": "~17.0.
|
|
30
|
-
"react-dom": "^17.0.
|
|
64
|
+
"lodash": "^4.17.21",
|
|
65
|
+
"react": "~17.0.2",
|
|
66
|
+
"react-dom": "^17.0.2",
|
|
67
|
+
"styled-components": "~5.3.3"
|
|
31
68
|
},
|
|
32
69
|
"publishConfig": {
|
|
33
70
|
"access": "public",
|
|
34
|
-
"directory": "dist"
|
|
71
|
+
"directory": "dist",
|
|
72
|
+
"generateSubmodules": true
|
|
35
73
|
}
|
|
36
74
|
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const CommentCard: {
|
|
4
|
+
({ containerProps, name, date, type, content, style, options, selection, customDropdownMenuProps, borderBottom, dateFormat, timeFormat, maxLines, }: {
|
|
5
|
+
containerProps?: {} | undefined;
|
|
6
|
+
name?: string | undefined;
|
|
7
|
+
date?: Date | undefined;
|
|
8
|
+
type?: string | undefined;
|
|
9
|
+
content?: string | undefined;
|
|
10
|
+
style?: {} | undefined;
|
|
11
|
+
options?: never[] | undefined;
|
|
12
|
+
selection?: {
|
|
13
|
+
'single-selection-internal-external': string[];
|
|
14
|
+
} | undefined;
|
|
15
|
+
customDropdownMenuProps?: {
|
|
16
|
+
focusOnOpen: boolean;
|
|
17
|
+
} | undefined;
|
|
18
|
+
borderBottom: any;
|
|
19
|
+
dateFormat?: string | undefined;
|
|
20
|
+
timeFormat?: string | undefined;
|
|
21
|
+
maxLines?: number | undefined;
|
|
22
|
+
}): JSX.Element;
|
|
23
|
+
propTypes: {
|
|
24
|
+
/** props to inject to comment card wrapper */
|
|
25
|
+
containerProps: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
31
|
+
/** form name */
|
|
32
|
+
name: {
|
|
33
|
+
defaultValue<T = unknown>(arg: T): {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
/** style object */
|
|
39
|
+
style: {
|
|
40
|
+
defaultValue<T = unknown>(arg: T): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
/** date object */
|
|
46
|
+
date: {
|
|
47
|
+
defaultValue<T = unknown>(arg: T): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
/** comment type string */
|
|
53
|
+
type: {
|
|
54
|
+
defaultValue<T = unknown>(arg: T): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
59
|
+
/** comment content */
|
|
60
|
+
content: {
|
|
61
|
+
defaultValue<T = unknown>(arg: T): {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
66
|
+
/** dropdown menu options */
|
|
67
|
+
options: {
|
|
68
|
+
defaultValue<T = unknown>(arg: T): {
|
|
69
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
71
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
73
|
+
/** dropdown selection */
|
|
74
|
+
selection: {
|
|
75
|
+
defaultValue<T = unknown>(arg: T): {
|
|
76
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
|
+
};
|
|
78
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
79
|
+
};
|
|
80
|
+
/** pass down props to dropdown */
|
|
81
|
+
customDropdownMenuProps: {
|
|
82
|
+
defaultValue<T = unknown>(arg: T): {
|
|
83
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
84
|
+
};
|
|
85
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
86
|
+
};
|
|
87
|
+
/** toggle border bottom for card */
|
|
88
|
+
borderBottom: {
|
|
89
|
+
defaultValue<T = unknown>(arg: T): {
|
|
90
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
91
|
+
};
|
|
92
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
93
|
+
};
|
|
94
|
+
/** moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/ */
|
|
95
|
+
dateFormat: {
|
|
96
|
+
defaultValue<T = unknown>(arg: T): {
|
|
97
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
98
|
+
};
|
|
99
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
100
|
+
};
|
|
101
|
+
/** moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/ */
|
|
102
|
+
timeFormat: {
|
|
103
|
+
defaultValue<T = unknown>(arg: T): {
|
|
104
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
105
|
+
};
|
|
106
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Max lines
|
|
110
|
+
*/
|
|
111
|
+
maxLines: {
|
|
112
|
+
defaultValue<T = unknown>(arg: T): {
|
|
113
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
114
|
+
};
|
|
115
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
declare const DSCommentCardWithSchema: {
|
|
120
|
+
(props?: {
|
|
121
|
+
containerProps?: {} | undefined;
|
|
122
|
+
name?: string | undefined;
|
|
123
|
+
date?: Date | undefined;
|
|
124
|
+
type?: string | undefined;
|
|
125
|
+
content?: string | undefined;
|
|
126
|
+
style?: {} | undefined;
|
|
127
|
+
options?: never[] | undefined;
|
|
128
|
+
selection?: {
|
|
129
|
+
'single-selection-internal-external': string[];
|
|
130
|
+
} | undefined;
|
|
131
|
+
customDropdownMenuProps?: {
|
|
132
|
+
focusOnOpen: boolean;
|
|
133
|
+
} | undefined;
|
|
134
|
+
borderBottom: any;
|
|
135
|
+
dateFormat?: string | undefined;
|
|
136
|
+
timeFormat?: string | undefined;
|
|
137
|
+
maxLines?: number | undefined;
|
|
138
|
+
} | undefined): JSX.Element;
|
|
139
|
+
propTypes: unknown;
|
|
140
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
141
|
+
};
|
|
142
|
+
export default CommentCard;
|
|
143
|
+
export { DSCommentCardWithSchema };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { DSCommentCardWithSchema } from './CommentCard';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
DSCommentCard: {
|
|
6
|
+
({ containerProps, name, date, type, content, style, options, selection, customDropdownMenuProps, borderBottom, dateFormat, timeFormat, maxLines, }: {
|
|
7
|
+
containerProps?: {} | undefined;
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
date?: Date | undefined;
|
|
10
|
+
type?: string | undefined;
|
|
11
|
+
content?: string | undefined;
|
|
12
|
+
style?: {} | undefined;
|
|
13
|
+
options?: never[] | undefined;
|
|
14
|
+
selection?: {
|
|
15
|
+
'single-selection-internal-external': string[];
|
|
16
|
+
} | undefined;
|
|
17
|
+
customDropdownMenuProps?: {
|
|
18
|
+
focusOnOpen: boolean;
|
|
19
|
+
} | undefined;
|
|
20
|
+
borderBottom: any;
|
|
21
|
+
dateFormat?: string | undefined;
|
|
22
|
+
timeFormat?: string | undefined;
|
|
23
|
+
maxLines?: number | undefined;
|
|
24
|
+
}): JSX.Element;
|
|
25
|
+
propTypes: {
|
|
26
|
+
containerProps: {
|
|
27
|
+
defaultValue<T = unknown>(arg: T): {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
name: {
|
|
33
|
+
defaultValue<T = unknown>(arg: T): {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
style: {
|
|
39
|
+
defaultValue<T = unknown>(arg: T): {
|
|
40
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
+
};
|
|
42
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
date: {
|
|
45
|
+
defaultValue<T = unknown>(arg: T): {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
type: {
|
|
51
|
+
defaultValue<T = unknown>(arg: T): {
|
|
52
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
53
|
+
};
|
|
54
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
55
|
+
};
|
|
56
|
+
content: {
|
|
57
|
+
defaultValue<T = unknown>(arg: T): {
|
|
58
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
59
|
+
};
|
|
60
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
61
|
+
};
|
|
62
|
+
options: {
|
|
63
|
+
defaultValue<T = unknown>(arg: T): {
|
|
64
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
66
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
68
|
+
selection: {
|
|
69
|
+
defaultValue<T = unknown>(arg: T): {
|
|
70
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
71
|
+
};
|
|
72
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
73
|
+
};
|
|
74
|
+
customDropdownMenuProps: {
|
|
75
|
+
defaultValue<T = unknown>(arg: T): {
|
|
76
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
|
+
};
|
|
78
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
79
|
+
};
|
|
80
|
+
borderBottom: {
|
|
81
|
+
defaultValue<T = unknown>(arg: T): {
|
|
82
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
83
|
+
};
|
|
84
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
86
|
+
dateFormat: {
|
|
87
|
+
defaultValue<T = unknown>(arg: T): {
|
|
88
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
89
|
+
};
|
|
90
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
91
|
+
};
|
|
92
|
+
timeFormat: {
|
|
93
|
+
defaultValue<T = unknown>(arg: T): {
|
|
94
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
95
|
+
};
|
|
96
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
97
|
+
};
|
|
98
|
+
maxLines: {
|
|
99
|
+
defaultValue<T = unknown>(arg: T): {
|
|
100
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
101
|
+
};
|
|
102
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export default _default;
|
|
108
|
+
export { DSCommentCardWithSchema };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WrapperArea: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
3
|
+
export declare const WrapperComments: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
4
|
+
export declare const WrapperCommentsScroll: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
5
|
+
export declare const Counter: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
6
|
+
export declare const SubmitWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
7
|
+
export declare const SubmitExternal: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
8
|
+
export declare const SubmitButton: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
9
|
+
export declare const CommentCardWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
10
|
+
export declare const CommentCardHeader: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
11
|
+
export declare const CommentCardContent: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
12
|
+
export declare const CommentCardLeft: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
13
|
+
export declare const CommentCardName: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
14
|
+
export declare const CommentCardData: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
15
|
+
export declare const CommentCardMenu: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
16
|
+
export declare const CommentEmptyWrapper: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
17
|
+
export declare const CommentEmptyIcon: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
18
|
+
export declare const CommentEmptyLabel: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { DSCommentCardWithSchema } from './components/DSComments';
|
|
4
|
+
export declare const DSCommentCard: {
|
|
5
|
+
({ containerProps, name, date, type, content, style, options, selection, customDropdownMenuProps, borderBottom, dateFormat, timeFormat, maxLines, }: {
|
|
6
|
+
containerProps?: {} | undefined;
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
date?: Date | undefined;
|
|
9
|
+
type?: string | undefined;
|
|
10
|
+
content?: string | undefined;
|
|
11
|
+
style?: {} | undefined;
|
|
12
|
+
options?: never[] | undefined;
|
|
13
|
+
selection?: {
|
|
14
|
+
'single-selection-internal-external': string[];
|
|
15
|
+
} | undefined;
|
|
16
|
+
customDropdownMenuProps?: {
|
|
17
|
+
focusOnOpen: boolean;
|
|
18
|
+
} | undefined;
|
|
19
|
+
borderBottom: any;
|
|
20
|
+
dateFormat?: string | undefined;
|
|
21
|
+
timeFormat?: string | undefined;
|
|
22
|
+
maxLines?: number | undefined;
|
|
23
|
+
}): JSX.Element;
|
|
24
|
+
propTypes: {
|
|
25
|
+
containerProps: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
31
|
+
name: {
|
|
32
|
+
defaultValue<T = unknown>(arg: T): {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
37
|
+
style: {
|
|
38
|
+
defaultValue<T = unknown>(arg: T): {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
date: {
|
|
44
|
+
defaultValue<T = unknown>(arg: T): {
|
|
45
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
47
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
48
|
+
};
|
|
49
|
+
type: {
|
|
50
|
+
defaultValue<T = unknown>(arg: T): {
|
|
51
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
52
|
+
};
|
|
53
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
54
|
+
};
|
|
55
|
+
content: {
|
|
56
|
+
defaultValue<T = unknown>(arg: T): {
|
|
57
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
59
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
options: {
|
|
62
|
+
defaultValue<T = unknown>(arg: T): {
|
|
63
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
64
|
+
};
|
|
65
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
66
|
+
};
|
|
67
|
+
selection: {
|
|
68
|
+
defaultValue<T = unknown>(arg: T): {
|
|
69
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
71
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
73
|
+
customDropdownMenuProps: {
|
|
74
|
+
defaultValue<T = unknown>(arg: T): {
|
|
75
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
76
|
+
};
|
|
77
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
78
|
+
};
|
|
79
|
+
borderBottom: {
|
|
80
|
+
defaultValue<T = unknown>(arg: T): {
|
|
81
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
82
|
+
};
|
|
83
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
84
|
+
};
|
|
85
|
+
dateFormat: {
|
|
86
|
+
defaultValue<T = unknown>(arg: T): {
|
|
87
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
88
|
+
};
|
|
89
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
90
|
+
};
|
|
91
|
+
timeFormat: {
|
|
92
|
+
defaultValue<T = unknown>(arg: T): {
|
|
93
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
94
|
+
};
|
|
95
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
96
|
+
};
|
|
97
|
+
maxLines: {
|
|
98
|
+
defaultValue<T = unknown>(arg: T): {
|
|
99
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
100
|
+
};
|
|
101
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default DSCommentCard;
|
|
106
|
+
export { DSCommentCardWithSchema };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommentCard.js","sources":["../../../src/components/CommentCard.tsx"],"sourcesContent":["/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React, { useCallback, useRef } from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport DSButton from '@elliemae/ds-button';\nimport { DSReadMore } from '@elliemae/ds-read-more';\nimport DSDropdownMenu from '@elliemae/ds-dropdownmenu';\nimport { MoreOptionsVert } from '@elliemae/ds-icons';\nimport {\n CommentCardWrapper,\n CommentCardHeader,\n CommentCardContent,\n CommentCardName,\n CommentCardData,\n CommentCardMenu,\n CommentCardLeft,\n} from './blocks';\nimport { getTime, getDisplayDate } from './helper';\n\nconst CommentCard = ({\n containerProps = {},\n name = '',\n date = new Date(),\n type = '',\n content = '',\n style = {},\n options = [],\n selection = { 'single-selection-internal-external': ['set-as-internal'] },\n customDropdownMenuProps = {\n focusOnOpen: true,\n },\n borderBottom,\n dateFormat = 'MM/DD/YYYY',\n timeFormat = 'hh:mm a',\n maxLines = 2,\n}) => {\n const ref = useRef();\n const displayDate = date ? getDisplayDate(date, dateFormat) : null;\n const displayTime = date ? getTime(date, timeFormat) : null;\n\n const handleCloseMenu = useCallback(() => {\n ref.current.focus();\n }, []);\n\n return (\n <CommentCardWrapper\n classProps={{ borderBottom }}\n tabIndex={0}\n {...containerProps}\n style={{ ...style, ...(containerProps.style || {}) }}\n >\n <CommentCardHeader classProps={{ borderBottom }}>\n <CommentCardLeft>\n <CommentCardName>{name}</CommentCardName>\n <CommentCardData>\n {displayDate}\n {displayTime && (\n <>\n <span>•</span>\n {displayTime}\n </>\n )}\n {type && (\n <>\n <span>•</span>\n {type}\n </>\n )}\n </CommentCardData>\n </CommentCardLeft>\n {options && options.length > 0 && (\n <CommentCardMenu>\n <DSDropdownMenu\n {...customDropdownMenuProps}\n onClose={handleCloseMenu}\n options={options}\n selection={selection}\n triggerComponent={<DSButton buttonType=\"text\" icon={<MoreOptionsVert />} innerRef={ref} />}\n zIndex=\"11\" // https://jira.elliemae.io/browse/PUI-1664\n />\n </CommentCardMenu>\n )}\n </CommentCardHeader>\n <CommentCardContent>\n <div>\n <DSReadMore\n lines={maxLines}\n content={`${content} `}\n more=\"MORE\"\n less=\"LESS\"\n buttonType=\"text\"\n size=\"m\"\n ellipsis=\"... \"\n />\n </div>\n </CommentCardContent>\n </CommentCardWrapper>\n );\n};\n\nconst props = {\n /** props to inject to comment card wrapper */\n containerProps: PropTypes.shape({\n id: PropTypes.string,\n 'data-testid': PropTypes.string,\n }).description('props to inject to comment card wrapper'),\n /** form name */\n name: PropTypes.string.description('form name'),\n /** style object */\n style: PropTypes.object.description(' style object '),\n /** date object */\n date: PropTypes.instanceOf(Date).description('date object'),\n /** comment type string */\n type: PropTypes.string.description('comment type string'),\n /** comment content */\n content: PropTypes.string.description('comment content'),\n /** dropdown menu options */\n options: PropTypes.arrayOf(PropTypes.object).description('dropdown menu options'),\n /** dropdown selection */\n selection: PropTypes.object.description('dropdown selection'),\n /** pass down props to dropdown */\n customDropdownMenuProps: PropTypes.shape({\n focusOnOpen: PropTypes.bool,\n }).description('pass down props to dropdown'),\n /** toggle border bottom for card */\n borderBottom: PropTypes.bool.description('toggle border bottom for card'),\n /** moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/ */\n dateFormat: PropTypes.oneOf(['MM/DD/YYYY', 'MM DD YYYY']).description(\n 'moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/',\n ),\n /** moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/ */\n timeFormat: PropTypes.oneOf(['hh:mm a', 'HH:mm']).description(\n 'moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/',\n ),\n /**\n * Max lines\n */\n maxLines: PropTypes.number.description('Max lines'),\n};\n\nCommentCard.propTypes = props;\n\nconst DSCommentCardWithSchema = describe(CommentCard);\nDSCommentCardWithSchema.propTypes = props;\n\nexport default CommentCard;\nexport { DSCommentCardWithSchema };\n"],"names":["CommentCard","containerProps","name","date","Date","type","content","style","options","selection","customDropdownMenuProps","focusOnOpen","borderBottom","dateFormat","timeFormat","maxLines","ref","useRef","displayDate","getDisplayDate","displayTime","getTime","handleCloseMenu","useCallback","current","focus","React","CommentCardWrapper","CommentCardHeader","CommentCardLeft","CommentCardName","CommentCardData","length","CommentCardMenu","DSDropdownMenu","DSButton","MoreOptionsVert","CommentCardContent","DSReadMore","props","PropTypes","shape","id","string","description","object","instanceOf","arrayOf","bool","oneOf","number","propTypes","DSCommentCardWithSchema","describe"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DSComments.js","sources":["../../../src/components/DSComments.tsx"],"sourcesContent":["import DSCommentCard, { DSCommentCardWithSchema } from './CommentCard';\n\nexport default {\n DSCommentCard,\n};\nexport { DSCommentCardWithSchema };\n"],"names":["DSCommentCard"],"mappings":";;;;;;;;;;;;;;;;;;AAEA,iBAAe;AACbA,EAAAA,aAAa,EAAbA;AADa,CAAf;;;;;"}
|