@zohodesk/dot 1.3.3 → 1.4.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/AppearanceThemeValidationExcludeFiles.js +1 -0
- package/.cli/propValidation_report.html +1 -1
- package/README.md +14 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +3 -7
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +3 -7
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +3 -7
- 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 +5 -2
- 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/index.html +1 -1
- package/es/ActionButton/ActionButton.module.css +7 -0
- package/es/AlphabeticList/AlphabeticList.module.css +2 -0
- package/es/AttachmentViewer/AttachmentViewer.module.css +2 -0
- package/es/ChannelIcon/ChannelIcon.module.css +4 -0
- package/es/FormAction/FormAction.module.css +2 -0
- package/es/IconButton/IconButton.module.css +1 -0
- package/es/Provider/Config.js +2 -1
- package/es/TagWithIcon/TagWithIcon.module.css +19 -5
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
- package/es/layout/SubtabLayout/SubtabLayout.module.css +2 -0
- package/es/list/Comment/Comment.js +4 -7
- package/es/list/Comment/Comment.module.css +1 -0
- package/es/list/Comment/props/defaultProps.js +2 -1
- package/es/list/Comment/props/propTypes.js +1 -0
- package/es/list/Dot/Dot.module.css +1 -0
- package/es/list/ListLayout/ListLayout.module.css +12 -0
- package/es/list/Subject/Subject.module.css +1 -0
- package/es/list/Thread/Thread.module.css +1 -0
- package/es/list/index.js +1 -2
- package/es/setup/header/Search/Search.module.css +1 -0
- package/es/setup/table/TableRow/SetupTableRow.module.css +3 -2
- package/es/v1/alert/AlertHeader/AlertHeader.js +2 -1
- package/es/v1/list/Comment/Comment.js +4 -7
- package/es/v1/list/index.js +1 -2
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +84 -57
- package/es/v1/notification/DesktopNotification/props/defaultProps.js +17 -0
- package/es/v1/notification/DesktopNotification/props/propTypes.js +43 -0
- package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +63 -26
- package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +7 -0
- package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +13 -0
- package/es/v1/setup/header/Button/Button.js +17 -29
- package/es/v1/setup/header/Link/Link.js +23 -35
- package/es/v1/setup/header/Search/Search.js +43 -69
- package/es/v1/setup/header/Views/Views.js +27 -39
- package/es/v1/setup/helptips/Description/Description.js +8 -20
- package/es/v1/setup/helptips/Link/Link.js +20 -32
- package/es/v1/setup/helptips/ListGroup/ListGroup.js +18 -30
- package/es/v1/setup/helptips/Title/Title.js +8 -20
- package/es/version2/GlobalNotification/GlobalNotification.module.css +3 -0
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -0
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +78 -55
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -4
- package/es/version2/notification/DesktopNotification/props/defaultProps.js +3 -1
- package/es/version2/notification/DesktopNotification/props/propTypes.js +2 -1
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +59 -23
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +14 -17
- package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +3 -1
- package/es/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
- package/lib/ActionButton/ActionButton.module.css +7 -0
- package/lib/AlphabeticList/AlphabeticList.module.css +2 -0
- package/lib/AttachmentViewer/AttachmentViewer.module.css +2 -0
- package/lib/ChannelIcon/ChannelIcon.module.css +4 -0
- package/lib/FormAction/FormAction.module.css +2 -0
- package/lib/IconButton/IconButton.module.css +1 -0
- package/lib/Provider/Config.js +2 -1
- package/lib/TagWithIcon/TagWithIcon.module.css +19 -5
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +2 -0
- package/lib/list/Comment/Comment.js +4 -8
- package/lib/list/Comment/Comment.module.css +1 -0
- package/lib/list/Comment/props/defaultProps.js +2 -1
- package/lib/list/Comment/props/propTypes.js +1 -0
- package/lib/list/Dot/Dot.module.css +1 -0
- package/lib/list/ListLayout/ListLayout.module.css +12 -0
- package/lib/list/Subject/Subject.module.css +1 -0
- package/lib/list/Thread/Thread.module.css +1 -0
- package/lib/list/index.js +0 -8
- package/lib/setup/header/Search/Search.module.css +1 -0
- package/lib/setup/table/TableRow/SetupTableRow.module.css +3 -2
- package/lib/v1/alert/AlertHeader/AlertHeader.js +2 -1
- package/lib/v1/list/Comment/Comment.js +4 -8
- package/lib/v1/list/index.js +0 -8
- package/lib/v1/notification/DesktopNotification/DesktopNotification.js +80 -64
- package/lib/v1/notification/DesktopNotification/props/defaultProps.js +26 -0
- package/lib/v1/notification/DesktopNotification/props/propTypes.js +55 -0
- package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +63 -34
- package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +16 -0
- package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +24 -0
- package/lib/v1/setup/header/Button/Button.js +17 -63
- package/lib/v1/setup/header/Link/Link.js +23 -69
- package/lib/v1/setup/header/Search/Search.js +57 -89
- package/lib/v1/setup/header/Views/Views.js +27 -73
- package/lib/v1/setup/helptips/Description/Description.js +8 -53
- package/lib/v1/setup/helptips/Link/Link.js +23 -69
- package/lib/v1/setup/helptips/ListGroup/ListGroup.js +26 -72
- package/lib/v1/setup/helptips/Title/Title.js +8 -53
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +3 -0
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -0
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +74 -55
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -4
- package/lib/version2/notification/DesktopNotification/props/defaultProps.js +5 -1
- package/lib/version2/notification/DesktopNotification/props/propTypes.js +2 -1
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +57 -23
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +14 -17
- package/lib/version2/notification/DesktopNotificationHeader/props/defaultProps.js +5 -1
- package/lib/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
- package/package.json +11 -11
- package/result.json +1 -1
- package/es/list/UserTime/UserTime.js +0 -83
- package/es/list/UserTime/UserTime.module.css +0 -58
- package/es/list/UserTime/props/defaultProps.js +0 -3
- package/es/list/UserTime/props/propTypes.js +0 -18
- package/es/v1/list/UserTime/UserTime.js +0 -83
- package/lib/list/UserTime/UserTime.js +0 -136
- package/lib/list/UserTime/UserTime.module.css +0 -58
- package/lib/list/UserTime/props/defaultProps.js +0 -10
- package/lib/list/UserTime/props/propTypes.js +0 -29
- package/lib/v1/list/UserTime/UserTime.js +0 -136
|
@@ -5,40 +5,28 @@ import { Icon } from '@zohodesk/icons';
|
|
|
5
5
|
import { Box } from '@zohodesk/components/es/v1/Layout';
|
|
6
6
|
import ExternalLink from '../../../ExternalLink/ExternalLink';
|
|
7
7
|
import style from '../../../../setup/header/Link/HeaderLink.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
|
-
iconClass: iconClass ? iconClass : ''
|
|
31
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
32
|
-
className: style.text,
|
|
33
|
-
flexible: true
|
|
34
|
-
}, text));
|
|
35
|
-
}
|
|
36
|
-
|
|
8
|
+
export default function Link(props) {
|
|
9
|
+
let {
|
|
10
|
+
url,
|
|
11
|
+
text,
|
|
12
|
+
iconName,
|
|
13
|
+
iconClass,
|
|
14
|
+
iconSize
|
|
15
|
+
} = props;
|
|
16
|
+
return /*#__PURE__*/React.createElement(ExternalLink, {
|
|
17
|
+
className: style.container,
|
|
18
|
+
href: url
|
|
19
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
20
|
+
className: style.icon
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
22
|
+
isBold: true,
|
|
23
|
+
name: iconName,
|
|
24
|
+
size: iconSize,
|
|
25
|
+
iconClass: iconClass ? iconClass : ''
|
|
26
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
27
|
+
className: style.text,
|
|
28
|
+
flexible: true
|
|
29
|
+
}, text));
|
|
37
30
|
}
|
|
38
31
|
Link.defaultProps = defaultProps;
|
|
39
|
-
Link.propTypes = propTypes;
|
|
40
|
-
// Link.docs = {
|
|
41
|
-
// componentGroup: 'Header',
|
|
42
|
-
// folderName: 'Setup'
|
|
43
|
-
// };
|
|
44
|
-
// }
|
|
32
|
+
Link.propTypes = propTypes;
|
|
@@ -1,81 +1,55 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import { defaultProps } from '../../../../setup/header/Search/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../../setup/header/Search/props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import TextBox from '@zohodesk/components/es/v1/TextBox/TextBox';
|
|
6
6
|
import style from '../../../../setup/header/Search/Search.module.css';
|
|
7
|
-
export default
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
export default function Search(props) {
|
|
8
|
+
let {
|
|
9
|
+
placeHolder,
|
|
10
|
+
maxLength,
|
|
11
|
+
value,
|
|
12
|
+
onChange,
|
|
13
|
+
onKeyPress,
|
|
14
|
+
onFocus,
|
|
15
|
+
onBlur,
|
|
16
|
+
customClass
|
|
17
|
+
} = props;
|
|
18
|
+
let [isFocus, setIsFocus] = useState(false);
|
|
19
|
+
let [resetValue] = useState(value || '');
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onFocus
|
|
24
|
-
} = this.props;
|
|
25
|
-
this.setState({
|
|
26
|
-
isFocus: true
|
|
27
|
-
});
|
|
21
|
+
const handleFocus = (id, name, value) => {
|
|
22
|
+
setIsFocus(true);
|
|
28
23
|
onFocus && onFocus(id, name, value);
|
|
29
|
-
}
|
|
24
|
+
};
|
|
30
25
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
this.state.value == '' && this.setState({
|
|
36
|
-
isFocus: false
|
|
37
|
-
});
|
|
38
|
-
onBlur && onBlur(id, name, value);
|
|
39
|
-
}
|
|
26
|
+
const handleBlur = (id, name, value) => {
|
|
27
|
+
if (resetValue == '') {
|
|
28
|
+
setIsFocus(false);
|
|
29
|
+
}
|
|
40
30
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
placeHolder,
|
|
44
|
-
maxLength,
|
|
45
|
-
value,
|
|
46
|
-
onChange,
|
|
47
|
-
onKeyPress,
|
|
48
|
-
customClass
|
|
49
|
-
} = this.props;
|
|
50
|
-
let {
|
|
51
|
-
isFocus
|
|
52
|
-
} = this.state;
|
|
53
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
54
|
-
className: `${style.container} ${isFocus ? style.active : ''} ${customClass}`
|
|
55
|
-
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
56
|
-
placeHolder: placeHolder,
|
|
57
|
-
customClass: style.input,
|
|
58
|
-
maxLength: maxLength,
|
|
59
|
-
value: value,
|
|
60
|
-
onChange: onChange,
|
|
61
|
-
onKeyUp: onKeyPress,
|
|
62
|
-
onFocus: this.onFocus,
|
|
63
|
-
needAppearance: false,
|
|
64
|
-
onBlur: this.onBlur
|
|
65
|
-
}), value != '' && value ? /*#__PURE__*/React.createElement("span", {
|
|
66
|
-
className: style.icon,
|
|
67
|
-
onClick: this.onBlur
|
|
68
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
69
|
-
name: "ZD-close",
|
|
70
|
-
size: "19"
|
|
71
|
-
})) : null);
|
|
72
|
-
}
|
|
31
|
+
onBlur && onBlur(id, name, value);
|
|
32
|
+
};
|
|
73
33
|
|
|
34
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: `${style.container} ${isFocus ? style.active : ''} ${customClass}`
|
|
36
|
+
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
37
|
+
placeHolder: placeHolder,
|
|
38
|
+
customClass: style.input,
|
|
39
|
+
maxLength: maxLength,
|
|
40
|
+
value: value,
|
|
41
|
+
onChange: onChange,
|
|
42
|
+
onKeyUp: onKeyPress,
|
|
43
|
+
onFocus: handleFocus,
|
|
44
|
+
needAppearance: false,
|
|
45
|
+
onBlur: handleBlur
|
|
46
|
+
}), value != '' && value ? /*#__PURE__*/React.createElement("span", {
|
|
47
|
+
className: style.icon,
|
|
48
|
+
onClick: handleBlur
|
|
49
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
50
|
+
name: "ZD-close",
|
|
51
|
+
size: "19"
|
|
52
|
+
})) : null);
|
|
74
53
|
}
|
|
75
54
|
Search.propTypes = propTypes;
|
|
76
|
-
Search.defaultProps = defaultProps;
|
|
77
|
-
// Search.docs = {
|
|
78
|
-
// componentGroup: 'Header',
|
|
79
|
-
// folderName: 'Setup'
|
|
80
|
-
// };
|
|
81
|
-
// }
|
|
55
|
+
Search.defaultProps = defaultProps;
|
|
@@ -3,44 +3,32 @@ import { defaultProps } from '../../../../setup/header/Views/props/defaultProps'
|
|
|
3
3
|
import { propTypes } from '../../../../setup/header/Views/props/propTypes';
|
|
4
4
|
import style from '../../../../setup/header/Views/Views.module.css';
|
|
5
5
|
import { Icon } from '@zohodesk/icons';
|
|
6
|
-
export default
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
onClick: onGridClick
|
|
33
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
34
|
-
name: "ZD-grid",
|
|
35
|
-
size: "11"
|
|
36
|
-
})));
|
|
37
|
-
}
|
|
38
|
-
|
|
6
|
+
export default function Views(props) {
|
|
7
|
+
let {
|
|
8
|
+
isGrid,
|
|
9
|
+
isList,
|
|
10
|
+
gridTitle,
|
|
11
|
+
listTitle,
|
|
12
|
+
onListClick,
|
|
13
|
+
onGridClick
|
|
14
|
+
} = props;
|
|
15
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
16
|
+
className: style.container
|
|
17
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
18
|
+
className: `${style.icon} ${style.first} ${isList ? style.active : ''}`,
|
|
19
|
+
"data-title": !isList ? listTitle : null,
|
|
20
|
+
onClick: onListClick
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
22
|
+
name: "ZD-list22",
|
|
23
|
+
size: "10"
|
|
24
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
25
|
+
className: `${style.icon} ${style.last} ${isGrid ? style.active : ''}`,
|
|
26
|
+
"data-title": !isGrid ? gridTitle : null,
|
|
27
|
+
onClick: onGridClick
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
29
|
+
name: "ZD-grid",
|
|
30
|
+
size: "11"
|
|
31
|
+
})));
|
|
39
32
|
}
|
|
40
33
|
Views.propTypes = propTypes;
|
|
41
|
-
Views.defaultProps = defaultProps;
|
|
42
|
-
// Views.docs = {
|
|
43
|
-
// componentGroup: 'Header',
|
|
44
|
-
// folderName: 'Setup'
|
|
45
|
-
// };
|
|
46
|
-
// }
|
|
34
|
+
Views.defaultProps = defaultProps;
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { propTypes } from '../../../../setup/helptips/Description/props/propTypes';
|
|
3
3
|
import style from '../../../../setup/helptips/Description/HelpTipsDescription.module.css';
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
text
|
|
12
|
-
} = this.props;
|
|
13
|
-
return /*#__PURE__*/React.createElement("p", {
|
|
14
|
-
className: style.text
|
|
15
|
-
}, text);
|
|
16
|
-
}
|
|
17
|
-
|
|
4
|
+
export default function Description(props) {
|
|
5
|
+
let {
|
|
6
|
+
text
|
|
7
|
+
} = props;
|
|
8
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
9
|
+
className: style.text
|
|
10
|
+
}, text);
|
|
18
11
|
}
|
|
19
|
-
Description.propTypes = propTypes;
|
|
20
|
-
// Description.docs = {
|
|
21
|
-
// componentGroup: 'HelpTips',
|
|
22
|
-
// folderName: 'Setup'
|
|
23
|
-
// };
|
|
24
|
-
// }
|
|
12
|
+
Description.propTypes = propTypes;
|
|
@@ -2,40 +2,28 @@ import React from 'react';
|
|
|
2
2
|
import { propTypes } from '../../../../setup/helptips/Link/props/propTypes';
|
|
3
3
|
import style from '../../../../setup/helptips/Link/HelpTipsLink.module.css';
|
|
4
4
|
import ExternalLink from '../../../ExternalLink/ExternalLink';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
text,
|
|
13
|
-
url,
|
|
14
|
-
onClick,
|
|
15
|
-
isDangerous = false
|
|
16
|
-
} = this.props;
|
|
17
|
-
|
|
18
|
-
if (isDangerous) {
|
|
19
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
className: style.container,
|
|
21
|
-
onClick: onClick,
|
|
22
|
-
dangerouslySetInnerHTML: {
|
|
23
|
-
__html: text
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
5
|
+
export default function Link(props) {
|
|
6
|
+
let {
|
|
7
|
+
text,
|
|
8
|
+
url,
|
|
9
|
+
onClick,
|
|
10
|
+
isDangerous = false
|
|
11
|
+
} = props;
|
|
27
12
|
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
if (isDangerous) {
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: style.container,
|
|
30
16
|
onClick: onClick,
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
dangerouslySetInnerHTML: {
|
|
18
|
+
__html: text
|
|
19
|
+
}
|
|
20
|
+
});
|
|
33
21
|
}
|
|
34
22
|
|
|
23
|
+
return /*#__PURE__*/React.createElement(ExternalLink, {
|
|
24
|
+
href: url,
|
|
25
|
+
onClick: onClick,
|
|
26
|
+
className: style.text
|
|
27
|
+
}, text);
|
|
35
28
|
}
|
|
36
|
-
Link.propTypes = propTypes;
|
|
37
|
-
// Link.docs = {
|
|
38
|
-
// componentGroup: 'HelpTips',
|
|
39
|
-
// folderName: 'Setup'
|
|
40
|
-
// };
|
|
41
|
-
// }
|
|
29
|
+
Link.propTypes = propTypes;
|
|
@@ -1,39 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { propTypes } from '../../../../setup/helptips/ListGroup/props/propTypes';
|
|
3
3
|
import style from '../../../../setup/helptips/ListGroup/ListGroup.module.css';
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
render() {
|
|
10
|
-
let {
|
|
11
|
-
isOrder,
|
|
12
|
-
data
|
|
13
|
-
} = this.props;
|
|
14
|
-
|
|
15
|
-
if (isOrder) {
|
|
16
|
-
return /*#__PURE__*/React.createElement("ol", {
|
|
17
|
-
className: style.container,
|
|
18
|
-
type: "1"
|
|
19
|
-
}, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
|
|
20
|
-
className: style.orderData,
|
|
21
|
-
key: index
|
|
22
|
-
}, text)));
|
|
23
|
-
}
|
|
4
|
+
export default function ListGroup(props) {
|
|
5
|
+
let {
|
|
6
|
+
isOrder,
|
|
7
|
+
data
|
|
8
|
+
} = props;
|
|
24
9
|
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
if (isOrder) {
|
|
11
|
+
return /*#__PURE__*/React.createElement("ol", {
|
|
12
|
+
className: style.container,
|
|
13
|
+
type: "1"
|
|
27
14
|
}, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
|
|
28
|
-
className: style.
|
|
15
|
+
className: style.orderData,
|
|
29
16
|
key: index
|
|
30
|
-
},
|
|
17
|
+
}, text)));
|
|
31
18
|
}
|
|
32
19
|
|
|
20
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
21
|
+
className: style.container
|
|
22
|
+
}, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
|
|
23
|
+
className: style.unOrderData,
|
|
24
|
+
key: index
|
|
25
|
+
}, text)));
|
|
33
26
|
}
|
|
34
|
-
ListGroup.propTypes = propTypes;
|
|
35
|
-
// ListGroup.docs = {
|
|
36
|
-
// componentGroup: 'HelpTips',
|
|
37
|
-
// folderName: 'Setup'
|
|
38
|
-
// };
|
|
39
|
-
// }
|
|
27
|
+
ListGroup.propTypes = propTypes;
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { propTypes } from '../../../../setup/helptips/Title/props/propTypes';
|
|
3
3
|
import style from '../../../../setup/helptips/Title/HelpTipsTitle.module.css';
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
text
|
|
12
|
-
} = this.props;
|
|
13
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
-
className: style.title
|
|
15
|
-
}, text);
|
|
16
|
-
}
|
|
17
|
-
|
|
4
|
+
export default function Title(props) {
|
|
5
|
+
let {
|
|
6
|
+
text
|
|
7
|
+
} = props;
|
|
8
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
className: style.title
|
|
10
|
+
}, text);
|
|
18
11
|
}
|
|
19
|
-
Title.propTypes = propTypes;
|
|
20
|
-
// Title.docs = {
|
|
21
|
-
// componentGroup: 'HelpTips',
|
|
22
|
-
// folderName: 'Setup'
|
|
23
|
-
// };
|
|
24
|
-
// }
|
|
12
|
+
Title.propTypes = propTypes;
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
.container {
|
|
30
30
|
position: relative;
|
|
31
31
|
pointer-events: initial;
|
|
32
|
+
/* css:theme-validation:ignore */
|
|
33
|
+
/* css:theme-validation:ignore */
|
|
34
|
+
/* css:theme-validation:ignore */
|
|
32
35
|
color: var(--globalnotification_text_color);
|
|
33
36
|
max-width: var(--zd_size490) ;
|
|
34
37
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.innerSection {
|
|
6
6
|
color: var(--zdt_alertlookupnew_text);
|
|
7
7
|
font-size: var(--zd_font_size14) ;
|
|
8
|
-
line-height: var(--
|
|
8
|
+
line-height: var(--zd_size20);
|
|
9
9
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
10
10
|
padding: var(--zd_size17) var(--zd_size30) var(--zd_size30) ;
|
|
11
11
|
}
|
|
@@ -9,6 +9,7 @@ import AutoClose from '../../../actions/AutoClose';
|
|
|
9
9
|
import Button from '@zohodesk/components/lib/Button/Button';
|
|
10
10
|
import FormAction from '../../../FormAction/FormAction';
|
|
11
11
|
import DesktopNotificationHeader from '../DesktopNotificationHeader/DesktopNotificationHeader';
|
|
12
|
+
import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
|
|
12
13
|
import style from './DesktopNotification.module.css';
|
|
13
14
|
let buttonPaletteObject = {
|
|
14
15
|
success: {
|
|
@@ -60,7 +61,8 @@ export function DesktopNotificationUI(props) {
|
|
|
60
61
|
needClose,
|
|
61
62
|
customClass = {},
|
|
62
63
|
i18nKeys = {},
|
|
63
|
-
customProps
|
|
64
|
+
customProps,
|
|
65
|
+
responsiveId
|
|
64
66
|
} = props;
|
|
65
67
|
let {
|
|
66
68
|
closeTitle = 'Close'
|
|
@@ -89,66 +91,87 @@ export function DesktopNotificationUI(props) {
|
|
|
89
91
|
let Zindex = isAnimate ? getNextIndex() : null;
|
|
90
92
|
let uiVariantOne = title && (info || secondaryInfo);
|
|
91
93
|
let uiVariantTwo = title && !(info || secondaryInfo) && !getSectionContainer;
|
|
94
|
+
|
|
95
|
+
function responsiveFunc(_ref) {
|
|
96
|
+
let {
|
|
97
|
+
mediaQueryOR
|
|
98
|
+
} = _ref;
|
|
99
|
+
return {
|
|
100
|
+
uptoTablet: mediaQueryOR([{
|
|
101
|
+
maxWidth: 760
|
|
102
|
+
}])
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
92
106
|
return /*#__PURE__*/React.createElement("div", {
|
|
93
107
|
className: style.parentElement,
|
|
94
108
|
style: needAutoZindex && isAnimate ? {
|
|
95
109
|
zIndex: `${Zindex}`
|
|
96
110
|
} : {},
|
|
97
111
|
"data-selector-id": dataSelectorId
|
|
98
|
-
}, /*#__PURE__*/React.createElement(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
112
|
+
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
113
|
+
query: responsiveFunc,
|
|
114
|
+
responsiveId: responsiveId
|
|
115
|
+
}, _ref2 => {
|
|
116
|
+
let {
|
|
117
|
+
uptoTablet
|
|
118
|
+
} = _ref2;
|
|
119
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
120
|
+
className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass}
|
|
121
|
+
${isShrinkView ? style.globalNotify : ''} ${containerClass} ${uptoTablet ? style.tapWidth : style[`${size}`]}`,
|
|
122
|
+
isCover: false,
|
|
123
|
+
dataId: dataId,
|
|
124
|
+
isInline: uiVariantTwo
|
|
125
|
+
}, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
126
|
+
type: type,
|
|
127
|
+
title: title,
|
|
128
|
+
variant: titleVariant,
|
|
129
|
+
needIcon: needIcon,
|
|
130
|
+
onClose: onClose,
|
|
131
|
+
closeTitle: closeTitle,
|
|
132
|
+
dataId: `${dataId}_close`,
|
|
133
|
+
needClose: needClose
|
|
134
|
+
})), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Container, {
|
|
135
|
+
alignBox: "column"
|
|
136
|
+
}, uiVariantOne && /*#__PURE__*/React.createElement(Box, {
|
|
137
|
+
flexible: true
|
|
138
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
139
|
+
className: `${style.section} ${style.infoText}`
|
|
140
|
+
}, subTitle && /*#__PURE__*/React.createElement("div", {
|
|
141
|
+
className: `${style.subTitle} ${info || secondaryInfo ? style.subTitleMargin : ''}`
|
|
142
|
+
}, subTitle), info && /*#__PURE__*/React.createElement("div", null, info), secondaryInfo && /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
className: `${info ? style.secondaryInfo : ''}`
|
|
144
|
+
}, secondaryInfo))), getSectionContainer && /*#__PURE__*/React.createElement(Box, {
|
|
145
|
+
flexible: true
|
|
146
|
+
}, getSectionContainer()), submitText || cancelText ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
|
|
147
|
+
className: style.footer
|
|
148
|
+
}, isMore ? /*#__PURE__*/React.createElement("div", {
|
|
149
|
+
className: `${style.message}`,
|
|
150
|
+
tagName: "p"
|
|
151
|
+
}, message) : null, /*#__PURE__*/React.createElement(FormAction, {
|
|
152
|
+
size: "small",
|
|
153
|
+
paddingLeftSize: "xmedium"
|
|
154
|
+
}, submitText ? /*#__PURE__*/React.createElement("div", {
|
|
155
|
+
onClick: onClickSubmit,
|
|
156
|
+
"data-id": `${dataId}_submitButton`,
|
|
157
|
+
"data-test-id": `${dataId}_submitButton`
|
|
158
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
159
|
+
align: "vertical",
|
|
160
|
+
alignBox: "row"
|
|
161
|
+
}, getSubmitContainer ? /*#__PURE__*/React.createElement(Box, {
|
|
162
|
+
flexible: true
|
|
163
|
+
}, getSubmitContainer()) : /*#__PURE__*/React.createElement(Box, {
|
|
164
|
+
flexible: true
|
|
165
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
166
|
+
text: submitText,
|
|
167
|
+
palette: submitType ? submitType : buttonPalette
|
|
168
|
+
})))) : null, cancelText ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
169
|
+
text: cancelText,
|
|
170
|
+
palette: "secondary",
|
|
171
|
+
dataId: `${dataId}_cancelButton`,
|
|
172
|
+
onClick: onClickCancel
|
|
173
|
+
})) : null))) : null)), getBottomContainer ? /*#__PURE__*/React.createElement(Box, null, getBottomContainer()) : null);
|
|
174
|
+
}));
|
|
152
175
|
}
|
|
153
176
|
DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
|
|
154
177
|
export default function DesktopNotification(props) {
|