@zohodesk/dot 1.4.10 → 1.4.11
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/UnValidatedFiles.html +101 -0
- package/.cli/propValidation_report.html +1 -1
- package/README.md +5 -0
- 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 +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- 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/index.html +1 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -4
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +9 -0
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
- package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
- package/es/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
- package/es/v1/form/fields/SelectField/SelectField.js +1 -9
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +42 -13
- package/es/v1/form/fields/TagsMultiSelect/props/defaultProps.js +4 -1
- package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +10 -1
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
- package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
- package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +122 -142
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +133 -153
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +137 -178
- package/es/v1/form/fields/TextareaField/TextareaField.js +113 -137
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +43 -43
- package/es/v1/form/layout/Field/Field.js +24 -28
- package/es/v1/form/layout/Section/Section.js +26 -33
- package/es/v1/list/Subject/Subject.js +39 -48
- package/es/v1/list/TagNew/TagNew.js +18 -27
- package/es/v1/list/Thread/Thread.js +26 -35
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -5
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +9 -0
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
- package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
- package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
- package/lib/v1/form/fields/SelectField/SelectField.js +1 -7
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +45 -13
- package/lib/v1/form/fields/TagsMultiSelect/props/defaultProps.js +4 -1
- package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +10 -1
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
- package/lib/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
- package/lib/v1/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +125 -181
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +138 -193
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +160 -212
- package/lib/v1/form/fields/TextareaField/TextareaField.js +117 -177
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +41 -80
- package/lib/v1/form/layout/Field/Field.js +22 -69
- package/lib/v1/form/layout/Section/Section.js +26 -72
- package/lib/v1/list/Subject/Subject.js +39 -87
- package/lib/v1/list/TagNew/TagNew.js +18 -66
- package/lib/v1/list/Thread/Thread.js +25 -73
- package/package.json +8 -8
- package/propValidationArg.json +8 -4
- 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
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _propTypes = require("./props/propTypes");
|
|
13
11
|
|
|
@@ -15,72 +13,28 @@ var _ModuleFormSectionModule = _interopRequireDefault(require("../../../../form/
|
|
|
15
13
|
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
_inherits(Section, _Component);
|
|
44
|
-
|
|
45
|
-
var _super = _createSuper(Section);
|
|
46
|
-
|
|
47
|
-
function Section(props) {
|
|
48
|
-
_classCallCheck(this, Section);
|
|
49
|
-
|
|
50
|
-
return _super.call(this, props);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
_createClass(Section, [{
|
|
54
|
-
key: "render",
|
|
55
|
-
value: function render() {
|
|
56
|
-
var _this$props = this.props,
|
|
57
|
-
title = _this$props.title,
|
|
58
|
-
dataId = _this$props.dataId,
|
|
59
|
-
containerClass = _this$props.containerClass,
|
|
60
|
-
titleClass = _this$props.titleClass,
|
|
61
|
-
className = _this$props.className,
|
|
62
|
-
column = _this$props.column,
|
|
63
|
-
formName = _this$props.formName;
|
|
64
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
-
"data-id": dataId,
|
|
66
|
-
"data-test-id": dataId,
|
|
67
|
-
className: containerClass ? containerClass : ''
|
|
68
|
-
}, title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
|
-
className: titleClass ? titleClass : ''
|
|
70
|
-
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
71
|
-
className: "".concat(className ? className : '', " ").concat(column == 'single' ? _ModuleFormSectionModule["default"].singleColumn : ''),
|
|
72
|
-
"data-id": formName && formName,
|
|
73
|
-
"data-test-id": formName && formName
|
|
74
|
-
}, this.props.children));
|
|
75
|
-
}
|
|
76
|
-
}]);
|
|
77
|
-
|
|
78
|
-
return Section;
|
|
79
|
-
}(_react.Component);
|
|
80
|
-
|
|
81
|
-
exports["default"] = Section;
|
|
82
|
-
Section.propTypes = _propTypes.propTypes; // if (__DOCS__) {
|
|
83
|
-
// Section.docs = {
|
|
84
|
-
// componentGroup: 'ModuleAddForm'
|
|
85
|
-
// };
|
|
86
|
-
// }
|
|
16
|
+
var Section = function Section(props) {
|
|
17
|
+
var title = props.title,
|
|
18
|
+
dataId = props.dataId,
|
|
19
|
+
containerClass = props.containerClass,
|
|
20
|
+
titleClass = props.titleClass,
|
|
21
|
+
className = props.className,
|
|
22
|
+
column = props.column,
|
|
23
|
+
formName = props.formName,
|
|
24
|
+
children = props.children;
|
|
25
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
26
|
+
"data-id": dataId,
|
|
27
|
+
"data-test-id": dataId,
|
|
28
|
+
className: containerClass ? containerClass : ''
|
|
29
|
+
}, title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
30
|
+
className: titleClass ? titleClass : ''
|
|
31
|
+
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
32
|
+
className: "".concat(className ? className : '', " ").concat(column == 'single' ? _ModuleFormSectionModule["default"].singleColumn : ''),
|
|
33
|
+
"data-id": formName && formName,
|
|
34
|
+
"data-test-id": formName && formName
|
|
35
|
+
}, children));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var _default = Section;
|
|
39
|
+
exports["default"] = _default;
|
|
40
|
+
Section.propTypes = _propTypes.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
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("./props/defaultProps");
|
|
13
11
|
|
|
@@ -19,90 +17,44 @@ var _SubjectModule = _interopRequireDefault(require("../../../list/Subject/Subje
|
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
urlName = _this$props.urlName,
|
|
66
|
-
href = _this$props.href,
|
|
67
|
-
urlData = _this$props.urlData,
|
|
68
|
-
onClick = _this$props.onClick,
|
|
69
|
-
isLink = _this$props.isLink,
|
|
70
|
-
target = _this$props.target,
|
|
71
|
-
fontWeight = _this$props.fontWeight,
|
|
72
|
-
className = _this$props.className,
|
|
73
|
-
isDotted = _this$props.isDotted,
|
|
74
|
-
children = _this$props.children,
|
|
75
|
-
customProps = _this$props.customProps;
|
|
76
|
-
var _customProps$LinkProp = customProps.LinkProps,
|
|
77
|
-
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
78
|
-
_customProps$TextProp = customProps.TextProps,
|
|
79
|
-
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
|
|
80
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
81
|
-
urlName: urlName,
|
|
82
|
-
href: href,
|
|
83
|
-
urlData: urlData,
|
|
84
|
-
onClick: onClick,
|
|
85
|
-
className: "".concat(_SubjectModule["default"].subject, " ").concat(isDotted ? _SubjectModule["default"].dotted : '', " ").concat(className, " ").concat(_SubjectModule["default"]["font_".concat(fontWeight)], " ").concat(_SubjectModule["default"].cursorPointer),
|
|
86
|
-
dataId: dataId,
|
|
87
|
-
title: text,
|
|
88
|
-
target: target
|
|
89
|
-
}, LinkProps), children ? children : text) : /*#__PURE__*/_react["default"].createElement("span", _extends({
|
|
90
|
-
className: "".concat(_SubjectModule["default"].subject, " ").concat(isDotted ? _SubjectModule["default"].dotted : '', " ").concat(className, " ").concat(_SubjectModule["default"]["font_".concat(fontWeight)]),
|
|
91
|
-
"data-title": text,
|
|
92
|
-
"data-id": dataId,
|
|
93
|
-
"data-test-id": dataId
|
|
94
|
-
}, TextProps), text));
|
|
95
|
-
}
|
|
96
|
-
}]);
|
|
97
|
-
|
|
98
|
-
return Subject;
|
|
99
|
-
}(_react.Component);
|
|
100
|
-
|
|
101
|
-
exports["default"] = Subject;
|
|
22
|
+
var Subject = function Subject(props) {
|
|
23
|
+
var text = props.text,
|
|
24
|
+
dataId = props.dataId,
|
|
25
|
+
urlName = props.urlName,
|
|
26
|
+
href = props.href,
|
|
27
|
+
urlData = props.urlData,
|
|
28
|
+
onClick = props.onClick,
|
|
29
|
+
isLink = props.isLink,
|
|
30
|
+
target = props.target,
|
|
31
|
+
fontWeight = props.fontWeight,
|
|
32
|
+
className = props.className,
|
|
33
|
+
isDotted = props.isDotted,
|
|
34
|
+
children = props.children,
|
|
35
|
+
customProps = props.customProps;
|
|
36
|
+
var _customProps$LinkProp = customProps.LinkProps,
|
|
37
|
+
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
38
|
+
_customProps$TextProp = customProps.TextProps,
|
|
39
|
+
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
41
|
+
urlName: urlName,
|
|
42
|
+
href: href,
|
|
43
|
+
urlData: urlData,
|
|
44
|
+
onClick: onClick,
|
|
45
|
+
className: "".concat(_SubjectModule["default"].subject, " ").concat(isDotted ? _SubjectModule["default"].dotted : '', " ").concat(className, " ").concat(_SubjectModule["default"]["font_".concat(fontWeight)], " ").concat(_SubjectModule["default"].cursorPointer),
|
|
46
|
+
dataId: dataId,
|
|
47
|
+
title: text,
|
|
48
|
+
target: target
|
|
49
|
+
}, LinkProps), children ? children : text) : /*#__PURE__*/_react["default"].createElement("span", _extends({
|
|
50
|
+
className: "".concat(_SubjectModule["default"].subject, " ").concat(isDotted ? _SubjectModule["default"].dotted : '', " ").concat(className, " ").concat(_SubjectModule["default"]["font_".concat(fontWeight)]),
|
|
51
|
+
"data-title": text,
|
|
52
|
+
"data-id": dataId,
|
|
53
|
+
"data-test-id": dataId
|
|
54
|
+
}, TextProps), text));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
var _default = Subject;
|
|
58
|
+
exports["default"] = _default;
|
|
102
59
|
Subject.propTypes = _propTypes.propTypes;
|
|
103
|
-
Subject.defaultProps = _defaultProps.defaultProps;
|
|
104
|
-
// Subject.docs = {
|
|
105
|
-
// folderName: 'List',
|
|
106
|
-
// componentGroup: 'Subject'
|
|
107
|
-
// };
|
|
108
|
-
// }
|
|
60
|
+
Subject.defaultProps = _defaultProps.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
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("./props/defaultProps");
|
|
13
11
|
|
|
@@ -17,67 +15,21 @@ var _TagNewModule = _interopRequireDefault(require("../../../list/TagNew/TagNew.
|
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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); }
|
|
37
|
-
|
|
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 TagNew = /*#__PURE__*/function (_Component) {
|
|
45
|
-
_inherits(TagNew, _Component);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(TagNew);
|
|
48
|
-
|
|
49
|
-
function TagNew(props) {
|
|
50
|
-
_classCallCheck(this, TagNew);
|
|
51
|
-
|
|
52
|
-
return _super.call(this, props);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_createClass(TagNew, [{
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function render() {
|
|
58
|
-
var _this$props = this.props,
|
|
59
|
-
className = _this$props.className,
|
|
60
|
-
text = _this$props.text,
|
|
61
|
-
animate = _this$props.animate,
|
|
62
|
-
onClick = _this$props.onClick,
|
|
63
|
-
dataId = _this$props.dataId;
|
|
64
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
-
className: "".concat(_TagNewModule["default"].tagStyle, " ").concat(animate ? _TagNewModule["default"].bounceIn : '', " ").concat(className ? className : ''),
|
|
66
|
-
onClick: onClick,
|
|
67
|
-
"data-id": dataId,
|
|
68
|
-
"data-test-id": dataId
|
|
69
|
-
}, text);
|
|
70
|
-
}
|
|
71
|
-
}]);
|
|
72
|
-
|
|
73
|
-
return TagNew;
|
|
74
|
-
}(_react.Component);
|
|
75
|
-
|
|
76
|
-
exports["default"] = TagNew;
|
|
18
|
+
var TagNew = function TagNew(props) {
|
|
19
|
+
var className = props.className,
|
|
20
|
+
text = props.text,
|
|
21
|
+
animate = props.animate,
|
|
22
|
+
onClick = props.onClick,
|
|
23
|
+
dataId = props.dataId;
|
|
24
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
25
|
+
className: "".concat(_TagNewModule["default"].tagStyle, " ").concat(animate ? _TagNewModule["default"].bounceIn : '', " ").concat(className ? className : ''),
|
|
26
|
+
onClick: onClick,
|
|
27
|
+
"data-id": dataId,
|
|
28
|
+
"data-test-id": dataId
|
|
29
|
+
}, text);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var _default = TagNew;
|
|
33
|
+
exports["default"] = _default;
|
|
77
34
|
TagNew.propTypes = _propTypes.propTypes;
|
|
78
|
-
TagNew.defaultProps = _defaultProps.defaultProps;
|
|
79
|
-
// TagNew.docs = {
|
|
80
|
-
// folderName: 'List',
|
|
81
|
-
// componentGroup: 'TagNew'
|
|
82
|
-
// };
|
|
83
|
-
// }
|
|
35
|
+
TagNew.defaultProps = _defaultProps.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
6
|
exports["default"] = void 0;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("./props/defaultProps");
|
|
13
11
|
|
|
@@ -21,75 +19,29 @@ var _ThreadModule = _interopRequireDefault(require("../../../list/Thread/Thread.
|
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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); }
|
|
41
|
-
|
|
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 Thread = /*#__PURE__*/function (_Component) {
|
|
49
|
-
_inherits(Thread, _Component);
|
|
50
|
-
|
|
51
|
-
var _super = _createSuper(Thread);
|
|
52
|
-
|
|
53
|
-
function Thread(props) {
|
|
54
|
-
_classCallCheck(this, Thread);
|
|
55
|
-
|
|
56
|
-
return _super.call(this, props);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
_createClass(Thread, [{
|
|
60
|
-
key: "render",
|
|
61
|
-
value: function render() {
|
|
62
|
-
var _this$props = this.props,
|
|
63
|
-
threadCount = _this$props.count,
|
|
64
|
-
className = _this$props.className,
|
|
65
|
-
iconTitle = _this$props.iconTitle,
|
|
66
|
-
dataId = _this$props.dataId,
|
|
67
|
-
align = _this$props.align;
|
|
68
|
-
var count = threadCount === '0' ? '1' : threadCount;
|
|
69
|
-
return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
70
|
-
customClass: "".concat(_ThreadModule["default"].container, " ").concat(_ThreadModule["default"]["align_".concat(align)], " ").concat(className),
|
|
71
|
-
title: iconTitle,
|
|
72
|
-
dataId: dataId,
|
|
73
|
-
a11y: {
|
|
74
|
-
ariaLabel: iconTitle
|
|
75
|
-
}
|
|
76
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
77
|
-
name: "ZD-TK-thread",
|
|
78
|
-
size: "9"
|
|
79
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
-
className: _ThreadModule["default"].count
|
|
81
|
-
}, count));
|
|
22
|
+
var Thread = function Thread(props) {
|
|
23
|
+
var threadCount = props.count,
|
|
24
|
+
className = props.className,
|
|
25
|
+
iconTitle = props.iconTitle,
|
|
26
|
+
dataId = props.dataId,
|
|
27
|
+
align = props.align;
|
|
28
|
+
var count = threadCount === '0' ? '1' : threadCount;
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
30
|
+
customClass: "".concat(_ThreadModule["default"].container, " ").concat(_ThreadModule["default"]["align_".concat(align)], " ").concat(className),
|
|
31
|
+
title: iconTitle,
|
|
32
|
+
dataId: dataId,
|
|
33
|
+
a11y: {
|
|
34
|
+
ariaLabel: iconTitle
|
|
82
35
|
}
|
|
83
|
-
}]
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
37
|
+
name: "ZD-TK-thread",
|
|
38
|
+
size: "9"
|
|
39
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
40
|
+
className: _ThreadModule["default"].count
|
|
41
|
+
}, count));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
var _default = Thread;
|
|
45
|
+
exports["default"] = _default;
|
|
89
46
|
Thread.propTypes = _propTypes.propTypes;
|
|
90
|
-
Thread.defaultProps = _defaultProps.defaultProps;
|
|
91
|
-
// Thread.docs = {
|
|
92
|
-
// folderName: 'List',
|
|
93
|
-
// componentGroup: 'Thread'
|
|
94
|
-
// };
|
|
95
|
-
// }
|
|
47
|
+
Thread.defaultProps = _defaultProps.defaultProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.11",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"@zohodesk-private/color-variable-preprocessor": "1.2.0",
|
|
60
60
|
"@zohodesk-private/css-variable-migrator": "^1.0.7",
|
|
61
61
|
"@zohodesk-private/node-plugins": "1.1.6",
|
|
62
|
-
"@zohodesk-private/react-prop-validator": "1.2.
|
|
62
|
+
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
63
63
|
"@zohodesk/a11y": "2.2.0",
|
|
64
|
-
"@zohodesk/components": "1.2.
|
|
64
|
+
"@zohodesk/components": "1.2.27",
|
|
65
65
|
"@zohodesk/hooks": "2.0.3",
|
|
66
|
-
"@zohodesk/icons": "1.0.
|
|
67
|
-
"@zohodesk/svg": "1.1.
|
|
66
|
+
"@zohodesk/icons": "1.0.33",
|
|
67
|
+
"@zohodesk/svg": "1.1.11",
|
|
68
68
|
"@zohodesk/utils": "1.3.13",
|
|
69
69
|
"@zohodesk/variables": "1.0.0",
|
|
70
70
|
"@zohodesk/virtualizer": "1.0.3",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"velocity-react": "1.4.3",
|
|
76
76
|
"@zohodesk/variables": "1.0.0",
|
|
77
|
-
"@zohodesk/components": "1.2.
|
|
78
|
-
"@zohodesk/icons": "1.0.
|
|
79
|
-
"@zohodesk/svg": "1.1.
|
|
77
|
+
"@zohodesk/components": "1.2.27",
|
|
78
|
+
"@zohodesk/icons": "1.0.33",
|
|
79
|
+
"@zohodesk/svg": "1.1.11",
|
|
80
80
|
"@zohodesk/virtualizer": "1.0.3",
|
|
81
81
|
"react-sortable-hoc": "^0.8.3",
|
|
82
82
|
"@zohodesk/hooks": "2.0.3",
|
package/propValidationArg.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"inputDir": "./src",
|
|
3
3
|
"outputDir": "./.cli",
|
|
4
|
-
"excludeDir":"./.cli",
|
|
5
|
-
"propUnifiExcludeDir":"./.cli",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
4
|
+
"excludeDir": "./.cli",
|
|
5
|
+
"propUnifiExcludeDir": "./.cli",
|
|
6
|
+
"enable": true,
|
|
7
|
+
"need_report": true,
|
|
8
|
+
"prop_validation_strict_mode": true,
|
|
9
|
+
"prop_validation_log": false,
|
|
10
|
+
"prop_unification_strict_mode": true,
|
|
11
|
+
"prop_unification_log": false
|
|
8
12
|
}
|