@zohodesk/dot 1.0.0-temp-224.1 → 1.0.0-temp-187.22
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 +11 -6
- package/es/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -6
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +6 -2
- package/es/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/SecondaryText/AccountName.js +23 -8
- package/es/list/SecondaryText/ContactName.js +18 -6
- package/es/list/SecondaryText/DepartmentText.js +13 -6
- package/es/list/SecondaryText/Email.js +19 -7
- package/es/list/SecondaryText/PhoneNumber.js +19 -7
- package/es/list/SecondaryText/PriorityText.js +13 -6
- package/es/list/SecondaryText/SecondaryText.js +17 -8
- package/es/list/SecondaryText/SecondaryText.module.css +40 -24
- package/es/list/SecondaryText/StatusText.js +13 -6
- package/es/list/SecondaryText/TicketId.js +8 -2
- package/es/list/SecondaryText/Website.js +16 -5
- package/es/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/es/list/SecondaryText/props/defaultProps.js +18 -0
- package/es/list/SecondaryText/props/propTypes.js +21 -0
- package/es/list/Subject/Subject.js +28 -12
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/es/list/Subject/props/defaultProps.js +3 -1
- package/es/list/Subject/props/propTypes.js +5 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.js +4 -2
- package/es/list/status/StatusListItem/StatusListItem.module.css +43 -17
- package/lib/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/SecondaryText/AccountName.js +27 -8
- package/lib/list/SecondaryText/ContactName.js +21 -6
- package/lib/list/SecondaryText/DepartmentText.js +15 -6
- package/lib/list/SecondaryText/Email.js +22 -7
- package/lib/list/SecondaryText/PhoneNumber.js +22 -7
- package/lib/list/SecondaryText/PriorityText.js +15 -6
- package/lib/list/SecondaryText/SecondaryText.js +26 -8
- package/lib/list/SecondaryText/SecondaryText.module.css +40 -24
- package/lib/list/SecondaryText/StatusText.js +15 -6
- package/lib/list/SecondaryText/TicketId.js +10 -2
- package/lib/list/SecondaryText/Website.js +18 -5
- package/lib/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/lib/list/SecondaryText/props/defaultProps.js +18 -0
- package/lib/list/SecondaryText/props/propTypes.js +22 -0
- package/lib/list/Subject/Subject.js +40 -13
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/lib/list/Subject/props/defaultProps.js +3 -1
- package/lib/list/Subject/props/propTypes.js +6 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +4 -2
- package/lib/list/status/StatusListItem/StatusListItem.module.css +43 -17
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,19 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
-
# 1.9.
|
|
5
|
+
# 1.9.2
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- **Highlight options added**
|
|
8
|
+
- Account Name, Contact Name, Department Text, Email, Phone Number, Priority, StatusText, TicketID, Website and Subject components
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
- customClass prop added
|
|
11
|
-
|
|
12
|
-
# 1.8.7
|
|
10
|
+
# 1.9.1
|
|
13
11
|
|
|
14
12
|
- **CheckBoxField, CurrencyField, DateField, MultiSelectField, RadioField, SelectField, TagsMultiSelectField, TextareaField, TextBoxField, TextEditorField**
|
|
15
13
|
- Accessibility Enhanced Label component has been updated in above components
|
|
16
14
|
(v1 folder components excluded)
|
|
17
15
|
|
|
16
|
+
# 1.9.0
|
|
17
|
+
|
|
18
|
+
- Updated @zohodesk-private/color-variable-preprocessor package - Grayscale introduced
|
|
19
|
+
|
|
20
|
+
- **TextEditor**
|
|
21
|
+
- customClass prop added
|
|
22
|
+
|
|
18
23
|
# 1.8.6
|
|
19
24
|
|
|
20
25
|
- **ToggleDropdown**
|
|
@@ -73,15 +73,16 @@ exports[`CheckBoxField rendering the custom children 1`] = `
|
|
|
73
73
|
data-selector-id="fieldContainer"
|
|
74
74
|
data-test-id="containerComponent"
|
|
75
75
|
>
|
|
76
|
-
<
|
|
77
|
-
class="
|
|
78
|
-
pointer checkboxText undefined cbTextPointer "
|
|
76
|
+
<div
|
|
77
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
79
78
|
data-id="undefined_label"
|
|
80
|
-
data-selector-id="
|
|
79
|
+
data-selector-id="undefined_label"
|
|
81
80
|
data-test-id="undefined_label"
|
|
82
81
|
>
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
<label
|
|
83
|
+
class="size14 font_semibold label"
|
|
84
|
+
/>
|
|
85
|
+
</div>
|
|
85
86
|
</div>
|
|
86
87
|
</div>
|
|
87
88
|
</div>
|
|
@@ -164,15 +165,16 @@ exports[`CheckBoxField rendering the custom label children via renderLabelProps
|
|
|
164
165
|
data-selector-id="fieldContainer"
|
|
165
166
|
data-test-id="containerComponent"
|
|
166
167
|
>
|
|
167
|
-
<
|
|
168
|
-
class="
|
|
169
|
-
pointer checkboxText undefined cbTextPointer "
|
|
168
|
+
<div
|
|
169
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
170
170
|
data-id="undefined_label"
|
|
171
|
-
data-selector-id="
|
|
171
|
+
data-selector-id="undefined_label"
|
|
172
172
|
data-test-id="undefined_label"
|
|
173
173
|
>
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
<label
|
|
175
|
+
class="size14 font_semibold label"
|
|
176
|
+
/>
|
|
177
|
+
</div>
|
|
176
178
|
{}
|
|
177
179
|
</div>
|
|
178
180
|
</div>
|
|
@@ -255,15 +257,16 @@ exports[`CheckBoxField rendering the defult props 1`] = `
|
|
|
255
257
|
data-selector-id="fieldContainer"
|
|
256
258
|
data-test-id="containerComponent"
|
|
257
259
|
>
|
|
258
|
-
<
|
|
259
|
-
class="
|
|
260
|
-
pointer checkboxText undefined cbTextPointer "
|
|
260
|
+
<div
|
|
261
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
261
262
|
data-id="undefined_label"
|
|
262
|
-
data-selector-id="
|
|
263
|
+
data-selector-id="undefined_label"
|
|
263
264
|
data-test-id="undefined_label"
|
|
264
265
|
>
|
|
265
|
-
|
|
266
|
-
|
|
266
|
+
<label
|
|
267
|
+
class="size14 font_semibold label"
|
|
268
|
+
/>
|
|
269
|
+
</div>
|
|
267
270
|
</div>
|
|
268
271
|
</div>
|
|
269
272
|
</div>
|
|
@@ -226,7 +226,10 @@ position: relative;
|
|
|
226
226
|
[dir=rtl] .rightPlaceholder{
|
|
227
227
|
left:var(--zd_size15)
|
|
228
228
|
}
|
|
229
|
-
|
|
230
229
|
.phoneField{
|
|
231
230
|
composes: ltr-zone from '~@zohodesk/components/es/common/common.module.css';
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.lineClampPickListItem{
|
|
234
|
+
--line-clamp: var(--picklist-field-line-clamp,3);
|
|
232
235
|
}
|
|
@@ -160,12 +160,14 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
160
160
|
let {
|
|
161
161
|
tagCustomClass = '',
|
|
162
162
|
listItemClass = '',
|
|
163
|
-
textBoxIconWrapperClass = ''
|
|
163
|
+
textBoxIconWrapperClass = '',
|
|
164
|
+
dropBoxClass = ''
|
|
164
165
|
} = customClass;
|
|
165
166
|
const {
|
|
166
167
|
TextBoxIconProps = {},
|
|
167
168
|
TagWrapperProps = {},
|
|
168
|
-
TagProps = {}
|
|
169
|
+
TagProps = {},
|
|
170
|
+
ListItemProps = {}
|
|
169
171
|
} = customProps;
|
|
170
172
|
const isEditable = !isReadOnly;
|
|
171
173
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -254,7 +256,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
254
256
|
boxPosition: boxPosition,
|
|
255
257
|
isPadding: false,
|
|
256
258
|
customClass: {
|
|
257
|
-
customDropBoxWrap: style.dropdown
|
|
259
|
+
customDropBoxWrap: style.dropdown,
|
|
260
|
+
customDropBox: dropBoxClass
|
|
258
261
|
},
|
|
259
262
|
dataId: `${dataId}_dropbox`,
|
|
260
263
|
isResponsivePadding: true,
|
|
@@ -286,7 +289,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
286
289
|
let {
|
|
287
290
|
name,
|
|
288
291
|
isNew,
|
|
289
|
-
|
|
292
|
+
listProps
|
|
290
293
|
} = item;
|
|
291
294
|
return /*#__PURE__*/React.createElement(React.Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/React.createElement(DropDownSeparator, null) : null, /*#__PURE__*/React.createElement(ListItem, {
|
|
292
295
|
key: index,
|
|
@@ -299,8 +302,9 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
299
302
|
highlight: selectSearchIndex === index,
|
|
300
303
|
getRef: this.getSelectedItemRef,
|
|
301
304
|
isDisabled: listDisabled,
|
|
302
|
-
customProps:
|
|
303
|
-
customClass: listItemClass
|
|
305
|
+
customProps: listProps,
|
|
306
|
+
customClass: listItemClass,
|
|
307
|
+
...ListItemProps
|
|
304
308
|
}, isNew ? /*#__PURE__*/React.createElement(Container, {
|
|
305
309
|
alignBox: "row",
|
|
306
310
|
align: "vertical"
|
|
@@ -52,7 +52,8 @@ export const propTypes = {
|
|
|
52
52
|
customProps: PropTypes.shape({
|
|
53
53
|
TextBoxIconProps: PropTypes.object,
|
|
54
54
|
TagWrapperProps: PropTypes.object,
|
|
55
|
-
TagProps: PropTypes.object
|
|
55
|
+
TagProps: PropTypes.object,
|
|
56
|
+
ListItemProps: PropTypes.object
|
|
56
57
|
}),
|
|
57
58
|
isFocus: PropTypes.bool
|
|
58
59
|
};
|
|
@@ -48,15 +48,19 @@ class DepartmentDropDown extends Component {
|
|
|
48
48
|
onSearch,
|
|
49
49
|
needSearchFetching,
|
|
50
50
|
searchStr,
|
|
51
|
-
i18nKeys
|
|
51
|
+
i18nKeys,
|
|
52
|
+
customProps
|
|
52
53
|
} = this.props;
|
|
54
|
+
const {
|
|
55
|
+
ToggleDropDownProps = {}
|
|
56
|
+
} = customProps;
|
|
53
57
|
let {
|
|
54
58
|
title = 'Move Department',
|
|
55
59
|
searchEmptyText = 'No results found',
|
|
56
60
|
searchErrorText = 'No results',
|
|
57
61
|
placeholder = 'Search Department'
|
|
58
62
|
} = i18nKeys;
|
|
59
|
-
return /*#__PURE__*/React.createElement(ToggleDropDown, {
|
|
63
|
+
return /*#__PURE__*/React.createElement(ToggleDropDown, { ...ToggleDropDownProps,
|
|
60
64
|
title: title,
|
|
61
65
|
options: departmentList,
|
|
62
66
|
value: /*#__PURE__*/React.createElement(DepartmentText, {
|
|
@@ -7,6 +7,8 @@ import { AccountName_propTypes } from "./props/propTypes";
|
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
9
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
10
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
11
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
10
12
|
import Link from "../../Link/Link";
|
|
11
13
|
/**** CSS ****/
|
|
12
14
|
|
|
@@ -28,6 +30,8 @@ export default class AccountName extends Component {
|
|
|
28
30
|
secondaryAccountHref,
|
|
29
31
|
secondaryAccountClick,
|
|
30
32
|
secondaryAccountText,
|
|
33
|
+
highlightData,
|
|
34
|
+
isHighlighted,
|
|
31
35
|
customProps
|
|
32
36
|
} = this.props;
|
|
33
37
|
let {
|
|
@@ -60,18 +64,29 @@ export default class AccountName extends Component {
|
|
|
60
64
|
className: style.link,
|
|
61
65
|
...LinkProps,
|
|
62
66
|
ariaLabel: `Account Name ${text}`
|
|
63
|
-
}, /*#__PURE__*/React.createElement(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
68
|
+
$tagAttributes_text: TextProps,
|
|
69
|
+
$ui_size: "12",
|
|
70
|
+
$flag_dotted: true,
|
|
71
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`,
|
|
72
|
+
$ui_weight: fontWeight,
|
|
73
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
74
|
+
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
75
|
+
$tagAttributes_text: TextProps,
|
|
76
|
+
$ui_size: "12",
|
|
77
|
+
$flag_dotted: true,
|
|
78
|
+
$ui_className: `${style.secondaryText} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
79
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
68
80
|
}, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
69
81
|
href: secondaryAccountHref,
|
|
70
82
|
onClick: secondaryAccountClick,
|
|
71
83
|
className: style.link
|
|
72
|
-
}, /*#__PURE__*/React.createElement(
|
|
73
|
-
|
|
74
|
-
|
|
84
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
85
|
+
$tagAttributes_text: SecondaryTextProps,
|
|
86
|
+
$ui_size: "12",
|
|
87
|
+
$flag_dotted: true,
|
|
88
|
+
$ui_weight: fontWeight,
|
|
89
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`
|
|
75
90
|
}, secondaryAccountText))))));
|
|
76
91
|
}
|
|
77
92
|
|
|
@@ -2,6 +2,8 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import { ContactName_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { ContactName_propTypes } from "./props/propTypes";
|
|
4
4
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
5
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
6
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
5
7
|
import Link from "../../Link/Link";
|
|
6
8
|
import SentimentStatus from "../SentimentStatus/SentimentStatus";
|
|
7
9
|
import { Icon } from '@zohodesk/icons';
|
|
@@ -23,6 +25,8 @@ export default class ContactName extends Component {
|
|
|
23
25
|
notAccessible = false,
|
|
24
26
|
fontWeight,
|
|
25
27
|
i18nKeys,
|
|
28
|
+
highlightData,
|
|
29
|
+
isHighlighted,
|
|
26
30
|
customProps
|
|
27
31
|
} = this.props;
|
|
28
32
|
let {
|
|
@@ -62,12 +66,20 @@ export default class ContactName extends Component {
|
|
|
62
66
|
className: style.link,
|
|
63
67
|
...LinkProps,
|
|
64
68
|
ariaLabel: `Contact Name ${text}`
|
|
65
|
-
}, /*#__PURE__*/React.createElement(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
70
|
+
$flag_dotted: true,
|
|
71
|
+
$ui_size: "12",
|
|
72
|
+
$ui_weight: fontWeight,
|
|
73
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`,
|
|
74
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
75
|
+
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
76
|
+
$tagAttributes_text: TextProps,
|
|
77
|
+
$ui_size: "12",
|
|
78
|
+
$flag_dotted: true,
|
|
79
|
+
$ui_className: `${style.secondaryText} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
80
|
+
$ui_weight: fontWeight,
|
|
81
|
+
$i18n_dataTitle: dataTitle,
|
|
82
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
71
83
|
}, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
72
84
|
type: sentimentType,
|
|
73
85
|
dataTitle: sentimentDataTitle
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { DepartmentText_propTypes } from "./props/propTypes";
|
|
3
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
4
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
3
5
|
import style from "./SecondaryText.module.css";
|
|
4
6
|
export default class DepartmentText extends Component {
|
|
5
7
|
constructor(props) {
|
|
@@ -11,13 +13,18 @@ export default class DepartmentText extends Component {
|
|
|
11
13
|
className,
|
|
12
14
|
text,
|
|
13
15
|
dataTitle,
|
|
14
|
-
dataId
|
|
16
|
+
dataId,
|
|
17
|
+
isHighlighted,
|
|
18
|
+
highlightData
|
|
15
19
|
} = this.props;
|
|
16
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
return /*#__PURE__*/React.createElement(Typography, {
|
|
21
|
+
$ui_size: "12",
|
|
22
|
+
$flag_dotted: true,
|
|
23
|
+
$ui_className: `${style.departmentText} ${className ? className : ''}`,
|
|
24
|
+
$i18n_dataTitle: dataTitle,
|
|
25
|
+
customId: dataId,
|
|
26
|
+
testId: dataId,
|
|
27
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
21
28
|
}, text);
|
|
22
29
|
}
|
|
23
30
|
|
|
@@ -6,6 +6,8 @@ import { Email_defaultProps } from "./props/defaultProps";
|
|
|
6
6
|
import { Email_propTypes } from "./props/propTypes";
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
10
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
9
11
|
import Link from "../../Link/Link";
|
|
10
12
|
/**** CSS ****/
|
|
11
13
|
|
|
@@ -22,7 +24,9 @@ export default class Email extends Component {
|
|
|
22
24
|
isLink,
|
|
23
25
|
target,
|
|
24
26
|
fontWeight,
|
|
25
|
-
customProps
|
|
27
|
+
customProps,
|
|
28
|
+
isHighlighted,
|
|
29
|
+
highlightData
|
|
26
30
|
} = this.props;
|
|
27
31
|
let {
|
|
28
32
|
LinkProps = {},
|
|
@@ -36,12 +40,20 @@ export default class Email extends Component {
|
|
|
36
40
|
target: target,
|
|
37
41
|
className: style.link,
|
|
38
42
|
...LinkProps
|
|
39
|
-
}, /*#__PURE__*/React.createElement(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
44
|
+
$flag_dotted: true,
|
|
45
|
+
$ui_size: "12",
|
|
46
|
+
$ui_weight: fontWeight,
|
|
47
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`,
|
|
48
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
49
|
+
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
50
|
+
$tagAttributes_text: TextProps,
|
|
51
|
+
$ui_size: "12",
|
|
52
|
+
$flag_dotted: true,
|
|
53
|
+
$ui_className: `${style.secondaryText} ${className ? className : ''}`,
|
|
54
|
+
$ui_weight: fontWeight,
|
|
55
|
+
$i18n_dataTitle: title,
|
|
56
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
45
57
|
}, text));
|
|
46
58
|
}
|
|
47
59
|
|
|
@@ -6,6 +6,8 @@ import { PhoneNumber_defaultProps } from "./props/defaultProps";
|
|
|
6
6
|
import { PhoneNumber_propTypes } from "./props/propTypes";
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
10
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
9
11
|
import Link from "../../Link/Link";
|
|
10
12
|
/**** CSS ****/
|
|
11
13
|
|
|
@@ -24,7 +26,9 @@ export default class PhoneNumber extends Component {
|
|
|
24
26
|
target,
|
|
25
27
|
hasReload,
|
|
26
28
|
fontWeight,
|
|
27
|
-
customProps
|
|
29
|
+
customProps,
|
|
30
|
+
isHighlighted,
|
|
31
|
+
highlightData
|
|
28
32
|
} = this.props;
|
|
29
33
|
let {
|
|
30
34
|
LinkProps = {},
|
|
@@ -40,12 +44,20 @@ export default class PhoneNumber extends Component {
|
|
|
40
44
|
hasReload: hasReload,
|
|
41
45
|
className: style.link,
|
|
42
46
|
...LinkProps
|
|
43
|
-
}, /*#__PURE__*/React.createElement(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
48
|
+
$ui_size: "12",
|
|
49
|
+
$flag_dotted: true,
|
|
50
|
+
$ui_className: `${style.phoneNumber} ${style.phonetxt} ${className ? className : ''}`,
|
|
51
|
+
$ui_weight: fontWeight,
|
|
52
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
53
|
+
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
54
|
+
$tagAttributes_text: TextProps,
|
|
55
|
+
$ui_className: `${style.secondaryText} ${style.phonetxt} ${className ? className : ''}`,
|
|
56
|
+
$ui_weight: fontWeight,
|
|
57
|
+
$ui_size: "12",
|
|
58
|
+
$flag_dotted: true,
|
|
59
|
+
$i18n_dataTitle: title,
|
|
60
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
49
61
|
}, text));
|
|
50
62
|
}
|
|
51
63
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { PriorityText_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { PriorityText_propTypes } from "./props/propTypes";
|
|
4
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
5
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
4
6
|
import style from "./SecondaryText.module.css";
|
|
5
7
|
export default class PriorityText extends Component {
|
|
6
8
|
constructor(props) {
|
|
@@ -13,13 +15,18 @@ export default class PriorityText extends Component {
|
|
|
13
15
|
color,
|
|
14
16
|
text,
|
|
15
17
|
dataTitle,
|
|
16
|
-
dataId
|
|
18
|
+
dataId,
|
|
19
|
+
isHighlighted,
|
|
20
|
+
highlightData
|
|
17
21
|
} = this.props;
|
|
18
|
-
return /*#__PURE__*/React.createElement(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
22
|
+
return /*#__PURE__*/React.createElement(Typography, {
|
|
23
|
+
$ui_className: `${style.priorityText} ${style[color]} ${className ? className : ''}`,
|
|
24
|
+
$flag_dotted: true,
|
|
25
|
+
$ui_size: "12",
|
|
26
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT,
|
|
27
|
+
$i18n_dataTitle: dataTitle,
|
|
28
|
+
customId: dataId,
|
|
29
|
+
testId: dataId
|
|
23
30
|
}, text);
|
|
24
31
|
}
|
|
25
32
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { SecondaryText_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { SecondaryText_propTypes } from "./props/propTypes";
|
|
4
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
5
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
4
6
|
import style from "./SecondaryText.module.css";
|
|
5
7
|
export default class SecondaryText extends Component {
|
|
6
8
|
constructor(props) {
|
|
@@ -14,18 +16,25 @@ export default class SecondaryText extends Component {
|
|
|
14
16
|
dataTitle,
|
|
15
17
|
dataId,
|
|
16
18
|
onClick,
|
|
17
|
-
customProps
|
|
19
|
+
customProps,
|
|
20
|
+
isHighlighted,
|
|
21
|
+
highlightData
|
|
18
22
|
} = this.props;
|
|
19
23
|
let {
|
|
20
24
|
SecondaryTextProps
|
|
21
25
|
} = customProps;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const tagAttributes = { ...SecondaryTextProps,
|
|
27
|
+
onClick
|
|
28
|
+
};
|
|
29
|
+
return /*#__PURE__*/React.createElement(Typography, {
|
|
30
|
+
$tagAttributes_text: tagAttributes,
|
|
31
|
+
$ui_size: "12",
|
|
32
|
+
$flag_dotted: true,
|
|
33
|
+
$ui_className: `${style.secondaryText} ${className ? className : ''}`,
|
|
34
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT,
|
|
35
|
+
$i18n_dataTitle: dataTitle,
|
|
36
|
+
customId: dataId,
|
|
37
|
+
testId: dataId
|
|
29
38
|
}, text);
|
|
30
39
|
}
|
|
31
40
|
|