@zohodesk/dot 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/MissedPropType_Keys.html +101 -0
- package/.cli/PropLessFiles.html +101 -0
- package/.cli/PropValidationExcludeFilesArray.js +1 -0
- package/.cli/propValidation_report.html +160 -0
- package/README.md +38 -21
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +12 -12
- package/coverage/coverage-summary.json +12 -12
- package/coverage/index.html +1 -1
- package/es/ActionButton/ActionButton.js +5 -2
- package/es/ActionButton/props/propTypes.js +3 -2
- package/es/AlphabeticList/props/propTypes.js +1 -1
- package/es/Attachment/Attachment.js +2 -1
- package/es/Attachment/Attachment.module.css +10 -6
- package/es/Attachment/props/propTypes.js +2 -1
- package/es/Drawer/props/propTypes.js +2 -1
- package/es/Link/Link.js +2 -1
- package/es/Link/props/propTypes.js +5 -1
- package/es/Message/Message.js +4 -2
- package/es/Message/props/propTypes.js +11 -4
- package/es/Separator/props/propTypes.js +1 -1
- package/es/TagWithIcon/props/propTypes.js +2 -1
- package/es/ToastMessage/props/propTypes.js +4 -3
- package/es/actions/props/propTypes.js +2 -1
- package/es/alert/AlertLookup/props/propTypes.js +0 -1
- package/es/avatar/AvatarThread/props/propTypes.js +1 -1
- package/es/deprecated/SelectDropdown/SelectDropdown.js +3 -8
- package/es/dropdown/ToggleDropDown/props/propTypes.js +4 -1
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/es/emptystate/EditionPage/props/propTypes.js +6 -2
- package/es/form/fields/CheckBoxField/props/propTypes.js +1 -1
- package/es/form/fields/CurrencyField/props/propTypes.js +4 -1
- package/es/form/fields/DateField/props/propTypes.js +1 -1
- package/es/form/fields/FieldContainer/props/propTypes.js +17 -3
- package/es/form/fields/MultiSelectField/props/propTypes.js +2 -2
- package/es/form/fields/PhoneField/props/propTypes.js +8 -1
- package/es/form/fields/RadioField/props/propTypes.js +2 -2
- package/es/form/fields/SelectField/SelectField.js +1 -2
- package/es/form/fields/SelectField/props/propTypes.js +2 -2
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/form/fields/TagsMultiSelectField/props/propTypes.js +13 -2
- package/es/form/fields/TextBoxField/props/propTypes.js +8 -1
- package/es/form/fields/TextEditor/props/propTypes.js +7 -1
- package/es/form/fields/TextEditorField/props/propTypes.js +13 -1
- package/es/form/fields/TextEditorWrapper/props/propTypes.js +2 -1
- package/es/form/fields/TextareaField/props/propTypes.js +2 -2
- package/es/form/fields/ValidationMessage/props/propTypes.js +4 -2
- package/es/form/fields/props/FieldCommonPropTypes.js +16 -22
- package/es/form/layout/Section/props/propTypes.js +3 -1
- package/es/list/Comment/props/propTypes.js +0 -3
- package/es/list/GridStencils/props/propTypes.js +2 -1
- package/es/list/Icons/AddNewIcon.js +3 -2
- package/es/list/Icons/CompleteIcon.js +3 -2
- package/es/list/Icons/DeleteIcon.js +4 -3
- package/es/list/Icons/EditIcon.js +5 -3
- package/es/list/Icons/ReadUnreadIcon.js +5 -3
- package/es/list/Icons/SmartIcon.js +5 -3
- package/es/list/Icons/props/propTypes.js +0 -2
- package/es/list/ListLayout/ListLayout.module.css +24 -8
- package/es/list/SecondaryText/props/propTypes.js +0 -1
- package/es/list/UserTime/props/propTypes.js +5 -1
- package/es/list/listCommon.module.css +23 -5
- package/es/list/status/StatusDropdown/StatusDropdown.js +12 -2
- package/es/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/es/lookup/Lookup/Lookup.js +2 -0
- package/es/lookup/Lookup/props/propTypes.js +4 -1
- package/es/lookup/header/ViewDropDown/props/propTypes.js +6 -11
- package/es/setup/table/TableHead/props/propTypes.js +2 -1
- package/es/v1/ChannelIcon/ChannelIcon.js +92 -0
- package/es/v1/ExternalLink/ExternalLink.js +49 -0
- package/es/v1/NewStar/NewStar.js +61 -0
- package/es/v1/lookup/header/Close/Close.js +30 -0
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +75 -0
- package/es/v1/lookup/header/Search/Search.js +177 -0
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +90 -0
- package/es/v1/lookup/header/Title/Title.js +27 -0
- package/es/v1/version2/GlobalNotification/GlobalNotification.js +4 -2
- package/es/version2/GlobalNotification/GlobalNotification.js +4 -2
- package/es/version2/GlobalNotification/props/propTypes.js +19 -1
- package/es/version2/lookup/AlertLookup/AlertLookup.js +14 -2
- package/es/version2/lookup/AlertLookup/props/propTypes.js +0 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +2 -1
- package/es/version2/notification/DesktopNotification/props/propTypes.js +13 -9
- package/lib/ActionButton/ActionButton.js +5 -3
- package/lib/ActionButton/props/propTypes.js +3 -2
- package/lib/AlphabeticList/props/propTypes.js +1 -1
- package/lib/Attachment/Attachment.js +2 -1
- package/lib/Attachment/Attachment.module.css +10 -6
- package/lib/Attachment/props/propTypes.js +2 -1
- package/lib/Drawer/props/propTypes.js +2 -1
- package/lib/Link/Link.js +2 -1
- package/lib/Link/props/propTypes.js +5 -1
- package/lib/Message/Message.js +5 -1
- package/lib/Message/props/propTypes.js +23 -6
- package/lib/Separator/props/propTypes.js +1 -1
- package/lib/TagWithIcon/props/propTypes.js +2 -1
- package/lib/ToastMessage/props/propTypes.js +4 -3
- package/lib/actions/props/propTypes.js +2 -1
- package/lib/alert/AlertLookup/props/propTypes.js +0 -1
- package/lib/avatar/AvatarThread/props/propTypes.js +1 -1
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +3 -7
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +4 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/lib/emptystate/EditionPage/props/propTypes.js +6 -2
- package/lib/form/fields/CheckBoxField/props/propTypes.js +1 -1
- package/lib/form/fields/CurrencyField/props/propTypes.js +5 -2
- package/lib/form/fields/DateField/props/propTypes.js +1 -1
- package/lib/form/fields/FieldContainer/props/propTypes.js +21 -16
- package/lib/form/fields/MultiSelectField/props/propTypes.js +3 -3
- package/lib/form/fields/PhoneField/props/propTypes.js +8 -1
- package/lib/form/fields/RadioField/props/propTypes.js +2 -2
- package/lib/form/fields/SelectField/SelectField.js +1 -2
- package/lib/form/fields/SelectField/props/propTypes.js +3 -3
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +16 -11
- package/lib/form/fields/TextBoxField/props/propTypes.js +8 -1
- package/lib/form/fields/TextEditor/props/propTypes.js +7 -1
- package/lib/form/fields/TextEditorField/props/propTypes.js +51 -49
- package/lib/form/fields/TextEditorWrapper/props/propTypes.js +2 -1
- package/lib/form/fields/TextareaField/props/propTypes.js +3 -3
- package/lib/form/fields/ValidationMessage/props/propTypes.js +4 -2
- package/lib/form/fields/props/FieldCommonPropTypes.js +16 -23
- package/lib/form/layout/Section/props/propTypes.js +3 -1
- package/lib/list/Comment/props/propTypes.js +0 -3
- package/lib/list/GridStencils/props/propTypes.js +2 -1
- package/lib/list/Icons/AddNewIcon.js +4 -2
- package/lib/list/Icons/CompleteIcon.js +4 -2
- package/lib/list/Icons/DeleteIcon.js +5 -3
- package/lib/list/Icons/EditIcon.js +6 -3
- package/lib/list/Icons/ReadUnreadIcon.js +6 -3
- package/lib/list/Icons/SmartIcon.js +6 -3
- package/lib/list/Icons/props/propTypes.js +0 -2
- package/lib/list/ListLayout/ListLayout.module.css +24 -8
- package/lib/list/SecondaryText/props/propTypes.js +0 -1
- package/lib/list/UserTime/props/propTypes.js +5 -1
- package/lib/list/listCommon.module.css +23 -5
- package/lib/list/status/StatusDropdown/StatusDropdown.js +12 -2
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +2 -0
- package/lib/lookup/Lookup/props/propTypes.js +4 -1
- package/lib/lookup/header/ViewDropDown/props/propTypes.js +6 -11
- package/lib/setup/table/TableHead/props/propTypes.js +2 -1
- package/lib/v1/ChannelIcon/ChannelIcon.js +113 -0
- package/lib/v1/ExternalLink/ExternalLink.js +57 -0
- package/lib/v1/NewStar/NewStar.js +74 -0
- package/lib/v1/lookup/header/Close/Close.js +47 -0
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +101 -0
- package/lib/v1/lookup/header/Search/Search.js +208 -0
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +108 -0
- package/lib/v1/lookup/header/Title/Title.js +44 -0
- package/lib/v1/version2/GlobalNotification/GlobalNotification.js +5 -1
- package/lib/version2/GlobalNotification/GlobalNotification.js +5 -1
- package/lib/version2/GlobalNotification/props/propTypes.js +23 -3
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +14 -2
- package/lib/version2/lookup/AlertLookup/props/propTypes.js +0 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +2 -0
- package/lib/version2/notification/DesktopNotification/props/propTypes.js +16 -11
- package/package.json +12 -10
- package/result.json +1 -1
|
@@ -140,12 +140,7 @@ SelectDropdown.propTypes = {
|
|
|
140
140
|
valueKey: PropTypes.string,
|
|
141
141
|
options: PropTypes.array
|
|
142
142
|
}),
|
|
143
|
-
title: PropTypes.string
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
// componentGroup: 'Header',
|
|
147
|
-
// folderName: 'Setup'
|
|
148
|
-
// };
|
|
149
|
-
// }
|
|
150
|
-
|
|
143
|
+
title: PropTypes.string,
|
|
144
|
+
togglePopup: PropTypes.func
|
|
145
|
+
};
|
|
151
146
|
export default Popup(SelectDropdown);
|
|
@@ -31,6 +31,7 @@ export default class CommonEmptyState extends Component {
|
|
|
31
31
|
"data-id": dataId,
|
|
32
32
|
"data-test-id": dataId
|
|
33
33
|
}, getEmptyState ? getEmptyState() : null, title ? /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
tabIndex: "0",
|
|
34
35
|
className: `${style.title} ${titleClass}`
|
|
35
36
|
}, title) : null, description ? /*#__PURE__*/React.createElement("div", {
|
|
36
37
|
className: style.linkWrapper
|
|
@@ -2,6 +2,10 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
export const propTypes = {
|
|
3
3
|
dataId: PropTypes.string,
|
|
4
4
|
footerText: PropTypes.string,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
title: PropTypes.string,
|
|
6
|
+
subtitle: PropTypes.string,
|
|
7
|
+
information: PropTypes.string,
|
|
8
|
+
onButtonClick: PropTypes.func,
|
|
9
|
+
butttonText: PropTypes.string,
|
|
10
|
+
children: PropTypes.string
|
|
7
11
|
};
|
|
@@ -31,6 +31,9 @@ export const propTypes = {
|
|
|
31
31
|
ValidationMessageProps1: PropTypes.object,
|
|
32
32
|
ValidationMessageProps2: PropTypes.object
|
|
33
33
|
}),
|
|
34
|
+
onFocus: PropTypes.func,
|
|
34
35
|
formatCurrency: PropTypes.func,
|
|
35
|
-
|
|
36
|
+
htmlId: PropTypes.string,
|
|
37
|
+
userCurrencyType: PropTypes.string,
|
|
38
|
+
...FieldCommonPropTypes
|
|
36
39
|
};
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
|
|
3
|
-
export const propTypes = { ...FieldCommonPropTypes(),
|
|
2
|
+
export const propTypes = {
|
|
4
3
|
children: PropTypes.node,
|
|
5
4
|
alignContainer: PropTypes.oneOf('vertical', 'baseline'),
|
|
6
5
|
renderProps: PropTypes.shape({
|
|
7
6
|
start: PropTypes.func,
|
|
8
7
|
middle: PropTypes.func,
|
|
9
8
|
end: PropTypes.func
|
|
10
|
-
})
|
|
9
|
+
}),
|
|
10
|
+
ePhiData: PropTypes.shape({
|
|
11
|
+
ePhiTitle: PropTypes.string,
|
|
12
|
+
ePhiText: PropTypes.string,
|
|
13
|
+
ePhiStatus: PropTypes.bool
|
|
14
|
+
}),
|
|
15
|
+
isLocked: PropTypes.bool,
|
|
16
|
+
lockedInfoText: PropTypes.string,
|
|
17
|
+
infoText: PropTypes.string,
|
|
18
|
+
dataId: PropTypes.string,
|
|
19
|
+
dataSelectorId: PropTypes.string,
|
|
20
|
+
dataId: PropTypes.string,
|
|
21
|
+
infoText: PropTypes.string,
|
|
22
|
+
lockedInfoText: PropTypes.string,
|
|
23
|
+
isLocked: PropTypes.bool,
|
|
24
|
+
dataSelectorId: PropTypes.bool
|
|
11
25
|
};
|
|
@@ -10,7 +10,6 @@ export const propTypes = {
|
|
|
10
10
|
getRef: PropTypes.func,
|
|
11
11
|
id: PropTypes.string,
|
|
12
12
|
isAnimate: PropTypes.bool,
|
|
13
|
-
isFocusOnLabelClick: PropTypes.bool,
|
|
14
13
|
isNextOptions: PropTypes.bool,
|
|
15
14
|
isSearching: PropTypes.bool,
|
|
16
15
|
labelName: PropTypes.string,
|
|
@@ -46,5 +45,6 @@ export const propTypes = {
|
|
|
46
45
|
ValidationMessageProps2: PropTypes.object
|
|
47
46
|
}),
|
|
48
47
|
i18nKeys: PropTypes.object,
|
|
49
|
-
|
|
48
|
+
htmlId: PropTypes.string,
|
|
49
|
+
...FieldCommonPropTypes
|
|
50
50
|
};
|
|
@@ -36,5 +36,12 @@ export const propTypes = {
|
|
|
36
36
|
customProps: PropTypes.shape({
|
|
37
37
|
LinkProps: PropTypes.object,
|
|
38
38
|
TextBoxFieldProps: PropTypes.object
|
|
39
|
-
})
|
|
39
|
+
}),
|
|
40
|
+
onFocus: PropTypes.func,
|
|
41
|
+
dataSelectorId: PropTypes.string,
|
|
42
|
+
isTelephony: PropTypes.bool,
|
|
43
|
+
providerName: PropTypes.string,
|
|
44
|
+
ticketId: PropTypes.string,
|
|
45
|
+
contactId: PropTypes.string,
|
|
46
|
+
type: PropTypes.string
|
|
40
47
|
};
|
|
@@ -19,12 +19,12 @@ export const propTypes = {
|
|
|
19
19
|
validationPalette: PropTypes.string,
|
|
20
20
|
validationRuleMessage: PropTypes.string,
|
|
21
21
|
validationRulePalette: PropTypes.string,
|
|
22
|
-
valueField: PropTypes.string,
|
|
23
22
|
variant: PropTypes.oneOf(['primary', 'default', 'secondary']),
|
|
24
23
|
customProps: PropTypes.shape({
|
|
25
24
|
LabelProps: PropTypes.object,
|
|
26
25
|
RadioProps: PropTypes.object,
|
|
27
26
|
ValidationMessageProps1: PropTypes.object,
|
|
28
27
|
ValidationMessageProps2: PropTypes.object
|
|
29
|
-
})
|
|
28
|
+
}),
|
|
29
|
+
dataSelectorId: PropTypes.string
|
|
30
30
|
};
|
|
@@ -11,7 +11,6 @@ export const propTypes = {
|
|
|
11
11
|
getNextOptions: PropTypes.func,
|
|
12
12
|
getRef: PropTypes.func,
|
|
13
13
|
id: PropTypes.string,
|
|
14
|
-
isFocusOnLabelClick: PropTypes.bool,
|
|
15
14
|
isNextOptions: PropTypes.bool,
|
|
16
15
|
labelCustomClass: PropTypes.string,
|
|
17
16
|
labelName: PropTypes.string,
|
|
@@ -46,5 +45,6 @@ export const propTypes = {
|
|
|
46
45
|
ValidationMessageProps1: PropTypes.object,
|
|
47
46
|
ValidationMessageProps2: PropTypes.object
|
|
48
47
|
}),
|
|
49
|
-
|
|
48
|
+
htmlId: PropTypes.string,
|
|
49
|
+
...FieldCommonPropTypes
|
|
50
50
|
};
|
|
@@ -31,7 +31,6 @@ export const propTypes = {
|
|
|
31
31
|
onFocus: PropTypes.func
|
|
32
32
|
}),
|
|
33
33
|
isNewNeeded: PropTypes.bool,
|
|
34
|
-
data: PropTypes.string,
|
|
35
34
|
htmlId: PropTypes.string,
|
|
36
35
|
isLoading: PropTypes.bool,
|
|
37
36
|
isListDisabled: PropTypes.bool,
|
|
@@ -48,5 +47,17 @@ export const propTypes = {
|
|
|
48
47
|
TagsMultiSelectProps: PropTypes.object,
|
|
49
48
|
ValidationMessageProps: PropTypes.object
|
|
50
49
|
}),
|
|
51
|
-
|
|
50
|
+
ePhiData: PropTypes.shape({
|
|
51
|
+
ePhiTitle: PropTypes.string,
|
|
52
|
+
ePhiText: PropTypes.string,
|
|
53
|
+
ePhiStatus: PropTypes.bool
|
|
54
|
+
}),
|
|
55
|
+
searchValue: PropTypes.string,
|
|
56
|
+
isPopupOpen: PropTypes.bool,
|
|
57
|
+
isPopupReady: PropTypes.bool,
|
|
58
|
+
removeClose: PropTypes.func,
|
|
59
|
+
togglePopup: PropTypes.func,
|
|
60
|
+
clickableTag: PropTypes.bool,
|
|
61
|
+
dataId: PropTypes.string,
|
|
62
|
+
dataSelectorId: PropTypes.bool
|
|
52
63
|
};
|
|
@@ -33,5 +33,12 @@ export const propTypes = {
|
|
|
33
33
|
ValidationMessageProps1: PropTypes.object,
|
|
34
34
|
ValidationMessageProps2: PropTypes.object
|
|
35
35
|
}),
|
|
36
|
-
|
|
36
|
+
htmlId: PropTypes.string,
|
|
37
|
+
onFocus: PropTypes.func,
|
|
38
|
+
ePhiData: PropTypes.shape({
|
|
39
|
+
ePhiTitle: PropTypes.string,
|
|
40
|
+
ePhiText: PropTypes.string,
|
|
41
|
+
ePhiStatus: PropTypes.bool
|
|
42
|
+
}),
|
|
43
|
+
...FieldCommonPropTypes
|
|
37
44
|
};
|
|
@@ -36,5 +36,11 @@ export const propTypes = {
|
|
|
36
36
|
value: PropTypes.string,
|
|
37
37
|
needInlineAttachment: PropTypes.bool,
|
|
38
38
|
isNightMode: PropTypes.bool,
|
|
39
|
-
isReadOnly: PropTypes.bool
|
|
39
|
+
isReadOnly: PropTypes.bool,
|
|
40
|
+
EDITORURL: PropTypes.string,
|
|
41
|
+
getCSRFCookieName: PropTypes.string,
|
|
42
|
+
getCSRFCookie: PropTypes.string,
|
|
43
|
+
isEditorDefaultOpen: PropTypes.bool,
|
|
44
|
+
toggleEdit: PropTypes.func,
|
|
45
|
+
dataSelectorId: PropTypes.string
|
|
40
46
|
};
|
|
@@ -43,5 +43,17 @@ export const propTypes = {
|
|
|
43
43
|
TextEditorWrapperProps: PropTypes.object,
|
|
44
44
|
ValidationMessageProps: PropTypes.object
|
|
45
45
|
}),
|
|
46
|
-
|
|
46
|
+
ePhiData: PropTypes.shape({
|
|
47
|
+
ePhiTitle: PropTypes.string,
|
|
48
|
+
ePhiText: PropTypes.string,
|
|
49
|
+
ePhiStatus: PropTypes.bool
|
|
50
|
+
}),
|
|
51
|
+
dataId: PropTypes.string,
|
|
52
|
+
infoText: PropTypes.string,
|
|
53
|
+
lockedInfoText: PropTypes.string,
|
|
54
|
+
isLocked: PropTypes.bool,
|
|
55
|
+
isDisabled: PropTypes.bool,
|
|
56
|
+
isReadOnly: PropTypes.bool,
|
|
57
|
+
isMandatory: PropTypes.bool,
|
|
58
|
+
dataSelectorId: PropTypes.bool
|
|
47
59
|
};
|
|
@@ -14,7 +14,6 @@ export const propTypes = {
|
|
|
14
14
|
maxLength: PropTypes.number,
|
|
15
15
|
onBlur: PropTypes.func,
|
|
16
16
|
onChange: PropTypes.func,
|
|
17
|
-
onKeyDown: PropTypes.func,
|
|
18
17
|
placeHolder: PropTypes.string,
|
|
19
18
|
textBoxSize: PropTypes.string,
|
|
20
19
|
textBoxVariant: PropTypes.string,
|
|
@@ -30,5 +29,6 @@ export const propTypes = {
|
|
|
30
29
|
ValidationMessageProps1: PropTypes.object,
|
|
31
30
|
ValidationMessageProps2: PropTypes.object
|
|
32
31
|
}),
|
|
33
|
-
|
|
32
|
+
htmlId: PropTypes.string,
|
|
33
|
+
...FieldCommonPropTypes
|
|
34
34
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
export const propTypes = {
|
|
3
3
|
clipped: PropTypes.bool,
|
|
4
|
-
id: PropTypes.string,
|
|
5
4
|
onClick: PropTypes.func,
|
|
6
5
|
palette: PropTypes.oneOf(['primary', 'mandatory', 'danger']),
|
|
7
6
|
size: PropTypes.oneOf(['xsmall', 'small', 'medium', 'large']),
|
|
@@ -10,5 +9,8 @@ export const propTypes = {
|
|
|
10
9
|
a11y: PropTypes.shape({
|
|
11
10
|
role: PropTypes.string
|
|
12
11
|
}),
|
|
13
|
-
tooltip: PropTypes.string
|
|
12
|
+
tooltip: PropTypes.string,
|
|
13
|
+
htmlFor: PropTypes.string,
|
|
14
|
+
dataId: PropTypes.string,
|
|
15
|
+
dataSelectorId: PropTypes.string
|
|
14
16
|
};
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
export const FieldCommonPropTypes =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
middle: PropTypes.func,
|
|
19
|
-
end: PropTypes.func
|
|
20
|
-
}),
|
|
21
|
-
dataSelectorId: PropTypes.bool
|
|
22
|
-
};
|
|
23
|
-
};
|
|
2
|
+
export const FieldCommonPropTypes = {
|
|
3
|
+
dataId: PropTypes.string,
|
|
4
|
+
infoText: PropTypes.string,
|
|
5
|
+
lockedInfoText: PropTypes.string,
|
|
6
|
+
isLocked: PropTypes.bool,
|
|
7
|
+
isDisabled: PropTypes.bool,
|
|
8
|
+
isReadOnly: PropTypes.bool,
|
|
9
|
+
isMandatory: PropTypes.bool,
|
|
10
|
+
renderLabelProps: PropTypes.shape({
|
|
11
|
+
start: PropTypes.func,
|
|
12
|
+
middle: PropTypes.func,
|
|
13
|
+
end: PropTypes.func
|
|
14
|
+
}),
|
|
15
|
+
dataSelectorId: PropTypes.bool
|
|
16
|
+
};
|
|
17
|
+
;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { AddNewIcon_propTypes } from './props/propTypes';
|
|
3
3
|
import { Icon } from '@zohodesk/icons';
|
|
4
4
|
import style from './Icons.module.css';
|
|
5
|
+
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
5
6
|
export default class AddNewIcon extends React.Component {
|
|
6
7
|
render() {
|
|
7
8
|
let {
|
|
@@ -11,9 +12,9 @@ export default class AddNewIcon extends React.Component {
|
|
|
11
12
|
iconClass,
|
|
12
13
|
className
|
|
13
14
|
} = this.props;
|
|
14
|
-
return /*#__PURE__*/React.createElement("
|
|
15
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
15
16
|
onClick: onClick,
|
|
16
|
-
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
17
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
17
18
|
"data-id": dataId,
|
|
18
19
|
"data-test-id": dataId,
|
|
19
20
|
"data-title": dataTitle
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { CompleteIcon_propTypes } from './props/propTypes';
|
|
3
3
|
import { Icon } from '@zohodesk/icons';
|
|
4
4
|
import style from './Icons.module.css';
|
|
5
|
+
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
5
6
|
export default class CompleteIcon extends React.Component {
|
|
6
7
|
render() {
|
|
7
8
|
let {
|
|
@@ -12,9 +13,9 @@ export default class CompleteIcon extends React.Component {
|
|
|
12
13
|
className,
|
|
13
14
|
iconSize
|
|
14
15
|
} = this.props;
|
|
15
|
-
return /*#__PURE__*/React.createElement("
|
|
16
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
16
17
|
onClick: onClick,
|
|
17
|
-
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
18
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
18
19
|
"data-id": dataId,
|
|
19
20
|
"data-test-id": dataId,
|
|
20
21
|
"data-title": dataTitle
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { DeleteComponent_propTypes } from './props/propTypes';
|
|
3
3
|
import style from './Icons.module.css';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
+
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
5
6
|
export default class DeleteComponent extends React.Component {
|
|
6
7
|
render() {
|
|
7
8
|
let {
|
|
@@ -12,13 +13,13 @@ export default class DeleteComponent extends React.Component {
|
|
|
12
13
|
iconSize,
|
|
13
14
|
className
|
|
14
15
|
} = this.props;
|
|
15
|
-
return /*#__PURE__*/React.createElement("
|
|
16
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
16
17
|
onClick: onClick,
|
|
17
|
-
className: `${style.iconStyle} ${style.redHover} ${className ? className : ''}`,
|
|
18
|
+
className: `${style.iconStyle} ${style.redHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
18
19
|
"data-id": dataId,
|
|
19
20
|
"data-test-id": dataId,
|
|
20
21
|
"data-title": dataTitle,
|
|
21
|
-
|
|
22
|
+
"aria-label": dataTitle
|
|
22
23
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
23
24
|
name: "ZD-GN-delete",
|
|
24
25
|
iconClass: iconClass ? iconClass : '',
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { EditIcon_propTypes } from './props/propTypes';
|
|
3
3
|
import style from './Icons.module.css';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
+
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
5
6
|
export default class EditIcon extends React.Component {
|
|
6
7
|
render() {
|
|
7
8
|
let {
|
|
@@ -12,12 +13,13 @@ export default class EditIcon extends React.Component {
|
|
|
12
13
|
iconSize,
|
|
13
14
|
className
|
|
14
15
|
} = this.props;
|
|
15
|
-
return /*#__PURE__*/React.createElement("
|
|
16
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
16
17
|
onClick: onClick,
|
|
17
|
-
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
18
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
18
19
|
"data-id": dataId,
|
|
19
20
|
"data-test-id": dataId,
|
|
20
|
-
"data-title": dataTitle
|
|
21
|
+
"data-title": dataTitle,
|
|
22
|
+
"aria-label": dataTitle
|
|
21
23
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
22
24
|
name: "ZD-GN-edit",
|
|
23
25
|
iconClass: iconClass ? iconClass : '',
|
|
@@ -3,6 +3,7 @@ import { ReadUnreadIcon_defaultProps } from './props/defaultProps';
|
|
|
3
3
|
import { ReadUnreadIcon_propTypes } from './props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
5
|
import style from './Icons.module.css';
|
|
6
|
+
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
6
7
|
export default class ReadUnreadIcon extends React.Component {
|
|
7
8
|
render() {
|
|
8
9
|
let {
|
|
@@ -15,12 +16,13 @@ export default class ReadUnreadIcon extends React.Component {
|
|
|
15
16
|
isRead,
|
|
16
17
|
iconSize
|
|
17
18
|
} = this.props;
|
|
18
|
-
return /*#__PURE__*/React.createElement("
|
|
19
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
19
20
|
onClick: onClick,
|
|
20
|
-
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
21
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
21
22
|
"data-id": dataId,
|
|
22
23
|
"data-test-id": dataId,
|
|
23
|
-
"data-title": dataTitle
|
|
24
|
+
"data-title": dataTitle,
|
|
25
|
+
"aria-label": dataTitle
|
|
24
26
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
25
27
|
name: isRead ? 'ZD-GN-read' : 'ZD-GN-unread',
|
|
26
28
|
size: iconSize,
|
|
@@ -2,6 +2,7 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import { SmartIcon_propTypes } from './props/propTypes';
|
|
3
3
|
import style from './Icons.module.css';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
+
import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
5
6
|
export default class SmartIcon extends Component {
|
|
6
7
|
render() {
|
|
7
8
|
let {
|
|
@@ -11,12 +12,13 @@ export default class SmartIcon extends Component {
|
|
|
11
12
|
iconClass,
|
|
12
13
|
className
|
|
13
14
|
} = this.props;
|
|
14
|
-
return /*#__PURE__*/React.createElement("
|
|
15
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
15
16
|
onClick: onClick,
|
|
16
|
-
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''}`,
|
|
17
|
+
className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`,
|
|
17
18
|
"data-id": dataId,
|
|
18
19
|
"data-test-id": dataId,
|
|
19
|
-
"data-title": dataTitle
|
|
20
|
+
"data-title": dataTitle,
|
|
21
|
+
"aria-label": dataTitle
|
|
20
22
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
21
23
|
name: "ZD-TK-peek",
|
|
22
24
|
iconClass: iconClass ? iconClass : ''
|
|
@@ -1,58 +1,74 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--listBorder: var(--zdt_listLayout_border)
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.container {
|
|
5
6
|
position: relative;
|
|
6
7
|
composes: varClass;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
.listHover:hover, .hoveredStyle, .listHover:focus-within, .hoveredStyle:focus-within {
|
|
9
11
|
background-color: var(--zdt_listLayout_hover_bg);
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
.active, .active:hover {
|
|
12
15
|
background-color: var(--zdt_listLayout_active_bg);
|
|
13
16
|
}
|
|
14
|
-
|
|
17
|
+
|
|
18
|
+
.cursorPointer {
|
|
15
19
|
cursor: pointer
|
|
16
20
|
}
|
|
21
|
+
|
|
17
22
|
/* View */
|
|
18
23
|
.classic .innerContainer {
|
|
19
24
|
min-height: var(--zd_size70) ;
|
|
20
25
|
padding: var(--zd_size13) 0 ;
|
|
21
26
|
}
|
|
27
|
+
|
|
22
28
|
.compact .innerContainer {
|
|
23
29
|
min-height: var(--zd_size41) ;
|
|
24
30
|
padding: var(--zd_size5) 0 ;
|
|
25
31
|
}
|
|
32
|
+
|
|
26
33
|
.superCompact .innerContainer {
|
|
27
34
|
min-height: var(--zd_size35) ;
|
|
28
35
|
padding: var(--zd_size2) 0 ;
|
|
29
36
|
}
|
|
37
|
+
|
|
30
38
|
.compact .innerContainer, .classic .innerContainer, .superCompact .innerContainer {
|
|
31
39
|
border-bottom: 1px dotted var(--listBorder);
|
|
32
40
|
}
|
|
41
|
+
|
|
33
42
|
[dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
|
|
34
43
|
border-left: var(--zd_size2) solid transparent;
|
|
35
44
|
}
|
|
45
|
+
|
|
36
46
|
[dir=rtl] .compact, [dir=rtl] .classic, [dir=rtl] .superCompact {
|
|
37
47
|
border-right: var(--zd_size2) solid transparent;
|
|
38
48
|
}
|
|
39
|
-
|
|
49
|
+
|
|
50
|
+
[dir=ltr] .keyboardActive, [dir=ltr] .active {
|
|
40
51
|
border-top-left-radius: var(--zd_size5);
|
|
41
52
|
border-bottom-left-radius: var(--zd_size5);
|
|
42
53
|
}
|
|
43
|
-
|
|
54
|
+
|
|
55
|
+
[dir=rtl] .keyboardActive, [dir=rtl] .active {
|
|
44
56
|
border-top-right-radius: var(--zd_size5);
|
|
45
57
|
border-bottom-right-radius: var(--zd_size5);
|
|
46
58
|
}
|
|
47
|
-
|
|
59
|
+
|
|
60
|
+
[dir=ltr] .keyboardActive {
|
|
48
61
|
border-left-color: var(--zdt_listLayout_keyboard_active_border);
|
|
49
62
|
}
|
|
50
|
-
|
|
63
|
+
|
|
64
|
+
[dir=rtl] .keyboardActive {
|
|
51
65
|
border-right-color: var(--zdt_listLayout_keyboard_active_border);
|
|
52
66
|
}
|
|
53
|
-
|
|
67
|
+
|
|
68
|
+
[dir=ltr] .active {
|
|
54
69
|
border-left-color: var(--zdt_listLayout_active_border);
|
|
55
70
|
}
|
|
56
|
-
|
|
71
|
+
|
|
72
|
+
[dir=rtl] .active {
|
|
57
73
|
border-right-color: var(--zdt_listLayout_active_border);
|
|
58
74
|
}
|
|
@@ -30,7 +30,6 @@ export const ContactName_propTypes = {
|
|
|
30
30
|
isPaidUser: PropTypes.bool,
|
|
31
31
|
notAccessible: PropTypes.bool,
|
|
32
32
|
onClick: PropTypes.func,
|
|
33
|
-
sentimentTitle: PropTypes.string,
|
|
34
33
|
sentimentType: PropTypes.oneOf(['positive', 'negative', 'neutral']),
|
|
35
34
|
text: PropTypes.string,
|
|
36
35
|
urlData: PropTypes.object,
|
|
@@ -10,5 +10,9 @@ export const propTypes = {
|
|
|
10
10
|
later: PropTypes.string,
|
|
11
11
|
textClass: PropTypes.string,
|
|
12
12
|
title: PropTypes.string,
|
|
13
|
-
to: PropTypes.string
|
|
13
|
+
to: PropTypes.string,
|
|
14
|
+
type: PropTypes.string,
|
|
15
|
+
page: PropTypes.string,
|
|
16
|
+
isNeedTime: PropTypes.bool,
|
|
17
|
+
isOverdue: PropTypes.bool
|
|
14
18
|
};
|