@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.
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +21 -12
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +163 -553
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +163 -553
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +163 -553
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +3 -12
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +4 -0
- package/coverage/coverage-summary.json +5 -1
- package/coverage/index.html +40 -10
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/es/v1/ActionButton/ActionButton.js +2 -2
- package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
- package/es/v1/Attachment/Attachment.js +78 -75
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/Loader/Loader.js +12 -18
- package/es/v1/Message/Message.js +16 -42
- package/es/v1/PlusIcon/PlusIcon.js +25 -37
- package/es/v1/Separator/Separator.js +40 -47
- package/es/v1/Upload/Upload.js +59 -66
- package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
- package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
- package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
- package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
- package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
- package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
- package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/es/v1/form/fields/DateField/DateField.js +6 -6
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/v1/form/fields/RadioField/RadioField.js +89 -97
- package/es/v1/form/fields/SelectField/SelectField.js +139 -154
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
- package/es/v1/list/SecondaryText/AccountName.js +61 -69
- package/es/v1/list/SecondaryText/ContactName.js +66 -74
- package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
- package/es/v1/list/SecondaryText/Email.js +32 -40
- package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
- package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
- package/es/v1/list/SecondaryText/PriorityText.js +16 -28
- package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
- package/es/v1/list/SecondaryText/StatusText.js +17 -29
- package/es/v1/list/SecondaryText/TicketId.js +33 -45
- package/es/v1/list/SecondaryText/Website.js +22 -30
- package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
- package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Section/Section.js +14 -20
- package/es/v1/svg/PlusIcon.js +20 -27
- package/es/v1/svg/SnippetIcon.js +22 -29
- package/es/v1/svg/TemplateIcon.js +23 -30
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/lib/v1/ActionButton/ActionButton.js +2 -2
- package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/lib/v1/Attachment/Attachment.js +77 -112
- package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/Loader/Loader.js +12 -55
- package/lib/v1/Message/Message.js +23 -80
- package/lib/v1/PlusIcon/PlusIcon.js +25 -71
- package/lib/v1/Separator/Separator.js +44 -85
- package/lib/v1/Upload/Upload.js +58 -103
- package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
- package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
- package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
- package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/lib/v1/form/fields/DateField/DateField.js +6 -6
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
- package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
- package/lib/v1/list/SecondaryText/AccountName.js +63 -113
- package/lib/v1/list/SecondaryText/ContactName.js +67 -117
- package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
- package/lib/v1/list/SecondaryText/Email.js +32 -82
- package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
- package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
- package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
- package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
- package/lib/v1/list/SecondaryText/StatusText.js +17 -67
- package/lib/v1/list/SecondaryText/TicketId.js +33 -83
- package/lib/v1/list/SecondaryText/Website.js +29 -72
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Section/Section.js +14 -58
- package/lib/v1/svg/PlusIcon.js +20 -65
- package/lib/v1/svg/SnippetIcon.js +22 -67
- package/lib/v1/svg/TemplateIcon.js +23 -68
- package/package.json +12 -12
- package/result.json +1 -1
- 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"] =
|
|
6
|
+
exports["default"] = Website;
|
|
9
7
|
|
|
10
|
-
var _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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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;
|
|
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
|
|
6
|
+
exports.SecondryPanelItem = SecondryPanelItem;
|
|
7
|
+
exports.SecondryPanelLI = SecondryPanelLI;
|
|
8
|
+
exports.SecondryPanelUL = SecondryPanelUL;
|
|
9
|
+
exports["default"] = SecondryPanel;
|
|
9
10
|
|
|
10
|
-
var _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
|
-
|
|
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
|
-
|
|
27
|
+
/**** Components ****/
|
|
41
28
|
|
|
42
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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;
|
|
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"] =
|
|
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
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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 =
|
|
434
|
-
StatusDropdown_Component.propTypes =
|
|
433
|
+
StatusDropdown_Component.defaultProps = _defaultProps.defaultProps;
|
|
434
|
+
StatusDropdown_Component.propTypes = _propTypes.propTypes;
|
|
435
435
|
var _default = StatusDropdown_Component;
|
|
436
436
|
exports["default"] = _default;
|