@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
|
@@ -2,8 +2,6 @@ export const AccountName_defaultProps = {
|
|
|
2
2
|
isLink: true,
|
|
3
3
|
dataId: 'accountName',
|
|
4
4
|
fontWeight: 'regular',
|
|
5
|
-
isHighlighted: false,
|
|
6
|
-
highlightData: {},
|
|
7
5
|
customProps: {}
|
|
8
6
|
};
|
|
9
7
|
export const ContactName_defaultProps = {
|
|
@@ -12,51 +10,35 @@ export const ContactName_defaultProps = {
|
|
|
12
10
|
dataId: 'contactName',
|
|
13
11
|
fontWeight: 'regular',
|
|
14
12
|
i18nKeys: {},
|
|
15
|
-
isHighlighted: false,
|
|
16
|
-
highlightData: {},
|
|
17
13
|
customProps: {}
|
|
18
14
|
};
|
|
19
15
|
export const Email_defaultProps = {
|
|
20
16
|
isLink: true,
|
|
21
17
|
fontWeight: 'regular',
|
|
22
|
-
isHighlighted: false,
|
|
23
|
-
highlightData: {},
|
|
24
18
|
customProps: {}
|
|
25
19
|
};
|
|
26
20
|
export const PhoneNumber_defaultProps = {
|
|
27
21
|
isLink: true,
|
|
28
22
|
hasReload: false,
|
|
29
23
|
fontWeight: 'regular',
|
|
30
|
-
isHighlighted: false,
|
|
31
|
-
highlightData: {},
|
|
32
24
|
customProps: {}
|
|
33
25
|
};
|
|
34
26
|
export const PriorityText_defaultProps = {
|
|
35
27
|
color: 'black',
|
|
36
|
-
isHighlighted: false,
|
|
37
|
-
highlightData: {},
|
|
38
28
|
dataId: 'priority'
|
|
39
29
|
};
|
|
40
30
|
export const SecondaryText_defaultProps = {
|
|
41
|
-
isHighlighted: false,
|
|
42
|
-
highlightData: {},
|
|
43
31
|
customProps: {}
|
|
44
32
|
};
|
|
45
33
|
export const StatusText_defaultProps = {
|
|
46
34
|
color: 'black',
|
|
47
35
|
dataId: 'statusContainer',
|
|
48
|
-
isHighlighted: false,
|
|
49
|
-
highlightData: {},
|
|
50
36
|
fontWeight: 'regular'
|
|
51
37
|
};
|
|
52
38
|
export const TicketId_defaultProps = {
|
|
53
39
|
dataId: 'ticketId',
|
|
54
|
-
isHighlighted: false,
|
|
55
|
-
highlightData: {},
|
|
56
40
|
customProps: {}
|
|
57
41
|
};
|
|
58
42
|
export const Website_defaultProps = {
|
|
59
|
-
isHighlighted: false,
|
|
60
|
-
highlightData: {},
|
|
61
43
|
isLink: true
|
|
62
44
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import { propTypes as typographyProps } from '@zohodesk/components/es/Typography/props/propTypes';
|
|
3
2
|
export const AccountName_propTypes = {
|
|
4
3
|
className: PropTypes.string,
|
|
5
4
|
dataId: PropTypes.string,
|
|
@@ -15,8 +14,6 @@ export const AccountName_propTypes = {
|
|
|
15
14
|
secondaryAccountHref: PropTypes.string,
|
|
16
15
|
secondaryAccountClick: PropTypes.func,
|
|
17
16
|
secondaryAccountText: PropTypes.string,
|
|
18
|
-
isHighlighted: PropTypes.bool,
|
|
19
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
20
17
|
customProps: PropTypes.shape({
|
|
21
18
|
LinkProps: PropTypes.object,
|
|
22
19
|
TextProps: PropTypes.object,
|
|
@@ -45,8 +42,6 @@ export const ContactName_propTypes = {
|
|
|
45
42
|
}),
|
|
46
43
|
paidTitle: PropTypes.string
|
|
47
44
|
}),
|
|
48
|
-
isHighlighted: PropTypes.bool,
|
|
49
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
50
45
|
customProps: PropTypes.shape({
|
|
51
46
|
LinkProps: PropTypes.object,
|
|
52
47
|
TextProps: PropTypes.object
|
|
@@ -56,8 +51,6 @@ export const DepartmentText_propTypes = {
|
|
|
56
51
|
className: PropTypes.string,
|
|
57
52
|
dataId: PropTypes.string,
|
|
58
53
|
dataTitle: PropTypes.string,
|
|
59
|
-
isHighlighted: PropTypes.bool,
|
|
60
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
61
54
|
text: PropTypes.string
|
|
62
55
|
};
|
|
63
56
|
export const Email_propTypes = {
|
|
@@ -70,8 +63,6 @@ export const Email_propTypes = {
|
|
|
70
63
|
title: PropTypes.string,
|
|
71
64
|
urlData: PropTypes.object,
|
|
72
65
|
urlName: PropTypes.string,
|
|
73
|
-
isHighlighted: PropTypes.bool,
|
|
74
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
75
66
|
customProps: PropTypes.shape({
|
|
76
67
|
LinkProps: PropTypes.object,
|
|
77
68
|
TextProps: PropTypes.object
|
|
@@ -94,8 +85,6 @@ export const PhoneNumber_propTypes = {
|
|
|
94
85
|
title: PropTypes.string,
|
|
95
86
|
urlData: PropTypes.object,
|
|
96
87
|
urlName: PropTypes.string,
|
|
97
|
-
isHighlighted: PropTypes.bool,
|
|
98
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
99
88
|
customProps: PropTypes.shape({
|
|
100
89
|
LinkProps: PropTypes.object,
|
|
101
90
|
TextProps: PropTypes.object
|
|
@@ -106,8 +95,6 @@ export const PriorityText_propTypes = {
|
|
|
106
95
|
color: PropTypes.oneOf(['red', 'green', 'gray', 'orange']),
|
|
107
96
|
dataId: PropTypes.string,
|
|
108
97
|
dataTitle: PropTypes.string,
|
|
109
|
-
isHighlighted: PropTypes.bool,
|
|
110
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
111
98
|
text: PropTypes.string
|
|
112
99
|
};
|
|
113
100
|
export const SecondaryText_propTypes = {
|
|
@@ -116,8 +103,6 @@ export const SecondaryText_propTypes = {
|
|
|
116
103
|
dataTitle: PropTypes.string,
|
|
117
104
|
onClick: PropTypes.func,
|
|
118
105
|
text: PropTypes.string,
|
|
119
|
-
isHighlighted: PropTypes.bool,
|
|
120
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
121
106
|
customProps: PropTypes.shape({
|
|
122
107
|
SecondaryTextProps: PropTypes.object
|
|
123
108
|
})
|
|
@@ -128,8 +113,6 @@ export const StatusText_propTypes = {
|
|
|
128
113
|
dataId: PropTypes.string,
|
|
129
114
|
dataTitle: PropTypes.string,
|
|
130
115
|
fontWeight: PropTypes.oneOf(['regular', 'semibold', 'bold']),
|
|
131
|
-
isHighlighted: PropTypes.bool,
|
|
132
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
133
116
|
text: PropTypes.string
|
|
134
117
|
};
|
|
135
118
|
export const TicketId_propTypes = {
|
|
@@ -143,8 +126,6 @@ export const TicketId_propTypes = {
|
|
|
143
126
|
url: PropTypes.string,
|
|
144
127
|
urlData: PropTypes.string,
|
|
145
128
|
urlName: PropTypes.string,
|
|
146
|
-
isHighlighted: PropTypes.bool,
|
|
147
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
148
129
|
customProps: PropTypes.shape({
|
|
149
130
|
TicketIdProps: PropTypes.object,
|
|
150
131
|
LinkProps: PropTypes.object
|
|
@@ -157,7 +138,5 @@ export const Website_propTypes = {
|
|
|
157
138
|
isLink: PropTypes.bool,
|
|
158
139
|
target: PropTypes.string,
|
|
159
140
|
text: PropTypes.string,
|
|
160
|
-
isHighlighted: PropTypes.bool,
|
|
161
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
162
141
|
title: PropTypes.string
|
|
163
142
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
5
|
-
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
6
4
|
import Link from "../../Link/Link";
|
|
7
5
|
import { whiteSpaceClassMapping } from '@zohodesk/components/es/utils/cssUtils';
|
|
8
6
|
import style from "./Subject.module.css";
|
|
@@ -26,44 +24,30 @@ export default class Subject extends Component {
|
|
|
26
24
|
isDotted,
|
|
27
25
|
children,
|
|
28
26
|
customProps,
|
|
29
|
-
whiteSpace
|
|
30
|
-
isHighlighted,
|
|
31
|
-
highlightData
|
|
27
|
+
whiteSpace
|
|
32
28
|
} = this.props;
|
|
33
29
|
let {
|
|
34
30
|
LinkProps = {},
|
|
35
31
|
TextProps = {}
|
|
36
32
|
} = customProps;
|
|
37
|
-
let tagAttributesText = { ...TextProps,
|
|
38
|
-
'data-title-wrap': whiteSpace
|
|
39
|
-
};
|
|
40
|
-
let linkTagAttributes = {
|
|
41
|
-
'data-title-wrap': whiteSpace
|
|
42
|
-
};
|
|
43
33
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
44
34
|
urlName: urlName,
|
|
45
35
|
href: href,
|
|
46
36
|
urlData: urlData,
|
|
47
37
|
onClick: onClick,
|
|
38
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
39
|
+
dataId: dataId,
|
|
40
|
+
title: text,
|
|
48
41
|
target: target,
|
|
42
|
+
"data-title-wrap": whiteSpace,
|
|
49
43
|
...LinkProps
|
|
50
|
-
}, children ? children : /*#__PURE__*/React.createElement(
|
|
51
|
-
$
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
58
|
-
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
59
|
-
$tagAttributes_text: tagAttributesText,
|
|
60
|
-
$ui_className: `${style.subject} ${className} ${whiteSpaceClassMapping[whiteSpace]}`,
|
|
61
|
-
$flag_dotted: isDotted,
|
|
62
|
-
$ui_weight: fontWeight,
|
|
63
|
-
$i18n_dataTitle: text,
|
|
64
|
-
customId: dataId,
|
|
65
|
-
testId: dataId,
|
|
66
|
-
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
44
|
+
}, children ? children : text) : /*#__PURE__*/React.createElement("span", {
|
|
45
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]}`,
|
|
46
|
+
"data-title": text,
|
|
47
|
+
"data-id": dataId,
|
|
48
|
+
"data-test-id": dataId,
|
|
49
|
+
"data-title-wrap": whiteSpace,
|
|
50
|
+
...TextProps
|
|
67
51
|
}, text));
|
|
68
52
|
}
|
|
69
53
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Subject rendering the defult props 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
6
|
-
class="dotted font_regular
|
|
5
|
+
<span
|
|
6
|
+
class="subject dotted whiteSpace_pre font_regular"
|
|
7
7
|
data-title-wrap="pre"
|
|
8
8
|
/>
|
|
9
9
|
</DocumentFragment>
|
|
@@ -11,8 +11,8 @@ exports[`Subject rendering the defult props 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`Subject rendering the whiteSpace of -break-spaces 1`] = `
|
|
13
13
|
<DocumentFragment>
|
|
14
|
-
<
|
|
15
|
-
class="dotted font_regular
|
|
14
|
+
<span
|
|
15
|
+
class="subject dotted whiteSpace_breakSpaces font_regular"
|
|
16
16
|
data-title-wrap="break-spaces"
|
|
17
17
|
/>
|
|
18
18
|
</DocumentFragment>
|
|
@@ -20,8 +20,8 @@ exports[`Subject rendering the whiteSpace of -break-spaces 1`] = `
|
|
|
20
20
|
|
|
21
21
|
exports[`Subject rendering the whiteSpace of -normal 1`] = `
|
|
22
22
|
<DocumentFragment>
|
|
23
|
-
<
|
|
24
|
-
class="dotted font_regular
|
|
23
|
+
<span
|
|
24
|
+
class="subject dotted whiteSpace_normal font_regular"
|
|
25
25
|
data-title-wrap="normal"
|
|
26
26
|
/>
|
|
27
27
|
</DocumentFragment>
|
|
@@ -29,8 +29,8 @@ exports[`Subject rendering the whiteSpace of -normal 1`] = `
|
|
|
29
29
|
|
|
30
30
|
exports[`Subject rendering the whiteSpace of -nowrap 1`] = `
|
|
31
31
|
<DocumentFragment>
|
|
32
|
-
<
|
|
33
|
-
class="dotted font_regular
|
|
32
|
+
<span
|
|
33
|
+
class="subject dotted whiteSpace_nowrap font_regular"
|
|
34
34
|
data-title-wrap="nowrap"
|
|
35
35
|
/>
|
|
36
36
|
</DocumentFragment>
|
|
@@ -38,8 +38,8 @@ exports[`Subject rendering the whiteSpace of -nowrap 1`] = `
|
|
|
38
38
|
|
|
39
39
|
exports[`Subject rendering the whiteSpace of -pre 1`] = `
|
|
40
40
|
<DocumentFragment>
|
|
41
|
-
<
|
|
42
|
-
class="dotted font_regular
|
|
41
|
+
<span
|
|
42
|
+
class="subject dotted whiteSpace_pre font_regular"
|
|
43
43
|
data-title-wrap="pre"
|
|
44
44
|
/>
|
|
45
45
|
</DocumentFragment>
|
|
@@ -47,8 +47,8 @@ exports[`Subject rendering the whiteSpace of -pre 1`] = `
|
|
|
47
47
|
|
|
48
48
|
exports[`Subject rendering the whiteSpace of -pre-line 1`] = `
|
|
49
49
|
<DocumentFragment>
|
|
50
|
-
<
|
|
51
|
-
class="dotted font_regular
|
|
50
|
+
<span
|
|
51
|
+
class="subject dotted whiteSpace_preLine font_regular"
|
|
52
52
|
data-title-wrap="pre-line"
|
|
53
53
|
/>
|
|
54
54
|
</DocumentFragment>
|
|
@@ -56,8 +56,8 @@ exports[`Subject rendering the whiteSpace of -pre-line 1`] = `
|
|
|
56
56
|
|
|
57
57
|
exports[`Subject rendering the whiteSpace of -pre-wrap 1`] = `
|
|
58
58
|
<DocumentFragment>
|
|
59
|
-
<
|
|
60
|
-
class="dotted font_regular
|
|
59
|
+
<span
|
|
60
|
+
class="subject dotted whiteSpace_preWrap font_regular"
|
|
61
61
|
data-title-wrap="pre-wrap"
|
|
62
62
|
/>
|
|
63
63
|
</DocumentFragment>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import { propTypes as typographyProps } from '@zohodesk/components/es/Typography/props/propTypes';
|
|
3
2
|
export const propTypes = {
|
|
4
3
|
className: PropTypes.string,
|
|
5
4
|
dataId: PropTypes.string,
|
|
@@ -17,8 +16,5 @@ export const propTypes = {
|
|
|
17
16
|
LinkProps: PropTypes.object,
|
|
18
17
|
TextProps: PropTypes.object
|
|
19
18
|
}),
|
|
20
|
-
whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
|
|
21
|
-
// Highlight props
|
|
22
|
-
isHighlighted: PropTypes.bool,
|
|
23
|
-
highlightData: typographyProps.$ui_highlightConfig
|
|
19
|
+
whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
|
|
24
20
|
};
|
|
@@ -18,7 +18,7 @@ exports[`Search rendering the customized style search 1`] = `
|
|
|
18
18
|
data-test-id="boxComponent"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="varClass customContainer
|
|
21
|
+
class="varClass customContainer effect container flex rowdir"
|
|
22
22
|
data-selector-id="textBoxIcon"
|
|
23
23
|
>
|
|
24
24
|
<div
|
|
@@ -75,7 +75,7 @@ exports[`Search rendering the defult props 1`] = `
|
|
|
75
75
|
data-test-id="boxComponent"
|
|
76
76
|
>
|
|
77
77
|
<div
|
|
78
|
-
class="varClass customContainer
|
|
78
|
+
class="varClass customContainer effect container flex rowdir"
|
|
79
79
|
data-selector-id="textBoxIcon"
|
|
80
80
|
>
|
|
81
81
|
<div
|
|
@@ -132,7 +132,7 @@ exports[`Search rendering the prop hasSeparator is false 1`] = `
|
|
|
132
132
|
data-test-id="boxComponent"
|
|
133
133
|
>
|
|
134
134
|
<div
|
|
135
|
-
class="varClass customContainer
|
|
135
|
+
class="varClass customContainer effect container flex rowdir"
|
|
136
136
|
data-selector-id="textBoxIcon"
|
|
137
137
|
>
|
|
138
138
|
<div
|
|
@@ -192,7 +192,7 @@ exports[`Search rendering the prop hasSeparator is true 1`] = `
|
|
|
192
192
|
data-test-id="boxComponent"
|
|
193
193
|
>
|
|
194
194
|
<div
|
|
195
|
-
class="varClass customContainer
|
|
195
|
+
class="varClass customContainer effect container flex rowdir"
|
|
196
196
|
data-selector-id="textBoxIcon"
|
|
197
197
|
>
|
|
198
198
|
<div
|
|
@@ -262,7 +262,7 @@ exports[`Search rendering the renderChildren props via function 1`] = `
|
|
|
262
262
|
data-test-id="boxComponent"
|
|
263
263
|
>
|
|
264
264
|
<div
|
|
265
|
-
class="varClass customContainer
|
|
265
|
+
class="varClass customContainer effect container flex rowdir"
|
|
266
266
|
data-selector-id="textBoxIcon"
|
|
267
267
|
>
|
|
268
268
|
<div
|
|
@@ -321,7 +321,7 @@ exports[`Search rendering the search active 1`] = `
|
|
|
321
321
|
data-test-id="boxComponent"
|
|
322
322
|
>
|
|
323
323
|
<div
|
|
324
|
-
class="varClass customContainer
|
|
324
|
+
class="varClass customContainer effect active container flex rowdir"
|
|
325
325
|
data-selector-id="textBoxIcon"
|
|
326
326
|
>
|
|
327
327
|
<div
|
|
@@ -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
|
}
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/v1/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _CheckBox = _interopRequireDefault(require("@zohodesk/components/es/CheckBox/CheckBox"));
|
|
19
19
|
|
|
@@ -140,15 +140,24 @@ var CheckBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
140
140
|
renderProps: renderLabelProps
|
|
141
141
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
142
142
|
text: labelName,
|
|
143
|
-
|
|
143
|
+
isRequired: isMandatory,
|
|
144
|
+
isDisabled: isDisabled,
|
|
145
|
+
isReadOnly: isReadOnly,
|
|
146
|
+
palette: labelPalette,
|
|
147
|
+
customClass: {
|
|
148
|
+
label: labelCustomClass,
|
|
149
|
+
container: !isDirectCol ? _FieldsModule["default"].checkboxText : ''
|
|
150
|
+
},
|
|
144
151
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
title: labelName,
|
|
152
|
+
fontWeight: isDirectCol ? 'regular' : 'semibold',
|
|
153
|
+
testId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
154
|
+
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
149
155
|
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
tagAttributes: {
|
|
157
|
+
label: {
|
|
158
|
+
id: id
|
|
159
|
+
}
|
|
160
|
+
}
|
|
152
161
|
}, LabelProps)));
|
|
153
162
|
|
|
154
163
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/v1/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _TextBoxIcon = _interopRequireDefault(require("@zohodesk/components/es/TextBoxIcon/TextBoxIcon"));
|
|
19
19
|
|
|
@@ -178,11 +178,17 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
178
178
|
renderProps: renderLabelProps
|
|
179
179
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
180
180
|
text: labelName,
|
|
181
|
+
isRequired: isMandatory,
|
|
182
|
+
isDisabled: isDisabled,
|
|
183
|
+
isReadOnly: isReadOnly,
|
|
184
|
+
palette: labelPalette,
|
|
185
|
+
customClass: {
|
|
186
|
+
label: labelCustomClass
|
|
187
|
+
},
|
|
181
188
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
182
|
-
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
183
|
-
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
184
189
|
htmlFor: uniqueId,
|
|
185
|
-
|
|
190
|
+
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
191
|
+
testId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
186
192
|
}, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
187
193
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
188
194
|
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], _extends({
|
|
@@ -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
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/v1/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _DateWidget = _interopRequireDefault(require("@zohodesk/components/es/DateTime/DateWidget"));
|
|
19
19
|
|
|
@@ -185,15 +185,24 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
185
185
|
renderProps: renderLabelProps
|
|
186
186
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
187
187
|
text: labelName,
|
|
188
|
-
|
|
188
|
+
isRequired: isMandatory,
|
|
189
|
+
isDisabled: isDisabled,
|
|
190
|
+
isReadOnly: isReadOnly,
|
|
191
|
+
palette: labelPalette,
|
|
192
|
+
customClass: {
|
|
193
|
+
label: labelCustomClass
|
|
194
|
+
},
|
|
189
195
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
190
|
-
|
|
196
|
+
htmlFor: getAriaId,
|
|
197
|
+
testId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
198
|
+
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
191
199
|
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
200
|
+
tagAttributes: {
|
|
201
|
+
label: {
|
|
202
|
+
id: labelName
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
197
206
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
198
207
|
}, isLocked && lockedValueText ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
199
208
|
className: _FieldsModule["default"].lockText
|
|
@@ -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
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/v1/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _MultiSelect = _interopRequireDefault(require("@zohodesk/components/es/MultiSelect/MultiSelect"));
|
|
19
19
|
|
|
@@ -198,13 +198,20 @@ var MultiSelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
198
198
|
renderProps: renderLabelProps
|
|
199
199
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
200
200
|
text: labelName,
|
|
201
|
-
|
|
201
|
+
isRequired: isMandatory,
|
|
202
|
+
isDisabled: isDisabled,
|
|
203
|
+
isReadOnly: isReadOnly,
|
|
204
|
+
palette: labelPalette,
|
|
202
205
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
203
|
-
|
|
206
|
+
htmlFor: uniqueId // onClick={this.handleLabelClick}
|
|
204
207
|
,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
+
testId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
209
|
+
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
210
|
+
tagAttributes: {
|
|
211
|
+
label: {
|
|
212
|
+
id: id
|
|
213
|
+
}
|
|
214
|
+
}
|
|
208
215
|
}, LabelProps))), /*#__PURE__*/_react["default"].createElement(_MultiSelect["default"], _extends({
|
|
209
216
|
options: options,
|
|
210
217
|
onChange: this.handleChange,
|
package/lib/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
|
|
@@ -17,7 +17,7 @@ var _propTypes = require("./props/propTypes");
|
|
|
17
17
|
|
|
18
18
|
var _Icon = _interopRequireDefault(require("@zohodesk/icons/es/Icon"));
|
|
19
19
|
|
|
20
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
20
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/v1/Label/Label"));
|
|
21
21
|
|
|
22
22
|
var _Radio = _interopRequireDefault(require("@zohodesk/components/es/Radio/Radio"));
|
|
23
23
|
|
|
@@ -188,10 +188,20 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
|
|
|
188
188
|
}, labelName && /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
189
189
|
text: labelName,
|
|
190
190
|
size: "medium",
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
isRequired: isMandatory,
|
|
192
|
+
isDisabled: isDisabled,
|
|
193
|
+
isReadOnly: isReadOnly,
|
|
194
|
+
palette: labelPalette,
|
|
195
|
+
customClass: {
|
|
196
|
+
label: customLabelClass
|
|
197
|
+
},
|
|
198
|
+
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
199
|
+
testId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
200
|
+
tagAttributes: {
|
|
201
|
+
label: {
|
|
202
|
+
id: id
|
|
203
|
+
}
|
|
204
|
+
}
|
|
195
205
|
}, LabelProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
196
206
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(isBoxStyle ? _FieldsModule["default"].radiosWrapper : '', " ").concat(labelName ? isBoxStyle ? _FieldsModule["default"].fieldMargin_large : _FieldsModule["default"].fieldMargin_medium : '', " ").concat(_FieldsModule["default"].radioContainer)
|
|
197
207
|
}, options.map(function (option, index) {
|