@zohodesk/dot 1.3.0-temp-158 → 1.3.1
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/.cli/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +3 -1
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +16 -16
- package/coverage/coverage-summary.json +16 -16
- package/coverage/index.html +1 -1
- package/es/v1/ActionButton/ActionButton.js +2 -2
- package/es/v1/Message/Message.js +16 -42
- package/es/v1/PlusIcon/PlusIcon.js +25 -37
- package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
- package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
- package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
- package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
- package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
- package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
- package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
- package/es/v1/list/SecondaryText/AccountName.js +61 -69
- package/es/v1/list/SecondaryText/ContactName.js +66 -74
- package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
- package/es/v1/list/SecondaryText/Email.js +32 -40
- package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
- package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
- package/es/v1/list/SecondaryText/PriorityText.js +16 -28
- package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
- package/es/v1/list/SecondaryText/StatusText.js +17 -29
- package/es/v1/list/SecondaryText/TicketId.js +33 -45
- package/es/v1/list/SecondaryText/Website.js +22 -30
- package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
- package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/ActionButton/ActionButton.js +2 -2
- package/lib/v1/Message/Message.js +23 -80
- package/lib/v1/PlusIcon/PlusIcon.js +25 -71
- package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
- package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
- package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
- package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
- package/lib/v1/list/SecondaryText/AccountName.js +63 -113
- package/lib/v1/list/SecondaryText/ContactName.js +67 -117
- package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
- package/lib/v1/list/SecondaryText/Email.js +32 -82
- package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
- package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
- package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
- package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
- package/lib/v1/list/SecondaryText/StatusText.js +17 -67
- package/lib/v1/list/SecondaryText/TicketId.js +33 -83
- package/lib/v1/list/SecondaryText/Website.js +29 -72
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/package.json +2 -2
- package/result.json +1 -1
|
@@ -1,40 +1,28 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { SecondaryText_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
5
5
|
import { SecondaryText_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
6
6
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
7
|
-
export default
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"data-title": dataTitle,
|
|
27
|
-
"data-id": dataId,
|
|
28
|
-
"data-test-id": dataId,
|
|
29
|
-
onClick: onClick
|
|
30
|
-
}, SecondaryTextProps), text);
|
|
31
|
-
}
|
|
32
|
-
|
|
7
|
+
export default function SecondaryText(props) {
|
|
8
|
+
let {
|
|
9
|
+
className,
|
|
10
|
+
text,
|
|
11
|
+
dataTitle,
|
|
12
|
+
dataId,
|
|
13
|
+
onClick,
|
|
14
|
+
customProps
|
|
15
|
+
} = props;
|
|
16
|
+
let {
|
|
17
|
+
SecondaryTextProps
|
|
18
|
+
} = customProps;
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
20
|
+
className: `${style.secondaryText} ${className ? className : ''}`,
|
|
21
|
+
"data-title": dataTitle,
|
|
22
|
+
"data-id": dataId,
|
|
23
|
+
"data-test-id": dataId,
|
|
24
|
+
onClick: onClick
|
|
25
|
+
}, SecondaryTextProps), text);
|
|
33
26
|
}
|
|
34
27
|
SecondaryText.propTypes = SecondaryText_propTypes;
|
|
35
|
-
SecondaryText.defaultProps = SecondaryText_defaultProps;
|
|
36
|
-
// SecondaryText.docs = {
|
|
37
|
-
// folderName: 'List',
|
|
38
|
-
// componentGroup: 'SecondaryText'
|
|
39
|
-
// };
|
|
40
|
-
// }
|
|
28
|
+
SecondaryText.defaultProps = SecondaryText_defaultProps;
|
|
@@ -1,34 +1,22 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { StatusText_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
3
3
|
import { StatusText_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
4
4
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
className: `${style.statusText} ${style[color]} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
21
|
-
"data-title": dataTitle,
|
|
22
|
-
"data-id": dataId,
|
|
23
|
-
"data-test-id": dataId
|
|
24
|
-
}, text);
|
|
25
|
-
}
|
|
26
|
-
|
|
5
|
+
export default function StatusText(props) {
|
|
6
|
+
let {
|
|
7
|
+
className,
|
|
8
|
+
color,
|
|
9
|
+
text,
|
|
10
|
+
dataTitle,
|
|
11
|
+
fontWeight,
|
|
12
|
+
dataId
|
|
13
|
+
} = props;
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: `${style.statusText} ${style[color]} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
16
|
+
"data-title": dataTitle,
|
|
17
|
+
"data-id": dataId,
|
|
18
|
+
"data-test-id": dataId
|
|
19
|
+
}, text);
|
|
27
20
|
}
|
|
28
21
|
StatusText.propTypes = StatusText_propTypes;
|
|
29
|
-
StatusText.defaultProps = StatusText_defaultProps;
|
|
30
|
-
// StatusText.docs = {
|
|
31
|
-
// folderName: 'List',
|
|
32
|
-
// componentGroup: 'StatusText'
|
|
33
|
-
// };
|
|
34
|
-
// }
|
|
22
|
+
StatusText.defaultProps = StatusText_defaultProps;
|
|
@@ -1,53 +1,41 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { TicketId_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
5
5
|
import { TicketId_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
6
6
|
import Link from '../../Link/Link';
|
|
7
7
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
8
|
-
export default
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
urlData: urlData,
|
|
40
|
-
href: url,
|
|
41
|
-
target: target,
|
|
42
|
-
onClick: onClick
|
|
43
|
-
}, LinkProps), text) : text);
|
|
44
|
-
}
|
|
45
|
-
|
|
8
|
+
export default function TicketId(props) {
|
|
9
|
+
let {
|
|
10
|
+
text,
|
|
11
|
+
className,
|
|
12
|
+
dataId,
|
|
13
|
+
isLink,
|
|
14
|
+
dataTitle,
|
|
15
|
+
onClick,
|
|
16
|
+
url,
|
|
17
|
+
target,
|
|
18
|
+
urlName,
|
|
19
|
+
urlData,
|
|
20
|
+
customProps
|
|
21
|
+
} = props;
|
|
22
|
+
let {
|
|
23
|
+
LinkProps = {},
|
|
24
|
+
TicketIdProps = {}
|
|
25
|
+
} = customProps;
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
27
|
+
className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
|
|
28
|
+
"data-id": dataId,
|
|
29
|
+
"data-test-id": dataId,
|
|
30
|
+
"data-title": dataTitle,
|
|
31
|
+
onClick: !isLink && onClick
|
|
32
|
+
}, TicketIdProps), isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
33
|
+
urlName: urlName,
|
|
34
|
+
urlData: urlData,
|
|
35
|
+
href: url,
|
|
36
|
+
target: target,
|
|
37
|
+
onClick: onClick
|
|
38
|
+
}, LinkProps), text) : text);
|
|
46
39
|
}
|
|
47
40
|
TicketId.propTypes = TicketId_propTypes;
|
|
48
|
-
TicketId.defaultProps = TicketId_defaultProps;
|
|
49
|
-
// TicketId.docs = {
|
|
50
|
-
// folderName: 'List',
|
|
51
|
-
// componentGroup: 'TicketId'
|
|
52
|
-
// };
|
|
53
|
-
// }
|
|
41
|
+
TicketId.defaultProps = TicketId_defaultProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/forbid-component-props */
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
|
-
import React
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import { Website_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
6
6
|
import { Website_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
@@ -10,34 +10,26 @@ import ExternalLink from '../../ExternalLink/ExternalLink';
|
|
|
10
10
|
/**** CSS ****/
|
|
11
11
|
|
|
12
12
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
13
|
-
export default
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}, text));
|
|
34
|
-
}
|
|
35
|
-
|
|
13
|
+
export default function Website(props) {
|
|
14
|
+
let {
|
|
15
|
+
text,
|
|
16
|
+
className,
|
|
17
|
+
title,
|
|
18
|
+
href,
|
|
19
|
+
dataId,
|
|
20
|
+
isLink,
|
|
21
|
+
target
|
|
22
|
+
} = props;
|
|
23
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(ExternalLink, {
|
|
24
|
+
className: `${style.textStyle} ${className ? className : ''}`,
|
|
25
|
+
href: href,
|
|
26
|
+
title: title,
|
|
27
|
+
dataId: dataId,
|
|
28
|
+
target: target
|
|
29
|
+
}, text) : /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: `${style.secondaryText} ${className ? className : ''}`,
|
|
31
|
+
"data-title": text
|
|
32
|
+
}, text));
|
|
36
33
|
}
|
|
37
34
|
Website.propTypes = Website_propTypes;
|
|
38
|
-
Website.defaultProps = Website_defaultProps;
|
|
39
|
-
// Website.docs = {
|
|
40
|
-
// folderName: 'List',
|
|
41
|
-
// componentGroup: 'WebsiteText'
|
|
42
|
-
// };
|
|
43
|
-
// }
|
|
35
|
+
Website.defaultProps = Website_defaultProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**** Libraries ****/
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { SecondryPanel_defaultProps, SecondryPanelUL_defaultProps, SecondryPanelLI_defaultProps, SecondryPanelItem_defaultProps } from '../../../list/SecondryPanel/props/defaultProps';
|
|
4
4
|
import { SecondryPanel_propTypes, SecondryPanelUL_propTypes, SecondryPanelLI_propTypes, SecondryPanelItem_propTypes } from '../../../list/SecondryPanel/props/propTypes';
|
|
5
5
|
/**** Components ****/
|
|
@@ -9,96 +9,79 @@ import Dot from '../Dot/Dot';
|
|
|
9
9
|
/**** CSS ****/
|
|
10
10
|
|
|
11
11
|
import style from '../../../list/SecondryPanel/SecondryPanel.module.css';
|
|
12
|
-
export default
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, children);
|
|
21
|
-
}
|
|
22
|
-
|
|
12
|
+
export default function SecondryPanel(props) {
|
|
13
|
+
let {
|
|
14
|
+
children,
|
|
15
|
+
className
|
|
16
|
+
} = props;
|
|
17
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
className: className
|
|
19
|
+
}, children);
|
|
23
20
|
}
|
|
24
21
|
SecondryPanel.propTypes = SecondryPanel_propTypes;
|
|
25
22
|
SecondryPanel.defaultProps = SecondryPanel_defaultProps;
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, children);
|
|
42
|
-
}
|
|
43
|
-
|
|
23
|
+
export function SecondryPanelUL(props) {
|
|
24
|
+
let {
|
|
25
|
+
children,
|
|
26
|
+
className,
|
|
27
|
+
dataId,
|
|
28
|
+
align
|
|
29
|
+
} = props;
|
|
30
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
31
|
+
isInline: true,
|
|
32
|
+
isCover: false,
|
|
33
|
+
alignBox: "row",
|
|
34
|
+
align: align,
|
|
35
|
+
className: `${style.listItemContainer} ${className}`,
|
|
36
|
+
dataId: dataId
|
|
37
|
+
}, children);
|
|
44
38
|
}
|
|
45
39
|
SecondryPanelUL.propTypes = SecondryPanelUL_propTypes;
|
|
46
40
|
SecondryPanelUL.defaultProps = SecondryPanelUL_defaultProps;
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}, children);
|
|
63
|
-
}
|
|
64
|
-
|
|
41
|
+
export function SecondryPanelLI(props) {
|
|
42
|
+
let {
|
|
43
|
+
children,
|
|
44
|
+
className,
|
|
45
|
+
isShrink,
|
|
46
|
+
dataId
|
|
47
|
+
} = props;
|
|
48
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
49
|
+
flexible: true,
|
|
50
|
+
dataId: dataId // eslint-disable-next-line react/forbid-component-props
|
|
51
|
+
,
|
|
52
|
+
className: className,
|
|
53
|
+
adjust: true,
|
|
54
|
+
shrink: isShrink ? true : false
|
|
55
|
+
}, children);
|
|
65
56
|
}
|
|
66
57
|
SecondryPanelLI.propTypes = SecondryPanelLI_propTypes;
|
|
67
58
|
SecondryPanelLI.defaultProps = SecondryPanelLI_defaultProps;
|
|
68
|
-
export
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
})) : null);
|
|
95
|
-
}
|
|
96
|
-
|
|
59
|
+
export function SecondryPanelItem(props) {
|
|
60
|
+
let {
|
|
61
|
+
children,
|
|
62
|
+
className,
|
|
63
|
+
dotClass,
|
|
64
|
+
isDot,
|
|
65
|
+
flex,
|
|
66
|
+
clipped,
|
|
67
|
+
dotSpacingType,
|
|
68
|
+
title
|
|
69
|
+
} = props;
|
|
70
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
71
|
+
align: "baseline",
|
|
72
|
+
isInline: flex ? false : true,
|
|
73
|
+
className: className,
|
|
74
|
+
"data-title": title,
|
|
75
|
+
alignBox: "row"
|
|
76
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
77
|
+
flexible: true,
|
|
78
|
+
shrink: clipped,
|
|
79
|
+
className: `${clipped ? style.dottedStyle : ''}`
|
|
80
|
+
}, children), isDot ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Dot // eslint-disable-next-line react/forbid-component-props
|
|
81
|
+
, {
|
|
82
|
+
className: `${dotClass ? dotClass : ''}`,
|
|
83
|
+
spacingType: dotSpacingType
|
|
84
|
+
})) : null);
|
|
97
85
|
}
|
|
98
86
|
SecondryPanelItem.propTypes = SecondryPanelItem_propTypes;
|
|
99
|
-
SecondryPanelItem.defaultProps = SecondryPanelItem_defaultProps;
|
|
100
|
-
// SecondryPanel.docs = {
|
|
101
|
-
// folderName: 'List',
|
|
102
|
-
// componentGroup: 'SecondaryLayout'
|
|
103
|
-
// };
|
|
104
|
-
// }
|
|
87
|
+
SecondryPanelItem.defaultProps = SecondryPanelItem_defaultProps;
|
|
@@ -2,33 +2,22 @@ import React from 'react';
|
|
|
2
2
|
import { propTypes } from '../../../list/SentimentStatus/props/propTypes';
|
|
3
3
|
import style from '../../../list/SentimentStatus/SentimentStatus.module.css';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"data-title": dataTitle
|
|
23
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
24
|
-
name: icons[type],
|
|
25
|
-
iconClass: style.sentimentIcon
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
|
|
5
|
+
export default function SentimentStatus(props) {
|
|
6
|
+
let {
|
|
7
|
+
type,
|
|
8
|
+
dataTitle
|
|
9
|
+
} = props;
|
|
10
|
+
const icons = {
|
|
11
|
+
neutral: 'ZD-botNeutral',
|
|
12
|
+
negative: 'ZD-botNegative',
|
|
13
|
+
positive: 'ZD-botPositive'
|
|
14
|
+
};
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: style.container,
|
|
17
|
+
"data-title": dataTitle
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19
|
+
name: icons[type],
|
|
20
|
+
iconClass: style.sentimentIcon
|
|
21
|
+
}));
|
|
29
22
|
}
|
|
30
|
-
SentimentStatus.propTypes = propTypes;
|
|
31
|
-
// SentimentStatus.docs = {
|
|
32
|
-
// componentGroup: ''
|
|
33
|
-
// };
|
|
34
|
-
// }
|
|
23
|
+
SentimentStatus.propTypes = propTypes;
|
|
@@ -369,6 +369,6 @@ function StatusDropdown(props) {
|
|
|
369
369
|
StatusDropdown.defaultProps = defaultProps;
|
|
370
370
|
StatusDropdown.propTypes = propTypes;
|
|
371
371
|
const StatusDropdown_Component = Popup(StatusDropdown);
|
|
372
|
-
StatusDropdown_Component.defaultProps =
|
|
373
|
-
StatusDropdown_Component.propTypes =
|
|
372
|
+
StatusDropdown_Component.defaultProps = defaultProps;
|
|
373
|
+
StatusDropdown_Component.propTypes = propTypes;
|
|
374
374
|
export default StatusDropdown_Component;
|
|
@@ -149,8 +149,8 @@ function ActionButton(props) {
|
|
|
149
149
|
ActionButton.defaultProps = _defaultProps.defaultProps;
|
|
150
150
|
ActionButton.propTypes = _propTypes.propTypes;
|
|
151
151
|
var ActionButtonComponent = (0, _Popup["default"])(ActionButton);
|
|
152
|
-
ActionButtonComponent.defaultProps =
|
|
153
|
-
ActionButtonComponent.propTypes =
|
|
152
|
+
ActionButtonComponent.defaultProps = _defaultProps.defaultProps;
|
|
153
|
+
ActionButtonComponent.propTypes = _propTypes.propTypes; // ActionButton.docs = {
|
|
154
154
|
// componentGroup: 'Atom'
|
|
155
155
|
// };
|
|
156
156
|
|
|
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.MessageNew = MessageNew;
|
|
9
9
|
exports.MessageUI = MessageUI;
|
|
10
|
-
exports["default"] =
|
|
10
|
+
exports["default"] = Message;
|
|
11
11
|
|
|
12
|
-
var _react =
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
14
|
var _defaultProps = require("../../Message/props/defaultProps");
|
|
15
15
|
|
|
@@ -23,90 +23,33 @@ var _MessageModule = _interopRequireDefault(require("../../Message/Message.modul
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
-
|
|
30
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
31
|
-
|
|
32
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
|
-
|
|
34
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
|
-
|
|
36
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
-
|
|
38
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
39
|
-
|
|
40
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
41
|
-
|
|
42
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
|
-
|
|
44
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
45
27
|
|
|
46
|
-
function
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
47
29
|
|
|
48
|
-
|
|
49
|
-
_inherits(Message, _React$Component);
|
|
50
|
-
|
|
51
|
-
var _super = _createSuper(Message);
|
|
52
|
-
|
|
53
|
-
function Message(props) {
|
|
54
|
-
var _this;
|
|
55
|
-
|
|
56
|
-
_classCallCheck(this, Message);
|
|
57
|
-
|
|
58
|
-
_this = _super.call(this, props);
|
|
59
|
-
_this.state = {
|
|
60
|
-
hideMessage: false
|
|
61
|
-
};
|
|
62
|
-
return _this;
|
|
63
|
-
}
|
|
30
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
64
31
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
32
|
+
function Message(props) {
|
|
33
|
+
// constructor(props) {
|
|
34
|
+
// super(props);
|
|
35
|
+
// this.state = { hideMessage: false };
|
|
36
|
+
// }
|
|
37
|
+
// const [hideMessage,setHideMessage] = useState(false)
|
|
38
|
+
var showMessage = props.showMessage,
|
|
39
|
+
hideMessage = props.hideMessage,
|
|
40
|
+
type = props.type;
|
|
41
|
+
(0, _react.useEffect)(function () {
|
|
42
|
+
if (type != 'alert') {
|
|
43
|
+
setTimeout(function () {
|
|
44
|
+
hideMessage();
|
|
45
|
+
}, 3000);
|
|
79
46
|
}
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
var _this$props2 = this.props,
|
|
84
|
-
type = _this$props2.type,
|
|
85
|
-
hideMessage = _this$props2.hideMessage;
|
|
86
|
-
|
|
87
|
-
if (type != 'alert') {
|
|
88
|
-
setTimeout(function () {
|
|
89
|
-
hideMessage();
|
|
90
|
-
}, 3000);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}, {
|
|
94
|
-
key: "render",
|
|
95
|
-
value: function render() {
|
|
96
|
-
return /*#__PURE__*/_react["default"].createElement(MessageUI, this.props);
|
|
97
|
-
}
|
|
98
|
-
}]);
|
|
99
|
-
|
|
100
|
-
return Message;
|
|
101
|
-
}(_react["default"].Component);
|
|
47
|
+
}, [showMessage]);
|
|
48
|
+
return /*#__PURE__*/_react["default"].createElement(MessageUI, props);
|
|
49
|
+
}
|
|
102
50
|
|
|
103
|
-
exports["default"] = Message;
|
|
104
51
|
Message.propTypes = _propTypes.propTypes;
|
|
105
|
-
Message.defaultProps = _defaultProps.defaultProps;
|
|
106
|
-
// Message.docs = {
|
|
107
|
-
// componentGroup: 'Atom'
|
|
108
|
-
// };
|
|
109
|
-
// }
|
|
52
|
+
Message.defaultProps = _defaultProps.defaultProps;
|
|
110
53
|
|
|
111
54
|
function MessageUI(props) {
|
|
112
55
|
function onClose(e) {
|