@zohodesk/dot 1.0.0-temp-218.5 → 1.0.0-temp-224.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/es/common/dot_boxShadow.module.css +1 -2
- package/es/form/fields/CheckBoxField/CheckBoxField.js +17 -8
- package/es/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/es/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/es/form/fields/DateField/DateField.js +17 -7
- package/es/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -6
- package/es/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap +1 -1
- package/es/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/es/form/fields/RadioField/RadioField.js +15 -5
- package/es/form/fields/SelectField/SelectField.js +17 -7
- package/es/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
- package/es/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +16 -6
- package/es/form/fields/TextBoxField/__tests__/__snapshots__/TextBoxField.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/TextEditor.js +6 -2
- package/es/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/es/form/fields/TextEditor/props/propTypes.js +2 -1
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/es/form/fields/TextareaField/TextareaField.js +15 -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/es/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +6 -6
- package/lib/common/dot_boxShadow.module.css +1 -2
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +17 -8
- package/lib/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/lib/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/lib/form/fields/DateField/DateField.js +17 -8
- package/lib/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +13 -6
- package/lib/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap +1 -1
- package/lib/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/lib/form/fields/RadioField/RadioField.js +15 -5
- package/lib/form/fields/SelectField/SelectField.js +17 -8
- package/lib/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
- package/lib/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +16 -7
- package/lib/form/fields/TextBoxField/__tests__/__snapshots__/TextBoxField.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +5 -2
- package/lib/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditor/props/propTypes.js +2 -1
- package/lib/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/lib/form/fields/TextareaField/TextareaField.js +15 -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/lib/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +6 -6
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.9.0
|
|
6
|
+
|
|
7
|
+
- Updated @zohodesk-private/color-variable-preprocessor package - Grayscale introduced
|
|
8
|
+
|
|
9
|
+
- **TextEditor**
|
|
10
|
+
- customClass prop added
|
|
11
|
+
|
|
12
|
+
# 1.8.7
|
|
13
|
+
|
|
14
|
+
- **CheckBoxField, CurrencyField, DateField, MultiSelectField, RadioField, SelectField, TagsMultiSelectField, TextareaField, TextBoxField, TextEditorField**
|
|
15
|
+
- Accessibility Enhanced Label component has been updated in above components
|
|
16
|
+
(v1 folder components excluded)
|
|
17
|
+
|
|
5
18
|
# 1.8.6
|
|
6
19
|
|
|
7
20
|
- **ToggleDropdown**
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
--zd_bs_desktopnotification_container: var(--zd_bs_contrast_outline, 0 4px 20px var(--zdt_desktopnotification_box_shadow));
|
|
38
38
|
|
|
39
39
|
/* onboarding */
|
|
40
|
-
--zd_bs_onboarding_close_icon: var(--zd_bs_contrast_outline, 0px 2px 15px rgba(0, 0, 0, 0.09));
|
|
40
|
+
--zd_bs_onboarding_close_icon: var(--zd_bs_contrast_outline, 0px 2px 15px var(--zd-shadow-saturation, rgba(0, 0, 0, 0.09)));
|
|
41
41
|
--zd_bs_onboarding_gradient: var(--zd_bs_contrast_outline, 0px 20px 30px 0px var(--zdt_onboarding_bg_box_shadow));
|
|
42
42
|
--zd_bs_onboarding_primary_button: var(--zd_bs_contrast_outline, 0px 4px 20px 0px var(--zdt_onboarding_primary_button_shadow));
|
|
43
|
-
|
|
44
43
|
}
|
|
@@ -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
|
-
|
|
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
|
+
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
|
-
|
|
98
|
-
|
|
103
|
+
tagAttributes: {
|
|
104
|
+
label: {
|
|
105
|
+
id
|
|
106
|
+
}
|
|
107
|
+
},
|
|
99
108
|
...LabelProps
|
|
100
109
|
}));
|
|
101
110
|
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}`] : ''}`
|
|
@@ -10,7 +10,7 @@ exports[`CurrencyField rendering the defult props 1`] = `
|
|
|
10
10
|
class="fieldContainer "
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
class="varClass customContainer
|
|
13
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container flex rowdir"
|
|
14
14
|
data-selector-id="textBoxIcon"
|
|
15
15
|
>
|
|
16
16
|
<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 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
|
-
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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", {
|
|
@@ -18,7 +18,7 @@ exports[`DateField rendering the defult props 1`] = `
|
|
|
18
18
|
data-test-id="dateField(formatted_undefined)_widget"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="varClass customContainer
|
|
21
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container placeHolder flex rowdir"
|
|
22
22
|
data-selector-id="textBoxIcon"
|
|
23
23
|
>
|
|
24
24
|
<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
|
-
|
|
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
|
-
|
|
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,
|
package/es/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap
CHANGED
|
@@ -29,7 +29,7 @@ exports[`MultiSelectField rendering the defult props 1`] = `
|
|
|
29
29
|
"
|
|
30
30
|
/>
|
|
31
31
|
<div
|
|
32
|
-
class="varClass customContainer
|
|
32
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
33
33
|
data-selector-id="textBoxIcon"
|
|
34
34
|
>
|
|
35
35
|
<div
|
|
@@ -22,7 +22,7 @@ exports[`PhoneField rendering the defult props 1`] = `
|
|
|
22
22
|
class="fieldContainer "
|
|
23
23
|
>
|
|
24
24
|
<div
|
|
25
|
-
class="varClass customContainer
|
|
25
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container flex rowdir"
|
|
26
26
|
data-selector-id="textBoxIcon"
|
|
27
27
|
>
|
|
28
28
|
<div
|
|
@@ -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
|
-
|
|
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`,
|
|
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
|
-
|
|
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
|
+
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, {
|
|
@@ -19,7 +19,7 @@ exports[`SelectField rendering the defult props 1`] = `
|
|
|
19
19
|
data-test-id="selectComponent"
|
|
20
20
|
>
|
|
21
21
|
<div
|
|
22
|
-
class="varClass customContainer
|
|
22
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
23
23
|
data-selector-id="textBoxIcon"
|
|
24
24
|
>
|
|
25
25
|
<div
|
|
@@ -25,7 +25,7 @@ exports[`TagsMultiSelect rendering the defult props 1`] = `
|
|
|
25
25
|
class="custmSpan"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInp flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -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
|
-
|
|
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`,
|
|
220
|
+
tagAttributes: {
|
|
221
|
+
label: {
|
|
222
|
+
id
|
|
223
|
+
}
|
|
224
|
+
},
|
|
216
225
|
...LabelProps
|
|
217
226
|
}), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
|
|
218
227
|
dataId: `${dataId}_tagCount`,
|
|
@@ -31,7 +31,7 @@ exports[`TagsMultiSelectField rendering the defult props 1`] = `
|
|
|
31
31
|
class="custmSpan"
|
|
32
32
|
/>
|
|
33
33
|
<div
|
|
34
|
-
class="varClass customContainer
|
|
34
|
+
class="varClass customContainer effect container custmInp flex rowdir"
|
|
35
35
|
data-selector-id="textBoxIcon"
|
|
36
36
|
>
|
|
37
37
|
<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';
|
|
@@ -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
|
-
|
|
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
|
-
|
|
112
|
-
|
|
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, {
|
|
@@ -10,7 +10,7 @@ exports[`TextBoxField rendering the defult props 1`] = `
|
|
|
10
10
|
class="fieldContainer "
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
class="varClass customContainer
|
|
13
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container flex rowdir"
|
|
14
14
|
data-selector-id="textBoxIcon"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
@@ -384,8 +384,12 @@ export default class TextEditor extends Component {
|
|
|
384
384
|
isNightMode,
|
|
385
385
|
isReadOnly,
|
|
386
386
|
dataSelectorId,
|
|
387
|
-
isDisabled
|
|
387
|
+
isDisabled,
|
|
388
|
+
customClass
|
|
388
389
|
} = this.props;
|
|
390
|
+
const {
|
|
391
|
+
wrapper: wrapperClass = ''
|
|
392
|
+
} = customClass;
|
|
389
393
|
let {
|
|
390
394
|
isEditorLoad,
|
|
391
395
|
isEditorShow
|
|
@@ -393,7 +397,7 @@ export default class TextEditor extends Component {
|
|
|
393
397
|
let editorDoc = ImgLazyLoad && global.editor && global.editor[id] ? global.editor[id].doc : null;
|
|
394
398
|
return /*#__PURE__*/React.createElement(Container, {
|
|
395
399
|
className: `${styles.textEditor} ${styles[type]} ${styles[border]}
|
|
396
|
-
${isNightMode ? styles.night : styles.light} ${isReadOnly ? styles.readOnly : ''} ${isDisabled ? styles.disable : ''} ${!isEditorShow ? styles.editorHide : ''}`,
|
|
400
|
+
${isNightMode ? styles.night : styles.light} ${isReadOnly ? styles.readOnly : ''} ${isDisabled ? styles.disable : ''} ${!isEditorShow ? styles.editorHide : ''} ${wrapperClass}`,
|
|
397
401
|
dataId: dataId,
|
|
398
402
|
"data-isEditor": true,
|
|
399
403
|
dataSelectorId: dataSelectorId
|
|
@@ -4,7 +4,7 @@ exports[`TextEditor rendering the defult props 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="textEditor large borderTop
|
|
7
|
-
light editorHide
|
|
7
|
+
light editorHide flex cover coldir"
|
|
8
8
|
data-id="containerComponent"
|
|
9
9
|
data-iseditor="true"
|
|
10
10
|
data-selector-id="textEditor"
|
|
@@ -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,22 @@ 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`,
|
|
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}`] : ''}`
|
|
@@ -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
|
|