@zohodesk/dot 1.3.0-temp-158 → 1.3.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 (92) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +3 -1
  4. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  5. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  6. package/coverage/ExternalLink/index.html +1 -1
  7. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  8. package/coverage/ExternalLink/props/index.html +1 -1
  9. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  10. package/coverage/IconButton/IconButton.js.html +1 -1
  11. package/coverage/IconButton/IconButton.module.css.html +1 -1
  12. package/coverage/IconButton/index.html +1 -1
  13. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  14. package/coverage/IconButton/props/index.html +1 -1
  15. package/coverage/IconButton/props/propTypes.js.html +1 -1
  16. package/coverage/Image/Image.js.html +1 -1
  17. package/coverage/Image/Image.module.css.html +1 -1
  18. package/coverage/Image/index.html +1 -1
  19. package/coverage/Image/props/defaultProps.js.html +1 -1
  20. package/coverage/Image/props/index.html +1 -1
  21. package/coverage/Image/props/propTypes.js.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  28. package/coverage/coverage-final.json +16 -16
  29. package/coverage/coverage-summary.json +16 -16
  30. package/coverage/index.html +1 -1
  31. package/es/v1/ActionButton/ActionButton.js +2 -2
  32. package/es/v1/Message/Message.js +16 -42
  33. package/es/v1/PlusIcon/PlusIcon.js +25 -37
  34. package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
  35. package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
  36. package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
  37. package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
  38. package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
  39. package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
  40. package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
  41. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
  42. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
  43. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
  44. package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
  45. package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
  46. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
  47. package/es/v1/list/SecondaryText/AccountName.js +61 -69
  48. package/es/v1/list/SecondaryText/ContactName.js +66 -74
  49. package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
  50. package/es/v1/list/SecondaryText/Email.js +32 -40
  51. package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
  52. package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
  53. package/es/v1/list/SecondaryText/PriorityText.js +16 -28
  54. package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
  55. package/es/v1/list/SecondaryText/StatusText.js +17 -29
  56. package/es/v1/list/SecondaryText/TicketId.js +33 -45
  57. package/es/v1/list/SecondaryText/Website.js +22 -30
  58. package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
  59. package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
  60. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  61. package/lib/v1/ActionButton/ActionButton.js +2 -2
  62. package/lib/v1/Message/Message.js +23 -80
  63. package/lib/v1/PlusIcon/PlusIcon.js +25 -71
  64. package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
  65. package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
  66. package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
  67. package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
  68. package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
  69. package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
  70. package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
  71. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
  72. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
  73. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
  74. package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
  75. package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
  76. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
  77. package/lib/v1/list/SecondaryText/AccountName.js +63 -113
  78. package/lib/v1/list/SecondaryText/ContactName.js +67 -117
  79. package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
  80. package/lib/v1/list/SecondaryText/Email.js +32 -82
  81. package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
  82. package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
  83. package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
  84. package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
  85. package/lib/v1/list/SecondaryText/StatusText.js +17 -67
  86. package/lib/v1/list/SecondaryText/TicketId.js +33 -83
  87. package/lib/v1/list/SecondaryText/Website.js +29 -72
  88. package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
  89. package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
  90. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  91. package/package.json +2 -2
  92. package/result.json +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"] = HappinessRating;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _propTypes = require("../../../list/SecondaryText/props/propTypes");
13
11
 
@@ -15,67 +13,22 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
15
 
18
- 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); }
19
-
20
- 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; }
21
-
22
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
- 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); } }
25
-
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
-
28
- 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); }
29
-
30
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
-
32
- 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); }; }
33
-
34
- 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); }
35
-
36
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
-
38
- 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; } }
39
-
40
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
-
42
- var HappinessRating = /*#__PURE__*/function (_Component) {
43
- _inherits(HappinessRating, _Component);
44
-
45
- var _super = _createSuper(HappinessRating);
46
-
47
- function HappinessRating() {
48
- _classCallCheck(this, HappinessRating);
49
-
50
- return _super.apply(this, arguments);
51
- }
52
-
53
- _createClass(HappinessRating, [{
54
- key: "render",
55
- value: function render() {
56
- var _this$props = this.props,
57
- text = _this$props.text,
58
- className = _this$props.className,
59
- src = _this$props.src;
60
- return /*#__PURE__*/_react["default"].createElement("div", {
61
- className: "".concat(_SecondaryTextModule["default"].happinessContainer, " ").concat(className ? className : '')
62
- }, /*#__PURE__*/_react["default"].createElement("img", {
63
- className: "".concat(_SecondaryTextModule["default"].happinessImg),
64
- src: src
65
- }), /*#__PURE__*/_react["default"].createElement("span", {
66
- className: _SecondaryTextModule["default"].ratingText,
67
- "data-title": text
68
- }, "".concat(text, "%")));
69
- }
70
- }]);
71
-
72
- return HappinessRating;
73
- }(_react.Component);
74
-
75
- exports["default"] = HappinessRating;
76
- HappinessRating.propTypes = _propTypes.HappinessRating_propTypes; // if (__DOCS__) {
77
- // HappinessRating.docs = {
78
- // folderName: 'List',
79
- // componentGroup: 'HappinessRating'
80
- // };
81
- // }
16
+ /**** Libraries ****/
17
+
18
+ /**** CSS ****/
19
+ function HappinessRating(props) {
20
+ var text = props.text,
21
+ className = props.className,
22
+ src = props.src;
23
+ return /*#__PURE__*/_react["default"].createElement("div", {
24
+ className: "".concat(_SecondaryTextModule["default"].happinessContainer, " ").concat(className ? className : '')
25
+ }, /*#__PURE__*/_react["default"].createElement("img", {
26
+ className: "".concat(_SecondaryTextModule["default"].happinessImg),
27
+ src: src
28
+ }), /*#__PURE__*/_react["default"].createElement("span", {
29
+ className: _SecondaryTextModule["default"].ratingText,
30
+ "data-title": text
31
+ }, "".concat(text, "%")));
32
+ }
33
+
34
+ HappinessRating.propTypes = _propTypes.HappinessRating_propTypes;
@@ -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"] = PhoneNumber;
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,89 +17,41 @@ 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
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
21
 
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); }; }
39
-
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); }
22
+ function PhoneNumber(props) {
23
+ var text = props.text,
24
+ urlData = props.urlData,
25
+ urlName = props.urlName,
26
+ className = props.className,
27
+ title = props.title,
28
+ href = props.href,
29
+ dataId = props.dataId,
30
+ isLink = props.isLink,
31
+ target = props.target,
32
+ hasReload = props.hasReload,
33
+ fontWeight = props.fontWeight,
34
+ customProps = props.customProps;
35
+ var _customProps$LinkProp = customProps.LinkProps,
36
+ LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
37
+ _customProps$TextProp = customProps.TextProps,
38
+ TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
39
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
40
+ href: href,
41
+ title: title,
42
+ urlData: urlData,
43
+ urlName: urlName,
44
+ dataId: dataId,
45
+ target: target,
46
+ hasReload: hasReload,
47
+ className: _SecondaryTextModule["default"].link
48
+ }, LinkProps), /*#__PURE__*/_react["default"].createElement("div", {
49
+ className: "".concat(_SecondaryTextModule["default"].phoneNumber, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
50
+ }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
51
+ className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
52
+ "data-title": title
53
+ }, TextProps), text));
54
+ }
41
55
 
42
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
-
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 PhoneNumber = /*#__PURE__*/function (_Component) {
49
- _inherits(PhoneNumber, _Component);
50
-
51
- var _super = _createSuper(PhoneNumber);
52
-
53
- function PhoneNumber() {
54
- _classCallCheck(this, PhoneNumber);
55
-
56
- return _super.apply(this, arguments);
57
- }
58
-
59
- _createClass(PhoneNumber, [{
60
- key: "render",
61
- value: function render() {
62
- var _this$props = this.props,
63
- text = _this$props.text,
64
- urlData = _this$props.urlData,
65
- urlName = _this$props.urlName,
66
- className = _this$props.className,
67
- title = _this$props.title,
68
- href = _this$props.href,
69
- dataId = _this$props.dataId,
70
- isLink = _this$props.isLink,
71
- target = _this$props.target,
72
- hasReload = _this$props.hasReload,
73
- fontWeight = _this$props.fontWeight,
74
- customProps = _this$props.customProps;
75
- var _customProps$LinkProp = customProps.LinkProps,
76
- LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
77
- _customProps$TextProp = customProps.TextProps,
78
- TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
79
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
80
- href: href,
81
- title: title,
82
- urlData: urlData,
83
- urlName: urlName,
84
- dataId: dataId,
85
- target: target,
86
- hasReload: hasReload,
87
- className: _SecondaryTextModule["default"].link
88
- }, LinkProps), /*#__PURE__*/_react["default"].createElement("div", {
89
- className: "".concat(_SecondaryTextModule["default"].phoneNumber, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
90
- }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
91
- className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
92
- "data-title": title
93
- }, TextProps), text));
94
- }
95
- }]);
96
-
97
- return PhoneNumber;
98
- }(_react.Component);
99
-
100
- exports["default"] = PhoneNumber;
101
56
  PhoneNumber.propTypes = _propTypes.PhoneNumber_propTypes;
102
- PhoneNumber.defaultProps = _defaultProps.PhoneNumber_defaultProps; // if (__DOCS__) {
103
- // PhoneNumber.docs = {
104
- // folderName: 'List',
105
- // componentGroup: 'PhoneNumberText'
106
- // };
107
- // }
57
+ PhoneNumber.defaultProps = _defaultProps.PhoneNumber_defaultProps;
@@ -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"] = PriorityText;
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
 
@@ -17,67 +15,19 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- 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); }
21
-
22
- 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; }
23
-
24
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
-
26
- 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); } }
27
-
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
-
30
- 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); }
31
-
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
-
34
- 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); }; }
35
-
36
- 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); }
18
+ function PriorityText(props) {
19
+ var className = props.className,
20
+ color = props.color,
21
+ text = props.text,
22
+ dataTitle = props.dataTitle,
23
+ dataId = props.dataId;
24
+ return /*#__PURE__*/_react["default"].createElement("div", {
25
+ className: "".concat(_SecondaryTextModule["default"].priorityText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(className ? className : ''),
26
+ "data-title": dataTitle,
27
+ "data-id": dataId,
28
+ "data-test-id": dataId
29
+ }, text);
30
+ }
37
31
 
38
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
-
40
- 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; } }
41
-
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
-
44
- var PriorityText = /*#__PURE__*/function (_Component) {
45
- _inherits(PriorityText, _Component);
46
-
47
- var _super = _createSuper(PriorityText);
48
-
49
- function PriorityText(props) {
50
- _classCallCheck(this, PriorityText);
51
-
52
- return _super.call(this, props);
53
- }
54
-
55
- _createClass(PriorityText, [{
56
- key: "render",
57
- value: function render() {
58
- var _this$props = this.props,
59
- className = _this$props.className,
60
- color = _this$props.color,
61
- text = _this$props.text,
62
- dataTitle = _this$props.dataTitle,
63
- dataId = _this$props.dataId;
64
- return /*#__PURE__*/_react["default"].createElement("div", {
65
- className: "".concat(_SecondaryTextModule["default"].priorityText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(className ? className : ''),
66
- "data-title": dataTitle,
67
- "data-id": dataId,
68
- "data-test-id": dataId
69
- }, text);
70
- }
71
- }]);
72
-
73
- return PriorityText;
74
- }(_react.Component);
75
-
76
- exports["default"] = PriorityText;
77
32
  PriorityText.propTypes = _propTypes.PriorityText_propTypes;
78
- PriorityText.defaultProps = _defaultProps.PriorityText_defaultProps; // if (__DOCS__) {
79
- // PriorityText.docs = {
80
- // folderName: 'List',
81
- // componentGroup: 'PriorityText'
82
- // };
83
- // }
33
+ PriorityText.defaultProps = _defaultProps.PriorityText_defaultProps;
@@ -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"] = SecondaryText;
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
 
@@ -17,72 +15,24 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- 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); }
21
-
22
- 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; }
23
-
24
18
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
19
 
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
+ function SecondaryText(props) {
21
+ var className = props.className,
22
+ text = props.text,
23
+ dataTitle = props.dataTitle,
24
+ dataId = props.dataId,
25
+ onClick = props.onClick,
26
+ customProps = props.customProps;
27
+ var SecondaryTextProps = customProps.SecondaryTextProps;
28
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
29
+ className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
30
+ "data-title": dataTitle,
31
+ "data-id": dataId,
32
+ "data-test-id": dataId,
33
+ onClick: onClick
34
+ }, SecondaryTextProps), text);
35
+ }
39
36
 
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 SecondaryText = /*#__PURE__*/function (_Component) {
47
- _inherits(SecondaryText, _Component);
48
-
49
- var _super = _createSuper(SecondaryText);
50
-
51
- function SecondaryText(props) {
52
- _classCallCheck(this, SecondaryText);
53
-
54
- return _super.call(this, props);
55
- }
56
-
57
- _createClass(SecondaryText, [{
58
- key: "render",
59
- value: function render() {
60
- var _this$props = this.props,
61
- className = _this$props.className,
62
- text = _this$props.text,
63
- dataTitle = _this$props.dataTitle,
64
- dataId = _this$props.dataId,
65
- onClick = _this$props.onClick,
66
- customProps = _this$props.customProps;
67
- var SecondaryTextProps = customProps.SecondaryTextProps;
68
- return /*#__PURE__*/_react["default"].createElement("div", _extends({
69
- className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
70
- "data-title": dataTitle,
71
- "data-id": dataId,
72
- "data-test-id": dataId,
73
- onClick: onClick
74
- }, SecondaryTextProps), text);
75
- }
76
- }]);
77
-
78
- return SecondaryText;
79
- }(_react.Component);
80
-
81
- exports["default"] = SecondaryText;
82
37
  SecondaryText.propTypes = _propTypes.SecondaryText_propTypes;
83
- SecondaryText.defaultProps = _defaultProps.SecondaryText_defaultProps; // if (__DOCS__) {
84
- // SecondaryText.docs = {
85
- // folderName: 'List',
86
- // componentGroup: 'SecondaryText'
87
- // };
88
- // }
38
+ SecondaryText.defaultProps = _defaultProps.SecondaryText_defaultProps;
@@ -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"] = StatusText;
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
 
@@ -17,68 +15,20 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- 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); }
21
-
22
- 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; }
23
-
24
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
-
26
- 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); } }
27
-
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
-
30
- 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); }
31
-
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
-
34
- 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); }; }
35
-
36
- 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); }
18
+ function StatusText(props) {
19
+ var className = props.className,
20
+ color = props.color,
21
+ text = props.text,
22
+ dataTitle = props.dataTitle,
23
+ fontWeight = props.fontWeight,
24
+ dataId = props.dataId;
25
+ return /*#__PURE__*/_react["default"].createElement("div", {
26
+ className: "".concat(_SecondaryTextModule["default"].statusText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
27
+ "data-title": dataTitle,
28
+ "data-id": dataId,
29
+ "data-test-id": dataId
30
+ }, text);
31
+ }
37
32
 
38
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
-
40
- 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; } }
41
-
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
-
44
- var StatusText = /*#__PURE__*/function (_Component) {
45
- _inherits(StatusText, _Component);
46
-
47
- var _super = _createSuper(StatusText);
48
-
49
- function StatusText(props) {
50
- _classCallCheck(this, StatusText);
51
-
52
- return _super.call(this, props);
53
- }
54
-
55
- _createClass(StatusText, [{
56
- key: "render",
57
- value: function render() {
58
- var _this$props = this.props,
59
- className = _this$props.className,
60
- color = _this$props.color,
61
- text = _this$props.text,
62
- dataTitle = _this$props.dataTitle,
63
- fontWeight = _this$props.fontWeight,
64
- dataId = _this$props.dataId;
65
- return /*#__PURE__*/_react["default"].createElement("div", {
66
- className: "".concat(_SecondaryTextModule["default"].statusText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
67
- "data-title": dataTitle,
68
- "data-id": dataId,
69
- "data-test-id": dataId
70
- }, text);
71
- }
72
- }]);
73
-
74
- return StatusText;
75
- }(_react.Component);
76
-
77
- exports["default"] = StatusText;
78
33
  StatusText.propTypes = _propTypes.StatusText_propTypes;
79
- StatusText.defaultProps = _defaultProps.StatusText_defaultProps; // if (__DOCS__) {
80
- // StatusText.docs = {
81
- // folderName: 'List',
82
- // componentGroup: 'StatusText'
83
- // };
84
- // }
34
+ StatusText.defaultProps = _defaultProps.StatusText_defaultProps;