@cloud-ru/uikit-product-load-status 0.0.56 → 0.0.57
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
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.0.57 (2025-11-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **PD-3377:** removed contributors ([121640f](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/121640f7b88b20a728a6ad2c39de8841532bb308))
|
|
12
|
+
* **PD-3377:** replaced tokens import to snack-uikit scoped package ([dd13d3b](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/dd13d3b7134a4b0d4696830dcd78c0e790700d09))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## 0.0.56 (2025-11-13)
|
|
7
19
|
|
|
8
20
|
### Only dependencies have been changed
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WithSupportProps } from '@
|
|
1
|
+
import { WithSupportProps } from '@cloud-ru/uikit-product-utils';
|
|
2
2
|
import { ProgressBarProps } from '@snack-uikit/progress-bar';
|
|
3
3
|
import { LoadValueType, ProgressLimitList } from './types';
|
|
4
4
|
export type LoadStatusProps = WithSupportProps<{
|
|
@@ -17,9 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.LoadStatus = LoadStatus;
|
|
18
18
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
const classnames_1 = __importDefault(require("classnames"));
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
20
|
+
const uikit_product_icons_1 = require("@cloud-ru/uikit-product-icons");
|
|
21
|
+
const uikit_product_utils_1 = require("@cloud-ru/uikit-product-utils");
|
|
22
|
+
const figma_tokens_1 = require("@snack-uikit/figma-tokens");
|
|
23
23
|
const progress_bar_1 = require("@snack-uikit/progress-bar");
|
|
24
24
|
const typography_1 = require("@snack-uikit/typography");
|
|
25
25
|
const constants_1 = require("./constants");
|
|
@@ -30,5 +30,5 @@ function LoadStatus(_a) {
|
|
|
30
30
|
const progressAppearance = (0, utils_1.getProgressBarColor)(progress, appearanceByProgress);
|
|
31
31
|
const isShowHeader = label || value || valueType !== 'none';
|
|
32
32
|
const symbol = constants_1.SYMBOL_BY_TYPE[valueType];
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.loadStatus, className) }, (0, uikit_product_utils_1.extractSupportProps)(props), { children: [isShowHeader && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.header, children: [(0, jsx_runtime_1.jsxs)(typography_1.Typography.SansBodyS, { children: [label, (0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_1.default.labelValue, children: value })] }), symbol && ((0, jsx_runtime_1.jsx)(typography_1.Typography.SansBodyS, { className: styles_module_scss_1.default.valueSymbol, children: `${progress} ${symbol}` }))] })), (0, jsx_runtime_1.jsx)(progress_bar_1.ProgressBar, { progress: progress, size: size, appearance: progressAppearance }), hint && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.hintWrapper, children: [showErrorIcon && (0, jsx_runtime_1.jsx)(uikit_product_icons_1.CrossFilledSVG, { color:
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: (0, classnames_1.default)(styles_module_scss_1.default.loadStatus, className) }, (0, uikit_product_utils_1.extractSupportProps)(props), { children: [isShowHeader && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.header, children: [(0, jsx_runtime_1.jsxs)(typography_1.Typography.SansBodyS, { children: [label, (0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_1.default.labelValue, children: value })] }), symbol && ((0, jsx_runtime_1.jsx)(typography_1.Typography.SansBodyS, { className: styles_module_scss_1.default.valueSymbol, children: `${progress} ${symbol}` }))] })), (0, jsx_runtime_1.jsx)(progress_bar_1.ProgressBar, { progress: progress, size: size, appearance: progressAppearance }), hint && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.hintWrapper, children: [showErrorIcon && (0, jsx_runtime_1.jsx)(uikit_product_icons_1.CrossFilledSVG, { color: figma_tokens_1.themeVars.sys.red.accentDefault, size: 16 }), (0, jsx_runtime_1.jsx)(typography_1.Typography.SansBodyS, { className: styles_module_scss_1.default.hint, children: hint })] }))] })));
|
|
34
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WithSupportProps } from '@
|
|
1
|
+
import { WithSupportProps } from '@cloud-ru/uikit-product-utils';
|
|
2
2
|
import { ProgressBarProps } from '@snack-uikit/progress-bar';
|
|
3
3
|
import { LoadValueType, ProgressLimitList } from './types';
|
|
4
4
|
export type LoadStatusProps = WithSupportProps<{
|
|
@@ -11,9 +11,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import cn from 'classnames';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { CrossFilledSVG } from '@cloud-ru/uikit-product-icons';
|
|
15
|
+
import { extractSupportProps } from '@cloud-ru/uikit-product-utils';
|
|
16
|
+
import { themeVars } from '@snack-uikit/figma-tokens';
|
|
17
17
|
import { ProgressBar } from '@snack-uikit/progress-bar';
|
|
18
18
|
import { Typography } from '@snack-uikit/typography';
|
|
19
19
|
import { DEFAULT_APPEARANCE_BY_PROGRESS, SYMBOL_BY_TYPE } from './constants';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-load-status",
|
|
3
3
|
"title": "Load Status",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.57",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.woff",
|
|
@@ -30,18 +30,20 @@
|
|
|
30
30
|
"name": "Akhremenko Grigorii",
|
|
31
31
|
"url": "https://github.com/AGrigorii"
|
|
32
32
|
},
|
|
33
|
-
"contributors": [],
|
|
34
33
|
"license": "Apache-2.0",
|
|
35
34
|
"publishConfig": {
|
|
36
35
|
"access": "public"
|
|
37
36
|
},
|
|
38
37
|
"scripts": {},
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@cloud-ru/uikit-product-icons": "15.1.
|
|
41
|
-
"@cloud-ru/uikit-product-utils": "7.0.
|
|
39
|
+
"@cloud-ru/uikit-product-icons": "15.1.4",
|
|
40
|
+
"@cloud-ru/uikit-product-utils": "7.0.3",
|
|
42
41
|
"@snack-uikit/progress-bar": "0.1.3",
|
|
43
42
|
"@snack-uikit/typography": "0.8.4",
|
|
44
43
|
"classnames": "2.5.1"
|
|
45
44
|
},
|
|
46
|
-
"
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@snack-uikit/figma-tokens": "*"
|
|
47
|
+
},
|
|
48
|
+
"gitHead": "ce69097516055b330a0b05da5e29ac5b66e56284"
|
|
47
49
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import cn from 'classnames';
|
|
2
2
|
|
|
3
|
-
import { themeVars } from '@sbercloud/figma-tokens-cloud-platform';
|
|
4
3
|
import { CrossFilledSVG } from '@cloud-ru/uikit-product-icons';
|
|
5
4
|
import { extractSupportProps, WithSupportProps } from '@cloud-ru/uikit-product-utils';
|
|
5
|
+
import { themeVars } from '@snack-uikit/figma-tokens';
|
|
6
6
|
import { ProgressBar, ProgressBarProps } from '@snack-uikit/progress-bar';
|
|
7
7
|
import { Typography } from '@snack-uikit/typography';
|
|
8
8
|
|