@alfalab/core-components-steps 1.8.0 → 1.8.1-snapshot-1393ffa
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.js +6 -7
- package/Component.js.map +1 -0
- package/components/step/Component.js +37 -38
- package/components/step/Component.js.map +1 -0
- package/components/step/index.css +38 -56
- package/components/step/index.js +3 -2
- package/components/step/index.js.map +1 -0
- package/components/step/index.module.css.js +8 -0
- package/components/step/index.module.css.js.map +1 -0
- package/components/step-indicator/Component.js +3 -4
- package/components/step-indicator/Component.js.map +1 -0
- package/components/step-indicator/index.css +2 -24
- package/components/step-indicator/index.js +3 -2
- package/components/step-indicator/index.js.map +1 -0
- package/components/step-indicator/index.module.css.js +8 -0
- package/components/step-indicator/index.module.css.js.map +1 -0
- package/cssm/Component.js +3 -2
- package/cssm/Component.js.map +1 -0
- package/cssm/components/step/Component.js +11 -10
- package/cssm/components/step/Component.js.map +1 -0
- package/cssm/components/step/index.js +3 -2
- package/cssm/components/step/index.js.map +1 -0
- package/cssm/components/step/index.module.css +8 -25
- package/cssm/components/step-indicator/Component.js +3 -2
- package/cssm/components/step-indicator/Component.js.map +1 -0
- package/cssm/components/step-indicator/index.js +3 -2
- package/cssm/components/step-indicator/index.js.map +1 -0
- package/cssm/components/step-indicator/index.module.css +2 -23
- package/cssm/index.js +1 -0
- package/cssm/index.js.map +1 -0
- package/cssm/index.module.css +1 -23
- package/cssm/shared/index.js +3 -2
- package/cssm/shared/index.js.map +1 -0
- package/{Component.d.ts → cssm/src/Component.d.ts} +4 -6
- package/{esm → cssm/src}/components/step/Component.d.ts +5 -5
- package/cssm/src/components/step/index.d.ts +1 -0
- package/cssm/src/components/step-indicator/Component.d.ts +4 -0
- package/cssm/src/components/step-indicator/index.d.ts +1 -0
- package/cssm/src/index.d.ts +1 -0
- package/cssm/src/shared/index.d.ts +1 -0
- package/cssm/{types → src/types}/common-props.d.ts +1 -2
- package/cssm/src/utils/getStepsTestIds.d.ts +4 -0
- package/cssm/types/common-props.js +1 -0
- package/cssm/types/common-props.js.map +1 -0
- package/cssm/utils/getStepsTestIds.js +3 -2
- package/cssm/utils/getStepsTestIds.js.map +1 -0
- package/esm/Component.js +2 -3
- package/esm/Component.js.map +1 -0
- package/esm/components/step/Component.js +2 -3
- package/esm/components/step/Component.js.map +1 -0
- package/esm/components/step/index.css +38 -56
- package/esm/components/step/index.js +1 -0
- package/esm/components/step/index.js.map +1 -0
- package/esm/components/step/index.module.css.js +6 -0
- package/esm/components/step/index.module.css.js.map +1 -0
- package/esm/components/step-indicator/Component.js +2 -3
- package/esm/components/step-indicator/Component.js.map +1 -0
- package/esm/components/step-indicator/index.css +2 -24
- package/esm/components/step-indicator/index.js +1 -0
- package/esm/components/step-indicator/index.js.map +1 -0
- package/esm/components/step-indicator/index.module.css.js +6 -0
- package/esm/components/step-indicator/index.module.css.js.map +1 -0
- package/esm/index.css +2 -25
- 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.js +1 -0
- package/esm/shared/index.js.map +1 -0
- package/esm/{Component.d.ts → src/Component.d.ts} +4 -6
- package/{cssm → esm/src}/components/step/Component.d.ts +5 -5
- package/esm/src/components/step/index.d.ts +1 -0
- package/esm/src/components/step-indicator/Component.d.ts +4 -0
- package/esm/src/components/step-indicator/index.d.ts +1 -0
- package/esm/src/index.d.ts +1 -0
- package/esm/src/shared/index.d.ts +1 -0
- package/esm/{types → src/types}/common-props.d.ts +1 -2
- package/esm/src/utils/getStepsTestIds.d.ts +4 -0
- package/esm/types/common-props.js +1 -0
- package/esm/types/common-props.js.map +1 -0
- package/esm/utils/getStepsTestIds.js +1 -0
- package/esm/utils/getStepsTestIds.js.map +1 -0
- package/index.css +2 -25
- 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.js +2 -3
- package/modern/Component.js.map +1 -0
- package/modern/components/step/Component.js +2 -3
- package/modern/components/step/Component.js.map +1 -0
- package/modern/components/step/index.css +38 -56
- package/modern/components/step/index.js +1 -0
- package/modern/components/step/index.js.map +1 -0
- package/modern/components/step/index.module.css.js +6 -0
- package/modern/components/step/index.module.css.js.map +1 -0
- package/modern/components/step-indicator/Component.js +2 -3
- package/modern/components/step-indicator/Component.js.map +1 -0
- package/modern/components/step-indicator/index.css +2 -24
- package/modern/components/step-indicator/index.js +1 -0
- package/modern/components/step-indicator/index.js.map +1 -0
- package/modern/components/step-indicator/index.module.css.js +6 -0
- package/modern/components/step-indicator/index.module.css.js.map +1 -0
- package/modern/index.css +2 -25
- 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.js +1 -0
- package/modern/shared/index.js.map +1 -0
- package/{cssm → modern/src}/Component.d.ts +4 -6
- package/modern/{components → src/components}/step/Component.d.ts +5 -5
- package/modern/src/components/step/index.d.ts +1 -0
- package/modern/src/components/step-indicator/Component.d.ts +4 -0
- package/modern/src/components/step-indicator/index.d.ts +1 -0
- package/modern/src/index.d.ts +1 -0
- package/modern/src/shared/index.d.ts +1 -0
- package/modern/{types → src/types}/common-props.d.ts +1 -2
- package/modern/src/utils/getStepsTestIds.d.ts +4 -0
- package/modern/types/common-props.js +1 -0
- package/modern/types/common-props.js.map +1 -0
- package/modern/utils/getStepsTestIds.js +1 -0
- package/modern/utils/getStepsTestIds.js.map +1 -0
- package/moderncssm/Component.js +1 -0
- package/moderncssm/Component.js.map +1 -0
- package/moderncssm/components/step/Component.js +1 -0
- package/moderncssm/components/step/Component.js.map +1 -0
- package/moderncssm/components/step/index.js +1 -0
- package/moderncssm/components/step/index.js.map +1 -0
- package/moderncssm/components/step/index.module.css +1 -2
- package/moderncssm/components/step-indicator/Component.js +1 -0
- package/moderncssm/components/step-indicator/Component.js.map +1 -0
- package/moderncssm/components/step-indicator/index.js +1 -0
- package/moderncssm/components/step-indicator/index.js.map +1 -0
- package/moderncssm/components/step-indicator/index.module.css +0 -2
- package/moderncssm/index.js +1 -0
- package/moderncssm/index.js.map +1 -0
- package/moderncssm/index.module.css +0 -2
- package/moderncssm/shared/index.js +1 -0
- package/moderncssm/shared/index.js.map +1 -0
- package/{modern → moderncssm/src}/Component.d.ts +4 -6
- package/{components → moderncssm/src/components}/step/Component.d.ts +5 -5
- package/moderncssm/src/components/step/index.d.ts +1 -0
- package/moderncssm/src/components/step-indicator/Component.d.ts +4 -0
- package/moderncssm/src/components/step-indicator/index.d.ts +1 -0
- package/moderncssm/src/index.d.ts +1 -0
- package/moderncssm/src/shared/index.d.ts +1 -0
- package/moderncssm/{types → src/types}/common-props.d.ts +1 -2
- package/moderncssm/src/utils/getStepsTestIds.d.ts +4 -0
- package/moderncssm/types/common-props.js +1 -0
- package/moderncssm/types/common-props.js.map +1 -0
- package/moderncssm/utils/getStepsTestIds.js +1 -0
- package/moderncssm/utils/getStepsTestIds.js.map +1 -0
- package/package.json +5 -5
- package/shared/index.js +3 -2
- package/shared/index.js.map +1 -0
- package/src/Component.d.ts +72 -0
- package/src/components/step/Component.d.ts +56 -0
- package/src/components/step/index.d.ts +1 -0
- package/src/components/step-indicator/Component.d.ts +4 -0
- package/src/components/step-indicator/index.d.ts +1 -0
- package/src/index.d.ts +1 -0
- package/src/shared/index.d.ts +1 -0
- package/src/types/common-props.d.ts +40 -0
- package/src/utils/getStepsTestIds.d.ts +4 -0
- package/types/common-props.js +1 -0
- package/types/common-props.js.map +1 -0
- package/utils/getStepsTestIds.js +1 -0
- package/utils/getStepsTestIds.js.map +1 -0
- package/components/step/index.d.ts +0 -1
- package/components/step-indicator/Component.d.ts +0 -6
- package/components/step-indicator/index.d.ts +0 -1
- package/cssm/components/step/index.d.ts +0 -1
- package/cssm/components/step-indicator/Component.d.ts +0 -6
- package/cssm/components/step-indicator/index.d.ts +0 -1
- package/cssm/index.d.ts +0 -1
- package/cssm/shared/index.d.ts +0 -1
- package/cssm/utils/getStepsTestIds.d.ts +0 -5
- package/esm/components/step/index.d.ts +0 -1
- package/esm/components/step-indicator/Component.d.ts +0 -6
- package/esm/components/step-indicator/index.d.ts +0 -1
- package/esm/index.d.ts +0 -1
- package/esm/shared/index.d.ts +0 -1
- package/esm/utils/getStepsTestIds.d.ts +0 -5
- package/index.d.ts +0 -1
- package/modern/components/step/index.d.ts +0 -1
- package/modern/components/step-indicator/Component.d.ts +0 -6
- package/modern/components/step-indicator/index.d.ts +0 -1
- package/modern/index.d.ts +0 -1
- package/modern/shared/index.d.ts +0 -1
- package/modern/utils/getStepsTestIds.d.ts +0 -5
- package/moderncssm/Component.d.ts +0 -74
- package/moderncssm/components/step/Component.d.ts +0 -56
- package/moderncssm/components/step/index.d.ts +0 -1
- package/moderncssm/components/step-indicator/Component.d.ts +0 -6
- package/moderncssm/components/step-indicator/index.d.ts +0 -1
- package/moderncssm/index.d.ts +0 -1
- package/moderncssm/shared/index.d.ts +0 -1
- package/moderncssm/utils/getStepsTestIds.d.ts +0 -5
- package/shared/index.d.ts +0 -1
- package/types/common-props.d.ts +0 -41
- package/utils/getStepsTestIds.d.ts +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../../src/components/step-indicator/index.module.css"],"sourcesContent":["@import '../../../../vars/src/index.css';\n\n.component.component {\n padding: var(--gap-0);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,wBAAwB,CAAC;;;;"}
|
package/modern/index.css
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
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 { /* 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 */ /* 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 */ /* 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 */ /* 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 */
|
|
4
|
-
} :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 */
|
|
5
|
-
} :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 */
|
|
6
|
-
} :root {
|
|
7
|
-
|
|
8
|
-
/* Hard */
|
|
9
|
-
|
|
10
|
-
/* Up */
|
|
11
|
-
|
|
12
|
-
/* Hard up */
|
|
13
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
14
|
-
|
|
15
|
-
/* новые значения, используйте их */
|
|
16
|
-
} :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 */
|
|
17
|
-
|
|
18
|
-
/* новые значения, используйте их */
|
|
19
|
-
|
|
20
|
-
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
21
|
-
/* stylelint-disable-next-line length-zero-no-unit */
|
|
22
|
-
} :root {
|
|
23
|
-
} :root {
|
|
24
|
-
} /* сбрасывает синюю подсветку при нажатии */ .steps__component_4vqw7 {
|
|
1
|
+
.steps__component_c6t4v {
|
|
25
2
|
display: flex;
|
|
26
3
|
align-items: center;
|
|
27
4
|
flex-direction: row
|
|
28
|
-
} .
|
|
5
|
+
} .steps__component_c6t4v.steps__vertical_c6t4v {
|
|
29
6
|
flex-direction: column;
|
|
30
7
|
align-items: flex-start;
|
|
31
8
|
}
|
package/modern/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '../../vars/src/index.css';\n\n.component {\n display: flex;\n align-items: center;\n flex-direction: row;\n\n &.vertical {\n flex-direction: column;\n align-items: flex-start;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,wBAAwB,CAAC,UAAU,CAAC,uBAAuB,CAAC;;;;"}
|
package/modern/shared/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { StepIndicatorProps } from
|
|
4
|
-
import { CommonProps } from
|
|
5
|
-
type StepsProps = {
|
|
2
|
+
import { StepIndicatorProps } from './components/step-indicator';
|
|
3
|
+
import { CommonProps } from './types/common-props';
|
|
4
|
+
export declare type StepsProps = {
|
|
6
5
|
/**
|
|
7
6
|
* Дополнительный класс
|
|
8
7
|
*/
|
|
@@ -70,5 +69,4 @@ type StepsProps = {
|
|
|
70
69
|
*/
|
|
71
70
|
onChange?: (stepNumber: number) => void;
|
|
72
71
|
} & CommonProps;
|
|
73
|
-
declare const Steps: React.FC<StepsProps>;
|
|
74
|
-
export { StepsProps, Steps };
|
|
72
|
+
export declare const Steps: React.FC<StepsProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { CommonProps } from
|
|
3
|
-
import { StepIndicatorProps } from
|
|
4
|
-
type StepProps = {
|
|
2
|
+
import { CommonProps } from '../../types/common-props';
|
|
3
|
+
import { StepIndicatorProps } from '../step-indicator';
|
|
4
|
+
declare type StepProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Номер шага
|
|
7
7
|
*/
|
|
@@ -52,5 +52,5 @@ type StepProps = {
|
|
|
52
52
|
*/
|
|
53
53
|
onClick: (stepNumber: number) => void;
|
|
54
54
|
} & CommonProps;
|
|
55
|
-
declare const Step: FC<StepProps>;
|
|
56
|
-
export {
|
|
55
|
+
export declare const Step: FC<StepProps>;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getStepsTestIds } from '../utils/getStepsTestIds';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
/** Обобщенный набор типов который подходит для Steps, но также прокинут в дочерний Step */
|
|
3
|
-
type CommonProps = {
|
|
3
|
+
export declare type CommonProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Идентификатор для систем автоматизированного тестирования
|
|
6
6
|
*/
|
|
@@ -38,4 +38,3 @@ type CommonProps = {
|
|
|
38
38
|
*/
|
|
39
39
|
completedDashColor?: string;
|
|
40
40
|
};
|
|
41
|
-
export { CommonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-props.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStepsTestIds.js","sources":["../../../src/utils/getStepsTestIds.ts"],"sourcesContent":["import { getDataTestId } from '@alfalab/core-components-shared';\n\nexport function getStepsTestIds(dataTestId: string) {\n return {\n steps: dataTestId,\n step: getDataTestId(dataTestId, 'step'),\n };\n}\n"],"names":[],"mappings":";;AAEM,SAAU,eAAe,CAAC,UAAkB,EAAA;IAC9C,OAAO;AACH,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,IAAI,EAAE,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC;KAC1C;AACL;;;;"}
|
package/moderncssm/Component.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../src/Component.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport cn from 'classnames';\n\nimport { Step } from './components/step';\nimport { StepIndicatorProps } from './components/step-indicator';\nimport { CommonProps } from './types/common-props';\n\nimport styles from './index.module.css';\n\nexport type StepsProps = {\n /**\n * Дополнительный класс\n */\n className?: string;\n\n /**\n * Активный шаг, указанный по умолчанию\n * @default 1\n */\n defaultActiveStep?: number;\n\n /**\n * Активный шаг\n */\n activeStep?: number;\n\n /**\n * Управление возможностью отключения пометки пройденного шага\n * @default true\n */\n isMarkCompletedSteps?: boolean;\n\n /**\n * Кастомный метод для управления состоянием disabled шага и\n * возможностью перехода на этот шаг\n * @param stepNumber - номер шага\n * @return Флаг состояния disabled\n */\n checkIsStepDisabled?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага error\n * @param stepNumber - номер шага\n * @return Флаг состояния error\n */\n checkIsStepError?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага criticalError\n * @param stepNumber - номер шага\n * @return Флаг состояния error\n */\n checkIsStepCriticalError?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага warning\n * @param stepNumber - номер шага\n * @return Флаг состояния warning\n */\n checkIsStepWarning?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага waiting\n * @param stepNumber - номер шага\n * @return Флаг состояния waiting\n */\n checkIsStepWaiting?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для управления состоянием шага positive\n * @param stepNumber - номер шага\n * @return Флаг состояния positive\n */\n checkIsStepPositive?: (stepNumber: number) => boolean;\n\n /**\n * Кастомный метод для установки кастомного индикатора шага\n * @param stepNumber - номер шага\n * @return Объект StepIndicatorProps { className, content, iconColor } или null\n */\n checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps | null;\n\n /**\n * Обработчик клика на шаг\n * @param stepNumber - номер активного шага\n */\n onChange?: (stepNumber: number) => void;\n} & CommonProps;\n\nexport const Steps: React.FC<StepsProps> = ({\n className,\n children,\n defaultActiveStep = 1,\n activeStep: activeStepProp,\n isMarkCompletedSteps = true,\n isVerticalAlign = false,\n ordered = true,\n interactive = true,\n fullWidth = false,\n minSpaceBetweenSteps = 24,\n checkIsStepDisabled,\n checkIsStepError,\n checkIsStepCriticalError,\n checkIsStepWarning,\n checkIsStepWaiting,\n checkIsStepPositive,\n checkIsStepCustom,\n onChange,\n dataTestId,\n completedDashColor,\n}) => {\n const uncontrolled = activeStepProp === undefined;\n const [activeStep, setActiveStep] = useState(defaultActiveStep);\n\n const stepsLength = React.Children.count(children);\n\n const handleStepClick = (stepNumber: number) => {\n if (uncontrolled) {\n setActiveStep(stepNumber);\n }\n\n if (onChange) {\n onChange(stepNumber);\n }\n };\n\n if (!stepsLength) return null;\n\n const visibleActiveStep = uncontrolled ? activeStep : activeStepProp;\n\n return (\n <div\n className={cn(className, styles.component, {\n [styles.vertical]: isVerticalAlign,\n })}\n data-test-id={dataTestId}\n >\n {React.Children.map(children, (step, index) => {\n const stepNumber = index + 1;\n const isSelected = stepNumber === visibleActiveStep;\n const isStepCompleted = isMarkCompletedSteps && stepNumber < visibleActiveStep;\n const disabled = checkIsStepDisabled ? checkIsStepDisabled(stepNumber) : false;\n const isPositive = checkIsStepPositive ? checkIsStepPositive(stepNumber) : false;\n const isError = checkIsStepError ? checkIsStepError(stepNumber) : false;\n const isCriticalError = checkIsStepCriticalError\n ? checkIsStepCriticalError(stepNumber)\n : false;\n const isWarning = checkIsStepWarning ? checkIsStepWarning(stepNumber) : false;\n const isWaiting = checkIsStepWaiting ? checkIsStepWaiting(stepNumber) : false;\n const customStepIndicator = checkIsStepCustom && checkIsStepCustom(stepNumber);\n const isNotLastStep = stepsLength !== stepNumber;\n const isInteractive = !disabled && interactive;\n\n return (\n <Step\n stepNumber={stepNumber}\n isSelected={isSelected}\n isStepCompleted={isStepCompleted}\n disabled={disabled}\n isPositive={isPositive}\n isError={isError}\n isCriticalError={isCriticalError}\n isWarning={isWarning}\n isWaiting={isWaiting}\n customStepIndicator={customStepIndicator}\n onClick={handleStepClick}\n ordered={ordered}\n interactive={isInteractive}\n isVerticalAlign={isVerticalAlign}\n isNotLastStep={isNotLastStep}\n key={stepNumber}\n fullWidth={fullWidth}\n minSpaceBetweenSteps={minSpaceBetweenSteps}\n completedDashColor={completedDashColor}\n dataTestId={dataTestId}\n >\n {step}\n </Step>\n );\n })}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;AAyFO,MAAM,KAAK,GAAyB,CAAC,EACxC,SAAS,EACT,QAAQ,EACR,iBAAiB,GAAG,CAAC,EACrB,UAAU,EAAE,cAAc,EAC1B,oBAAoB,GAAG,IAAI,EAC3B,eAAe,GAAG,KAAK,EACvB,OAAO,GAAG,IAAI,EACd,WAAW,GAAG,IAAI,EAClB,SAAS,GAAG,KAAK,EACjB,oBAAoB,GAAG,EAAE,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,kBAAkB,GACrB,KAAI;AACD,IAAA,MAAM,YAAY,GAAG,cAAc,KAAK,SAAS;IACjD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAA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kB,CAAC,UAAU,CAAC,GAAG,KAAK;AAC7E,QAAA,MAAM,SAAS,GAAG,kBAAkB,GAAG,kBAAkB,CAAC,UAAU,CAAC,GAAG,KAAK;QAC7E,MAAM,mBAAmB,GAAG,iBAAiB,IAAI,iBAAiB,CAAC,UAAU,CAAC;AAC9E,QAAA,MAAM,aAAa,GAAG,WAAW,KAAK,UAAU;AAChD,QAAA,MAAM,aAAa,GAAG,CAAC,QAAQ,IAAI,WAAW;AAE9C,QAAA,QACI,KAAC,CAAA,aAAA,CAAA,IAAI,IACD,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,aAAa,EAC1B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,SAAS,EACpB,oBAAoB,EAAE,oBAAoB,EAC1C,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,UAAU,IAErB,IAAI,CACF;KAEd,CAAC,CACA;AAEd;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../../../src/components/step/Component.tsx"],"sourcesContent":["import React, { FC, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { getDataTestId } from '@alfalab/core-components-shared';\nimport { useFocus } from '@alfalab/hooks';\nimport { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';\nimport { ClockMIcon } from '@alfalab/icons-glyph/ClockMIcon';\nimport { CrossCompactMIcon } from '@alfalab/icons-glyph/CrossCompactMIcon';\nimport { ExclamationCircleMIcon } from '@alfalab/icons-glyph/ExclamationCircleMIcon';\n\nimport { CommonProps } from '../../types/common-props';\nimport { StepIndicator, StepIndicatorProps } from '../step-indicator';\n\nimport styles from './index.module.css';\n\ntype StepProps = {\n /**\n * Номер шага\n */\n stepNumber: number;\n\n /**\n * Маркер того, что текущий шаг выбран\n */\n isSelected: boolean;\n\n /**\n * Маркер того, что текущий шаг доступен для клика\n */\n disabled: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"Positive\"\n */\n isPositive: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"Error\"\n */\n isError: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"isCriticalError\"\n */\n isCriticalError: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"Warning\"\n */\n isWarning: boolean;\n\n /**\n * Маркер того, что текущий шаг находится в состоянии \"Waiting\"\n */\n isWaiting: boolean;\n\n /**\n * Маркер того, что текущий шаг нужно пометить как завершенный\n */\n isStepCompleted: boolean;\n\n /**\n * Свойства кастомного индикатора текущего шага\n */\n customStepIndicator?: StepIndicatorProps | null;\n\n /**\n * Указывает, является ли текущий шаг последним в списке\n */\n isNotLastStep?: boolean;\n\n /**\n * Обработчик нажатия на текущей шаг\n * @param stepNumber - номер шага\n */\n onClick: (stepNumber: number) => void;\n} & CommonProps;\n\nexport const Step: FC<StepProps> = ({\n children,\n stepNumber,\n isSelected,\n disabled,\n ordered,\n isPositive,\n isError,\n isCriticalError,\n isWarning,\n isWaiting,\n customStepIndicator,\n isStepCompleted,\n onClick,\n interactive,\n isVerticalAlign,\n isNotLastStep,\n fullWidth,\n minSpaceBetweenSteps = 24,\n completedDashColor,\n dataTestId,\n}) => {\n const stepRef = useRef<HTMLDivElement>(null);\n\n const [focused] = useFocus(stepRef, 'keyboard');\n\n const handleButtonClick = () => {\n if (!disabled && interactive && onClick) {\n onClick(stepNumber);\n }\n };\n\n const handleTextClick = (e: React.MouseEvent<HTMLElement>) => {\n if (!interactive) {\n e.stopPropagation();\n }\n };\n\n const handleKeyDown = (event: React.KeyboardEvent) => {\n if (event.key === 'Enter') {\n handleButtonClick();\n }\n };\n\n const getStepIndicator = () => {\n if (customStepIndicator) {\n return <StepIndicator {...customStepIndicator} />;\n }\n if (isCriticalError) {\n return <StepIndicator iconColor='negative' content={<CrossCompactMIcon />} />;\n }\n if (isError) {\n return <StepIndicator iconColor='negative' content={<ExclamationCircleMIcon />} />;\n }\n if (isWarning) {\n return <StepIndicator iconColor='attention' content={<ExclamationCircleMIcon />} />;\n }\n if (isWaiting) {\n return <StepIndicator iconColor='secondary' content={<ClockMIcon />} />;\n }\n if (isPositive) {\n return <StepIndicator iconColor='positive' content={<CheckmarkCircleMIcon />} />;\n }\n if (isStepCompleted) {\n return (\n <StepIndicator\n iconColor='positive'\n content={<CheckmarkCircleMIcon />}\n className={styles.completedIndicator}\n />\n );\n }\n if (!ordered) {\n return (\n <div className={styles.checkbox}>\n <span className={styles.dot} />\n </div>\n );\n }\n\n return stepNumber;\n };\n\n const getCustomDashColor = () => {\n if (isStepCompleted && completedDashColor) {\n return {\n borderColor: completedDashColor,\n };\n }\n\n return {};\n };\n\n const renderDash = () => (\n <div\n className={cn(styles.dash, {\n [styles.vertical]: isVerticalAlign,\n [styles.completed]: isStepCompleted,\n })}\n style={{\n ...getCustomDashColor(),\n }}\n />\n );\n\n return (\n <div\n data-test-id={getDataTestId(dataTestId, 'step')}\n role='button'\n tabIndex={0}\n ref={stepRef}\n className={cn(styles.step, {\n [styles.completed]: isStepCompleted,\n [styles.error]: isError,\n [styles.selected]: isSelected,\n [styles.disabled]: disabled,\n [styles.focused]: focused,\n [styles.vertical]: isVerticalAlign,\n [styles.interactive]: interactive,\n [styles.fullWidth]: fullWidth && isVerticalAlign,\n [styles.horizontal]: !isVerticalAlign,\n })}\n onClick={handleButtonClick}\n onKeyDown={handleKeyDown}\n >\n <div\n className={cn(styles.indicator, {\n [styles.vertical]: isVerticalAlign,\n [styles.interactive]: interactive,\n })}\n >\n <div\n className={cn(styles.option, {\n [styles.unordered]: !ordered,\n [styles.vertical]: isVerticalAlign,\n [styles.error]: isError,\n })}\n >\n {getStepIndicator()}\n </div>\n {isNotLastStep && isVerticalAlign && renderDash()}\n </div>\n <div\n className={cn(styles.textWrapper, styles[`gap-${minSpaceBetweenSteps}`], {\n [styles.vertical]: isVerticalAlign,\n })}\n >\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}\n <div\n className={cn(styles.text, {\n [styles.interactive]: interactive,\n [styles.fullWidth]: fullWidth && isVerticalAlign,\n })}\n onClick={handleTextClick}\n >\n {children}\n </div>\n </div>\n {isNotLastStep && !isVerticalAlign && renderDash()}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;MA8Ea,IAAI,GAAkB,CAAC,EAChC,QAAQ,EACR,UAAU,EACV,UAAU,EACV,QAAQ,EACR,OAAO,EACP,UAAU,EACV,OAAO,EACP,eAAe,EACf,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,eAAe,EACf,OAAO,EACP,WAAW,EACX,eAAe,EACf,aAAa,EACb,SAAS,EACT,oBAAoB,GAAG,EAAE,EACzB,kBAAkB,EAClB,UAAU,GACb,KAAI;AACD,IAAA,MAAM,OAAO,GAAG,MAAM,CAAiB,IAAI,CAAC;IAE5C,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAE/C,MAAM,iBAAiB,GAAG,MAAK;AAC3B,QAAA,IAAI,CAAC,QAAQ,IAAI,WAAW,IAAI,OAAO,EAAE;YACrC,OAAO,CAAC,UAAU,CAAC;AACtB;AACL,KAAC;AAED,IAAA,MAAM,eAAe,GAAG,CAAC,CAAgC,KAAI;QACzD,IAAI,CAAC,WAAW,EAAE;YACd,CAAC,CAAC,eAAe,EAAE;AACtB;AACL,KAAC;AAED,IAAA,MAAM,aAAa,GAAG,CAAC,KAA0B,KAAI;AACj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CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE;AACvB,oBAAA,CAAC,MAAM,CAAC,WAAW,GAAG,WAAW;AACjC,oBAAA,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,IAAI,eAAe;AACnD,iBAAA,CAAC,EACF,OAAO,EAAE,eAAe,EAEvB,EAAA,QAAQ,CACP,CACJ;QACL,aAAa,IAAI,CAAC,eAAe,IAAI,UAAU,EAAE,CAChD;AAEd;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* */
|
|
2
|
-
|
|
3
1
|
:root {
|
|
4
2
|
--steps-option-svg-color: var(--color-light-status-positive);
|
|
5
3
|
--steps-dash-border: 2px solid var(--color-light-status-positive);
|
|
@@ -106,6 +104,7 @@
|
|
|
106
104
|
padding: var(--gap-8);
|
|
107
105
|
color: var(--color-light-text-primary);
|
|
108
106
|
border-radius: var(--gap-8);
|
|
107
|
+
height: -moz-min-content;
|
|
109
108
|
height: min-content
|
|
110
109
|
}
|
|
111
110
|
|
|
@@ -6,3 +6,4 @@ import styles from './index.module.css';
|
|
|
6
6
|
const StepIndicator = ({ content, iconColor, className }) => (React.createElement(Badge, { size: 'l', view: 'icon', iconColor: iconColor, className: cn(styles.component, className), content: content }));
|
|
7
7
|
|
|
8
8
|
export { StepIndicator };
|
|
9
|
+
//# sourceMappingURL=Component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../../../src/components/step-indicator/Component.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { Badge, BadgeProps } from '@alfalab/core-components-badge';\n\nimport styles from './index.module.css';\n\nexport type StepIndicatorProps = Pick<BadgeProps, 'content' | 'iconColor' | 'className'>;\n\nexport const StepIndicator: React.FC<StepIndicatorProps> = ({ content, iconColor, className }) => (\n <Badge\n size='l'\n view='icon'\n iconColor={iconColor}\n className={cn(styles.component, className)}\n content={content}\n />\n);\n"],"names":[],"mappings":";;;;;MASa,aAAa,GAAiC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MACzF,oBAAC,KAAK,EAAA,EACF,IAAI,EAAC,GAAG,EACR,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,EAC1C,OAAO,EAAE,OAAO,EAClB,CAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/moderncssm/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { StepIndicatorProps } from
|
|
4
|
-
import { CommonProps } from
|
|
5
|
-
type StepsProps = {
|
|
2
|
+
import { StepIndicatorProps } from './components/step-indicator';
|
|
3
|
+
import { CommonProps } from './types/common-props';
|
|
4
|
+
export declare type StepsProps = {
|
|
6
5
|
/**
|
|
7
6
|
* Дополнительный класс
|
|
8
7
|
*/
|
|
@@ -70,5 +69,4 @@ type StepsProps = {
|
|
|
70
69
|
*/
|
|
71
70
|
onChange?: (stepNumber: number) => void;
|
|
72
71
|
} & CommonProps;
|
|
73
|
-
declare const Steps: React.FC<StepsProps>;
|
|
74
|
-
export { StepsProps, Steps };
|
|
72
|
+
export declare const Steps: React.FC<StepsProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { CommonProps } from
|
|
3
|
-
import { StepIndicatorProps } from
|
|
4
|
-
type StepProps = {
|
|
2
|
+
import { CommonProps } from '../../types/common-props';
|
|
3
|
+
import { StepIndicatorProps } from '../step-indicator';
|
|
4
|
+
declare type StepProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Номер шага
|
|
7
7
|
*/
|
|
@@ -52,5 +52,5 @@ type StepProps = {
|
|
|
52
52
|
*/
|
|
53
53
|
onClick: (stepNumber: number) => void;
|
|
54
54
|
} & CommonProps;
|
|
55
|
-
declare const Step: FC<StepProps>;
|
|
56
|
-
export {
|
|
55
|
+
export declare const Step: FC<StepProps>;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getStepsTestIds } from '../utils/getStepsTestIds';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
/** Обобщенный набор типов который подходит для Steps, но также прокинут в дочерний Step */
|
|
3
|
-
type CommonProps = {
|
|
3
|
+
export declare type CommonProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Идентификатор для систем автоматизированного тестирования
|
|
6
6
|
*/
|
|
@@ -38,4 +38,3 @@ type CommonProps = {
|
|
|
38
38
|
*/
|
|
39
39
|
completedDashColor?: string;
|
|
40
40
|
};
|
|
41
|
-
export { CommonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-props.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStepsTestIds.js","sources":["../../../src/utils/getStepsTestIds.ts"],"sourcesContent":["import { getDataTestId } from '@alfalab/core-components-shared';\n\nexport function getStepsTestIds(dataTestId: string) {\n return {\n steps: dataTestId,\n step: getDataTestId(dataTestId, 'step'),\n };\n}\n"],"names":[],"mappings":";;AAEM,SAAU,eAAe,CAAC,UAAkB,EAAA;IAC9C,OAAO;AACH,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,IAAI,EAAE,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC;KAC1C;AACL;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-steps",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1-snapshot-1393ffa",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-badge": "
|
|
19
|
-
"@alfalab/core-components-shared": "
|
|
18
|
+
"@alfalab/core-components-badge": "5.6.5-snapshot-1393ffa",
|
|
19
|
+
"@alfalab/core-components-shared": "0.16.1-snapshot-1393ffa",
|
|
20
20
|
"@alfalab/hooks": "^1.13.1",
|
|
21
21
|
"@alfalab/icons-glyph": "^2.210.0",
|
|
22
22
|
"classnames": "^2.5.1",
|
|
23
23
|
"tslib": "^2.4.0"
|
|
24
24
|
},
|
|
25
|
-
"themesVersion": "
|
|
26
|
-
"varsVersion": "9.
|
|
25
|
+
"themesVersion": "14.0.0-snapshot-1393ffa",
|
|
26
|
+
"varsVersion": "9.20.1-snapshot-1393ffa"
|
|
27
27
|
}
|
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 getStepsTestIds = require('../utils/getStepsTestIds.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.getStepsTestIds =
|
|
9
|
+
exports.getStepsTestIds = getStepsTestIds.getStepsTestIds;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StepIndicatorProps } from './components/step-indicator';
|
|
3
|
+
import { CommonProps } from './types/common-props';
|
|
4
|
+
export declare type StepsProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Дополнительный класс
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Активный шаг, указанный по умолчанию
|
|
11
|
+
* @default 1
|
|
12
|
+
*/
|
|
13
|
+
defaultActiveStep?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Активный шаг
|
|
16
|
+
*/
|
|
17
|
+
activeStep?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Управление возможностью отключения пометки пройденного шага
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
isMarkCompletedSteps?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Кастомный метод для управления состоянием disabled шага и
|
|
25
|
+
* возможностью перехода на этот шаг
|
|
26
|
+
* @param stepNumber - номер шага
|
|
27
|
+
* @return Флаг состояния disabled
|
|
28
|
+
*/
|
|
29
|
+
checkIsStepDisabled?: (stepNumber: number) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Кастомный метод для управления состоянием шага error
|
|
32
|
+
* @param stepNumber - номер шага
|
|
33
|
+
* @return Флаг состояния error
|
|
34
|
+
*/
|
|
35
|
+
checkIsStepError?: (stepNumber: number) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Кастомный метод для управления состоянием шага criticalError
|
|
38
|
+
* @param stepNumber - номер шага
|
|
39
|
+
* @return Флаг состояния error
|
|
40
|
+
*/
|
|
41
|
+
checkIsStepCriticalError?: (stepNumber: number) => boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Кастомный метод для управления состоянием шага warning
|
|
44
|
+
* @param stepNumber - номер шага
|
|
45
|
+
* @return Флаг состояния warning
|
|
46
|
+
*/
|
|
47
|
+
checkIsStepWarning?: (stepNumber: number) => boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Кастомный метод для управления состоянием шага waiting
|
|
50
|
+
* @param stepNumber - номер шага
|
|
51
|
+
* @return Флаг состояния waiting
|
|
52
|
+
*/
|
|
53
|
+
checkIsStepWaiting?: (stepNumber: number) => boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Кастомный метод для управления состоянием шага positive
|
|
56
|
+
* @param stepNumber - номер шага
|
|
57
|
+
* @return Флаг состояния positive
|
|
58
|
+
*/
|
|
59
|
+
checkIsStepPositive?: (stepNumber: number) => boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Кастомный метод для установки кастомного индикатора шага
|
|
62
|
+
* @param stepNumber - номер шага
|
|
63
|
+
* @return Объект StepIndicatorProps { className, content, iconColor } или null
|
|
64
|
+
*/
|
|
65
|
+
checkIsStepCustom?: (stepNumber: number) => StepIndicatorProps | null;
|
|
66
|
+
/**
|
|
67
|
+
* Обработчик клика на шаг
|
|
68
|
+
* @param stepNumber - номер активного шага
|
|
69
|
+
*/
|
|
70
|
+
onChange?: (stepNumber: number) => void;
|
|
71
|
+
} & CommonProps;
|
|
72
|
+
export declare const Steps: React.FC<StepsProps>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CommonProps } from '../../types/common-props';
|
|
3
|
+
import { StepIndicatorProps } from '../step-indicator';
|
|
4
|
+
declare type StepProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Номер шага
|
|
7
|
+
*/
|
|
8
|
+
stepNumber: number;
|
|
9
|
+
/**
|
|
10
|
+
* Маркер того, что текущий шаг выбран
|
|
11
|
+
*/
|
|
12
|
+
isSelected: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Маркер того, что текущий шаг доступен для клика
|
|
15
|
+
*/
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Маркер того, что текущий шаг находится в состоянии "Positive"
|
|
19
|
+
*/
|
|
20
|
+
isPositive: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Маркер того, что текущий шаг находится в состоянии "Error"
|
|
23
|
+
*/
|
|
24
|
+
isError: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Маркер того, что текущий шаг находится в состоянии "isCriticalError"
|
|
27
|
+
*/
|
|
28
|
+
isCriticalError: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Маркер того, что текущий шаг находится в состоянии "Warning"
|
|
31
|
+
*/
|
|
32
|
+
isWarning: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Маркер того, что текущий шаг находится в состоянии "Waiting"
|
|
35
|
+
*/
|
|
36
|
+
isWaiting: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Маркер того, что текущий шаг нужно пометить как завершенный
|
|
39
|
+
*/
|
|
40
|
+
isStepCompleted: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Свойства кастомного индикатора текущего шага
|
|
43
|
+
*/
|
|
44
|
+
customStepIndicator?: StepIndicatorProps | null;
|
|
45
|
+
/**
|
|
46
|
+
* Указывает, является ли текущий шаг последним в списке
|
|
47
|
+
*/
|
|
48
|
+
isNotLastStep?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Обработчик нажатия на текущей шаг
|
|
51
|
+
* @param stepNumber - номер шага
|
|
52
|
+
*/
|
|
53
|
+
onClick: (stepNumber: number) => void;
|
|
54
|
+
} & CommonProps;
|
|
55
|
+
export declare const Step: FC<StepProps>;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Component';
|