@zohodesk/dot 1.0.0-temp-66 → 1.0.0-temp-69
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/README.md +6 -0
- package/es/ActionButton/ActionButton.js +4 -7
- package/es/IconButton/IconButton.js +2 -5
- package/es/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/es/form/fields/CurrencyField/CurrencyField.js +1 -1
- package/es/form/fields/DateField/DateField.js +1 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/es/form/fields/PhoneField/PhoneField.js +1 -1
- package/es/form/fields/RadioField/RadioField.js +1 -1
- package/es/form/fields/SelectField/SelectField.js +1 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/es/form/fields/TextEditor/TextEditor.module.css +13 -2
- package/es/form/fields/TextareaField/TextareaField.js +1 -1
- package/es/list/Comment/Comment.js +1 -4
- package/es/list/Icons/AddNewIcon.js +7 -12
- package/es/list/Icons/CompleteIcon.js +7 -12
- package/es/list/Icons/DeleteIcon.js +7 -12
- package/es/list/Icons/EditIcon.js +7 -12
- package/es/list/Icons/ReadUnreadIcon.js +7 -12
- package/es/list/Icons/SmartIcon.js +7 -12
- package/es/list/SecondaryText/AccountName.js +38 -34
- package/es/list/SecondaryText/ContactName.js +13 -18
- package/es/list/SecondaryText/SecondaryText.module.css +28 -13
- package/es/list/Thread/Thread.js +5 -10
- package/es/list/status/StatusDropdown/StatusDropdown.js +47 -40
- package/es/setup/header/Views/Views.js +2 -2
- package/lib/ActionButton/ActionButton.js +4 -8
- package/lib/IconButton/IconButton.js +2 -5
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +1 -1
- package/lib/form/fields/DateField/DateField.js +1 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/form/fields/PhoneField/PhoneField.js +1 -1
- package/lib/form/fields/RadioField/RadioField.js +1 -1
- package/lib/form/fields/SelectField/SelectField.js +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.module.css +13 -2
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/list/Comment/Comment.js +1 -4
- package/lib/list/Icons/AddNewIcon.js +7 -13
- package/lib/list/Icons/CompleteIcon.js +7 -13
- package/lib/list/Icons/DeleteIcon.js +7 -13
- package/lib/list/Icons/EditIcon.js +7 -13
- package/lib/list/Icons/ReadUnreadIcon.js +7 -13
- package/lib/list/Icons/SmartIcon.js +7 -13
- package/lib/list/SecondaryText/AccountName.js +38 -34
- package/lib/list/SecondaryText/ContactName.js +13 -18
- package/lib/list/SecondaryText/SecondaryText.module.css +28 -13
- package/lib/list/Thread/Thread.js +5 -10
- package/lib/list/status/StatusDropdown/StatusDropdown.js +44 -37
- package/lib/setup/header/Views/Views.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.0.0-beta.215
|
|
6
|
+
|
|
7
|
+
- CheckBoxField, CurrencyField, DateField, MultiSelectField, PhoneField, RadioField, SelectField, TextBoxField, TextareaField, setup/header/Views/Views => Tooltip undefined case solved
|
|
8
|
+
- StatusDropdown => Enter, Down Arrow Shortcut issue solved
|
|
9
|
+
- TextEditor => editor focus issue fix
|
|
10
|
+
|
|
5
11
|
# 1.0.0-beta.214
|
|
6
12
|
|
|
7
13
|
- Dot => Provider Config Added
|
|
@@ -6,7 +6,6 @@ import Button from '@zohodesk/components/lib/Button/Button';
|
|
|
6
6
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
7
7
|
import DropBox from '@zohodesk/components/lib/DropBox/DropBox';
|
|
8
8
|
import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
|
|
9
|
-
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
10
9
|
import style from './ActionButton.module.css';
|
|
11
10
|
export class ActionButton extends React.Component {
|
|
12
11
|
constructor(props) {
|
|
@@ -72,9 +71,8 @@ export class ActionButton extends React.Component {
|
|
|
72
71
|
flexible: true,
|
|
73
72
|
onClick: onClick,
|
|
74
73
|
dataId: dataId,
|
|
75
|
-
className:
|
|
76
|
-
"data-title": dataTitle
|
|
77
|
-
tagName: "button"
|
|
74
|
+
className: `${style.contentBox} ${style[palette + 'Btn']} ${style[size + '_btnBox']} ${children ? style.contentBoxBdr : style.contentBoxBdrRds} ${style.clickable} `,
|
|
75
|
+
"data-title": dataTitle
|
|
78
76
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
79
77
|
align: "both"
|
|
80
78
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -98,9 +96,8 @@ export class ActionButton extends React.Component {
|
|
|
98
96
|
onClick: onClick ? !onHover && this.handleTogglePopup : undefined,
|
|
99
97
|
onMouseEnter: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
100
98
|
onMouseLeave: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
101
|
-
className: `${
|
|
102
|
-
dataId: arrowBoxDataId
|
|
103
|
-
tagName: "button"
|
|
99
|
+
className: `${style[arrowBoxSize + '_arrowBox']} ${style[palette + 'Arw']} ${style.arrowWrapper} ${isPopupOpen ? style.arrowActive : ''}`,
|
|
100
|
+
dataId: arrowBoxDataId
|
|
104
101
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
105
102
|
align: "both"
|
|
106
103
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -94,8 +94,7 @@ export default class IconButton extends React.Component {
|
|
|
94
94
|
ariaExpanded,
|
|
95
95
|
ariaLabel,
|
|
96
96
|
ariaControls,
|
|
97
|
-
ariaLabelledby
|
|
98
|
-
role
|
|
97
|
+
ariaLabelledby
|
|
99
98
|
} = a11y;
|
|
100
99
|
return /*#__PURE__*/React.createElement(RippleEffect, {
|
|
101
100
|
palette: palette,
|
|
@@ -109,7 +108,6 @@ export default class IconButton extends React.Component {
|
|
|
109
108
|
"aria-expanded": ariaExpanded,
|
|
110
109
|
"aria-controls": ariaControls,
|
|
111
110
|
"aria-labelledby": ariaLabelledby,
|
|
112
|
-
role: role,
|
|
113
111
|
tagName: needButtonTag ? 'button' : 'div',
|
|
114
112
|
isInline: true,
|
|
115
113
|
tourId: tourId,
|
|
@@ -163,8 +161,7 @@ IconButton.propTypes = {
|
|
|
163
161
|
ariaExpanded: PropTypes.bool,
|
|
164
162
|
ariaLabel: PropTypes.string,
|
|
165
163
|
ariaControls: PropTypes.string,
|
|
166
|
-
ariaLabelledby: PropTypes.string
|
|
167
|
-
role: PropTypes.string
|
|
164
|
+
ariaLabelledby: PropTypes.string
|
|
168
165
|
}),
|
|
169
166
|
dataIsHtml: PropTypes.bool
|
|
170
167
|
};
|
|
@@ -105,7 +105,7 @@ export default class CheckBoxField extends PureComponent {
|
|
|
105
105
|
}) : null);
|
|
106
106
|
return /*#__PURE__*/React.createElement("div", {
|
|
107
107
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
108
|
-
"data-title": isDisabled ? title :
|
|
108
|
+
"data-title": isDisabled ? title : null
|
|
109
109
|
}, isDirectCol && labelElement, /*#__PURE__*/React.createElement("div", {
|
|
110
110
|
className: `${isDirectCol ? style.fieldContainer : style.checkboxFieldContainer} ${isDirectCol && labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
111
111
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
@@ -121,7 +121,7 @@ export default class CurrencyField extends PureComponent {
|
|
|
121
121
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
122
122
|
return /*#__PURE__*/React.createElement("div", {
|
|
123
123
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
124
|
-
"data-title": isDisabled ? title :
|
|
124
|
+
"data-title": isDisabled ? title : null
|
|
125
125
|
}, labelName && /*#__PURE__*/React.createElement("div", {
|
|
126
126
|
className: style.labelContainer
|
|
127
127
|
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
@@ -125,7 +125,7 @@ export default class DateField extends PureComponent {
|
|
|
125
125
|
let getAriaId = htmlId ? htmlId : this.getNextId();
|
|
126
126
|
return /*#__PURE__*/React.createElement("div", {
|
|
127
127
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
128
|
-
"data-title": isDisabled ? title :
|
|
128
|
+
"data-title": isDisabled ? title : null
|
|
129
129
|
}, labelName && /*#__PURE__*/React.createElement("div", {
|
|
130
130
|
className: style.labelContainer
|
|
131
131
|
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
@@ -137,7 +137,7 @@ export default class MultiSelectField extends PureComponent {
|
|
|
137
137
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
138
138
|
return /*#__PURE__*/React.createElement("div", {
|
|
139
139
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
140
|
-
"data-title": isDisabled ? title :
|
|
140
|
+
"data-title": isDisabled ? title : null
|
|
141
141
|
}, labelName && /*#__PURE__*/React.createElement("div", {
|
|
142
142
|
className: style.labelContainer
|
|
143
143
|
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
@@ -127,7 +127,7 @@ export default class PhoneField extends PureComponent {
|
|
|
127
127
|
return /*#__PURE__*/React.createElement(Container, {
|
|
128
128
|
alignBox: "row",
|
|
129
129
|
className: `${style.container} ${isDisabled ? style.disabled : ''}`,
|
|
130
|
-
"data-title": isDisabled ? title :
|
|
130
|
+
"data-title": isDisabled ? title : null
|
|
131
131
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
132
132
|
flexible: true
|
|
133
133
|
}, /*#__PURE__*/React.createElement(TextBoxField, _extends({
|
|
@@ -56,7 +56,7 @@ export default class RadioField extends PureComponent {
|
|
|
56
56
|
} = customProps;
|
|
57
57
|
return /*#__PURE__*/React.createElement("div", {
|
|
58
58
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
59
|
-
"data-title": isDisabled ? title :
|
|
59
|
+
"data-title": isDisabled ? title : null
|
|
60
60
|
}, labelName && /*#__PURE__*/React.createElement(Label, _extends({
|
|
61
61
|
text: labelName,
|
|
62
62
|
size: "medium",
|
|
@@ -105,7 +105,7 @@ export default class SelectField extends PureComponent {
|
|
|
105
105
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
106
106
|
return /*#__PURE__*/React.createElement("div", {
|
|
107
107
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
108
|
-
"data-title": isDisabled ? title :
|
|
108
|
+
"data-title": isDisabled ? title : null
|
|
109
109
|
}, labelName && /*#__PURE__*/React.createElement("div", {
|
|
110
110
|
className: style.labelContainer
|
|
111
111
|
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
@@ -98,7 +98,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
98
98
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
99
99
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
100
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
101
|
-
"data-title": isDisabled ? title :
|
|
101
|
+
"data-title": isDisabled ? title : null
|
|
102
102
|
}, labelName && /*#__PURE__*/React.createElement("div", {
|
|
103
103
|
className: style.labelContainer
|
|
104
104
|
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
@@ -649,7 +649,18 @@
|
|
|
649
649
|
right: 0;
|
|
650
650
|
left: 0;
|
|
651
651
|
}
|
|
652
|
-
.readOnly :global .KB_Editor_menus
|
|
653
|
-
.editorHide :global .KB_Editor {
|
|
652
|
+
.readOnly :global .KB_Editor_menus {
|
|
654
653
|
display: none !important;
|
|
655
654
|
}
|
|
655
|
+
.editorHide :global .KB_Editor {
|
|
656
|
+
position: absolute !important;
|
|
657
|
+
top: 0;
|
|
658
|
+
opacity: 0;
|
|
659
|
+
visibility: hidden;
|
|
660
|
+
}
|
|
661
|
+
[dir=ltr] .editorHide :global .KB_Editor {
|
|
662
|
+
left: 0;
|
|
663
|
+
}
|
|
664
|
+
[dir=rtl] .editorHide :global .KB_Editor {
|
|
665
|
+
right: 0;
|
|
666
|
+
}
|
|
@@ -96,7 +96,7 @@ export default class TextareaField extends PureComponent {
|
|
|
96
96
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
97
97
|
return /*#__PURE__*/React.createElement("div", {
|
|
98
98
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
99
|
-
"data-title": isDisabled ? title :
|
|
99
|
+
"data-title": isDisabled ? title : null
|
|
100
100
|
}, labelName && /*#__PURE__*/React.createElement("div", {
|
|
101
101
|
className: style.labelContainer
|
|
102
102
|
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
@@ -22,10 +22,7 @@ export default class Comment extends Component {
|
|
|
22
22
|
customClass: `${style.container} ${className} `,
|
|
23
23
|
onClick: onClick,
|
|
24
24
|
dataId: "commentLstContainer",
|
|
25
|
-
title: commentTitle
|
|
26
|
-
customProps: {
|
|
27
|
-
'aria-label': commentTitle
|
|
28
|
-
}
|
|
25
|
+
title: commentTitle
|
|
29
26
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
30
27
|
name: "ZD-TK-commentLine",
|
|
31
28
|
iconClass: style.commentIcon
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || 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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import PropTypes from 'prop-types';
|
|
5
3
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
6
|
-
import Button from '@zohodesk/components/lib/semantic/Button/Button';
|
|
7
4
|
import style from './Icons.module.css';
|
|
8
5
|
export default class AddNewIcon extends React.Component {
|
|
9
6
|
render() {
|
|
@@ -12,15 +9,14 @@ export default class AddNewIcon extends React.Component {
|
|
|
12
9
|
dataId,
|
|
13
10
|
dataTitle,
|
|
14
11
|
iconClass,
|
|
15
|
-
className
|
|
16
|
-
customProps
|
|
12
|
+
className
|
|
17
13
|
} = this.props;
|
|
18
|
-
return /*#__PURE__*/React.createElement(
|
|
14
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
19
15
|
onClick: onClick,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
title: dataTitle
|
|
23
|
-
},
|
|
16
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
17
|
+
"data-id": dataId,
|
|
18
|
+
"data-title": dataTitle
|
|
19
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
24
20
|
name: "ZD-SE-addTickets",
|
|
25
21
|
iconClass: iconClass ? iconClass : ''
|
|
26
22
|
}));
|
|
@@ -32,6 +28,5 @@ AddNewIcon.propTypes = {
|
|
|
32
28
|
dataId: PropTypes.string,
|
|
33
29
|
dataTitle: PropTypes.string,
|
|
34
30
|
iconClass: PropTypes.string,
|
|
35
|
-
onClick: PropTypes.func
|
|
36
|
-
customProps: PropTypes.object
|
|
31
|
+
onClick: PropTypes.func
|
|
37
32
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || 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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import PropTypes from 'prop-types';
|
|
5
3
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
6
|
-
import Button from '@zohodesk/components/lib/semantic/Button/Button';
|
|
7
4
|
import style from './Icons.module.css';
|
|
8
5
|
export default class CompleteIcon extends React.Component {
|
|
9
6
|
render() {
|
|
@@ -13,15 +10,14 @@ export default class CompleteIcon extends React.Component {
|
|
|
13
10
|
dataTitle,
|
|
14
11
|
iconClass,
|
|
15
12
|
className,
|
|
16
|
-
iconSize
|
|
17
|
-
customProps
|
|
13
|
+
iconSize
|
|
18
14
|
} = this.props;
|
|
19
|
-
return /*#__PURE__*/React.createElement(
|
|
15
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20
16
|
onClick: onClick,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
title: dataTitle
|
|
24
|
-
},
|
|
17
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
18
|
+
"data-id": dataId,
|
|
19
|
+
"data-title": dataTitle
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
25
21
|
name: "ZD-GN-checkbox",
|
|
26
22
|
iconClass: iconClass ? iconClass : '',
|
|
27
23
|
size: iconSize
|
|
@@ -35,6 +31,5 @@ CompleteIcon.propTypes = {
|
|
|
35
31
|
dataTitle: PropTypes.string,
|
|
36
32
|
iconClass: PropTypes.string,
|
|
37
33
|
iconSize: PropTypes.string,
|
|
38
|
-
onClick: PropTypes.func
|
|
39
|
-
customProps: PropTypes.object
|
|
34
|
+
onClick: PropTypes.func
|
|
40
35
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || 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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import PropTypes from 'prop-types';
|
|
5
3
|
import style from './Icons.module.css';
|
|
6
4
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
7
|
-
import Button from '@zohodesk/components/lib/semantic/Button/Button';
|
|
8
5
|
export default class DeleteComponent extends React.Component {
|
|
9
6
|
render() {
|
|
10
7
|
let {
|
|
@@ -13,15 +10,14 @@ export default class DeleteComponent extends React.Component {
|
|
|
13
10
|
dataTitle,
|
|
14
11
|
iconClass,
|
|
15
12
|
iconSize,
|
|
16
|
-
className
|
|
17
|
-
customProps
|
|
13
|
+
className
|
|
18
14
|
} = this.props;
|
|
19
|
-
return /*#__PURE__*/React.createElement(
|
|
15
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20
16
|
onClick: onClick,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
title: dataTitle
|
|
24
|
-
},
|
|
17
|
+
className: `${style.iconStyle} ${style.redHover} ${className ? className : ''}`,
|
|
18
|
+
"data-id": dataId,
|
|
19
|
+
"data-title": dataTitle
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
25
21
|
name: "ZD-GN-delete",
|
|
26
22
|
iconClass: iconClass ? iconClass : '',
|
|
27
23
|
size: iconSize
|
|
@@ -35,6 +31,5 @@ DeleteComponent.propTypes = {
|
|
|
35
31
|
dataTitle: PropTypes.string,
|
|
36
32
|
iconClass: PropTypes.string,
|
|
37
33
|
iconSize: PropTypes.string,
|
|
38
|
-
onClick: PropTypes.func
|
|
39
|
-
customProps: PropTypes.object
|
|
34
|
+
onClick: PropTypes.func
|
|
40
35
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || 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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import PropTypes from 'prop-types';
|
|
5
3
|
import style from './Icons.module.css';
|
|
6
4
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
7
|
-
import Button from '@zohodesk/components/lib/semantic/Button/Button';
|
|
8
5
|
export default class EditIcon extends React.Component {
|
|
9
6
|
render() {
|
|
10
7
|
let {
|
|
@@ -13,15 +10,14 @@ export default class EditIcon extends React.Component {
|
|
|
13
10
|
dataTitle,
|
|
14
11
|
iconClass,
|
|
15
12
|
iconSize,
|
|
16
|
-
className
|
|
17
|
-
customProps
|
|
13
|
+
className
|
|
18
14
|
} = this.props;
|
|
19
|
-
return /*#__PURE__*/React.createElement(
|
|
15
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20
16
|
onClick: onClick,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
title: dataTitle
|
|
24
|
-
},
|
|
17
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
18
|
+
"data-id": dataId,
|
|
19
|
+
"data-title": dataTitle
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
25
21
|
name: "ZD-GN-edit",
|
|
26
22
|
iconClass: iconClass ? iconClass : '',
|
|
27
23
|
size: iconSize
|
|
@@ -35,6 +31,5 @@ EditIcon.propTypes = {
|
|
|
35
31
|
dataTitle: PropTypes.string,
|
|
36
32
|
iconClass: PropTypes.string,
|
|
37
33
|
iconSize: PropTypes.string,
|
|
38
|
-
onClick: PropTypes.func
|
|
39
|
-
customProps: PropTypes.object
|
|
34
|
+
onClick: PropTypes.func
|
|
40
35
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || 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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import PropTypes from 'prop-types';
|
|
5
3
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
6
4
|
import style from './Icons.module.css';
|
|
7
|
-
import Button from '@zohodesk/components/lib/semantic/Button/Button';
|
|
8
5
|
export default class ReadUnreadIcon extends React.Component {
|
|
9
6
|
render() {
|
|
10
7
|
let {
|
|
@@ -15,15 +12,14 @@ export default class ReadUnreadIcon extends React.Component {
|
|
|
15
12
|
iconClass,
|
|
16
13
|
className,
|
|
17
14
|
isRead,
|
|
18
|
-
iconSize
|
|
19
|
-
customProps
|
|
15
|
+
iconSize
|
|
20
16
|
} = this.props;
|
|
21
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
22
18
|
onClick: onClick,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
title: dataTitle
|
|
26
|
-
},
|
|
19
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
20
|
+
"data-id": dataId,
|
|
21
|
+
"data-title": dataTitle
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
27
23
|
name: isRead ? 'ZD-GN-read' : 'ZD-GN-unread',
|
|
28
24
|
size: iconSize,
|
|
29
25
|
iconClass: `${iconClassName ? iconClassName : ''} ${iconClass ? iconClass : ''}`
|
|
@@ -42,6 +38,5 @@ ReadUnreadIcon.propTypes = {
|
|
|
42
38
|
iconClass: PropTypes.string,
|
|
43
39
|
onClick: PropTypes.func,
|
|
44
40
|
isRead: PropTypes.bool,
|
|
45
|
-
iconSize: PropTypes.string
|
|
46
|
-
customProps: PropTypes.object
|
|
41
|
+
iconSize: PropTypes.string
|
|
47
42
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || 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
|
-
|
|
3
1
|
import React, { Component } from 'react';
|
|
4
2
|
import PropTypes from 'prop-types';
|
|
5
3
|
import style from './Icons.module.css';
|
|
6
4
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
7
|
-
import Button from '@zohodesk/components/lib/semantic/Button/Button';
|
|
8
5
|
export default class SmartIcon extends Component {
|
|
9
6
|
render() {
|
|
10
7
|
let {
|
|
@@ -12,15 +9,14 @@ export default class SmartIcon extends Component {
|
|
|
12
9
|
dataId,
|
|
13
10
|
dataTitle,
|
|
14
11
|
iconClass,
|
|
15
|
-
className
|
|
16
|
-
customProps
|
|
12
|
+
className
|
|
17
13
|
} = this.props;
|
|
18
|
-
return /*#__PURE__*/React.createElement(
|
|
14
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
19
15
|
onClick: onClick,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
title: dataTitle
|
|
23
|
-
},
|
|
16
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
17
|
+
"data-id": dataId,
|
|
18
|
+
"data-title": dataTitle
|
|
19
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
24
20
|
name: "ZD-TK-peek",
|
|
25
21
|
iconClass: iconClass ? iconClass : ''
|
|
26
22
|
}));
|
|
@@ -34,6 +30,5 @@ SmartIcon.propTypes = {
|
|
|
34
30
|
features: PropTypes.array,
|
|
35
31
|
iconClass: PropTypes.string,
|
|
36
32
|
module: PropTypes.string,
|
|
37
|
-
onClick: PropTypes.func
|
|
38
|
-
customProps: PropTypes.object
|
|
33
|
+
onClick: PropTypes.func
|
|
39
34
|
};
|
|
@@ -36,40 +36,44 @@ export default class AccountName extends Component {
|
|
|
36
36
|
TextProps = {},
|
|
37
37
|
SecondaryTextProps = {}
|
|
38
38
|
} = customProps;
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
39
|
+
return (
|
|
40
|
+
/*#__PURE__*/
|
|
41
|
+
// <Container
|
|
42
|
+
// alignBox='row'
|
|
43
|
+
// align='baseline'
|
|
44
|
+
// isCover={false}
|
|
45
|
+
// data-title={dataTitle}
|
|
46
|
+
// dataId={dataId}
|
|
47
|
+
// >
|
|
48
|
+
// <Box flexible>
|
|
49
|
+
React.createElement("div", {
|
|
50
|
+
className: style.primaryAccountNameCnt,
|
|
51
|
+
"data-title": dataTitle,
|
|
52
|
+
"data-id": dataId
|
|
53
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, {
|
|
54
|
+
className: style.primaryAccountName,
|
|
55
|
+
shrink: true
|
|
56
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
57
|
+
href: href,
|
|
58
|
+
urlName: urlName,
|
|
59
|
+
urlData: urlData,
|
|
60
|
+
onClick: onClick,
|
|
61
|
+
dataId: `${dataId}_link`,
|
|
62
|
+
className: `${style.gridItem} ${style.link}`
|
|
63
|
+
}, LinkProps), /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
65
|
+
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
66
|
+
className: `${style.gridItem} ${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`
|
|
67
|
+
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/React.createElement(Link, {
|
|
68
|
+
href: secondaryAccountHref,
|
|
69
|
+
onClick: secondaryAccountClick,
|
|
70
|
+
className: `${style.gridItem} ${style.link}`
|
|
71
|
+
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
72
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
73
|
+
}, SecondaryTextProps), secondaryAccountText))) // </Box>
|
|
74
|
+
// </Container>
|
|
75
|
+
|
|
76
|
+
);
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
}
|
|
@@ -39,36 +39,30 @@ export default class ContactName extends Component {
|
|
|
39
39
|
LinkProps = {},
|
|
40
40
|
TextProps = {}
|
|
41
41
|
} = customProps;
|
|
42
|
-
return /*#__PURE__*/React.createElement(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
dataId: dataId
|
|
47
|
-
}, isPaidUser && /*#__PURE__*/React.createElement(Box, {
|
|
48
|
-
className: style.paidUserIcon,
|
|
49
|
-
title: paidTitle
|
|
50
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: style.contactNameCnt,
|
|
44
|
+
"data-id": dataId
|
|
45
|
+
}, isPaidUser && /*#__PURE__*/React.createElement(Icon, {
|
|
51
46
|
name: "ZD-paiduser",
|
|
52
|
-
iconClass: style.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
47
|
+
iconClass: style.paidUserIcon,
|
|
48
|
+
title: paidTitle
|
|
49
|
+
}), /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
56
50
|
urlName: urlName,
|
|
57
51
|
href: href,
|
|
58
52
|
urlData: urlData,
|
|
59
53
|
onClick: onClick,
|
|
60
54
|
title: dataTitle,
|
|
61
55
|
dataId: `${dataId}_link`,
|
|
62
|
-
className: style.link
|
|
56
|
+
className: `${style.gridItem} ${style.link}`
|
|
63
57
|
}, LinkProps), /*#__PURE__*/React.createElement("div", {
|
|
64
58
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
65
59
|
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
66
|
-
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
60
|
+
className: `${style.gridItem} ${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
67
61
|
"data-title": dataTitle
|
|
68
|
-
}, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(
|
|
62
|
+
}, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
69
63
|
type: sentimentType,
|
|
70
64
|
dataTitle: sentimentDataTitle
|
|
71
|
-
}))
|
|
65
|
+
}));
|
|
72
66
|
}
|
|
73
67
|
|
|
74
68
|
}
|
|
@@ -106,7 +100,8 @@ ContactName.defaultProps = {
|
|
|
106
100
|
dataId: 'contactName',
|
|
107
101
|
fontWeight: 'regular',
|
|
108
102
|
i18nKeys: {},
|
|
109
|
-
customProps: {}
|
|
103
|
+
customProps: {},
|
|
104
|
+
sentimentType: 'positive'
|
|
110
105
|
};
|
|
111
106
|
|
|
112
107
|
if (false) {
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
.paidUserIcon {
|
|
2
|
-
vertical-align: middle;
|
|
3
|
-
bottom: var(--zd_size1);
|
|
4
|
-
position: relative;
|
|
5
|
-
font-size: var(--zd_font_size8);
|
|
6
|
-
}[dir=ltr] .paidUserIcon {
|
|
7
|
-
margin-right: var(--zd_size5);
|
|
8
|
-
}[dir=rtl] .paidUserIcon {
|
|
9
|
-
margin-left: var(--zd_size5);
|
|
10
|
-
}
|
|
11
1
|
.icon {
|
|
12
2
|
display: block;
|
|
13
3
|
}
|
|
@@ -67,9 +57,6 @@ display: block
|
|
|
67
57
|
.ticketIdLink:hover, .ticketIdLink:focus {
|
|
68
58
|
color: var(--zdt_secondaryText_blue_hover_text);
|
|
69
59
|
}
|
|
70
|
-
.primaryAccountNameCnt {
|
|
71
|
-
max-width: 100%;
|
|
72
|
-
}
|
|
73
60
|
/* status */
|
|
74
61
|
.font_regular {
|
|
75
62
|
font-family: var(--zd_regular);
|
|
@@ -134,3 +121,31 @@ display: block
|
|
|
134
121
|
.black {
|
|
135
122
|
color: var(--zdt_secondaryText_black_text);
|
|
136
123
|
}
|
|
124
|
+
/* Contact Name */
|
|
125
|
+
.contactNameCnt {
|
|
126
|
+
display: inline-grid;
|
|
127
|
+
grid-template-columns: minmax(auto,max-content) 1fr minmax(auto,max-content);
|
|
128
|
+
align-items: baseline;
|
|
129
|
+
}
|
|
130
|
+
.paidUserIcon {
|
|
131
|
+
vertical-align: middle;
|
|
132
|
+
bottom: var(--zd_size1);
|
|
133
|
+
position: relative;
|
|
134
|
+
font-size: var(--zd_font_size8);
|
|
135
|
+
}
|
|
136
|
+
[dir=ltr] .paidUserIcon {
|
|
137
|
+
margin-right: var(--zd_size5);
|
|
138
|
+
}
|
|
139
|
+
[dir=rtl] .paidUserIcon {
|
|
140
|
+
margin-left: var(--zd_size5);
|
|
141
|
+
}
|
|
142
|
+
.gridItem {
|
|
143
|
+
min-width: 0;
|
|
144
|
+
}
|
|
145
|
+
/* Account Name */
|
|
146
|
+
.primaryAccountNameCnt {
|
|
147
|
+
max-width: 100%;
|
|
148
|
+
display: grid;
|
|
149
|
+
grid-template-columns: 1fr minmax(auto,max-content);
|
|
150
|
+
align-items: baseline;
|
|
151
|
+
}
|