@zohodesk/dot 1.9.0 → 1.9.2

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.
Files changed (78) hide show
  1. package/README.md +12 -1
  2. package/es/form/fields/CheckBoxField/CheckBoxField.js +17 -8
  3. package/es/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
  4. package/es/form/fields/CurrencyField/CurrencyField.js +10 -4
  5. package/es/form/fields/DateField/DateField.js +17 -7
  6. package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -6
  7. package/es/form/fields/RadioField/RadioField.js +15 -5
  8. package/es/form/fields/SelectField/SelectField.js +17 -7
  9. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
  10. package/es/form/fields/TextBoxField/TextBoxField.js +16 -6
  11. package/es/form/fields/TextEditorField/TextEditorField.js +10 -4
  12. package/es/form/fields/TextareaField/TextareaField.js +15 -5
  13. package/es/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
  14. package/es/list/SecondaryText/AccountName.js +23 -8
  15. package/es/list/SecondaryText/ContactName.js +18 -6
  16. package/es/list/SecondaryText/DepartmentText.js +13 -6
  17. package/es/list/SecondaryText/Email.js +19 -7
  18. package/es/list/SecondaryText/PhoneNumber.js +19 -7
  19. package/es/list/SecondaryText/PriorityText.js +13 -6
  20. package/es/list/SecondaryText/SecondaryText.js +17 -8
  21. package/es/list/SecondaryText/SecondaryText.module.css +40 -24
  22. package/es/list/SecondaryText/StatusText.js +13 -6
  23. package/es/list/SecondaryText/TicketId.js +8 -2
  24. package/es/list/SecondaryText/Website.js +16 -5
  25. package/es/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
  26. package/es/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
  27. package/es/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
  28. package/es/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
  29. package/es/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
  30. package/es/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
  31. package/es/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
  32. package/es/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
  33. package/es/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
  34. package/es/list/SecondaryText/props/defaultProps.js +18 -0
  35. package/es/list/SecondaryText/props/propTypes.js +21 -0
  36. package/es/list/Subject/Subject.js +28 -12
  37. package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
  38. package/es/list/Subject/props/defaultProps.js +3 -1
  39. package/es/list/Subject/props/propTypes.js +5 -1
  40. package/lib/form/fields/CheckBoxField/CheckBoxField.js +17 -8
  41. package/lib/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
  42. package/lib/form/fields/CurrencyField/CurrencyField.js +10 -4
  43. package/lib/form/fields/DateField/DateField.js +17 -8
  44. package/lib/form/fields/MultiSelectField/MultiSelectField.js +13 -6
  45. package/lib/form/fields/RadioField/RadioField.js +15 -5
  46. package/lib/form/fields/SelectField/SelectField.js +17 -8
  47. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
  48. package/lib/form/fields/TextBoxField/TextBoxField.js +16 -7
  49. package/lib/form/fields/TextEditorField/TextEditorField.js +10 -4
  50. package/lib/form/fields/TextareaField/TextareaField.js +15 -5
  51. package/lib/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
  52. package/lib/list/SecondaryText/AccountName.js +27 -8
  53. package/lib/list/SecondaryText/ContactName.js +21 -6
  54. package/lib/list/SecondaryText/DepartmentText.js +15 -6
  55. package/lib/list/SecondaryText/Email.js +22 -7
  56. package/lib/list/SecondaryText/PhoneNumber.js +22 -7
  57. package/lib/list/SecondaryText/PriorityText.js +15 -6
  58. package/lib/list/SecondaryText/SecondaryText.js +26 -8
  59. package/lib/list/SecondaryText/SecondaryText.module.css +40 -24
  60. package/lib/list/SecondaryText/StatusText.js +15 -6
  61. package/lib/list/SecondaryText/TicketId.js +10 -2
  62. package/lib/list/SecondaryText/Website.js +18 -5
  63. package/lib/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
  64. package/lib/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
  65. package/lib/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
  66. package/lib/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
  67. package/lib/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
  68. package/lib/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
  69. package/lib/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
  70. package/lib/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
  71. package/lib/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
  72. package/lib/list/SecondaryText/props/defaultProps.js +18 -0
  73. package/lib/list/SecondaryText/props/propTypes.js +22 -0
  74. package/lib/list/Subject/Subject.js +40 -13
  75. package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
  76. package/lib/list/Subject/props/defaultProps.js +3 -1
  77. package/lib/list/Subject/props/propTypes.js +6 -1
  78. package/package.json +7 -7
package/README.md CHANGED
@@ -2,13 +2,24 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
+ # 1.9.2
6
+
7
+ - **Highlight options added**
8
+ - Account Name, Contact Name, Department Text, Email, Phone Number, Priority, StatusText, TicketID, Website and Subject components
9
+
10
+ # 1.9.1
11
+
12
+ - **CheckBoxField, CurrencyField, DateField, MultiSelectField, RadioField, SelectField, TagsMultiSelectField, TextareaField, TextBoxField, TextEditorField**
13
+ - Accessibility Enhanced Label component has been updated in above components
14
+ (v1 folder components excluded)
15
+
5
16
  # 1.9.0
6
17
 
7
18
  - Updated @zohodesk-private/color-variable-preprocessor package - Grayscale introduced
8
19
 
9
20
  - **TextEditor**
10
21
  - customClass prop added
11
-
22
+
12
23
  # 1.8.6
13
24
 
14
25
  - **ToggleDropdown**
@@ -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,24 @@ export default class CheckBoxField extends PureComponent {
87
87
  renderProps: renderLabelProps
88
88
  }, /*#__PURE__*/React.createElement(Label, {
89
89
  text: labelName,
90
- id: id,
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
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
93
- infoText: infoText,
94
- customClass: `${!isDirectCol ? style.checkboxText : ''} ${!isDirectCol ? style[`lineClamp_${lineClamp}`] : ''} ${isReadOnly || isDisabled ? style.cbTextReadonly : style.cbTextPointer} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
95
- title: labelName,
99
+ fontWeight: 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`,
103
+ tagAttributes: {
104
+ label: {
105
+ id
106
+ }
107
+ },
99
108
  ...LabelProps
100
109
  }));
101
110
  return /*#__PURE__*/React.createElement("div", {
@@ -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
- <label
77
- class="label title medium default font_primary
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="label"
79
+ data-selector-id="undefined_label"
81
80
  data-test-id="undefined_label"
82
81
  >
83
- Label
84
- </label>
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
- <label
168
- class="label title medium default font_primary
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="label"
171
+ data-selector-id="undefined_label"
172
172
  data-test-id="undefined_label"
173
173
  >
174
- Label
175
- </label>
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
- <label
259
- class="label title medium default font_primary
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="label"
263
+ data-selector-id="undefined_label"
263
264
  data-test-id="undefined_label"
264
265
  >
265
- Label
266
- </label>
266
+ <label
267
+ class="size14 font_semibold label"
268
+ />
269
+ </div>
267
270
  </div>
268
271
  </div>
269
272
  </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
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
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,24 @@ export default class DateField extends PureComponent {
133
133
  renderProps: renderLabelProps
134
134
  }, /*#__PURE__*/React.createElement(Label, {
135
135
  text: labelName,
136
- htmlFor: getAriaId,
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
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
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
- customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
141
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
142
- ...LabelProps,
143
- id: labelName
148
+ tagAttributes: {
149
+ label: {
150
+ id: labelName
151
+ }
152
+ },
153
+ ...LabelProps
144
154
  })), /*#__PURE__*/React.createElement("div", {
145
155
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
146
156
  }, 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';
@@ -145,13 +145,20 @@ export default class MultiSelectField extends PureComponent {
145
145
  renderProps: renderLabelProps
146
146
  }, /*#__PURE__*/React.createElement(Label, {
147
147
  text: labelName,
148
- id: id,
148
+ isRequired: isMandatory,
149
+ isDisabled: isDisabled,
150
+ isReadOnly: isReadOnly,
151
+ palette: labelPalette,
149
152
  size: fieldSize === 'small' ? 'small' : 'medium',
150
- palette: isDarkPalette ? 'dark' : isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette // onClick={this.handleLabelClick}
153
+ htmlFor: uniqueId // onClick={this.handleLabelClick}
151
154
  ,
152
- customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
153
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
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`,
157
+ tagAttributes: {
158
+ label: {
159
+ id
160
+ }
161
+ },
155
162
  ...LabelProps
156
163
  })), /*#__PURE__*/React.createElement(MultiSelect, {
157
164
  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,20 @@ export default class RadioField extends PureComponent {
123
123
  }, labelName && /*#__PURE__*/React.createElement(Label, {
124
124
  text: labelName,
125
125
  size: "medium",
126
- id: id,
127
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default',
128
- customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''} ${customLabelClass}`,
129
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
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`,
135
+ tagAttributes: {
136
+ label: {
137
+ id
138
+ }
139
+ },
130
140
  ...LabelProps
131
141
  }), /*#__PURE__*/React.createElement("div", {
132
142
  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,23 @@ export default class SelectField extends PureComponent {
115
115
  renderProps: renderLabelProps
116
116
  }, /*#__PURE__*/React.createElement(Label, {
117
117
  text: labelName,
118
- size: fieldSize === 'small' ? 'small' : 'medium',
119
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
120
- customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
118
+ isRequired: isMandatory,
119
+ isDisabled: isDisabled,
120
+ isReadOnly: isReadOnly,
121
+ palette: labelPalette,
122
+ customClass: {
123
+ label: labelCustomClass
124
+ },
121
125
  htmlFor: uniqueId,
122
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
123
- ...LabelProps,
124
- id: uniqueId
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
+ tagAttributes: {
130
+ label: {
131
+ id: uniqueId
132
+ }
133
+ },
134
+ ...LabelProps
125
135
  })), /*#__PURE__*/React.createElement("div", {
126
136
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
127
137
  }, /*#__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,22 @@ const TagsMultiSelectField = props => {
206
206
  }
207
207
  }, /*#__PURE__*/React.createElement(Label, {
208
208
  text: labelName,
209
- title: labelName,
210
- id: id,
211
- size: labelSize,
212
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
213
- customClass: `${fieldStyle.fieldLabel} ${isMandatory ? fieldStyle.labelMandatory : ''} ${labelClass ? labelClass : ''}`,
214
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
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`,
220
+ tagAttributes: {
221
+ label: {
222
+ id
223
+ }
224
+ },
216
225
  ...LabelProps
217
226
  }), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
218
227
  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,23 @@ 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
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
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
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
111
- ...LabelProps,
112
- id: labelName
116
+ customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
117
+ tagAttributes: {
118
+ label: {
119
+ id: labelName
120
+ }
121
+ },
122
+ ...LabelProps
113
123
  })), /*#__PURE__*/React.createElement("div", {
114
124
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
115
125
  }, /*#__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
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
125
+ isRequired: isMandatory,
126
+ isDisabled: isDisabled,
127
+ isReadOnly: isReadOnly,
128
+ palette: labelPalette,
126
129
  onClick: this.handleLabelClick,
127
- customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
128
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
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,22 @@ export default class TextareaField extends PureComponent {
131
131
  renderProps: renderLabelProps
132
132
  }, /*#__PURE__*/React.createElement(Label, {
133
133
  text: labelName,
134
- id: id,
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
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
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
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
144
+ customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
145
+ tagAttributes: {
146
+ label: {
147
+ id
148
+ }
149
+ },
140
150
  ...LabelProps
141
151
  })), /*#__PURE__*/React.createElement("div", {
142
152
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
@@ -30,7 +30,7 @@ exports[`DepartmentDropDown rendering the defult props 1`] = `
30
30
  id="1"
31
31
  >
32
32
  <div
33
- class="departmentText "
33
+ class="dotted size12 departmentText "
34
34
  />
35
35
  </span>
36
36
  <i
@@ -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("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
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("div", {
73
- className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
74
- ...SecondaryTextProps
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("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
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("div", {
17
- className: `${style.departmentText} ${className ? className : ''}`,
18
- "data-title": dataTitle,
19
- "data-id": dataId,
20
- "data-test-id": dataId
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