@zohodesk/dot 1.4.0 → 1.4.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 (122) hide show
  1. package/.cli/AppearanceThemeValidationExcludeFiles.js +1 -0
  2. package/.cli/PropLessFiles.html +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +6 -0
  5. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +3 -0
  6. package/assets/Appearance/light/mode/Dot_LightMode.module.css +3 -0
  7. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +3 -0
  8. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  9. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  10. package/coverage/ExternalLink/index.html +1 -1
  11. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  12. package/coverage/ExternalLink/props/index.html +1 -1
  13. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  14. package/coverage/IconButton/IconButton.js.html +1 -1
  15. package/coverage/IconButton/IconButton.module.css.html +5 -2
  16. package/coverage/IconButton/index.html +1 -1
  17. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  18. package/coverage/IconButton/props/index.html +1 -1
  19. package/coverage/IconButton/props/propTypes.js.html +1 -1
  20. package/coverage/Image/Image.js.html +1 -1
  21. package/coverage/Image/Image.module.css.html +1 -1
  22. package/coverage/Image/index.html +1 -1
  23. package/coverage/Image/props/defaultProps.js.html +1 -1
  24. package/coverage/Image/props/index.html +1 -1
  25. package/coverage/Image/props/propTypes.js.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  28. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  29. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  30. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  31. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  32. package/coverage/coverage-final.json +16 -16
  33. package/coverage/coverage-summary.json +16 -16
  34. package/coverage/index.html +1 -1
  35. package/es/ActionButton/ActionButton.module.css +7 -0
  36. package/es/AlphabeticList/AlphabeticList.module.css +2 -0
  37. package/es/AttachmentViewer/AttachmentViewer.module.css +2 -0
  38. package/es/ChannelIcon/ChannelIcon.module.css +4 -0
  39. package/es/FormAction/FormAction.module.css +2 -0
  40. package/es/IconButton/IconButton.module.css +1 -0
  41. package/es/Provider/Config.js +2 -1
  42. package/es/TagWithIcon/TagWithIcon.module.css +19 -5
  43. package/es/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
  44. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
  45. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
  46. package/es/layout/SubtabLayout/SubtabLayout.module.css +2 -0
  47. package/es/list/Comment/Comment.module.css +1 -0
  48. package/es/list/Dot/Dot.module.css +1 -0
  49. package/es/list/ListLayout/ListLayout.module.css +12 -0
  50. package/es/list/Subject/Subject.module.css +1 -0
  51. package/es/list/Thread/Thread.module.css +1 -0
  52. package/es/setup/header/Search/Search.module.css +1 -0
  53. package/es/setup/table/TableRow/SetupTableRow.module.css +3 -2
  54. package/es/v1/notification/DesktopNotification/DesktopNotification.js +79 -55
  55. package/es/v1/notification/DesktopNotification/props/defaultProps.js +3 -1
  56. package/es/v1/notification/DesktopNotification/props/propTypes.js +2 -1
  57. package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +59 -23
  58. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +3 -1
  59. package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  60. package/es/v1/setup/header/Button/Button.js +17 -29
  61. package/es/v1/setup/header/Link/Link.js +23 -35
  62. package/es/v1/setup/header/Search/Search.js +43 -69
  63. package/es/v1/setup/header/Views/Views.js +27 -39
  64. package/es/v1/setup/helptips/Description/Description.js +8 -20
  65. package/es/v1/setup/helptips/Link/Link.js +20 -32
  66. package/es/v1/setup/helptips/ListGroup/ListGroup.js +18 -30
  67. package/es/v1/setup/helptips/Title/Title.js +8 -20
  68. package/es/version2/GlobalNotification/GlobalNotification.module.css +3 -0
  69. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -0
  70. package/es/version2/notification/DesktopNotification/DesktopNotification.js +78 -55
  71. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -4
  72. package/es/version2/notification/DesktopNotification/props/defaultProps.js +3 -1
  73. package/es/version2/notification/DesktopNotification/props/propTypes.js +2 -1
  74. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +59 -23
  75. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +14 -17
  76. package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +3 -1
  77. package/es/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  78. package/lib/ActionButton/ActionButton.module.css +7 -0
  79. package/lib/AlphabeticList/AlphabeticList.module.css +2 -0
  80. package/lib/AttachmentViewer/AttachmentViewer.module.css +2 -0
  81. package/lib/ChannelIcon/ChannelIcon.module.css +4 -0
  82. package/lib/FormAction/FormAction.module.css +2 -0
  83. package/lib/IconButton/IconButton.module.css +1 -0
  84. package/lib/Provider/Config.js +2 -1
  85. package/lib/TagWithIcon/TagWithIcon.module.css +19 -5
  86. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
  87. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
  88. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
  89. package/lib/layout/SubtabLayout/SubtabLayout.module.css +2 -0
  90. package/lib/list/Comment/Comment.module.css +1 -0
  91. package/lib/list/Dot/Dot.module.css +1 -0
  92. package/lib/list/ListLayout/ListLayout.module.css +12 -0
  93. package/lib/list/Subject/Subject.module.css +1 -0
  94. package/lib/list/Thread/Thread.module.css +1 -0
  95. package/lib/setup/header/Search/Search.module.css +1 -0
  96. package/lib/setup/table/TableRow/SetupTableRow.module.css +3 -2
  97. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +74 -55
  98. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +5 -1
  99. package/lib/v1/notification/DesktopNotification/props/propTypes.js +2 -1
  100. package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +57 -23
  101. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +5 -1
  102. package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  103. package/lib/v1/setup/header/Button/Button.js +17 -63
  104. package/lib/v1/setup/header/Link/Link.js +23 -69
  105. package/lib/v1/setup/header/Search/Search.js +57 -89
  106. package/lib/v1/setup/header/Views/Views.js +27 -73
  107. package/lib/v1/setup/helptips/Description/Description.js +8 -53
  108. package/lib/v1/setup/helptips/Link/Link.js +23 -69
  109. package/lib/v1/setup/helptips/ListGroup/ListGroup.js +26 -72
  110. package/lib/v1/setup/helptips/Title/Title.js +8 -53
  111. package/lib/version2/GlobalNotification/GlobalNotification.module.css +3 -0
  112. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -0
  113. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +74 -55
  114. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -4
  115. package/lib/version2/notification/DesktopNotification/props/defaultProps.js +5 -1
  116. package/lib/version2/notification/DesktopNotification/props/propTypes.js +2 -1
  117. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +57 -23
  118. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +14 -17
  119. package/lib/version2/notification/DesktopNotificationHeader/props/defaultProps.js +5 -1
  120. package/lib/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  121. package/package.json +11 -9
  122. package/result.json +1 -1
@@ -4,6 +4,8 @@ import propTypes from './props/propTypes';
4
4
  import { Container, Box } from '@zohodesk/components/es/v1/Layout';
5
5
  import AlertClose from '../../alert/AlertClose/AlertClose';
6
6
  import AlertIcons from '../../alert/alertIcons/AlertIcons';
7
+ import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
8
+ import Typography from '@zohodesk/components/es/v1/Typography/Typography';
7
9
  import style from '../../../version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css';
8
10
  export default function DesktopNotificationHeader(props) {
9
11
  let {
@@ -15,36 +17,70 @@ export default function DesktopNotificationHeader(props) {
15
17
  needIcon,
16
18
  title,
17
19
  renderAlertIcon,
18
- needClose
20
+ needClose,
21
+ responsiveId
19
22
  } = props;
23
+
24
+ function responsiveFunc(_ref) {
25
+ let {
26
+ mediaQueryOR
27
+ } = _ref;
28
+ return {
29
+ uptoTablet: mediaQueryOR([{
30
+ maxWidth: 760
31
+ }])
32
+ };
33
+ }
34
+
20
35
  return /*#__PURE__*/React.createElement(Container, {
21
36
  align: "vertical",
22
37
  alignBox: "row",
23
38
  className: `${style.container} ${style[variant]} ${style[type]}`,
24
39
  isCover: false,
25
40
  wrap: "wrap"
26
- }, needIcon ? /*#__PURE__*/React.createElement("div", {
27
- className: style.iconContainer
28
- }, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/React.createElement(AlertIcons, {
29
- type: type
30
- })) : null, /*#__PURE__*/React.createElement(Box, {
31
- flexible: true
32
- }, /*#__PURE__*/React.createElement(Container, {
33
- alignBox: "row",
34
- align: "center"
35
- }, variant === 'primary' ? /*#__PURE__*/React.createElement(Box, {
36
- className: style.title,
37
- shrink: true
38
- }, title) : /*#__PURE__*/React.createElement(Box, {
39
- className: `${style.infoText}`
40
- }, title))), needClose ? /*#__PURE__*/React.createElement(Box, {
41
- className: style.close
42
- }, /*#__PURE__*/React.createElement(AlertClose, {
43
- onClose: onClose,
44
- dataTitle: closeTitle,
45
- dataId: dataId,
46
- type: "light"
47
- })) : null);
41
+ }, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
42
+ query: responsiveFunc,
43
+ responsiveId: responsiveId
44
+ }, _ref2 => {
45
+ let {
46
+ uptoTablet
47
+ } = _ref2;
48
+ return /*#__PURE__*/React.createElement(React.Fragment, null, needIcon ? /*#__PURE__*/React.createElement("div", {
49
+ className: style.iconContainer
50
+ }, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/React.createElement(AlertIcons, {
51
+ type: type
52
+ })) : null, /*#__PURE__*/React.createElement(Box, {
53
+ flexible: true
54
+ }, /*#__PURE__*/React.createElement(Container, {
55
+ alignBox: "row",
56
+ align: "center"
57
+ }, variant === 'primary' ? /*#__PURE__*/React.createElement(Box, {
58
+ shrink: true
59
+ }, /*#__PURE__*/React.createElement(Typography, {
60
+ $i18n_dataTitle: title,
61
+ $ui_className: style.title,
62
+ $ui_tagName: "h1",
63
+ $ui_size: uptoTablet ? '16' : '18',
64
+ $ui_lineHeight: "20",
65
+ $ui_weight: "bold",
66
+ $flag_reset: true,
67
+ $ui_wordBreak: "breakWord"
68
+ }, title)) : /*#__PURE__*/React.createElement(Box, {
69
+ className: `${style.infoText}`
70
+ }, /*#__PURE__*/React.createElement(Typography, {
71
+ $i18n_dataTitle: title,
72
+ $ui_className: style.title,
73
+ $ui_size: "14",
74
+ $ui_wordBreak: "breakWord"
75
+ }, title)))), needClose ? /*#__PURE__*/React.createElement(Box, {
76
+ className: style.close
77
+ }, /*#__PURE__*/React.createElement(AlertClose, {
78
+ onClose: onClose,
79
+ dataTitle: closeTitle,
80
+ dataId: dataId,
81
+ type: "light"
82
+ })) : null);
83
+ }));
48
84
  }
49
85
  DesktopNotificationHeader.propTypes = propTypes;
50
86
  DesktopNotificationHeader.defaultProps = defaultProps; // if (__DOCS__) {
@@ -1,5 +1,7 @@
1
+ import { getDotLibraryConfig } from '../../../../Provider/Config';
1
2
  export default {
2
3
  needIcon: true,
3
4
  variant: 'primary',
4
- needClose: true
5
+ needClose: true,
6
+ responsiveId: getDotLibraryConfig('desktopNotificationResponsiveId')
5
7
  };
@@ -8,5 +8,6 @@ export default {
8
8
  title: PropTypes.string,
9
9
  renderAlertIcon: PropTypes.func,
10
10
  type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
11
- variant: PropTypes.oneOf(['primary', 'secondary'])
11
+ variant: PropTypes.oneOf(['primary', 'secondary']),
12
+ responsiveId: PropTypes.string
12
13
  };
@@ -3,34 +3,22 @@ import { defaultProps } from '../../../../setup/header/Button/props/defaultProps
3
3
  import { propTypes } from '../../../../setup/header/Button/props/propTypes';
4
4
  import GenButton from '@zohodesk/components/es/v1/Button/Button';
5
5
  import style from '../../../../setup/header/Button/HeaderButton.module.css';
6
- export default class Button extends React.Component {
7
- constructor(props) {
8
- super(props);
9
- }
10
-
11
- render() {
12
- let {
13
- palette,
14
- text,
15
- onClick,
16
- id
17
- } = this.props;
18
- return /*#__PURE__*/React.createElement("div", {
19
- className: style.container
20
- }, /*#__PURE__*/React.createElement(GenButton, {
21
- id: id,
22
- onClick: onClick,
23
- palette: palette,
24
- size: "medium",
25
- text: text
26
- }));
27
- }
28
-
6
+ export default function Button(props) {
7
+ let {
8
+ palette,
9
+ text,
10
+ onClick,
11
+ id
12
+ } = props;
13
+ return /*#__PURE__*/React.createElement("div", {
14
+ className: style.container
15
+ }, /*#__PURE__*/React.createElement(GenButton, {
16
+ id: id,
17
+ onClick: onClick,
18
+ palette: palette,
19
+ size: "medium",
20
+ text: text
21
+ }));
29
22
  }
30
23
  Button.defaultProps = defaultProps;
31
- Button.propTypes = propTypes; // if (__DOCS__) {
32
- // Button.docs = {
33
- // componentGroup: 'Header',
34
- // folderName: 'Setup'
35
- // };
36
- // }
24
+ Button.propTypes = propTypes;
@@ -5,40 +5,28 @@ import { Icon } from '@zohodesk/icons';
5
5
  import { Box } from '@zohodesk/components/es/v1/Layout';
6
6
  import ExternalLink from '../../../ExternalLink/ExternalLink';
7
7
  import style from '../../../../setup/header/Link/HeaderLink.module.css';
8
- export default class Link extends React.Component {
9
- constructor(props) {
10
- super(props);
11
- }
12
-
13
- render() {
14
- let {
15
- url,
16
- text,
17
- iconName,
18
- iconClass,
19
- iconSize
20
- } = this.props;
21
- return /*#__PURE__*/React.createElement(ExternalLink, {
22
- className: style.container,
23
- href: url
24
- }, /*#__PURE__*/React.createElement(Box, {
25
- className: style.icon
26
- }, /*#__PURE__*/React.createElement(Icon, {
27
- isBold: true,
28
- name: iconName,
29
- size: iconSize,
30
- iconClass: iconClass ? iconClass : ''
31
- })), /*#__PURE__*/React.createElement(Box, {
32
- className: style.text,
33
- flexible: true
34
- }, text));
35
- }
36
-
8
+ export default function Link(props) {
9
+ let {
10
+ url,
11
+ text,
12
+ iconName,
13
+ iconClass,
14
+ iconSize
15
+ } = props;
16
+ return /*#__PURE__*/React.createElement(ExternalLink, {
17
+ className: style.container,
18
+ href: url
19
+ }, /*#__PURE__*/React.createElement(Box, {
20
+ className: style.icon
21
+ }, /*#__PURE__*/React.createElement(Icon, {
22
+ isBold: true,
23
+ name: iconName,
24
+ size: iconSize,
25
+ iconClass: iconClass ? iconClass : ''
26
+ })), /*#__PURE__*/React.createElement(Box, {
27
+ className: style.text,
28
+ flexible: true
29
+ }, text));
37
30
  }
38
31
  Link.defaultProps = defaultProps;
39
- Link.propTypes = propTypes; // if (__DOCS__) {
40
- // Link.docs = {
41
- // componentGroup: 'Header',
42
- // folderName: 'Setup'
43
- // };
44
- // }
32
+ Link.propTypes = propTypes;
@@ -1,81 +1,55 @@
1
- import React from 'react';
1
+ import React, { useState } from 'react';
2
2
  import { defaultProps } from '../../../../setup/header/Search/props/defaultProps';
3
3
  import { propTypes } from '../../../../setup/header/Search/props/propTypes';
4
4
  import { Icon } from '@zohodesk/icons';
5
5
  import TextBox from '@zohodesk/components/es/v1/TextBox/TextBox';
6
6
  import style from '../../../../setup/header/Search/Search.module.css';
7
- export default class Search extends React.Component {
8
- constructor(props) {
9
- super(props);
10
- let {
11
- value
12
- } = this.props;
13
- this.state = {
14
- value: value || '',
15
- isFocus: false
16
- };
17
- this.onFocus = this.onFocus.bind(this);
18
- this.onBlur = this.onBlur.bind(this);
19
- }
7
+ export default function Search(props) {
8
+ let {
9
+ placeHolder,
10
+ maxLength,
11
+ value,
12
+ onChange,
13
+ onKeyPress,
14
+ onFocus,
15
+ onBlur,
16
+ customClass
17
+ } = props;
18
+ let [isFocus, setIsFocus] = useState(false);
19
+ let [resetValue] = useState(value || '');
20
20
 
21
- onFocus(id, name, value) {
22
- let {
23
- onFocus
24
- } = this.props;
25
- this.setState({
26
- isFocus: true
27
- });
21
+ const handleFocus = (id, name, value) => {
22
+ setIsFocus(true);
28
23
  onFocus && onFocus(id, name, value);
29
- }
24
+ };
30
25
 
31
- onBlur(id, name, value) {
32
- let {
33
- onBlur
34
- } = this.props;
35
- this.state.value == '' && this.setState({
36
- isFocus: false
37
- });
38
- onBlur && onBlur(id, name, value);
39
- }
26
+ const handleBlur = (id, name, value) => {
27
+ if (resetValue == '') {
28
+ setIsFocus(false);
29
+ }
40
30
 
41
- render() {
42
- let {
43
- placeHolder,
44
- maxLength,
45
- value,
46
- onChange,
47
- onKeyPress,
48
- customClass
49
- } = this.props;
50
- let {
51
- isFocus
52
- } = this.state;
53
- return /*#__PURE__*/React.createElement("div", {
54
- className: `${style.container} ${isFocus ? style.active : ''} ${customClass}`
55
- }, /*#__PURE__*/React.createElement(TextBox, {
56
- placeHolder: placeHolder,
57
- customClass: style.input,
58
- maxLength: maxLength,
59
- value: value,
60
- onChange: onChange,
61
- onKeyUp: onKeyPress,
62
- onFocus: this.onFocus,
63
- needAppearance: false,
64
- onBlur: this.onBlur
65
- }), value != '' && value ? /*#__PURE__*/React.createElement("span", {
66
- className: style.icon,
67
- onClick: this.onBlur
68
- }, /*#__PURE__*/React.createElement(Icon, {
69
- name: "ZD-close",
70
- size: "19"
71
- })) : null);
72
- }
31
+ onBlur && onBlur(id, name, value);
32
+ };
73
33
 
34
+ return /*#__PURE__*/React.createElement("div", {
35
+ className: `${style.container} ${isFocus ? style.active : ''} ${customClass}`
36
+ }, /*#__PURE__*/React.createElement(TextBox, {
37
+ placeHolder: placeHolder,
38
+ customClass: style.input,
39
+ maxLength: maxLength,
40
+ value: value,
41
+ onChange: onChange,
42
+ onKeyUp: onKeyPress,
43
+ onFocus: handleFocus,
44
+ needAppearance: false,
45
+ onBlur: handleBlur
46
+ }), value != '' && value ? /*#__PURE__*/React.createElement("span", {
47
+ className: style.icon,
48
+ onClick: handleBlur
49
+ }, /*#__PURE__*/React.createElement(Icon, {
50
+ name: "ZD-close",
51
+ size: "19"
52
+ })) : null);
74
53
  }
75
54
  Search.propTypes = propTypes;
76
- Search.defaultProps = defaultProps; // if (__DOCS__) {
77
- // Search.docs = {
78
- // componentGroup: 'Header',
79
- // folderName: 'Setup'
80
- // };
81
- // }
55
+ Search.defaultProps = defaultProps;
@@ -3,44 +3,32 @@ import { defaultProps } from '../../../../setup/header/Views/props/defaultProps'
3
3
  import { propTypes } from '../../../../setup/header/Views/props/propTypes';
4
4
  import style from '../../../../setup/header/Views/Views.module.css';
5
5
  import { Icon } from '@zohodesk/icons';
6
- export default class Views extends React.Component {
7
- constructor(props) {
8
- super(props);
9
- }
10
-
11
- render() {
12
- let {
13
- isGrid,
14
- isList,
15
- gridTitle,
16
- listTitle,
17
- onListClick,
18
- onGridClick
19
- } = this.props;
20
- return /*#__PURE__*/React.createElement("span", {
21
- className: style.container
22
- }, /*#__PURE__*/React.createElement("span", {
23
- className: `${style.icon} ${style.first} ${isList ? style.active : ''}`,
24
- "data-title": !isList ? listTitle : null,
25
- onClick: onListClick
26
- }, /*#__PURE__*/React.createElement(Icon, {
27
- name: "ZD-list22",
28
- size: "10"
29
- })), /*#__PURE__*/React.createElement("span", {
30
- className: `${style.icon} ${style.last} ${isGrid ? style.active : ''}`,
31
- "data-title": !isGrid ? gridTitle : null,
32
- onClick: onGridClick
33
- }, /*#__PURE__*/React.createElement(Icon, {
34
- name: "ZD-grid",
35
- size: "11"
36
- })));
37
- }
38
-
6
+ export default function Views(props) {
7
+ let {
8
+ isGrid,
9
+ isList,
10
+ gridTitle,
11
+ listTitle,
12
+ onListClick,
13
+ onGridClick
14
+ } = props;
15
+ return /*#__PURE__*/React.createElement("span", {
16
+ className: style.container
17
+ }, /*#__PURE__*/React.createElement("span", {
18
+ className: `${style.icon} ${style.first} ${isList ? style.active : ''}`,
19
+ "data-title": !isList ? listTitle : null,
20
+ onClick: onListClick
21
+ }, /*#__PURE__*/React.createElement(Icon, {
22
+ name: "ZD-list22",
23
+ size: "10"
24
+ })), /*#__PURE__*/React.createElement("span", {
25
+ className: `${style.icon} ${style.last} ${isGrid ? style.active : ''}`,
26
+ "data-title": !isGrid ? gridTitle : null,
27
+ onClick: onGridClick
28
+ }, /*#__PURE__*/React.createElement(Icon, {
29
+ name: "ZD-grid",
30
+ size: "11"
31
+ })));
39
32
  }
40
33
  Views.propTypes = propTypes;
41
- Views.defaultProps = defaultProps; // if (__DOCS__) {
42
- // Views.docs = {
43
- // componentGroup: 'Header',
44
- // folderName: 'Setup'
45
- // };
46
- // }
34
+ Views.defaultProps = defaultProps;
@@ -1,24 +1,12 @@
1
1
  import React from 'react';
2
2
  import { propTypes } from '../../../../setup/helptips/Description/props/propTypes';
3
3
  import style from '../../../../setup/helptips/Description/HelpTipsDescription.module.css';
4
- export default class Description extends React.Component {
5
- constructor(props) {
6
- super(props);
7
- }
8
-
9
- render() {
10
- let {
11
- text
12
- } = this.props;
13
- return /*#__PURE__*/React.createElement("p", {
14
- className: style.text
15
- }, text);
16
- }
17
-
4
+ export default function Description(props) {
5
+ let {
6
+ text
7
+ } = props;
8
+ return /*#__PURE__*/React.createElement("p", {
9
+ className: style.text
10
+ }, text);
18
11
  }
19
- Description.propTypes = propTypes; // if (__DOCS__) {
20
- // Description.docs = {
21
- // componentGroup: 'HelpTips',
22
- // folderName: 'Setup'
23
- // };
24
- // }
12
+ Description.propTypes = propTypes;
@@ -2,40 +2,28 @@ import React from 'react';
2
2
  import { propTypes } from '../../../../setup/helptips/Link/props/propTypes';
3
3
  import style from '../../../../setup/helptips/Link/HelpTipsLink.module.css';
4
4
  import ExternalLink from '../../../ExternalLink/ExternalLink';
5
- export default class Link extends React.Component {
6
- constructor(props) {
7
- super(props);
8
- }
9
-
10
- render() {
11
- let {
12
- text,
13
- url,
14
- onClick,
15
- isDangerous = false
16
- } = this.props;
17
-
18
- if (isDangerous) {
19
- return /*#__PURE__*/React.createElement("div", {
20
- className: style.container,
21
- onClick: onClick,
22
- dangerouslySetInnerHTML: {
23
- __html: text
24
- }
25
- });
26
- }
5
+ export default function Link(props) {
6
+ let {
7
+ text,
8
+ url,
9
+ onClick,
10
+ isDangerous = false
11
+ } = props;
27
12
 
28
- return /*#__PURE__*/React.createElement(ExternalLink, {
29
- href: url,
13
+ if (isDangerous) {
14
+ return /*#__PURE__*/React.createElement("div", {
15
+ className: style.container,
30
16
  onClick: onClick,
31
- className: style.text
32
- }, text);
17
+ dangerouslySetInnerHTML: {
18
+ __html: text
19
+ }
20
+ });
33
21
  }
34
22
 
23
+ return /*#__PURE__*/React.createElement(ExternalLink, {
24
+ href: url,
25
+ onClick: onClick,
26
+ className: style.text
27
+ }, text);
35
28
  }
36
- Link.propTypes = propTypes; // if (__DOCS__) {
37
- // Link.docs = {
38
- // componentGroup: 'HelpTips',
39
- // folderName: 'Setup'
40
- // };
41
- // }
29
+ Link.propTypes = propTypes;
@@ -1,39 +1,27 @@
1
1
  import React from 'react';
2
2
  import { propTypes } from '../../../../setup/helptips/ListGroup/props/propTypes';
3
3
  import style from '../../../../setup/helptips/ListGroup/ListGroup.module.css';
4
- export default class ListGroup extends React.Component {
5
- constructor(props) {
6
- super(props);
7
- }
8
-
9
- render() {
10
- let {
11
- isOrder,
12
- data
13
- } = this.props;
14
-
15
- if (isOrder) {
16
- return /*#__PURE__*/React.createElement("ol", {
17
- className: style.container,
18
- type: "1"
19
- }, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
20
- className: style.orderData,
21
- key: index
22
- }, text)));
23
- }
4
+ export default function ListGroup(props) {
5
+ let {
6
+ isOrder,
7
+ data
8
+ } = props;
24
9
 
25
- return /*#__PURE__*/React.createElement("ul", {
26
- className: style.container
10
+ if (isOrder) {
11
+ return /*#__PURE__*/React.createElement("ol", {
12
+ className: style.container,
13
+ type: "1"
27
14
  }, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
28
- className: style.unOrderData,
15
+ className: style.orderData,
29
16
  key: index
30
- }, data)));
17
+ }, text)));
31
18
  }
32
19
 
20
+ return /*#__PURE__*/React.createElement("ul", {
21
+ className: style.container
22
+ }, data.map((text, index) => /*#__PURE__*/React.createElement("li", {
23
+ className: style.unOrderData,
24
+ key: index
25
+ }, text)));
33
26
  }
34
- ListGroup.propTypes = propTypes; // if (__DOCS__) {
35
- // ListGroup.docs = {
36
- // componentGroup: 'HelpTips',
37
- // folderName: 'Setup'
38
- // };
39
- // }
27
+ ListGroup.propTypes = propTypes;
@@ -1,24 +1,12 @@
1
1
  import React from 'react';
2
2
  import { propTypes } from '../../../../setup/helptips/Title/props/propTypes';
3
3
  import style from '../../../../setup/helptips/Title/HelpTipsTitle.module.css';
4
- export default class Title extends React.Component {
5
- constructor(props) {
6
- super(props);
7
- }
8
-
9
- render() {
10
- let {
11
- text
12
- } = this.props;
13
- return /*#__PURE__*/React.createElement("div", {
14
- className: style.title
15
- }, text);
16
- }
17
-
4
+ export default function Title(props) {
5
+ let {
6
+ text
7
+ } = props;
8
+ return /*#__PURE__*/React.createElement("div", {
9
+ className: style.title
10
+ }, text);
18
11
  }
19
- Title.propTypes = propTypes; // if (__DOCS__) {
20
- // Title.docs = {
21
- // componentGroup: 'HelpTips',
22
- // folderName: 'Setup'
23
- // };
24
- // }
12
+ Title.propTypes = propTypes;
@@ -29,6 +29,9 @@
29
29
  .container {
30
30
  position: relative;
31
31
  pointer-events: initial;
32
+ /* css:theme-validation:ignore */
33
+ /* css:theme-validation:ignore */
34
+ /* css:theme-validation:ignore */
32
35
  color: var(--globalnotification_text_color);
33
36
  max-width: var(--zd_size490) ;
34
37
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
@@ -4,6 +4,7 @@
4
4
  .container {
5
5
  composes: varClass;
6
6
  position: relative;
7
+ /* css:theme-validation:ignore */
7
8
  background-color: var(--zdt_alertlookup_bg);
8
9
  border-style: solid;
9
10
  border-color: var(--commonalert_border_color);