@hh.ru/magritte-ui-select 11.0.10 → 11.0.12

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.
@@ -23,7 +23,7 @@ import '@hh.ru/magritte-ui-typography';
23
23
  import '@hh.ru/magritte-ui-checkable-card/CheckableCardElement';
24
24
  import '@hh.ru/magritte-ui-checkbox-radio';
25
25
 
26
- var styles = {"select-bottom-sheet":"magritte-select-bottom-sheet___1RZDJ_11-0-10","selectBottomSheet":"magritte-select-bottom-sheet___1RZDJ_11-0-10","select-bottom-sheet_checkbox":"magritte-select-bottom-sheet_checkbox___hwTgo_11-0-10","selectBottomSheetCheckbox":"magritte-select-bottom-sheet_checkbox___hwTgo_11-0-10","select-bottom-sheet_radio":"magritte-select-bottom-sheet_radio___qvFFV_11-0-10","selectBottomSheetRadio":"magritte-select-bottom-sheet_radio___qvFFV_11-0-10","select-bottom-sheet_without-header":"magritte-select-bottom-sheet_without-header___KOKVh_11-0-10","selectBottomSheetWithoutHeader":"magritte-select-bottom-sheet_without-header___KOKVh_11-0-10","full-screen-placeholder":"magritte-full-screen-placeholder___zPC8k_11-0-10","fullScreenPlaceholder":"magritte-full-screen-placeholder___zPC8k_11-0-10","error-wrapper":"magritte-error-wrapper___P7jYg_11-0-10","errorWrapper":"magritte-error-wrapper___P7jYg_11-0-10"};
26
+ var styles = {"select-bottom-sheet":"magritte-select-bottom-sheet___1RZDJ_11-0-12","selectBottomSheet":"magritte-select-bottom-sheet___1RZDJ_11-0-12","select-bottom-sheet_checkbox":"magritte-select-bottom-sheet_checkbox___hwTgo_11-0-12","selectBottomSheetCheckbox":"magritte-select-bottom-sheet_checkbox___hwTgo_11-0-12","select-bottom-sheet_radio":"magritte-select-bottom-sheet_radio___qvFFV_11-0-12","selectBottomSheetRadio":"magritte-select-bottom-sheet_radio___qvFFV_11-0-12","select-bottom-sheet_without-header":"magritte-select-bottom-sheet_without-header___KOKVh_11-0-12","selectBottomSheetWithoutHeader":"magritte-select-bottom-sheet_without-header___KOKVh_11-0-12","full-screen-placeholder":"magritte-full-screen-placeholder___zPC8k_11-0-12","fullScreenPlaceholder":"magritte-full-screen-placeholder___zPC8k_11-0-12","error-wrapper":"magritte-error-wrapper___P7jYg_11-0-12","errorWrapper":"magritte-error-wrapper___P7jYg_11-0-12"};
27
27
 
28
28
  const SelectOptionDefault = ({ data, input, type, checked, plain, }) => {
29
29
  if (type === 'delimiter') {
package/SelectDrop.js CHANGED
@@ -19,7 +19,7 @@ import '@hh.ru/magritte-ui-typography';
19
19
  import '@hh.ru/magritte-ui-checkable-card/CheckableCardElement';
20
20
  import '@hh.ru/magritte-ui-checkbox-radio';
21
21
 
22
- var styles = {"select-drop-container-wrapper":"magritte-select-drop-container-wrapper___OHM0q_11-0-10","selectDropContainerWrapper":"magritte-select-drop-container-wrapper___OHM0q_11-0-10","select-drop-container":"magritte-select-drop-container___hee1p_11-0-10","selectDropContainer":"magritte-select-drop-container___hee1p_11-0-10","select-drop-container_plain":"magritte-select-drop-container_plain___766zl_11-0-10","selectDropContainerPlain":"magritte-select-drop-container_plain___766zl_11-0-10","select-drop":"magritte-select-drop___jn4O-_11-0-10","selectDrop":"magritte-select-drop___jn4O-_11-0-10","select-drop-header":"magritte-select-drop-header___fMmio_11-0-10","selectDropHeader":"magritte-select-drop-header___fMmio_11-0-10","select-drop_plain":"magritte-select-drop_plain___VL8Fz_11-0-10","selectDropPlain":"magritte-select-drop_plain___VL8Fz_11-0-10","label-option":"magritte-label-option___2N7t9_11-0-10","labelOption":"magritte-label-option___2N7t9_11-0-10","loading":"magritte-loading___AMiuq_11-0-10","hint":"magritte-hint___6qaFl_11-0-10"};
22
+ var styles = {"select-drop-container-wrapper":"magritte-select-drop-container-wrapper___OHM0q_11-0-12","selectDropContainerWrapper":"magritte-select-drop-container-wrapper___OHM0q_11-0-12","select-drop-container":"magritte-select-drop-container___hee1p_11-0-12","selectDropContainer":"magritte-select-drop-container___hee1p_11-0-12","select-drop-container_plain":"magritte-select-drop-container_plain___766zl_11-0-12","selectDropContainerPlain":"magritte-select-drop-container_plain___766zl_11-0-12","select-drop":"magritte-select-drop___jn4O-_11-0-12","selectDrop":"magritte-select-drop___jn4O-_11-0-12","select-drop-header":"magritte-select-drop-header___fMmio_11-0-12","selectDropHeader":"magritte-select-drop-header___fMmio_11-0-12","select-drop_plain":"magritte-select-drop_plain___VL8Fz_11-0-12","selectDropPlain":"magritte-select-drop_plain___VL8Fz_11-0-12","label-option":"magritte-label-option___2N7t9_11-0-12","labelOption":"magritte-label-option___2N7t9_11-0-12","loading":"magritte-loading___AMiuq_11-0-12","hint":"magritte-hint___6qaFl_11-0-12"};
23
23
 
24
24
  const SelectOptionDefault = ({ data, input, type, plain, checked, }) => {
25
25
  if (type === 'delimiter') {
@@ -6,7 +6,7 @@ import { VSpacing } from '@hh.ru/magritte-ui-spacing';
6
6
  import { Title } from '@hh.ru/magritte-ui-title';
7
7
  import { Text } from '@hh.ru/magritte-ui-typography';
8
8
 
9
- var styles = {"select-empty-hint":"magritte-select-empty-hint___B39XJ_11-0-10","selectEmptyHint":"magritte-select-empty-hint___B39XJ_11-0-10","icon":"magritte-icon___F0GQx_11-0-10","icon-init":"magritte-icon-init___GWK-V_11-0-10","iconInit":"magritte-icon-init___GWK-V_11-0-10","icon-search":"magritte-icon-search___ZsqO-_11-0-10","iconSearch":"magritte-icon-search___ZsqO-_11-0-10"};
9
+ var styles = {"select-empty-hint":"magritte-select-empty-hint___B39XJ_11-0-12","selectEmptyHint":"magritte-select-empty-hint___B39XJ_11-0-12","icon":"magritte-icon___F0GQx_11-0-12","icon-init":"magritte-icon-init___GWK-V_11-0-12","iconInit":"magritte-icon-init___GWK-V_11-0-12","icon-search":"magritte-icon-search___ZsqO-_11-0-12","iconSearch":"magritte-icon-search___ZsqO-_11-0-12"};
10
10
 
11
11
  const SelectEmptyHint = ({ title, titleElement, description, type }) => {
12
12
  return (jsxs("div", { className: styles.selectEmptyHint, children: [type === 'init' && (jsx("div", { className: classnames(styles.icon, styles.iconInit), children: jsx(MagnifierOutlinedSize24, {}) })), type === 'emptySearch' && (jsx("div", { className: classnames(styles.icon, styles.iconSearch), children: jsx(EmojiHalfsadOutlinedSize24, {}) })), jsx(VSpacing, { default: 32 }), jsx(Title, { Element: titleElement, size: "small", children: title }), jsx(VSpacing, { default: 8 }), Boolean(description) && (jsx(Text, { typography: "paragraph-2-regular", style: "secondary", children: description }))] }));
package/SelectError.js CHANGED
@@ -7,7 +7,7 @@ import { VSpacing } from '@hh.ru/magritte-ui-spacing';
7
7
  import { Title } from '@hh.ru/magritte-ui-title';
8
8
  import { Text } from '@hh.ru/magritte-ui-typography';
9
9
 
10
- var styles = {"error-container":"magritte-error-container___t9B5w_11-0-10","errorContainer":"magritte-error-container___t9B5w_11-0-10"};
10
+ var styles = {"error-container":"magritte-error-container___t9B5w_11-0-12","errorContainer":"magritte-error-container___t9B5w_11-0-12"};
11
11
 
12
12
  const SelectError = ({ innerErrorTrls, reload, }) => {
13
13
  const { isMobile } = useBreakpoint();
package/SelectModal.js CHANGED
@@ -22,7 +22,7 @@ import '@hh.ru/magritte-common-keyboard';
22
22
  import '@hh.ru/magritte-ui-checkable-card/CheckableCardElement';
23
23
  import '@hh.ru/magritte-ui-checkbox-radio';
24
24
 
25
- var styles = {"select-modal-wrapper":"magritte-select-modal-wrapper___5BhtC_11-0-10","selectModalWrapper":"magritte-select-modal-wrapper___5BhtC_11-0-10","select-modal":"magritte-select-modal___f9wc6_11-0-10","selectModal":"magritte-select-modal___f9wc6_11-0-10","select-modal_plain":"magritte-select-modal_plain___0rP39_11-0-10","selectModalPlain":"magritte-select-modal_plain___0rP39_11-0-10","label-option":"magritte-label-option___kFAuR_11-0-10","labelOption":"magritte-label-option___kFAuR_11-0-10","layer-full-height":"magritte-layer-full-height___cJX-K_11-0-10","layerFullHeight":"magritte-layer-full-height___cJX-K_11-0-10"};
25
+ var styles = {"select-modal-wrapper":"magritte-select-modal-wrapper___5BhtC_11-0-12","selectModalWrapper":"magritte-select-modal-wrapper___5BhtC_11-0-12","select-modal":"magritte-select-modal___f9wc6_11-0-12","selectModal":"magritte-select-modal___f9wc6_11-0-12","select-modal_plain":"magritte-select-modal_plain___0rP39_11-0-12","selectModalPlain":"magritte-select-modal_plain___0rP39_11-0-12","label-option":"magritte-label-option___kFAuR_11-0-12","labelOption":"magritte-label-option___kFAuR_11-0-12","layer-full-height":"magritte-layer-full-height___cJX-K_11-0-12","layerFullHeight":"magritte-layer-full-height___cJX-K_11-0-12"};
26
26
 
27
27
  const SelectOptionDefault = ({ data, input, type, plain, checked, }) => {
28
28
  if (type === 'delimiter') {
package/SelectOption.js CHANGED
@@ -7,7 +7,7 @@ import { CheckableCardElement } from '@hh.ru/magritte-ui-checkable-card/Checkabl
7
7
  import { Radio, Checkbox } from '@hh.ru/magritte-ui-checkbox-radio';
8
8
  import { Text } from '@hh.ru/magritte-ui-typography';
9
9
 
10
- var styles = {"select-option-plain":"magritte-select-option-plain___dfz4a_11-0-10","selectOptionPlain":"magritte-select-option-plain___dfz4a_11-0-10","select-delimiter":"magritte-select-delimiter___WyeR6_11-0-10","selectDelimiter":"magritte-select-delimiter___WyeR6_11-0-10"};
10
+ var styles = {"select-option-plain":"magritte-select-option-plain___dfz4a_11-0-12","selectOptionPlain":"magritte-select-option-plain___dfz4a_11-0-12","select-delimiter":"magritte-select-delimiter___WyeR6_11-0-12","selectDelimiter":"magritte-select-delimiter___WyeR6_11-0-12"};
11
11
 
12
12
  const CheckableComponent = ({ type, value, checked, name, onChange, 'data-qa': dataQa, }) => {
13
13
  if (type === 'label') {
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- .magritte-error-container___t9B5w_11-0-10{
1
+ .magritte-error-container___t9B5w_11-0-12{
2
2
  display:flex;
3
3
  flex-direction:column;
4
4
  align-items:center;
@@ -6,22 +6,22 @@
6
6
  justify-content:center;
7
7
  }
8
8
  @media (min-width: 1020px){
9
- body.magritte-old-layout .magritte-error-container___t9B5w_11-0-10{
9
+ body.magritte-old-layout .magritte-error-container___t9B5w_11-0-12{
10
10
  min-height:320px;
11
11
  height:auto;
12
12
  }
13
13
  }
14
14
  @media (min-width: 1024px){
15
- body:not(.magritte-old-layout) .magritte-error-container___t9B5w_11-0-10{
15
+ body:not(.magritte-old-layout) .magritte-error-container___t9B5w_11-0-12{
16
16
  min-height:320px;
17
17
  height:auto;
18
18
  }
19
19
  }
20
20
 
21
- .magritte-select-option-plain___dfz4a_11-0-10:hover{
21
+ .magritte-select-option-plain___dfz4a_11-0-12:hover{
22
22
  cursor:pointer;
23
23
  }
24
- .magritte-select-delimiter___WyeR6_11-0-10{
24
+ .magritte-select-delimiter___WyeR6_11-0-12{
25
25
  padding-left:16px;
26
26
  padding-top:12px;
27
27
  }
@@ -29,27 +29,27 @@
29
29
  :root{
30
30
  --magritte-static-space-400-v21-4-6:16px;
31
31
  }
32
- .magritte-select-bottom-sheet___1RZDJ_11-0-10{
32
+ .magritte-select-bottom-sheet___1RZDJ_11-0-12{
33
33
  display:flex;
34
34
  flex-direction:column;
35
35
  padding:0 var(--magritte-static-space-400-v21-4-6);
36
36
  padding-bottom:16px;
37
37
  }
38
- .magritte-select-bottom-sheet_checkbox___hwTgo_11-0-10,
39
- .magritte-select-bottom-sheet_radio___qvFFV_11-0-10{
38
+ .magritte-select-bottom-sheet_checkbox___hwTgo_11-0-12,
39
+ .magritte-select-bottom-sheet_radio___qvFFV_11-0-12{
40
40
  gap:12px;
41
41
  }
42
- .magritte-select-bottom-sheet_without-header___KOKVh_11-0-10{
42
+ .magritte-select-bottom-sheet_without-header___KOKVh_11-0-12{
43
43
  padding-top:16px;
44
44
  }
45
- .magritte-full-screen-placeholder___zPC8k_11-0-10{
45
+ .magritte-full-screen-placeholder___zPC8k_11-0-12{
46
46
  display:flex;
47
47
  flex-direction:column;
48
48
  align-items:center;
49
49
  height:100%;
50
50
  justify-content:center;
51
51
  }
52
- .magritte-error-wrapper___P7jYg_11-0-10{
52
+ .magritte-error-wrapper___P7jYg_11-0-12{
53
53
  height:100%;
54
54
  }
55
55
 
@@ -57,44 +57,44 @@
57
57
  --magritte-static-space-300-v21-4-6:12px;
58
58
  --magritte-static-space-600-v21-4-6:24px;
59
59
  }
60
- .magritte-select-drop-container-wrapper___OHM0q_11-0-10{
60
+ .magritte-select-drop-container-wrapper___OHM0q_11-0-12{
61
61
  display:flex;
62
62
  flex-direction:column;
63
63
  }
64
- .magritte-select-drop-container___hee1p_11-0-10{
64
+ .magritte-select-drop-container___hee1p_11-0-12{
65
65
  display:flex;
66
66
  flex-direction:column;
67
67
  padding:var(--magritte-static-space-300-v21-4-6);
68
68
  margin:calc(-1 * var(--magritte-static-space-300-v21-4-6));
69
69
  }
70
- .magritte-select-drop-container_plain___766zl_11-0-10{
70
+ .magritte-select-drop-container_plain___766zl_11-0-12{
71
71
  padding:var(--magritte-static-space-600-v21-4-6);
72
72
  margin:calc(-1 * var(--magritte-static-space-600-v21-4-6));
73
73
  }
74
- .magritte-select-drop___jn4O-_11-0-10{
74
+ .magritte-select-drop___jn4O-_11-0-12{
75
75
  display:flex;
76
76
  flex-direction:column;
77
77
  gap:8px;
78
78
  }
79
- .magritte-select-drop-header___fMmio_11-0-10{
79
+ .magritte-select-drop-header___fMmio_11-0-12{
80
80
  display:flex;
81
81
  flex-direction:column;
82
82
  margin-bottom:8px;
83
83
  }
84
- .magritte-select-drop_plain___VL8Fz_11-0-10{
84
+ .magritte-select-drop_plain___VL8Fz_11-0-12{
85
85
  gap:16px;
86
86
  }
87
- .magritte-label-option___2N7t9_11-0-10{
87
+ .magritte-label-option___2N7t9_11-0-12{
88
88
  display:flex;
89
89
  justify-content:center;
90
90
  }
91
- .magritte-loading___AMiuq_11-0-10{
91
+ .magritte-loading___AMiuq_11-0-12{
92
92
  display:flex;
93
93
  align-items:center;
94
94
  height:150px;
95
95
  justify-content:center;
96
96
  }
97
- .magritte-hint___6qaFl_11-0-10{
97
+ .magritte-hint___6qaFl_11-0-12{
98
98
  display:flex;
99
99
  flex-direction:column;
100
100
  align-items:center;
@@ -102,24 +102,24 @@
102
102
  justify-content:center;
103
103
  }
104
104
 
105
- .magritte-select-modal-wrapper___5BhtC_11-0-10{
105
+ .magritte-select-modal-wrapper___5BhtC_11-0-12{
106
106
  display:flex;
107
107
  flex-direction:column;
108
108
  flex-grow:1;
109
109
  }
110
- .magritte-select-modal___f9wc6_11-0-10{
110
+ .magritte-select-modal___f9wc6_11-0-12{
111
111
  display:flex;
112
112
  flex-direction:column;
113
113
  gap:12px;
114
114
  }
115
- .magritte-select-modal_plain___0rP39_11-0-10{
115
+ .magritte-select-modal_plain___0rP39_11-0-12{
116
116
  gap:0;
117
117
  }
118
- .magritte-label-option___kFAuR_11-0-10{
118
+ .magritte-label-option___kFAuR_11-0-12{
119
119
  display:flex;
120
120
  justify-content:center;
121
121
  }
122
- .magritte-layer-full-height___cJX-K_11-0-10{
122
+ .magritte-layer-full-height___cJX-K_11-0-12{
123
123
  display:flex;
124
124
  flex-direction:column;
125
125
  align-items:center;
@@ -140,14 +140,14 @@
140
140
  --magritte-color-icon-tertiary-v21-4-6:#767676;
141
141
  --magritte-color-icon-accent-v21-4-6:#5e9eff;
142
142
  }
143
- .magritte-select-empty-hint___B39XJ_11-0-10{
143
+ .magritte-select-empty-hint___B39XJ_11-0-12{
144
144
  display:flex;
145
145
  flex-direction:column;
146
146
  justify-content:center;
147
147
  align-content:center;
148
148
  align-items:center;
149
149
  }
150
- .magritte-icon___F0GQx_11-0-10{
150
+ .magritte-icon___F0GQx_11-0-12{
151
151
  display:flex;
152
152
  align-items:center;
153
153
  justify-content:center;
@@ -155,11 +155,11 @@
155
155
  height:48px;
156
156
  border-radius:50%;
157
157
  }
158
- .magritte-icon-init___GWK-V_11-0-10{
158
+ .magritte-icon-init___GWK-V_11-0-12{
159
159
  background-color:var(--magritte-color-background-accent-secondary-v21-4-6);
160
160
  --magritte-ui-icon-color-override:var(--magritte-color-icon-accent-v21-4-6);
161
161
  }
162
- .magritte-icon-search___ZsqO-_11-0-10{
162
+ .magritte-icon-search___ZsqO-_11-0-12{
163
163
  background-color:var(--magritte-color-background-secondary-v21-4-6);
164
164
  --magritte-ui-icon-color-override:var(--magritte-color-icon-tertiary-v21-4-6);
165
165
  }
package/index.mock.js CHANGED
@@ -15,7 +15,7 @@ const MockComponent = ({ style, ...props }) => (
15
15
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
16
16
  // @ts-ignore
17
17
  // eslint-disable-next-line react/jsx-no-undef
18
- jsx("Magritte-component-mock", { "style-data": style, ...props }));
18
+ jsx("magritte-component-mock", { "style-data": style, ...props }));
19
19
  /**
20
20
  * Возвращает mock React компонента
21
21
  */
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 { FC } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport type * from '@hh.ru/magritte-ui-select/types';\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\nconst { ThemeProvider } = jest.requireActual('@hh.ru/magritte-ui-theme-provider/index');\n\nexport { ThemeProvider };\n\nexport const Select: FC<Record<string, unknown>> = mockComponent('Select', undefined, {\n withChildren: true,\n});\n\nexport const UncontrolledSelect: FC<Record<string, unknown>> = mockComponent('UncontrolledSelect', undefined, {\n withChildren: true,\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,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AE,GAAG,IAAI,CAAC,aAAa,CAAC,yCAAyC,EAAE;MAI3E,MAAM,GAAgC,aAAa,CAAC,QAAQ,EAAE,SAAS,EAAE;AAClF,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EAAE;MAEU,kBAAkB,GAAgC,aAAa,CAAC,oBAAoB,EAAE,SAAS,EAAE;AAC1G,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA;;;;"}
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 { FC } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport type * from '@hh.ru/magritte-ui-select/types';\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\nconst { ThemeProvider } = jest.requireActual('@hh.ru/magritte-ui-theme-provider/index');\n\nexport { ThemeProvider };\n\nexport const Select: FC<Record<string, unknown>> = mockComponent('Select', undefined, {\n withChildren: true,\n});\n\nexport const UncontrolledSelect: FC<Record<string, unknown>> = mockComponent('UncontrolledSelect', undefined, {\n withChildren: true,\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,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oBAAoB,EAAE,SAAS,EAAE;AAC1G,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-select",
3
- "version": "11.0.10",
3
+ "version": "11.0.12",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -26,29 +26,29 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@hh.ru/magritte-common-data-provider": "1.3.2",
29
+ "@hh.ru/magritte-common-data-provider": "1.3.3",
30
30
  "@hh.ru/magritte-common-fuzzy-search": "1.0.7",
31
31
  "@hh.ru/magritte-common-keyboard": "4.1.2",
32
32
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.7",
33
- "@hh.ru/magritte-ui-action-bar": "3.0.18",
34
- "@hh.ru/magritte-ui-bottom-sheet": "7.2.5",
35
- "@hh.ru/magritte-ui-breakpoint": "5.0.2",
36
- "@hh.ru/magritte-ui-button": "5.3.8",
37
- "@hh.ru/magritte-ui-button-stack": "2.1.58",
38
- "@hh.ru/magritte-ui-cell": "4.2.10",
39
- "@hh.ru/magritte-ui-checkable-card": "3.0.89",
40
- "@hh.ru/magritte-ui-checkbox-radio": "3.0.54",
41
- "@hh.ru/magritte-ui-drop": "9.0.8",
42
- "@hh.ru/magritte-ui-icon": "11.0.5",
43
- "@hh.ru/magritte-ui-input": "7.2.11",
44
- "@hh.ru/magritte-ui-loader": "1.3.35",
45
- "@hh.ru/magritte-ui-modal": "8.1.7",
46
- "@hh.ru/magritte-ui-navigation-bar": "9.0.10",
47
- "@hh.ru/magritte-ui-spacing": "2.0.51",
33
+ "@hh.ru/magritte-ui-action-bar": "3.0.20",
34
+ "@hh.ru/magritte-ui-bottom-sheet": "7.2.7",
35
+ "@hh.ru/magritte-ui-breakpoint": "5.0.3",
36
+ "@hh.ru/magritte-ui-button": "5.3.10",
37
+ "@hh.ru/magritte-ui-button-stack": "2.1.60",
38
+ "@hh.ru/magritte-ui-cell": "4.2.12",
39
+ "@hh.ru/magritte-ui-checkable-card": "3.0.91",
40
+ "@hh.ru/magritte-ui-checkbox-radio": "3.0.56",
41
+ "@hh.ru/magritte-ui-drop": "9.0.9",
42
+ "@hh.ru/magritte-ui-icon": "11.0.7",
43
+ "@hh.ru/magritte-ui-input": "7.2.13",
44
+ "@hh.ru/magritte-ui-loader": "1.3.37",
45
+ "@hh.ru/magritte-ui-modal": "8.1.9",
46
+ "@hh.ru/magritte-ui-navigation-bar": "9.0.12",
47
+ "@hh.ru/magritte-ui-spacing": "2.0.53",
48
48
  "@hh.ru/magritte-ui-theme-provider": "1.1.48",
49
- "@hh.ru/magritte-ui-title": "6.1.12",
50
- "@hh.ru/magritte-ui-trigger": "3.1.10",
51
- "@hh.ru/magritte-ui-typography": "3.0.39"
49
+ "@hh.ru/magritte-ui-title": "6.1.14",
50
+ "@hh.ru/magritte-ui-trigger": "3.1.12",
51
+ "@hh.ru/magritte-ui-typography": "3.0.41"
52
52
  },
53
- "gitHead": "669ee43046224945e90495ba7f31c22996a92d4a"
53
+ "gitHead": "4b44281857c0e75b982168349a52d404045c2b52"
54
54
  }