@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
package/moderncssm/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/moderncssm/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
/* */
|
|
2
|
-
|
|
3
1
|
:root {
|
|
4
|
-
/* stroke */
|
|
5
2
|
--circular-progress-bar-stroke-color: var(--color-light-neutral-translucent-300);
|
|
6
|
-
|
|
7
|
-
/* positive */
|
|
8
3
|
--circular-progress-bar-positive-color: var(--color-light-status-positive);
|
|
9
|
-
|
|
10
|
-
/* negative */
|
|
11
4
|
--circular-progress-bar-negative-color: var(--color-light-status-negative);
|
|
12
|
-
|
|
13
|
-
/* theme */
|
|
14
5
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
15
6
|
--circular-progress-bar-font-weight: 600;
|
|
16
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getCircularProgressBarTestIds } from
|
|
1
|
+
export { getCircularProgressBarTestIds } from '../utils/get-circular-progress-bar-test-ids';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -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":""}
|
|
@@ -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/moderncssm/use-timer.js
CHANGED
|
@@ -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":[],"mappings":";;;AAIA,MAAM,iBAAiB,GAAG,GAAG;AAE7B,SAAS,SAAS,CAAC,IAAY,EAAA;IAC3B,OAAO,CAAA,EAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAI,CAAA,EAAA,CAAA,EAAG,IAAI,GAAG,EAAE,CAAE,CAAA,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA,CAAE;AACxE;SAEgB,QAAQ,CACpB,IAAY,EACZ,MAAM,GAAG,IAAI,EACb,QAAgC,EAChC,QAAoB,EACpB,QAAQ,GAAG,IAAI,EACf,IAAI,GAAG,CAAC,EAAA;IAER,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;AAC/C,IAAA,MAAM,WAAW,GAAG,UAAU,KAAK,IAAI;AACvC,IAAA,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,IAAI,IAAI,iBAAiB,CAAC;IAExE,SAAS,CAAC,MAAK;AACX,QAAA,IAAI,CAAC,MAAM,IAAI,WAAW,EAAE;AACxB,YAAA,IAAI,WAAW,EAAE;AACb,gBAAA,QAAQ,EAAE;AACb;AAED,YAAA,OAAO,IAAI;AACd;AAED,QAAA,MAAM,KAAK,GAAG,WAAW,CAAC,MAAK;YAC3B,aAAa,CAAC,CAAC,UAAU,KAAK,UAAU,GAAG,IAAI,CAAC;SACnD,EAAE,QAAQ,CAAC;AAEZ,QAAA,OAAO,MAAM,aAAa,CAAC,KAAK,CAAC;AACrC,KAAC,EAAE,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 };
|
|
@@ -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":[],"mappings":";;AAEM,SAAU,6BAA6B,CAAC,UAAkB,EAAA;IAC5D,OAAO;AACH,QAAA,WAAW,EAAE,UAAU;AACvB,QAAA,KAAK,EAAE,aAAa,CAAC,UAAU,EAAE,OAAO,CAAC;AACzC,QAAA,QAAQ,EAAE,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC;AAC/C,QAAA,iBAAiB,EAAE,aAAa,CAAC,UAAU,EAAE,qBAAqB,CAAC;AACnE,QAAA,mBAAmB,EAAE,aAAa,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":[],"mappings":";;AAGO,MAAM,iBAAiB,GAAG,CAAC,KAA+B,KAC7D,gBAAgB,CAAC,QAAQ,CAAC,KAAK;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-circular-progress-bar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-snapshot-6a9d3fc",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,14 +12,15 @@
|
|
|
12
12
|
},
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@alfalab/core-components-typography": "
|
|
16
|
-
"@alfalab/core-components-shared": "
|
|
15
|
+
"@alfalab/core-components-typography": "5.0.0-snapshot-6a9d3fc",
|
|
16
|
+
"@alfalab/core-components-shared": "1.0.0-snapshot-6a9d3fc",
|
|
17
17
|
"classnames": "^2.5.1",
|
|
18
18
|
"tslib": "^2.4.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
21
|
+
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
|
|
22
|
+
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
22
23
|
},
|
|
23
|
-
"themesVersion": "
|
|
24
|
-
"varsVersion": "
|
|
24
|
+
"themesVersion": "14.0.0-snapshot-6a9d3fc",
|
|
25
|
+
"varsVersion": "10.0.0-snapshot-6a9d3fc"
|
|
25
26
|
}
|
package/shared/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getCircularProgressBarTestIds } from
|
|
1
|
+
export { getCircularProgressBarTestIds } from '../utils/get-circular-progress-bar-test-ids';
|
package/shared/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var getCircularProgressBarTestIds = require('../utils/get-circular-progress-bar-test-ids.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.getCircularProgressBarTestIds =
|
|
9
|
+
exports.getCircularProgressBarTestIds = getCircularProgressBarTestIds.getCircularProgressBarTestIds;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -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;
|
package/types/component-size.js
CHANGED
|
@@ -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/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/use-timer.js
CHANGED
package/use-timer.js.map
ADDED
|
@@ -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,EAAA;IAC3B,OAAO,EAAA,CAAA,MAAA,CAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,EAAI,GAAA,CAAA,CAAA,MAAA,CAAA,EAAA,CAAA,MAAA,CAAG,IAAI,GAAG,EAAE,CAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAE;AACxE;AAEgB,SAAA,QAAQ,CACpB,IAAY,EACZ,MAAa,EACb,QAAgC,EAChC,QAAoB,EACpB,QAAe,EACf,IAAQ,EAAA;AAJR,IAAA,IAAA,MAAA,KAAA,MAAA,EAAA,EAAA,MAAa,GAAA,IAAA,CAAA;AAGb,IAAA,IAAA,QAAA,KAAA,MAAA,EAAA,EAAA,QAAe,GAAA,IAAA,CAAA;AACf,IAAA,IAAA,IAAA,KAAA,MAAA,EAAA,EAAA,IAAQ,GAAA,CAAA,CAAA;IAEF,IAAA,EAAA,GAA8BA,cAAQ,CAAC,CAAC,CAAC,EAAxC,UAAU,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,aAAa,GAAA,EAAA,CAAA,CAAA,CAAe;AAC/C,IAAA,IAAM,WAAW,GAAG,UAAU,KAAK,IAAI;AACvC,IAAA,IAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,IAAI,IAAI,iBAAiB,CAAC;AAExE,IAAAC,eAAS,CAAC,YAAA;AACN,QAAA,IAAI,CAAC,MAAM,IAAI,WAAW,EAAE;AACxB,YAAA,IAAI,WAAW,EAAE;AACb,gBAAA,QAAQ,EAAE;AACb;AAED,YAAA,OAAOC,yBAAI;AACd;QAED,IAAM,KAAK,GAAG,WAAW,CAAC,YAAA;YACtB,aAAa,CAAC,UAAC,UAAU,EAAK,EAAA,OAAA,UAAU,GAAG,IAAI,CAAA,EAAA,CAAC;SACnD,EAAE,QAAQ,CAAC;QAEZ,OAAO,YAAA,EAAM,OAAA,aAAa,CAAC,KAAK,CAAC,CAAA,EAAA;AACrC,KAAC,EAAE,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 };
|
|
@@ -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,kCAAa,CAAC,UAAU,EAAE,OAAO,CAAC;AACzC,QAAA,QAAQ,EAAEA,kCAAa,CAAC,UAAU,EAAE,UAAU,CAAC;AAC/C,QAAA,iBAAiB,EAAEA,kCAAa,CAAC,UAAU,EAAE,qBAAqB,CAAC;AACnE,QAAA,mBAAmB,EAAEA,kCAAa,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/shared/package.json
DELETED
package/src/shared/package.json
DELETED