@hh.ru/magritte-ui-stepper 1.2.9 → 1.3.0

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 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-CZzz9gjH.js';
6
+ import { s as styles } from './stepper-CmOyd1oW.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-CZzz9gjH.js';
6
+ import { s as styles } from './stepper-CmOyd1oW.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-CZzz9gjH.js';
7
+ import { s as styles } from './stepper-CmOyd1oW.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":";;;;;;;AAiCO,MAAM,WAAW,GAAG,UAAU,CACjC,CACI,EACI,SAAS,EAAE,MAAM,GAAG,uBAAuB,EAC3C,QAAQ,GAAG,KAAK,EAChB,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;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;;;;"}
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-CZzz9gjH.js';
6
+ import { s as styles } from './stepper-CmOyd1oW.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-2-9{
13
+ .magritte-stepper___bf9CG_1-3-0{
14
14
  display:flex;
15
15
  flex:1 1;
16
16
  list-style:none;
17
17
  }
18
- .magritte-stepper-horizontal___54ih5_1-2-9{
18
+ .magritte-stepper-horizontal___54ih5_1-3-0{
19
19
  flex-direction:row;
20
20
  }
21
- .magritte-stepper-horizontal___54ih5_1-2-9 .magritte-step___7YXV2_1-2-9{
21
+ .magritte-stepper-horizontal___54ih5_1-3-0 .magritte-step___7YXV2_1-3-0{
22
22
  flex-direction:column;
23
23
  }
24
- .magritte-stepper-horizontal___54ih5_1-2-9 .magritte-marker-container___ZuSOj_1-2-9{
24
+ .magritte-stepper-horizontal___54ih5_1-3-0 .magritte-marker-container___ZuSOj_1-3-0{
25
25
  flex-direction:row;
26
26
  padding:0 12px 0 0;
27
27
  }
28
- .magritte-stepper-horizontal___54ih5_1-2-9 .magritte-marker-container___ZuSOj_1-2-9.magritte-marker-container-with-icon___rBC1i_1-2-9{
28
+ .magritte-stepper-horizontal___54ih5_1-3-0 .magritte-marker-container___ZuSOj_1-3-0.magritte-marker-container-with-icon___rBC1i_1-3-0{
29
29
  padding:0 8px 0 0;
30
30
  }
31
- .magritte-stepper-horizontal___54ih5_1-2-9 .magritte-marker-container___ZuSOj_1-2-9::after{
31
+ .magritte-stepper-horizontal___54ih5_1-3-0 .magritte-marker-container___ZuSOj_1-3-0::after{
32
32
  border-width:0;
33
33
  border-top-width:1px;
34
34
  }
35
- .magritte-stepper-horizontal___54ih5_1-2-9 .magritte-marker-wrapper___m-Hsn_1-2-9{
35
+ .magritte-stepper-horizontal___54ih5_1-3-0 .magritte-marker-wrapper___m-Hsn_1-3-0{
36
36
  padding:0 12px 0 0;
37
37
  }
38
- .magritte-stepper-horizontal___54ih5_1-2-9 .magritte-marker-container-with-icon___rBC1i_1-2-9 .magritte-marker-wrapper___m-Hsn_1-2-9{
38
+ .magritte-stepper-horizontal___54ih5_1-3-0 .magritte-marker-container-with-icon___rBC1i_1-3-0 .magritte-marker-wrapper___m-Hsn_1-3-0{
39
39
  padding:0 8px 0 0;
40
40
  }
41
- .magritte-stepper-horizontal___54ih5_1-2-9 .magritte-content-container___KPIiS_1-2-9{
41
+ .magritte-stepper-horizontal___54ih5_1-3-0 .magritte-content-container___KPIiS_1-3-0{
42
42
  padding:12px 24px 0 0;
43
43
  }
44
- .magritte-stepper-horizontal___54ih5_1-2-9 .magritte-step___7YXV2_1-2-9:last-of-type .magritte-content-container___KPIiS_1-2-9{
44
+ .magritte-stepper-horizontal___54ih5_1-3-0 .magritte-step___7YXV2_1-3-0:last-of-type:not(.magritte-force-divider___KV-G7_1-3-0) .magritte-content-container___KPIiS_1-3-0{
45
45
  padding-right:0;
46
46
  }
47
- .magritte-content-container___KPIiS_1-2-9{
47
+ .magritte-content-container___KPIiS_1-3-0{
48
48
  order:2;
49
49
  }
50
- .magritte-stepper-vertical___032Tm_1-2-9{
50
+ .magritte-stepper-vertical___032Tm_1-3-0{
51
51
  flex-direction:column;
52
52
  }
53
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-step___7YXV2_1-2-9{
53
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-step___7YXV2_1-3-0{
54
54
  flex-direction:row;
55
55
  }
56
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-content-container___KPIiS_1-2-9,
57
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-step-button___xSXUO_1-2-9{
56
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-content-container___KPIiS_1-3-0,
57
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-step-button___xSXUO_1-3-0{
58
58
  flex:1 1;
59
59
  }
60
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-marker-container___ZuSOj_1-2-9{
60
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-marker-container___ZuSOj_1-3-0{
61
61
  flex-direction:column;
62
62
  padding:4px 0 8px;
63
63
  }
64
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-marker-container___ZuSOj_1-2-9.magritte-marker-container-with-icon___rBC1i_1-2-9{
64
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-marker-container___ZuSOj_1-3-0.magritte-marker-container-with-icon___rBC1i_1-3-0{
65
65
  padding-bottom:4px;
66
66
  }
67
- .magritte-stepper-vertical___032Tm_1-2-9.magritte-stepper-no-content___AEmtQ_1-2-9 .magritte-marker-container___ZuSOj_1-2-9{
67
+ .magritte-stepper-vertical___032Tm_1-3-0.magritte-stepper-no-content___AEmtQ_1-3-0 .magritte-marker-container___ZuSOj_1-3-0{
68
68
  padding-right:0;
69
69
  }
70
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-marker-container___ZuSOj_1-2-9::after{
70
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-marker-container___ZuSOj_1-3-0::after{
71
71
  border-width:0;
72
72
  border-left-width:1px;
73
73
  }
74
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-marker-wrapper___m-Hsn_1-2-9{
74
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-marker-wrapper___m-Hsn_1-3-0{
75
75
  padding:0 0 12px;
76
76
  }
77
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-marker-container-with-icon___rBC1i_1-2-9 .magritte-marker-wrapper___m-Hsn_1-2-9{
77
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-marker-container-with-icon___rBC1i_1-3-0 .magritte-marker-wrapper___m-Hsn_1-3-0{
78
78
  padding:0 0 8px;
79
79
  }
80
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-content-container___KPIiS_1-2-9{
80
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-content-container___KPIiS_1-3-0{
81
81
  padding:0 0 24px 12px;
82
82
  }
83
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-step___7YXV2_1-2-9:last-of-type .magritte-content-container___KPIiS_1-2-9,
84
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-step___7YXV2_1-2-9:last-of-type .magritte-marker-container___ZuSOj_1-2-9,
85
- .magritte-stepper-vertical___032Tm_1-2-9 .magritte-step___7YXV2_1-2-9:last-of-type .magritte-marker-wrapper___m-Hsn_1-2-9{
83
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-step___7YXV2_1-3-0:last-of-type:not(.magritte-force-divider___KV-G7_1-3-0) .magritte-content-container___KPIiS_1-3-0,
84
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-step___7YXV2_1-3-0:last-of-type:not(.magritte-force-divider___KV-G7_1-3-0) .magritte-marker-container___ZuSOj_1-3-0,
85
+ .magritte-stepper-vertical___032Tm_1-3-0 .magritte-step___7YXV2_1-3-0:last-of-type:not(.magritte-force-divider___KV-G7_1-3-0) .magritte-marker-wrapper___m-Hsn_1-3-0{
86
86
  padding-bottom:0;
87
87
  }
88
- .magritte-step___7YXV2_1-2-9:last-of-type.magritte-step-no-content___mTIaO_1-2-9{
88
+ .magritte-step___7YXV2_1-3-0:last-of-type.magritte-step-no-content___mTIaO_1-3-0:not(.magritte-force-divider___KV-G7_1-3-0){
89
89
  flex:0 0;
90
90
  }
91
- .magritte-step___7YXV2_1-2-9:last-of-type.magritte-step-no-content___mTIaO_1-2-9 .magritte-marker-container___ZuSOj_1-2-9,
92
- .magritte-step___7YXV2_1-2-9:last-of-type.magritte-step-no-content___mTIaO_1-2-9 .magritte-marker-wrapper___m-Hsn_1-2-9{
91
+ .magritte-step___7YXV2_1-3-0:last-of-type.magritte-step-no-content___mTIaO_1-3-0:not(.magritte-force-divider___KV-G7_1-3-0) .magritte-marker-container___ZuSOj_1-3-0,
92
+ .magritte-step___7YXV2_1-3-0:last-of-type.magritte-step-no-content___mTIaO_1-3-0:not(.magritte-force-divider___KV-G7_1-3-0) .magritte-marker-wrapper___m-Hsn_1-3-0{
93
93
  padding:0;
94
94
  }
95
- .magritte-step___7YXV2_1-2-9{
95
+ .magritte-step___7YXV2_1-3-0{
96
96
  display:flex;
97
97
  flex:1 1;
98
98
  }
99
- .magritte-marker-container___ZuSOj_1-2-9{
99
+ .magritte-marker-container___ZuSOj_1-3-0{
100
100
  order:1;
101
101
  display:flex;
102
102
  align-items:center;
103
103
  }
104
- .magritte-marker-container-disabled___lJ-PA_1-2-9::after{
104
+ .magritte-marker-container-disabled___lJ-PA_1-3-0::after{
105
105
  opacity:0.5;
106
106
  }
107
- .magritte-step___7YXV2_1-2-9:not(:last-of-type) .magritte-marker-container___ZuSOj_1-2-9::after{
107
+ .magritte-step___7YXV2_1-3-0:not(:last-of-type) .magritte-marker-container___ZuSOj_1-3-0::after,
108
+ .magritte-step___7YXV2_1-3-0.magritte-force-divider___KV-G7_1-3-0 .magritte-marker-container___ZuSOj_1-3-0::after{
108
109
  flex:1 1;
109
110
  content:'';
110
111
  border-style:solid;
111
112
  }
112
- .magritte-step-style-neutral___061j4_1-2-9 .magritte-marker-container___ZuSOj_1-2-9::after{
113
+ .magritte-step-style-neutral___061j4_1-3-0 .magritte-marker-container___ZuSOj_1-3-0::after{
113
114
  border-color:var(--magritte-color-stroke-neutral-v24-5-0);
114
115
  }
115
- .magritte-step-style-positive___9jcvm_1-2-9 .magritte-marker-container___ZuSOj_1-2-9::after{
116
+ .magritte-step-style-positive___9jcvm_1-3-0 .magritte-marker-container___ZuSOj_1-3-0::after{
116
117
  border-color:var(--magritte-color-stroke-positive-v24-5-0);
117
118
  }
118
- .magritte-step-style-warning___NboIv_1-2-9 .magritte-marker-container___ZuSOj_1-2-9::after{
119
+ .magritte-step-style-warning___NboIv_1-3-0 .magritte-marker-container___ZuSOj_1-3-0::after{
119
120
  border-color:var(--magritte-color-stroke-neutral-v24-5-0);
120
121
  }
121
- .magritte-step-style-negative___w1AbF_1-2-9 .magritte-marker-container___ZuSOj_1-2-9::after{
122
+ .magritte-step-style-negative___w1AbF_1-3-0 .magritte-marker-container___ZuSOj_1-3-0::after{
122
123
  border-color:var(--magritte-color-stroke-neutral-v24-5-0);
123
124
  }
124
- .magritte-marker-wrapper___m-Hsn_1-2-9{
125
+ .magritte-marker-wrapper___m-Hsn_1-3-0{
125
126
  display:flex;
126
127
  flex:0 0;
127
128
  line-height:0;
128
129
  }
129
- .magritte-marker-divider-wrapper___PGB27_1-2-9{
130
+ .magritte-marker-divider-wrapper___PGB27_1-3-0{
130
131
  display:inline-block;
131
132
  flex:1 1;
132
133
  }
133
- .magritte-content-container___KPIiS_1-2-9,
134
- .magritte-step-button___xSXUO_1-2-9{
134
+ .magritte-content-container___KPIiS_1-3-0,
135
+ .magritte-step-button___xSXUO_1-3-0{
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-2-9{
141
+ .magritte-content-interactive___Cd9wI_1-3-0{
141
142
  align-items:stretch;
142
143
  }
143
- .magritte-step-button___xSXUO_1-2-9{
144
+ .magritte-step-button___xSXUO_1-3-0{
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-2-9:not(:disabled){
150
+ .magritte-step-button___xSXUO_1-3-0:not(:disabled){
150
151
  cursor:pointer;
151
152
  }
152
153
  @media (min-width: 1020px){
153
- body.magritte-old-layout .magritte-step-button___xSXUO_1-2-9:hover:not(:disabled){
154
+ body.magritte-old-layout .magritte-step-button___xSXUO_1-3-0: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-2-9:hover:not(:disabled){
159
+ body:not(.magritte-old-layout) .magritte-step-button___xSXUO_1-3-0: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-2-9:active:not(:disabled){
163
+ .magritte-step-button___xSXUO_1-3-0: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-2-9.focus-visible{
166
+ .magritte-step-button___xSXUO_1-3-0.focus-visible{
166
167
  outline:4px solid var(--magritte-color-stroke-state-focused-accessible-v24-5-0);
167
168
  }
package/index.js CHANGED
@@ -7,6 +7,6 @@ import 'react/jsx-runtime';
7
7
  import 'react';
8
8
  import 'classnames';
9
9
  import '@hh.ru/magritte-common-use-disabled';
10
- import './stepper-CZzz9gjH.js';
10
+ import './stepper-CmOyd1oW.js';
11
11
  import '@hh.ru/magritte-ui-icon';
12
12
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-stepper",
3
- "version": "1.2.9",
3
+ "version": "1.3.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -32,5 +32,5 @@
32
32
  "classnames": ">=2.3.2",
33
33
  "react": ">=18.2.0"
34
34
  },
35
- "gitHead": "e019f700cfff466975b65b96124aaac592268720"
35
+ "gitHead": "56146e5bdeb38baa5983c67826334d805677aded"
36
36
  }
@@ -0,0 +1,5 @@
1
+ import './index.css';
2
+ var styles = {"stepper":"magritte-stepper___bf9CG_1-3-0","stepper-horizontal":"magritte-stepper-horizontal___54ih5_1-3-0","stepperHorizontal":"magritte-stepper-horizontal___54ih5_1-3-0","step":"magritte-step___7YXV2_1-3-0","marker-container":"magritte-marker-container___ZuSOj_1-3-0","markerContainer":"magritte-marker-container___ZuSOj_1-3-0","marker-container-with-icon":"magritte-marker-container-with-icon___rBC1i_1-3-0","markerContainerWithIcon":"magritte-marker-container-with-icon___rBC1i_1-3-0","marker-wrapper":"magritte-marker-wrapper___m-Hsn_1-3-0","markerWrapper":"magritte-marker-wrapper___m-Hsn_1-3-0","content-container":"magritte-content-container___KPIiS_1-3-0","contentContainer":"magritte-content-container___KPIiS_1-3-0","force-divider":"magritte-force-divider___KV-G7_1-3-0","forceDivider":"magritte-force-divider___KV-G7_1-3-0","stepper-vertical":"magritte-stepper-vertical___032Tm_1-3-0","stepperVertical":"magritte-stepper-vertical___032Tm_1-3-0","step-button":"magritte-step-button___xSXUO_1-3-0","stepButton":"magritte-step-button___xSXUO_1-3-0","stepper-no-content":"magritte-stepper-no-content___AEmtQ_1-3-0","stepperNoContent":"magritte-stepper-no-content___AEmtQ_1-3-0","step-no-content":"magritte-step-no-content___mTIaO_1-3-0","stepNoContent":"magritte-step-no-content___mTIaO_1-3-0","marker-container-disabled":"magritte-marker-container-disabled___lJ-PA_1-3-0","markerContainerDisabled":"magritte-marker-container-disabled___lJ-PA_1-3-0","step-style-neutral":"magritte-step-style-neutral___061j4_1-3-0","stepStyleNeutral":"magritte-step-style-neutral___061j4_1-3-0","step-style-positive":"magritte-step-style-positive___9jcvm_1-3-0","stepStylePositive":"magritte-step-style-positive___9jcvm_1-3-0","step-style-warning":"magritte-step-style-warning___NboIv_1-3-0","stepStyleWarning":"magritte-step-style-warning___NboIv_1-3-0","step-style-negative":"magritte-step-style-negative___w1AbF_1-3-0","stepStyleNegative":"magritte-step-style-negative___w1AbF_1-3-0","marker-divider-wrapper":"magritte-marker-divider-wrapper___PGB27_1-3-0","markerDividerWrapper":"magritte-marker-divider-wrapper___PGB27_1-3-0","content-interactive":"magritte-content-interactive___Cd9wI_1-3-0","contentInteractive":"magritte-content-interactive___Cd9wI_1-3-0"};
3
+
4
+ export { styles as s };
5
+ //# sourceMappingURL=stepper-CmOyd1oW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper-CmOyd1oW.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -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
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepper-CZzz9gjH.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}