@zohodesk/dot 1.0.0-temp-187.25 → 1.0.0-temp-225
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 +5 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +425 -422
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +425 -422
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +425 -422
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +16 -16
- package/es/AttachmentViewer/AttachmentViewer.js +9 -3
- package/es/AttachmentViewer/props/defaultProps.js +2 -1
- package/es/AttachmentViewer/props/propTypes.js +3 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +3 -4
- package/es/list/DepartmentDropDown/props/propTypes.js +1 -2
- package/es/list/Subject/Subject.js +2 -3
- package/es/list/Subject/__tests__/Subject.spec.js +117 -0
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +131 -0
- package/es/list/Subject/props/defaultProps.js +3 -2
- package/es/list/listCommon.module.css +2 -2
- package/lib/AttachmentViewer/AttachmentViewer.js +9 -3
- package/lib/AttachmentViewer/props/defaultProps.js +2 -1
- package/lib/AttachmentViewer/props/propTypes.js +3 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -5
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -2
- package/lib/list/Subject/Subject.js +2 -3
- package/lib/list/Subject/__tests__/Subject.spec.js +124 -0
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +131 -0
- package/lib/list/Subject/props/defaultProps.js +5 -2
- package/lib/list/listCommon.module.css +2 -2
- package/package.json +9 -9
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
.classic .floatingIconContainer {
|
|
42
42
|
display: none;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
/*Active:ignore*/
|
|
45
45
|
.compact .floatingIconContainer,
|
|
46
46
|
.superCompact .floatingIconContainer,
|
|
47
47
|
.listContainer:hover .classic .floatingIconContainer,
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
position: relative;
|
|
70
70
|
transition: var(--zd_transition3) all ease;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
/*Active:ignore*/
|
|
73
73
|
.listContainer:hover .compact .floatingIconContainer,
|
|
74
74
|
.listContainer:hover .superCompact .floatingIconContainer,
|
|
75
75
|
.hoveredStyle .compact .floatingIconContainer,
|
|
@@ -543,7 +543,9 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
543
543
|
i18nKeys = _this$props2.i18nKeys,
|
|
544
544
|
isActive = _this$props2.isActive,
|
|
545
545
|
dataId = _this$props2.dataId,
|
|
546
|
-
customProps = _this$props2.customProps
|
|
546
|
+
customProps = _this$props2.customProps,
|
|
547
|
+
showCount = _this$props2.showCount,
|
|
548
|
+
renderCustomIcons = _this$props2.renderCustomIcons;
|
|
547
549
|
var _customProps$avatarPr = customProps.avatarProps,
|
|
548
550
|
avatarProps = _customProps$avatarPr === void 0 ? {} : _customProps$avatarPr;
|
|
549
551
|
var totalLen = data.length;
|
|
@@ -585,7 +587,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
585
587
|
"data-title": selectedAttachment.name,
|
|
586
588
|
dataId: "attachName",
|
|
587
589
|
id: ariaId
|
|
588
|
-
}, selectedAttachment.name), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
590
|
+
}, selectedAttachment.name), showCount && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
589
591
|
flexible: true,
|
|
590
592
|
className: _AttachmentViewerModule["default"].count,
|
|
591
593
|
dataId: "attachCountContainer"
|
|
@@ -597,7 +599,11 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
|
|
|
597
599
|
align: uptoTablet ? 'bottom' : 'center',
|
|
598
600
|
wrap: "wrap",
|
|
599
601
|
isCover: false
|
|
600
|
-
},
|
|
602
|
+
}, typeof renderCustomIcons === 'function' && renderCustomIcons({
|
|
603
|
+
selectedAttachment: selectedAttachment,
|
|
604
|
+
selectedIndex: selectedIndex,
|
|
605
|
+
totalLen: totalLen
|
|
606
|
+
}), canZoom ? isZoomed ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
601
607
|
className: uptoTablet ? _AttachmentViewerModule["default"].mobileMenu : _AttachmentViewerModule["default"].menu,
|
|
602
608
|
onClick: _this6.zoomOut.bind(_this6, selectedIndex),
|
|
603
609
|
"data-id": "zoomOut",
|
|
@@ -56,6 +56,8 @@ var AttachmentViewer_propTypes = {
|
|
|
56
56
|
renderUnSupportedElement: _propTypes["default"].func,
|
|
57
57
|
customProps: _propTypes["default"].shape({
|
|
58
58
|
avatarProps: _propTypes["default"].exact(_propTypes2.propTypes)
|
|
59
|
-
})
|
|
59
|
+
}),
|
|
60
|
+
showCount: _propTypes["default"].bool,
|
|
61
|
+
renderCustomIcons: _propTypes["default"].func
|
|
60
62
|
};
|
|
61
63
|
exports.AttachmentViewer_propTypes = AttachmentViewer_propTypes;
|
|
@@ -105,9 +105,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
105
105
|
i18nKeys = _this$props3.i18nKeys,
|
|
106
106
|
customProps = _this$props3.customProps;
|
|
107
107
|
var _customProps$ToggleDr = customProps.ToggleDropDownProps,
|
|
108
|
-
ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr
|
|
109
|
-
_customProps$Departme = customProps.DepartmentTextProps,
|
|
110
|
-
DepartmentTextProps = _customProps$Departme === void 0 ? {} : _customProps$Departme;
|
|
108
|
+
ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr;
|
|
111
109
|
var _i18nKeys$title = i18nKeys.title,
|
|
112
110
|
title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
|
|
113
111
|
_i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
|
|
@@ -127,10 +125,10 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
127
125
|
}, ToggleDropDownProps, {
|
|
128
126
|
title: title,
|
|
129
127
|
options: departmentList,
|
|
130
|
-
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText,
|
|
128
|
+
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
|
|
131
129
|
text: departmentName,
|
|
132
130
|
dataTitle: departmentName
|
|
133
|
-
}
|
|
131
|
+
}),
|
|
134
132
|
onClick: this.onMoveDepartment,
|
|
135
133
|
isEditable: isEditable,
|
|
136
134
|
onSelectLabel: onSelectLabel,
|
|
@@ -32,7 +32,6 @@ var propTypes = (_propTypes = {
|
|
|
32
32
|
searchErrorText: _propTypes2["default"].string,
|
|
33
33
|
placeholder: _propTypes2["default"].string
|
|
34
34
|
})), _defineProperty(_propTypes, "customProps", _propTypes2["default"].shape({
|
|
35
|
-
ToggleDropDownProps: _propTypes2["default"].object
|
|
36
|
-
DepartmentTextProps: _propTypes2["default"].object
|
|
35
|
+
ToggleDropDownProps: _propTypes2["default"].object
|
|
37
36
|
})), _propTypes);
|
|
38
37
|
exports.propTypes = propTypes;
|
|
@@ -105,13 +105,12 @@ var Subject = /*#__PURE__*/function (_Component) {
|
|
|
105
105
|
href: href,
|
|
106
106
|
urlData: urlData,
|
|
107
107
|
onClick: onClick,
|
|
108
|
-
target: target
|
|
108
|
+
target: target,
|
|
109
|
+
dataId: dataId
|
|
109
110
|
}, LinkProps), children ? children : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
110
111
|
$tagAttributes_text: linkTagAttributes,
|
|
111
112
|
$i18n_dataTitle: text,
|
|
112
113
|
$ui_className: "".concat(_SubjectModule["default"].subject, " ").concat(_cssUtils.whiteSpaceClassMapping[whiteSpace], " ").concat(className, " ").concat(_SubjectModule["default"].cursorPointer),
|
|
113
|
-
customId: dataId,
|
|
114
|
-
testId: dataId,
|
|
115
114
|
$flag_dotted: isDotted,
|
|
116
115
|
$ui_weight: fontWeight,
|
|
117
116
|
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
@@ -4,6 +4,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
4
4
|
|
|
5
5
|
var _react2 = require("@testing-library/react");
|
|
6
6
|
|
|
7
|
+
require("@testing-library/jest-dom");
|
|
8
|
+
|
|
7
9
|
var _Subject = _interopRequireDefault(require("../Subject"));
|
|
8
10
|
|
|
9
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -24,4 +26,126 @@ describe('Subject', function () {
|
|
|
24
26
|
|
|
25
27
|
expect(asFragment()).toMatchSnapshot();
|
|
26
28
|
});
|
|
29
|
+
test.each(whiteSpace)('rendering the whiteSpace of -%s', function (whiteSpace) {
|
|
30
|
+
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
31
|
+
whiteSpace: whiteSpace,
|
|
32
|
+
isLink: true
|
|
33
|
+
})),
|
|
34
|
+
asFragment = _render3.asFragment;
|
|
35
|
+
|
|
36
|
+
expect(asFragment()).toMatchSnapshot();
|
|
37
|
+
});
|
|
38
|
+
test('renders data attributes on link wrapper', function () {
|
|
39
|
+
var dataId = 'subject-id';
|
|
40
|
+
|
|
41
|
+
var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
42
|
+
isLink: true,
|
|
43
|
+
dataId: dataId
|
|
44
|
+
})),
|
|
45
|
+
container = _render4.container;
|
|
46
|
+
|
|
47
|
+
expect(container).toMatchSnapshot();
|
|
48
|
+
var anchor = container.querySelector('a');
|
|
49
|
+
expect(anchor.getAttribute('data-id')).toBe(dataId);
|
|
50
|
+
expect(anchor.getAttribute('data-test-id')).toBe(dataId);
|
|
51
|
+
});
|
|
52
|
+
test('renders text content', function () {
|
|
53
|
+
var text = 'Test Subject';
|
|
54
|
+
|
|
55
|
+
var _render5 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
56
|
+
text: text
|
|
57
|
+
})),
|
|
58
|
+
container = _render5.container;
|
|
59
|
+
|
|
60
|
+
expect(container.textContent).toContain(text);
|
|
61
|
+
});
|
|
62
|
+
test('renders with custom className', function () {
|
|
63
|
+
var customClass = 'custom-subject';
|
|
64
|
+
|
|
65
|
+
var _render6 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
66
|
+
className: customClass
|
|
67
|
+
})),
|
|
68
|
+
container = _render6.container;
|
|
69
|
+
|
|
70
|
+
expect(container.querySelector(".".concat(customClass))).not.toBeNull();
|
|
71
|
+
});
|
|
72
|
+
test('renders dotted text when isDotted is true', function () {
|
|
73
|
+
var _render7 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
74
|
+
text: "Test",
|
|
75
|
+
isDotted: true
|
|
76
|
+
})),
|
|
77
|
+
asFragment = _render7.asFragment;
|
|
78
|
+
|
|
79
|
+
expect(asFragment()).toMatchSnapshot();
|
|
80
|
+
});
|
|
81
|
+
test('renders children when provided', function () {
|
|
82
|
+
var _render8 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
83
|
+
isLink: true
|
|
84
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "Custom Child"))),
|
|
85
|
+
container = _render8.container;
|
|
86
|
+
|
|
87
|
+
expect(container.querySelector('span').textContent).toBe('Custom Child');
|
|
88
|
+
});
|
|
89
|
+
test('applies fontWeight prop', function () {
|
|
90
|
+
var _render9 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
91
|
+
text: "Test",
|
|
92
|
+
fontWeight: "bold"
|
|
93
|
+
})),
|
|
94
|
+
asFragment = _render9.asFragment;
|
|
95
|
+
|
|
96
|
+
expect(asFragment()).toMatchSnapshot();
|
|
97
|
+
});
|
|
98
|
+
test('renders with href when isLink is true', function () {
|
|
99
|
+
var href = 'https://example.com';
|
|
100
|
+
|
|
101
|
+
var _render10 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
102
|
+
isLink: true,
|
|
103
|
+
href: href
|
|
104
|
+
})),
|
|
105
|
+
container = _render10.container;
|
|
106
|
+
|
|
107
|
+
expect(container.querySelector('a').getAttribute('href')).toBe(href);
|
|
108
|
+
});
|
|
109
|
+
test('calls onClick when link is clicked', function () {
|
|
110
|
+
var handleClick = jest.fn();
|
|
111
|
+
|
|
112
|
+
var _render11 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
113
|
+
isLink: true,
|
|
114
|
+
onClick: handleClick
|
|
115
|
+
})),
|
|
116
|
+
container = _render11.container;
|
|
117
|
+
|
|
118
|
+
container.querySelector('a').click();
|
|
119
|
+
expect(handleClick).toHaveBeenCalled();
|
|
120
|
+
});
|
|
121
|
+
test('renders as non-link when isLink is false', function () {
|
|
122
|
+
var _render12 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
123
|
+
text: "Test",
|
|
124
|
+
isLink: false
|
|
125
|
+
})),
|
|
126
|
+
container = _render12.container;
|
|
127
|
+
|
|
128
|
+
expect(container.querySelector('a')).toBeNull();
|
|
129
|
+
});
|
|
130
|
+
test('applies custom className to non-link element', function () {
|
|
131
|
+
var customClass = 'test-class';
|
|
132
|
+
|
|
133
|
+
var _render13 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
134
|
+
text: "Test",
|
|
135
|
+
className: customClass,
|
|
136
|
+
isLink: false
|
|
137
|
+
})),
|
|
138
|
+
container = _render13.container;
|
|
139
|
+
|
|
140
|
+
expect(container.querySelector(".".concat(customClass))).not.toBeNull();
|
|
141
|
+
});
|
|
142
|
+
test('renders with target prop on link', function () {
|
|
143
|
+
var _render14 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Subject["default"], {
|
|
144
|
+
isLink: true,
|
|
145
|
+
target: "_blank"
|
|
146
|
+
})),
|
|
147
|
+
container = _render14.container;
|
|
148
|
+
|
|
149
|
+
expect(container.querySelector('a').getAttribute('target')).toBe('_blank');
|
|
150
|
+
});
|
|
27
151
|
});
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`Subject applies fontWeight prop 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<div
|
|
6
|
+
class="dotted font_bold subject whiteSpace_pre"
|
|
7
|
+
data-title="Test"
|
|
8
|
+
data-title-wrap="pre"
|
|
9
|
+
>
|
|
10
|
+
Test
|
|
11
|
+
</div>
|
|
12
|
+
</DocumentFragment>
|
|
13
|
+
`;
|
|
14
|
+
|
|
3
15
|
exports[`Subject rendering the defult props 1`] = `
|
|
4
16
|
<DocumentFragment>
|
|
5
17
|
<div
|
|
@@ -18,6 +30,21 @@ exports[`Subject rendering the whiteSpace of -break-spaces 1`] = `
|
|
|
18
30
|
</DocumentFragment>
|
|
19
31
|
`;
|
|
20
32
|
|
|
33
|
+
exports[`Subject rendering the whiteSpace of -break-spaces 2`] = `
|
|
34
|
+
<DocumentFragment>
|
|
35
|
+
<a
|
|
36
|
+
class="container "
|
|
37
|
+
href="javascript:void(0);"
|
|
38
|
+
rel="noopener noreferrer"
|
|
39
|
+
>
|
|
40
|
+
<div
|
|
41
|
+
class="dotted font_regular subject whiteSpace_breakSpaces cursorPointer"
|
|
42
|
+
data-title-wrap="break-spaces"
|
|
43
|
+
/>
|
|
44
|
+
</a>
|
|
45
|
+
</DocumentFragment>
|
|
46
|
+
`;
|
|
47
|
+
|
|
21
48
|
exports[`Subject rendering the whiteSpace of -normal 1`] = `
|
|
22
49
|
<DocumentFragment>
|
|
23
50
|
<div
|
|
@@ -27,6 +54,21 @@ exports[`Subject rendering the whiteSpace of -normal 1`] = `
|
|
|
27
54
|
</DocumentFragment>
|
|
28
55
|
`;
|
|
29
56
|
|
|
57
|
+
exports[`Subject rendering the whiteSpace of -normal 2`] = `
|
|
58
|
+
<DocumentFragment>
|
|
59
|
+
<a
|
|
60
|
+
class="container "
|
|
61
|
+
href="javascript:void(0);"
|
|
62
|
+
rel="noopener noreferrer"
|
|
63
|
+
>
|
|
64
|
+
<div
|
|
65
|
+
class="dotted font_regular subject whiteSpace_normal cursorPointer"
|
|
66
|
+
data-title-wrap="normal"
|
|
67
|
+
/>
|
|
68
|
+
</a>
|
|
69
|
+
</DocumentFragment>
|
|
70
|
+
`;
|
|
71
|
+
|
|
30
72
|
exports[`Subject rendering the whiteSpace of -nowrap 1`] = `
|
|
31
73
|
<DocumentFragment>
|
|
32
74
|
<div
|
|
@@ -36,6 +78,21 @@ exports[`Subject rendering the whiteSpace of -nowrap 1`] = `
|
|
|
36
78
|
</DocumentFragment>
|
|
37
79
|
`;
|
|
38
80
|
|
|
81
|
+
exports[`Subject rendering the whiteSpace of -nowrap 2`] = `
|
|
82
|
+
<DocumentFragment>
|
|
83
|
+
<a
|
|
84
|
+
class="container "
|
|
85
|
+
href="javascript:void(0);"
|
|
86
|
+
rel="noopener noreferrer"
|
|
87
|
+
>
|
|
88
|
+
<div
|
|
89
|
+
class="dotted font_regular subject whiteSpace_nowrap cursorPointer"
|
|
90
|
+
data-title-wrap="nowrap"
|
|
91
|
+
/>
|
|
92
|
+
</a>
|
|
93
|
+
</DocumentFragment>
|
|
94
|
+
`;
|
|
95
|
+
|
|
39
96
|
exports[`Subject rendering the whiteSpace of -pre 1`] = `
|
|
40
97
|
<DocumentFragment>
|
|
41
98
|
<div
|
|
@@ -45,6 +102,21 @@ exports[`Subject rendering the whiteSpace of -pre 1`] = `
|
|
|
45
102
|
</DocumentFragment>
|
|
46
103
|
`;
|
|
47
104
|
|
|
105
|
+
exports[`Subject rendering the whiteSpace of -pre 2`] = `
|
|
106
|
+
<DocumentFragment>
|
|
107
|
+
<a
|
|
108
|
+
class="container "
|
|
109
|
+
href="javascript:void(0);"
|
|
110
|
+
rel="noopener noreferrer"
|
|
111
|
+
>
|
|
112
|
+
<div
|
|
113
|
+
class="dotted font_regular subject whiteSpace_pre cursorPointer"
|
|
114
|
+
data-title-wrap="pre"
|
|
115
|
+
/>
|
|
116
|
+
</a>
|
|
117
|
+
</DocumentFragment>
|
|
118
|
+
`;
|
|
119
|
+
|
|
48
120
|
exports[`Subject rendering the whiteSpace of -pre-line 1`] = `
|
|
49
121
|
<DocumentFragment>
|
|
50
122
|
<div
|
|
@@ -54,6 +126,21 @@ exports[`Subject rendering the whiteSpace of -pre-line 1`] = `
|
|
|
54
126
|
</DocumentFragment>
|
|
55
127
|
`;
|
|
56
128
|
|
|
129
|
+
exports[`Subject rendering the whiteSpace of -pre-line 2`] = `
|
|
130
|
+
<DocumentFragment>
|
|
131
|
+
<a
|
|
132
|
+
class="container "
|
|
133
|
+
href="javascript:void(0);"
|
|
134
|
+
rel="noopener noreferrer"
|
|
135
|
+
>
|
|
136
|
+
<div
|
|
137
|
+
class="dotted font_regular subject whiteSpace_preLine cursorPointer"
|
|
138
|
+
data-title-wrap="pre-line"
|
|
139
|
+
/>
|
|
140
|
+
</a>
|
|
141
|
+
</DocumentFragment>
|
|
142
|
+
`;
|
|
143
|
+
|
|
57
144
|
exports[`Subject rendering the whiteSpace of -pre-wrap 1`] = `
|
|
58
145
|
<DocumentFragment>
|
|
59
146
|
<div
|
|
@@ -62,3 +149,47 @@ exports[`Subject rendering the whiteSpace of -pre-wrap 1`] = `
|
|
|
62
149
|
/>
|
|
63
150
|
</DocumentFragment>
|
|
64
151
|
`;
|
|
152
|
+
|
|
153
|
+
exports[`Subject rendering the whiteSpace of -pre-wrap 2`] = `
|
|
154
|
+
<DocumentFragment>
|
|
155
|
+
<a
|
|
156
|
+
class="container "
|
|
157
|
+
href="javascript:void(0);"
|
|
158
|
+
rel="noopener noreferrer"
|
|
159
|
+
>
|
|
160
|
+
<div
|
|
161
|
+
class="dotted font_regular subject whiteSpace_preWrap cursorPointer"
|
|
162
|
+
data-title-wrap="pre-wrap"
|
|
163
|
+
/>
|
|
164
|
+
</a>
|
|
165
|
+
</DocumentFragment>
|
|
166
|
+
`;
|
|
167
|
+
|
|
168
|
+
exports[`Subject renders data attributes on link wrapper 1`] = `
|
|
169
|
+
<div>
|
|
170
|
+
<a
|
|
171
|
+
class="container "
|
|
172
|
+
data-id="subject-id"
|
|
173
|
+
data-test-id="subject-id"
|
|
174
|
+
href="javascript:void(0);"
|
|
175
|
+
rel="noopener noreferrer"
|
|
176
|
+
>
|
|
177
|
+
<div
|
|
178
|
+
class="dotted font_regular subject whiteSpace_pre cursorPointer"
|
|
179
|
+
data-title-wrap="pre"
|
|
180
|
+
/>
|
|
181
|
+
</a>
|
|
182
|
+
</div>
|
|
183
|
+
`;
|
|
184
|
+
|
|
185
|
+
exports[`Subject renders dotted text when isDotted is true 1`] = `
|
|
186
|
+
<DocumentFragment>
|
|
187
|
+
<div
|
|
188
|
+
class="dotted font_regular subject whiteSpace_pre"
|
|
189
|
+
data-title="Test"
|
|
190
|
+
data-title-wrap="pre"
|
|
191
|
+
>
|
|
192
|
+
Test
|
|
193
|
+
</div>
|
|
194
|
+
</DocumentFragment>
|
|
195
|
+
`;
|
|
@@ -4,14 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultProps = void 0;
|
|
7
|
+
|
|
8
|
+
var _constants = require("@zohodesk/dotkit/es/utils/constants");
|
|
9
|
+
|
|
7
10
|
var defaultProps = {
|
|
8
11
|
isLink: false,
|
|
9
12
|
fontWeight: 'regular',
|
|
10
13
|
className: '',
|
|
11
14
|
isDotted: true,
|
|
12
|
-
customProps:
|
|
15
|
+
customProps: _constants.DUMMY_OBJECT,
|
|
13
16
|
whiteSpace: 'pre',
|
|
14
17
|
isHighlighted: false,
|
|
15
|
-
highlightData:
|
|
18
|
+
highlightData: _constants.DUMMY_OBJECT
|
|
16
19
|
};
|
|
17
20
|
exports.defaultProps = defaultProps;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
.classic .floatingIconContainer {
|
|
42
42
|
display: none;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
/*Active:ignore*/
|
|
45
45
|
.compact .floatingIconContainer,
|
|
46
46
|
.superCompact .floatingIconContainer,
|
|
47
47
|
.listContainer:hover .classic .floatingIconContainer,
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
position: relative;
|
|
70
70
|
transition: var(--zd_transition3) all ease;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
/*Active:ignore*/
|
|
73
73
|
.listContainer:hover .compact .floatingIconContainer,
|
|
74
74
|
.listContainer:hover .superCompact .floatingIconContainer,
|
|
75
75
|
.hoveredStyle .compact .floatingIconContainer,
|
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-225",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"snap-update": "npm run test-clean && npm run test -- -u",
|
|
35
35
|
"sstest": "react-cli sstest",
|
|
36
36
|
"common_package_build": "cd ../common && npm run build && cd ../dot",
|
|
37
|
-
"prepublishOnly": "node prePublish.js && npm run css:review && npm run review:props",
|
|
37
|
+
"prepublishOnly": "node prePublish.js && npm run downloadOnly && npm run css:review && npm run review:props",
|
|
38
38
|
"postpublish": "node postPublish.js",
|
|
39
39
|
"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",
|
|
40
40
|
"download": "npm run downloadOnly && cd ../ && npm run download",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"@zohodesk-private/node-plugins": "1.1.13",
|
|
69
69
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
70
70
|
"@zohodesk/a11y": "2.3.8",
|
|
71
|
-
"@zohodesk/components": "1.6.
|
|
72
|
-
"@zohodesk/hooks": "2.0.
|
|
73
|
-
"@zohodesk/icons": "1.2.
|
|
71
|
+
"@zohodesk/components": "1.6.4",
|
|
72
|
+
"@zohodesk/hooks": "2.0.8",
|
|
73
|
+
"@zohodesk/icons": "1.2.5",
|
|
74
74
|
"@zohodesk/layout": "^3.1.0",
|
|
75
75
|
"@zohodesk/svg": "1.3.2",
|
|
76
76
|
"@zohodesk/utils": "1.3.16",
|
|
@@ -78,19 +78,19 @@
|
|
|
78
78
|
"@zohodesk/virtualizer": "1.0.13",
|
|
79
79
|
"react-sortable-hoc": "^0.8.3",
|
|
80
80
|
"velocity-react": "1.4.3",
|
|
81
|
-
"@zohodesk/dotkit": "1.0.
|
|
81
|
+
"@zohodesk/dotkit": "1.0.8",
|
|
82
82
|
"@zohodesk/react-cli": "1.1.27",
|
|
83
83
|
"@zohodesk/client_build_tool": "0.0.20"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"velocity-react": "1.4.3",
|
|
87
87
|
"@zohodesk/variables": "1.2.0",
|
|
88
|
-
"@zohodesk/components": "1.6.
|
|
89
|
-
"@zohodesk/icons": "1.2.
|
|
88
|
+
"@zohodesk/components": "1.6.4",
|
|
89
|
+
"@zohodesk/icons": "1.2.5",
|
|
90
90
|
"@zohodesk/svg": "1.3.2",
|
|
91
91
|
"@zohodesk/virtualizer": "1.0.13",
|
|
92
92
|
"react-sortable-hoc": "^0.8.3",
|
|
93
|
-
"@zohodesk/hooks": "2.0.
|
|
93
|
+
"@zohodesk/hooks": "2.0.8",
|
|
94
94
|
"@zohodesk/utils": "1.3.16",
|
|
95
95
|
"@zohodesk/a11y": "2.3.8",
|
|
96
96
|
"@zohodesk/layout": "3.1.0"
|