@zohodesk/dot 1.3.0-temp-158 → 1.3.1

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 (92) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +3 -1
  4. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  5. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  6. package/coverage/ExternalLink/index.html +1 -1
  7. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  8. package/coverage/ExternalLink/props/index.html +1 -1
  9. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  10. package/coverage/IconButton/IconButton.js.html +1 -1
  11. package/coverage/IconButton/IconButton.module.css.html +1 -1
  12. package/coverage/IconButton/index.html +1 -1
  13. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  14. package/coverage/IconButton/props/index.html +1 -1
  15. package/coverage/IconButton/props/propTypes.js.html +1 -1
  16. package/coverage/Image/Image.js.html +1 -1
  17. package/coverage/Image/Image.module.css.html +1 -1
  18. package/coverage/Image/index.html +1 -1
  19. package/coverage/Image/props/defaultProps.js.html +1 -1
  20. package/coverage/Image/props/index.html +1 -1
  21. package/coverage/Image/props/propTypes.js.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  28. package/coverage/coverage-final.json +16 -16
  29. package/coverage/coverage-summary.json +16 -16
  30. package/coverage/index.html +1 -1
  31. package/es/v1/ActionButton/ActionButton.js +2 -2
  32. package/es/v1/Message/Message.js +16 -42
  33. package/es/v1/PlusIcon/PlusIcon.js +25 -37
  34. package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
  35. package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
  36. package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
  37. package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
  38. package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
  39. package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
  40. package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
  41. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
  42. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
  43. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
  44. package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
  45. package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
  46. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
  47. package/es/v1/list/SecondaryText/AccountName.js +61 -69
  48. package/es/v1/list/SecondaryText/ContactName.js +66 -74
  49. package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
  50. package/es/v1/list/SecondaryText/Email.js +32 -40
  51. package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
  52. package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
  53. package/es/v1/list/SecondaryText/PriorityText.js +16 -28
  54. package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
  55. package/es/v1/list/SecondaryText/StatusText.js +17 -29
  56. package/es/v1/list/SecondaryText/TicketId.js +33 -45
  57. package/es/v1/list/SecondaryText/Website.js +22 -30
  58. package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
  59. package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
  60. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  61. package/lib/v1/ActionButton/ActionButton.js +2 -2
  62. package/lib/v1/Message/Message.js +23 -80
  63. package/lib/v1/PlusIcon/PlusIcon.js +25 -71
  64. package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
  65. package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
  66. package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
  67. package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
  68. package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
  69. package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
  70. package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
  71. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
  72. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
  73. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
  74. package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
  75. package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
  76. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
  77. package/lib/v1/list/SecondaryText/AccountName.js +63 -113
  78. package/lib/v1/list/SecondaryText/ContactName.js +67 -117
  79. package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
  80. package/lib/v1/list/SecondaryText/Email.js +32 -82
  81. package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
  82. package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
  83. package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
  84. package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
  85. package/lib/v1/list/SecondaryText/StatusText.js +17 -67
  86. package/lib/v1/list/SecondaryText/TicketId.js +33 -83
  87. package/lib/v1/list/SecondaryText/Website.js +29 -72
  88. package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
  89. package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
  90. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  91. package/package.json +2 -2
  92. package/result.json +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;
@@ -149,8 +149,8 @@ function ActionButton(props) {
149
149
  ActionButton.defaultProps = _defaultProps.defaultProps;
150
150
  ActionButton.propTypes = _propTypes.propTypes;
151
151
  var ActionButtonComponent = (0, _Popup["default"])(ActionButton);
152
- ActionButtonComponent.defaultProps = ActionButton.defaultProps;
153
- ActionButtonComponent.propTypes = ActionButton.propTypes; // ActionButton.docs = {
152
+ ActionButtonComponent.defaultProps = _defaultProps.defaultProps;
153
+ ActionButtonComponent.propTypes = _propTypes.propTypes; // ActionButton.docs = {
154
154
  // componentGroup: 'Atom'
155
155
  // };
156
156
 
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.MessageNew = MessageNew;
9
9
  exports.MessageUI = MessageUI;
10
- exports["default"] = void 0;
10
+ exports["default"] = Message;
11
11
 
12
- var _react = _interopRequireDefault(require("react"));
12
+ var _react = _interopRequireWildcard(require("react"));
13
13
 
14
14
  var _defaultProps = require("../../Message/props/defaultProps");
15
15
 
@@ -23,90 +23,33 @@ var _MessageModule = _interopRequireDefault(require("../../Message/Message.modul
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
25
 
26
- 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); }
27
-
28
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
-
30
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31
-
32
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
-
34
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
-
36
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
-
38
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
39
-
40
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
41
-
42
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
-
44
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
45
27
 
46
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
47
29
 
48
- var Message = /*#__PURE__*/function (_React$Component) {
49
- _inherits(Message, _React$Component);
50
-
51
- var _super = _createSuper(Message);
52
-
53
- function Message(props) {
54
- var _this;
55
-
56
- _classCallCheck(this, Message);
57
-
58
- _this = _super.call(this, props);
59
- _this.state = {
60
- hideMessage: false
61
- };
62
- return _this;
63
- }
30
+ 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); }
64
31
 
65
- _createClass(Message, [{
66
- key: "UNSAFE_componentWillReceiveProps",
67
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
68
- var _this$props = this.props,
69
- showMessage = _this$props.showMessage,
70
- hideMessage = _this$props.hideMessage;
71
-
72
- if (showMessage !== nextProps.showMessage) {
73
- if (nextProps.type != 'alert') {
74
- setTimeout(function () {
75
- hideMessage();
76
- }, 3000);
77
- }
78
- }
32
+ function Message(props) {
33
+ // constructor(props) {
34
+ // super(props);
35
+ // this.state = { hideMessage: false };
36
+ // }
37
+ // const [hideMessage,setHideMessage] = useState(false)
38
+ var showMessage = props.showMessage,
39
+ hideMessage = props.hideMessage,
40
+ type = props.type;
41
+ (0, _react.useEffect)(function () {
42
+ if (type != 'alert') {
43
+ setTimeout(function () {
44
+ hideMessage();
45
+ }, 3000);
79
46
  }
80
- }, {
81
- key: "componentDidMount",
82
- value: function componentDidMount() {
83
- var _this$props2 = this.props,
84
- type = _this$props2.type,
85
- hideMessage = _this$props2.hideMessage;
86
-
87
- if (type != 'alert') {
88
- setTimeout(function () {
89
- hideMessage();
90
- }, 3000);
91
- }
92
- }
93
- }, {
94
- key: "render",
95
- value: function render() {
96
- return /*#__PURE__*/_react["default"].createElement(MessageUI, this.props);
97
- }
98
- }]);
99
-
100
- return Message;
101
- }(_react["default"].Component);
47
+ }, [showMessage]);
48
+ return /*#__PURE__*/_react["default"].createElement(MessageUI, props);
49
+ }
102
50
 
103
- exports["default"] = Message;
104
51
  Message.propTypes = _propTypes.propTypes;
105
- Message.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
106
- // Message.docs = {
107
- // componentGroup: 'Atom'
108
- // };
109
- // }
52
+ Message.defaultProps = _defaultProps.defaultProps;
110
53
 
111
54
  function MessageUI(props) {
112
55
  function onClose(e) {