@zohodesk/dot 1.3.0 → 1.3.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/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +21 -12
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +163 -553
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +163 -553
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +163 -553
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +3 -12
- 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/IconButton/IconButton.js.html +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- 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 +4 -0
- package/coverage/coverage-summary.json +5 -1
- package/coverage/index.html +40 -10
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/es/v1/ActionButton/ActionButton.js +2 -2
- package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
- package/es/v1/Attachment/Attachment.js +78 -75
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/Loader/Loader.js +12 -18
- package/es/v1/Message/Message.js +16 -42
- package/es/v1/PlusIcon/PlusIcon.js +25 -37
- package/es/v1/Separator/Separator.js +40 -47
- package/es/v1/Upload/Upload.js +59 -66
- package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
- package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
- package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
- package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
- package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
- package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
- package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/es/v1/form/fields/DateField/DateField.js +6 -6
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/v1/form/fields/RadioField/RadioField.js +89 -97
- package/es/v1/form/fields/SelectField/SelectField.js +139 -154
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
- package/es/v1/list/SecondaryText/AccountName.js +61 -69
- package/es/v1/list/SecondaryText/ContactName.js +66 -74
- package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
- package/es/v1/list/SecondaryText/Email.js +32 -40
- package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
- package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
- package/es/v1/list/SecondaryText/PriorityText.js +16 -28
- package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
- package/es/v1/list/SecondaryText/StatusText.js +17 -29
- package/es/v1/list/SecondaryText/TicketId.js +33 -45
- package/es/v1/list/SecondaryText/Website.js +22 -30
- package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
- package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Section/Section.js +14 -20
- package/es/v1/svg/PlusIcon.js +20 -27
- package/es/v1/svg/SnippetIcon.js +22 -29
- package/es/v1/svg/TemplateIcon.js +23 -30
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/lib/v1/ActionButton/ActionButton.js +2 -2
- package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/lib/v1/Attachment/Attachment.js +77 -112
- package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/Loader/Loader.js +12 -55
- package/lib/v1/Message/Message.js +23 -80
- package/lib/v1/PlusIcon/PlusIcon.js +25 -71
- package/lib/v1/Separator/Separator.js +44 -85
- package/lib/v1/Upload/Upload.js +58 -103
- package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
- package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
- package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
- package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/lib/v1/form/fields/DateField/DateField.js +6 -6
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
- package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
- package/lib/v1/list/SecondaryText/AccountName.js +63 -113
- package/lib/v1/list/SecondaryText/ContactName.js +67 -117
- package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
- package/lib/v1/list/SecondaryText/Email.js +32 -82
- package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
- package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
- package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
- package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
- package/lib/v1/list/SecondaryText/StatusText.js +17 -67
- package/lib/v1/list/SecondaryText/TicketId.js +33 -83
- package/lib/v1/list/SecondaryText/Website.js +29 -72
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Section/Section.js +14 -58
- package/lib/v1/svg/PlusIcon.js +20 -65
- package/lib/v1/svg/SnippetIcon.js +22 -67
- package/lib/v1/svg/TemplateIcon.js +23 -68
- package/package.json +12 -12
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
/* eslint-disable react/forbid-component-props */
|
|
4
4
|
|
|
5
5
|
/**** Libraries ****/
|
|
6
|
-
import React
|
|
6
|
+
import React from 'react';
|
|
7
7
|
import { AccountName_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
8
8
|
import { AccountName_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
9
9
|
/**** Components ****/
|
|
@@ -13,73 +13,65 @@ import Link from '../../Link/Link';
|
|
|
13
13
|
/**** CSS ****/
|
|
14
14
|
|
|
15
15
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
16
|
-
export default
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, SecondaryTextProps), secondaryAccountText))))));
|
|
76
|
-
}
|
|
77
|
-
|
|
16
|
+
export default function AccountName(props) {
|
|
17
|
+
let {
|
|
18
|
+
dataTitle,
|
|
19
|
+
dataId,
|
|
20
|
+
urlName,
|
|
21
|
+
urlData,
|
|
22
|
+
onClick,
|
|
23
|
+
isLink,
|
|
24
|
+
className,
|
|
25
|
+
text,
|
|
26
|
+
href,
|
|
27
|
+
notAccessible = false,
|
|
28
|
+
fontWeight,
|
|
29
|
+
secondaryAccountHref,
|
|
30
|
+
secondaryAccountClick,
|
|
31
|
+
secondaryAccountText,
|
|
32
|
+
customProps
|
|
33
|
+
} = props;
|
|
34
|
+
let {
|
|
35
|
+
LinkProps = {},
|
|
36
|
+
TextProps = {},
|
|
37
|
+
SecondaryTextProps = {}
|
|
38
|
+
} = customProps;
|
|
39
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
40
|
+
alignBox: "row",
|
|
41
|
+
align: "baseline",
|
|
42
|
+
isCover: false,
|
|
43
|
+
"data-title": dataTitle,
|
|
44
|
+
dataId: dataId
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
46
|
+
flexible: true
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
48
|
+
alignBox: "row",
|
|
49
|
+
align: "baseline",
|
|
50
|
+
isCover: false,
|
|
51
|
+
className: style.primaryAccountNameCnt
|
|
52
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
53
|
+
className: style.primaryAccountName,
|
|
54
|
+
shrink: true
|
|
55
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
56
|
+
href: href,
|
|
57
|
+
urlName: urlName,
|
|
58
|
+
urlData: urlData,
|
|
59
|
+
onClick: onClick,
|
|
60
|
+
dataId: `${dataId}_link`,
|
|
61
|
+
className: style.link
|
|
62
|
+
}, LinkProps, {
|
|
63
|
+
ariaLabel: `Account Name ${text}`
|
|
64
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
66
|
+
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
67
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`
|
|
68
|
+
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
69
|
+
href: secondaryAccountHref,
|
|
70
|
+
onClick: secondaryAccountClick,
|
|
71
|
+
className: style.link
|
|
72
|
+
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
73
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
74
|
+
}, SecondaryTextProps), secondaryAccountText))))));
|
|
78
75
|
}
|
|
79
76
|
AccountName.propTypes = AccountName_propTypes;
|
|
80
|
-
AccountName.defaultProps = AccountName_defaultProps;
|
|
81
|
-
// AccountName.docs = {
|
|
82
|
-
// folderName: 'List',
|
|
83
|
-
// componentGroup: 'AccountName'
|
|
84
|
-
// };
|
|
85
|
-
// }
|
|
77
|
+
AccountName.defaultProps = AccountName_defaultProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { ContactName_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
5
5
|
import { ContactName_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
6
6
|
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
@@ -8,78 +8,70 @@ import Link from '../../Link/Link';
|
|
|
8
8
|
import SentimentStatus from '../SentimentStatus/SentimentStatus';
|
|
9
9
|
import { Icon } from '@zohodesk/icons';
|
|
10
10
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
11
|
-
export default
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
})));
|
|
76
|
-
}
|
|
77
|
-
|
|
11
|
+
export default function ContactName(props) {
|
|
12
|
+
let {
|
|
13
|
+
dataTitle,
|
|
14
|
+
dataId,
|
|
15
|
+
isPaidUser,
|
|
16
|
+
urlName,
|
|
17
|
+
urlData,
|
|
18
|
+
onClick,
|
|
19
|
+
sentimentType,
|
|
20
|
+
isLink,
|
|
21
|
+
className,
|
|
22
|
+
text,
|
|
23
|
+
href,
|
|
24
|
+
notAccessible = false,
|
|
25
|
+
fontWeight,
|
|
26
|
+
i18nKeys,
|
|
27
|
+
customProps
|
|
28
|
+
} = props;
|
|
29
|
+
let {
|
|
30
|
+
sentimentTitles = {
|
|
31
|
+
positive: 'Positive',
|
|
32
|
+
negative: 'Negative',
|
|
33
|
+
neutral: 'Neutral'
|
|
34
|
+
},
|
|
35
|
+
paidTitle = 'Paid User'
|
|
36
|
+
} = i18nKeys;
|
|
37
|
+
let sentimentDataTitle = sentimentTitles[sentimentType];
|
|
38
|
+
let {
|
|
39
|
+
LinkProps = {},
|
|
40
|
+
TextProps = {}
|
|
41
|
+
} = customProps;
|
|
42
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
43
|
+
alignBox: "row",
|
|
44
|
+
align: "baseline",
|
|
45
|
+
isCover: false,
|
|
46
|
+
dataId: dataId
|
|
47
|
+
}, isPaidUser && /*#__PURE__*/React.createElement(Box, {
|
|
48
|
+
className: style.paidUserIcon,
|
|
49
|
+
title: paidTitle,
|
|
50
|
+
"aria-label": "Paid user"
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
52
|
+
name: "ZD-paiduser",
|
|
53
|
+
iconClass: style.icon
|
|
54
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
55
|
+
flexible: true
|
|
56
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
57
|
+
urlName: urlName,
|
|
58
|
+
href: href,
|
|
59
|
+
urlData: urlData,
|
|
60
|
+
onClick: onClick,
|
|
61
|
+
title: dataTitle,
|
|
62
|
+
dataId: `${dataId}_link`,
|
|
63
|
+
className: style.link
|
|
64
|
+
}, LinkProps, {
|
|
65
|
+
ariaLabel: `Contact Name ${text}`
|
|
66
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
68
|
+
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
69
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
70
|
+
"data-title": dataTitle
|
|
71
|
+
}, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
72
|
+
type: sentimentType,
|
|
73
|
+
dataTitle: sentimentDataTitle
|
|
74
|
+
})));
|
|
78
75
|
}
|
|
79
76
|
ContactName.propTypes = ContactName_propTypes;
|
|
80
|
-
ContactName.defaultProps = ContactName_defaultProps;
|
|
81
|
-
// ContactName.docs = {
|
|
82
|
-
// folderName: 'List',
|
|
83
|
-
// componentGroup: 'ContactName'
|
|
84
|
-
// };
|
|
85
|
-
// }
|
|
77
|
+
ContactName.defaultProps = ContactName_defaultProps;
|
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DepartmentText_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
3
3
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
className: `${style.departmentText} ${className ? className : ''}`,
|
|
18
|
-
"data-title": dataTitle,
|
|
19
|
-
"data-id": dataId,
|
|
20
|
-
"data-test-id": dataId
|
|
21
|
-
}, text);
|
|
22
|
-
}
|
|
23
|
-
|
|
4
|
+
export default function DepartmentText(props) {
|
|
5
|
+
let {
|
|
6
|
+
className,
|
|
7
|
+
text,
|
|
8
|
+
dataTitle,
|
|
9
|
+
dataId
|
|
10
|
+
} = props;
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
className: `${style.departmentText} ${className ? className : ''}`,
|
|
13
|
+
"data-title": dataTitle,
|
|
14
|
+
"data-id": dataId,
|
|
15
|
+
"data-test-id": dataId
|
|
16
|
+
}, text);
|
|
24
17
|
}
|
|
25
|
-
DepartmentText.propTypes = DepartmentText_propTypes;
|
|
26
|
-
// DepartmentText.docs = {
|
|
27
|
-
// folderName: 'List',
|
|
28
|
-
// componentGroup: 'DepartmentText'
|
|
29
|
-
// };
|
|
30
|
-
// }
|
|
18
|
+
DepartmentText.propTypes = DepartmentText_propTypes;
|
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
/* eslint-disable react/forbid-component-props */
|
|
4
4
|
|
|
5
5
|
/**** Libraries ****/
|
|
6
|
-
import React
|
|
6
|
+
import React from 'react';
|
|
7
7
|
import { Email_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
8
8
|
import { Email_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
9
9
|
/**** Components ****/
|
|
@@ -12,44 +12,36 @@ import Link from '../../Link/Link';
|
|
|
12
12
|
/**** CSS ****/
|
|
13
13
|
|
|
14
14
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
15
|
-
export default
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}, TextProps), text));
|
|
46
|
-
}
|
|
47
|
-
|
|
15
|
+
export default function Email(props) {
|
|
16
|
+
let {
|
|
17
|
+
text,
|
|
18
|
+
urlData,
|
|
19
|
+
urlName,
|
|
20
|
+
className,
|
|
21
|
+
title,
|
|
22
|
+
href,
|
|
23
|
+
isLink,
|
|
24
|
+
target,
|
|
25
|
+
fontWeight,
|
|
26
|
+
customProps
|
|
27
|
+
} = props;
|
|
28
|
+
let {
|
|
29
|
+
LinkProps = {},
|
|
30
|
+
TextProps = {}
|
|
31
|
+
} = customProps;
|
|
32
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
33
|
+
href: href,
|
|
34
|
+
title: title,
|
|
35
|
+
urlData: urlData,
|
|
36
|
+
urlName: urlName,
|
|
37
|
+
target: target,
|
|
38
|
+
className: style.link
|
|
39
|
+
}, LinkProps), /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
41
|
+
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
42
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
43
|
+
"data-title": title
|
|
44
|
+
}, TextProps), text));
|
|
48
45
|
}
|
|
49
46
|
Email.propTypes = Email_propTypes;
|
|
50
|
-
Email.defaultProps = Email_defaultProps;
|
|
51
|
-
// Email.docs = {
|
|
52
|
-
// folderName: 'List',
|
|
53
|
-
// componentGroup: 'EmailText'
|
|
54
|
-
// };
|
|
55
|
-
// }
|
|
47
|
+
Email.defaultProps = Email_defaultProps;
|
|
@@ -1,31 +1,23 @@
|
|
|
1
1
|
/**** Libraries ****/
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { HappinessRating_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
4
4
|
/**** CSS ****/
|
|
5
5
|
|
|
6
6
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
7
|
-
export default
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, `${text}%`));
|
|
23
|
-
}
|
|
24
|
-
|
|
7
|
+
export default function HappinessRating(props) {
|
|
8
|
+
let {
|
|
9
|
+
text,
|
|
10
|
+
className,
|
|
11
|
+
src
|
|
12
|
+
} = props;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
className: `${style.happinessContainer} ${className ? className : ''}`
|
|
15
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
16
|
+
className: `${style.happinessImg}`,
|
|
17
|
+
src: src
|
|
18
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
19
|
+
className: style.ratingText,
|
|
20
|
+
"data-title": text
|
|
21
|
+
}, `${text}%`));
|
|
25
22
|
}
|
|
26
|
-
HappinessRating.propTypes = HappinessRating_propTypes;
|
|
27
|
-
// HappinessRating.docs = {
|
|
28
|
-
// folderName: 'List',
|
|
29
|
-
// componentGroup: 'HappinessRating'
|
|
30
|
-
// };
|
|
31
|
-
// }
|
|
23
|
+
HappinessRating.propTypes = HappinessRating_propTypes;
|
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
/* eslint-disable react/forbid-component-props */
|
|
4
4
|
|
|
5
5
|
/**** Libraries ****/
|
|
6
|
-
import React
|
|
6
|
+
import React from 'react';
|
|
7
7
|
import { PhoneNumber_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
8
8
|
import { PhoneNumber_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
9
9
|
/**** Components ****/
|
|
@@ -12,48 +12,40 @@ import Link from '../../Link/Link';
|
|
|
12
12
|
/**** CSS ****/
|
|
13
13
|
|
|
14
14
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
15
|
-
export default
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, TextProps), text));
|
|
50
|
-
}
|
|
51
|
-
|
|
15
|
+
export default function PhoneNumber(props) {
|
|
16
|
+
let {
|
|
17
|
+
text,
|
|
18
|
+
urlData,
|
|
19
|
+
urlName,
|
|
20
|
+
className,
|
|
21
|
+
title,
|
|
22
|
+
href,
|
|
23
|
+
dataId,
|
|
24
|
+
isLink,
|
|
25
|
+
target,
|
|
26
|
+
hasReload,
|
|
27
|
+
fontWeight,
|
|
28
|
+
customProps
|
|
29
|
+
} = props;
|
|
30
|
+
let {
|
|
31
|
+
LinkProps = {},
|
|
32
|
+
TextProps = {}
|
|
33
|
+
} = customProps;
|
|
34
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
35
|
+
href: href,
|
|
36
|
+
title: title,
|
|
37
|
+
urlData: urlData,
|
|
38
|
+
urlName: urlName,
|
|
39
|
+
dataId: dataId,
|
|
40
|
+
target: target,
|
|
41
|
+
hasReload: hasReload,
|
|
42
|
+
className: style.link
|
|
43
|
+
}, LinkProps), /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: `${style.phoneNumber} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
45
|
+
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
46
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
47
|
+
"data-title": title
|
|
48
|
+
}, TextProps), text));
|
|
52
49
|
}
|
|
53
50
|
PhoneNumber.propTypes = PhoneNumber_propTypes;
|
|
54
|
-
PhoneNumber.defaultProps = PhoneNumber_defaultProps;
|
|
55
|
-
// PhoneNumber.docs = {
|
|
56
|
-
// folderName: 'List',
|
|
57
|
-
// componentGroup: 'PhoneNumberText'
|
|
58
|
-
// };
|
|
59
|
-
// }
|
|
51
|
+
PhoneNumber.defaultProps = PhoneNumber_defaultProps;
|
|
@@ -1,33 +1,21 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PriorityText_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
|
|
3
3
|
import { PriorityText_propTypes } from '../../../list/SecondaryText/props/propTypes';
|
|
4
4
|
import style from '../../../list/SecondaryText/SecondaryText.module.css';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
className: `${style.priorityText} ${style[color]} ${className ? className : ''}`,
|
|
20
|
-
"data-title": dataTitle,
|
|
21
|
-
"data-id": dataId,
|
|
22
|
-
"data-test-id": dataId
|
|
23
|
-
}, text);
|
|
24
|
-
}
|
|
25
|
-
|
|
5
|
+
export default function PriorityText(props) {
|
|
6
|
+
let {
|
|
7
|
+
className,
|
|
8
|
+
color,
|
|
9
|
+
text,
|
|
10
|
+
dataTitle,
|
|
11
|
+
dataId
|
|
12
|
+
} = props;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
className: `${style.priorityText} ${style[color]} ${className ? className : ''}`,
|
|
15
|
+
"data-title": dataTitle,
|
|
16
|
+
"data-id": dataId,
|
|
17
|
+
"data-test-id": dataId
|
|
18
|
+
}, text);
|
|
26
19
|
}
|
|
27
20
|
PriorityText.propTypes = PriorityText_propTypes;
|
|
28
|
-
PriorityText.defaultProps = PriorityText_defaultProps;
|
|
29
|
-
// PriorityText.docs = {
|
|
30
|
-
// folderName: 'List',
|
|
31
|
-
// componentGroup: 'PriorityText'
|
|
32
|
-
// };
|
|
33
|
-
// }
|
|
21
|
+
PriorityText.defaultProps = PriorityText_defaultProps;
|