@zohodesk/dot 1.3.0 → 1.3.2

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 (164) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +21 -12
  5. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +163 -553
  6. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +3 -12
  7. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +3 -12
  8. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +3 -12
  9. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +3 -12
  10. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +3 -12
  11. package/assets/Appearance/light/mode/Dot_LightMode.module.css +163 -553
  12. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +3 -12
  13. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +3 -12
  14. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +3 -12
  15. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +3 -12
  16. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +3 -12
  17. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +163 -553
  18. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +3 -12
  19. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +3 -12
  20. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +3 -12
  21. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +3 -12
  22. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +3 -12
  23. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  24. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  25. package/coverage/ExternalLink/index.html +1 -1
  26. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  27. package/coverage/ExternalLink/props/index.html +1 -1
  28. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  29. package/coverage/IconButton/IconButton.js.html +466 -0
  30. package/coverage/IconButton/IconButton.module.css.html +151 -0
  31. package/coverage/IconButton/index.html +131 -0
  32. package/coverage/IconButton/props/defaultProps.js.html +136 -0
  33. package/coverage/IconButton/props/index.html +131 -0
  34. package/coverage/IconButton/props/propTypes.js.html +187 -0
  35. package/coverage/Image/Image.js.html +1 -1
  36. package/coverage/Image/Image.module.css.html +1 -1
  37. package/coverage/Image/index.html +1 -1
  38. package/coverage/Image/props/defaultProps.js.html +1 -1
  39. package/coverage/Image/props/index.html +1 -1
  40. package/coverage/Image/props/propTypes.js.html +1 -1
  41. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  42. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  43. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  44. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  45. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  46. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  47. package/coverage/coverage-final.json +4 -0
  48. package/coverage/coverage-summary.json +5 -1
  49. package/coverage/index.html +40 -10
  50. package/es/IconButton/__tests__/IconButton.spec.js +148 -0
  51. package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  52. package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
  53. package/es/v1/ActionButton/ActionButton.js +2 -2
  54. package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
  55. package/es/v1/Attachment/Attachment.js +78 -75
  56. package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
  57. package/es/v1/Image/Image.js +26 -33
  58. package/es/v1/Loader/Loader.js +12 -18
  59. package/es/v1/Message/Message.js +16 -42
  60. package/es/v1/PlusIcon/PlusIcon.js +25 -37
  61. package/es/v1/Separator/Separator.js +40 -47
  62. package/es/v1/Upload/Upload.js +59 -66
  63. package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
  64. package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
  65. package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
  66. package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
  67. package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
  68. package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
  69. package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
  70. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
  71. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
  72. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
  73. package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
  74. package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
  75. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
  76. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  77. package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  78. package/es/v1/form/fields/DateField/DateField.js +6 -6
  79. package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  80. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  81. package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
  82. package/es/v1/form/fields/RadioField/RadioField.js +89 -97
  83. package/es/v1/form/fields/SelectField/SelectField.js +139 -154
  84. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
  85. package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
  86. package/es/v1/list/SecondaryText/AccountName.js +61 -69
  87. package/es/v1/list/SecondaryText/ContactName.js +66 -74
  88. package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
  89. package/es/v1/list/SecondaryText/Email.js +32 -40
  90. package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
  91. package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
  92. package/es/v1/list/SecondaryText/PriorityText.js +16 -28
  93. package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
  94. package/es/v1/list/SecondaryText/StatusText.js +17 -29
  95. package/es/v1/list/SecondaryText/TicketId.js +33 -45
  96. package/es/v1/list/SecondaryText/Website.js +22 -30
  97. package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
  98. package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
  99. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  100. package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
  101. package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
  102. package/es/v1/lookup/Section/Section.js +14 -20
  103. package/es/v1/svg/PlusIcon.js +20 -27
  104. package/es/v1/svg/SnippetIcon.js +22 -29
  105. package/es/v1/svg/TemplateIcon.js +23 -30
  106. package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
  107. package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  108. package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
  109. package/lib/v1/ActionButton/ActionButton.js +2 -2
  110. package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
  111. package/lib/v1/Attachment/Attachment.js +77 -112
  112. package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
  113. package/lib/v1/Image/Image.js +26 -71
  114. package/lib/v1/Loader/Loader.js +12 -55
  115. package/lib/v1/Message/Message.js +23 -80
  116. package/lib/v1/PlusIcon/PlusIcon.js +25 -71
  117. package/lib/v1/Separator/Separator.js +44 -85
  118. package/lib/v1/Upload/Upload.js +58 -103
  119. package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
  120. package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
  121. package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
  122. package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
  123. package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
  124. package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
  125. package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
  126. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
  127. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
  128. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
  129. package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
  130. package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
  131. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
  132. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  133. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  134. package/lib/v1/form/fields/DateField/DateField.js +6 -6
  135. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  136. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  137. package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
  138. package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
  139. package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
  140. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
  141. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
  142. package/lib/v1/list/SecondaryText/AccountName.js +63 -113
  143. package/lib/v1/list/SecondaryText/ContactName.js +67 -117
  144. package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
  145. package/lib/v1/list/SecondaryText/Email.js +32 -82
  146. package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
  147. package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
  148. package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
  149. package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
  150. package/lib/v1/list/SecondaryText/StatusText.js +17 -67
  151. package/lib/v1/list/SecondaryText/TicketId.js +33 -83
  152. package/lib/v1/list/SecondaryText/Website.js +29 -72
  153. package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
  154. package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
  155. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  156. package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
  157. package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
  158. package/lib/v1/lookup/Section/Section.js +14 -58
  159. package/lib/v1/svg/PlusIcon.js +20 -65
  160. package/lib/v1/svg/SnippetIcon.js +22 -67
  161. package/lib/v1/svg/TemplateIcon.js +23 -68
  162. package/package.json +12 -12
  163. package/result.json +1 -1
  164. package/unittest/index.html +1 -1
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = Website;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _defaultProps = require("../../../list/SecondaryText/props/defaultProps");
13
11
 
@@ -19,73 +17,32 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
- 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); }
23
-
24
- 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; }
25
-
26
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
-
28
- 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); } }
29
-
30
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
-
32
- 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); }
33
-
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
-
36
- 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); }; }
37
-
38
- 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); }
20
+ /* eslint-disable react/forbid-component-props */
21
+
22
+ /**** Libraries ****/
23
+
24
+ /**** Components ****/
25
+
26
+ /**** CSS ****/
27
+ function Website(props) {
28
+ var text = props.text,
29
+ className = props.className,
30
+ title = props.title,
31
+ href = props.href,
32
+ dataId = props.dataId,
33
+ isLink = props.isLink,
34
+ target = props.target;
35
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_ExternalLink["default"], {
36
+ className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(className ? className : ''),
37
+ href: href,
38
+ title: title,
39
+ dataId: dataId,
40
+ target: target
41
+ }, text) : /*#__PURE__*/_react["default"].createElement("div", {
42
+ className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
43
+ "data-title": text
44
+ }, text));
45
+ }
39
46
 
40
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
-
42
- 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; } }
43
-
44
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
-
46
- var Website = /*#__PURE__*/function (_Component) {
47
- _inherits(Website, _Component);
48
-
49
- var _super = _createSuper(Website);
50
-
51
- function Website() {
52
- _classCallCheck(this, Website);
53
-
54
- return _super.apply(this, arguments);
55
- }
56
-
57
- _createClass(Website, [{
58
- key: "render",
59
- value: function render() {
60
- var _this$props = this.props,
61
- text = _this$props.text,
62
- className = _this$props.className,
63
- title = _this$props.title,
64
- href = _this$props.href,
65
- dataId = _this$props.dataId,
66
- isLink = _this$props.isLink,
67
- target = _this$props.target;
68
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_ExternalLink["default"], {
69
- className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(className ? className : ''),
70
- href: href,
71
- title: title,
72
- dataId: dataId,
73
- target: target
74
- }, text) : /*#__PURE__*/_react["default"].createElement("div", {
75
- className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
76
- "data-title": text
77
- }, text));
78
- }
79
- }]);
80
-
81
- return Website;
82
- }(_react.Component);
83
-
84
- exports["default"] = Website;
85
47
  Website.propTypes = _propTypes.Website_propTypes;
86
- Website.defaultProps = _defaultProps.Website_defaultProps; // if (__DOCS__) {
87
- // Website.docs = {
88
- // folderName: 'List',
89
- // componentGroup: 'WebsiteText'
90
- // };
91
- // }
48
+ Website.defaultProps = _defaultProps.Website_defaultProps;
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = exports.SecondryPanelUL = exports.SecondryPanelLI = exports.SecondryPanelItem = void 0;
6
+ exports.SecondryPanelItem = SecondryPanelItem;
7
+ exports.SecondryPanelLI = SecondryPanelLI;
8
+ exports.SecondryPanelUL = SecondryPanelUL;
9
+ exports["default"] = SecondryPanel;
9
10
 
10
- var _react = _interopRequireWildcard(require("react"));
11
+ var _react = _interopRequireDefault(require("react"));
11
12
 
12
13
  var _defaultProps = require("../../../list/SecondryPanel/props/defaultProps");
13
14
 
@@ -21,183 +22,83 @@ var _SecondryPanelModule = _interopRequireDefault(require("../../../list/Secondr
21
22
 
22
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
24
 
24
- 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); }
25
-
26
- 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; }
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); }; }
25
+ /**** Libraries ****/
39
26
 
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); }
27
+ /**** Components ****/
41
28
 
42
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
+ /**** CSS ****/
30
+ function SecondryPanel(props) {
31
+ var children = props.children,
32
+ className = props.className;
33
+ return /*#__PURE__*/_react["default"].createElement("div", {
34
+ className: className
35
+ }, children);
36
+ }
43
37
 
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; } }
45
-
46
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
-
48
- var SecondryPanel = /*#__PURE__*/function (_Component) {
49
- _inherits(SecondryPanel, _Component);
50
-
51
- var _super = _createSuper(SecondryPanel);
52
-
53
- function SecondryPanel() {
54
- _classCallCheck(this, SecondryPanel);
55
-
56
- return _super.apply(this, arguments);
57
- }
58
-
59
- _createClass(SecondryPanel, [{
60
- key: "render",
61
- value: function render() {
62
- var _this$props = this.props,
63
- children = _this$props.children,
64
- className = _this$props.className;
65
- return /*#__PURE__*/_react["default"].createElement("div", {
66
- className: className
67
- }, children);
68
- }
69
- }]);
70
-
71
- return SecondryPanel;
72
- }(_react.Component);
73
-
74
- exports["default"] = SecondryPanel;
75
38
  SecondryPanel.propTypes = _propTypes.SecondryPanel_propTypes;
76
39
  SecondryPanel.defaultProps = _defaultProps.SecondryPanel_defaultProps;
77
40
 
78
- var SecondryPanelUL = /*#__PURE__*/function (_Component2) {
79
- _inherits(SecondryPanelUL, _Component2);
80
-
81
- var _super2 = _createSuper(SecondryPanelUL);
82
-
83
- function SecondryPanelUL() {
84
- _classCallCheck(this, SecondryPanelUL);
85
-
86
- return _super2.apply(this, arguments);
87
- }
88
-
89
- _createClass(SecondryPanelUL, [{
90
- key: "render",
91
- value: function render() {
92
- var _this$props2 = this.props,
93
- children = _this$props2.children,
94
- className = _this$props2.className,
95
- dataId = _this$props2.dataId,
96
- align = _this$props2.align;
97
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
98
- isInline: true,
99
- isCover: false,
100
- alignBox: "row",
101
- align: align,
102
- className: "".concat(_SecondryPanelModule["default"].listItemContainer, " ").concat(className),
103
- dataId: dataId
104
- }, children);
105
- }
106
- }]);
107
-
108
- return SecondryPanelUL;
109
- }(_react.Component);
41
+ function SecondryPanelUL(props) {
42
+ var children = props.children,
43
+ className = props.className,
44
+ dataId = props.dataId,
45
+ align = props.align;
46
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
47
+ isInline: true,
48
+ isCover: false,
49
+ alignBox: "row",
50
+ align: align,
51
+ className: "".concat(_SecondryPanelModule["default"].listItemContainer, " ").concat(className),
52
+ dataId: dataId
53
+ }, children);
54
+ }
110
55
 
111
- exports.SecondryPanelUL = SecondryPanelUL;
112
56
  SecondryPanelUL.propTypes = _propTypes.SecondryPanelUL_propTypes;
113
57
  SecondryPanelUL.defaultProps = _defaultProps.SecondryPanelUL_defaultProps;
114
58
 
115
- var SecondryPanelLI = /*#__PURE__*/function (_Component3) {
116
- _inherits(SecondryPanelLI, _Component3);
117
-
118
- var _super3 = _createSuper(SecondryPanelLI);
119
-
120
- function SecondryPanelLI() {
121
- _classCallCheck(this, SecondryPanelLI);
122
-
123
- return _super3.apply(this, arguments);
124
- }
125
-
126
- _createClass(SecondryPanelLI, [{
127
- key: "render",
128
- value: function render() {
129
- var _this$props3 = this.props,
130
- children = _this$props3.children,
131
- className = _this$props3.className,
132
- isShrink = _this$props3.isShrink,
133
- dataId = _this$props3.dataId;
134
- return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
135
- flexible: true,
136
- dataId: dataId // eslint-disable-next-line react/forbid-component-props
137
- ,
138
- className: className,
139
- adjust: true,
140
- shrink: isShrink ? true : false
141
- }, children);
142
- }
143
- }]);
144
-
145
- return SecondryPanelLI;
146
- }(_react.Component);
59
+ function SecondryPanelLI(props) {
60
+ var children = props.children,
61
+ className = props.className,
62
+ isShrink = props.isShrink,
63
+ dataId = props.dataId;
64
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
65
+ flexible: true,
66
+ dataId: dataId // eslint-disable-next-line react/forbid-component-props
67
+ ,
68
+ className: className,
69
+ adjust: true,
70
+ shrink: isShrink ? true : false
71
+ }, children);
72
+ }
147
73
 
148
- exports.SecondryPanelLI = SecondryPanelLI;
149
74
  SecondryPanelLI.propTypes = _propTypes.SecondryPanelLI_propTypes;
150
75
  SecondryPanelLI.defaultProps = _defaultProps.SecondryPanelLI_defaultProps;
151
76
 
152
- var SecondryPanelItem = /*#__PURE__*/function (_Component4) {
153
- _inherits(SecondryPanelItem, _Component4);
154
-
155
- var _super4 = _createSuper(SecondryPanelItem);
156
-
157
- function SecondryPanelItem() {
158
- _classCallCheck(this, SecondryPanelItem);
159
-
160
- return _super4.apply(this, arguments);
161
- }
162
-
163
- _createClass(SecondryPanelItem, [{
164
- key: "render",
165
- value: function render() {
166
- var _this$props4 = this.props,
167
- children = _this$props4.children,
168
- className = _this$props4.className,
169
- dotClass = _this$props4.dotClass,
170
- isDot = _this$props4.isDot,
171
- flex = _this$props4.flex,
172
- clipped = _this$props4.clipped,
173
- dotSpacingType = _this$props4.dotSpacingType,
174
- title = _this$props4.title;
175
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
176
- align: "baseline",
177
- isInline: flex ? false : true,
178
- className: className,
179
- "data-title": title,
180
- alignBox: "row"
181
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
182
- flexible: true,
183
- shrink: clipped,
184
- className: "".concat(clipped ? _SecondryPanelModule["default"].dottedStyle : '')
185
- }, children), isDot ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Dot["default"] // eslint-disable-next-line react/forbid-component-props
186
- , {
187
- className: "".concat(dotClass ? dotClass : ''),
188
- spacingType: dotSpacingType
189
- })) : null);
190
- }
191
- }]);
192
-
193
- return SecondryPanelItem;
194
- }(_react.Component);
77
+ function SecondryPanelItem(props) {
78
+ var children = props.children,
79
+ className = props.className,
80
+ dotClass = props.dotClass,
81
+ isDot = props.isDot,
82
+ flex = props.flex,
83
+ clipped = props.clipped,
84
+ dotSpacingType = props.dotSpacingType,
85
+ title = props.title;
86
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
87
+ align: "baseline",
88
+ isInline: flex ? false : true,
89
+ className: className,
90
+ "data-title": title,
91
+ alignBox: "row"
92
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
93
+ flexible: true,
94
+ shrink: clipped,
95
+ className: "".concat(clipped ? _SecondryPanelModule["default"].dottedStyle : '')
96
+ }, children), isDot ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Dot["default"] // eslint-disable-next-line react/forbid-component-props
97
+ , {
98
+ className: "".concat(dotClass ? dotClass : ''),
99
+ spacingType: dotSpacingType
100
+ })) : null);
101
+ }
195
102
 
196
- exports.SecondryPanelItem = SecondryPanelItem;
197
103
  SecondryPanelItem.propTypes = _propTypes.SecondryPanelItem_propTypes;
198
- SecondryPanelItem.defaultProps = _defaultProps.SecondryPanelItem_defaultProps; // if (__DOCS__) {
199
- // SecondryPanel.docs = {
200
- // folderName: 'List',
201
- // componentGroup: 'SecondaryLayout'
202
- // };
203
- // }
104
+ SecondryPanelItem.defaultProps = _defaultProps.SecondryPanelItem_defaultProps;
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = SentimentStatus;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -17,64 +15,21 @@ var _icons = require("@zohodesk/icons");
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- 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); } }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
-
26
- 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); }
27
-
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
-
30
- 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); }; }
31
-
32
- 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); }
33
-
34
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
-
36
- 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; } }
37
-
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
-
40
- var SentimentStatus = /*#__PURE__*/function (_React$Component) {
41
- _inherits(SentimentStatus, _React$Component);
42
-
43
- var _super = _createSuper(SentimentStatus);
44
-
45
- function SentimentStatus(props) {
46
- _classCallCheck(this, SentimentStatus);
47
-
48
- return _super.call(this, props);
49
- }
50
-
51
- _createClass(SentimentStatus, [{
52
- key: "render",
53
- value: function render() {
54
- var _this$props = this.props,
55
- type = _this$props.type,
56
- dataTitle = _this$props.dataTitle;
57
- var icons = {
58
- neutral: 'ZD-botNeutral',
59
- negative: 'ZD-botNegative',
60
- positive: 'ZD-botPositive'
61
- };
62
- return /*#__PURE__*/_react["default"].createElement("div", {
63
- className: _SentimentStatusModule["default"].container,
64
- "data-title": dataTitle
65
- }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
66
- name: icons[type],
67
- iconClass: _SentimentStatusModule["default"].sentimentIcon
68
- }));
69
- }
70
- }]);
71
-
72
- return SentimentStatus;
73
- }(_react["default"].Component);
74
-
75
- exports["default"] = SentimentStatus;
76
- SentimentStatus.propTypes = _propTypes.propTypes; // if (__DOCS__) {
77
- // SentimentStatus.docs = {
78
- // componentGroup: ''
79
- // };
80
- // }
18
+ function SentimentStatus(props) {
19
+ var type = props.type,
20
+ dataTitle = props.dataTitle;
21
+ var icons = {
22
+ neutral: 'ZD-botNeutral',
23
+ negative: 'ZD-botNegative',
24
+ positive: 'ZD-botPositive'
25
+ };
26
+ return /*#__PURE__*/_react["default"].createElement("div", {
27
+ className: _SentimentStatusModule["default"].container,
28
+ "data-title": dataTitle
29
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
30
+ name: icons[type],
31
+ iconClass: _SentimentStatusModule["default"].sentimentIcon
32
+ }));
33
+ }
34
+
35
+ SentimentStatus.propTypes = _propTypes.propTypes;
@@ -430,7 +430,7 @@ function StatusDropdown(props) {
430
430
  StatusDropdown.defaultProps = _defaultProps.defaultProps;
431
431
  StatusDropdown.propTypes = _propTypes.propTypes;
432
432
  var StatusDropdown_Component = (0, _Popup["default"])(StatusDropdown);
433
- StatusDropdown_Component.defaultProps = StatusDropdown.defaultProps;
434
- StatusDropdown_Component.propTypes = StatusDropdown.propTypes;
433
+ StatusDropdown_Component.defaultProps = _defaultProps.defaultProps;
434
+ StatusDropdown_Component.propTypes = _propTypes.propTypes;
435
435
  var _default = StatusDropdown_Component;
436
436
  exports["default"] = _default;