@hh.ru/magritte-ui-stepper 1.2.9 → 1.3.1
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/Content.js +1 -1
- package/Marker.js +1 -1
- package/Step.d.ts +2 -0
- package/Step.js +3 -2
- package/Step.js.map +1 -1
- package/Stepper.js +1 -1
- package/index.css +48 -47
- package/index.js +1 -1
- package/package.json +3 -3
- package/stepper-7TpAJ3Vi.js +5 -0
- package/stepper-7TpAJ3Vi.js.map +1 -0
- package/stepper-CZzz9gjH.js +0 -5
- package/stepper-CZzz9gjH.js.map +0 -1
package/Content.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef, Fragment } from 'react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { useDisabled } from '@hh.ru/magritte-common-use-disabled';
|
|
6
|
-
import { s as styles } from './stepper-
|
|
6
|
+
import { s as styles } from './stepper-7TpAJ3Vi.js';
|
|
7
7
|
|
|
8
8
|
const StepperContent = forwardRef(({ children, onClick }, ref) => {
|
|
9
9
|
const Wrapper = onClick ? 'button' : Fragment;
|
package/Marker.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { useDisabled } from '@hh.ru/magritte-common-use-disabled';
|
|
5
5
|
import { isIconElement, IconDynamic } from '@hh.ru/magritte-ui-icon';
|
|
6
|
-
import { s as styles } from './stepper-
|
|
6
|
+
import { s as styles } from './stepper-7TpAJ3Vi.js';
|
|
7
7
|
|
|
8
8
|
const StepperMarker = ({ children, size }) => {
|
|
9
9
|
const isIcon = isIconElement(children);
|
package/Step.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export interface StepExternalProps {
|
|
|
3
3
|
'data-qa'?: string;
|
|
4
4
|
/** Флаг отключающий шаг */
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
/** Принудительно включает дивайдер для последнего шага */
|
|
7
|
+
forceDivider?: boolean;
|
|
6
8
|
/** Оформление шага (цвет полосы сверху или слева от шага) */
|
|
7
9
|
style?: 'neutral' | 'positive' | 'warning' | 'negative';
|
|
8
10
|
/** Обработчик клика */
|
package/Step.js
CHANGED
|
@@ -4,9 +4,9 @@ import { forwardRef, isValidElement, Children, cloneElement } from 'react';
|
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { useDisabled, DisabledContext } from '@hh.ru/magritte-common-use-disabled';
|
|
6
6
|
import { StepperContent } from './Content.js';
|
|
7
|
-
import { s as styles } from './stepper-
|
|
7
|
+
import { s as styles } from './stepper-7TpAJ3Vi.js';
|
|
8
8
|
|
|
9
|
-
const StepperStep = forwardRef(({ 'data-qa': dataQa = 'magritte-stepper-step', disabled = false, children, onClick, selected, style = 'neutral', }, ref) => {
|
|
9
|
+
const StepperStep = forwardRef(({ 'data-qa': dataQa = 'magritte-stepper-step', disabled = false, forceDivider = false, children, onClick, selected, style = 'neutral', }, ref) => {
|
|
10
10
|
const isDisabled = !!(useDisabled() || disabled);
|
|
11
11
|
const hasContent = Array.isArray(children) &&
|
|
12
12
|
isValidElement(children[1]) &&
|
|
@@ -14,6 +14,7 @@ const StepperStep = forwardRef(({ 'data-qa': dataQa = 'magritte-stepper-step', d
|
|
|
14
14
|
return (jsx(DisabledContext.Provider, { value: isDisabled, children: jsx("li", { className: classnames(styles.step, styles[`step-style-${style}`], {
|
|
15
15
|
[styles.disabledStep]: isDisabled,
|
|
16
16
|
[styles.stepNoContent]: !hasContent,
|
|
17
|
+
[styles.forceDivider]: forceDivider,
|
|
17
18
|
}), "aria-current": selected ? 'step' : undefined, "aria-disabled": isDisabled, "data-qa": dataQa, ref: ref, children: Children.map(children, (child) => isValidElement(child) && child?.type === StepperContent
|
|
18
19
|
? cloneElement(child, {
|
|
19
20
|
onClick: onClick ? () => onClick(!!selected) : undefined,
|
package/Step.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.js","sources":["src/Step.tsx"],"sourcesContent":["import {\n type LegacyRef,\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ReactNode,\n isValidElement,\n cloneElement,\n forwardRef,\n Children,\n ReactElement,\n} from 'react';\nimport classnames from 'classnames';\n\nimport { useDisabled, DisabledContext } from '@hh.ru/magritte-common-use-disabled';\nimport { StepperContent } from '@hh.ru/magritte-ui-stepper/Content';\n\nimport styles from './stepper.less';\n\nexport interface StepExternalProps {\n 'data-qa'?: string;\n /** Флаг отключающий шаг */\n disabled?: boolean;\n /** Оформление шага (цвет полосы сверху или слева от шага) */\n style?: 'neutral' | 'positive' | 'warning' | 'negative';\n /** Обработчик клика */\n onClick?: (isSelected: boolean) => void | null;\n children?: ReactNode;\n}\n\nexport type StepProps = {\n selected?: boolean;\n} & StepExternalProps;\n\nexport const StepperStep = forwardRef<HTMLElement, StepProps>(\n (\n {\n 'data-qa': dataQa = 'magritte-stepper-step',\n disabled = false,\n children,\n onClick,\n selected,\n style = 'neutral',\n },\n ref\n ) => {\n const isDisabled = !!(useDisabled() || disabled);\n const hasContent =\n Array.isArray(children) &&\n isValidElement(children[1] as null) &&\n (children[1] as ReactElement)?.type === StepperContent;\n\n return (\n <DisabledContext.Provider value={isDisabled}>\n <li\n className={classnames(styles.step, styles[`step-style-${style}`], {\n [styles.disabledStep]: isDisabled,\n [styles.stepNoContent]: !hasContent,\n })}\n aria-current={selected ? 'step' : undefined}\n aria-disabled={isDisabled}\n data-qa={dataQa}\n ref={ref as LegacyRef<HTMLLIElement>}\n >\n {Children.map(children, (child) =>\n isValidElement(child) && child?.type === StepperContent\n ? cloneElement(child as ReactElement, {\n onClick: onClick ? () => onClick(!!selected) : undefined,\n })\n : child\n )}\n </li>\n </DisabledContext.Provider>\n );\n }\n) as ForwardRefExoticComponent<StepExternalProps & RefAttributes<HTMLElement>>;\n\nStepperStep.displayName = 'StepperStep';\n"],"names":["_jsx"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"Step.js","sources":["src/Step.tsx"],"sourcesContent":["import {\n type LegacyRef,\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ReactNode,\n isValidElement,\n cloneElement,\n forwardRef,\n Children,\n ReactElement,\n} from 'react';\nimport classnames from 'classnames';\n\nimport { useDisabled, DisabledContext } from '@hh.ru/magritte-common-use-disabled';\nimport { StepperContent } from '@hh.ru/magritte-ui-stepper/Content';\n\nimport styles from './stepper.less';\n\nexport interface StepExternalProps {\n 'data-qa'?: string;\n /** Флаг отключающий шаг */\n disabled?: boolean;\n /** Принудительно включает дивайдер для последнего шага */\n forceDivider?: boolean;\n /** Оформление шага (цвет полосы сверху или слева от шага) */\n style?: 'neutral' | 'positive' | 'warning' | 'negative';\n /** Обработчик клика */\n onClick?: (isSelected: boolean) => void | null;\n children?: ReactNode;\n}\n\nexport type StepProps = {\n selected?: boolean;\n} & StepExternalProps;\n\nexport const StepperStep = forwardRef<HTMLElement, StepProps>(\n (\n {\n 'data-qa': dataQa = 'magritte-stepper-step',\n disabled = false,\n forceDivider = false,\n children,\n onClick,\n selected,\n style = 'neutral',\n },\n ref\n ) => {\n const isDisabled = !!(useDisabled() || disabled);\n const hasContent =\n Array.isArray(children) &&\n isValidElement(children[1] as null) &&\n (children[1] as ReactElement)?.type === StepperContent;\n\n return (\n <DisabledContext.Provider value={isDisabled}>\n <li\n className={classnames(styles.step, styles[`step-style-${style}`], {\n [styles.disabledStep]: isDisabled,\n [styles.stepNoContent]: !hasContent,\n [styles.forceDivider]: forceDivider,\n })}\n aria-current={selected ? 'step' : undefined}\n aria-disabled={isDisabled}\n data-qa={dataQa}\n ref={ref as LegacyRef<HTMLLIElement>}\n >\n {Children.map(children, (child) =>\n isValidElement(child) && child?.type === StepperContent\n ? cloneElement(child as ReactElement, {\n onClick: onClick ? () => onClick(!!selected) : undefined,\n })\n : child\n )}\n </li>\n </DisabledContext.Provider>\n );\n }\n) as ForwardRefExoticComponent<StepExternalProps & RefAttributes<HTMLElement>>;\n\nStepperStep.displayName = 'StepperStep';\n"],"names":["_jsx"],"mappings":";;;;;;;AAmCO,MAAM,WAAW,GAAG,UAAU,CACjC,CACI,EACI,SAAS,EAAE,MAAM,GAAG,uBAAuB,EAC3C,QAAQ,GAAG,KAAK,EAChB,YAAY,GAAG,KAAK,EACpB,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,KAAK,GAAG,SAAS,GACpB,EACD,GAAG,KACH;IACA,MAAM,UAAU,GAAG,CAAC,EAAE,WAAW,EAAE,IAAI,QAAQ,CAAC,CAAC;AACjD,IAAA,MAAM,UAAU,GACZ,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;AACvB,QAAA,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAS,CAAC;AAClC,QAAA,QAAQ,CAAC,CAAC,CAAkB,EAAE,IAAI,KAAK,cAAc,CAAC;IAE3D,QACIA,GAAC,CAAA,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,EAAA,QAAA,EACvCA,GACI,CAAA,IAAA,EAAA,EAAA,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAc,WAAA,EAAA,KAAK,CAAE,CAAA,CAAC,EAAE;AAC9D,gBAAA,CAAC,MAAM,CAAC,YAAY,GAAG,UAAU;AACjC,gBAAA,CAAC,MAAM,CAAC,aAAa,GAAG,CAAC,UAAU;AACnC,gBAAA,CAAC,MAAM,CAAC,YAAY,GAAG,YAAY;AACtC,aAAA,CAAC,kBACY,QAAQ,GAAG,MAAM,GAAG,SAAS,mBAC5B,UAAU,EAAA,SAAA,EAChB,MAAM,EACf,GAAG,EAAE,GAA+B,EAAA,QAAA,EAEnC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,KAC1B,cAAc,CAAC,KAAK,CAAC,IAAI,KAAK,EAAE,IAAI,KAAK,cAAc;AACnD,kBAAE,YAAY,CAAC,KAAqB,EAAE;AAChC,oBAAA,OAAO,EAAE,OAAO,GAAG,MAAM,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS;iBAC3D,CAAC;AACJ,kBAAE,KAAK,CACd,EACA,CAAA,EAAA,CACkB,EAC7B;AACN,CAAC,EAC0E;AAE/E,WAAW,CAAC,WAAW,GAAG,aAAa;;;;"}
|
package/Stepper.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef, Children, cloneElement, Fragment } from 'react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { useDisabled, DisabledContext } from '@hh.ru/magritte-common-use-disabled';
|
|
6
|
-
import { s as styles } from './stepper-
|
|
6
|
+
import { s as styles } from './stepper-7TpAJ3Vi.js';
|
|
7
7
|
|
|
8
8
|
const Stepper = forwardRef(({ selectedStep = null, onStepClick, orientation = 'vertical', 'data-qa': dataQa = 'magritte-stepper', 'aria-label': ariaLabel, disabled, children, }, ref) => {
|
|
9
9
|
const isDisabled = !!(useDisabled() || disabled);
|
package/index.css
CHANGED
|
@@ -10,158 +10,159 @@
|
|
|
10
10
|
--magritte-color-stroke-neutral-v24-5-0:#303030;
|
|
11
11
|
--magritte-color-stroke-positive-v24-5-0:#10b55f;
|
|
12
12
|
}
|
|
13
|
-
.magritte-stepper___bf9CG_1-
|
|
13
|
+
.magritte-stepper___bf9CG_1-3-1{
|
|
14
14
|
display:flex;
|
|
15
15
|
flex:1 1;
|
|
16
16
|
list-style:none;
|
|
17
17
|
}
|
|
18
|
-
.magritte-stepper-horizontal___54ih5_1-
|
|
18
|
+
.magritte-stepper-horizontal___54ih5_1-3-1{
|
|
19
19
|
flex-direction:row;
|
|
20
20
|
}
|
|
21
|
-
.magritte-stepper-horizontal___54ih5_1-
|
|
21
|
+
.magritte-stepper-horizontal___54ih5_1-3-1 .magritte-step___7YXV2_1-3-1{
|
|
22
22
|
flex-direction:column;
|
|
23
23
|
}
|
|
24
|
-
.magritte-stepper-horizontal___54ih5_1-
|
|
24
|
+
.magritte-stepper-horizontal___54ih5_1-3-1 .magritte-marker-container___ZuSOj_1-3-1{
|
|
25
25
|
flex-direction:row;
|
|
26
26
|
padding:0 12px 0 0;
|
|
27
27
|
}
|
|
28
|
-
.magritte-stepper-horizontal___54ih5_1-
|
|
28
|
+
.magritte-stepper-horizontal___54ih5_1-3-1 .magritte-marker-container___ZuSOj_1-3-1.magritte-marker-container-with-icon___rBC1i_1-3-1{
|
|
29
29
|
padding:0 8px 0 0;
|
|
30
30
|
}
|
|
31
|
-
.magritte-stepper-horizontal___54ih5_1-
|
|
31
|
+
.magritte-stepper-horizontal___54ih5_1-3-1 .magritte-marker-container___ZuSOj_1-3-1::after{
|
|
32
32
|
border-width:0;
|
|
33
33
|
border-top-width:1px;
|
|
34
34
|
}
|
|
35
|
-
.magritte-stepper-horizontal___54ih5_1-
|
|
35
|
+
.magritte-stepper-horizontal___54ih5_1-3-1 .magritte-marker-wrapper___m-Hsn_1-3-1{
|
|
36
36
|
padding:0 12px 0 0;
|
|
37
37
|
}
|
|
38
|
-
.magritte-stepper-horizontal___54ih5_1-
|
|
38
|
+
.magritte-stepper-horizontal___54ih5_1-3-1 .magritte-marker-container-with-icon___rBC1i_1-3-1 .magritte-marker-wrapper___m-Hsn_1-3-1{
|
|
39
39
|
padding:0 8px 0 0;
|
|
40
40
|
}
|
|
41
|
-
.magritte-stepper-horizontal___54ih5_1-
|
|
41
|
+
.magritte-stepper-horizontal___54ih5_1-3-1 .magritte-content-container___KPIiS_1-3-1{
|
|
42
42
|
padding:12px 24px 0 0;
|
|
43
43
|
}
|
|
44
|
-
.magritte-stepper-horizontal___54ih5_1-
|
|
44
|
+
.magritte-stepper-horizontal___54ih5_1-3-1 .magritte-step___7YXV2_1-3-1:last-of-type:not(.magritte-force-divider___KV-G7_1-3-1) .magritte-content-container___KPIiS_1-3-1{
|
|
45
45
|
padding-right:0;
|
|
46
46
|
}
|
|
47
|
-
.magritte-content-container___KPIiS_1-
|
|
47
|
+
.magritte-content-container___KPIiS_1-3-1{
|
|
48
48
|
order:2;
|
|
49
49
|
}
|
|
50
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
50
|
+
.magritte-stepper-vertical___032Tm_1-3-1{
|
|
51
51
|
flex-direction:column;
|
|
52
52
|
}
|
|
53
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
53
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-step___7YXV2_1-3-1{
|
|
54
54
|
flex-direction:row;
|
|
55
55
|
}
|
|
56
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
57
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
56
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-content-container___KPIiS_1-3-1,
|
|
57
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-step-button___xSXUO_1-3-1{
|
|
58
58
|
flex:1 1;
|
|
59
59
|
}
|
|
60
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
60
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-marker-container___ZuSOj_1-3-1{
|
|
61
61
|
flex-direction:column;
|
|
62
62
|
padding:4px 0 8px;
|
|
63
63
|
}
|
|
64
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
64
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-marker-container___ZuSOj_1-3-1.magritte-marker-container-with-icon___rBC1i_1-3-1{
|
|
65
65
|
padding-bottom:4px;
|
|
66
66
|
}
|
|
67
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
67
|
+
.magritte-stepper-vertical___032Tm_1-3-1.magritte-stepper-no-content___AEmtQ_1-3-1 .magritte-marker-container___ZuSOj_1-3-1{
|
|
68
68
|
padding-right:0;
|
|
69
69
|
}
|
|
70
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
70
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-marker-container___ZuSOj_1-3-1::after{
|
|
71
71
|
border-width:0;
|
|
72
72
|
border-left-width:1px;
|
|
73
73
|
}
|
|
74
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
74
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-marker-wrapper___m-Hsn_1-3-1{
|
|
75
75
|
padding:0 0 12px;
|
|
76
76
|
}
|
|
77
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
77
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-marker-container-with-icon___rBC1i_1-3-1 .magritte-marker-wrapper___m-Hsn_1-3-1{
|
|
78
78
|
padding:0 0 8px;
|
|
79
79
|
}
|
|
80
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
80
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-content-container___KPIiS_1-3-1{
|
|
81
81
|
padding:0 0 24px 12px;
|
|
82
82
|
}
|
|
83
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
84
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
85
|
-
.magritte-stepper-vertical___032Tm_1-
|
|
83
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-step___7YXV2_1-3-1:last-of-type:not(.magritte-force-divider___KV-G7_1-3-1) .magritte-content-container___KPIiS_1-3-1,
|
|
84
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-step___7YXV2_1-3-1:last-of-type:not(.magritte-force-divider___KV-G7_1-3-1) .magritte-marker-container___ZuSOj_1-3-1,
|
|
85
|
+
.magritte-stepper-vertical___032Tm_1-3-1 .magritte-step___7YXV2_1-3-1:last-of-type:not(.magritte-force-divider___KV-G7_1-3-1) .magritte-marker-wrapper___m-Hsn_1-3-1{
|
|
86
86
|
padding-bottom:0;
|
|
87
87
|
}
|
|
88
|
-
.magritte-step___7YXV2_1-
|
|
88
|
+
.magritte-step___7YXV2_1-3-1:last-of-type.magritte-step-no-content___mTIaO_1-3-1:not(.magritte-force-divider___KV-G7_1-3-1){
|
|
89
89
|
flex:0 0;
|
|
90
90
|
}
|
|
91
|
-
.magritte-step___7YXV2_1-
|
|
92
|
-
.magritte-step___7YXV2_1-
|
|
91
|
+
.magritte-step___7YXV2_1-3-1:last-of-type.magritte-step-no-content___mTIaO_1-3-1:not(.magritte-force-divider___KV-G7_1-3-1) .magritte-marker-container___ZuSOj_1-3-1,
|
|
92
|
+
.magritte-step___7YXV2_1-3-1:last-of-type.magritte-step-no-content___mTIaO_1-3-1:not(.magritte-force-divider___KV-G7_1-3-1) .magritte-marker-wrapper___m-Hsn_1-3-1{
|
|
93
93
|
padding:0;
|
|
94
94
|
}
|
|
95
|
-
.magritte-step___7YXV2_1-
|
|
95
|
+
.magritte-step___7YXV2_1-3-1{
|
|
96
96
|
display:flex;
|
|
97
97
|
flex:1 1;
|
|
98
98
|
}
|
|
99
|
-
.magritte-marker-container___ZuSOj_1-
|
|
99
|
+
.magritte-marker-container___ZuSOj_1-3-1{
|
|
100
100
|
order:1;
|
|
101
101
|
display:flex;
|
|
102
102
|
align-items:center;
|
|
103
103
|
}
|
|
104
|
-
.magritte-marker-container-disabled___lJ-PA_1-
|
|
104
|
+
.magritte-marker-container-disabled___lJ-PA_1-3-1::after{
|
|
105
105
|
opacity:0.5;
|
|
106
106
|
}
|
|
107
|
-
.magritte-step___7YXV2_1-
|
|
107
|
+
.magritte-step___7YXV2_1-3-1:not(:last-of-type) .magritte-marker-container___ZuSOj_1-3-1::after,
|
|
108
|
+
.magritte-step___7YXV2_1-3-1.magritte-force-divider___KV-G7_1-3-1 .magritte-marker-container___ZuSOj_1-3-1::after{
|
|
108
109
|
flex:1 1;
|
|
109
110
|
content:'';
|
|
110
111
|
border-style:solid;
|
|
111
112
|
}
|
|
112
|
-
.magritte-step-style-neutral___061j4_1-
|
|
113
|
+
.magritte-step-style-neutral___061j4_1-3-1 .magritte-marker-container___ZuSOj_1-3-1::after{
|
|
113
114
|
border-color:var(--magritte-color-stroke-neutral-v24-5-0);
|
|
114
115
|
}
|
|
115
|
-
.magritte-step-style-positive___9jcvm_1-
|
|
116
|
+
.magritte-step-style-positive___9jcvm_1-3-1 .magritte-marker-container___ZuSOj_1-3-1::after{
|
|
116
117
|
border-color:var(--magritte-color-stroke-positive-v24-5-0);
|
|
117
118
|
}
|
|
118
|
-
.magritte-step-style-warning___NboIv_1-
|
|
119
|
+
.magritte-step-style-warning___NboIv_1-3-1 .magritte-marker-container___ZuSOj_1-3-1::after{
|
|
119
120
|
border-color:var(--magritte-color-stroke-neutral-v24-5-0);
|
|
120
121
|
}
|
|
121
|
-
.magritte-step-style-negative___w1AbF_1-
|
|
122
|
+
.magritte-step-style-negative___w1AbF_1-3-1 .magritte-marker-container___ZuSOj_1-3-1::after{
|
|
122
123
|
border-color:var(--magritte-color-stroke-neutral-v24-5-0);
|
|
123
124
|
}
|
|
124
|
-
.magritte-marker-wrapper___m-Hsn_1-
|
|
125
|
+
.magritte-marker-wrapper___m-Hsn_1-3-1{
|
|
125
126
|
display:flex;
|
|
126
127
|
flex:0 0;
|
|
127
128
|
line-height:0;
|
|
128
129
|
}
|
|
129
|
-
.magritte-marker-divider-wrapper___PGB27_1-
|
|
130
|
+
.magritte-marker-divider-wrapper___PGB27_1-3-1{
|
|
130
131
|
display:inline-block;
|
|
131
132
|
flex:1 1;
|
|
132
133
|
}
|
|
133
|
-
.magritte-content-container___KPIiS_1-
|
|
134
|
-
.magritte-step-button___xSXUO_1-
|
|
134
|
+
.magritte-content-container___KPIiS_1-3-1,
|
|
135
|
+
.magritte-step-button___xSXUO_1-3-1{
|
|
135
136
|
display:flex;
|
|
136
137
|
flex-direction:column;
|
|
137
138
|
align-items:flex-start;
|
|
138
139
|
gap:12px;
|
|
139
140
|
}
|
|
140
|
-
.magritte-content-interactive___Cd9wI_1-
|
|
141
|
+
.magritte-content-interactive___Cd9wI_1-3-1{
|
|
141
142
|
align-items:stretch;
|
|
142
143
|
}
|
|
143
|
-
.magritte-step-button___xSXUO_1-
|
|
144
|
+
.magritte-step-button___xSXUO_1-3-1{
|
|
144
145
|
margin:-4px -8px;
|
|
145
146
|
padding:4px 8px;
|
|
146
147
|
border-radius:12px;
|
|
147
148
|
cursor:default;
|
|
148
149
|
}
|
|
149
|
-
.magritte-step-button___xSXUO_1-
|
|
150
|
+
.magritte-step-button___xSXUO_1-3-1:not(:disabled){
|
|
150
151
|
cursor:pointer;
|
|
151
152
|
}
|
|
152
153
|
@media (min-width: 1020px){
|
|
153
|
-
body.magritte-old-layout .magritte-step-button___xSXUO_1-
|
|
154
|
+
body.magritte-old-layout .magritte-step-button___xSXUO_1-3-1:hover:not(:disabled){
|
|
154
155
|
background-color:var(--magritte-color-background-state-secondary-hovered-v24-5-0);
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
@media (min-width: 1024px){
|
|
158
|
-
body:not(.magritte-old-layout) .magritte-step-button___xSXUO_1-
|
|
159
|
+
body:not(.magritte-old-layout) .magritte-step-button___xSXUO_1-3-1:hover:not(:disabled){
|
|
159
160
|
background-color:var(--magritte-color-background-state-secondary-hovered-v24-5-0);
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
|
-
.magritte-step-button___xSXUO_1-
|
|
163
|
+
.magritte-step-button___xSXUO_1-3-1:active:not(:disabled){
|
|
163
164
|
background-color:var(--magritte-color-background-state-secondary-hovered-v24-5-0);
|
|
164
165
|
}
|
|
165
|
-
.magritte-step-button___xSXUO_1-
|
|
166
|
+
.magritte-step-button___xSXUO_1-3-1.focus-visible{
|
|
166
167
|
outline:4px solid var(--magritte-color-stroke-state-focused-accessible-v24-5-0);
|
|
167
168
|
}
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-stepper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"@hh.ru/magritte-common-use-disabled": "1.0.15",
|
|
26
26
|
"@hh.ru/magritte-design-tokens": "24.5.0",
|
|
27
27
|
"@hh.ru/magritte-ui-breakpoint": "6.0.8",
|
|
28
|
-
"@hh.ru/magritte-ui-icon": "14.
|
|
28
|
+
"@hh.ru/magritte-ui-icon": "14.1.0",
|
|
29
29
|
"@hh.ru/magritte-ui-mock-component": "1.1.7"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"classnames": ">=2.3.2",
|
|
33
33
|
"react": ">=18.2.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "3f1aa3b58a7e74d784b1af1a2a1950700ebe08d0"
|
|
36
36
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"stepper":"magritte-stepper___bf9CG_1-3-1","stepper-horizontal":"magritte-stepper-horizontal___54ih5_1-3-1","stepperHorizontal":"magritte-stepper-horizontal___54ih5_1-3-1","step":"magritte-step___7YXV2_1-3-1","marker-container":"magritte-marker-container___ZuSOj_1-3-1","markerContainer":"magritte-marker-container___ZuSOj_1-3-1","marker-container-with-icon":"magritte-marker-container-with-icon___rBC1i_1-3-1","markerContainerWithIcon":"magritte-marker-container-with-icon___rBC1i_1-3-1","marker-wrapper":"magritte-marker-wrapper___m-Hsn_1-3-1","markerWrapper":"magritte-marker-wrapper___m-Hsn_1-3-1","content-container":"magritte-content-container___KPIiS_1-3-1","contentContainer":"magritte-content-container___KPIiS_1-3-1","force-divider":"magritte-force-divider___KV-G7_1-3-1","forceDivider":"magritte-force-divider___KV-G7_1-3-1","stepper-vertical":"magritte-stepper-vertical___032Tm_1-3-1","stepperVertical":"magritte-stepper-vertical___032Tm_1-3-1","step-button":"magritte-step-button___xSXUO_1-3-1","stepButton":"magritte-step-button___xSXUO_1-3-1","stepper-no-content":"magritte-stepper-no-content___AEmtQ_1-3-1","stepperNoContent":"magritte-stepper-no-content___AEmtQ_1-3-1","step-no-content":"magritte-step-no-content___mTIaO_1-3-1","stepNoContent":"magritte-step-no-content___mTIaO_1-3-1","marker-container-disabled":"magritte-marker-container-disabled___lJ-PA_1-3-1","markerContainerDisabled":"magritte-marker-container-disabled___lJ-PA_1-3-1","step-style-neutral":"magritte-step-style-neutral___061j4_1-3-1","stepStyleNeutral":"magritte-step-style-neutral___061j4_1-3-1","step-style-positive":"magritte-step-style-positive___9jcvm_1-3-1","stepStylePositive":"magritte-step-style-positive___9jcvm_1-3-1","step-style-warning":"magritte-step-style-warning___NboIv_1-3-1","stepStyleWarning":"magritte-step-style-warning___NboIv_1-3-1","step-style-negative":"magritte-step-style-negative___w1AbF_1-3-1","stepStyleNegative":"magritte-step-style-negative___w1AbF_1-3-1","marker-divider-wrapper":"magritte-marker-divider-wrapper___PGB27_1-3-1","markerDividerWrapper":"magritte-marker-divider-wrapper___PGB27_1-3-1","content-interactive":"magritte-content-interactive___Cd9wI_1-3-1","contentInteractive":"magritte-content-interactive___Cd9wI_1-3-1"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=stepper-7TpAJ3Vi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepper-7TpAJ3Vi.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/stepper-CZzz9gjH.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"stepper":"magritte-stepper___bf9CG_1-2-9","stepper-horizontal":"magritte-stepper-horizontal___54ih5_1-2-9","stepperHorizontal":"magritte-stepper-horizontal___54ih5_1-2-9","step":"magritte-step___7YXV2_1-2-9","marker-container":"magritte-marker-container___ZuSOj_1-2-9","markerContainer":"magritte-marker-container___ZuSOj_1-2-9","marker-container-with-icon":"magritte-marker-container-with-icon___rBC1i_1-2-9","markerContainerWithIcon":"magritte-marker-container-with-icon___rBC1i_1-2-9","marker-wrapper":"magritte-marker-wrapper___m-Hsn_1-2-9","markerWrapper":"magritte-marker-wrapper___m-Hsn_1-2-9","content-container":"magritte-content-container___KPIiS_1-2-9","contentContainer":"magritte-content-container___KPIiS_1-2-9","stepper-vertical":"magritte-stepper-vertical___032Tm_1-2-9","stepperVertical":"magritte-stepper-vertical___032Tm_1-2-9","step-button":"magritte-step-button___xSXUO_1-2-9","stepButton":"magritte-step-button___xSXUO_1-2-9","stepper-no-content":"magritte-stepper-no-content___AEmtQ_1-2-9","stepperNoContent":"magritte-stepper-no-content___AEmtQ_1-2-9","step-no-content":"magritte-step-no-content___mTIaO_1-2-9","stepNoContent":"magritte-step-no-content___mTIaO_1-2-9","marker-container-disabled":"magritte-marker-container-disabled___lJ-PA_1-2-9","markerContainerDisabled":"magritte-marker-container-disabled___lJ-PA_1-2-9","step-style-neutral":"magritte-step-style-neutral___061j4_1-2-9","stepStyleNeutral":"magritte-step-style-neutral___061j4_1-2-9","step-style-positive":"magritte-step-style-positive___9jcvm_1-2-9","stepStylePositive":"magritte-step-style-positive___9jcvm_1-2-9","step-style-warning":"magritte-step-style-warning___NboIv_1-2-9","stepStyleWarning":"magritte-step-style-warning___NboIv_1-2-9","step-style-negative":"magritte-step-style-negative___w1AbF_1-2-9","stepStyleNegative":"magritte-step-style-negative___w1AbF_1-2-9","marker-divider-wrapper":"magritte-marker-divider-wrapper___PGB27_1-2-9","markerDividerWrapper":"magritte-marker-divider-wrapper___PGB27_1-2-9","content-interactive":"magritte-content-interactive___Cd9wI_1-2-9","contentInteractive":"magritte-content-interactive___Cd9wI_1-2-9"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=stepper-CZzz9gjH.js.map
|
package/stepper-CZzz9gjH.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepper-CZzz9gjH.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|