@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
@@ -9,6 +9,7 @@ import AutoClose from '../../../actions/AutoClose';
9
9
  import Button from '@zohodesk/components/lib/Button/Button';
10
10
  import FormAction from '../../../FormAction/FormAction';
11
11
  import DesktopNotificationHeader from '../DesktopNotificationHeader/DesktopNotificationHeader';
12
+ import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
12
13
  import style from './DesktopNotification.module.css';
13
14
  let buttonPaletteObject = {
14
15
  success: {
@@ -60,7 +61,8 @@ export function DesktopNotificationUI(props) {
60
61
  needClose,
61
62
  customClass = {},
62
63
  i18nKeys = {},
63
- customProps
64
+ customProps,
65
+ responsiveId
64
66
  } = props;
65
67
  let {
66
68
  closeTitle = 'Close'
@@ -89,66 +91,87 @@ export function DesktopNotificationUI(props) {
89
91
  let Zindex = isAnimate ? getNextIndex() : null;
90
92
  let uiVariantOne = title && (info || secondaryInfo);
91
93
  let uiVariantTwo = title && !(info || secondaryInfo) && !getSectionContainer;
94
+
95
+ function responsiveFunc(_ref) {
96
+ let {
97
+ mediaQueryOR
98
+ } = _ref;
99
+ return {
100
+ uptoTablet: mediaQueryOR([{
101
+ maxWidth: 760
102
+ }])
103
+ };
104
+ }
105
+
92
106
  return /*#__PURE__*/React.createElement("div", {
93
107
  className: style.parentElement,
94
108
  style: needAutoZindex && isAnimate ? {
95
109
  zIndex: `${Zindex}`
96
110
  } : {},
97
111
  "data-selector-id": dataSelectorId
98
- }, /*#__PURE__*/React.createElement(Container, _extends({
99
- className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass} ${style[`${size}`] ? style[`${size}`] : ''} ${isShrinkView ? style.globalNotify : ''} ${containerClass}`,
100
- isCover: false,
101
- dataId: dataId,
102
- isInline: uiVariantTwo
103
- }, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
104
- type: type,
105
- title: title,
106
- variant: titleVariant,
107
- needIcon: needIcon,
108
- onClose: onClose,
109
- closeTitle: closeTitle,
110
- dataId: `${dataId}_close`,
111
- needClose: needClose
112
- })), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Container, {
113
- alignBox: "column"
114
- }, uiVariantOne && /*#__PURE__*/React.createElement(Box, {
115
- flexible: true
116
- }, /*#__PURE__*/React.createElement("div", {
117
- className: `${style.section} ${style.infoText}`
118
- }, subTitle && /*#__PURE__*/React.createElement("div", {
119
- className: `${style.subTitle} ${info || secondaryInfo ? style.subTitleMargin : ''}`
120
- }, subTitle), info && /*#__PURE__*/React.createElement("div", null, info), secondaryInfo && /*#__PURE__*/React.createElement("div", {
121
- className: `${info ? style.secondaryInfo : ''}`
122
- }, secondaryInfo))), getSectionContainer && /*#__PURE__*/React.createElement(Box, {
123
- flexible: true
124
- }, getSectionContainer()), submitText || cancelText ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
125
- className: style.footer
126
- }, isMore ? /*#__PURE__*/React.createElement("div", {
127
- className: `${style.message}`,
128
- tagName: "p"
129
- }, message) : null, /*#__PURE__*/React.createElement(FormAction, {
130
- size: "small",
131
- paddingLeftSize: "xmedium"
132
- }, submitText ? /*#__PURE__*/React.createElement("div", {
133
- onClick: onClickSubmit,
134
- "data-id": `${dataId}_submitButton`,
135
- "data-test-id": `${dataId}_submitButton`
136
- }, /*#__PURE__*/React.createElement(Container, {
137
- align: "vertical",
138
- alignBox: "row"
139
- }, getSubmitContainer ? /*#__PURE__*/React.createElement(Box, {
140
- flexible: true
141
- }, getSubmitContainer()) : /*#__PURE__*/React.createElement(Box, {
142
- flexible: true
143
- }, /*#__PURE__*/React.createElement(Button, {
144
- text: submitText,
145
- palette: submitType ? submitType : buttonPalette
146
- })))) : null, cancelText ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
147
- text: cancelText,
148
- palette: "secondary",
149
- dataId: `${dataId}_cancelButton`,
150
- onClick: onClickCancel
151
- })) : null))) : null)), getBottomContainer ? /*#__PURE__*/React.createElement(Box, null, getBottomContainer()) : null));
112
+ }, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
113
+ query: responsiveFunc,
114
+ responsiveId: responsiveId
115
+ }, _ref2 => {
116
+ let {
117
+ uptoTablet
118
+ } = _ref2;
119
+ return /*#__PURE__*/React.createElement(Container, _extends({
120
+ className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass}
121
+ ${isShrinkView ? style.globalNotify : ''} ${containerClass} ${uptoTablet ? style.tapWidth : style[`${size}`]}`,
122
+ isCover: false,
123
+ dataId: dataId,
124
+ isInline: uiVariantTwo
125
+ }, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
126
+ type: type,
127
+ title: title,
128
+ variant: titleVariant,
129
+ needIcon: needIcon,
130
+ onClose: onClose,
131
+ closeTitle: closeTitle,
132
+ dataId: `${dataId}_close`,
133
+ needClose: needClose
134
+ })), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Container, {
135
+ alignBox: "column"
136
+ }, uiVariantOne && /*#__PURE__*/React.createElement(Box, {
137
+ flexible: true
138
+ }, /*#__PURE__*/React.createElement("div", {
139
+ className: `${style.section} ${style.infoText}`
140
+ }, subTitle && /*#__PURE__*/React.createElement("div", {
141
+ className: `${style.subTitle} ${info || secondaryInfo ? style.subTitleMargin : ''}`
142
+ }, subTitle), info && /*#__PURE__*/React.createElement("div", null, info), secondaryInfo && /*#__PURE__*/React.createElement("div", {
143
+ className: `${info ? style.secondaryInfo : ''}`
144
+ }, secondaryInfo))), getSectionContainer && /*#__PURE__*/React.createElement(Box, {
145
+ flexible: true
146
+ }, getSectionContainer()), submitText || cancelText ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
147
+ className: style.footer
148
+ }, isMore ? /*#__PURE__*/React.createElement("div", {
149
+ className: `${style.message}`,
150
+ tagName: "p"
151
+ }, message) : null, /*#__PURE__*/React.createElement(FormAction, {
152
+ size: "small",
153
+ paddingLeftSize: "xmedium"
154
+ }, submitText ? /*#__PURE__*/React.createElement("div", {
155
+ onClick: onClickSubmit,
156
+ "data-id": `${dataId}_submitButton`,
157
+ "data-test-id": `${dataId}_submitButton`
158
+ }, /*#__PURE__*/React.createElement(Container, {
159
+ align: "vertical",
160
+ alignBox: "row"
161
+ }, getSubmitContainer ? /*#__PURE__*/React.createElement(Box, {
162
+ flexible: true
163
+ }, getSubmitContainer()) : /*#__PURE__*/React.createElement(Box, {
164
+ flexible: true
165
+ }, /*#__PURE__*/React.createElement(Button, {
166
+ text: submitText,
167
+ palette: submitType ? submitType : buttonPalette
168
+ })))) : null, cancelText ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
169
+ text: cancelText,
170
+ palette: "secondary",
171
+ dataId: `${dataId}_cancelButton`,
172
+ onClick: onClickCancel
173
+ })) : null))) : null)), getBottomContainer ? /*#__PURE__*/React.createElement(Box, null, getBottomContainer()) : null);
174
+ }));
152
175
  }
153
176
  DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
154
177
  export default function DesktopNotification(props) {
@@ -28,6 +28,7 @@
28
28
  }
29
29
 
30
30
  /* Size */
31
+
31
32
  .medium {
32
33
  width: var(--zd_size452) ;
33
34
  }
@@ -35,6 +36,10 @@
35
36
  .large {
36
37
  width: var(--zd_size580) ;
37
38
  }
39
+ .tapWidth{
40
+ max-width: 100% ;
41
+ min-width: 100% ;
42
+ }
38
43
 
39
44
  /* Animation Style */
40
45
  .closeAnimation {
@@ -76,12 +81,12 @@
76
81
  /* Container Style */
77
82
  .message {
78
83
  position: relative;
79
- color: var(--zd_smoke18);
84
+ color: var(--zdt_desktopnotification_message_text);
80
85
  font-size: var(--zd_font_size11) ;
81
86
  composes: dotted textCap from '~@zohodesk/components/lib/common/common.module.css';
82
87
  height: var(--zd_size33) ;
83
88
  transition: padding var(--zd_transition3), height var(--zd_transition3);
84
- border-top: 1px solid var(--zd_smoke1);
89
+ border-top: 1px solid var(--zdt_desktopnotification_message_border);
85
90
  cursor: pointer;
86
91
  }
87
92
  [dir=ltr] .message {
@@ -92,7 +97,7 @@
92
97
  }
93
98
 
94
99
  .message:hover {
95
- background: var(--zd_alabaster);
100
+ background: var(--zdt_desktopnotification_message_hover_bg);
96
101
  }
97
102
 
98
103
  /* Section */
@@ -100,6 +105,7 @@
100
105
  padding: var(--zd_size15) var(--zd_size30) var(--zd_size30) ;
101
106
  }
102
107
 
108
+
103
109
  .subTitle {
104
110
  font-size: var(--zd_font_size15) ;
105
111
  line-height: var(--zd_size20);
@@ -124,4 +130,4 @@
124
130
  .footer {
125
131
  overflow: hidden;
126
132
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
127
- }
133
+ }
@@ -1,3 +1,4 @@
1
+ import { getDotLibraryConfig } from '../../../../Provider/Config';
1
2
  export const defaultProps = {
2
3
  isMore: false,
3
4
  isAnimate: true,
@@ -11,5 +12,6 @@ export const defaultProps = {
11
12
  isShrinkView: false,
12
13
  needClose: true,
13
14
  customProps: {},
14
- dataSelectorId: 'desktopNotification'
15
+ dataSelectorId: 'desktopNotification',
16
+ responsiveId: getDotLibraryConfig('desktopNotificationResponsiveId')
15
17
  };
@@ -4,7 +4,8 @@ export const propTypes = {
4
4
  onPortalClose: PropTypes.func,
5
5
  autoClose: PropTypes.bool,
6
6
  hideTime: PropTypes.string,
7
- Element: PropTypes.element
7
+ Element: PropTypes.element,
8
+ responsiveId: PropTypes.string
8
9
  };
9
10
  export const DesktopNotificationUI_propTypes = {
10
11
  type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
@@ -4,6 +4,8 @@ import { propTypes } from './props/propTypes';
4
4
  import { Container, Box } from '@zohodesk/components/lib/Layout';
5
5
  import AlertClose from '../../AlertClose/AlertClose';
6
6
  import AlertIcons from '../../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 './DesktopNotificationHeader.module.css';
8
10
  export default class DesktopNotificationHeader extends Component {
9
11
  constructor(props) {
@@ -19,36 +21,70 @@ export default class DesktopNotificationHeader extends Component {
19
21
  type = '',
20
22
  needIcon,
21
23
  title,
22
- needClose
24
+ needClose,
25
+ responsiveId
23
26
  } = this.props;
27
+
28
+ function responsiveFunc(_ref) {
29
+ let {
30
+ mediaQueryOR
31
+ } = _ref;
32
+ return {
33
+ uptoTablet: mediaQueryOR([{
34
+ maxWidth: 760
35
+ }])
36
+ };
37
+ }
38
+
24
39
  return /*#__PURE__*/React.createElement(Container, {
25
40
  align: "vertical",
26
41
  alignBox: "row",
27
42
  className: `${style.container} ${style[variant]} ${style[type]}`,
28
43
  isCover: false,
29
44
  wrap: "wrap"
30
- }, needIcon ? /*#__PURE__*/React.createElement("div", {
31
- className: style.iconContainer
32
- }, /*#__PURE__*/React.createElement(AlertIcons, {
33
- type: type
34
- })) : null, /*#__PURE__*/React.createElement(Box, {
35
- flexible: true
36
- }, /*#__PURE__*/React.createElement(Container, {
37
- alignBox: "row",
38
- align: "center"
39
- }, variant === 'primary' ? /*#__PURE__*/React.createElement(Box, {
40
- className: style.title,
41
- shrink: true
42
- }, title) : /*#__PURE__*/React.createElement(Box, {
43
- className: `${style.infoText}`
44
- }, title))), needClose ? /*#__PURE__*/React.createElement(Box, {
45
- className: style.close
46
- }, /*#__PURE__*/React.createElement(AlertClose, {
47
- onClose: onClose,
48
- dataTitle: closeTitle,
49
- dataId: dataId,
50
- type: "light"
51
- })) : null);
45
+ }, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
46
+ query: responsiveFunc,
47
+ responsiveId: responsiveId
48
+ }, _ref2 => {
49
+ let {
50
+ uptoTablet
51
+ } = _ref2;
52
+ return /*#__PURE__*/React.createElement(React.Fragment, null, needIcon ? /*#__PURE__*/React.createElement("div", {
53
+ className: style.iconContainer
54
+ }, /*#__PURE__*/React.createElement(AlertIcons, {
55
+ type: type
56
+ })) : null, /*#__PURE__*/React.createElement(Box, {
57
+ flexible: true
58
+ }, /*#__PURE__*/React.createElement(Container, {
59
+ alignBox: "row",
60
+ align: "center"
61
+ }, variant === 'primary' ? /*#__PURE__*/React.createElement(Box, {
62
+ shrink: true
63
+ }, /*#__PURE__*/React.createElement(Typography, {
64
+ $i18n_dataTitle: title,
65
+ $ui_className: style.title,
66
+ $ui_tagName: "h1",
67
+ $ui_size: uptoTablet ? '16' : '18',
68
+ $ui_lineHeight: "20",
69
+ $ui_weight: "bold",
70
+ $flag_reset: true,
71
+ $ui_wordBreak: "breakWord"
72
+ }, title)) : /*#__PURE__*/React.createElement(Box, {
73
+ className: `${style.infoText}`
74
+ }, /*#__PURE__*/React.createElement(Typography, {
75
+ $i18n_dataTitle: title,
76
+ $ui_className: style.title,
77
+ $ui_size: "14",
78
+ $ui_wordBreak: "breakWord"
79
+ }, title)))), needClose ? /*#__PURE__*/React.createElement(Box, {
80
+ className: style.close
81
+ }, /*#__PURE__*/React.createElement(AlertClose, {
82
+ onClose: onClose,
83
+ dataTitle: closeTitle,
84
+ dataId: dataId,
85
+ type: "light"
86
+ })) : null);
87
+ }));
52
88
  }
53
89
 
54
90
  }
@@ -5,32 +5,29 @@
5
5
  composes: varClass;
6
6
  min-height: var(--zd_size54) ;
7
7
  position: relative;
8
+ /* css:theme-validation:ignore */
9
+ /* css:theme-validation:ignore */
8
10
  color: var(--zdt_desktopnotification_text);
9
11
  background-color: var(--alert_lookup_bg_color);
10
12
  border-style: solid;
11
13
  border-color: var(--commonalert_border_color);
12
14
  border-width: 2px 0 0 0;
13
15
  }
14
-
16
+
15
17
  .title {
16
- font-size: var(--zd_font_size18) ;
17
- line-height: var(--zd_size22);
18
- font-family: var(--zd_bold);
19
- composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
18
+ composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
20
19
  }
21
-
20
+
22
21
  [dir=ltr] .title {
23
22
  margin: 0 var(--zd_size5) 0 var(--zd_size10) ;
24
23
  }
25
-
24
+
26
25
  [dir=rtl] .title {
27
26
  margin: 0 var(--zd_size10) 0 var(--zd_size5) ;
28
27
  }
29
28
 
30
29
  .infoText {
31
- font-size: var(--zd_font_size14) ;
32
30
  max-width: 100% ;
33
- composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
34
31
  }
35
32
 
36
33
  /* Palette */
@@ -38,19 +35,19 @@
38
35
  .success {
39
36
  --commonalert_border_color: var(--zdt_commonalert_success_border);
40
37
  }
41
-
38
+
42
39
  .info,.notification,.alarm {
43
40
  --commonalert_border_color: var(--zdt_commonalert_info_border);
44
41
  }
45
-
42
+
46
43
  .danger {
47
44
  --commonalert_border_color: var(--zdt_commonalert_danger_border);
48
45
  }
49
-
46
+
50
47
  .error {
51
48
  --commonalert_border_color: var(--zdt_commonalert_error_border);
52
49
  }
53
-
50
+
54
51
  .warning {
55
52
  --commonalert_border_color: var(--zdt_commonalert_warning_border);
56
53
  }
@@ -72,16 +69,16 @@
72
69
  .primary .infoText {
73
70
  line-height: var(--zd_size18);
74
71
  }
75
-
72
+
76
73
  .primary .close {
77
74
  position: absolute;
78
75
  top: var(--zd_size12) ;
79
76
  }
80
-
77
+
81
78
  [dir=ltr] .primary .close {
82
79
  right: var(--zd_size12) ;
83
80
  }
84
-
81
+
85
82
  [dir=rtl] .primary .close {
86
83
  left: var(--zd_size12) ;
87
84
  }
@@ -134,4 +131,4 @@
134
131
  [dir=rtl] .secondary .close {
135
132
  left: var(--zd_size12) ;
136
133
  margin: auto var(--zd_size25) auto 0 ;
137
- }
134
+ }
@@ -1,5 +1,7 @@
1
+ import { getDotLibraryConfig } from '../../../../Provider/Config';
1
2
  export const defaultProps = {
2
3
  needIcon: true,
3
4
  variant: 'primary',
4
- needClose: true
5
+ needClose: true,
6
+ responsiveId: getDotLibraryConfig('desktopNotificationResponsiveId')
5
7
  };
@@ -7,5 +7,6 @@ export const propTypes = {
7
7
  onClose: PropTypes.func,
8
8
  title: PropTypes.string,
9
9
  type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
10
- variant: PropTypes.oneOf(['primary', 'secondary'])
10
+ variant: PropTypes.oneOf(['primary', 'secondary']),
11
+ responsiveId: PropTypes.string
11
12
  };
@@ -13,12 +13,14 @@
13
13
  --buttonText: var(--zdt_actionButton_primaryFilled_text);
14
14
  }
15
15
  .primaryFilledBtn, .primaryFilledArw {
16
+ /* css:theme-validation:ignore */
16
17
  background-color: var(--buttonBg);
17
18
  }
18
19
  .primaryBox {
19
20
  --buttonText: var(--zdt_actionButton_primary_text);
20
21
  }
21
22
  .primaryBtn, .primaryArw {
23
+ /* css:theme-validation:ignore */
22
24
  border: 1px solid var(--buttonBorder);
23
25
  }
24
26
  [dir=ltr] .primaryBtn {
@@ -81,6 +83,7 @@
81
83
  .txt,
82
84
  .subTxt {
83
85
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
86
+ /* css:theme-validation:ignore */
84
87
  color: var(--buttonText);
85
88
  }
86
89
  .arrowWrapper {
@@ -94,6 +97,9 @@
94
97
  [dir=rtl] .arrowWrapper {
95
98
  border-radius: var(--zd_size4) 0 0 var(--zd_size4);
96
99
  }
100
+ .primaryFilledArw {
101
+ /* css:theme-validation:ignore */
102
+ }
97
103
  [dir=ltr] .primaryFilledArw {
98
104
  border-left: 1px solid var(--buttonSeparatorBorder);
99
105
  }
@@ -129,6 +135,7 @@
129
135
  }
130
136
  .arrow,
131
137
  .iconClr {
138
+ /* css:theme-validation:ignore */
132
139
  color: var(--buttonText);
133
140
  }
134
141
  [dir=ltr] .iconMrgn {
@@ -33,6 +33,7 @@
33
33
  .list {
34
34
  font-size: var(--zd_font_size11) ;
35
35
  flex-basis: var(--zd_size12) ;
36
+ /* css:theme-validation:ignore */
36
37
  color: var(--textColor);
37
38
  text-align: center;
38
39
  cursor: pointer;
@@ -49,6 +50,7 @@
49
50
  }
50
51
  .list :hover,
51
52
  .selected {
53
+ /* css:theme-validation:ignore */
52
54
  color: var(--textHoverColor);
53
55
  }
54
56
  .title {
@@ -154,6 +154,7 @@
154
154
  .imgItem {
155
155
  height: var(--zd_size60) ;
156
156
  min-width: var(--zd_size40) ;
157
+ /* css:theme-validation:ignore */
157
158
  position: relative;
158
159
  transition: border var(--zd_transition3);
159
160
  border-width: 2px;
@@ -345,6 +346,7 @@
345
346
  }
346
347
 
347
348
  .btn {
349
+ /* css:theme-validation:ignore */
348
350
  height: 100% ;
349
351
  width: 100% ;
350
352
  background-color: var(--dot_mirror);
@@ -16,6 +16,7 @@
16
16
  top: calc( var(--zd_size4) * -1 ) ;
17
17
  height: var(--zd_size15) ;
18
18
  width: var(--zd_size15) ;
19
+ /* css:theme-validation:ignore */
19
20
  background-color: var(--topIconBg);
20
21
  }
21
22
  [dir=ltr] .thread {
@@ -25,10 +26,12 @@
25
26
  left: calc( var(--zd_size1) * -1 ) ;
26
27
  }
27
28
  .threadBorder {
29
+ /* css:theme-validation:ignore */
28
30
  border: 1px solid var(--topIconBorderColor);
29
31
  }
30
32
  .iconStyle {
31
33
  position: relative;
34
+ /* css:theme-validation:ignore */
32
35
  color: var(--iconColor);
33
36
  }
34
37
 
@@ -213,5 +216,6 @@
213
216
  --topIconColor: var(--zdt_channelIcon_topIcon_iconYellow);
214
217
  }
215
218
  .topicIcon {
219
+ /* css:theme-validation:ignore */
216
220
  color: var(--topIconColor);
217
221
  }
@@ -9,6 +9,8 @@
9
9
  }
10
10
  .footerParent {
11
11
  position: relative;
12
+ /* css:theme-validation:ignore */
13
+ /* css:theme-validation:ignore */
12
14
  background-color: var(--footerBg);
13
15
  border-top: solid 1px var(--footerBorder);
14
16
  }
@@ -6,6 +6,7 @@
6
6
  width: var(--zd_size28) ;
7
7
  composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
8
8
  composes: varClass;
9
+ /* css:theme-validation:ignore */
9
10
  color: var(--iconColor);
10
11
  cursor: pointer;
11
12
  }
@@ -16,7 +16,8 @@ var config = {
16
16
  left: 0,
17
17
  right: 0,
18
18
  bottom: 0
19
- }
19
+ },
20
+ desktopNotificationResponsiveId: 'Helmet'
20
21
  };
21
22
 
22
23
  function getDotLibraryConfig(key) {
@@ -5,52 +5,66 @@
5
5
  --tag_small_fontSize: var(--zd_font_size10);
6
6
  --tag_large_fontSize: var(--zd_font_size12);
7
7
  }
8
+
8
9
  .wrapper {
9
10
  composes: varClass;
11
+ /* css:theme-validation:ignore */
12
+ /* css:theme-validation:ignore */
10
13
  color: var(--tag_text_color);
11
14
  background-color: var(--tag_bg_color);
12
15
  }
16
+
13
17
  .small,
14
18
  .large {
19
+ /* css:theme-validation:ignore */
15
20
  max-width: 100% ;
16
21
  height: var(--zd_size18) ;
17
22
  }
23
+
18
24
  .small, .large {
19
- border: 1px solid;
20
- border-color: var(--tag_border_color);
25
+ border: 1px solid var(--tag_border_color);
21
26
  border-radius: var(--zd_size4);
22
27
  padding: 0 var(--zd_size6) ;
23
28
  }
29
+
24
30
  .bold {
25
31
  composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
26
32
  }
33
+
27
34
  .small_text {
28
35
  font-size: var(--tag_small_fontSize);
29
36
  }
37
+
30
38
  .large_text {
31
39
  font-size: var(--tag_large_fontSize);
32
40
  }
41
+
33
42
  .text {
34
43
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
35
44
  }
36
- [dir=ltr] .iconSpace{
45
+
46
+ [dir=ltr] .iconSpace {
37
47
  margin-right: var(--zd_size4) ;
38
48
  }
39
- [dir=rtl] .iconSpace{
49
+
50
+ [dir=rtl] .iconSpace {
40
51
  margin-left: var(--zd_size4) ;
41
52
  }
53
+
42
54
  .yellow {
43
55
  --tag_bg_color: var(--zdt_tagWithIconYellow_bg);
44
56
  --tag_text_color: var(--zdt_tagWithIconYellow_text);
45
57
  --tag_border_color: var(--zdt_tagWithIconYellow_border);
46
58
  }
59
+
47
60
  .grey {
48
61
  --tag_bg_color: var(--zdt_tagWithIconGrey_bg);
49
62
  --tag_text_color: var(--zdt_tagWithIconGrey_text);
50
63
  --tag_border_color: var(--zdt_tagWithIconGrey_border);
51
64
  }
65
+
52
66
  .blue {
53
67
  --tag_bg_color: var(--zdt_tagWithIconBlue_bg);
54
68
  --tag_text_color: var(--zdt_tagWithIconBlue_text);
55
69
  --tag_border_color: var(--zdt_tagWithIconBlue_border);
56
- }
70
+ }