@zohodesk/dot 1.0.0-temp-187.15 → 1.0.0-temp-200.5

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 (48) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/es/Attachment/Attachment.module.css +7 -3
  3. package/es/AttachmentViewer/Attachment.js +208 -3
  4. package/es/AttachmentViewer/AttachmentViewer.js +81 -24
  5. package/es/AttachmentViewer/AttachmentViewer.module.css +55 -9
  6. package/es/AttachmentViewer/props/propTypes.js +3 -1
  7. package/es/AttachmentViewer/utils.js +36 -2
  8. package/es/Onboarding/Onboarding.js +1 -1
  9. package/es/VideoLookup/VideoLookup.js +1 -1
  10. package/es/form/fields/Fields.module.css +0 -4
  11. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -8
  12. package/es/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  13. package/es/list/DepartmentDropDown/DepartmentDropDown.js +2 -7
  14. package/es/list/DepartmentDropDown/props/defaultProps.js +1 -2
  15. package/es/list/DepartmentDropDown/props/propTypes.js +0 -3
  16. package/es/list/status/StatusDropdown/StatusDropdown.js +2 -7
  17. package/es/list/status/StatusDropdown/props/defaultProps.js +1 -2
  18. package/es/list/status/StatusDropdown/props/propTypes.js +1 -4
  19. package/es/list/status/StatusListItem/StatusListItem.module.css +6 -5
  20. package/es/utils/General.js +23 -1
  21. package/lib/Attachment/Attachment.module.css +7 -3
  22. package/lib/AttachmentViewer/Attachment.js +226 -3
  23. package/lib/AttachmentViewer/AttachmentViewer.js +82 -21
  24. package/lib/AttachmentViewer/AttachmentViewer.module.css +55 -9
  25. package/lib/AttachmentViewer/props/propTypes.js +3 -1
  26. package/lib/AttachmentViewer/utils.js +47 -1
  27. package/lib/Onboarding/Onboarding.js +2 -2
  28. package/lib/VideoLookup/VideoLookup.js +2 -2
  29. package/lib/form/fields/Fields.module.css +0 -4
  30. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -10
  31. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  32. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
  33. package/lib/list/DepartmentDropDown/props/defaultProps.js +1 -2
  34. package/lib/list/DepartmentDropDown/props/propTypes.js +0 -2
  35. package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -6
  36. package/lib/list/status/StatusDropdown/props/defaultProps.js +1 -2
  37. package/lib/list/status/StatusDropdown/props/propTypes.js +1 -3
  38. package/lib/list/status/StatusListItem/StatusListItem.module.css +6 -5
  39. package/lib/utils/General.js +25 -1
  40. package/package.json +2 -2
  41. package/result.json +1 -1
  42. package/unittest/index.html +2 -14
  43. package/es/common/dot_common.module.css +0 -4
  44. package/lib/common/dot_common.module.css +0 -4
  45. /package/es/Onboarding/css/{CardOnboarding.module.css → Onboarding.module.css} +0 -0
  46. /package/es/VideoLookup/css/{VideoLookupStyles.module.css → VideoLookup.module.css} +0 -0
  47. /package/lib/Onboarding/css/{CardOnboarding.module.css → Onboarding.module.css} +0 -0
  48. /package/lib/VideoLookup/css/{VideoLookupStyles.module.css → VideoLookup.module.css} +0 -0
@@ -36,8 +36,9 @@
36
36
  .value {
37
37
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
38
38
  }
39
- .multiLineValue {
40
- composes: lineClamp from '~@zohodesk/components/lib/common/common.module.css';
39
+ .multiLineValue{
40
+ word-break: break-word;
41
+ composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
41
42
  }
42
43
  [dir=ltr] .withBorder.active {
43
44
  border-left-color: var(--zdt_statuslistitem_default_active_border);
@@ -45,6 +46,7 @@
45
46
  [dir=rtl] .withBorder.active {
46
47
  border-right-color: var(--zdt_statuslistitem_default_active_border);
47
48
  }
49
+
48
50
  .default.hover, .default.effect:hover {
49
51
  background-color: var(--zdt_statuslistitem_default_effect_bg);
50
52
  }
@@ -88,9 +90,8 @@
88
90
  }
89
91
  /* Status Type */
90
92
  .statusType {
91
- height: 1em ;
92
- width: 1em ;
93
- font-size: var(--zd_font_size8) ;
93
+ width: var(--zd_size8) ;
94
+ height: var(--zd_size8) ;
94
95
  border-radius: 50%;
95
96
  }
96
97
  [dir=ltr] .statusType {
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.DUMMY_OBJECT = void 0;
7
7
  exports.formatPhoneUrl = formatPhoneUrl;
8
+ exports.getBrowserWithVersion = getBrowserWithVersion;
8
9
  exports.getFullName = getFullName;
9
10
  exports.shallowDiff = shallowDiff;
10
11
  exports.stopBubbling = stopBubbling;
@@ -59,4 +60,27 @@ function formatPhoneUrl(phone) {
59
60
  }
60
61
 
61
62
  var DUMMY_OBJECT = Object.freeze({});
62
- exports.DUMMY_OBJECT = DUMMY_OBJECT;
63
+ exports.DUMMY_OBJECT = DUMMY_OBJECT;
64
+
65
+ function getBrowserWithVersion() {
66
+ var userAgent = navigator.userAgent;
67
+ var tempMatch;
68
+ var browserMatch = userAgent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*([\d\.]+)/i) || [];
69
+
70
+ if (userAgent.toLowerCase().indexOf('edge') !== -1) {
71
+ return userAgent.substring(userAgent.toLowerCase().indexOf('edge'));
72
+ }
73
+
74
+ if (/trident/i.test(browserMatch[1])) {
75
+ tempMatch = /\brv[ :]+(\d+(\.\d+)?)/g.exec(userAgent) || [];
76
+ return "IE ".concat(tempMatch[1] || '');
77
+ }
78
+
79
+ browserMatch = browserMatch[2] ? [browserMatch[1], browserMatch[2]] : [navigator.appName, navigator.appVersion, '-?'];
80
+
81
+ if ((tempMatch = userAgent.match(/version\/([\.\d]+)/i)) !== null) {
82
+ browserMatch[2] = tempMatch[1];
83
+ }
84
+
85
+ return browserMatch.join(' ');
86
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-temp-187.15",
3
+ "version": "1.0.0-temp-200.5",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -63,7 +63,7 @@
63
63
  "@zohodesk-private/node-plugins": "1.1.8",
64
64
  "@zohodesk-private/react-prop-validator": "1.2.3",
65
65
  "@zohodesk/a11y": "2.3.4",
66
- "@zohodesk/components": "../components",
66
+ "@zohodesk/components": "1.2.63",
67
67
  "@zohodesk/hooks": "2.0.5",
68
68
  "@zohodesk/icons": "1.0.74",
69
69
  "@zohodesk/layout": "^3.1.0",