@hh.ru/magritte-ui-stepper 1.0.27 → 1.0.29

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-s-WfGWF5.js';
6
+ import { s as styles } from './stepper-B_E9k7Go.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 } from '@hh.ru/magritte-ui-icon';
6
- import { s as styles } from './stepper-s-WfGWF5.js';
6
+ import { s as styles } from './stepper-B_E9k7Go.js';
7
7
 
8
8
  const StepperMarker = ({ children }) => {
9
9
  const isDisabled = useDisabled();
package/Step.js CHANGED
@@ -4,7 +4,7 @@ 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-s-WfGWF5.js';
7
+ import { s as styles } from './stepper-B_E9k7Go.js';
8
8
 
9
9
  const StepperStep = forwardRef(({ 'data-qa': dataQa = 'magritte-stepper-step', disabled = false, children, onClick, selected, style = 'neutral', }, ref) => {
10
10
  const isDisabled = !!(useDisabled() || disabled);
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-s-WfGWF5.js';
6
+ import { s as styles } from './stepper-B_E9k7Go.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,160 +10,160 @@
10
10
  --magritte-color-stroke-neutral-v24-1-0:#303030;
11
11
  --magritte-color-stroke-positive-v24-1-0:#10b55f;
12
12
  }
13
- .magritte-stepper___bf9CG_1-0-27{
13
+ .magritte-stepper___bf9CG_1-0-29{
14
14
  display:flex;
15
15
  flex:1 1;
16
16
  list-style:none;
17
17
  }
18
- .magritte-stepper-horizontal___54ih5_1-0-27{
18
+ .magritte-stepper-horizontal___54ih5_1-0-29{
19
19
  flex-direction:row;
20
20
  }
21
- .magritte-stepper-horizontal___54ih5_1-0-27 .magritte-step___7YXV2_1-0-27{
21
+ .magritte-stepper-horizontal___54ih5_1-0-29 .magritte-step___7YXV2_1-0-29{
22
22
  flex-direction:column;
23
23
  }
24
- .magritte-stepper-horizontal___54ih5_1-0-27 .magritte-marker-container___ZuSOj_1-0-27{
24
+ .magritte-stepper-horizontal___54ih5_1-0-29 .magritte-marker-container___ZuSOj_1-0-29{
25
25
  flex-direction:row;
26
26
  padding:0 12px 0 0;
27
27
  }
28
- .magritte-stepper-horizontal___54ih5_1-0-27 .magritte-marker-container___ZuSOj_1-0-27.magritte-marker-container-with-icon___rBC1i_1-0-27{
28
+ .magritte-stepper-horizontal___54ih5_1-0-29 .magritte-marker-container___ZuSOj_1-0-29.magritte-marker-container-with-icon___rBC1i_1-0-29{
29
29
  padding:0 8px 0 0;
30
30
  }
31
- .magritte-stepper-horizontal___54ih5_1-0-27 .magritte-marker-container___ZuSOj_1-0-27::after{
31
+ .magritte-stepper-horizontal___54ih5_1-0-29 .magritte-marker-container___ZuSOj_1-0-29::after{
32
32
  border-width:0;
33
33
  border-top-width:1px;
34
34
  }
35
- .magritte-stepper-horizontal___54ih5_1-0-27 .magritte-marker-wrapper___m-Hsn_1-0-27{
35
+ .magritte-stepper-horizontal___54ih5_1-0-29 .magritte-marker-wrapper___m-Hsn_1-0-29{
36
36
  padding:0 12px 0 0;
37
37
  }
38
- .magritte-stepper-horizontal___54ih5_1-0-27 .magritte-marker-container-with-icon___rBC1i_1-0-27 .magritte-marker-wrapper___m-Hsn_1-0-27{
38
+ .magritte-stepper-horizontal___54ih5_1-0-29 .magritte-marker-container-with-icon___rBC1i_1-0-29 .magritte-marker-wrapper___m-Hsn_1-0-29{
39
39
  padding:0 8px 0 0;
40
40
  }
41
- .magritte-stepper-horizontal___54ih5_1-0-27 .magritte-content-container___KPIiS_1-0-27{
41
+ .magritte-stepper-horizontal___54ih5_1-0-29 .magritte-content-container___KPIiS_1-0-29{
42
42
  padding:8px 24px 0 0;
43
43
  }
44
- .magritte-stepper-horizontal___54ih5_1-0-27 .magritte-marker-container-with-icon___rBC1i_1-0-27 + .magritte-content-container___KPIiS_1-0-27{
44
+ .magritte-stepper-horizontal___54ih5_1-0-29 .magritte-marker-container-with-icon___rBC1i_1-0-29 + .magritte-content-container___KPIiS_1-0-29{
45
45
  padding:12px 24px 0 0;
46
46
  }
47
- .magritte-stepper-horizontal___54ih5_1-0-27 .magritte-step___7YXV2_1-0-27:last-of-type .magritte-content-container___KPIiS_1-0-27{
47
+ .magritte-stepper-horizontal___54ih5_1-0-29 .magritte-step___7YXV2_1-0-29:last-of-type .magritte-content-container___KPIiS_1-0-29{
48
48
  padding-right:0;
49
49
  }
50
- .magritte-content-container___KPIiS_1-0-27{
50
+ .magritte-content-container___KPIiS_1-0-29{
51
51
  order:2;
52
52
  }
53
- .magritte-stepper-vertical___032Tm_1-0-27{
53
+ .magritte-stepper-vertical___032Tm_1-0-29{
54
54
  flex-direction:column;
55
55
  }
56
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-step___7YXV2_1-0-27{
56
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-step___7YXV2_1-0-29{
57
57
  flex-direction:row;
58
58
  }
59
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-content-container___KPIiS_1-0-27,
60
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-step-button___xSXUO_1-0-27{
59
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-content-container___KPIiS_1-0-29,
60
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-step-button___xSXUO_1-0-29{
61
61
  flex:1 1;
62
62
  }
63
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-marker-container___ZuSOj_1-0-27{
63
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-marker-container___ZuSOj_1-0-29{
64
64
  flex-direction:column;
65
65
  padding:4px 0 8px;
66
66
  }
67
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-marker-container___ZuSOj_1-0-27.magritte-marker-container-with-icon___rBC1i_1-0-27{
67
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-marker-container___ZuSOj_1-0-29.magritte-marker-container-with-icon___rBC1i_1-0-29{
68
68
  padding-bottom:4px;
69
69
  }
70
- .magritte-stepper-vertical___032Tm_1-0-27.magritte-stepper-no-content___AEmtQ_1-0-27 .magritte-marker-container___ZuSOj_1-0-27{
70
+ .magritte-stepper-vertical___032Tm_1-0-29.magritte-stepper-no-content___AEmtQ_1-0-29 .magritte-marker-container___ZuSOj_1-0-29{
71
71
  padding-right:0;
72
72
  }
73
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-marker-container___ZuSOj_1-0-27::after{
73
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-marker-container___ZuSOj_1-0-29::after{
74
74
  border-width:0;
75
75
  border-left-width:1px;
76
76
  }
77
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-marker-wrapper___m-Hsn_1-0-27{
77
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-marker-wrapper___m-Hsn_1-0-29{
78
78
  padding:0 0 12px;
79
79
  }
80
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-marker-container-with-icon___rBC1i_1-0-27 .magritte-marker-wrapper___m-Hsn_1-0-27{
80
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-marker-container-with-icon___rBC1i_1-0-29 .magritte-marker-wrapper___m-Hsn_1-0-29{
81
81
  padding:0 0 8px;
82
82
  }
83
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-content-container___KPIiS_1-0-27{
83
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-content-container___KPIiS_1-0-29{
84
84
  padding:0 0 24px 12px;
85
85
  }
86
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-step___7YXV2_1-0-27:last-of-type .magritte-content-container___KPIiS_1-0-27,
87
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-step___7YXV2_1-0-27:last-of-type .magritte-marker-container___ZuSOj_1-0-27,
88
- .magritte-stepper-vertical___032Tm_1-0-27 .magritte-step___7YXV2_1-0-27:last-of-type .magritte-marker-wrapper___m-Hsn_1-0-27{
86
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-step___7YXV2_1-0-29:last-of-type .magritte-content-container___KPIiS_1-0-29,
87
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-step___7YXV2_1-0-29:last-of-type .magritte-marker-container___ZuSOj_1-0-29,
88
+ .magritte-stepper-vertical___032Tm_1-0-29 .magritte-step___7YXV2_1-0-29:last-of-type .magritte-marker-wrapper___m-Hsn_1-0-29{
89
89
  padding-bottom:0;
90
90
  }
91
- .magritte-step___7YXV2_1-0-27:last-of-type.magritte-step-no-content___mTIaO_1-0-27{
91
+ .magritte-step___7YXV2_1-0-29:last-of-type.magritte-step-no-content___mTIaO_1-0-29{
92
92
  flex:0 0;
93
93
  }
94
- .magritte-step___7YXV2_1-0-27:last-of-type.magritte-step-no-content___mTIaO_1-0-27 .magritte-marker-container___ZuSOj_1-0-27,
95
- .magritte-step___7YXV2_1-0-27:last-of-type.magritte-step-no-content___mTIaO_1-0-27 .magritte-marker-wrapper___m-Hsn_1-0-27{
94
+ .magritte-step___7YXV2_1-0-29:last-of-type.magritte-step-no-content___mTIaO_1-0-29 .magritte-marker-container___ZuSOj_1-0-29,
95
+ .magritte-step___7YXV2_1-0-29:last-of-type.magritte-step-no-content___mTIaO_1-0-29 .magritte-marker-wrapper___m-Hsn_1-0-29{
96
96
  padding:0;
97
97
  }
98
- .magritte-step___7YXV2_1-0-27{
98
+ .magritte-step___7YXV2_1-0-29{
99
99
  display:flex;
100
100
  flex:1 1;
101
101
  }
102
- .magritte-marker-container___ZuSOj_1-0-27{
102
+ .magritte-marker-container___ZuSOj_1-0-29{
103
103
  order:1;
104
104
  display:flex;
105
105
  align-items:center;
106
106
  }
107
- .magritte-marker-container-disabled___lJ-PA_1-0-27{
107
+ .magritte-marker-container-disabled___lJ-PA_1-0-29{
108
108
  opacity:0.5;
109
109
  }
110
- .magritte-step___7YXV2_1-0-27:not(:last-of-type) .magritte-marker-container___ZuSOj_1-0-27::after{
110
+ .magritte-step___7YXV2_1-0-29:not(:last-of-type) .magritte-marker-container___ZuSOj_1-0-29::after{
111
111
  flex:1 1;
112
112
  content:'';
113
113
  border-style:solid;
114
114
  }
115
- .magritte-step-style-neutral___061j4_1-0-27 .magritte-marker-container___ZuSOj_1-0-27::after{
115
+ .magritte-step-style-neutral___061j4_1-0-29 .magritte-marker-container___ZuSOj_1-0-29::after{
116
116
  border-color:var(--magritte-color-stroke-neutral-v24-1-0);
117
117
  }
118
- .magritte-step-style-positive___9jcvm_1-0-27 .magritte-marker-container___ZuSOj_1-0-27::after{
118
+ .magritte-step-style-positive___9jcvm_1-0-29 .magritte-marker-container___ZuSOj_1-0-29::after{
119
119
  border-color:var(--magritte-color-stroke-positive-v24-1-0);
120
120
  }
121
- .magritte-step-style-warning___NboIv_1-0-27 .magritte-marker-container___ZuSOj_1-0-27::after{
121
+ .magritte-step-style-warning___NboIv_1-0-29 .magritte-marker-container___ZuSOj_1-0-29::after{
122
122
  border-color:var(--magritte-color-stroke-neutral-v24-1-0);
123
123
  }
124
- .magritte-step-style-negative___w1AbF_1-0-27 .magritte-marker-container___ZuSOj_1-0-27::after{
124
+ .magritte-step-style-negative___w1AbF_1-0-29 .magritte-marker-container___ZuSOj_1-0-29::after{
125
125
  border-color:var(--magritte-color-stroke-neutral-v24-1-0);
126
126
  }
127
- .magritte-marker-wrapper___m-Hsn_1-0-27{
127
+ .magritte-marker-wrapper___m-Hsn_1-0-29{
128
128
  display:flex;
129
129
  flex:0 0;
130
130
  }
131
- .magritte-marker-divider-wrapper___PGB27_1-0-27{
131
+ .magritte-marker-divider-wrapper___PGB27_1-0-29{
132
132
  display:inline-block;
133
133
  flex:1 1;
134
134
  }
135
- .magritte-content-container___KPIiS_1-0-27,
136
- .magritte-step-button___xSXUO_1-0-27{
135
+ .magritte-content-container___KPIiS_1-0-29,
136
+ .magritte-step-button___xSXUO_1-0-29{
137
137
  display:flex;
138
138
  flex-direction:column;
139
139
  align-items:flex-start;
140
140
  gap:12px;
141
141
  }
142
- .magritte-content-interactive___Cd9wI_1-0-27{
142
+ .magritte-content-interactive___Cd9wI_1-0-29{
143
143
  align-items:stretch;
144
144
  }
145
- .magritte-step-button___xSXUO_1-0-27{
145
+ .magritte-step-button___xSXUO_1-0-29{
146
146
  margin:-4px -8px;
147
147
  padding:4px 8px;
148
148
  border-radius:12px;
149
149
  cursor:default;
150
150
  }
151
- .magritte-step-button___xSXUO_1-0-27:not(:disabled){
151
+ .magritte-step-button___xSXUO_1-0-29:not(:disabled){
152
152
  cursor:pointer;
153
153
  }
154
154
  @media (min-width: 1020px){
155
- body.magritte-old-layout .magritte-step-button___xSXUO_1-0-27:hover:not(:disabled){
155
+ body.magritte-old-layout .magritte-step-button___xSXUO_1-0-29:hover:not(:disabled){
156
156
  background-color:var(--magritte-color-background-state-secondary-hovered-v24-1-0);
157
157
  }
158
158
  }
159
159
  @media (min-width: 1024px){
160
- body:not(.magritte-old-layout) .magritte-step-button___xSXUO_1-0-27:hover:not(:disabled){
160
+ body:not(.magritte-old-layout) .magritte-step-button___xSXUO_1-0-29:hover:not(:disabled){
161
161
  background-color:var(--magritte-color-background-state-secondary-hovered-v24-1-0);
162
162
  }
163
163
  }
164
- .magritte-step-button___xSXUO_1-0-27:active:not(:disabled){
164
+ .magritte-step-button___xSXUO_1-0-29:active:not(:disabled){
165
165
  background-color:var(--magritte-color-background-state-secondary-hovered-v24-1-0);
166
166
  }
167
- .magritte-step-button___xSXUO_1-0-27.focus-visible{
167
+ .magritte-step-button___xSXUO_1-0-29.focus-visible{
168
168
  outline:4px solid var(--magritte-color-stroke-state-focused-accessible-v24-1-0);
169
169
  }
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-s-WfGWF5.js';
10
+ import './stepper-B_E9k7Go.js';
11
11
  import '@hh.ru/magritte-ui-icon';
12
12
  //# sourceMappingURL=index.js.map
package/index.mock.js CHANGED
@@ -1,35 +1,5 @@
1
1
  import './index.css';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { forwardRef } from 'react';
4
-
5
- function enhance(mockComponent, staticProps) {
6
- // удаляем внутренний свойства реакта, чтобы не перезаписать ими mockComponent
7
- delete staticProps.type;
8
- delete staticProps.$$typeof;
9
- delete staticProps.render;
10
- for (const prop in staticProps) {
11
- mockComponent[prop] = staticProps[prop];
12
- }
13
- }
14
- const MockComponent = ({ style, ...props }) => (
15
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
16
- // @ts-ignore
17
- // eslint-disable-next-line react/jsx-no-undef
18
- jsx("magritte-component-mock", { "style-data": style, ...props }));
19
- /**
20
- * Возвращает mock React компонента
21
- */
22
- const mockComponent = (componentName, staticProps = {}, { withChildren, innerDependence, WrapperComponent } = {}) => {
23
- const mockWrapper = forwardRef(({ children, ...props }, ref) => {
24
- const mock = (
25
- // eslint-disable-next-line react/jsx-no-undef
26
- jsxs(MockComponent, { ...props, _component: componentName, children: [innerDependence ? innerDependence(props, ref) : null, withChildren ? children : null] }));
27
- return WrapperComponent ? jsx(WrapperComponent, { ...props, children: mock }) : mock;
28
- });
29
- staticProps && enhance(mockWrapper, staticProps);
30
- mockWrapper.displayName = 'magritte-ref';
31
- return mockWrapper;
32
- };
2
+ import { mockComponent } from '@hh.ru/magritte-ui-mock-component';
33
3
 
34
4
  const Step = mockComponent('Stepper', undefined, {
35
5
  withChildren: true,
package/index.mock.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mock.js","sources":["../../mock-component/lib/setupMockComponent.js","../src/index.mock.ts"],"sourcesContent":["import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef } from 'react';\n\nfunction enhance(mockComponent, staticProps) {\n // удаляем внутренний свойства реакта, чтобы не перезаписать ими mockComponent\n delete staticProps.type;\n delete staticProps.$$typeof;\n delete staticProps.render;\n for (const prop in staticProps) {\n mockComponent[prop] = staticProps[prop];\n }\n}\nconst MockComponent = ({ style, ...props }) => (\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n// eslint-disable-next-line react/jsx-no-undef\njsx(\"magritte-component-mock\", { \"style-data\": style, ...props }));\nconst MockComponentRenderProp = ({ style, ...props }) => (\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n// eslint-disable-next-line react/jsx-no-undef\njsx(\"magritte-component-mock-render-prop\", { \"style-data\": style, ...props }));\n/**\n * Возвращает mock React компонента\n */\nconst mockComponent = (componentName, staticProps = {}, { withChildren, innerDependence, WrapperComponent } = {}) => {\n const mockWrapper = forwardRef(({ children, ...props }, ref) => {\n const mock = (\n // eslint-disable-next-line react/jsx-no-undef\n jsxs(MockComponent, { ...props, _component: componentName, children: [innerDependence ? innerDependence(props, ref) : null, withChildren ? children : null] }));\n return WrapperComponent ? jsx(WrapperComponent, { ...props, children: mock }) : mock;\n });\n staticProps && enhance(mockWrapper, staticProps);\n mockWrapper.displayName = 'magritte-ref';\n return mockWrapper;\n};\n/**\n * Возвращает mock React компонента, который рендерит переданный в него пропс render\n *\n * @param {String} componentName наименование компонента\n * @param {Object} [staticProps] объект со свойствами, которыми необходимо усилить mock\n * @param {Object} [options] параметры мока\n * @param {boolean} [options.withChildren] флаг отвечает за рендеринг children компонента\n * @param {React.Component} [options.innerDependence] Реакт компонент, который рендерится внутри мока.\n * Необходим, когда mock компоненту требуется иметь\n * дополнительные элементы\n */\nconst mockComponentRenderProp = (componentName, staticProps, { withChildren, innerDependence, renderArguments } = { renderArguments: [] }) => {\n const mockWrapper = ({ render, children, ...props }) => (jsxs(MockComponentRenderProp, { ...props, _component: componentName, children: [innerDependence ? innerDependence(props) : null, withChildren ? children : null, render?.(...(renderArguments || []))] }));\n staticProps && enhance(mockWrapper, staticProps);\n mockWrapper.displayName = 'magritte-component-mock-render-prop';\n return mockWrapper;\n};\n\nexport { mockComponent, mockComponentRenderProp };\n//# sourceMappingURL=setupMockComponent.js.map\n","import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport { type StepperProps } from '@hh.ru/magritte-ui-stepper/Stepper';\nexport { type StepExternalProps as StepperStepProps } from '@hh.ru/magritte-ui-stepper/Step';\n\nexport const Step: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('Stepper', undefined, {\n withChildren: true,\n});\n\nexport const StepperStep: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('StepperStep', undefined, {\n withChildren: true,\n});\n\nexport const StepperContent: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'StepperContent',\n undefined,\n {\n withChildren: true,\n }\n);\n\nexport const StepperMarker: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'StepperMarker',\n undefined,\n {\n withChildren: true,\n }\n);\n"],"names":[],"mappings":";;;AAGA,SAAS,OAAO,CAAC,aAAa,EAAE,WAAW,EAAE;AAC7C;AACA,IAAI,OAAO,WAAW,CAAC,IAAI,CAAC;AAC5B,IAAI,OAAO,WAAW,CAAC,QAAQ,CAAC;AAChC,IAAI,OAAO,WAAW,CAAC,MAAM,CAAC;AAC9B,IAAI,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE;AACpC,QAAQ,aAAa,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;AAChD,KAAK;AACL,CAAC;AACD,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE;AAC1C;AACA;AACA;AACA,GAAG,CAAC,yBAAyB,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC;AAMnE;AACA;AACA;AACA,MAAM,aAAa,GAAG,CAAC,aAAa,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,GAAG,EAAE,KAAK;AACrH,IAAI,MAAM,WAAW,GAAG,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAK;AACpE,QAAQ,MAAM,IAAI;AAClB;AACA,QAAQ,IAAI,CAAC,aAAa,EAAE,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,eAAe,GAAG,eAAe,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE,YAAY,GAAG,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AACxK,QAAQ,OAAO,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,EAAE,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;AAC7F,KAAK,CAAC,CAAC;AACP,IAAI,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AACrD,IAAI,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AAC7C,IAAI,OAAO,WAAW,CAAC;AACvB,CAAC;;MC5BY,IAAI,GAAuD,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE;AACxG,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EAAE;MAEU,WAAW,GAAuD,aAAa,CAAC,aAAa,EAAE,SAAS,EAAE;AACnH,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EAAE;MAEU,cAAc,GAAuD,aAAa,CAC3F,gBAAgB,EAChB,SAAS,EACT;AACI,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EACH;MAEW,aAAa,GAAuD,aAAa,CAC1F,eAAe,EACf,SAAS,EACT;AACI,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA;;;;"}
1
+ {"version":3,"file":"index.mock.js","sources":["../src/index.mock.ts"],"sourcesContent":["import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport { type StepperProps } from '@hh.ru/magritte-ui-stepper/Stepper';\nexport { type StepExternalProps as StepperStepProps } from '@hh.ru/magritte-ui-stepper/Step';\n\nexport const Step: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('Stepper', undefined, {\n withChildren: true,\n});\n\nexport const StepperStep: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('StepperStep', undefined, {\n withChildren: true,\n});\n\nexport const StepperContent: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'StepperContent',\n undefined,\n {\n withChildren: true,\n }\n);\n\nexport const StepperMarker: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'StepperMarker',\n undefined,\n {\n withChildren: true,\n }\n);\n"],"names":[],"mappings":";;MAOa,IAAI,GAAuD,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE;AACxG,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EAAE;MAEU,WAAW,GAAuD,aAAa,CAAC,aAAa,EAAE,SAAS,EAAE;AACnH,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EAAE;MAEU,cAAc,GAAuD,aAAa,CAC3F,gBAAgB,EAChB,SAAS,EACT;AACI,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EACH;MAEW,aAAa,GAAuD,aAAa,CAC1F,eAAe,EACf,SAAS,EACT;AACI,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-stepper",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -25,11 +25,12 @@
25
25
  "@hh.ru/magritte-common-use-disabled": "1.0.14",
26
26
  "@hh.ru/magritte-design-tokens": "24.1.0",
27
27
  "@hh.ru/magritte-ui-breakpoint": "6.0.2",
28
- "@hh.ru/magritte-ui-icon": "13.5.3"
28
+ "@hh.ru/magritte-ui-icon": "13.5.4",
29
+ "@hh.ru/magritte-ui-mock-component": "1.1.6"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "classnames": ">=2.3.2",
32
33
  "react": ">=18.2.0"
33
34
  },
34
- "gitHead": "8c58f57e256c3254714904d0905c216b2668481c"
35
+ "gitHead": "5f2045cd6b0f51c7a8c0b62e2b289753a94c6d4f"
35
36
  }
@@ -0,0 +1,5 @@
1
+ import './index.css';
2
+ var styles = {"stepper":"magritte-stepper___bf9CG_1-0-29","stepper-horizontal":"magritte-stepper-horizontal___54ih5_1-0-29","stepperHorizontal":"magritte-stepper-horizontal___54ih5_1-0-29","step":"magritte-step___7YXV2_1-0-29","marker-container":"magritte-marker-container___ZuSOj_1-0-29","markerContainer":"magritte-marker-container___ZuSOj_1-0-29","marker-container-with-icon":"magritte-marker-container-with-icon___rBC1i_1-0-29","markerContainerWithIcon":"magritte-marker-container-with-icon___rBC1i_1-0-29","marker-wrapper":"magritte-marker-wrapper___m-Hsn_1-0-29","markerWrapper":"magritte-marker-wrapper___m-Hsn_1-0-29","content-container":"magritte-content-container___KPIiS_1-0-29","contentContainer":"magritte-content-container___KPIiS_1-0-29","stepper-vertical":"magritte-stepper-vertical___032Tm_1-0-29","stepperVertical":"magritte-stepper-vertical___032Tm_1-0-29","step-button":"magritte-step-button___xSXUO_1-0-29","stepButton":"magritte-step-button___xSXUO_1-0-29","stepper-no-content":"magritte-stepper-no-content___AEmtQ_1-0-29","stepperNoContent":"magritte-stepper-no-content___AEmtQ_1-0-29","step-no-content":"magritte-step-no-content___mTIaO_1-0-29","stepNoContent":"magritte-step-no-content___mTIaO_1-0-29","marker-container-disabled":"magritte-marker-container-disabled___lJ-PA_1-0-29","markerContainerDisabled":"magritte-marker-container-disabled___lJ-PA_1-0-29","step-style-neutral":"magritte-step-style-neutral___061j4_1-0-29","stepStyleNeutral":"magritte-step-style-neutral___061j4_1-0-29","step-style-positive":"magritte-step-style-positive___9jcvm_1-0-29","stepStylePositive":"magritte-step-style-positive___9jcvm_1-0-29","step-style-warning":"magritte-step-style-warning___NboIv_1-0-29","stepStyleWarning":"magritte-step-style-warning___NboIv_1-0-29","step-style-negative":"magritte-step-style-negative___w1AbF_1-0-29","stepStyleNegative":"magritte-step-style-negative___w1AbF_1-0-29","marker-divider-wrapper":"magritte-marker-divider-wrapper___PGB27_1-0-29","markerDividerWrapper":"magritte-marker-divider-wrapper___PGB27_1-0-29","content-interactive":"magritte-content-interactive___Cd9wI_1-0-29","contentInteractive":"magritte-content-interactive___Cd9wI_1-0-29"};
3
+
4
+ export { styles as s };
5
+ //# sourceMappingURL=stepper-B_E9k7Go.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper-B_E9k7Go.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- import './index.css';
2
- var styles = {"stepper":"magritte-stepper___bf9CG_1-0-27","stepper-horizontal":"magritte-stepper-horizontal___54ih5_1-0-27","stepperHorizontal":"magritte-stepper-horizontal___54ih5_1-0-27","step":"magritte-step___7YXV2_1-0-27","marker-container":"magritte-marker-container___ZuSOj_1-0-27","markerContainer":"magritte-marker-container___ZuSOj_1-0-27","marker-container-with-icon":"magritte-marker-container-with-icon___rBC1i_1-0-27","markerContainerWithIcon":"magritte-marker-container-with-icon___rBC1i_1-0-27","marker-wrapper":"magritte-marker-wrapper___m-Hsn_1-0-27","markerWrapper":"magritte-marker-wrapper___m-Hsn_1-0-27","content-container":"magritte-content-container___KPIiS_1-0-27","contentContainer":"magritte-content-container___KPIiS_1-0-27","stepper-vertical":"magritte-stepper-vertical___032Tm_1-0-27","stepperVertical":"magritte-stepper-vertical___032Tm_1-0-27","step-button":"magritte-step-button___xSXUO_1-0-27","stepButton":"magritte-step-button___xSXUO_1-0-27","stepper-no-content":"magritte-stepper-no-content___AEmtQ_1-0-27","stepperNoContent":"magritte-stepper-no-content___AEmtQ_1-0-27","step-no-content":"magritte-step-no-content___mTIaO_1-0-27","stepNoContent":"magritte-step-no-content___mTIaO_1-0-27","marker-container-disabled":"magritte-marker-container-disabled___lJ-PA_1-0-27","markerContainerDisabled":"magritte-marker-container-disabled___lJ-PA_1-0-27","step-style-neutral":"magritte-step-style-neutral___061j4_1-0-27","stepStyleNeutral":"magritte-step-style-neutral___061j4_1-0-27","step-style-positive":"magritte-step-style-positive___9jcvm_1-0-27","stepStylePositive":"magritte-step-style-positive___9jcvm_1-0-27","step-style-warning":"magritte-step-style-warning___NboIv_1-0-27","stepStyleWarning":"magritte-step-style-warning___NboIv_1-0-27","step-style-negative":"magritte-step-style-negative___w1AbF_1-0-27","stepStyleNegative":"magritte-step-style-negative___w1AbF_1-0-27","marker-divider-wrapper":"magritte-marker-divider-wrapper___PGB27_1-0-27","markerDividerWrapper":"magritte-marker-divider-wrapper___PGB27_1-0-27","content-interactive":"magritte-content-interactive___Cd9wI_1-0-27","contentInteractive":"magritte-content-interactive___Cd9wI_1-0-27"};
3
-
4
- export { styles as s };
5
- //# sourceMappingURL=stepper-s-WfGWF5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stepper-s-WfGWF5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}