@zohodesk/dot 1.0.0-beta.200 → 1.0.0-beta.204

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 (37) hide show
  1. package/README.md +49 -31
  2. package/es/Appearance/dark/mode/dotDarkMode.module.css +6 -3
  3. package/es/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +1 -1
  4. package/es/Appearance/default/mode/dotDefaultMode.module.css +6 -3
  5. package/es/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +1 -1
  6. package/es/docs/setupDocs.js +1 -3
  7. package/es/list/ListLayout/ListLayout.module.css +18 -20
  8. package/es/version2/GlobalNotification/GlobalNotification.js +18 -6
  9. package/es/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
  10. package/lib/Appearance/dark/mode/dotDarkMode.module.css +6 -3
  11. package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +1 -1
  12. package/lib/Appearance/default/mode/dotDefaultMode.module.css +6 -3
  13. package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +1 -1
  14. package/lib/list/ListLayout/ListLayout.module.css +18 -20
  15. package/lib/version2/GlobalNotification/GlobalNotification.js +18 -6
  16. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
  17. package/package.json +3 -3
  18. package/src/Appearance/dark/mode/dotDarkMode.module.css +6 -3
  19. package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +1 -1
  20. package/src/Appearance/default/mode/dotDefaultMode.module.css +6 -3
  21. package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +1 -1
  22. package/src/docs/setupDocs.js +0 -2
  23. package/src/list/ListLayout/ListLayout.module.css +10 -14
  24. package/src/version2/GlobalNotification/GlobalNotification.js +12 -4
  25. package/src/version2/notification/DesktopNotification/DesktopNotification.js +10 -3
  26. package/es/deprecated/Theme/dotDarkTheme.module.css +0 -532
  27. package/es/deprecated/Theme/dotDefaultTheme.module.css +0 -532
  28. package/es/deprecated/Theme/palette/darkPalette.module.css +0 -40
  29. package/es/deprecated/Theme/palette/defaultPalette.module.css +0 -40
  30. package/lib/deprecated/Theme/dotDarkTheme.module.css +0 -532
  31. package/lib/deprecated/Theme/dotDefaultTheme.module.css +0 -532
  32. package/lib/deprecated/Theme/palette/darkPalette.module.css +0 -40
  33. package/lib/deprecated/Theme/palette/defaultPalette.module.css +0 -40
  34. package/src/deprecated/Theme/dotDarkTheme.module.css +0 -532
  35. package/src/deprecated/Theme/dotDefaultTheme.module.css +0 -532
  36. package/src/deprecated/Theme/palette/darkPalette.module.css +0 -40
  37. package/src/deprecated/Theme/palette/defaultPalette.module.css +0 -40
@@ -85,7 +85,8 @@ function DesktopNotificationUI(props) {
85
85
  _props$customClass = props.customClass,
86
86
  customClass = _props$customClass === void 0 ? {} : _props$customClass,
87
87
  _props$i18nKeys = props.i18nKeys,
88
- i18nKeys = _props$i18nKeys === void 0 ? {} : _props$i18nKeys;
88
+ i18nKeys = _props$i18nKeys === void 0 ? {} : _props$i18nKeys,
89
+ customProps = props.customProps;
89
90
  var _i18nKeys$closeTitle = i18nKeys.closeTitle,
90
91
  closeTitle = _i18nKeys$closeTitle === void 0 ? 'Close' : _i18nKeys$closeTitle;
91
92
  var containerClass = customClass.containerClass;
@@ -94,6 +95,9 @@ function DesktopNotificationUI(props) {
94
95
  _ref$buttonPalette = _ref.buttonPalette,
95
96
  buttonPalette = _ref$buttonPalette === void 0 ? 'dangerFilled' : _ref$buttonPalette;
96
97
 
98
+ var _customProps$ExtraPro = customProps.ExtraProps,
99
+ ExtraProps = _customProps$ExtraPro === void 0 ? {} : _customProps$ExtraPro;
100
+
97
101
  function onClickSubmit(e) {
98
102
  onSubmit && onSubmit();
99
103
  }
@@ -113,12 +117,12 @@ function DesktopNotificationUI(props) {
113
117
  style: needAutoZindex && isAnimate ? {
114
118
  zIndex: "".concat(Zindex)
115
119
  } : {}
116
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
120
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
117
121
  className: "".concat(_DesktopNotificationModule["default"].container, " ").concat(isAnimate ? animateClass : animateRemoveClass, " ").concat(_DesktopNotificationModule["default"]["".concat(size)] ? _DesktopNotificationModule["default"]["".concat(size)] : '', " ").concat(isShrinkView ? _DesktopNotificationModule["default"].globalNotify : '', " ").concat(containerClass),
118
122
  isCover: false,
119
123
  dataId: dataId,
120
124
  isInline: uiVariantTwo
121
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_DesktopNotificationHeader["default"], {
125
+ }, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_DesktopNotificationHeader["default"], {
122
126
  type: type,
123
127
  title: title,
124
128
  variant: titleVariant,
@@ -204,7 +208,10 @@ DesktopNotification.propTypes = {
204
208
  submitText: _propTypes["default"].string,
205
209
  submitType: _propTypes["default"].oneOf(['primary', 'danger', 'success']),
206
210
  titleVariant: _propTypes["default"].oneOf(['primary', 'secondary']),
207
- type: _propTypes["default"].oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm'])
211
+ type: _propTypes["default"].oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
212
+ customProps: _propTypes["default"].shape({
213
+ ExtraProps: _propTypes["default"].object
214
+ })
208
215
  };
209
216
  DesktopNotification.defaultProps = {
210
217
  isMore: false,
@@ -217,7 +224,8 @@ DesktopNotification.defaultProps = {
217
224
  needIcon: true,
218
225
  titleVariant: 'primary',
219
226
  isShrinkView: false,
220
- needClose: true
227
+ needClose: true,
228
+ customProps: {}
221
229
  };
222
230
 
223
231
  if (false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-beta.200",
3
+ "version": "1.0.0-beta.204",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -32,7 +32,7 @@
32
32
  "velocity-react": "^1.4.3",
33
33
  "@zohodesk/variables": "1.0.0-beta.25",
34
34
  "@zohodesk/i18n": "^1.0.0-beta.7",
35
- "@zohodesk/components": "1.0.0-alpha-216",
35
+ "@zohodesk/components": "1.0.0-alpha-221",
36
36
  "@zohodesk/icons": "1.0.0-beta.85",
37
37
  "@zohodesk/svg": "1.0.0-beta.37",
38
38
  "@zohodesk/virtualizer": "1.0.3",
@@ -42,7 +42,7 @@
42
42
  "velocity-react": "^1.4.3",
43
43
  "@zohodesk/variables": "^1.0.0-beta.25",
44
44
  "@zohodesk/i18n": "^1.0.0-beta.7",
45
- "@zohodesk/components": "1.0.0-alpha-216",
45
+ "@zohodesk/components": "1.0.0-alpha-221",
46
46
  "@zohodesk/icons": "^1.0.0-beta.85",
47
47
  "@zohodesk/svg": "^1.0.0-beta.37"
48
48
  },
@@ -1,4 +1,4 @@
1
- [data-mode='dark'] {
1
+ [data-mode='dark'], :global(.blueDarkTheme) [data-desk-theme="blue"] {
2
2
  /* action button */
3
3
  --zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
4
4
  --zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
@@ -230,8 +230,10 @@
230
230
 
231
231
  /* list layout */
232
232
  --zdt_listLayout_border: var(--zdt_cta_grey_15_border);
233
- --zdt_listLayout_hover_border: var(--dot_listItemHover);
234
- --zdt_listLayout_active_border: var(--dot_listItemActive);
233
+ --zdt_listLayout_hover_bg: var(--dot_listItemHover);
234
+ --zdt_listLayout_active_bg: var(--dot_listItemActive);
235
+ --zdt_listLayout_active_border: var(--zdt_cta_primary_border);
236
+ --zdt_listLayout_keyboard_active_border:#828994;
235
237
 
236
238
  /* list stencils */
237
239
  --zdt_liststencils_innercontainer_border: var(--zdt_cta_grey_15_border);
@@ -455,6 +457,7 @@
455
457
  --zdt_commonalert_close_hover_bg: #583a45;
456
458
  --zdt_commonalert_success_hover_bg: #2c4e42;
457
459
  --zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
460
+ --zdt_commonalert_plaininfo_hover_bg: #262f3d;
458
461
  --zdt_commonalert_danger_hover_bg: #583a45;
459
462
  --zdt_commonalert_error_hover_bg: #583a45;
460
463
  --zdt_commonalert_warning_hover_bg: #583c2c;
@@ -1,4 +1,4 @@
1
- [data-mode='dark'][data-theme='blue'] {
1
+ [data-mode='dark'][data-theme='blue'], :global(.blueDarkTheme) [data-desk-theme="blue"] {
2
2
  /* freezelayer */
3
3
  --zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
4
4
 
@@ -1,4 +1,4 @@
1
- [data-mode='default'] {
1
+ [data-mode='default'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
2
2
  /* action button */
3
3
  --zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
4
4
  --zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
@@ -230,8 +230,10 @@
230
230
 
231
231
  /* list layout */
232
232
  --zdt_listLayout_border: var(--zdt_cta_grey_15_border);
233
- --zdt_listLayout_hover_border: var(--dot_listItemHover);
234
- --zdt_listLayout_active_border: var(--dot_listItemActive);
233
+ --zdt_listLayout_hover_bg: var(--dot_listItemHover);
234
+ --zdt_listLayout_active_bg: var(--dot_listItemActive);
235
+ --zdt_listLayout_active_border: var(--zdt_cta_primary_border);
236
+ --zdt_listLayout_keyboard_active_border:var(--dot_border_slateGrey);
235
237
 
236
238
  /* list stencils */
237
239
  --zdt_liststencils_innercontainer_border: var(--zdt_cta_grey_15_border);
@@ -455,6 +457,7 @@
455
457
  --zdt_commonalert_close_hover_bg: var(--dot_bg_paleRed);
456
458
  --zdt_commonalert_success_hover_bg: #e9f7ef;
457
459
  --zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
460
+ --zdt_commonalert_plaininfo_hover_bg: var(--dot_bg_lavender);
458
461
  --zdt_commonalert_danger_hover_bg: var(--dot_bg_paleRed);
459
462
  --zdt_commonalert_error_hover_bg: var(--dot_bg_paleRed);
460
463
  --zdt_commonalert_warning_hover_bg: #fff1e6;
@@ -1,4 +1,4 @@
1
- [data-mode='default'][data-theme='blue'] {
1
+ [data-mode='default'][data-theme='blue'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
2
2
  /* freezelayer */
3
3
  --zdt_freezelayer_darklight_bg: rgba(44, 51, 77, 0.94);
4
4
 
@@ -9,8 +9,6 @@ export { default as HelpTitle__default } from '../setup/helptips/Title/docs/Titl
9
9
  export { default as HelpListGroup } from '../setup/helptips/ListGroup/ListGroup';
10
10
  export { default as HelpListGroup__default } from '../setup/helptips/ListGroup/docs/ListGroup__default.docs';
11
11
 
12
- // export { default as SelectDropdown } from '../setup/header/SelectDropdown/SelectDropdown';
13
- // export { default as SelectDropdown__default } from '../setup/header/SelectDropdown/docs/SelectDropdown__default.docs';
14
12
  export { default as SetupHeaderViews } from '../setup/header/Views/Views';
15
13
  export { default as SetupHeaderViews__default } from '../setup/header/Views/docs/Views__default.docs';
16
14
  export { default as SetupHeaderSearch } from '../setup/header/Search/Search';
@@ -6,11 +6,11 @@
6
6
  composes: varClass;
7
7
  }
8
8
  .listHover:hover, .hoveredStyle{
9
- background-color: var(--zdt_listLayout_hover_border);
9
+ background-color: var(--zdt_listLayout_hover_bg);
10
10
  }
11
11
  .active,
12
12
  .active:hover {
13
- background-color: var(--zdt_listLayout_active_border);
13
+ background-color: var(--zdt_listLayout_active_bg);
14
14
  }
15
15
  .cursorPointer{
16
16
  cursor: pointer
@@ -36,19 +36,15 @@
36
36
  .compact,
37
37
  .classic,
38
38
  .superCompact {
39
- margin-left: var(--zd_size2);
39
+ border-left: var(--zd_size2) solid transparent;
40
40
  }
41
- .keyboardActive {
42
- position: relative;
43
- }
44
- .keyboardActive::after {
45
- content: '';
46
- position: absolute;
47
- z-index: 2;
48
- height: 100%;
49
- border-left: var(--zd_size2) solid var(--dot_border_slateGrey);
50
- left: 0;
51
- top:0;
41
+ .keyboardActive, .active{
52
42
  border-top-left-radius: var(--zd_size5);
53
43
  border-bottom-left-radius: var(--zd_size5);
44
+ }
45
+ .keyboardActive{
46
+ border-left-color: var(--zdt_listLayout_keyboard_active_border);
47
+ }
48
+ .active{
49
+ border-left-color: var(--zdt_listLayout_active_border);
54
50
  }
@@ -36,7 +36,7 @@ export default class GlobalNotification extends React.Component {
36
36
  }
37
37
 
38
38
  render() {
39
- let { type, message, hideMessage, onClick,i18nKeys={} } = this.props;
39
+ let { type, message, hideMessage, onClick, i18nKeys={}, customProps } = this.props;
40
40
  let { closeTitle = 'Close' } = i18nKeys;
41
41
  return (
42
42
  <GlobalNotificationUI
@@ -45,6 +45,7 @@ export default class GlobalNotification extends React.Component {
45
45
  hideMessage={hideMessage}
46
46
  onClick={onClick}
47
47
  closeTitle={closeTitle}
48
+ customProps={customProps}
48
49
  />
49
50
  );
50
51
  }
@@ -56,8 +57,14 @@ GlobalNotification.propTypes = {
56
57
  onClick: PropTypes.func,
57
58
  showMessage: PropTypes.bool,
58
59
  type: PropTypes.oneOf(['success', 'danger', 'info', 'warning', 'error']),
59
- i18nKeys: PropTypes.object
60
+ i18nKeys: PropTypes.object,
61
+ customProps:PropTypes.shape({
62
+ ExtraProps: PropTypes.object
63
+ })
60
64
  };
65
+ GlobalNotification.defaultProps = {
66
+ customProps: {}
67
+ }
61
68
  if (__DOCS__) {
62
69
  GlobalNotification.docs = {
63
70
  componentGroup: 'GlobalNotification',
@@ -71,9 +78,10 @@ export function GlobalNotificationUI(props) {
71
78
  hideMessage && hideMessage(e);
72
79
  onClose && onClose(e);
73
80
  }
74
- let { type = '', message, onClick, closeTitle='' } = props;
81
+ let { type = '', message, onClick, closeTitle='', customProps={} } = props;
82
+ let { ExtraProps={} } = customProps;
75
83
  return (
76
- <div className={`${style.message} ${type ? style[type] : ''}`} data-id={`show_${type}_message`}>
84
+ <div className={`${style.message} ${type ? style[type] : ''}`} data-id={`show_${type}_message`} {...ExtraProps} >
77
85
  <Container
78
86
  className={`${style.container}`}
79
87
  alignBox='row'
@@ -58,11 +58,13 @@ export function DesktopNotificationUI(props) {
58
58
  onClose,
59
59
  needClose,
60
60
  customClass = {},
61
- i18nKeys = {}
61
+ i18nKeys = {},
62
+ customProps
62
63
  } = props;
63
64
  let { closeTitle = 'Close' } = i18nKeys;
64
65
  let { containerClass } = customClass;
65
66
  let { buttonPalette = 'dangerFilled' } = buttonPaletteObject[type] || {};
67
+ let { ExtraProps={} } = customProps;
66
68
 
67
69
  function onClickSubmit(e) {
68
70
  onSubmit && onSubmit();
@@ -94,6 +96,7 @@ export function DesktopNotificationUI(props) {
94
96
  isCover={false}
95
97
  dataId={dataId}
96
98
  isInline={uiVariantTwo}
99
+ {...ExtraProps}
97
100
  >
98
101
  <Box>
99
102
  <DesktopNotificationHeader
@@ -227,7 +230,10 @@ DesktopNotification.propTypes = {
227
230
  'info',
228
231
  'notification',
229
232
  'alarm'
230
- ])
233
+ ]),
234
+ customProps:PropTypes.shape({
235
+ ExtraProps: PropTypes.object
236
+ })
231
237
  };
232
238
  DesktopNotification.defaultProps = {
233
239
  isMore: false,
@@ -240,7 +246,8 @@ DesktopNotification.defaultProps = {
240
246
  needIcon: true,
241
247
  titleVariant: 'primary',
242
248
  isShrinkView: false,
243
- needClose: true
249
+ needClose: true,
250
+ customProps: {}
244
251
  };
245
252
 
246
253
  if (__DOCS__) {