@alfalab/core-components-circular-progress-bar 3.9.4 → 4.0.0-snapshot-6a9d3fc
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/Component.d.ts +5 -8
- package/Component.js +18 -19
- package/Component.js.map +1 -0
- package/consts.d.ts +9 -10
- package/consts.js +1 -0
- package/consts.js.map +1 -0
- package/cssm/Component.d.ts +5 -8
- package/cssm/Component.js +13 -12
- package/cssm/Component.js.map +1 -0
- package/cssm/consts.d.ts +9 -10
- package/cssm/consts.js +1 -0
- package/cssm/consts.js.map +1 -0
- package/cssm/index.d.ts +2 -2
- package/cssm/index.js +1 -0
- package/cssm/index.js.map +1 -0
- package/cssm/index.module.css +4 -29
- package/cssm/shared/index.d.ts +1 -1
- package/cssm/shared/index.js +3 -2
- package/cssm/shared/index.js.map +1 -0
- package/cssm/types/component-size.d.ts +1 -2
- package/cssm/types/component-size.js +1 -0
- package/cssm/types/component-size.js.map +1 -0
- package/cssm/types/typography-color.d.ts +1 -2
- package/cssm/types/typography-color.js +1 -0
- package/cssm/types/typography-color.js.map +1 -0
- package/cssm/use-timer.d.ts +1 -2
- package/cssm/use-timer.js +3 -2
- package/cssm/use-timer.js.map +1 -0
- package/cssm/utils/get-circular-progress-bar-test-ids.d.ts +1 -2
- package/cssm/utils/get-circular-progress-bar-test-ids.js +6 -5
- package/cssm/utils/get-circular-progress-bar-test-ids.js.map +1 -0
- package/cssm/utils/is-typography-color.d.ts +2 -3
- package/cssm/utils/is-typography-color.js +1 -0
- package/cssm/utils/is-typography-color.js.map +1 -0
- package/esm/Component.d.ts +5 -8
- package/esm/Component.js +3 -4
- package/esm/Component.js.map +1 -0
- package/esm/consts.d.ts +9 -10
- package/esm/consts.js +1 -0
- package/esm/consts.js.map +1 -0
- package/esm/index.css +56 -82
- package/esm/index.d.ts +2 -2
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -0
- package/esm/index.module.css.js +6 -0
- package/esm/index.module.css.js.map +1 -0
- package/esm/shared/index.d.ts +1 -1
- package/esm/shared/index.js +1 -0
- package/esm/shared/index.js.map +1 -0
- package/esm/types/component-size.d.ts +1 -2
- package/esm/types/component-size.js +1 -0
- package/esm/types/component-size.js.map +1 -0
- package/esm/types/typography-color.d.ts +1 -2
- package/esm/types/typography-color.js +1 -0
- package/esm/types/typography-color.js.map +1 -0
- package/esm/use-timer.d.ts +1 -2
- package/esm/use-timer.js +1 -0
- package/esm/use-timer.js.map +1 -0
- package/esm/utils/get-circular-progress-bar-test-ids.d.ts +1 -2
- package/esm/utils/get-circular-progress-bar-test-ids.js +1 -0
- package/esm/utils/get-circular-progress-bar-test-ids.js.map +1 -0
- package/esm/utils/is-typography-color.d.ts +2 -3
- package/esm/utils/is-typography-color.js +1 -0
- package/esm/utils/is-typography-color.js.map +1 -0
- package/index.css +56 -82
- package/index.d.ts +2 -2
- package/index.js +1 -0
- package/index.js.map +1 -0
- package/index.module.css.js +8 -0
- package/index.module.css.js.map +1 -0
- package/modern/Component.d.ts +5 -8
- package/modern/Component.js +5 -6
- package/modern/Component.js.map +1 -0
- package/modern/consts.d.ts +9 -10
- package/modern/consts.js +1 -0
- package/modern/consts.js.map +1 -0
- package/modern/index.css +56 -82
- package/modern/index.d.ts +2 -2
- package/modern/index.js +1 -0
- package/modern/index.js.map +1 -0
- package/modern/index.module.css.js +6 -0
- package/modern/index.module.css.js.map +1 -0
- package/modern/shared/index.d.ts +1 -1
- package/modern/shared/index.js +1 -0
- package/modern/shared/index.js.map +1 -0
- package/modern/types/component-size.d.ts +1 -2
- package/modern/types/component-size.js +1 -0
- package/modern/types/component-size.js.map +1 -0
- package/modern/types/typography-color.d.ts +1 -2
- package/modern/types/typography-color.js +1 -0
- package/modern/types/typography-color.js.map +1 -0
- package/modern/use-timer.d.ts +1 -2
- package/modern/use-timer.js +1 -0
- package/modern/use-timer.js.map +1 -0
- package/modern/utils/get-circular-progress-bar-test-ids.d.ts +1 -2
- package/modern/utils/get-circular-progress-bar-test-ids.js +1 -0
- package/modern/utils/get-circular-progress-bar-test-ids.js.map +1 -0
- package/modern/utils/is-typography-color.d.ts +2 -3
- package/modern/utils/is-typography-color.js +1 -0
- package/modern/utils/is-typography-color.js.map +1 -0
- package/moderncssm/Component.d.ts +5 -8
- package/moderncssm/Component.js +4 -3
- package/moderncssm/Component.js.map +1 -0
- package/moderncssm/consts.d.ts +9 -10
- package/moderncssm/consts.js +1 -0
- package/moderncssm/consts.js.map +1 -0
- package/moderncssm/index.d.ts +2 -2
- package/moderncssm/index.js +1 -0
- package/moderncssm/index.js.map +1 -0
- package/moderncssm/index.module.css +0 -9
- package/moderncssm/shared/index.d.ts +1 -1
- package/moderncssm/shared/index.js +1 -0
- package/moderncssm/shared/index.js.map +1 -0
- package/moderncssm/types/component-size.d.ts +1 -2
- package/moderncssm/types/component-size.js +1 -0
- package/moderncssm/types/component-size.js.map +1 -0
- package/moderncssm/types/typography-color.d.ts +1 -2
- package/moderncssm/types/typography-color.js +1 -0
- package/moderncssm/types/typography-color.js.map +1 -0
- package/moderncssm/use-timer.d.ts +1 -2
- package/moderncssm/use-timer.js +1 -0
- package/moderncssm/use-timer.js.map +1 -0
- package/moderncssm/utils/get-circular-progress-bar-test-ids.d.ts +1 -2
- package/moderncssm/utils/get-circular-progress-bar-test-ids.js +1 -0
- package/moderncssm/utils/get-circular-progress-bar-test-ids.js.map +1 -0
- package/moderncssm/utils/is-typography-color.d.ts +2 -3
- package/moderncssm/utils/is-typography-color.js +1 -0
- package/moderncssm/utils/is-typography-color.js.map +1 -0
- package/package.json +7 -6
- package/shared/index.d.ts +1 -1
- package/shared/index.js +3 -2
- package/shared/index.js.map +1 -0
- package/types/component-size.d.ts +1 -2
- package/types/component-size.js +1 -0
- package/types/component-size.js.map +1 -0
- package/types/typography-color.d.ts +1 -2
- package/types/typography-color.js +1 -0
- package/types/typography-color.js.map +1 -0
- package/use-timer.d.ts +1 -2
- package/use-timer.js +1 -0
- package/use-timer.js.map +1 -0
- package/utils/get-circular-progress-bar-test-ids.d.ts +1 -2
- package/utils/get-circular-progress-bar-test-ids.js +1 -0
- package/utils/get-circular-progress-bar-test-ids.js.map +1 -0
- package/utils/is-typography-color.d.ts +2 -3
- package/utils/is-typography-color.js +1 -0
- package/utils/is-typography-color.js.map +1 -0
- package/shared/package.json +0 -3
- package/src/shared/package.json +0 -3
|
@@ -1,2 +1 @@
|
|
|
1
|
-
type ComponentSize = 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 24 | 48 | 64 | 80 | 128 | 144;
|
|
2
|
-
export { ComponentSize };
|
|
1
|
+
export declare type ComponentSize = 'xxl' | 'xl' | 'l' | 'm' | 's' | 'xs' | 24 | 48 | 64 | 80 | 128 | 144;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-size.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
type TypographyColor = 'primary' | 'secondary' | 'tertiary' | 'positive' | 'negative';
|
|
2
|
-
export { TypographyColor };
|
|
1
|
+
export declare type TypographyColor = 'primary' | 'secondary' | 'tertiary' | 'positive' | 'negative';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography-color.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/cssm/use-timer.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare function useTimer(time: number, active: boolean | undefined, counting: 'forward' | 'backward', onFinish: () => void, interval?: number, step?: number): [value: number, title: string];
|
|
2
|
-
export { useTimer };
|
|
1
|
+
export declare function useTimer(time: number, active: boolean | undefined, counting: 'forward' | 'backward', onFinish: () => void, interval?: number, step?: number): [value: number, title: string];
|
package/cssm/use-timer.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
6
|
+
var cssm = require('@alfalab/core-components-shared/cssm');
|
|
7
7
|
|
|
8
8
|
var MAX_PERSENT_VALUE = 100;
|
|
9
9
|
function makeTitle(time) {
|
|
@@ -21,7 +21,7 @@ function useTimer(time, active, counting, onFinish, interval, step) {
|
|
|
21
21
|
if (isCompleted) {
|
|
22
22
|
onFinish();
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return cssm.noop;
|
|
25
25
|
}
|
|
26
26
|
var timer = setInterval(function () {
|
|
27
27
|
setPassedTime(function (prevPassed) { return prevPassed + step; });
|
|
@@ -32,3 +32,4 @@ function useTimer(time, active, counting, onFinish, interval, step) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
exports.useTimer = useTimer;
|
|
35
|
+
//# sourceMappingURL=use-timer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-timer.js","sources":["../src/use-timer.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nimport { noop } from '@alfalab/core-components-shared';\n\nconst MAX_PERSENT_VALUE = 100;\n\nfunction makeTitle(time: number) {\n return `${Math.trunc(time / 60)}:${`${time % 60}`.padStart(2, '0')}`;\n}\n\nexport function useTimer(\n time: number,\n active = true,\n counting: 'forward' | 'backward',\n onFinish: () => void,\n interval = 1000,\n step = 1,\n): [value: number, title: string] {\n const [passedTime, setPassedTime] = useState(0);\n const isCompleted = passedTime === time;\n const persentValue = Math.trunc((passedTime / time) * MAX_PERSENT_VALUE);\n\n useEffect(() => {\n if (!active || isCompleted) {\n if (isCompleted) {\n onFinish();\n }\n\n return noop;\n }\n\n const timer = setInterval(() => {\n setPassedTime((prevPassed) => prevPassed + step);\n }, interval);\n\n return () => clearInterval(timer);\n }, [interval, isCompleted, active, step, onFinish]);\n\n return [persentValue, makeTitle(counting === 'backward' ? time - passedTime : passedTime)];\n}\n"],"names":["useState","useEffect","noop"],"mappings":";;;;;;;AAIA,IAAM,iBAAiB,GAAG,GAAG;AAE7B,SAAS,SAAS,CAAC,IAAY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AAE,CAAC,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAEnD,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,QAAQ,KAAK,UAAU,GAAG,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;AAC9F;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
declare function getCircularProgressBarTestIds(dataTestId: string): {
|
|
1
|
+
export declare function getCircularProgressBarTestIds(dataTestId: string): {
|
|
2
2
|
progressBar: string;
|
|
3
3
|
title: string;
|
|
4
4
|
subtitle: string;
|
|
5
5
|
circleProgressBar: string;
|
|
6
6
|
circleProgressValue: string;
|
|
7
7
|
};
|
|
8
|
-
export { getCircularProgressBarTestIds };
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var cssm = require('@alfalab/core-components-shared/cssm');
|
|
6
6
|
|
|
7
7
|
function getCircularProgressBarTestIds(dataTestId) {
|
|
8
8
|
return {
|
|
9
9
|
progressBar: dataTestId,
|
|
10
|
-
title:
|
|
11
|
-
subtitle:
|
|
12
|
-
circleProgressBar:
|
|
13
|
-
circleProgressValue:
|
|
10
|
+
title: cssm.getDataTestId(dataTestId, 'title'),
|
|
11
|
+
subtitle: cssm.getDataTestId(dataTestId, 'subtitle'),
|
|
12
|
+
circleProgressBar: cssm.getDataTestId(dataTestId, 'circle-progress-bar'),
|
|
13
|
+
circleProgressValue: cssm.getDataTestId(dataTestId, 'circle-progress-value'),
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
exports.getCircularProgressBarTestIds = getCircularProgressBarTestIds;
|
|
18
|
+
//# sourceMappingURL=get-circular-progress-bar-test-ids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-circular-progress-bar-test-ids.js","sources":["../../src/utils/get-circular-progress-bar-test-ids.ts"],"sourcesContent":["import { getDataTestId } from '@alfalab/core-components-shared';\n\nexport function getCircularProgressBarTestIds(dataTestId: string) {\n return {\n progressBar: dataTestId,\n title: getDataTestId(dataTestId, 'title'),\n subtitle: getDataTestId(dataTestId, 'subtitle'),\n circleProgressBar: getDataTestId(dataTestId, 'circle-progress-bar'),\n circleProgressValue: getDataTestId(dataTestId, 'circle-progress-value'),\n };\n}\n"],"names":["getDataTestId"],"mappings":";;;;;;AAEM,SAAU,6BAA6B,CAAC,UAAkB,EAAA;IAC5D,OAAO;AACH,QAAA,WAAW,EAAE,UAAU;AACvB,QAAA,KAAK,EAAEA,kBAAa,CAAC,UAAU,EAAE,OAAO,CAAC;AACzC,QAAA,QAAQ,EAAEA,kBAAa,CAAC,UAAU,EAAE,UAAU,CAAC;AAC/C,QAAA,iBAAiB,EAAEA,kBAAa,CAAC,UAAU,EAAE,qBAAqB,CAAC;AACnE,QAAA,mBAAmB,EAAEA,kBAAa,CAAC,UAAU,EAAE,uBAAuB,CAAC;KAC1E;AACL;;;;"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { TypographyColor } from
|
|
2
|
-
declare const isTypographyColor: (color: TypographyColor | string) => color is TypographyColor;
|
|
3
|
-
export { isTypographyColor };
|
|
1
|
+
import { TypographyColor } from '../types/typography-color';
|
|
2
|
+
export declare const isTypographyColor: (color: TypographyColor | string) => color is TypographyColor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-typography-color.js","sources":["../../src/utils/is-typography-color.ts"],"sourcesContent":["import { TYPOGRAPHY_COLOR } from '../consts';\nimport { TypographyColor } from '../types/typography-color';\n\nexport const isTypographyColor = (color: TypographyColor | string): color is TypographyColor =>\n TYPOGRAPHY_COLOR.includes(color);\n"],"names":["TYPOGRAPHY_COLOR"],"mappings":";;;;;;AAGO,IAAM,iBAAiB,GAAG,UAAC,KAA+B,EAAA;AAC7D,IAAA,OAAAA,uBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC;AAAhC;;;;"}
|
package/esm/Component.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { TypographyColor } from "./types/typography-color";
|
|
6
|
-
type CircularProgressBarProps = {
|
|
1
|
+
import React, { ElementType, ReactNode } from 'react';
|
|
2
|
+
import { ComponentSize } from './types/component-size';
|
|
3
|
+
import { TypographyColor } from './types/typography-color';
|
|
4
|
+
export declare type CircularProgressBarProps = {
|
|
7
5
|
/**
|
|
8
6
|
* Уровень прогресса, %
|
|
9
7
|
*/
|
|
@@ -142,5 +140,4 @@ type CircularProgressBarProps = {
|
|
|
142
140
|
/**
|
|
143
141
|
* Компонент круглого прогресс бара.
|
|
144
142
|
*/
|
|
145
|
-
declare const CircularProgressBar: React.FC<CircularProgressBarProps>;
|
|
146
|
-
export { CircularProgressBarProps, CircularProgressBar };
|
|
143
|
+
export declare const CircularProgressBar: React.FC<CircularProgressBarProps>;
|
package/esm/Component.js
CHANGED
|
@@ -4,11 +4,9 @@ import cn from 'classnames';
|
|
|
4
4
|
import { isObject, noop, getDataTestId } from '@alfalab/core-components-shared/esm';
|
|
5
5
|
import { Text, TitleMobile } from '@alfalab/core-components-typography/esm';
|
|
6
6
|
import { isTypographyColor } from './utils/is-typography-color.js';
|
|
7
|
-
import { MIN_TIMER_VALUE, MAX_TIMER_VALUE, STROKE, SIZES, TYPOGRAPHY_COLOR, SIZE_TO_CLASSNAME_MAP,
|
|
7
|
+
import { MIN_TIMER_VALUE, MAX_TIMER_VALUE, STROKE, SIZES, TYPOGRAPHY_COLOR, SIZE_TO_CLASSNAME_MAP, VIEW_TITLE, VIEW_TEXT, MAX_PROGRESS_VALUE } from './consts.js';
|
|
8
8
|
import { useTimer } from './use-timer.js';
|
|
9
|
-
|
|
10
|
-
var styles = {"component":"circular-progress-bar__component_ajrib","bg-positive":"circular-progress-bar__bg-positive_ajrib","bg-negative":"circular-progress-bar__bg-negative_ajrib","svg":"circular-progress-bar__svg_ajrib","title":"circular-progress-bar__title_ajrib","subtitle":"circular-progress-bar__subtitle_ajrib","labelWrapper":"circular-progress-bar__labelWrapper_ajrib","label":"circular-progress-bar__label_ajrib","typography":"circular-progress-bar__typography_ajrib","size-144":"circular-progress-bar__size-144_ajrib","size-128":"circular-progress-bar__size-128_ajrib","size-96":"circular-progress-bar__size-96_ajrib","size-80":"circular-progress-bar__size-80_ajrib","size-64":"circular-progress-bar__size-64_ajrib","size-48":"circular-progress-bar__size-48_ajrib","size-24":"circular-progress-bar__size-24_ajrib","backgroundCircle":"circular-progress-bar__backgroundCircle_ajrib","progressCircle":"circular-progress-bar__progressCircle_ajrib","positive":"circular-progress-bar__positive_ajrib","negative":"circular-progress-bar__negative_ajrib","stroke":"circular-progress-bar__stroke_ajrib","iconWrapper":"circular-progress-bar__iconWrapper_ajrib","icon-tertiary":"circular-progress-bar__icon-tertiary_ajrib","icon-positive":"circular-progress-bar__icon-positive_ajrib","icon-negative":"circular-progress-bar__icon-negative_ajrib","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_ajrib","icon-primary":"circular-progress-bar__icon-primary_ajrib","icon-secondary":"circular-progress-bar__icon-secondary_ajrib","icon":"circular-progress-bar__icon_ajrib"};
|
|
11
|
-
require('./index.css')
|
|
9
|
+
import styles from './index.module.css.js';
|
|
12
10
|
|
|
13
11
|
/**
|
|
14
12
|
* Компонент круглого прогресс бара.
|
|
@@ -111,3 +109,4 @@ var CircularProgressBar = function (_a) {
|
|
|
111
109
|
};
|
|
112
110
|
|
|
113
111
|
export { CircularProgressBar };
|
|
112
|
+
//# sourceMappingURL=Component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../src/Component.tsx"],"sourcesContent":["/* eslint-disable complexity */\nimport React, { ElementType, ReactNode, useMemo } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId, isObject, noop } from '@alfalab/core-components-shared';\nimport { Text, TitleMobile } from '@alfalab/core-components-typography';\n\nimport { ComponentSize } from './types/component-size';\nimport { TypographyColor } from './types/typography-color';\nimport { isTypographyColor } from './utils/is-typography-color';\nimport {\n MAX_PROGRESS_VALUE,\n MAX_TIMER_VALUE,\n MIN_TIMER_VALUE,\n SIZE_TO_CLASSNAME_MAP,\n SIZES,\n STROKE,\n TYPOGRAPHY_COLOR,\n VIEW_TEXT,\n VIEW_TITLE,\n} from './consts';\nimport { useTimer } from './use-timer';\n\nimport styles from './index.module.css';\n\nexport type CircularProgressBarProps = {\n /**\n * Уровень прогресса, %\n */\n\n value:\n | number\n | {\n /**\n * Время таймера в секундах\n * Минимальное значение 0\n * Максимальное значение 3600\n */\n timer: number;\n /**\n * Направлние отсчета таймера\n * forward: считаем от 0 до указанного значения\n * backward: считаем от указанного значения до 0\n * @default backward\n */\n counting?: 'forward' | 'backward';\n /**\n * Обработчик завершения таймера\n */\n onFinish?: () => void;\n };\n\n /**\n * Дополнительный класс\n */\n className?: string;\n\n /**\n * Основной текст\n */\n title?: ReactNode;\n\n /**\n * Цвет контента\n */\n contentColor?: TypographyColor | string;\n\n /**\n * Цвет заголовка\n * Приоритет выше чем у `contentColor`\n */\n titleColor?: TypographyColor | string;\n\n /**\n * Цвет подзаголовка\n * Приоритет выше чем у `contentColor`\n */\n subtitleColor?: TypographyColor | string;\n\n /**\n * Дополнительный текст\n */\n subtitle?: ReactNode;\n\n /**\n * Основной текст при 100%\n */\n titleComplete?: ReactNode;\n\n /**\n * Дополнительный текст при 100%\n */\n subtitleComplete?: ReactNode;\n\n /**\n * Цвет заполнения\n */\n view?: 'positive' | 'negative';\n\n /**\n * Размер (xxl — 144×144px, xl — 128×128px, l — 80×80px, m — 64×64px, s — 48×48px, xs — 24×24px)\n * @description xs, s, m, l, xl, xxl deprecated, используйте вместо них 24, 48, 64, 80, 128, 144 соответственно\n * @default 64\n */\n size?: ComponentSize;\n\n /**\n * Наличие желоба\n */\n stroke?: boolean;\n\n /**\n * Заливка при 100%\n */\n fillComplete?: boolean;\n\n /**\n * Цвет текста при 100%\n */\n completeTextColor?: 'primary' | 'primary-inverted' | 'positive' | 'negative';\n\n /**\n * Цвет иконки при 100%\n */\n completeIconColor?: 'primary-inverted' | 'positive' | 'negative' | 'tertiary';\n\n /**\n * Компонент иконки\n */\n icon?: ElementType<{ className?: string }>;\n\n /**\n * Компонент иконки при 100%\n */\n iconComplete?: ElementType<{ className?: string }>;\n\n /**\n * Направление прогресса (clockwise - по часовой стрелке, counter-clockwise - против часовой стрелки)\n */\n direction?: 'clockwise' | 'counter-clockwise';\n\n /**\n * Высота компонента, min = 24; max = 144\n * использовать совместно с size :\n * xxl от 144\n * xl от 128 до 143\n * l от 80 до 127\n * m от 64 до 79\n * s от 48 до 63\n * xs от 24 до 47\n */\n height?: number;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Дочерние элементы\n */\n children?: ReactNode;\n\n /**\n * Цвет прогресса\n */\n progressStrokeColor?: string;\n\n /**\n * Цвет заливки внутри круга\n */\n circleColor?: string;\n\n /**\n * Цвет желоба\n */\n strokeColor?: string;\n\n /**\n * Направление заполнения круга\n * @default desc\n */\n directionType?: 'asc' | 'desc';\n};\n\n/**\n * Компонент круглого прогресс бара.\n */\nexport const CircularProgressBar: React.FC<CircularProgressBarProps> = ({\n value: valueFromProps,\n view = 'positive',\n size = 64,\n className,\n dataTestId,\n title: titleFromProps = isObject(valueFromProps) ? null : `${valueFromProps}`,\n titleComplete,\n subtitle,\n contentColor = 'secondary',\n subtitleComplete,\n stroke = true,\n fillComplete,\n icon: Icon,\n iconComplete: IconComplete,\n completeTextColor,\n completeIconColor = 'tertiary',\n direction = 'clockwise',\n height,\n children,\n progressStrokeColor,\n circleColor,\n strokeColor,\n directionType = 'asc',\n titleColor,\n subtitleColor,\n}) => {\n const isTimer = isObject(valueFromProps);\n const [timerValue, timerTitle] = useTimer(\n isTimer ? Math.min(Math.max(valueFromProps.timer, MIN_TIMER_VALUE), MAX_TIMER_VALUE) : -1,\n isTimer,\n isTimer ? valueFromProps.counting ?? 'backward' : 'backward',\n isTimer ? valueFromProps.onFinish ?? noop : noop,\n );\n let value: number;\n let title: React.ReactNode;\n\n if (isTimer) {\n value = timerValue;\n title = timerTitle;\n } else {\n value = valueFromProps;\n title = titleFromProps;\n }\n\n value = directionType === 'desc' ? MAX_PROGRESS_VALUE - value : value;\n\n const memorized = useMemo(() => {\n const strokeWidth = STROKE[size];\n const maxProgress = 100;\n const minProgress = 0;\n const widthSVG = SIZES[size];\n const heightSVG = SIZES[size];\n const center = widthSVG / 2;\n const radius = center - strokeWidth / 2;\n const circumference = Math.PI * radius * 2;\n const progress = Math.min(Math.max(value, minProgress), maxProgress);\n const strokeDasharray = circumference.toFixed(3);\n const strokeDashoffset = (((100 - progress) / 100) * circumference).toFixed(3);\n\n return {\n widthSVG,\n heightSVG,\n center,\n radius,\n strokeDasharray,\n strokeDashoffset,\n };\n }, [size, value]);\n\n const isComplete = value === 100;\n const isCompleteTextColor = isComplete && completeTextColor;\n const titleContent = titleComplete && isComplete ? titleComplete : title;\n const subtitleContent = subtitleComplete && isComplete ? subtitleComplete : subtitle;\n const IconComponent = IconComplete && isComplete ? IconComplete : Icon;\n\n const typographyContentColor = TYPOGRAPHY_COLOR.includes(contentColor)\n ? (contentColor as TypographyColor)\n : undefined;\n\n const getTextColor = (color?: TypographyColor | string) => {\n if (isCompleteTextColor) {\n return completeTextColor;\n }\n\n if (color) {\n return isTypographyColor(color) ? color : undefined;\n }\n\n return typographyContentColor;\n };\n\n const getTextStyleColor = (color?: TypographyColor | string) => {\n if (color) {\n if (!isTypographyColor(color)) {\n return { color };\n }\n\n return {};\n }\n\n return {\n ...(!typographyContentColor && { color: contentColor }),\n };\n };\n\n const renderTitleString = () =>\n SIZES[size] > 64 ? (\n <TitleMobile\n className={cn(styles.typography, styles.title)}\n color={getTextColor(titleColor)}\n tag='div'\n font='system'\n view={VIEW_TITLE[size]}\n style={{\n ...getTextStyleColor(titleColor),\n }}\n dataTestId={getDataTestId(dataTestId, 'title')}\n >\n {titleContent}\n </TitleMobile>\n ) : (\n <Text\n className={styles.title}\n color={getTextColor(titleColor)}\n tag='div'\n weight='bold'\n view={VIEW_TEXT[size]}\n style={{\n ...getTextStyleColor(titleColor),\n }}\n dataTestId={getDataTestId(dataTestId, 'title')}\n >\n {titleContent}\n </Text>\n );\n\n const renderTitle = () => (typeof title === 'string' ? renderTitleString() : titleContent);\n\n const renderSubTitle = () =>\n typeof subtitle === 'string' ? (\n <Text\n tag='div'\n className={styles.subtitle}\n color={getTextColor(subtitleColor)}\n view='primary-small'\n dataTestId={getDataTestId(dataTestId, 'subtitle')}\n style={{\n ...getTextStyleColor(subtitleColor),\n }}\n >\n {subtitleContent}\n </Text>\n ) : (\n subtitleContent\n );\n\n const renderIcon = () => (\n <span\n className={cn(\n styles.iconWrapper,\n styles[SIZE_TO_CLASSNAME_MAP[size]],\n styles.tertiary,\n styles[`icon-${contentColor}`],\n {\n [styles[`icon-${completeIconColor}`]]: completeIconColor,\n },\n )}\n >\n {IconComponent && <IconComponent className={styles.icon} />}\n </span>\n );\n\n const renderContent = () =>\n Icon || (IconComplete && isComplete) ? (\n renderIcon()\n ) : (\n <React.Fragment>\n {SIZES[size] > 24 && renderTitle()}\n {SIZES[size] > 64 && renderSubTitle()}\n </React.Fragment>\n );\n\n return (\n <div\n className={cn(styles.component, styles[SIZE_TO_CLASSNAME_MAP[size]], className, {\n [styles[`bg-${view}`]]: fillComplete && isComplete,\n })}\n style={{\n ...(height && { height, width: height }),\n ...(circleColor && { backgroundColor: circleColor }),\n }}\n data-test-id={dataTestId}\n >\n <svg\n viewBox={`0 0 ${memorized.widthSVG} ${memorized.heightSVG}`}\n className={styles.svg}\n xmlns='http://www.w3.org/2000/svg'\n >\n <circle\n className={cn(styles.backgroundCircle, styles[SIZE_TO_CLASSNAME_MAP[size]], {\n [styles.stroke]: !stroke,\n })}\n style={{\n ...(strokeColor && stroke && { stroke: strokeColor }),\n }}\n cx={memorized.center}\n cy={memorized.center}\n r={memorized.radius}\n strokeWidth={STROKE[size]}\n data-test-id={getDataTestId(dataTestId, 'circle-progress-bar')}\n />\n <circle\n className={cn(\n styles.progressCircle,\n styles[view],\n styles[SIZE_TO_CLASSNAME_MAP[size]],\n )}\n style={{\n ...(progressStrokeColor && { stroke: progressStrokeColor }),\n }}\n cx={memorized.center}\n cy={memorized.center}\n r={memorized.radius}\n strokeWidth={STROKE[size]}\n strokeDasharray={memorized.strokeDasharray}\n strokeDashoffset={\n direction === 'counter-clockwise'\n ? -memorized.strokeDashoffset\n : memorized.strokeDashoffset\n }\n transform={`rotate(${-90} ${memorized.center} ${memorized.center})`}\n data-test-id={getDataTestId(dataTestId, 'circle-progress-value')}\n />\n </svg>\n <div\n className={cn(styles.labelWrapper, {\n [styles.label]: Icon || IconComplete,\n })}\n >\n {children || renderContent()}\n </div>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;AAyLA;;AAEG;AACI,IAAM,mBAAmB,GAAuC,UAAC,EA0BvE,EAAA;;;QAzBU,cAAc,GAAA,EAAA,CAAA,KAAA,EACrB,EAAA,GAAA,EAAA,CAAA,IAAiB,EAAjB,IAAI,GAAG,EAAA,KAAA,MAAA,GAAA,UAAU,GAAA,EAAA,EACjB,EAAS,GAAA,EAAA,CAAA,IAAA,EAAT,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,EAAE,GAAA,EAAA,EACT,SAAS,GAAA,EAAA,CAAA,SAAA,EACT,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,EAA6E,GAAA,EAAA,CAAA,KAAA,EAAtE,cAAc,GAAA,EAAA,KAAA,MAAA,GAAG,QAAQ,CAAC,cAAc,CAAC,GAAG,IAAI,GAAG,EAAG,CAAA,MAAA,CAAA,cAAc,CAAE,GAAA,EAAA,EAC7E,aAAa,mBAAA,EACb,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,EAA0B,GAAA,E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,QAAA,CAAA,EAAA,GAAC,mBAAmB,IAAI,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAC,EAE/D,EAAE,EAAE,SAAS,CAAC,MAAM,EACpB,EAAE,EAAE,SAAS,CAAC,MAAM,EACpB,CAAC,EAAE,SAAS,CAAC,MAAM,EACnB,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EACzB,eAAe,EAAE,SAAS,CAAC,eAAe,EAC1C,gBAAgB,EACZ,SAAS,KAAK;AACV,sBAAE,CAAC,SAAS,CAAC;sBACX,SAAS,CAAC,gBAAgB,EAEpC,SAAS,EAAE,SAAU,CAAA,MAAA,CAAA,GAAG,EAAA,GAAA,CAAA,CAAA,MAAA,CAAI,SAAS,CAAC,MAAM,EAAA,GAAA,CAAA,CAAA,MAAA,CAAI,SAAS,CAAC,MAAM,EAAA,GAAA,CAAG,EACrD,cAAA,EAAA,aAAa,CAAC,UAAU,EAAE,uBAAuB,CAAC,EAAA,CAClE,CACA;AACN,QAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,GAAA,EAAA,GAAA,EAAA;AAC7B,gBAAA,EAAA,CAAC,MAAM,CAAC,KAAK,CAAG,GAAA,IAAI,IAAI,YAAY;AACtC,gBAAA,EAAA,EAAA,EAAA,EAED,QAAQ,IAAI,aAAa,EAAE,CAC1B,CACJ;AAEd;;;;"}
|
package/esm/consts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const SIZES: {
|
|
1
|
+
export declare const SIZES: {
|
|
2
2
|
xs: number;
|
|
3
3
|
s: number;
|
|
4
4
|
m: number;
|
|
@@ -13,7 +13,7 @@ declare const SIZES: {
|
|
|
13
13
|
128: number;
|
|
14
14
|
144: number;
|
|
15
15
|
};
|
|
16
|
-
declare const STROKE: {
|
|
16
|
+
export declare const STROKE: {
|
|
17
17
|
xs: number;
|
|
18
18
|
s: number;
|
|
19
19
|
m: number;
|
|
@@ -28,7 +28,7 @@ declare const STROKE: {
|
|
|
28
28
|
128: number;
|
|
29
29
|
144: number;
|
|
30
30
|
};
|
|
31
|
-
declare const VIEW_TITLE: {
|
|
31
|
+
export declare const VIEW_TITLE: {
|
|
32
32
|
readonly xs: "small";
|
|
33
33
|
readonly s: "small";
|
|
34
34
|
readonly m: "small";
|
|
@@ -43,7 +43,7 @@ declare const VIEW_TITLE: {
|
|
|
43
43
|
readonly 128: "medium";
|
|
44
44
|
readonly 144: "medium";
|
|
45
45
|
};
|
|
46
|
-
declare const VIEW_TEXT: {
|
|
46
|
+
export declare const VIEW_TEXT: {
|
|
47
47
|
readonly xs: "secondary-small";
|
|
48
48
|
readonly s: "secondary-small";
|
|
49
49
|
readonly m: "secondary-large";
|
|
@@ -58,8 +58,8 @@ declare const VIEW_TEXT: {
|
|
|
58
58
|
readonly 128: "secondary-large";
|
|
59
59
|
readonly 144: "secondary-large";
|
|
60
60
|
};
|
|
61
|
-
declare const TYPOGRAPHY_COLOR: string[];
|
|
62
|
-
declare const SIZE_TO_CLASSNAME_MAP: {
|
|
61
|
+
export declare const TYPOGRAPHY_COLOR: string[];
|
|
62
|
+
export declare const SIZE_TO_CLASSNAME_MAP: {
|
|
63
63
|
xs: string;
|
|
64
64
|
s: string;
|
|
65
65
|
m: string;
|
|
@@ -74,7 +74,6 @@ declare const SIZE_TO_CLASSNAME_MAP: {
|
|
|
74
74
|
128: string;
|
|
75
75
|
144: string;
|
|
76
76
|
};
|
|
77
|
-
declare const MAX_PROGRESS_VALUE = 100;
|
|
78
|
-
declare const MIN_TIMER_VALUE = 0;
|
|
79
|
-
declare const MAX_TIMER_VALUE = 3599;
|
|
80
|
-
export { SIZES, STROKE, VIEW_TITLE, VIEW_TEXT, TYPOGRAPHY_COLOR, SIZE_TO_CLASSNAME_MAP, MAX_PROGRESS_VALUE, MIN_TIMER_VALUE, MAX_TIMER_VALUE };
|
|
77
|
+
export declare const MAX_PROGRESS_VALUE = 100;
|
|
78
|
+
export declare const MIN_TIMER_VALUE = 0;
|
|
79
|
+
export declare const MAX_TIMER_VALUE = 3599;
|
package/esm/consts.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sources":["../src/consts.ts"],"sourcesContent":["export const SIZES = {\n xs: 24,\n s: 48,\n m: 64,\n l: 80,\n xl: 128,\n xxl: 144,\n 24: 24,\n 48: 48,\n 64: 64,\n 80: 80,\n 96: 96,\n 128: 128,\n 144: 144,\n};\n\nexport const STROKE = {\n xs: 4,\n s: 4,\n m: 6,\n l: 8,\n xl: 10,\n xxl: 12,\n 24: 4,\n 48: 4,\n 64: 6,\n 80: 8,\n 96: 8,\n 128: 10,\n 144: 12,\n};\n\nexport const VIEW_TITLE = {\n xs: 'small',\n s: 'small',\n m: 'small',\n l: 'xsmall',\n xl: 'medium',\n xxl: 'medium',\n 24: 'small',\n 48: 'small',\n 64: 'small',\n 80: 'xsmall',\n 96: 'xsmall',\n 128: 'medium',\n 144: 'medium',\n} as const;\n\nexport const VIEW_TEXT = {\n xs: 'secondary-small',\n s: 'secondary-small',\n m: 'secondary-large',\n l: 'secondary-large',\n xl: 'secondary-large',\n xxl: 'secondary-large',\n 24: 'secondary-small',\n 48: 'secondary-small',\n 64: 'secondary-large',\n 80: 'secondary-large',\n 96: 'secondary-large',\n 128: 'secondary-large',\n 144: 'secondary-large',\n} as const;\n\nexport const TYPOGRAPHY_COLOR = ['primary', 'secondary', 'tertiary', 'positive', 'negative'];\n\nexport const SIZE_TO_CLASSNAME_MAP = {\n xs: 'size-24',\n s: 'size-48',\n m: 'size-64',\n l: 'size-80',\n xl: 'size-128',\n xxl: 'size-144',\n 24: 'size-24',\n 48: 'size-48',\n 64: 'size-64',\n 80: 'size-80',\n 96: 'size-96',\n 128: 'size-128',\n 144: 'size-144',\n};\n\nexport const MAX_PROGRESS_VALUE = 100;\n\nexport const MIN_TIMER_VALUE = 0;\nexport const MAX_TIMER_VALUE = 3599;\n"],"names":[],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J,IAAA,SAAS,GAAG;AACrB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,CAAC,EAAE,iBAAiB;AACpB,IAAA,CAAC,EAAE,iBAAiB;AACpB,IAAA,CAAC,EAAE,iBAAiB;AACpB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,GAAG,EAAE,iBAAiB;AACtB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,GAAG,EAAE,iBAAiB;AACtB,IAAA,GAAG,EAAE,iBAAiB;;AAGnB,IAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;AAE9E,IAAA,qBAAqB,GAAG;AACjC,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,CAAC,EAAE,SAAS;AACZ,IAAA,EAAE,EAAE,UAAU;AACd,IAAA,GAAG,EAAE,UAAU;AACf,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,GAAG,EAAE,UAAU;AACf,IAAA,GAAG,EAAE,UAAU;;AAGZ,IAAM,kBAAkB,GAAG;AAE3B,IAAM,eAAe,GAAG;AACxB,IAAM,eAAe,GAAG;;;;"}
|
package/esm/index.css
CHANGED
|
@@ -1,189 +1,163 @@
|
|
|
1
|
-
|
|
2
|
-
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
|
-
} /* deprecated */ :root {
|
|
1
|
+
:root {
|
|
4
2
|
--color-light-neutral-500: #babbc2;
|
|
5
3
|
--color-light-neutral-700: #898991;
|
|
6
4
|
--color-light-neutral-translucent-1300: rgba(3, 3, 6, 0.88);
|
|
7
5
|
--color-light-neutral-translucent-1300-inverted: rgba(255, 255, 255, 0.94);
|
|
8
6
|
--color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
|
|
9
7
|
--color-light-status-negative: #ff4837;
|
|
10
|
-
--color-light-status-positive: #0cc44d;
|
|
11
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
12
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
8
|
+
--color-light-status-positive: #0cc44d;
|
|
13
9
|
} :root {
|
|
14
|
-
|
|
15
|
-
/* Hard */
|
|
16
|
-
|
|
17
|
-
/* Up */
|
|
18
|
-
|
|
19
|
-
/* Hard up */
|
|
20
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
21
10
|
--border-radius-pill: 99px;
|
|
22
|
-
|
|
23
|
-
/* новые значения, используйте их */
|
|
24
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
25
|
-
|
|
26
|
-
/* новые значения, используйте их */
|
|
27
|
-
|
|
28
|
-
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
29
|
-
/* stylelint-disable-next-line length-zero-no-unit */
|
|
11
|
+
} :root {
|
|
30
12
|
--gap-0: 0px;
|
|
31
13
|
} :root {
|
|
32
14
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
33
15
|
sans-serif;
|
|
34
|
-
}
|
|
35
|
-
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
36
|
-
/* stroke */
|
|
16
|
+
} :root {
|
|
37
17
|
--circular-progress-bar-stroke-color: var(--color-light-neutral-translucent-300);
|
|
38
|
-
|
|
39
|
-
/* positive */
|
|
40
18
|
--circular-progress-bar-positive-color: var(--color-light-status-positive);
|
|
41
|
-
|
|
42
|
-
/* negative */
|
|
43
19
|
--circular-progress-bar-negative-color: var(--color-light-status-negative);
|
|
44
|
-
|
|
45
|
-
/* theme */
|
|
46
20
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
47
21
|
--circular-progress-bar-font-weight: 600;
|
|
48
|
-
} .circular-progress-
|
|
22
|
+
} .circular-progress-bar__component_1ryjl {
|
|
49
23
|
position: relative;
|
|
50
24
|
display: flex;
|
|
51
25
|
justify-content: center;
|
|
52
26
|
align-items: center;
|
|
53
27
|
border-radius: var(--border-radius-pill)
|
|
54
|
-
} .circular-progress-
|
|
28
|
+
} .circular-progress-bar__component_1ryjl.circular-progress-bar__bg-positive_1ryjl {
|
|
55
29
|
background: var(--circular-progress-bar-positive-color);
|
|
56
|
-
} .circular-progress-
|
|
30
|
+
} .circular-progress-bar__component_1ryjl.circular-progress-bar__bg-negative_1ryjl {
|
|
57
31
|
background: var(--circular-progress-bar-negative-color);
|
|
58
|
-
} .circular-progress-
|
|
32
|
+
} .circular-progress-bar__svg_1ryjl {
|
|
59
33
|
display: block;
|
|
60
34
|
width: 100%;
|
|
61
|
-
} .circular-progress-
|
|
62
|
-
.circular-progress-
|
|
35
|
+
} .circular-progress-bar__title_1ryjl,
|
|
36
|
+
.circular-progress-bar__subtitle_1ryjl {
|
|
63
37
|
overflow: hidden;
|
|
64
38
|
word-break: break-word;
|
|
65
39
|
white-space: nowrap;
|
|
66
40
|
text-overflow: ellipsis;
|
|
67
41
|
margin: var(--gap-0) 6px;
|
|
68
|
-
} .circular-progress-
|
|
42
|
+
} .circular-progress-bar__subtitle_1ryjl {
|
|
69
43
|
max-height: 40px;
|
|
70
|
-
} .circular-progress-
|
|
44
|
+
} .circular-progress-bar__labelWrapper_1ryjl {
|
|
71
45
|
text-align: center;
|
|
72
46
|
position: absolute;
|
|
73
47
|
top: 50%;
|
|
74
48
|
left: 50%;
|
|
75
49
|
width: 100%;
|
|
76
50
|
transform: translate(-50%, -50%)
|
|
77
|
-
} .circular-progress-
|
|
51
|
+
} .circular-progress-bar__labelWrapper_1ryjl.circular-progress-bar__label_1ryjl {
|
|
78
52
|
display: flex;
|
|
79
53
|
align-items: center;
|
|
80
54
|
justify-content: center;
|
|
81
|
-
} .circular-progress-
|
|
55
|
+
} .circular-progress-bar__typography_1ryjl {
|
|
82
56
|
font-feature-settings: 'ss01';
|
|
83
57
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
84
58
|
font-family: var(--circular-progress-bar-font-family);
|
|
85
|
-
} .circular-progress-bar__size-
|
|
59
|
+
} .circular-progress-bar__size-144_1ryjl {
|
|
86
60
|
width: 144px;
|
|
87
61
|
height: 144px
|
|
88
|
-
} .circular-progress-bar__size-
|
|
62
|
+
} .circular-progress-bar__size-144_1ryjl .circular-progress-bar__labelWrapper_1ryjl {
|
|
89
63
|
max-width: 128px;
|
|
90
|
-
} .circular-progress-bar__size-
|
|
64
|
+
} .circular-progress-bar__size-144_1ryjl .circular-progress-bar__title_1ryjl {
|
|
91
65
|
max-height: 32px;
|
|
92
|
-
} .circular-progress-bar__size-
|
|
66
|
+
} .circular-progress-bar__size-128_1ryjl {
|
|
93
67
|
width: 128px;
|
|
94
68
|
height: 128px
|
|
95
|
-
} .circular-progress-bar__size-
|
|
69
|
+
} .circular-progress-bar__size-128_1ryjl .circular-progress-bar__labelWrapper_1ryjl {
|
|
96
70
|
max-width: 108px;
|
|
97
|
-
} .circular-progress-bar__size-
|
|
71
|
+
} .circular-progress-bar__size-128_1ryjl .circular-progress-bar__title_1ryjl {
|
|
98
72
|
max-height: 32px;
|
|
99
|
-
} .circular-progress-bar__size-
|
|
73
|
+
} .circular-progress-bar__size-96_1ryjl {
|
|
100
74
|
width: 96px;
|
|
101
75
|
height: 96px
|
|
102
|
-
} .circular-progress-bar__size-
|
|
76
|
+
} .circular-progress-bar__size-96_1ryjl .circular-progress-bar__labelWrapper_1ryjl {
|
|
103
77
|
max-width: 64px;
|
|
104
|
-
} .circular-progress-bar__size-
|
|
78
|
+
} .circular-progress-bar__size-96_1ryjl .circular-progress-bar__title_1ryjl {
|
|
105
79
|
max-height: 20px;
|
|
106
|
-
} .circular-progress-bar__size-
|
|
80
|
+
} .circular-progress-bar__size-80_1ryjl {
|
|
107
81
|
width: 80px;
|
|
108
82
|
height: 80px
|
|
109
|
-
} .circular-progress-bar__size-
|
|
83
|
+
} .circular-progress-bar__size-80_1ryjl .circular-progress-bar__labelWrapper_1ryjl {
|
|
110
84
|
max-width: 64px;
|
|
111
|
-
} .circular-progress-bar__size-
|
|
85
|
+
} .circular-progress-bar__size-80_1ryjl .circular-progress-bar__title_1ryjl {
|
|
112
86
|
max-height: 24px;
|
|
113
|
-
} .circular-progress-bar__size-
|
|
87
|
+
} .circular-progress-bar__size-64_1ryjl {
|
|
114
88
|
width: 64px;
|
|
115
89
|
height: 64px
|
|
116
|
-
} .circular-progress-bar__size-
|
|
90
|
+
} .circular-progress-bar__size-64_1ryjl .circular-progress-bar__labelWrapper_1ryjl {
|
|
117
91
|
max-width: 48px;
|
|
118
|
-
} .circular-progress-bar__size-
|
|
92
|
+
} .circular-progress-bar__size-64_1ryjl .circular-progress-bar__title_1ryjl {
|
|
119
93
|
max-height: 16px;
|
|
120
94
|
margin: var(--gap-0);
|
|
121
|
-
} .circular-progress-bar__size-
|
|
95
|
+
} .circular-progress-bar__size-48_1ryjl {
|
|
122
96
|
width: 48px;
|
|
123
97
|
height: 48px
|
|
124
|
-
} .circular-progress-bar__size-
|
|
98
|
+
} .circular-progress-bar__size-48_1ryjl .circular-progress-bar__labelWrapper_1ryjl {
|
|
125
99
|
max-width: 40px;
|
|
126
|
-
} .circular-progress-bar__size-
|
|
100
|
+
} .circular-progress-bar__size-48_1ryjl .circular-progress-bar__title_1ryjl {
|
|
127
101
|
max-height: 16px;
|
|
128
102
|
margin: var(--gap-0);
|
|
129
|
-
} .circular-progress-bar__size-
|
|
103
|
+
} .circular-progress-bar__size-24_1ryjl {
|
|
130
104
|
width: 24px;
|
|
131
105
|
height: 24px
|
|
132
|
-
} .circular-progress-bar__size-
|
|
106
|
+
} .circular-progress-bar__size-24_1ryjl .circular-progress-bar__labelWrapper_1ryjl {
|
|
133
107
|
max-width: 24px;
|
|
134
|
-
} .circular-progress-
|
|
135
|
-
.circular-progress-
|
|
108
|
+
} .circular-progress-bar__backgroundCircle_1ryjl,
|
|
109
|
+
.circular-progress-bar__progressCircle_1ryjl {
|
|
136
110
|
width: 100%;
|
|
137
111
|
height: 100%;
|
|
138
112
|
fill: transparent;
|
|
139
|
-
} .circular-progress-
|
|
113
|
+
} .circular-progress-bar__positive_1ryjl {
|
|
140
114
|
stroke: var(--circular-progress-bar-positive-color);
|
|
141
|
-
} .circular-progress-
|
|
115
|
+
} .circular-progress-bar__negative_1ryjl {
|
|
142
116
|
stroke: var(--circular-progress-bar-negative-color);
|
|
143
|
-
} .circular-progress-
|
|
117
|
+
} .circular-progress-bar__backgroundCircle_1ryjl {
|
|
144
118
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
145
|
-
} .circular-progress-
|
|
119
|
+
} .circular-progress-bar__backgroundCircle_1ryjl.circular-progress-bar__stroke_1ryjl {
|
|
146
120
|
stroke: transparent;
|
|
147
|
-
} .circular-progress-
|
|
121
|
+
} .circular-progress-bar__progressCircle_1ryjl {
|
|
148
122
|
stroke-linecap: round;
|
|
149
|
-
} .circular-progress-
|
|
123
|
+
} .circular-progress-bar__iconWrapper_1ryjl {
|
|
150
124
|
display: flex;
|
|
151
125
|
align-items: center;
|
|
152
126
|
justify-content: center
|
|
153
|
-
} .circular-progress-
|
|
127
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__size-144_1ryjl {
|
|
154
128
|
max-width: 64px;
|
|
155
129
|
max-height: 64px;
|
|
156
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__size-128_1ryjl {
|
|
157
131
|
max-width: 64px;
|
|
158
132
|
max-height: 64px;
|
|
159
|
-
} .circular-progress-
|
|
133
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__size-96_1ryjl {
|
|
160
134
|
max-width: 48px;
|
|
161
135
|
max-height: 48px;
|
|
162
|
-
} .circular-progress-
|
|
136
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__size-80_1ryjl {
|
|
163
137
|
max-width: 48px;
|
|
164
138
|
max-height: 48px;
|
|
165
|
-
} .circular-progress-
|
|
139
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__size-64_1ryjl {
|
|
166
140
|
max-width: 36px;
|
|
167
141
|
max-height: 36px;
|
|
168
|
-
} .circular-progress-
|
|
142
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__size-48_1ryjl {
|
|
169
143
|
max-width: 24px;
|
|
170
144
|
max-height: 24px;
|
|
171
|
-
} .circular-progress-
|
|
145
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__size-24_1ryjl {
|
|
172
146
|
max-width: 16px;
|
|
173
147
|
max-height: 16px;
|
|
174
|
-
} .circular-progress-
|
|
148
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__icon-tertiary_1ryjl {
|
|
175
149
|
color: var(--color-light-neutral-500);
|
|
176
|
-
} .circular-progress-
|
|
150
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__icon-positive_1ryjl {
|
|
177
151
|
color: var(--color-light-status-positive);
|
|
178
|
-
} .circular-progress-
|
|
152
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__icon-negative_1ryjl {
|
|
179
153
|
color: var(--color-light-status-negative);
|
|
180
|
-
} .circular-progress-
|
|
154
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__icon-primary-inverted_1ryjl {
|
|
181
155
|
color: var(--color-light-neutral-translucent-1300-inverted);
|
|
182
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__icon-primary_1ryjl {
|
|
183
157
|
color: var(--color-light-neutral-translucent-1300);
|
|
184
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_1ryjl.circular-progress-bar__icon-secondary_1ryjl {
|
|
185
159
|
color: var(--color-light-neutral-700);
|
|
186
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__icon_1ryjl {
|
|
187
161
|
width: 100%;
|
|
188
162
|
height: 100%;
|
|
189
163
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './Component';
|
|
2
|
+
export * from './types/typography-color';
|
package/esm/index.js
CHANGED
package/esm/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
|
|
3
|
+
var styles = {"component":"circular-progress-bar__component_1ryjl","bg-positive":"circular-progress-bar__bg-positive_1ryjl","bg-negative":"circular-progress-bar__bg-negative_1ryjl","svg":"circular-progress-bar__svg_1ryjl","title":"circular-progress-bar__title_1ryjl","subtitle":"circular-progress-bar__subtitle_1ryjl","labelWrapper":"circular-progress-bar__labelWrapper_1ryjl","label":"circular-progress-bar__label_1ryjl","typography":"circular-progress-bar__typography_1ryjl","size-144":"circular-progress-bar__size-144_1ryjl","size-128":"circular-progress-bar__size-128_1ryjl","size-96":"circular-progress-bar__size-96_1ryjl","size-80":"circular-progress-bar__size-80_1ryjl","size-64":"circular-progress-bar__size-64_1ryjl","size-48":"circular-progress-bar__size-48_1ryjl","size-24":"circular-progress-bar__size-24_1ryjl","backgroundCircle":"circular-progress-bar__backgroundCircle_1ryjl","progressCircle":"circular-progress-bar__progressCircle_1ryjl","positive":"circular-progress-bar__positive_1ryjl","negative":"circular-progress-bar__negative_1ryjl","stroke":"circular-progress-bar__stroke_1ryjl","iconWrapper":"circular-progress-bar__iconWrapper_1ryjl","icon-tertiary":"circular-progress-bar__icon-tertiary_1ryjl","icon-positive":"circular-progress-bar__icon-positive_1ryjl","icon-negative":"circular-progress-bar__icon-negative_1ryjl","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_1ryjl","icon-primary":"circular-progress-bar__icon-primary_1ryjl","icon-secondary":"circular-progress-bar__icon-secondary_1ryjl","icon":"circular-progress-bar__icon_1ryjl"};
|
|
4
|
+
|
|
5
|
+
export { styles as default };
|
|
6
|
+
//# sourceMappingURL=index.module.css.js.map
|