@snack-uikit/attachment 0.3.17-preview-95f36d41.0 → 0.3.17
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 +10 -0
- package/dist/cjs/components/Attachment/Attachment.js +1 -1
- package/dist/cjs/components/AttachmentSquare/components/HoverContent/HoverContent.js +1 -1
- package/dist/esm/components/Attachment/Attachment.js +1 -1
- package/dist/esm/components/AttachmentSquare/components/HoverContent/HoverContent.js +1 -1
- package/package.json +4 -4
- package/src/components/Attachment/Attachment.tsx +1 -1
- package/src/components/AttachmentSquare/components/HoverContent/HoverContent.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.3.17 (2024-12-25)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@snack-uikit/card@0.16.10](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/card/CHANGELOG.md)
|
|
10
|
+
* [@snack-uikit/truncate-string@0.6.3](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/truncate-string/CHANGELOG.md)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## 0.3.16 (2024-12-20)
|
|
7
17
|
|
|
8
18
|
### Only dependencies have been changed
|
|
@@ -24,5 +24,5 @@ export function Attachment(_a) {
|
|
|
24
24
|
const isLoading = loading || loadingImage;
|
|
25
25
|
const title = titleProp || getBaseFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
26
26
|
const description = descriptionProp || getFileExtension(file === null || file === void 0 ? void 0 : file.name);
|
|
27
|
-
return (_jsx(Card, Object.assign({}, extractSupportProps(rest), { outline: true, disabled: !loading && disabled, checked: !loading && checked, multipleSelection: true, className: className, size: size, onClick: !isLoading && !disabled ? onClick : undefined, header: _jsx(AttachmentContext.Provider, { value: { file, truncateVariant, onDelete, onDownload, onRetry, disabled, size, truncate }, children: _jsxs("div", { className: styles.composition, "data-size": size, children: [_jsx(Emblem, { title: title, loading: isLoading, icon: icon, imageData: imageData }), _jsx(TextBlock, { title: title, description: description, error: error }), _jsx(Actions, { hideDownload: isLoading || Boolean(error), hideRetry: isLoading || !error })] }) }) })));
|
|
27
|
+
return (_jsx(Card, Object.assign({}, extractSupportProps(rest), { outline: true, disabled: !loading && disabled, checked: !loading && checked, multipleSelection: true, className: className, size: size, onClick: !isLoading && !disabled ? onClick : undefined, header: _jsx(AttachmentContext.Provider, { value: { file, truncateVariant, onDelete, onDownload, onRetry, disabled, size, truncate }, children: _jsxs("div", { className: styles.composition, "data-size": size, children: [_jsx(Emblem, { title: title, loading: isLoading, icon: icon, imageData: imageData }), _jsx(TextBlock, { title: title, description: description, error: error }), _jsx(Actions, { hideDownload: isLoading || Boolean(error), hideRetry: isLoading || !Boolean(error) })] }) }) })));
|
|
28
28
|
}
|
|
@@ -7,5 +7,5 @@ export function HoverContent({ title, description, error, className = '' }) {
|
|
|
7
7
|
const { disabled, size } = useAttachmentContext();
|
|
8
8
|
return (_jsxs("div", { className: cn(styles.composition, {
|
|
9
9
|
[className]: !disabled && !error,
|
|
10
|
-
}), "data-size": size, children: [_jsx(TextBlock, { title: title, error: error, description: !error ? description : undefined, align: 'center' }), _jsx(Actions, { hideDownload: Boolean(error), hideRetry: !error })] }));
|
|
10
|
+
}), "data-size": size, children: [_jsx(TextBlock, { title: title, error: error, description: !error ? description : undefined, align: 'center' }), _jsx(Actions, { hideDownload: Boolean(error), hideRetry: !Boolean(error) })] }));
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Attachment",
|
|
7
|
-
"version": "0.3.17
|
|
7
|
+
"version": "0.3.17",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@snack-uikit/button": "0.19.5",
|
|
40
|
-
"@snack-uikit/card": "0.16.10
|
|
40
|
+
"@snack-uikit/card": "0.16.10",
|
|
41
41
|
"@snack-uikit/icon-predefined": "0.7.2",
|
|
42
42
|
"@snack-uikit/icons": "0.24.1",
|
|
43
43
|
"@snack-uikit/loaders": "0.9.0",
|
|
44
|
-
"@snack-uikit/truncate-string": "0.6.3
|
|
44
|
+
"@snack-uikit/truncate-string": "0.6.3",
|
|
45
45
|
"@snack-uikit/utils": "3.6.0",
|
|
46
46
|
"classnames": "2.5.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "5f981cd3d7c5169db2bff1d58db36b6c83da6861"
|
|
49
49
|
}
|
|
@@ -51,7 +51,7 @@ export function Attachment({
|
|
|
51
51
|
<div className={styles.composition} data-size={size}>
|
|
52
52
|
<Emblem title={title} loading={isLoading} icon={icon} imageData={imageData} />
|
|
53
53
|
<TextBlock title={title} description={description} error={error} />
|
|
54
|
-
<Actions hideDownload={isLoading || Boolean(error)} hideRetry={isLoading || !error} />
|
|
54
|
+
<Actions hideDownload={isLoading || Boolean(error)} hideRetry={isLoading || !Boolean(error)} />
|
|
55
55
|
</div>
|
|
56
56
|
</AttachmentContext.Provider>
|
|
57
57
|
}
|
|
@@ -19,7 +19,7 @@ export function HoverContent({ title, description, error, className = '' }: Hove
|
|
|
19
19
|
>
|
|
20
20
|
<TextBlock title={title} error={error} description={!error ? description : undefined} align='center' />
|
|
21
21
|
|
|
22
|
-
<Actions hideDownload={Boolean(error)} hideRetry={!error} />
|
|
22
|
+
<Actions hideDownload={Boolean(error)} hideRetry={!Boolean(error)} />
|
|
23
23
|
</div>
|
|
24
24
|
);
|
|
25
25
|
}
|