@snack-uikit/toaster 0.11.31 → 0.11.32
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/CHANGELOG.md +11 -0
- package/dist/cjs/components/ToastUpload/helperComponents/FileItem/FileItem.js +4 -2
- package/dist/cjs/components/ToastUpload/helperComponents/FileItem/styles.module.css +4 -0
- package/dist/esm/components/ToastUpload/helperComponents/FileItem/FileItem.js +1 -1
- package/dist/esm/components/ToastUpload/helperComponents/FileItem/styles.module.css +4 -0
- package/package.json +2 -2
- package/src/components/ToastUpload/helperComponents/FileItem/FileItem.tsx +7 -2
- package/src/components/ToastUpload/helperComponents/FileItem/styles.module.scss +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 0.11.32 (2026-09-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **PDS-4415:** tooltip under toaster ([b1a3a24](https://github.com/cloud-ru-tech/snack-uikit/commit/b1a3a24af5a37a14de83fc50dbbfb2fba6b4d2da))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.11.31 (2026-08-07)
|
|
7
18
|
|
|
8
19
|
### Only dependencies have been changed
|
|
@@ -47,7 +47,8 @@ function FileItem(_ref) {
|
|
|
47
47
|
children: [(0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, {
|
|
48
48
|
text: item.title,
|
|
49
49
|
className: styles_module_scss_1.default.fileTitle,
|
|
50
|
-
maxLines: 1
|
|
50
|
+
maxLines: 1,
|
|
51
|
+
tooltipClassName: styles_module_scss_1.default.tooltip
|
|
51
52
|
}), showLink && (0, jsx_runtime_1.jsx)(link_1.Link, {
|
|
52
53
|
text: (_a = item.link) === null || _a === void 0 ? void 0 : _a.text,
|
|
53
54
|
href: (_b = item.link) === null || _b === void 0 ? void 0 : _b.href,
|
|
@@ -77,7 +78,8 @@ function FileItem(_ref) {
|
|
|
77
78
|
}), (0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, {
|
|
78
79
|
className: styles_module_scss_1.default.fileStatusDescription,
|
|
79
80
|
"data-status": item.status,
|
|
80
|
-
text: item.statusLabel
|
|
81
|
+
text: item.statusLabel,
|
|
82
|
+
tooltipClassName: styles_module_scss_1.default.tooltip
|
|
81
83
|
})]
|
|
82
84
|
}), (0, jsx_runtime_1.jsx)("span", {
|
|
83
85
|
className: styles_module_scss_1.default.fileSize,
|
|
@@ -22,5 +22,5 @@ export function FileItem({ item: initItem }) {
|
|
|
22
22
|
return setItem(initItem);
|
|
23
23
|
}, [initItem]);
|
|
24
24
|
const isError = item.status === 'error';
|
|
25
|
-
return (_jsxs("div", { className: styles.fileLine, "data-test-id": TOAST_UPLOAD_TEST_IDS.uploadItem, children: [_jsxs("div", { className: styles.fileHeadLine, children: [_jsx(TruncateString, { text: item.title, className: styles.fileTitle, maxLines: 1 }), showLink && (_jsx(Link, { text: (_a = item.link) === null || _a === void 0 ? void 0 : _a.text, href: (_b = item.link) === null || _b === void 0 ? void 0 : _b.href, size: 's', truncateVariant: 'end', onClick: (_c = item.link) === null || _c === void 0 ? void 0 : _c.onClick, appearance: 'invert-neutral', textMode: 'accent', "data-test-id": TOAST_UPLOAD_TEST_IDS.uploadItemLink })), showCancelButton && (_jsx(ButtonIcon, { onClick: item.actions.onCancel, "data-test-id": TOAST_UPLOAD_TEST_IDS.uploadItemCancel, children: _jsx(CrossSVG, {}) }))] }), _jsx(ProgressBar, { progress: isError ? 100 : item.progress, size: 'xs', appearance: progressBarAppearanceByStatus[item.status] }), _jsxs("div", { className: styles.fileStatusLine, children: [_jsxs("div", { className: styles.fileStatusWrap, children: [_jsx(LoadingStatus, { status: item.status, actions: item.actions, isFileItem: true }), _jsx(TruncateString, { className: styles.fileStatusDescription, "data-status": item.status, text: item.statusLabel })] }), _jsx("span", { className: styles.fileSize, "data-status": item.status, children: item.formattedSize }), _jsx("span", { className: styles.fileStatusPercentage, "data-status": item.status, children: formatPercent(isError ? 0 : item.progress) })] })] }));
|
|
25
|
+
return (_jsxs("div", { className: styles.fileLine, "data-test-id": TOAST_UPLOAD_TEST_IDS.uploadItem, children: [_jsxs("div", { className: styles.fileHeadLine, children: [_jsx(TruncateString, { text: item.title, className: styles.fileTitle, maxLines: 1, tooltipClassName: styles.tooltip }), showLink && (_jsx(Link, { text: (_a = item.link) === null || _a === void 0 ? void 0 : _a.text, href: (_b = item.link) === null || _b === void 0 ? void 0 : _b.href, size: 's', truncateVariant: 'end', onClick: (_c = item.link) === null || _c === void 0 ? void 0 : _c.onClick, appearance: 'invert-neutral', textMode: 'accent', "data-test-id": TOAST_UPLOAD_TEST_IDS.uploadItemLink })), showCancelButton && (_jsx(ButtonIcon, { onClick: item.actions.onCancel, "data-test-id": TOAST_UPLOAD_TEST_IDS.uploadItemCancel, children: _jsx(CrossSVG, {}) }))] }), _jsx(ProgressBar, { progress: isError ? 100 : item.progress, size: 'xs', appearance: progressBarAppearanceByStatus[item.status] }), _jsxs("div", { className: styles.fileStatusLine, children: [_jsxs("div", { className: styles.fileStatusWrap, children: [_jsx(LoadingStatus, { status: item.status, actions: item.actions, isFileItem: true }), _jsx(TruncateString, { className: styles.fileStatusDescription, "data-status": item.status, text: item.statusLabel, tooltipClassName: styles.tooltip })] }), _jsx("span", { className: styles.fileSize, "data-status": item.status, children: item.formattedSize }), _jsx("span", { className: styles.fileStatusPercentage, "data-status": item.status, children: formatPercent(isError ? 0 : item.progress) })] })] }));
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Toaster",
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.32",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@snack-uikit/locale": "*"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "6d7109b06abb5774e2bb9ee11663dece10652b68"
|
|
55
55
|
}
|
|
@@ -35,7 +35,7 @@ export function FileItem({ item: initItem }: FileItemProps) {
|
|
|
35
35
|
return (
|
|
36
36
|
<div className={styles.fileLine} data-test-id={TOAST_UPLOAD_TEST_IDS.uploadItem}>
|
|
37
37
|
<div className={styles.fileHeadLine}>
|
|
38
|
-
<TruncateString text={item.title} className={styles.fileTitle} maxLines={1} />
|
|
38
|
+
<TruncateString text={item.title} className={styles.fileTitle} maxLines={1} tooltipClassName={styles.tooltip} />
|
|
39
39
|
|
|
40
40
|
{showLink && (
|
|
41
41
|
<Link
|
|
@@ -67,7 +67,12 @@ export function FileItem({ item: initItem }: FileItemProps) {
|
|
|
67
67
|
<div className={styles.fileStatusWrap}>
|
|
68
68
|
<LoadingStatus status={item.status} actions={item.actions} isFileItem />
|
|
69
69
|
|
|
70
|
-
<TruncateString
|
|
70
|
+
<TruncateString
|
|
71
|
+
className={styles.fileStatusDescription}
|
|
72
|
+
data-status={item.status}
|
|
73
|
+
text={item.statusLabel}
|
|
74
|
+
tooltipClassName={styles.tooltip}
|
|
75
|
+
/>
|
|
71
76
|
</div>
|
|
72
77
|
|
|
73
78
|
<span className={styles.fileSize} data-status={item.status}>
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
color: styles-theme-variables.$sys-invert-neutral-text-main;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
.tooltip {
|
|
30
|
+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
|
|
31
|
+
z-index: 1;
|
|
32
|
+
}
|
|
29
33
|
|
|
30
34
|
.fileStatusLine {
|
|
31
35
|
@include styles-theme-variables.composite-var(
|