@zohodesk/dot 1.0.0-temp-224 → 1.0.0-temp-187.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -4
- package/es/common/dot_boxShadow.module.css +1 -2
- package/es/form/fields/CheckBoxField/CheckBoxField.js +6 -1
- package/es/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/es/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/es/form/fields/DateField/DateField.js +5 -0
- package/es/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +17 -12
- 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 +5 -0
- package/es/form/fields/SelectField/SelectField.js +5 -0
- package/es/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -6
- package/es/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +5 -0
- package/es/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +5 -0
- 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/TextareaField/TextareaField.js +5 -0
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +6 -2
- package/es/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/SecondaryText/AccountName.js +23 -8
- package/es/list/SecondaryText/ContactName.js +18 -6
- package/es/list/SecondaryText/DepartmentText.js +13 -6
- package/es/list/SecondaryText/Email.js +19 -7
- package/es/list/SecondaryText/PhoneNumber.js +19 -7
- package/es/list/SecondaryText/PriorityText.js +13 -6
- package/es/list/SecondaryText/SecondaryText.js +17 -8
- package/es/list/SecondaryText/SecondaryText.module.css +40 -24
- package/es/list/SecondaryText/StatusText.js +13 -6
- package/es/list/SecondaryText/TicketId.js +8 -2
- package/es/list/SecondaryText/Website.js +16 -5
- package/es/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/es/list/SecondaryText/props/defaultProps.js +18 -0
- package/es/list/SecondaryText/props/propTypes.js +21 -0
- package/es/list/Subject/Subject.js +28 -12
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/es/list/Subject/props/defaultProps.js +3 -1
- package/es/list/Subject/props/propTypes.js +5 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.js +4 -2
- package/es/list/status/StatusListItem/StatusListItem.module.css +43 -17
- package/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 +7 -2
- package/lib/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/lib/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/lib/form/fields/DateField/DateField.js +6 -1
- package/lib/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +18 -12
- 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 +6 -1
- package/lib/form/fields/SelectField/SelectField.js +6 -1
- package/lib/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +6 -1
- package/lib/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +6 -1
- 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/TextareaField/TextareaField.js +6 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/SecondaryText/AccountName.js +27 -8
- package/lib/list/SecondaryText/ContactName.js +21 -6
- package/lib/list/SecondaryText/DepartmentText.js +15 -6
- package/lib/list/SecondaryText/Email.js +22 -7
- package/lib/list/SecondaryText/PhoneNumber.js +22 -7
- package/lib/list/SecondaryText/PriorityText.js +15 -6
- package/lib/list/SecondaryText/SecondaryText.js +26 -8
- package/lib/list/SecondaryText/SecondaryText.module.css +40 -24
- package/lib/list/SecondaryText/StatusText.js +15 -6
- package/lib/list/SecondaryText/TicketId.js +10 -2
- package/lib/list/SecondaryText/Website.js +18 -5
- package/lib/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/lib/list/SecondaryText/props/defaultProps.js +18 -0
- package/lib/list/SecondaryText/props/propTypes.js +22 -0
- package/lib/list/Subject/Subject.js +40 -13
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/lib/list/Subject/props/defaultProps.js +3 -1
- package/lib/list/Subject/props/propTypes.js +6 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +4 -2
- package/lib/list/status/StatusListItem/StatusListItem.module.css +43 -17
- package/lib/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +6 -6
- package/package.json +9 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import { propTypes as typographyProps } from '@zohodesk/components/es/Typography/props/propTypes';
|
|
2
3
|
export const AccountName_propTypes = {
|
|
3
4
|
className: PropTypes.string,
|
|
4
5
|
dataId: PropTypes.string,
|
|
@@ -14,6 +15,8 @@ export const AccountName_propTypes = {
|
|
|
14
15
|
secondaryAccountHref: PropTypes.string,
|
|
15
16
|
secondaryAccountClick: PropTypes.func,
|
|
16
17
|
secondaryAccountText: PropTypes.string,
|
|
18
|
+
isHighlighted: PropTypes.bool,
|
|
19
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
17
20
|
customProps: PropTypes.shape({
|
|
18
21
|
LinkProps: PropTypes.object,
|
|
19
22
|
TextProps: PropTypes.object,
|
|
@@ -42,6 +45,8 @@ export const ContactName_propTypes = {
|
|
|
42
45
|
}),
|
|
43
46
|
paidTitle: PropTypes.string
|
|
44
47
|
}),
|
|
48
|
+
isHighlighted: PropTypes.bool,
|
|
49
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
45
50
|
customProps: PropTypes.shape({
|
|
46
51
|
LinkProps: PropTypes.object,
|
|
47
52
|
TextProps: PropTypes.object
|
|
@@ -51,6 +56,8 @@ export const DepartmentText_propTypes = {
|
|
|
51
56
|
className: PropTypes.string,
|
|
52
57
|
dataId: PropTypes.string,
|
|
53
58
|
dataTitle: PropTypes.string,
|
|
59
|
+
isHighlighted: PropTypes.bool,
|
|
60
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
54
61
|
text: PropTypes.string
|
|
55
62
|
};
|
|
56
63
|
export const Email_propTypes = {
|
|
@@ -63,6 +70,8 @@ export const Email_propTypes = {
|
|
|
63
70
|
title: PropTypes.string,
|
|
64
71
|
urlData: PropTypes.object,
|
|
65
72
|
urlName: PropTypes.string,
|
|
73
|
+
isHighlighted: PropTypes.bool,
|
|
74
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
66
75
|
customProps: PropTypes.shape({
|
|
67
76
|
LinkProps: PropTypes.object,
|
|
68
77
|
TextProps: PropTypes.object
|
|
@@ -85,6 +94,8 @@ export const PhoneNumber_propTypes = {
|
|
|
85
94
|
title: PropTypes.string,
|
|
86
95
|
urlData: PropTypes.object,
|
|
87
96
|
urlName: PropTypes.string,
|
|
97
|
+
isHighlighted: PropTypes.bool,
|
|
98
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
88
99
|
customProps: PropTypes.shape({
|
|
89
100
|
LinkProps: PropTypes.object,
|
|
90
101
|
TextProps: PropTypes.object
|
|
@@ -95,6 +106,8 @@ export const PriorityText_propTypes = {
|
|
|
95
106
|
color: PropTypes.oneOf(['red', 'green', 'gray', 'orange']),
|
|
96
107
|
dataId: PropTypes.string,
|
|
97
108
|
dataTitle: PropTypes.string,
|
|
109
|
+
isHighlighted: PropTypes.bool,
|
|
110
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
98
111
|
text: PropTypes.string
|
|
99
112
|
};
|
|
100
113
|
export const SecondaryText_propTypes = {
|
|
@@ -103,6 +116,8 @@ export const SecondaryText_propTypes = {
|
|
|
103
116
|
dataTitle: PropTypes.string,
|
|
104
117
|
onClick: PropTypes.func,
|
|
105
118
|
text: PropTypes.string,
|
|
119
|
+
isHighlighted: PropTypes.bool,
|
|
120
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
106
121
|
customProps: PropTypes.shape({
|
|
107
122
|
SecondaryTextProps: PropTypes.object
|
|
108
123
|
})
|
|
@@ -113,6 +128,8 @@ export const StatusText_propTypes = {
|
|
|
113
128
|
dataId: PropTypes.string,
|
|
114
129
|
dataTitle: PropTypes.string,
|
|
115
130
|
fontWeight: PropTypes.oneOf(['regular', 'semibold', 'bold']),
|
|
131
|
+
isHighlighted: PropTypes.bool,
|
|
132
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
116
133
|
text: PropTypes.string
|
|
117
134
|
};
|
|
118
135
|
export const TicketId_propTypes = {
|
|
@@ -126,6 +143,8 @@ export const TicketId_propTypes = {
|
|
|
126
143
|
url: PropTypes.string,
|
|
127
144
|
urlData: PropTypes.string,
|
|
128
145
|
urlName: PropTypes.string,
|
|
146
|
+
isHighlighted: PropTypes.bool,
|
|
147
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
129
148
|
customProps: PropTypes.shape({
|
|
130
149
|
TicketIdProps: PropTypes.object,
|
|
131
150
|
LinkProps: PropTypes.object
|
|
@@ -138,5 +157,7 @@ export const Website_propTypes = {
|
|
|
138
157
|
isLink: PropTypes.bool,
|
|
139
158
|
target: PropTypes.string,
|
|
140
159
|
text: PropTypes.string,
|
|
160
|
+
isHighlighted: PropTypes.bool,
|
|
161
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
141
162
|
title: PropTypes.string
|
|
142
163
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
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';
|
|
4
6
|
import Link from "../../Link/Link";
|
|
5
7
|
import { whiteSpaceClassMapping } from '@zohodesk/components/es/utils/cssUtils';
|
|
6
8
|
import style from "./Subject.module.css";
|
|
@@ -24,30 +26,44 @@ export default class Subject extends Component {
|
|
|
24
26
|
isDotted,
|
|
25
27
|
children,
|
|
26
28
|
customProps,
|
|
27
|
-
whiteSpace
|
|
29
|
+
whiteSpace,
|
|
30
|
+
isHighlighted,
|
|
31
|
+
highlightData
|
|
28
32
|
} = this.props;
|
|
29
33
|
let {
|
|
30
34
|
LinkProps = {},
|
|
31
35
|
TextProps = {}
|
|
32
36
|
} = customProps;
|
|
37
|
+
let tagAttributesText = { ...TextProps,
|
|
38
|
+
'data-title-wrap': whiteSpace
|
|
39
|
+
};
|
|
40
|
+
let linkTagAttributes = {
|
|
41
|
+
'data-title-wrap': whiteSpace
|
|
42
|
+
};
|
|
33
43
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
34
44
|
urlName: urlName,
|
|
35
45
|
href: href,
|
|
36
46
|
urlData: urlData,
|
|
37
47
|
onClick: onClick,
|
|
38
|
-
className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
39
|
-
dataId: dataId,
|
|
40
|
-
title: text,
|
|
41
48
|
target: target,
|
|
42
|
-
"data-title-wrap": whiteSpace,
|
|
43
49
|
...LinkProps
|
|
44
|
-
}, children ? children :
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
}, children ? children : /*#__PURE__*/React.createElement(Typography, {
|
|
51
|
+
$tagAttributes_text: linkTagAttributes,
|
|
52
|
+
$i18n_dataTitle: text,
|
|
53
|
+
$ui_className: `${style.subject} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style.cursorPointer}`,
|
|
54
|
+
customId: dataId,
|
|
55
|
+
$flag_dotted: isDotted,
|
|
56
|
+
$ui_weight: fontWeight,
|
|
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
|
|
51
67
|
}, text));
|
|
52
68
|
}
|
|
53
69
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Subject rendering the defult props 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
6
|
-
class="
|
|
5
|
+
<div
|
|
6
|
+
class="dotted font_regular subject whiteSpace_pre"
|
|
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="
|
|
14
|
+
<div
|
|
15
|
+
class="dotted font_regular subject whiteSpace_breakSpaces"
|
|
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="
|
|
23
|
+
<div
|
|
24
|
+
class="dotted font_regular subject whiteSpace_normal"
|
|
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="
|
|
32
|
+
<div
|
|
33
|
+
class="dotted font_regular subject whiteSpace_nowrap"
|
|
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="
|
|
41
|
+
<div
|
|
42
|
+
class="dotted font_regular subject whiteSpace_pre"
|
|
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="
|
|
50
|
+
<div
|
|
51
|
+
class="dotted font_regular subject whiteSpace_preLine"
|
|
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="
|
|
59
|
+
<div
|
|
60
|
+
class="dotted font_regular subject whiteSpace_preWrap"
|
|
61
61
|
data-title-wrap="pre-wrap"
|
|
62
62
|
/>
|
|
63
63
|
</DocumentFragment>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import { propTypes as typographyProps } from '@zohodesk/components/es/Typography/props/propTypes';
|
|
2
3
|
export const propTypes = {
|
|
3
4
|
className: PropTypes.string,
|
|
4
5
|
dataId: PropTypes.string,
|
|
@@ -16,5 +17,8 @@ export const propTypes = {
|
|
|
16
17
|
LinkProps: PropTypes.object,
|
|
17
18
|
TextProps: PropTypes.object
|
|
18
19
|
}),
|
|
19
|
-
whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
|
|
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
|
|
20
24
|
};
|
|
@@ -178,8 +178,12 @@ export class StatusDropdown extends React.Component {
|
|
|
178
178
|
targetOffset,
|
|
179
179
|
renderTargetElement,
|
|
180
180
|
renderFooterElement,
|
|
181
|
-
a11y = {}
|
|
181
|
+
a11y = {},
|
|
182
|
+
customClass
|
|
182
183
|
} = this.props;
|
|
184
|
+
const {
|
|
185
|
+
dropBoxClass = ''
|
|
186
|
+
} = customClass;
|
|
183
187
|
const {
|
|
184
188
|
tabIndex = 0,
|
|
185
189
|
ariaLabelledby,
|
|
@@ -247,7 +251,8 @@ export class StatusDropdown extends React.Component {
|
|
|
247
251
|
isAnimate: true,
|
|
248
252
|
getRef: getContainerRef,
|
|
249
253
|
customClass: {
|
|
250
|
-
customDropBoxWrap: style.dropBoxContainer
|
|
254
|
+
customDropBoxWrap: style.dropBoxContainer,
|
|
255
|
+
customDropBox: dropBoxClass
|
|
251
256
|
},
|
|
252
257
|
needResponsive: needResponsive,
|
|
253
258
|
isResponsivePadding: true,
|
|
@@ -56,5 +56,8 @@ export const propTypes = {
|
|
|
56
56
|
positionsOffset: PropTypes.object,
|
|
57
57
|
renderTargetElement: PropTypes.func,
|
|
58
58
|
renderFooterElement: PropTypes.node,
|
|
59
|
-
targetOffset: PropTypes.object
|
|
59
|
+
targetOffset: PropTypes.object,
|
|
60
|
+
customClass: PropTypes.shape({
|
|
61
|
+
dropBoxClass: PropTypes.string
|
|
62
|
+
})
|
|
60
63
|
};
|
|
@@ -90,7 +90,7 @@ export default class StatusListItem extends React.Component {
|
|
|
90
90
|
"aria-label": ariaLabel,
|
|
91
91
|
"data-a11y-inset-focus": insetFocus,
|
|
92
92
|
isCover: false,
|
|
93
|
-
align: "
|
|
93
|
+
align: "vertical",
|
|
94
94
|
alignBox: "row",
|
|
95
95
|
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style.active : highlight && !isDisabled ? style.hover : ''} ${autoHover && !isDisabled ? style.effect : ''} ${needTick ? style.withTick : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? style.withBorder : ''} ${customClass}`,
|
|
96
96
|
dataId: String(value).replace("'", '_'),
|
|
@@ -102,6 +102,8 @@ export default class StatusListItem extends React.Component {
|
|
|
102
102
|
tabindex: isDisabled ? '-1' : '0',
|
|
103
103
|
...options,
|
|
104
104
|
...a11y
|
|
105
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
106
|
+
className: style.contentWrapper
|
|
105
107
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
106
108
|
className: `${style.statusType} ${style[bulletColor]}`
|
|
107
109
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
@@ -120,7 +122,7 @@ export default class StatusListItem extends React.Component {
|
|
|
120
122
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
121
123
|
name: "ZD-ticknew",
|
|
122
124
|
size: "8"
|
|
123
|
-
})) : null);
|
|
125
|
+
})) : null));
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
.varClass {
|
|
2
|
+
--statuslistitem_multiline_lineheight: 1.5385;
|
|
3
|
+
--statuslistitem_font_size: var(--zd_font_size13);
|
|
4
|
+
--statuslistitem_min_height: var(--zd_size35);
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
.list {
|
|
8
|
+
composes: varClass;
|
|
2
9
|
color: var(--zdt_statuslistitem_list_text);
|
|
3
|
-
font-size: var(--
|
|
10
|
+
font-size: var(--statuslistitem_font_size);
|
|
4
11
|
position: relative;
|
|
5
12
|
list-style: none;
|
|
6
|
-
min-height: var(--
|
|
13
|
+
min-height: var(--statuslistitem_min_height);
|
|
7
14
|
cursor: pointer;
|
|
8
15
|
}
|
|
9
16
|
[dir=ltr] .withBorder {
|
|
@@ -22,7 +29,7 @@
|
|
|
22
29
|
padding: var(--zd_size7) var(--zd_size20) ;
|
|
23
30
|
}
|
|
24
31
|
.large {
|
|
25
|
-
|
|
32
|
+
--statuslistitem_min_height: var(--zd_size48);
|
|
26
33
|
}
|
|
27
34
|
[dir=ltr] .large {
|
|
28
35
|
padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
|
|
@@ -36,9 +43,8 @@
|
|
|
36
43
|
.value {
|
|
37
44
|
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
38
45
|
}
|
|
39
|
-
.multiLineValue{
|
|
40
|
-
|
|
41
|
-
composes: clamp from '~@zohodesk/components/es/common/common.module.css';
|
|
46
|
+
.multiLineValue {
|
|
47
|
+
composes: lineClamp from '~@zohodesk/components/es/common/common.module.css';
|
|
42
48
|
}
|
|
43
49
|
[dir=ltr] .withBorder.active {
|
|
44
50
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
@@ -88,24 +94,44 @@
|
|
|
88
94
|
[dir=rtl] .active.withTick {
|
|
89
95
|
padding-left: var(--zd_size39) ;
|
|
90
96
|
}
|
|
97
|
+
.contentWrapper {
|
|
98
|
+
composes: dflex flexrow alignVertical from '~@zohodesk/components/es/common/common.module.css';
|
|
99
|
+
width: 100% ;
|
|
100
|
+
}
|
|
91
101
|
/* Status Type */
|
|
92
|
-
.statusType
|
|
93
|
-
|
|
94
|
-
|
|
102
|
+
.statusType{
|
|
103
|
+
position: relative;
|
|
104
|
+
composes: dflex alignVertical alignHorizontal from '~@zohodesk/components/es/common/common.module.css';
|
|
105
|
+
align-self: flex-start;
|
|
106
|
+
min-height: calc(var(--statuslistitem_font_size) * var(--statuslistitem_multiline_lineheight));
|
|
107
|
+
min-width: var(--zd_size20) ;
|
|
108
|
+
}
|
|
109
|
+
.statusType::after{
|
|
110
|
+
/* css:validation:ignore */
|
|
111
|
+
--status_listitem_bullet_min_height: var(--zd_font_size8);
|
|
112
|
+
/* css:validation:ignore */
|
|
113
|
+
--status_listitem_bullet_min_width: var(--zd_font_size8);
|
|
114
|
+
|
|
115
|
+
content: '';
|
|
116
|
+
height: var(--status_listitem_bullet_min_height);
|
|
117
|
+
width: var(--status_listitem_bullet_min_width);
|
|
118
|
+
/* css:theme-validation:ignore */
|
|
95
119
|
border-radius: 50%;
|
|
120
|
+
background-color: var(--zdt_statuslistitem_black_bg);
|
|
96
121
|
}
|
|
97
|
-
[dir=ltr] .statusType
|
|
98
|
-
margin-right: var(--
|
|
122
|
+
[dir=ltr] .statusType::after{
|
|
123
|
+
margin-right: var(--zd_size12) ;
|
|
99
124
|
}
|
|
100
|
-
[dir=rtl] .statusType
|
|
101
|
-
margin-left: var(--
|
|
125
|
+
[dir=rtl] .statusType::after{
|
|
126
|
+
margin-left: var(--zd_size12) ;
|
|
102
127
|
}
|
|
103
|
-
|
|
128
|
+
|
|
129
|
+
.black.statusType::after {
|
|
104
130
|
background-color: var(--zdt_statuslistitem_black_bg);
|
|
105
131
|
}
|
|
106
|
-
.orange {
|
|
132
|
+
.orange.statusType::after {
|
|
107
133
|
background-color: var(--zdt_statuslistitem_orange_bg);
|
|
108
134
|
}
|
|
109
|
-
.green {
|
|
135
|
+
.green.statusType::after {
|
|
110
136
|
background-color: var(--zdt_statuslistitem_green_bg);
|
|
111
|
-
}
|
|
137
|
+
}
|
|
@@ -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
|
}
|
|
@@ -149,10 +149,15 @@ var CheckBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
149
149
|
container: !isDirectCol ? _FieldsModule["default"].checkboxText : ''
|
|
150
150
|
},
|
|
151
151
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
152
|
-
|
|
152
|
+
fontWeight: isDirectCol ? 'regular' : 'semibold',
|
|
153
153
|
testId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
154
154
|
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
155
|
-
onClick: !removeEvent ? this.handleLabelClick : null
|
|
155
|
+
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
156
|
+
tagAttributes: {
|
|
157
|
+
label: {
|
|
158
|
+
id: id
|
|
159
|
+
}
|
|
160
|
+
}
|
|
156
161
|
}, LabelProps)));
|
|
157
162
|
|
|
158
163
|
return /*#__PURE__*/_react["default"].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
|
-
<
|
|
77
|
-
class="
|
|
78
|
-
pointer checkboxText undefined cbTextPointer "
|
|
76
|
+
<div
|
|
77
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
79
78
|
data-id="undefined_label"
|
|
80
|
-
data-selector-id="
|
|
79
|
+
data-selector-id="undefined_label"
|
|
81
80
|
data-test-id="undefined_label"
|
|
82
81
|
>
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
<label
|
|
83
|
+
class="size14 font_semibold label"
|
|
84
|
+
/>
|
|
85
|
+
</div>
|
|
85
86
|
</div>
|
|
86
87
|
</div>
|
|
87
88
|
</div>
|
|
@@ -164,15 +165,16 @@ exports[`CheckBoxField rendering the custom label children via renderLabelProps
|
|
|
164
165
|
data-selector-id="fieldContainer"
|
|
165
166
|
data-test-id="containerComponent"
|
|
166
167
|
>
|
|
167
|
-
<
|
|
168
|
-
class="
|
|
169
|
-
pointer checkboxText undefined cbTextPointer "
|
|
168
|
+
<div
|
|
169
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
170
170
|
data-id="undefined_label"
|
|
171
|
-
data-selector-id="
|
|
171
|
+
data-selector-id="undefined_label"
|
|
172
172
|
data-test-id="undefined_label"
|
|
173
173
|
>
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
<label
|
|
175
|
+
class="size14 font_semibold label"
|
|
176
|
+
/>
|
|
177
|
+
</div>
|
|
176
178
|
{}
|
|
177
179
|
</div>
|
|
178
180
|
</div>
|
|
@@ -255,15 +257,16 @@ exports[`CheckBoxField rendering the defult props 1`] = `
|
|
|
255
257
|
data-selector-id="fieldContainer"
|
|
256
258
|
data-test-id="containerComponent"
|
|
257
259
|
>
|
|
258
|
-
<
|
|
259
|
-
class="
|
|
260
|
-
pointer checkboxText undefined cbTextPointer "
|
|
260
|
+
<div
|
|
261
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
261
262
|
data-id="undefined_label"
|
|
262
|
-
data-selector-id="
|
|
263
|
+
data-selector-id="undefined_label"
|
|
263
264
|
data-test-id="undefined_label"
|
|
264
265
|
>
|
|
265
|
-
|
|
266
|
-
|
|
266
|
+
<label
|
|
267
|
+
class="size14 font_semibold label"
|
|
268
|
+
/>
|
|
269
|
+
</div>
|
|
267
270
|
</div>
|
|
268
271
|
</div>
|
|
269
272
|
</div>
|
|
@@ -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
|
|
@@ -196,7 +196,12 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
196
196
|
htmlFor: getAriaId,
|
|
197
197
|
testId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
198
198
|
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
199
|
-
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick
|
|
199
|
+
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
200
|
+
tagAttributes: {
|
|
201
|
+
label: {
|
|
202
|
+
id: labelName
|
|
203
|
+
}
|
|
204
|
+
}
|
|
200
205
|
}, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
201
206
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
202
207
|
}, isLocked && lockedValueText ? /*#__PURE__*/_react["default"].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
|
|
@@ -226,7 +226,10 @@ position: relative;
|
|
|
226
226
|
[dir=rtl] .rightPlaceholder{
|
|
227
227
|
left:var(--zd_size15)
|
|
228
228
|
}
|
|
229
|
-
|
|
230
229
|
.phoneField{
|
|
231
230
|
composes: ltr-zone from '~@zohodesk/components/es/common/common.module.css';
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.lineClampPickListItem{
|
|
234
|
+
--line-clamp: var(--picklist-field-line-clamp,3);
|
|
232
235
|
}
|