@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
@@ -1,40 +1,28 @@
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 { SecondaryText_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
5
5
  import { SecondaryText_propTypes } from '../../../list/SecondaryText/props/propTypes';
6
6
  import style from '../../../list/SecondaryText/SecondaryText.module.css';
7
- export default class SecondaryText extends Component {
8
- constructor(props) {
9
- super(props);
10
- }
11
-
12
- render() {
13
- let {
14
- className,
15
- text,
16
- dataTitle,
17
- dataId,
18
- onClick,
19
- customProps
20
- } = this.props;
21
- let {
22
- SecondaryTextProps
23
- } = customProps;
24
- return /*#__PURE__*/React.createElement("div", _extends({
25
- className: `${style.secondaryText} ${className ? className : ''}`,
26
- "data-title": dataTitle,
27
- "data-id": dataId,
28
- "data-test-id": dataId,
29
- onClick: onClick
30
- }, SecondaryTextProps), text);
31
- }
32
-
7
+ export default function SecondaryText(props) {
8
+ let {
9
+ className,
10
+ text,
11
+ dataTitle,
12
+ dataId,
13
+ onClick,
14
+ customProps
15
+ } = props;
16
+ let {
17
+ SecondaryTextProps
18
+ } = customProps;
19
+ return /*#__PURE__*/React.createElement("div", _extends({
20
+ className: `${style.secondaryText} ${className ? className : ''}`,
21
+ "data-title": dataTitle,
22
+ "data-id": dataId,
23
+ "data-test-id": dataId,
24
+ onClick: onClick
25
+ }, SecondaryTextProps), text);
33
26
  }
34
27
  SecondaryText.propTypes = SecondaryText_propTypes;
35
- SecondaryText.defaultProps = SecondaryText_defaultProps; // if (__DOCS__) {
36
- // SecondaryText.docs = {
37
- // folderName: 'List',
38
- // componentGroup: 'SecondaryText'
39
- // };
40
- // }
28
+ SecondaryText.defaultProps = SecondaryText_defaultProps;
@@ -1,34 +1,22 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { StatusText_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
3
3
  import { StatusText_propTypes } from '../../../list/SecondaryText/props/propTypes';
4
4
  import style from '../../../list/SecondaryText/SecondaryText.module.css';
5
- export default class StatusText extends Component {
6
- constructor(props) {
7
- super(props);
8
- }
9
-
10
- render() {
11
- let {
12
- className,
13
- color,
14
- text,
15
- dataTitle,
16
- fontWeight,
17
- dataId
18
- } = this.props;
19
- return /*#__PURE__*/React.createElement("div", {
20
- className: `${style.statusText} ${style[color]} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
21
- "data-title": dataTitle,
22
- "data-id": dataId,
23
- "data-test-id": dataId
24
- }, text);
25
- }
26
-
5
+ export default function StatusText(props) {
6
+ let {
7
+ className,
8
+ color,
9
+ text,
10
+ dataTitle,
11
+ fontWeight,
12
+ dataId
13
+ } = props;
14
+ return /*#__PURE__*/React.createElement("div", {
15
+ className: `${style.statusText} ${style[color]} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
16
+ "data-title": dataTitle,
17
+ "data-id": dataId,
18
+ "data-test-id": dataId
19
+ }, text);
27
20
  }
28
21
  StatusText.propTypes = StatusText_propTypes;
29
- StatusText.defaultProps = StatusText_defaultProps; // if (__DOCS__) {
30
- // StatusText.docs = {
31
- // folderName: 'List',
32
- // componentGroup: 'StatusText'
33
- // };
34
- // }
22
+ StatusText.defaultProps = StatusText_defaultProps;
@@ -1,53 +1,41 @@
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 { TicketId_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
5
5
  import { TicketId_propTypes } from '../../../list/SecondaryText/props/propTypes';
6
6
  import Link from '../../Link/Link';
7
7
  import style from '../../../list/SecondaryText/SecondaryText.module.css';
8
- export default class TicketId extends Component {
9
- constructor(props) {
10
- super(props);
11
- }
12
-
13
- render() {
14
- let {
15
- text,
16
- className,
17
- dataId,
18
- isLink,
19
- dataTitle,
20
- onClick,
21
- url,
22
- target,
23
- urlName,
24
- urlData,
25
- customProps
26
- } = this.props;
27
- let {
28
- LinkProps = {},
29
- TicketIdProps = {}
30
- } = customProps;
31
- return /*#__PURE__*/React.createElement("div", _extends({
32
- className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
33
- "data-id": dataId,
34
- "data-test-id": dataId,
35
- "data-title": dataTitle,
36
- onClick: !isLink && onClick
37
- }, TicketIdProps), isLink ? /*#__PURE__*/React.createElement(Link, _extends({
38
- urlName: urlName,
39
- urlData: urlData,
40
- href: url,
41
- target: target,
42
- onClick: onClick
43
- }, LinkProps), text) : text);
44
- }
45
-
8
+ export default function TicketId(props) {
9
+ let {
10
+ text,
11
+ className,
12
+ dataId,
13
+ isLink,
14
+ dataTitle,
15
+ onClick,
16
+ url,
17
+ target,
18
+ urlName,
19
+ urlData,
20
+ customProps
21
+ } = props;
22
+ let {
23
+ LinkProps = {},
24
+ TicketIdProps = {}
25
+ } = customProps;
26
+ return /*#__PURE__*/React.createElement("div", _extends({
27
+ className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
28
+ "data-id": dataId,
29
+ "data-test-id": dataId,
30
+ "data-title": dataTitle,
31
+ onClick: !isLink && onClick
32
+ }, TicketIdProps), isLink ? /*#__PURE__*/React.createElement(Link, _extends({
33
+ urlName: urlName,
34
+ urlData: urlData,
35
+ href: url,
36
+ target: target,
37
+ onClick: onClick
38
+ }, LinkProps), text) : text);
46
39
  }
47
40
  TicketId.propTypes = TicketId_propTypes;
48
- TicketId.defaultProps = TicketId_defaultProps; // if (__DOCS__) {
49
- // TicketId.docs = {
50
- // folderName: 'List',
51
- // componentGroup: 'TicketId'
52
- // };
53
- // }
41
+ TicketId.defaultProps = TicketId_defaultProps;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable react/forbid-component-props */
2
2
 
3
3
  /**** Libraries ****/
4
- import React, { Component } from 'react';
4
+ import React from 'react';
5
5
  import { Website_defaultProps } from '../../../list/SecondaryText/props/defaultProps';
6
6
  import { Website_propTypes } from '../../../list/SecondaryText/props/propTypes';
7
7
  /**** Components ****/
@@ -10,34 +10,26 @@ import ExternalLink from '../../ExternalLink/ExternalLink';
10
10
  /**** CSS ****/
11
11
 
12
12
  import style from '../../../list/SecondaryText/SecondaryText.module.css';
13
- export default class Website extends Component {
14
- render() {
15
- let {
16
- text,
17
- className,
18
- title,
19
- href,
20
- dataId,
21
- isLink,
22
- target
23
- } = this.props;
24
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(ExternalLink, {
25
- className: `${style.textStyle} ${className ? className : ''}`,
26
- href: href,
27
- title: title,
28
- dataId: dataId,
29
- target: target
30
- }, text) : /*#__PURE__*/React.createElement("div", {
31
- className: `${style.secondaryText} ${className ? className : ''}`,
32
- "data-title": text
33
- }, text));
34
- }
35
-
13
+ export default function Website(props) {
14
+ let {
15
+ text,
16
+ className,
17
+ title,
18
+ href,
19
+ dataId,
20
+ isLink,
21
+ target
22
+ } = props;
23
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(ExternalLink, {
24
+ className: `${style.textStyle} ${className ? className : ''}`,
25
+ href: href,
26
+ title: title,
27
+ dataId: dataId,
28
+ target: target
29
+ }, text) : /*#__PURE__*/React.createElement("div", {
30
+ className: `${style.secondaryText} ${className ? className : ''}`,
31
+ "data-title": text
32
+ }, text));
36
33
  }
37
34
  Website.propTypes = Website_propTypes;
38
- Website.defaultProps = Website_defaultProps; // if (__DOCS__) {
39
- // Website.docs = {
40
- // folderName: 'List',
41
- // componentGroup: 'WebsiteText'
42
- // };
43
- // }
35
+ Website.defaultProps = Website_defaultProps;
@@ -1,5 +1,5 @@
1
1
  /**** Libraries ****/
2
- import React, { Component } from 'react';
2
+ import React from 'react';
3
3
  import { SecondryPanel_defaultProps, SecondryPanelUL_defaultProps, SecondryPanelLI_defaultProps, SecondryPanelItem_defaultProps } from '../../../list/SecondryPanel/props/defaultProps';
4
4
  import { SecondryPanel_propTypes, SecondryPanelUL_propTypes, SecondryPanelLI_propTypes, SecondryPanelItem_propTypes } from '../../../list/SecondryPanel/props/propTypes';
5
5
  /**** Components ****/
@@ -9,96 +9,79 @@ import Dot from '../Dot/Dot';
9
9
  /**** CSS ****/
10
10
 
11
11
  import style from '../../../list/SecondryPanel/SecondryPanel.module.css';
12
- export default class SecondryPanel extends Component {
13
- render() {
14
- let {
15
- children,
16
- className
17
- } = this.props;
18
- return /*#__PURE__*/React.createElement("div", {
19
- className: className
20
- }, children);
21
- }
22
-
12
+ export default function SecondryPanel(props) {
13
+ let {
14
+ children,
15
+ className
16
+ } = props;
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: className
19
+ }, children);
23
20
  }
24
21
  SecondryPanel.propTypes = SecondryPanel_propTypes;
25
22
  SecondryPanel.defaultProps = SecondryPanel_defaultProps;
26
- export class SecondryPanelUL extends Component {
27
- render() {
28
- let {
29
- children,
30
- className,
31
- dataId,
32
- align
33
- } = this.props;
34
- return /*#__PURE__*/React.createElement(Container, {
35
- isInline: true,
36
- isCover: false,
37
- alignBox: "row",
38
- align: align,
39
- className: `${style.listItemContainer} ${className}`,
40
- dataId: dataId
41
- }, children);
42
- }
43
-
23
+ export function SecondryPanelUL(props) {
24
+ let {
25
+ children,
26
+ className,
27
+ dataId,
28
+ align
29
+ } = props;
30
+ return /*#__PURE__*/React.createElement(Container, {
31
+ isInline: true,
32
+ isCover: false,
33
+ alignBox: "row",
34
+ align: align,
35
+ className: `${style.listItemContainer} ${className}`,
36
+ dataId: dataId
37
+ }, children);
44
38
  }
45
39
  SecondryPanelUL.propTypes = SecondryPanelUL_propTypes;
46
40
  SecondryPanelUL.defaultProps = SecondryPanelUL_defaultProps;
47
- export class SecondryPanelLI extends Component {
48
- render() {
49
- let {
50
- children,
51
- className,
52
- isShrink,
53
- dataId
54
- } = this.props;
55
- return /*#__PURE__*/React.createElement(Box, {
56
- flexible: true,
57
- dataId: dataId // eslint-disable-next-line react/forbid-component-props
58
- ,
59
- className: className,
60
- adjust: true,
61
- shrink: isShrink ? true : false
62
- }, children);
63
- }
64
-
41
+ export function SecondryPanelLI(props) {
42
+ let {
43
+ children,
44
+ className,
45
+ isShrink,
46
+ dataId
47
+ } = props;
48
+ return /*#__PURE__*/React.createElement(Box, {
49
+ flexible: true,
50
+ dataId: dataId // eslint-disable-next-line react/forbid-component-props
51
+ ,
52
+ className: className,
53
+ adjust: true,
54
+ shrink: isShrink ? true : false
55
+ }, children);
65
56
  }
66
57
  SecondryPanelLI.propTypes = SecondryPanelLI_propTypes;
67
58
  SecondryPanelLI.defaultProps = SecondryPanelLI_defaultProps;
68
- export class SecondryPanelItem extends Component {
69
- render() {
70
- let {
71
- children,
72
- className,
73
- dotClass,
74
- isDot,
75
- flex,
76
- clipped,
77
- dotSpacingType,
78
- title
79
- } = this.props;
80
- return /*#__PURE__*/React.createElement(Container, {
81
- align: "baseline",
82
- isInline: flex ? false : true,
83
- className: className,
84
- "data-title": title,
85
- alignBox: "row"
86
- }, /*#__PURE__*/React.createElement(Box, {
87
- flexible: true,
88
- shrink: clipped,
89
- className: `${clipped ? style.dottedStyle : ''}`
90
- }, children), isDot ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Dot // eslint-disable-next-line react/forbid-component-props
91
- , {
92
- className: `${dotClass ? dotClass : ''}`,
93
- spacingType: dotSpacingType
94
- })) : null);
95
- }
96
-
59
+ export function SecondryPanelItem(props) {
60
+ let {
61
+ children,
62
+ className,
63
+ dotClass,
64
+ isDot,
65
+ flex,
66
+ clipped,
67
+ dotSpacingType,
68
+ title
69
+ } = props;
70
+ return /*#__PURE__*/React.createElement(Container, {
71
+ align: "baseline",
72
+ isInline: flex ? false : true,
73
+ className: className,
74
+ "data-title": title,
75
+ alignBox: "row"
76
+ }, /*#__PURE__*/React.createElement(Box, {
77
+ flexible: true,
78
+ shrink: clipped,
79
+ className: `${clipped ? style.dottedStyle : ''}`
80
+ }, children), isDot ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Dot // eslint-disable-next-line react/forbid-component-props
81
+ , {
82
+ className: `${dotClass ? dotClass : ''}`,
83
+ spacingType: dotSpacingType
84
+ })) : null);
97
85
  }
98
86
  SecondryPanelItem.propTypes = SecondryPanelItem_propTypes;
99
- SecondryPanelItem.defaultProps = SecondryPanelItem_defaultProps; // if (__DOCS__) {
100
- // SecondryPanel.docs = {
101
- // folderName: 'List',
102
- // componentGroup: 'SecondaryLayout'
103
- // };
104
- // }
87
+ SecondryPanelItem.defaultProps = SecondryPanelItem_defaultProps;
@@ -2,33 +2,22 @@ import React from 'react';
2
2
  import { propTypes } from '../../../list/SentimentStatus/props/propTypes';
3
3
  import style from '../../../list/SentimentStatus/SentimentStatus.module.css';
4
4
  import { Icon } from '@zohodesk/icons';
5
- export default class SentimentStatus extends React.Component {
6
- constructor(props) {
7
- super(props);
8
- }
9
-
10
- render() {
11
- let {
12
- type,
13
- dataTitle
14
- } = this.props;
15
- const icons = {
16
- neutral: 'ZD-botNeutral',
17
- negative: 'ZD-botNegative',
18
- positive: 'ZD-botPositive'
19
- };
20
- return /*#__PURE__*/React.createElement("div", {
21
- className: style.container,
22
- "data-title": dataTitle
23
- }, /*#__PURE__*/React.createElement(Icon, {
24
- name: icons[type],
25
- iconClass: style.sentimentIcon
26
- }));
27
- }
28
-
5
+ export default function SentimentStatus(props) {
6
+ let {
7
+ type,
8
+ dataTitle
9
+ } = props;
10
+ const icons = {
11
+ neutral: 'ZD-botNeutral',
12
+ negative: 'ZD-botNegative',
13
+ positive: 'ZD-botPositive'
14
+ };
15
+ return /*#__PURE__*/React.createElement("div", {
16
+ className: style.container,
17
+ "data-title": dataTitle
18
+ }, /*#__PURE__*/React.createElement(Icon, {
19
+ name: icons[type],
20
+ iconClass: style.sentimentIcon
21
+ }));
29
22
  }
30
- SentimentStatus.propTypes = propTypes; // if (__DOCS__) {
31
- // SentimentStatus.docs = {
32
- // componentGroup: ''
33
- // };
34
- // }
23
+ SentimentStatus.propTypes = propTypes;
@@ -369,6 +369,6 @@ function StatusDropdown(props) {
369
369
  StatusDropdown.defaultProps = defaultProps;
370
370
  StatusDropdown.propTypes = propTypes;
371
371
  const StatusDropdown_Component = Popup(StatusDropdown);
372
- StatusDropdown_Component.defaultProps = StatusDropdown.defaultProps;
373
- StatusDropdown_Component.propTypes = StatusDropdown.propTypes;
372
+ StatusDropdown_Component.defaultProps = defaultProps;
373
+ StatusDropdown_Component.propTypes = propTypes;
374
374
  export default StatusDropdown_Component;