@zohodesk/dot 1.0.0-temp-224.1 → 1.0.0-temp-187.22
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/README.md +11 -6
- package/es/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -6
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +6 -2
- package/es/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/SecondaryText/AccountName.js +23 -8
- package/es/list/SecondaryText/ContactName.js +18 -6
- package/es/list/SecondaryText/DepartmentText.js +13 -6
- package/es/list/SecondaryText/Email.js +19 -7
- package/es/list/SecondaryText/PhoneNumber.js +19 -7
- package/es/list/SecondaryText/PriorityText.js +13 -6
- package/es/list/SecondaryText/SecondaryText.js +17 -8
- package/es/list/SecondaryText/SecondaryText.module.css +40 -24
- package/es/list/SecondaryText/StatusText.js +13 -6
- package/es/list/SecondaryText/TicketId.js +8 -2
- package/es/list/SecondaryText/Website.js +16 -5
- package/es/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/es/list/SecondaryText/props/defaultProps.js +18 -0
- package/es/list/SecondaryText/props/propTypes.js +21 -0
- package/es/list/Subject/Subject.js +28 -12
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/es/list/Subject/props/defaultProps.js +3 -1
- package/es/list/Subject/props/propTypes.js +5 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.js +4 -2
- package/es/list/status/StatusListItem/StatusListItem.module.css +43 -17
- package/lib/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/SecondaryText/AccountName.js +27 -8
- package/lib/list/SecondaryText/ContactName.js +21 -6
- package/lib/list/SecondaryText/DepartmentText.js +15 -6
- package/lib/list/SecondaryText/Email.js +22 -7
- package/lib/list/SecondaryText/PhoneNumber.js +22 -7
- package/lib/list/SecondaryText/PriorityText.js +15 -6
- package/lib/list/SecondaryText/SecondaryText.js +26 -8
- package/lib/list/SecondaryText/SecondaryText.module.css +40 -24
- package/lib/list/SecondaryText/StatusText.js +15 -6
- package/lib/list/SecondaryText/TicketId.js +10 -2
- package/lib/list/SecondaryText/Website.js +18 -5
- package/lib/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/lib/list/SecondaryText/props/defaultProps.js +18 -0
- package/lib/list/SecondaryText/props/propTypes.js +22 -0
- package/lib/list/Subject/Subject.js +40 -13
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/lib/list/Subject/props/defaultProps.js +3 -1
- package/lib/list/Subject/props/propTypes.js +6 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +4 -2
- package/lib/list/status/StatusListItem/StatusListItem.module.css +43 -17
- package/package.json +4 -4
|
@@ -7,6 +7,8 @@ exports.Website_propTypes = exports.TicketId_propTypes = exports.StatusText_prop
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
+
var _propTypes2 = require("@zohodesk/components/es/Typography/props/propTypes");
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
14
|
var AccountName_propTypes = {
|
|
@@ -24,6 +26,8 @@ var AccountName_propTypes = {
|
|
|
24
26
|
secondaryAccountHref: _propTypes["default"].string,
|
|
25
27
|
secondaryAccountClick: _propTypes["default"].func,
|
|
26
28
|
secondaryAccountText: _propTypes["default"].string,
|
|
29
|
+
isHighlighted: _propTypes["default"].bool,
|
|
30
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
27
31
|
customProps: _propTypes["default"].shape({
|
|
28
32
|
LinkProps: _propTypes["default"].object,
|
|
29
33
|
TextProps: _propTypes["default"].object,
|
|
@@ -53,6 +57,8 @@ var ContactName_propTypes = {
|
|
|
53
57
|
}),
|
|
54
58
|
paidTitle: _propTypes["default"].string
|
|
55
59
|
}),
|
|
60
|
+
isHighlighted: _propTypes["default"].bool,
|
|
61
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
56
62
|
customProps: _propTypes["default"].shape({
|
|
57
63
|
LinkProps: _propTypes["default"].object,
|
|
58
64
|
TextProps: _propTypes["default"].object
|
|
@@ -63,6 +69,8 @@ var DepartmentText_propTypes = {
|
|
|
63
69
|
className: _propTypes["default"].string,
|
|
64
70
|
dataId: _propTypes["default"].string,
|
|
65
71
|
dataTitle: _propTypes["default"].string,
|
|
72
|
+
isHighlighted: _propTypes["default"].bool,
|
|
73
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
66
74
|
text: _propTypes["default"].string
|
|
67
75
|
};
|
|
68
76
|
exports.DepartmentText_propTypes = DepartmentText_propTypes;
|
|
@@ -76,6 +84,8 @@ var Email_propTypes = {
|
|
|
76
84
|
title: _propTypes["default"].string,
|
|
77
85
|
urlData: _propTypes["default"].object,
|
|
78
86
|
urlName: _propTypes["default"].string,
|
|
87
|
+
isHighlighted: _propTypes["default"].bool,
|
|
88
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
79
89
|
customProps: _propTypes["default"].shape({
|
|
80
90
|
LinkProps: _propTypes["default"].object,
|
|
81
91
|
TextProps: _propTypes["default"].object
|
|
@@ -100,6 +110,8 @@ var PhoneNumber_propTypes = {
|
|
|
100
110
|
title: _propTypes["default"].string,
|
|
101
111
|
urlData: _propTypes["default"].object,
|
|
102
112
|
urlName: _propTypes["default"].string,
|
|
113
|
+
isHighlighted: _propTypes["default"].bool,
|
|
114
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
103
115
|
customProps: _propTypes["default"].shape({
|
|
104
116
|
LinkProps: _propTypes["default"].object,
|
|
105
117
|
TextProps: _propTypes["default"].object
|
|
@@ -111,6 +123,8 @@ var PriorityText_propTypes = {
|
|
|
111
123
|
color: _propTypes["default"].oneOf(['red', 'green', 'gray', 'orange']),
|
|
112
124
|
dataId: _propTypes["default"].string,
|
|
113
125
|
dataTitle: _propTypes["default"].string,
|
|
126
|
+
isHighlighted: _propTypes["default"].bool,
|
|
127
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
114
128
|
text: _propTypes["default"].string
|
|
115
129
|
};
|
|
116
130
|
exports.PriorityText_propTypes = PriorityText_propTypes;
|
|
@@ -120,6 +134,8 @@ var SecondaryText_propTypes = {
|
|
|
120
134
|
dataTitle: _propTypes["default"].string,
|
|
121
135
|
onClick: _propTypes["default"].func,
|
|
122
136
|
text: _propTypes["default"].string,
|
|
137
|
+
isHighlighted: _propTypes["default"].bool,
|
|
138
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
123
139
|
customProps: _propTypes["default"].shape({
|
|
124
140
|
SecondaryTextProps: _propTypes["default"].object
|
|
125
141
|
})
|
|
@@ -131,6 +147,8 @@ var StatusText_propTypes = {
|
|
|
131
147
|
dataId: _propTypes["default"].string,
|
|
132
148
|
dataTitle: _propTypes["default"].string,
|
|
133
149
|
fontWeight: _propTypes["default"].oneOf(['regular', 'semibold', 'bold']),
|
|
150
|
+
isHighlighted: _propTypes["default"].bool,
|
|
151
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
134
152
|
text: _propTypes["default"].string
|
|
135
153
|
};
|
|
136
154
|
exports.StatusText_propTypes = StatusText_propTypes;
|
|
@@ -145,6 +163,8 @@ var TicketId_propTypes = {
|
|
|
145
163
|
url: _propTypes["default"].string,
|
|
146
164
|
urlData: _propTypes["default"].string,
|
|
147
165
|
urlName: _propTypes["default"].string,
|
|
166
|
+
isHighlighted: _propTypes["default"].bool,
|
|
167
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
148
168
|
customProps: _propTypes["default"].shape({
|
|
149
169
|
TicketIdProps: _propTypes["default"].object,
|
|
150
170
|
LinkProps: _propTypes["default"].object
|
|
@@ -158,6 +178,8 @@ var Website_propTypes = {
|
|
|
158
178
|
isLink: _propTypes["default"].bool,
|
|
159
179
|
target: _propTypes["default"].string,
|
|
160
180
|
text: _propTypes["default"].string,
|
|
181
|
+
isHighlighted: _propTypes["default"].bool,
|
|
182
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig,
|
|
161
183
|
title: _propTypes["default"].string
|
|
162
184
|
};
|
|
163
185
|
exports.Website_propTypes = Website_propTypes;
|
|
@@ -13,6 +13,10 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
17
|
+
|
|
18
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
19
|
+
|
|
16
20
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
17
21
|
|
|
18
22
|
var _cssUtils = require("@zohodesk/components/es/utils/cssUtils");
|
|
@@ -27,6 +31,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
27
31
|
|
|
28
32
|
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); }
|
|
29
33
|
|
|
34
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
|
+
|
|
36
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
37
|
+
|
|
38
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
|
+
|
|
30
40
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
41
|
|
|
32
42
|
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); } }
|
|
@@ -75,28 +85,45 @@ var Subject = /*#__PURE__*/function (_Component) {
|
|
|
75
85
|
isDotted = _this$props.isDotted,
|
|
76
86
|
children = _this$props.children,
|
|
77
87
|
customProps = _this$props.customProps,
|
|
78
|
-
whiteSpace = _this$props.whiteSpace
|
|
88
|
+
whiteSpace = _this$props.whiteSpace,
|
|
89
|
+
isHighlighted = _this$props.isHighlighted,
|
|
90
|
+
highlightData = _this$props.highlightData;
|
|
79
91
|
var _customProps$LinkProp = customProps.LinkProps,
|
|
80
92
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
81
93
|
_customProps$TextProp = customProps.TextProps,
|
|
82
94
|
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
|
|
95
|
+
|
|
96
|
+
var tagAttributesText = _objectSpread(_objectSpread({}, TextProps), {}, {
|
|
97
|
+
'data-title-wrap': whiteSpace
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
var linkTagAttributes = {
|
|
101
|
+
'data-title-wrap': whiteSpace
|
|
102
|
+
};
|
|
83
103
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
84
104
|
urlName: urlName,
|
|
85
105
|
href: href,
|
|
86
106
|
urlData: urlData,
|
|
87
107
|
onClick: onClick,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
108
|
+
target: target
|
|
109
|
+
}, LinkProps), children ? children : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
110
|
+
$tagAttributes_text: linkTagAttributes,
|
|
111
|
+
$i18n_dataTitle: text,
|
|
112
|
+
$ui_className: "".concat(_SubjectModule["default"].subject, " ").concat(_cssUtils.whiteSpaceClassMapping[whiteSpace], " ").concat(className, " ").concat(_SubjectModule["default"].cursorPointer),
|
|
113
|
+
customId: dataId,
|
|
114
|
+
$flag_dotted: isDotted,
|
|
115
|
+
$ui_weight: fontWeight,
|
|
116
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
117
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
118
|
+
$tagAttributes_text: tagAttributesText,
|
|
119
|
+
$ui_className: "".concat(_SubjectModule["default"].subject, " ").concat(className, " ").concat(_cssUtils.whiteSpaceClassMapping[whiteSpace]),
|
|
120
|
+
$flag_dotted: isDotted,
|
|
121
|
+
$ui_weight: fontWeight,
|
|
122
|
+
$i18n_dataTitle: text,
|
|
123
|
+
customId: dataId,
|
|
124
|
+
testId: dataId,
|
|
125
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
126
|
+
}, text));
|
|
100
127
|
}
|
|
101
128
|
}]);
|
|
102
129
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Subject rendering the defult props 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
6
|
-
class="
|
|
5
|
+
<div
|
|
6
|
+
class="dotted font_regular subject whiteSpace_pre"
|
|
7
7
|
data-title-wrap="pre"
|
|
8
8
|
/>
|
|
9
9
|
</DocumentFragment>
|
|
@@ -11,8 +11,8 @@ exports[`Subject rendering the defult props 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`Subject rendering the whiteSpace of -break-spaces 1`] = `
|
|
13
13
|
<DocumentFragment>
|
|
14
|
-
<
|
|
15
|
-
class="
|
|
14
|
+
<div
|
|
15
|
+
class="dotted font_regular subject whiteSpace_breakSpaces"
|
|
16
16
|
data-title-wrap="break-spaces"
|
|
17
17
|
/>
|
|
18
18
|
</DocumentFragment>
|
|
@@ -20,8 +20,8 @@ exports[`Subject rendering the whiteSpace of -break-spaces 1`] = `
|
|
|
20
20
|
|
|
21
21
|
exports[`Subject rendering the whiteSpace of -normal 1`] = `
|
|
22
22
|
<DocumentFragment>
|
|
23
|
-
<
|
|
24
|
-
class="
|
|
23
|
+
<div
|
|
24
|
+
class="dotted font_regular subject whiteSpace_normal"
|
|
25
25
|
data-title-wrap="normal"
|
|
26
26
|
/>
|
|
27
27
|
</DocumentFragment>
|
|
@@ -29,8 +29,8 @@ exports[`Subject rendering the whiteSpace of -normal 1`] = `
|
|
|
29
29
|
|
|
30
30
|
exports[`Subject rendering the whiteSpace of -nowrap 1`] = `
|
|
31
31
|
<DocumentFragment>
|
|
32
|
-
<
|
|
33
|
-
class="
|
|
32
|
+
<div
|
|
33
|
+
class="dotted font_regular subject whiteSpace_nowrap"
|
|
34
34
|
data-title-wrap="nowrap"
|
|
35
35
|
/>
|
|
36
36
|
</DocumentFragment>
|
|
@@ -38,8 +38,8 @@ exports[`Subject rendering the whiteSpace of -nowrap 1`] = `
|
|
|
38
38
|
|
|
39
39
|
exports[`Subject rendering the whiteSpace of -pre 1`] = `
|
|
40
40
|
<DocumentFragment>
|
|
41
|
-
<
|
|
42
|
-
class="
|
|
41
|
+
<div
|
|
42
|
+
class="dotted font_regular subject whiteSpace_pre"
|
|
43
43
|
data-title-wrap="pre"
|
|
44
44
|
/>
|
|
45
45
|
</DocumentFragment>
|
|
@@ -47,8 +47,8 @@ exports[`Subject rendering the whiteSpace of -pre 1`] = `
|
|
|
47
47
|
|
|
48
48
|
exports[`Subject rendering the whiteSpace of -pre-line 1`] = `
|
|
49
49
|
<DocumentFragment>
|
|
50
|
-
<
|
|
51
|
-
class="
|
|
50
|
+
<div
|
|
51
|
+
class="dotted font_regular subject whiteSpace_preLine"
|
|
52
52
|
data-title-wrap="pre-line"
|
|
53
53
|
/>
|
|
54
54
|
</DocumentFragment>
|
|
@@ -56,8 +56,8 @@ exports[`Subject rendering the whiteSpace of -pre-line 1`] = `
|
|
|
56
56
|
|
|
57
57
|
exports[`Subject rendering the whiteSpace of -pre-wrap 1`] = `
|
|
58
58
|
<DocumentFragment>
|
|
59
|
-
<
|
|
60
|
-
class="
|
|
59
|
+
<div
|
|
60
|
+
class="dotted font_regular subject whiteSpace_preWrap"
|
|
61
61
|
data-title-wrap="pre-wrap"
|
|
62
62
|
/>
|
|
63
63
|
</DocumentFragment>
|
|
@@ -7,6 +7,8 @@ exports.propTypes = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
+
var _propTypes2 = require("@zohodesk/components/es/Typography/props/propTypes");
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
14
|
var propTypes = {
|
|
@@ -26,6 +28,9 @@ var propTypes = {
|
|
|
26
28
|
LinkProps: _propTypes["default"].object,
|
|
27
29
|
TextProps: _propTypes["default"].object
|
|
28
30
|
}),
|
|
29
|
-
whiteSpace: _propTypes["default"].oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
|
|
31
|
+
whiteSpace: _propTypes["default"].oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']),
|
|
32
|
+
// Highlight props
|
|
33
|
+
isHighlighted: _propTypes["default"].bool,
|
|
34
|
+
highlightData: _propTypes2.propTypes.$ui_highlightConfig
|
|
30
35
|
};
|
|
31
36
|
exports.propTypes = propTypes;
|
|
@@ -247,7 +247,10 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
247
247
|
renderTargetElement = _this$props4.renderTargetElement,
|
|
248
248
|
renderFooterElement = _this$props4.renderFooterElement,
|
|
249
249
|
_this$props4$a11y = _this$props4.a11y,
|
|
250
|
-
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y
|
|
250
|
+
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y,
|
|
251
|
+
customClass = _this$props4.customClass;
|
|
252
|
+
var _customClass$dropBoxC = customClass.dropBoxClass,
|
|
253
|
+
dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
|
|
251
254
|
var _a11y$tabIndex = a11y.tabIndex,
|
|
252
255
|
tabIndex = _a11y$tabIndex === void 0 ? 0 : _a11y$tabIndex,
|
|
253
256
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
@@ -310,7 +313,8 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
310
313
|
isAnimate: true,
|
|
311
314
|
getRef: getContainerRef,
|
|
312
315
|
customClass: {
|
|
313
|
-
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer
|
|
316
|
+
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer,
|
|
317
|
+
customDropBox: dropBoxClass
|
|
314
318
|
},
|
|
315
319
|
needResponsive: needResponsive,
|
|
316
320
|
isResponsivePadding: true,
|
|
@@ -30,5 +30,7 @@ var propTypes = (_propTypes = {
|
|
|
30
30
|
idName: _propTypes2["default"].string,
|
|
31
31
|
isArrow: _propTypes2["default"].bool,
|
|
32
32
|
isDataLoaded: _propTypes2["default"].bool
|
|
33
|
-
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object), _propTypes
|
|
33
|
+
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "customClass", _propTypes2["default"].shape({
|
|
34
|
+
dropBoxClass: _propTypes2["default"].string
|
|
35
|
+
})), _propTypes);
|
|
34
36
|
exports.propTypes = propTypes;
|
|
@@ -135,7 +135,7 @@ var StatusListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
135
135
|
"aria-label": ariaLabel,
|
|
136
136
|
"data-a11y-inset-focus": insetFocus,
|
|
137
137
|
isCover: false,
|
|
138
|
-
align: "
|
|
138
|
+
align: "vertical",
|
|
139
139
|
alignBox: "row",
|
|
140
140
|
className: "".concat(_StatusListItemModule["default"].list, " ").concat(_StatusListItemModule["default"][size], " ").concat(_StatusListItemModule["default"][palette], " ").concat(active ? _StatusListItemModule["default"].active : highlight && !isDisabled ? _StatusListItemModule["default"].hover : '', " ").concat(autoHover && !isDisabled ? _StatusListItemModule["default"].effect : '', " ").concat(needTick ? _StatusListItemModule["default"].withTick : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(needBorder ? _StatusListItemModule["default"].withBorder : '', " ").concat(customClass),
|
|
141
141
|
dataId: String(value).replace("'", '_'),
|
|
@@ -146,6 +146,8 @@ var StatusListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
146
146
|
"data-title": isDisabled ? disableTitle : null,
|
|
147
147
|
tabindex: isDisabled ? '-1' : '0'
|
|
148
148
|
}, options, a11y), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
149
|
+
className: _StatusListItemModule["default"].contentWrapper
|
|
150
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
149
151
|
className: "".concat(_StatusListItemModule["default"].statusType, " ").concat(_StatusListItemModule["default"][bulletColor])
|
|
150
152
|
}), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
151
153
|
flexible: true,
|
|
@@ -163,7 +165,7 @@ var StatusListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
163
165
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
164
166
|
name: "ZD-ticknew",
|
|
165
167
|
size: "8"
|
|
166
|
-
})) : null);
|
|
168
|
+
})) : null));
|
|
167
169
|
}
|
|
168
170
|
}]);
|
|
169
171
|
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
.varClass {
|
|
2
|
+
--statuslistitem_multiline_lineheight: 1.5385;
|
|
3
|
+
--statuslistitem_font_size: var(--zd_font_size13);
|
|
4
|
+
--statuslistitem_min_height: var(--zd_size35);
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
.list {
|
|
8
|
+
composes: varClass;
|
|
2
9
|
color: var(--zdt_statuslistitem_list_text);
|
|
3
|
-
font-size: var(--
|
|
10
|
+
font-size: var(--statuslistitem_font_size);
|
|
4
11
|
position: relative;
|
|
5
12
|
list-style: none;
|
|
6
|
-
min-height: var(--
|
|
13
|
+
min-height: var(--statuslistitem_min_height);
|
|
7
14
|
cursor: pointer;
|
|
8
15
|
}
|
|
9
16
|
[dir=ltr] .withBorder {
|
|
@@ -22,7 +29,7 @@
|
|
|
22
29
|
padding: var(--zd_size7) var(--zd_size20) ;
|
|
23
30
|
}
|
|
24
31
|
.large {
|
|
25
|
-
|
|
32
|
+
--statuslistitem_min_height: var(--zd_size48);
|
|
26
33
|
}
|
|
27
34
|
[dir=ltr] .large {
|
|
28
35
|
padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
|
|
@@ -36,9 +43,8 @@
|
|
|
36
43
|
.value {
|
|
37
44
|
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
38
45
|
}
|
|
39
|
-
.multiLineValue{
|
|
40
|
-
|
|
41
|
-
composes: clamp from '~@zohodesk/components/es/common/common.module.css';
|
|
46
|
+
.multiLineValue {
|
|
47
|
+
composes: lineClamp from '~@zohodesk/components/es/common/common.module.css';
|
|
42
48
|
}
|
|
43
49
|
[dir=ltr] .withBorder.active {
|
|
44
50
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
@@ -88,24 +94,44 @@
|
|
|
88
94
|
[dir=rtl] .active.withTick {
|
|
89
95
|
padding-left: var(--zd_size39) ;
|
|
90
96
|
}
|
|
97
|
+
.contentWrapper {
|
|
98
|
+
composes: dflex flexrow alignVertical from '~@zohodesk/components/es/common/common.module.css';
|
|
99
|
+
width: 100% ;
|
|
100
|
+
}
|
|
91
101
|
/* Status Type */
|
|
92
|
-
.statusType
|
|
93
|
-
|
|
94
|
-
|
|
102
|
+
.statusType{
|
|
103
|
+
position: relative;
|
|
104
|
+
composes: dflex alignVertical alignHorizontal from '~@zohodesk/components/es/common/common.module.css';
|
|
105
|
+
align-self: flex-start;
|
|
106
|
+
min-height: calc(var(--statuslistitem_font_size) * var(--statuslistitem_multiline_lineheight));
|
|
107
|
+
min-width: var(--zd_size20) ;
|
|
108
|
+
}
|
|
109
|
+
.statusType::after{
|
|
110
|
+
/* css:validation:ignore */
|
|
111
|
+
--status_listitem_bullet_min_height: var(--zd_font_size8);
|
|
112
|
+
/* css:validation:ignore */
|
|
113
|
+
--status_listitem_bullet_min_width: var(--zd_font_size8);
|
|
114
|
+
|
|
115
|
+
content: '';
|
|
116
|
+
height: var(--status_listitem_bullet_min_height);
|
|
117
|
+
width: var(--status_listitem_bullet_min_width);
|
|
118
|
+
/* css:theme-validation:ignore */
|
|
95
119
|
border-radius: 50%;
|
|
120
|
+
background-color: var(--zdt_statuslistitem_black_bg);
|
|
96
121
|
}
|
|
97
|
-
[dir=ltr] .statusType
|
|
98
|
-
margin-right: var(--
|
|
122
|
+
[dir=ltr] .statusType::after{
|
|
123
|
+
margin-right: var(--zd_size12) ;
|
|
99
124
|
}
|
|
100
|
-
[dir=rtl] .statusType
|
|
101
|
-
margin-left: var(--
|
|
125
|
+
[dir=rtl] .statusType::after{
|
|
126
|
+
margin-left: var(--zd_size12) ;
|
|
102
127
|
}
|
|
103
|
-
|
|
128
|
+
|
|
129
|
+
.black.statusType::after {
|
|
104
130
|
background-color: var(--zdt_statuslistitem_black_bg);
|
|
105
131
|
}
|
|
106
|
-
.orange {
|
|
132
|
+
.orange.statusType::after {
|
|
107
133
|
background-color: var(--zdt_statuslistitem_orange_bg);
|
|
108
134
|
}
|
|
109
|
-
.green {
|
|
135
|
+
.green.statusType::after {
|
|
110
136
|
background-color: var(--zdt_statuslistitem_green_bg);
|
|
111
|
-
}
|
|
137
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-187.22",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"sstest": "react-cli sstest",
|
|
40
40
|
"common_package_build": "cd ../common && npm run build && cd ../dot",
|
|
41
41
|
"docs": "npm run css:review && review:props && react-cli docs",
|
|
42
|
-
"prepublishOnly": "node prePublish.js",
|
|
42
|
+
"prepublishOnly": "node prePublish.js && npm run css:review && npm run review:props",
|
|
43
43
|
"postpublish": "node postPublish.js",
|
|
44
44
|
"test-clean": "react-cli clean ./coverage && react-cli clean ./unittest react-cli clean ./es && react-cli clean ./lib && react-cli clean ./package-lock.json && react-cli clean ./result.json",
|
|
45
45
|
"download": "npm run downloadOnly && cd ../ && npm run download",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@zohodesk-private/node-plugins": "1.1.13",
|
|
74
74
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
75
75
|
"@zohodesk/a11y": "2.3.8",
|
|
76
|
-
"@zohodesk/components": "
|
|
76
|
+
"@zohodesk/components": "../components",
|
|
77
77
|
"@zohodesk/hooks": "2.0.6",
|
|
78
78
|
"@zohodesk/icons": "1.1.7",
|
|
79
79
|
"@zohodesk/layout": "^3.1.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"velocity-react": "1.4.3",
|
|
91
91
|
"@zohodesk/variables": "1.2.0",
|
|
92
|
-
"@zohodesk/components": "1.6.
|
|
92
|
+
"@zohodesk/components": "1.6.1",
|
|
93
93
|
"@zohodesk/icons": "1.1.7",
|
|
94
94
|
"@zohodesk/svg": "1.3.1",
|
|
95
95
|
"@zohodesk/virtualizer": "1.0.13",
|