@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.
Files changed (164) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +21 -12
  5. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +163 -553
  6. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +3 -12
  7. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +3 -12
  8. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +3 -12
  9. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +3 -12
  10. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +3 -12
  11. package/assets/Appearance/light/mode/Dot_LightMode.module.css +163 -553
  12. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +3 -12
  13. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +3 -12
  14. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +3 -12
  15. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +3 -12
  16. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +3 -12
  17. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +163 -553
  18. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +3 -12
  19. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +3 -12
  20. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +3 -12
  21. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +3 -12
  22. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +3 -12
  23. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  24. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  25. package/coverage/ExternalLink/index.html +1 -1
  26. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  27. package/coverage/ExternalLink/props/index.html +1 -1
  28. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  29. package/coverage/IconButton/IconButton.js.html +466 -0
  30. package/coverage/IconButton/IconButton.module.css.html +151 -0
  31. package/coverage/IconButton/index.html +131 -0
  32. package/coverage/IconButton/props/defaultProps.js.html +136 -0
  33. package/coverage/IconButton/props/index.html +131 -0
  34. package/coverage/IconButton/props/propTypes.js.html +187 -0
  35. package/coverage/Image/Image.js.html +1 -1
  36. package/coverage/Image/Image.module.css.html +1 -1
  37. package/coverage/Image/index.html +1 -1
  38. package/coverage/Image/props/defaultProps.js.html +1 -1
  39. package/coverage/Image/props/index.html +1 -1
  40. package/coverage/Image/props/propTypes.js.html +1 -1
  41. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  42. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  43. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  44. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  45. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  46. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  47. package/coverage/coverage-final.json +4 -0
  48. package/coverage/coverage-summary.json +5 -1
  49. package/coverage/index.html +40 -10
  50. package/es/IconButton/__tests__/IconButton.spec.js +148 -0
  51. package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  52. package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
  53. package/es/v1/ActionButton/ActionButton.js +2 -2
  54. package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
  55. package/es/v1/Attachment/Attachment.js +78 -75
  56. package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
  57. package/es/v1/Image/Image.js +26 -33
  58. package/es/v1/Loader/Loader.js +12 -18
  59. package/es/v1/Message/Message.js +16 -42
  60. package/es/v1/PlusIcon/PlusIcon.js +25 -37
  61. package/es/v1/Separator/Separator.js +40 -47
  62. package/es/v1/Upload/Upload.js +59 -66
  63. package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
  64. package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
  65. package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
  66. package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
  67. package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
  68. package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
  69. package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
  70. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
  71. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
  72. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
  73. package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
  74. package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
  75. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
  76. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  77. package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  78. package/es/v1/form/fields/DateField/DateField.js +6 -6
  79. package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  80. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  81. package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
  82. package/es/v1/form/fields/RadioField/RadioField.js +89 -97
  83. package/es/v1/form/fields/SelectField/SelectField.js +139 -154
  84. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
  85. package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
  86. package/es/v1/list/SecondaryText/AccountName.js +61 -69
  87. package/es/v1/list/SecondaryText/ContactName.js +66 -74
  88. package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
  89. package/es/v1/list/SecondaryText/Email.js +32 -40
  90. package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
  91. package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
  92. package/es/v1/list/SecondaryText/PriorityText.js +16 -28
  93. package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
  94. package/es/v1/list/SecondaryText/StatusText.js +17 -29
  95. package/es/v1/list/SecondaryText/TicketId.js +33 -45
  96. package/es/v1/list/SecondaryText/Website.js +22 -30
  97. package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
  98. package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
  99. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  100. package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
  101. package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
  102. package/es/v1/lookup/Section/Section.js +14 -20
  103. package/es/v1/svg/PlusIcon.js +20 -27
  104. package/es/v1/svg/SnippetIcon.js +22 -29
  105. package/es/v1/svg/TemplateIcon.js +23 -30
  106. package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
  107. package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  108. package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
  109. package/lib/v1/ActionButton/ActionButton.js +2 -2
  110. package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
  111. package/lib/v1/Attachment/Attachment.js +77 -112
  112. package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
  113. package/lib/v1/Image/Image.js +26 -71
  114. package/lib/v1/Loader/Loader.js +12 -55
  115. package/lib/v1/Message/Message.js +23 -80
  116. package/lib/v1/PlusIcon/PlusIcon.js +25 -71
  117. package/lib/v1/Separator/Separator.js +44 -85
  118. package/lib/v1/Upload/Upload.js +58 -103
  119. package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
  120. package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
  121. package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
  122. package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
  123. package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
  124. package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
  125. package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
  126. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
  127. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
  128. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
  129. package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
  130. package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
  131. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
  132. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  133. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  134. package/lib/v1/form/fields/DateField/DateField.js +6 -6
  135. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  136. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  137. package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
  138. package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
  139. package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
  140. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
  141. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
  142. package/lib/v1/list/SecondaryText/AccountName.js +63 -113
  143. package/lib/v1/list/SecondaryText/ContactName.js +67 -117
  144. package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
  145. package/lib/v1/list/SecondaryText/Email.js +32 -82
  146. package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
  147. package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
  148. package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
  149. package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
  150. package/lib/v1/list/SecondaryText/StatusText.js +17 -67
  151. package/lib/v1/list/SecondaryText/TicketId.js +33 -83
  152. package/lib/v1/list/SecondaryText/Website.js +29 -72
  153. package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
  154. package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
  155. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  156. package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
  157. package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
  158. package/lib/v1/lookup/Section/Section.js +14 -58
  159. package/lib/v1/svg/PlusIcon.js +20 -65
  160. package/lib/v1/svg/SnippetIcon.js +22 -67
  161. package/lib/v1/svg/TemplateIcon.js +23 -68
  162. package/package.json +12 -12
  163. package/result.json +1 -1
  164. 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, { Component } from '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 class AccountName extends Component {
17
- render() {
18
- let {
19
- dataTitle,
20
- dataId,
21
- urlName,
22
- urlData,
23
- onClick,
24
- isLink,
25
- className,
26
- text,
27
- href,
28
- notAccessible = false,
29
- fontWeight,
30
- secondaryAccountHref,
31
- secondaryAccountClick,
32
- secondaryAccountText,
33
- customProps
34
- } = this.props;
35
- let {
36
- LinkProps = {},
37
- TextProps = {},
38
- SecondaryTextProps = {}
39
- } = customProps;
40
- return /*#__PURE__*/React.createElement(Container, {
41
- alignBox: "row",
42
- align: "baseline",
43
- isCover: false,
44
- "data-title": dataTitle,
45
- dataId: dataId
46
- }, /*#__PURE__*/React.createElement(Box, {
47
- flexible: true
48
- }, /*#__PURE__*/React.createElement(Container, {
49
- alignBox: "row",
50
- align: "baseline",
51
- isCover: false,
52
- className: style.primaryAccountNameCnt
53
- }, /*#__PURE__*/React.createElement(Box, {
54
- className: style.primaryAccountName,
55
- shrink: true
56
- }, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
57
- href: href,
58
- urlName: urlName,
59
- urlData: urlData,
60
- onClick: onClick,
61
- dataId: `${dataId}_link`,
62
- className: style.link
63
- }, LinkProps, {
64
- ariaLabel: `Account Name ${text}`
65
- }), /*#__PURE__*/React.createElement("div", {
66
- className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
67
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
68
- className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`
69
- }, TextProps), text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
70
- href: secondaryAccountHref,
71
- onClick: secondaryAccountClick,
72
- className: style.link
73
- }, /*#__PURE__*/React.createElement("div", _extends({
74
- className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
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; // if (__DOCS__) {
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, { Component } from '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 class ContactName extends Component {
12
- render() {
13
- let {
14
- dataTitle,
15
- dataId,
16
- isPaidUser,
17
- urlName,
18
- urlData,
19
- onClick,
20
- sentimentType,
21
- isLink,
22
- className,
23
- text,
24
- href,
25
- notAccessible = false,
26
- fontWeight,
27
- i18nKeys,
28
- customProps
29
- } = this.props;
30
- let {
31
- sentimentTitles = {
32
- positive: 'Positive',
33
- negative: 'Negative',
34
- neutral: 'Neutral'
35
- },
36
- paidTitle = 'Paid User'
37
- } = i18nKeys;
38
- let sentimentDataTitle = sentimentTitles[sentimentType];
39
- let {
40
- LinkProps = {},
41
- TextProps = {}
42
- } = customProps;
43
- return /*#__PURE__*/React.createElement(Container, {
44
- alignBox: "row",
45
- align: "baseline",
46
- isCover: false,
47
- dataId: dataId
48
- }, isPaidUser && /*#__PURE__*/React.createElement(Box, {
49
- className: style.paidUserIcon,
50
- title: paidTitle,
51
- "aria-label": "Paid user"
52
- }, /*#__PURE__*/React.createElement(Icon, {
53
- name: "ZD-paiduser",
54
- iconClass: style.icon
55
- })), /*#__PURE__*/React.createElement(Box, {
56
- flexible: true
57
- }, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
58
- urlName: urlName,
59
- href: href,
60
- urlData: urlData,
61
- onClick: onClick,
62
- title: dataTitle,
63
- dataId: `${dataId}_link`,
64
- className: style.link
65
- }, LinkProps, {
66
- ariaLabel: `Contact Name ${text}`
67
- }), /*#__PURE__*/React.createElement("div", {
68
- className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
69
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
70
- className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
71
- "data-title": dataTitle
72
- }, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
73
- type: sentimentType,
74
- dataTitle: sentimentDataTitle
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; // if (__DOCS__) {
81
- // ContactName.docs = {
82
- // folderName: 'List',
83
- // componentGroup: 'ContactName'
84
- // };
85
- // }
77
+ ContactName.defaultProps = ContactName_defaultProps;
@@ -1,30 +1,18 @@
1
- import React, { Component } from '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 class DepartmentText extends Component {
5
- constructor(props) {
6
- super(props);
7
- }
8
-
9
- render() {
10
- let {
11
- className,
12
- text,
13
- dataTitle,
14
- dataId
15
- } = this.props;
16
- return /*#__PURE__*/React.createElement("div", {
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; // if (__DOCS__) {
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, { Component } from '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 class Email extends Component {
16
- render() {
17
- let {
18
- text,
19
- urlData,
20
- urlName,
21
- className,
22
- title,
23
- href,
24
- isLink,
25
- target,
26
- fontWeight,
27
- customProps
28
- } = this.props;
29
- let {
30
- LinkProps = {},
31
- TextProps = {}
32
- } = customProps;
33
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
34
- href: href,
35
- title: title,
36
- urlData: urlData,
37
- urlName: urlName,
38
- target: target,
39
- className: style.link
40
- }, LinkProps), /*#__PURE__*/React.createElement("div", {
41
- className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
42
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
43
- className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
44
- "data-title": title
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; // if (__DOCS__) {
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, { Component } from '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 class HappinessRating extends Component {
8
- render() {
9
- let {
10
- text,
11
- className,
12
- src
13
- } = this.props;
14
- return /*#__PURE__*/React.createElement("div", {
15
- className: `${style.happinessContainer} ${className ? className : ''}`
16
- }, /*#__PURE__*/React.createElement("img", {
17
- className: `${style.happinessImg}`,
18
- src: src
19
- }), /*#__PURE__*/React.createElement("span", {
20
- className: style.ratingText,
21
- "data-title": text
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; // if (__DOCS__) {
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, { Component } from '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 class PhoneNumber extends Component {
16
- render() {
17
- let {
18
- text,
19
- urlData,
20
- urlName,
21
- className,
22
- title,
23
- href,
24
- dataId,
25
- isLink,
26
- target,
27
- hasReload,
28
- fontWeight,
29
- customProps
30
- } = this.props;
31
- let {
32
- LinkProps = {},
33
- TextProps = {}
34
- } = customProps;
35
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
36
- href: href,
37
- title: title,
38
- urlData: urlData,
39
- urlName: urlName,
40
- dataId: dataId,
41
- target: target,
42
- hasReload: hasReload,
43
- className: style.link
44
- }, LinkProps), /*#__PURE__*/React.createElement("div", {
45
- className: `${style.phoneNumber} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
46
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
47
- className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
48
- "data-title": title
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; // if (__DOCS__) {
55
- // PhoneNumber.docs = {
56
- // folderName: 'List',
57
- // componentGroup: 'PhoneNumberText'
58
- // };
59
- // }
51
+ PhoneNumber.defaultProps = PhoneNumber_defaultProps;
@@ -1,33 +1,21 @@
1
- import React, { Component } from '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 class PriorityText extends Component {
6
- constructor(props) {
7
- super(props);
8
- }
9
-
10
- render() {
11
- let {
12
- className,
13
- color,
14
- text,
15
- dataTitle,
16
- dataId
17
- } = this.props;
18
- return /*#__PURE__*/React.createElement("div", {
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; // if (__DOCS__) {
29
- // PriorityText.docs = {
30
- // folderName: 'List',
31
- // componentGroup: 'PriorityText'
32
- // };
33
- // }
21
+ PriorityText.defaultProps = PriorityText_defaultProps;