@zohodesk/dot 1.0.0-temp-218.4 → 1.0.0-temp-224
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/form/fields/CheckBoxField/CheckBoxField.js +12 -8
- package/es/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/es/form/fields/DateField/DateField.js +12 -7
- package/es/form/fields/MultiSelectField/MultiSelectField.js +20 -18
- package/es/form/fields/RadioField/RadioField.js +10 -5
- package/es/form/fields/SelectField/SelectField.js +12 -7
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -7
- package/es/form/fields/TextBoxField/TextBoxField.js +11 -6
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/es/form/fields/TextareaField/TextareaField.js +10 -5
- package/es/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/es/list/SecondaryText/AccountName.js +8 -23
- package/es/list/SecondaryText/ContactName.js +6 -18
- package/es/list/SecondaryText/DepartmentText.js +6 -13
- package/es/list/SecondaryText/Email.js +7 -19
- package/es/list/SecondaryText/PhoneNumber.js +7 -19
- package/es/list/SecondaryText/PriorityText.js +6 -13
- package/es/list/SecondaryText/SecondaryText.js +8 -17
- package/es/list/SecondaryText/SecondaryText.module.css +24 -40
- package/es/list/SecondaryText/StatusText.js +6 -13
- package/es/list/SecondaryText/TicketId.js +2 -8
- package/es/list/SecondaryText/Website.js +5 -16
- 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 +2 -6
- package/es/list/SecondaryText/props/defaultProps.js +0 -18
- package/es/list/SecondaryText/props/propTypes.js +0 -21
- package/es/list/Subject/Subject.js +12 -28
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/es/list/Subject/props/defaultProps.js +1 -3
- package/es/list/Subject/props/propTypes.js +1 -5
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +13 -9
- package/lib/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/lib/form/fields/DateField/DateField.js +13 -9
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +19 -18
- package/lib/form/fields/RadioField/RadioField.js +10 -5
- package/lib/form/fields/SelectField/SelectField.js +12 -8
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -7
- package/lib/form/fields/TextBoxField/TextBoxField.js +11 -7
- package/lib/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/lib/form/fields/TextareaField/TextareaField.js +10 -5
- package/lib/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/lib/list/SecondaryText/AccountName.js +8 -27
- package/lib/list/SecondaryText/ContactName.js +6 -21
- package/lib/list/SecondaryText/DepartmentText.js +6 -15
- package/lib/list/SecondaryText/Email.js +7 -22
- package/lib/list/SecondaryText/PhoneNumber.js +7 -22
- package/lib/list/SecondaryText/PriorityText.js +6 -15
- package/lib/list/SecondaryText/SecondaryText.js +8 -26
- package/lib/list/SecondaryText/SecondaryText.module.css +24 -40
- package/lib/list/SecondaryText/StatusText.js +6 -15
- package/lib/list/SecondaryText/TicketId.js +2 -10
- package/lib/list/SecondaryText/Website.js +5 -18
- 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 +2 -6
- package/lib/list/SecondaryText/props/defaultProps.js +0 -18
- package/lib/list/SecondaryText/props/propTypes.js +0 -22
- package/lib/list/Subject/Subject.js +13 -40
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/lib/list/Subject/props/defaultProps.js +1 -3
- package/lib/list/Subject/props/propTypes.js +1 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,6 +4,12 @@ In this Library, we Provide Some Basic Components to Build Your Application
|
|
|
4
4
|
|
|
5
5
|
# 1.8.6
|
|
6
6
|
|
|
7
|
+
- **LabelEnhancedComponent-V1**
|
|
8
|
+
- Accessibility Enhanced Label component has been updated in below components
|
|
9
|
+
- `CheckBoxField`, `CurrencyField`, `DateField`, `MultiSelectField`, `RadioField`, `SelectField`, `TagsMultiSelectField`, `TextareaField`, `TextBoxField`, `TextEditorField` (v1 folder components excluded)
|
|
10
|
+
|
|
11
|
+
# 1.8.6
|
|
12
|
+
|
|
7
13
|
- **ToggleDropdown**
|
|
8
14
|
- `palette` supported for the `options` prop
|
|
9
15
|
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import CheckBox from '@zohodesk/components/es/CheckBox/CheckBox';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
@@ -87,15 +87,19 @@ export default class CheckBoxField extends PureComponent {
|
|
|
87
87
|
renderProps: renderLabelProps
|
|
88
88
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
89
89
|
text: labelName,
|
|
90
|
-
|
|
90
|
+
isRequired: isMandatory,
|
|
91
|
+
isDisabled: isDisabled,
|
|
92
|
+
isReadOnly: isReadOnly,
|
|
93
|
+
palette: labelPalette,
|
|
94
|
+
customClass: {
|
|
95
|
+
label: labelCustomClass,
|
|
96
|
+
container: !isDirectCol ? style.checkboxText : ''
|
|
97
|
+
},
|
|
91
98
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
title: labelName,
|
|
99
|
+
textWeight: isDirectCol ? 'regular' : 'semibold',
|
|
100
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
101
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
96
102
|
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
97
|
-
variant: isDirectCol ? 'default' : 'primary',
|
|
98
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
99
103
|
...LabelProps
|
|
100
104
|
}));
|
|
101
105
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import TextBoxIcon from '@zohodesk/components/es/TextBoxIcon/TextBoxIcon';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -129,11 +129,17 @@ export default class CurrencyField extends PureComponent {
|
|
|
129
129
|
renderProps: renderLabelProps
|
|
130
130
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
131
131
|
text: labelName,
|
|
132
|
+
isRequired: isMandatory,
|
|
133
|
+
isDisabled: isDisabled,
|
|
134
|
+
isReadOnly: isReadOnly,
|
|
135
|
+
palette: labelPalette,
|
|
136
|
+
customClass: {
|
|
137
|
+
label: labelCustomClass
|
|
138
|
+
},
|
|
132
139
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
133
|
-
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
134
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
135
140
|
htmlFor: uniqueId,
|
|
136
|
-
|
|
141
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
142
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
137
143
|
...LabelProps
|
|
138
144
|
})), /*#__PURE__*/React.createElement("div", {
|
|
139
145
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import DateWidget from '@zohodesk/components/es/DateTime/DateWidget';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -133,14 +133,19 @@ export default class DateField extends PureComponent {
|
|
|
133
133
|
renderProps: renderLabelProps
|
|
134
134
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
135
135
|
text: labelName,
|
|
136
|
-
|
|
136
|
+
isRequired: isMandatory,
|
|
137
|
+
isDisabled: isDisabled,
|
|
138
|
+
isReadOnly: isReadOnly,
|
|
139
|
+
palette: labelPalette,
|
|
140
|
+
customClass: {
|
|
141
|
+
label: labelCustomClass
|
|
142
|
+
},
|
|
137
143
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
138
|
-
|
|
144
|
+
htmlFor: getAriaId,
|
|
145
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
146
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
139
147
|
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
140
|
-
|
|
141
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
142
|
-
...LabelProps,
|
|
143
|
-
id: labelName
|
|
148
|
+
...LabelProps
|
|
144
149
|
})), /*#__PURE__*/React.createElement("div", {
|
|
145
150
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
146
151
|
}, isLocked && lockedValueText ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import MultiSelect from '@zohodesk/components/es/MultiSelect/MultiSelect';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -17,8 +17,8 @@ export default class MultiSelectField extends PureComponent {
|
|
|
17
17
|
super(props);
|
|
18
18
|
this.handleChange = this.handleChange.bind(this);
|
|
19
19
|
this.handleGetRef = this.handleGetRef.bind(this);
|
|
20
|
-
this.onDropBoxOpen = this.onDropBoxOpen.bind(this);
|
|
21
|
-
|
|
20
|
+
this.onDropBoxOpen = this.onDropBoxOpen.bind(this);
|
|
21
|
+
this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
22
22
|
this.onSearch = this.onSearch.bind(this);
|
|
23
23
|
this.getNextOptions = this.getNextOptions.bind(this);
|
|
24
24
|
this.getNextId = getUniqueId(this);
|
|
@@ -67,17 +67,17 @@ export default class MultiSelectField extends PureComponent {
|
|
|
67
67
|
} = this.props;
|
|
68
68
|
this.multiSelectBox = el;
|
|
69
69
|
getRef && getRef(el, id);
|
|
70
|
-
}
|
|
71
|
-
// let { isFocusOnLabelClick } = this.props;
|
|
72
|
-
// if (
|
|
73
|
-
// isFocusOnLabelClick &&
|
|
74
|
-
// this.multiSelectBox &&
|
|
75
|
-
// this.multiSelectBox.focus
|
|
76
|
-
// ) {
|
|
77
|
-
// this.multiSelectBox.focus();
|
|
78
|
-
// }
|
|
79
|
-
// }
|
|
70
|
+
}
|
|
80
71
|
|
|
72
|
+
handleLabelClick() {
|
|
73
|
+
let {
|
|
74
|
+
isFocusOnLabelClick
|
|
75
|
+
} = this.props;
|
|
76
|
+
|
|
77
|
+
if (isFocusOnLabelClick && this.multiSelectBox && this.multiSelectBox.focus) {
|
|
78
|
+
this.multiSelectBox.focus();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
81
|
|
|
82
82
|
render() {
|
|
83
83
|
let {
|
|
@@ -145,13 +145,15 @@ export default class MultiSelectField extends PureComponent {
|
|
|
145
145
|
renderProps: renderLabelProps
|
|
146
146
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
147
147
|
text: labelName,
|
|
148
|
-
|
|
148
|
+
isRequired: isMandatory,
|
|
149
|
+
isDisabled: isDisabled,
|
|
150
|
+
isReadOnly: isReadOnly,
|
|
151
|
+
palette: labelPalette,
|
|
149
152
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
150
|
-
|
|
153
|
+
htmlFor: uniqueId // onClick={this.handleLabelClick}
|
|
151
154
|
,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
htmlFor: uniqueId,
|
|
155
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
156
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
155
157
|
...LabelProps
|
|
156
158
|
})), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
157
159
|
options: options,
|
|
@@ -6,7 +6,7 @@ import { propTypes } from "./props/propTypes";
|
|
|
6
6
|
/**** Components ****/
|
|
7
7
|
|
|
8
8
|
import Icon from '@zohodesk/icons/es/Icon';
|
|
9
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
9
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
10
10
|
import Radio from '@zohodesk/components/es/Radio/Radio';
|
|
11
11
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
12
12
|
/** Css */
|
|
@@ -123,10 +123,15 @@ export default class RadioField extends PureComponent {
|
|
|
123
123
|
}, labelName && /*#__PURE__*/React.createElement(Label, {
|
|
124
124
|
text: labelName,
|
|
125
125
|
size: "medium",
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
isRequired: isMandatory,
|
|
127
|
+
isDisabled: isDisabled,
|
|
128
|
+
isReadOnly: isReadOnly,
|
|
129
|
+
palette: labelPalette,
|
|
130
|
+
customClass: {
|
|
131
|
+
label: customLabelClass
|
|
132
|
+
},
|
|
133
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
134
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
130
135
|
...LabelProps
|
|
131
136
|
}), /*#__PURE__*/React.createElement("div", {
|
|
132
137
|
className: `${style.fieldContainer} ${isBoxStyle ? style.radiosWrapper : ''} ${labelName ? isBoxStyle ? style.fieldMargin_large : style.fieldMargin_medium : ''} ${style.radioContainer}`
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import Select from '@zohodesk/components/es/Select/Select';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -115,13 +115,18 @@ export default class SelectField extends PureComponent {
|
|
|
115
115
|
renderProps: renderLabelProps
|
|
116
116
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
117
117
|
text: labelName,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
isRequired: isMandatory,
|
|
119
|
+
isDisabled: isDisabled,
|
|
120
|
+
isReadOnly: isReadOnly,
|
|
121
|
+
palette: labelPalette,
|
|
122
|
+
customClass: {
|
|
123
|
+
label: labelCustomClass
|
|
124
|
+
},
|
|
121
125
|
htmlFor: uniqueId,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
127
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
128
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
129
|
+
...LabelProps
|
|
125
130
|
})), /*#__PURE__*/React.createElement("div", {
|
|
126
131
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
127
132
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
4
|
import { Box } from '@zohodesk/components/es/Layout';
|
|
5
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
5
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
6
6
|
import Popup from '@zohodesk/components/es/Popup/Popup';
|
|
7
7
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
8
8
|
import TagsMultiSelect from "../TagsMultiSelect/TagsMultiSelect";
|
|
@@ -206,13 +206,17 @@ const TagsMultiSelectField = props => {
|
|
|
206
206
|
}
|
|
207
207
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
208
208
|
text: labelName,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
palette:
|
|
213
|
-
customClass:
|
|
214
|
-
|
|
209
|
+
isRequired: isMandatory,
|
|
210
|
+
isDisabled: isDisabled,
|
|
211
|
+
isReadOnly: isReadOnly,
|
|
212
|
+
palette: labelPalette,
|
|
213
|
+
customClass: {
|
|
214
|
+
label: labelClass
|
|
215
|
+
},
|
|
215
216
|
htmlFor: htmlId,
|
|
217
|
+
size: labelSize,
|
|
218
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
219
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
216
220
|
...LabelProps
|
|
217
221
|
}), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
|
|
218
222
|
dataId: `${dataId}_tagCount`,
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import TextBoxIcon from '@zohodesk/components/es/TextBoxIcon/TextBoxIcon';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -103,13 +103,18 @@ export default class TextBoxField extends PureComponent {
|
|
|
103
103
|
renderProps: renderLabelProps
|
|
104
104
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
105
105
|
text: labelName,
|
|
106
|
+
isRequired: isMandatory,
|
|
107
|
+
isDisabled: isDisabled,
|
|
108
|
+
isReadOnly: isReadOnly,
|
|
109
|
+
palette: labelPalette,
|
|
110
|
+
customClass: {
|
|
111
|
+
label: labelCustomClass
|
|
112
|
+
},
|
|
106
113
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
107
|
-
|
|
108
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
114
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
109
115
|
htmlFor: uniqueId,
|
|
110
|
-
|
|
111
|
-
...LabelProps
|
|
112
|
-
id: labelName
|
|
116
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
117
|
+
...LabelProps
|
|
113
118
|
})), /*#__PURE__*/React.createElement("div", {
|
|
114
119
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
115
120
|
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
9
9
|
import TextEditorWrapper from "../TextEditorWrapper/TextEditorWrapper";
|
|
10
10
|
import FieldContainer from "../FieldContainer/FieldContainer";
|
|
@@ -122,10 +122,16 @@ export default class TextEditorField extends PureComponent {
|
|
|
122
122
|
text: labelName,
|
|
123
123
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
124
124
|
htmlFor: !isReadOnly && !isDisabled ? id : undefined,
|
|
125
|
-
|
|
125
|
+
isRequired: isMandatory,
|
|
126
|
+
isDisabled: isDisabled,
|
|
127
|
+
isReadOnly: isReadOnly,
|
|
128
|
+
palette: labelPalette,
|
|
126
129
|
onClick: this.handleLabelClick,
|
|
127
|
-
customClass:
|
|
128
|
-
|
|
130
|
+
customClass: {
|
|
131
|
+
label: labelCustomClass
|
|
132
|
+
},
|
|
133
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
134
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
129
135
|
...LabelProps
|
|
130
136
|
})), /*#__PURE__*/React.createElement("div", {
|
|
131
137
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
@@ -4,7 +4,7 @@ import { defaultProps } from "./props/defaultProps";
|
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
|
-
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
|
+
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
8
|
import Textarea from '@zohodesk/components/es/Textarea/Textarea';
|
|
9
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -131,12 +131,17 @@ export default class TextareaField extends PureComponent {
|
|
|
131
131
|
renderProps: renderLabelProps
|
|
132
132
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
133
133
|
text: labelName,
|
|
134
|
-
|
|
134
|
+
isRequired: isMandatory,
|
|
135
|
+
isDisabled: isDisabled,
|
|
136
|
+
isReadOnly: isReadOnly,
|
|
137
|
+
palette: labelPalette,
|
|
138
|
+
customClass: {
|
|
139
|
+
label: labelCustomClass
|
|
140
|
+
},
|
|
135
141
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
136
|
-
|
|
137
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
142
|
+
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
138
143
|
htmlFor: uniqueId,
|
|
139
|
-
|
|
144
|
+
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
140
145
|
...LabelProps
|
|
141
146
|
})), /*#__PURE__*/React.createElement("div", {
|
|
142
147
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
@@ -7,8 +7,6 @@ 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';
|
|
12
10
|
import Link from "../../Link/Link";
|
|
13
11
|
/**** CSS ****/
|
|
14
12
|
|
|
@@ -30,8 +28,6 @@ export default class AccountName extends Component {
|
|
|
30
28
|
secondaryAccountHref,
|
|
31
29
|
secondaryAccountClick,
|
|
32
30
|
secondaryAccountText,
|
|
33
|
-
highlightData,
|
|
34
|
-
isHighlighted,
|
|
35
31
|
customProps
|
|
36
32
|
} = this.props;
|
|
37
33
|
let {
|
|
@@ -64,29 +60,18 @@ export default class AccountName extends Component {
|
|
|
64
60
|
className: style.link,
|
|
65
61
|
...LinkProps,
|
|
66
62
|
ariaLabel: `Account Name ${text}`
|
|
67
|
-
}, /*#__PURE__*/React.createElement(
|
|
68
|
-
$
|
|
69
|
-
|
|
70
|
-
$
|
|
71
|
-
|
|
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
|
|
63
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
65
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
67
|
+
...TextProps
|
|
80
68
|
}, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
81
69
|
href: secondaryAccountHref,
|
|
82
70
|
onClick: secondaryAccountClick,
|
|
83
71
|
className: style.link
|
|
84
|
-
}, /*#__PURE__*/React.createElement(
|
|
85
|
-
$
|
|
86
|
-
|
|
87
|
-
$flag_dotted: true,
|
|
88
|
-
$ui_weight: fontWeight,
|
|
89
|
-
$ui_className: `${style.linkWithText} ${className ? className : ''}`
|
|
72
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
74
|
+
...SecondaryTextProps
|
|
90
75
|
}, secondaryAccountText))))));
|
|
91
76
|
}
|
|
92
77
|
|
|
@@ -2,8 +2,6 @@ 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';
|
|
7
5
|
import Link from "../../Link/Link";
|
|
8
6
|
import SentimentStatus from "../SentimentStatus/SentimentStatus";
|
|
9
7
|
import { Icon } from '@zohodesk/icons';
|
|
@@ -25,8 +23,6 @@ export default class ContactName extends Component {
|
|
|
25
23
|
notAccessible = false,
|
|
26
24
|
fontWeight,
|
|
27
25
|
i18nKeys,
|
|
28
|
-
highlightData,
|
|
29
|
-
isHighlighted,
|
|
30
26
|
customProps
|
|
31
27
|
} = this.props;
|
|
32
28
|
let {
|
|
@@ -66,20 +62,12 @@ export default class ContactName extends Component {
|
|
|
66
62
|
className: style.link,
|
|
67
63
|
...LinkProps,
|
|
68
64
|
ariaLabel: `Contact Name ${text}`
|
|
69
|
-
}, /*#__PURE__*/React.createElement(
|
|
70
|
-
$
|
|
71
|
-
|
|
72
|
-
$
|
|
73
|
-
|
|
74
|
-
|
|
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
|
|
65
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
67
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
69
|
+
"data-title": dataTitle,
|
|
70
|
+
...TextProps
|
|
83
71
|
}, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
84
72
|
type: sentimentType,
|
|
85
73
|
dataTitle: sentimentDataTitle
|
|
@@ -1,7 +1,5 @@
|
|
|
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';
|
|
5
3
|
import style from "./SecondaryText.module.css";
|
|
6
4
|
export default class DepartmentText extends Component {
|
|
7
5
|
constructor(props) {
|
|
@@ -13,18 +11,13 @@ export default class DepartmentText extends Component {
|
|
|
13
11
|
className,
|
|
14
12
|
text,
|
|
15
13
|
dataTitle,
|
|
16
|
-
dataId
|
|
17
|
-
isHighlighted,
|
|
18
|
-
highlightData
|
|
14
|
+
dataId
|
|
19
15
|
} = this.props;
|
|
20
|
-
return /*#__PURE__*/React.createElement(
|
|
21
|
-
$
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
customId: dataId,
|
|
26
|
-
testId: dataId,
|
|
27
|
-
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: `${style.departmentText} ${className ? className : ''}`,
|
|
18
|
+
"data-title": dataTitle,
|
|
19
|
+
"data-id": dataId,
|
|
20
|
+
"data-test-id": dataId
|
|
28
21
|
}, text);
|
|
29
22
|
}
|
|
30
23
|
|
|
@@ -6,8 +6,6 @@ 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';
|
|
11
9
|
import Link from "../../Link/Link";
|
|
12
10
|
/**** CSS ****/
|
|
13
11
|
|
|
@@ -24,9 +22,7 @@ export default class Email extends Component {
|
|
|
24
22
|
isLink,
|
|
25
23
|
target,
|
|
26
24
|
fontWeight,
|
|
27
|
-
customProps
|
|
28
|
-
isHighlighted,
|
|
29
|
-
highlightData
|
|
25
|
+
customProps
|
|
30
26
|
} = this.props;
|
|
31
27
|
let {
|
|
32
28
|
LinkProps = {},
|
|
@@ -40,20 +36,12 @@ export default class Email extends Component {
|
|
|
40
36
|
target: target,
|
|
41
37
|
className: style.link,
|
|
42
38
|
...LinkProps
|
|
43
|
-
}, /*#__PURE__*/React.createElement(
|
|
44
|
-
$
|
|
45
|
-
|
|
46
|
-
$
|
|
47
|
-
|
|
48
|
-
|
|
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
|
|
39
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
41
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
43
|
+
"data-title": title,
|
|
44
|
+
...TextProps
|
|
57
45
|
}, text));
|
|
58
46
|
}
|
|
59
47
|
|
|
@@ -6,8 +6,6 @@ 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';
|
|
11
9
|
import Link from "../../Link/Link";
|
|
12
10
|
/**** CSS ****/
|
|
13
11
|
|
|
@@ -26,9 +24,7 @@ export default class PhoneNumber extends Component {
|
|
|
26
24
|
target,
|
|
27
25
|
hasReload,
|
|
28
26
|
fontWeight,
|
|
29
|
-
customProps
|
|
30
|
-
isHighlighted,
|
|
31
|
-
highlightData
|
|
27
|
+
customProps
|
|
32
28
|
} = this.props;
|
|
33
29
|
let {
|
|
34
30
|
LinkProps = {},
|
|
@@ -44,20 +40,12 @@ export default class PhoneNumber extends Component {
|
|
|
44
40
|
hasReload: hasReload,
|
|
45
41
|
className: style.link,
|
|
46
42
|
...LinkProps
|
|
47
|
-
}, /*#__PURE__*/React.createElement(
|
|
48
|
-
$
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
|
43
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: `${style.phoneNumber} ${style.phonetxt} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
45
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: `${style.secondaryText} ${style.phonetxt} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
47
|
+
"data-title": title,
|
|
48
|
+
...TextProps
|
|
61
49
|
}, text));
|
|
62
50
|
}
|
|
63
51
|
|