@cloud-ru/uikit-product-quota 0.6.4 → 0.6.6
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 +22 -0
- package/dist/cjs/components/QuotaButtonDropdown/QuotaDropdown.d.ts +24 -0
- package/dist/cjs/components/QuotaButtonDropdown/QuotaDropdown.js +36 -0
- package/dist/cjs/components/QuotaButtonDropdown/components/NoData.d.ts +5 -0
- package/dist/cjs/components/QuotaButtonDropdown/components/NoData.js +15 -0
- package/dist/cjs/components/QuotaButtonDropdown/components/QuotaDropdownContent.d.ts +2 -0
- package/dist/cjs/components/QuotaButtonDropdown/components/QuotaDropdownContent.js +24 -0
- package/dist/cjs/components/QuotaButtonDropdown/components/QuotaDropdownLayout.d.ts +2 -0
- package/dist/cjs/components/QuotaButtonDropdown/components/QuotaDropdownLayout.js +13 -0
- package/dist/cjs/components/QuotaButtonDropdown/components/index.d.ts +1 -0
- package/dist/cjs/components/QuotaButtonDropdown/components/index.js +17 -0
- package/dist/cjs/components/QuotaButtonDropdown/index.d.ts +2 -0
- package/dist/cjs/components/QuotaButtonDropdown/index.js +18 -0
- package/dist/cjs/components/QuotaButtonDropdown/styles.module.css +106 -0
- package/dist/cjs/components/QuotaCard/QuotaCard.d.ts +22 -0
- package/dist/cjs/components/QuotaCard/QuotaCard.js +48 -0
- package/dist/cjs/components/QuotaCard/components/DataRow.d.ts +9 -0
- package/dist/cjs/components/QuotaCard/components/DataRow.js +13 -0
- package/dist/cjs/components/QuotaCard/components/DataSkeleton.d.ts +1 -0
- package/dist/cjs/components/QuotaCard/components/DataSkeleton.js +12 -0
- package/dist/cjs/components/QuotaCard/components/NoData.d.ts +5 -0
- package/dist/cjs/components/QuotaCard/components/NoData.js +15 -0
- package/dist/cjs/components/QuotaCard/components/QuotaCardLayout.d.ts +10 -0
- package/dist/cjs/components/QuotaCard/components/QuotaCardLayout.js +27 -0
- package/dist/cjs/components/QuotaCard/components/index.d.ts +3 -0
- package/dist/cjs/components/QuotaCard/components/index.js +19 -0
- package/dist/cjs/components/QuotaCard/index.d.ts +1 -0
- package/dist/cjs/components/QuotaCard/index.js +17 -0
- package/dist/cjs/components/QuotaCard/styles.module.css +106 -0
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/components/index.js +18 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +18 -0
- package/dist/cjs/types.d.ts +1 -0
- package/dist/cjs/types.js +2 -0
- package/dist/cjs/utils.d.ts +1 -0
- package/dist/cjs/utils.js +5 -0
- package/dist/esm/components/QuotaButtonDropdown/QuotaDropdown.d.ts +24 -0
- package/dist/esm/components/QuotaButtonDropdown/QuotaDropdown.js +33 -0
- package/dist/esm/components/QuotaButtonDropdown/components/NoData.d.ts +5 -0
- package/dist/esm/components/QuotaButtonDropdown/components/NoData.js +9 -0
- package/dist/esm/components/QuotaButtonDropdown/components/QuotaDropdownContent.d.ts +2 -0
- package/dist/esm/components/QuotaButtonDropdown/components/QuotaDropdownContent.js +21 -0
- package/dist/esm/components/QuotaButtonDropdown/components/QuotaDropdownLayout.d.ts +2 -0
- package/dist/esm/components/QuotaButtonDropdown/components/QuotaDropdownLayout.js +7 -0
- package/dist/esm/components/QuotaButtonDropdown/components/index.d.ts +1 -0
- package/dist/esm/components/QuotaButtonDropdown/components/index.js +1 -0
- package/dist/esm/components/QuotaButtonDropdown/index.d.ts +2 -0
- package/dist/esm/components/QuotaButtonDropdown/index.js +2 -0
- package/dist/esm/components/QuotaButtonDropdown/styles.module.css +106 -0
- package/dist/esm/components/QuotaCard/QuotaCard.d.ts +22 -0
- package/dist/esm/components/QuotaCard/QuotaCard.js +42 -0
- package/dist/esm/components/QuotaCard/components/DataRow.d.ts +9 -0
- package/dist/esm/components/QuotaCard/components/DataRow.js +7 -0
- package/dist/esm/components/QuotaCard/components/DataSkeleton.d.ts +1 -0
- package/dist/esm/components/QuotaCard/components/DataSkeleton.js +6 -0
- package/dist/esm/components/QuotaCard/components/NoData.d.ts +5 -0
- package/dist/esm/components/QuotaCard/components/NoData.js +9 -0
- package/dist/esm/components/QuotaCard/components/QuotaCardLayout.d.ts +10 -0
- package/dist/esm/components/QuotaCard/components/QuotaCardLayout.js +21 -0
- package/dist/esm/components/QuotaCard/components/index.d.ts +3 -0
- package/dist/esm/components/QuotaCard/components/index.js +3 -0
- package/dist/esm/components/QuotaCard/index.d.ts +1 -0
- package/dist/esm/components/QuotaCard/index.js +1 -0
- package/dist/esm/components/QuotaCard/styles.module.css +106 -0
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/types.d.ts +1 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/utils.d.ts +1 -0
- package/dist/esm/utils.js +1 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.6.6 (2025-11-13)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@cloud-ru/uikit-product-button-predefined@0.7.6](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/button-predefined/CHANGELOG.md)
|
|
10
|
+
* [@cloud-ru/uikit-product-icons@15.1.3](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/icons/CHANGELOG.md)
|
|
11
|
+
* [@cloud-ru/uikit-product-utils@7.0.2](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/utils/CHANGELOG.md)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 0.6.5 (2025-11-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **PD-3377:** contributors update to publish all packages ([719fd3e](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/719fd3e1249e247443b125c47ea408d92c8395c3))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## 0.6.4 (2025-11-12)
|
|
7
29
|
|
|
8
30
|
### Only dependencies have been changed
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonDropdownProps } from '@sbercloud/uikit-product-button-predefined';
|
|
3
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
4
|
+
export type QuotaDropdownProps = WithSupportProps<{
|
|
5
|
+
/** Заголовок */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Описание */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Quota cards */
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/** Флаг наличия ошибки при загрузке квот */
|
|
12
|
+
dataError?: boolean;
|
|
13
|
+
/** Колбек кнопки повтора */
|
|
14
|
+
onRetry?(): void;
|
|
15
|
+
/** Расположение выпадающего меню */
|
|
16
|
+
placement?: ButtonDropdownProps['placement'];
|
|
17
|
+
/** Размер кнопки */
|
|
18
|
+
size?: ButtonDropdownProps['size'];
|
|
19
|
+
/** Тип макета */
|
|
20
|
+
layoutType?: ButtonDropdownProps['layoutType'];
|
|
21
|
+
/** CSS класс */
|
|
22
|
+
className?: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function QuotaDropdown({ placement, layoutType, className, size, ...props }: QuotaDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.QuotaDropdown = QuotaDropdown;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
const react_1 = require("react");
|
|
17
|
+
const uikit_product_button_predefined_1 = require("@sbercloud/uikit-product-button-predefined");
|
|
18
|
+
const uikit_product_locale_1 = require("@sbercloud/uikit-product-locale");
|
|
19
|
+
const utils_1 = require("../../utils");
|
|
20
|
+
const components_1 = require("./components");
|
|
21
|
+
function QuotaDropdown(_a) {
|
|
22
|
+
var { placement = 'bottom-end', layoutType = 'desktop', className, size } = _a, props = __rest(_a, ["placement", "layoutType", "className", "size"]);
|
|
23
|
+
const [open, setOpen] = (0, react_1.useState)(false);
|
|
24
|
+
const { t } = (0, uikit_product_locale_1.useLocale)('Quota');
|
|
25
|
+
const quotaExceededCount = (0, react_1.useMemo)(() => react_1.Children.toArray(props.children).reduce((count, child) => {
|
|
26
|
+
var _a, _b, _c, _d, _e, _f;
|
|
27
|
+
return (0, react_1.isValidElement)(child) &&
|
|
28
|
+
!((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.loading) &&
|
|
29
|
+
!((_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.unlimited) &&
|
|
30
|
+
(0, utils_1.checkExceeded)(((_d = (_c = child === null || child === void 0 ? void 0 : child.props) === null || _c === void 0 ? void 0 : _c.limit) !== null && _d !== void 0 ? _d : 0) - ((_f = (_e = child === null || child === void 0 ? void 0 : child.props) === null || _e === void 0 ? void 0 : _e.created) !== null && _f !== void 0 ? _f : 0))
|
|
31
|
+
? count + 1
|
|
32
|
+
: count;
|
|
33
|
+
}, 0), [props.children]);
|
|
34
|
+
const isQuotaExceededCountVisible = !props.dataError && quotaExceededCount > 0;
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(uikit_product_button_predefined_1.ButtonDropdown, { open: open, placement: placement, onOpenChange: setOpen, label: t('quotas'), className: className, layoutType: layoutType, size: size, counter: isQuotaExceededCountVisible ? { appearance: 'red', value: quotaExceededCount } : undefined, content: (0, jsx_runtime_1.jsx)(components_1.QuotaDropdownContent, Object.assign({}, props)) }));
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NoData = NoData;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const uikit_product_icons_1 = require("@sbercloud/uikit-product-icons");
|
|
9
|
+
const uikit_product_locale_1 = require("@sbercloud/uikit-product-locale");
|
|
10
|
+
const button_1 = require("@snack-uikit/button");
|
|
11
|
+
const styles_module_scss_1 = __importDefault(require('../styles.module.css'));
|
|
12
|
+
function NoData({ onRetry }) {
|
|
13
|
+
const { t } = (0, uikit_product_locale_1.useLocale)('Quota');
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.noDataWrapper, children: [(0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_1.default.noData, children: t('noData') }), (0, jsx_runtime_1.jsx)(button_1.ButtonFunction, { size: 'm', icon: (0, jsx_runtime_1.jsx)(uikit_product_icons_1.RepeatSVG, {}), onClick: onRetry, className: styles_module_scss_1.default.retryButton })] }));
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.QuotaDropdownContent = QuotaDropdownContent;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
const NoData_1 = require("./NoData");
|
|
17
|
+
const QuotaDropdownLayout_1 = require("./QuotaDropdownLayout");
|
|
18
|
+
function QuotaDropdownContent(_a) {
|
|
19
|
+
var { onRetry, dataError, children } = _a, rest = __rest(_a, ["onRetry", "dataError", "children"]);
|
|
20
|
+
if (!dataError) {
|
|
21
|
+
return (0, jsx_runtime_1.jsx)(QuotaDropdownLayout_1.QuotaDropdownLayout, Object.assign({}, rest, { children: children }));
|
|
22
|
+
}
|
|
23
|
+
return (0, jsx_runtime_1.jsx)(QuotaDropdownLayout_1.QuotaDropdownLayout, Object.assign({}, rest, { children: (0, jsx_runtime_1.jsx)(NoData_1.NoData, { onRetry: onRetry }) }));
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.QuotaDropdownLayout = QuotaDropdownLayout;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const scroll_1 = require("@snack-uikit/scroll");
|
|
9
|
+
const truncate_string_1 = require("@snack-uikit/truncate-string");
|
|
10
|
+
const styles_module_scss_1 = __importDefault(require('../styles.module.css'));
|
|
11
|
+
function QuotaDropdownLayout({ title, description, children }) {
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.wrapper, children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.header, children: [(0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.titleContainer, children: (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.title, children: (0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, { text: title, maxLines: 1 }) }) }), description && ((0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.description, children: (0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, { text: description, maxLines: 2 }) }))] }), (0, jsx_runtime_1.jsx)(scroll_1.Scroll, { className: styles_module_scss_1.default.scroll, barHideStrategy: 'never', children: (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.content, children: children }) })] }));
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './QuotaDropdownContent';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./QuotaDropdownContent"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./QuotaDropdown"), exports);
|
|
18
|
+
__exportStar(require("./components/QuotaDropdownContent"), exports);
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
.title{
|
|
2
|
+
font-family:var(--sans-title-m-font-family, SB Sans Interface);
|
|
3
|
+
font-weight:var(--sans-title-m-font-weight, Semibold);
|
|
4
|
+
line-height:var(--sans-title-m-line-height, 24px);
|
|
5
|
+
font-size:var(--sans-title-m-font-size, 16px);
|
|
6
|
+
letter-spacing:var(--sans-title-m-letter-spacing, 0.15px);
|
|
7
|
+
paragraph-spacing:var(--sans-title-m-paragraph-spacing, 8.8px);
|
|
8
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
9
|
+
overflow:hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.titleContainer{
|
|
13
|
+
display:flex;
|
|
14
|
+
gap:4px;
|
|
15
|
+
align-items:center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.wrapper{
|
|
19
|
+
max-width:768px;
|
|
20
|
+
max-height:446px;
|
|
21
|
+
padding:12px 0 12px 16px;
|
|
22
|
+
flex-direction:column;
|
|
23
|
+
align-items:flex-start;
|
|
24
|
+
display:flex;
|
|
25
|
+
gap:16px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.description{
|
|
29
|
+
font-family:var(--sans-body-s-font-family, SB Sans Interface);
|
|
30
|
+
font-weight:var(--sans-body-s-font-weight, Regular);
|
|
31
|
+
line-height:var(--sans-body-s-line-height, 16px);
|
|
32
|
+
font-size:var(--sans-body-s-font-size, 12px);
|
|
33
|
+
letter-spacing:var(--sans-body-s-letter-spacing, 0.1px);
|
|
34
|
+
paragraph-spacing:var(--sans-body-s-paragraph-spacing, 6.6px);
|
|
35
|
+
color:var(--sys-neutral-text-support, #6d707f);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.content{
|
|
39
|
+
display:flex;
|
|
40
|
+
flex-wrap:wrap;
|
|
41
|
+
align-items:flex-start;
|
|
42
|
+
justify-content:flex-start;
|
|
43
|
+
gap:8px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.header,
|
|
47
|
+
.scroll{
|
|
48
|
+
max-width:752px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.scroll{
|
|
52
|
+
max-height:396px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.scroll,
|
|
56
|
+
.os-scrollbar-vertical,
|
|
57
|
+
.os-scrollbar-unusable{
|
|
58
|
+
padding-right:16px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (max-width: 816px){
|
|
62
|
+
.header,
|
|
63
|
+
.scroll{
|
|
64
|
+
max-width:508px;
|
|
65
|
+
}
|
|
66
|
+
.scroll{
|
|
67
|
+
max-height:300px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
@media (max-width: 574px){
|
|
71
|
+
.header,
|
|
72
|
+
.scroll{
|
|
73
|
+
max-width:256px;
|
|
74
|
+
}
|
|
75
|
+
.scroll{
|
|
76
|
+
max-height:240px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.noDataWrapper{
|
|
80
|
+
display:flex;
|
|
81
|
+
flex-direction:column;
|
|
82
|
+
width:100%;
|
|
83
|
+
justify-content:center;
|
|
84
|
+
gap:24px;
|
|
85
|
+
align-items:center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.noData{
|
|
89
|
+
font-family:var(--sans-body-s-font-family, SB Sans Interface);
|
|
90
|
+
font-weight:var(--sans-body-s-font-weight, Regular);
|
|
91
|
+
line-height:var(--sans-body-s-line-height, 16px);
|
|
92
|
+
font-size:var(--sans-body-s-font-size, 12px);
|
|
93
|
+
letter-spacing:var(--sans-body-s-letter-spacing, 0.1px);
|
|
94
|
+
paragraph-spacing:var(--sans-body-s-paragraph-spacing, 6.6px);
|
|
95
|
+
text-align:center;
|
|
96
|
+
color:var(--sys-neutral-text-support, #6d707f);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.retryButton svg{
|
|
100
|
+
transform:rotate(-360deg);
|
|
101
|
+
transition:transform 0.5s;
|
|
102
|
+
}
|
|
103
|
+
.retryButton:active svg{
|
|
104
|
+
transform:rotate(0deg);
|
|
105
|
+
transition-duration:0s;
|
|
106
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { ButtonTonalProps } from '@snack-uikit/button';
|
|
3
|
+
type QuotaCardCommonProps = WithSupportProps<{
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
created?: number;
|
|
7
|
+
limit?: number;
|
|
8
|
+
unlimited?: boolean;
|
|
9
|
+
increaseLink?: Pick<ButtonTonalProps, 'target' | 'href' | 'onClick'>;
|
|
10
|
+
onRetry?(): void;
|
|
11
|
+
}>;
|
|
12
|
+
export type QuotaCardProps = QuotaCardCommonProps & ({
|
|
13
|
+
type?: 'instances' | 'value';
|
|
14
|
+
customUnit?: never;
|
|
15
|
+
customLabel?: never;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'custom';
|
|
18
|
+
customUnit: string;
|
|
19
|
+
customLabel: string;
|
|
20
|
+
});
|
|
21
|
+
export declare function QuotaCard({ loading, title, limit, created, increaseLink, onRetry, unlimited, type, customUnit, customLabel, ...rest }: QuotaCardProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.QuotaCard = QuotaCard;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const react_1 = require("react");
|
|
20
|
+
const uikit_product_icons_1 = require("@sbercloud/uikit-product-icons");
|
|
21
|
+
const uikit_product_locale_1 = require("@sbercloud/uikit-product-locale");
|
|
22
|
+
const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
|
|
23
|
+
const button_1 = require("@snack-uikit/button");
|
|
24
|
+
const truncate_string_1 = require("@snack-uikit/truncate-string");
|
|
25
|
+
const utils_1 = require("../../utils");
|
|
26
|
+
const components_1 = require("./components");
|
|
27
|
+
const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
|
|
28
|
+
function QuotaCard(_a) {
|
|
29
|
+
var { loading, title, limit, created, increaseLink, onRetry, unlimited = false, type = 'instances', customUnit, customLabel } = _a, rest = __rest(_a, ["loading", "title", "limit", "created", "increaseLink", "onRetry", "unlimited", "type", "customUnit", "customLabel"]);
|
|
30
|
+
const available = (limit !== null && limit !== void 0 ? limit : 0) - (created !== null && created !== void 0 ? created : 0);
|
|
31
|
+
const exceeded = (0, utils_1.checkExceeded)(available);
|
|
32
|
+
const { t } = (0, uikit_product_locale_1.useLocale)('Quota');
|
|
33
|
+
const noData = limit === undefined || created === undefined;
|
|
34
|
+
const { unit, label } = (0, react_1.useMemo)(() => {
|
|
35
|
+
switch (type) {
|
|
36
|
+
case 'value':
|
|
37
|
+
return { unit: t('gb'), label: t('filled') };
|
|
38
|
+
case 'custom':
|
|
39
|
+
return { unit: customUnit !== null && customUnit !== void 0 ? customUnit : '', label: customLabel !== null && customLabel !== void 0 ? customLabel : '' };
|
|
40
|
+
default:
|
|
41
|
+
return { unit: t('peace'), label: t('created') };
|
|
42
|
+
}
|
|
43
|
+
}, [t, type, customUnit, customLabel]);
|
|
44
|
+
if (noData) {
|
|
45
|
+
return ((0, jsx_runtime_1.jsx)(components_1.QuotaCardLayout, Object.assign({ title: title, exceeded: exceeded, loading: loading }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: (0, jsx_runtime_1.jsx)(components_1.NoData, { onRetry: onRetry }) })));
|
|
46
|
+
}
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.QuotaCardLayout, Object.assign({ title: title, exceeded: exceeded, loading: loading }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: [(0, jsx_runtime_1.jsx)(components_1.DataRow, { unit: unit, label: label, value: created, className: styles_module_scss_1.default.created }), exceeded && !unlimited ? ((0, jsx_runtime_1.jsx)(components_1.DataRow, { unit: unit, label: (0, jsx_runtime_1.jsxs)("span", { className: styles_module_scss_1.default.exceededState, children: [(0, jsx_runtime_1.jsx)(uikit_product_icons_1.CrossFilledSVG, { size: 16 }), (0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, { text: t('exceeded'), maxLines: 1 })] }), value: increaseLink ? (0, jsx_runtime_1.jsx)(button_1.ButtonTonal, Object.assign({ size: 'xs', label: t('increase') }, increaseLink)) : undefined, className: styles_module_scss_1.default.available })) : ((0, jsx_runtime_1.jsx)(components_1.DataRow, { unit: unit, label: t('available'), value: unlimited ? (0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_1.default.text, children: t('unlimited') }) : available, className: styles_module_scss_1.default.available }))] })));
|
|
48
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type DataRowProps = {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
value: number | ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
unit: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function DataRow({ value, label, className, unit }: DataRowProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DataRow = DataRow;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
+
const truncate_string_1 = require("@snack-uikit/truncate-string");
|
|
10
|
+
const styles_module_scss_1 = __importDefault(require('../styles.module.css'));
|
|
11
|
+
function DataRow({ value, label, className, unit }) {
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.dataRow, className), children: [(0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_1.default.text, children: typeof label === 'string' ? (0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, { text: label, maxLines: 1 }) : label }), typeof value === 'number' ? ((0, jsx_runtime_1.jsxs)("span", { className: styles_module_scss_1.default.text, children: [value, " ", unit] })) : (value)] }));
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function DataSkeleton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DataSkeleton = DataSkeleton;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const skeleton_1 = require("@snack-uikit/skeleton");
|
|
9
|
+
const styles_module_scss_1 = __importDefault(require('../styles.module.css'));
|
|
10
|
+
function DataSkeleton() {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.dataWrapper, children: [(0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, { lines: 1, className: styles_module_scss_1.default.text }), (0, jsx_runtime_1.jsx)(skeleton_1.SkeletonText, { lines: 1, className: styles_module_scss_1.default.text })] }));
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NoData = NoData;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const uikit_product_icons_1 = require("@sbercloud/uikit-product-icons");
|
|
9
|
+
const uikit_product_locale_1 = require("@sbercloud/uikit-product-locale");
|
|
10
|
+
const button_1 = require("@snack-uikit/button");
|
|
11
|
+
const styles_module_scss_1 = __importDefault(require('../styles.module.css'));
|
|
12
|
+
function NoData({ onRetry }) {
|
|
13
|
+
const { t } = (0, uikit_product_locale_1.useLocale)('Quota');
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.noDataWrapper, children: [(0, jsx_runtime_1.jsx)(button_1.ButtonFunction, { size: 'xs', icon: (0, jsx_runtime_1.jsx)(uikit_product_icons_1.RepeatSVG, {}), onClick: onRetry, className: styles_module_scss_1.default.retryButton }), (0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_1.default.noData, children: t('noData') })] }));
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
3
|
+
type QuotaCardLayoutProps = WithSupportProps<{
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
exceeded?: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function QuotaCardLayout({ title, exceeded, loading, children, ...rest }: QuotaCardLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.QuotaCardLayout = QuotaCardLayout;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const uikit_product_utils_1 = require("@sbercloud/uikit-product-utils");
|
|
20
|
+
const skeleton_1 = require("@snack-uikit/skeleton");
|
|
21
|
+
const truncate_string_1 = require("@snack-uikit/truncate-string");
|
|
22
|
+
const styles_module_scss_1 = __importDefault(require('../styles.module.css'));
|
|
23
|
+
const DataSkeleton_1 = require("./DataSkeleton");
|
|
24
|
+
function QuotaCardLayout(_a) {
|
|
25
|
+
var { title, exceeded, loading, children } = _a, rest = __rest(_a, ["title", "exceeded", "loading", "children"]);
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: styles_module_scss_1.default.quotaCard, "data-exceeded": exceeded || undefined }, (0, uikit_product_utils_1.extractSupportProps)(rest), { children: [(0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.title, children: (0, jsx_runtime_1.jsx)(truncate_string_1.TruncateString, { text: title, maxLines: 1 }) }), (0, jsx_runtime_1.jsx)(skeleton_1.WithSkeleton, { loading: loading, skeleton: (0, jsx_runtime_1.jsx)(DataSkeleton_1.DataSkeleton, {}), children: (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.dataWrapper, children: children }) })] })));
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./QuotaCardLayout"), exports);
|
|
18
|
+
__exportStar(require("./NoData"), exports);
|
|
19
|
+
__exportStar(require("./DataRow"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './QuotaCard';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./QuotaCard"), exports);
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
.title{
|
|
2
|
+
font-family:var(--sans-title-s-font-family, SB Sans Interface);
|
|
3
|
+
font-weight:var(--sans-title-s-font-weight, Semibold);
|
|
4
|
+
line-height:var(--sans-title-s-line-height, 20px);
|
|
5
|
+
font-size:var(--sans-title-s-font-size, 14px);
|
|
6
|
+
letter-spacing:var(--sans-title-s-letter-spacing, 0.15px);
|
|
7
|
+
paragraph-spacing:var(--sans-title-s-paragraph-spacing, 7.7px);
|
|
8
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
9
|
+
overflow:hidden;
|
|
10
|
+
width:100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dataWrapper{
|
|
14
|
+
display:flex;
|
|
15
|
+
flex-direction:column;
|
|
16
|
+
gap:8px;
|
|
17
|
+
width:100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dataRow{
|
|
21
|
+
display:grid;
|
|
22
|
+
grid-template-columns:1fr auto;
|
|
23
|
+
gap:4px;
|
|
24
|
+
width:100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.text{
|
|
28
|
+
font-family:var(--light-label-m-font-family, SB Sans Interface);
|
|
29
|
+
font-weight:var(--light-label-m-font-weight, Regular);
|
|
30
|
+
line-height:var(--light-label-m-line-height, 16px);
|
|
31
|
+
font-size:var(--light-label-m-font-size, 12px);
|
|
32
|
+
letter-spacing:var(--light-label-m-letter-spacing, 0px);
|
|
33
|
+
paragraph-spacing:var(--light-label-m-paragraph-spacing, 6.6px);
|
|
34
|
+
align-content:center;
|
|
35
|
+
overflow:hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.created{
|
|
39
|
+
color:var(--sys-neutral-text-light, #8b8e9b);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.available{
|
|
43
|
+
color:var(--sys-neutral-text-support, #6d707f);
|
|
44
|
+
height:24px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.exceededState{
|
|
48
|
+
display:flex;
|
|
49
|
+
align-items:center;
|
|
50
|
+
gap:2px;
|
|
51
|
+
}
|
|
52
|
+
.exceededState svg{
|
|
53
|
+
color:var(--sys-red-accent-default, #cb3f3e);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.quotaCard{
|
|
57
|
+
box-sizing:border-box;
|
|
58
|
+
display:flex;
|
|
59
|
+
width:240px;
|
|
60
|
+
min-width:240px;
|
|
61
|
+
max-width:240px;
|
|
62
|
+
height:100px;
|
|
63
|
+
min-height:100px;
|
|
64
|
+
max-height:104px;
|
|
65
|
+
padding:12px;
|
|
66
|
+
flex-direction:column;
|
|
67
|
+
align-items:flex-start;
|
|
68
|
+
gap:8px;
|
|
69
|
+
border-radius:4px;
|
|
70
|
+
overflow:hidden;
|
|
71
|
+
border-style:solid;
|
|
72
|
+
border-width:1px;
|
|
73
|
+
border-color:var(--sys-neutral-decor-default, #dde0ea);
|
|
74
|
+
background-color:var(--sys-neutral-background1-level, #fdfdfd);
|
|
75
|
+
}
|
|
76
|
+
.quotaCard[data-exceeded] .text .exceededState{
|
|
77
|
+
color:var(--sys-red-text-support, #ae514c);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.noDataWrapper{
|
|
81
|
+
display:flex;
|
|
82
|
+
flex-direction:column;
|
|
83
|
+
width:100%;
|
|
84
|
+
justify-content:center;
|
|
85
|
+
align-items:center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.noData{
|
|
89
|
+
font-family:var(--sans-body-s-font-family, SB Sans Interface);
|
|
90
|
+
font-weight:var(--sans-body-s-font-weight, Regular);
|
|
91
|
+
line-height:var(--sans-body-s-line-height, 16px);
|
|
92
|
+
font-size:var(--sans-body-s-font-size, 12px);
|
|
93
|
+
letter-spacing:var(--sans-body-s-letter-spacing, 0.1px);
|
|
94
|
+
paragraph-spacing:var(--sans-body-s-paragraph-spacing, 6.6px);
|
|
95
|
+
text-align:center;
|
|
96
|
+
color:var(--sys-neutral-text-support, #6d707f);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.retryButton svg{
|
|
100
|
+
transform:rotate(-360deg);
|
|
101
|
+
transition:transform 0.5s;
|
|
102
|
+
}
|
|
103
|
+
.retryButton:active svg{
|
|
104
|
+
transform:rotate(0deg);
|
|
105
|
+
transition-duration:0s;
|
|
106
|
+
}
|