@salutejs/plasma-new-hope 0.337.0-canary.2257.18032815887.0 → 0.337.0-canary.2257.18034036488.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.
Files changed (27) hide show
  1. package/cjs/components/Combobox/ComboboxNew/Combobox.js +2 -2
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  3. package/cjs/components/Dropdown/Dropdown.js +2 -2
  4. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  5. package/cjs/components/Select/Select.js +2 -2
  6. package/cjs/components/Select/Select.js.map +1 -1
  7. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +2 -2
  8. package/emotion/cjs/components/Dropdown/Dropdown.js +2 -2
  9. package/emotion/cjs/components/Select/Select.js +2 -2
  10. package/emotion/cjs/examples/components/Combobox/Combobox.js +0 -15
  11. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +2 -2
  12. package/emotion/es/components/Dropdown/Dropdown.js +2 -2
  13. package/emotion/es/components/Select/Select.js +2 -2
  14. package/es/components/Combobox/ComboboxNew/Combobox.js +2 -2
  15. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  16. package/es/components/Dropdown/Dropdown.js +2 -2
  17. package/es/components/Dropdown/Dropdown.js.map +1 -1
  18. package/es/components/Select/Select.js +2 -2
  19. package/es/components/Select/Select.js.map +1 -1
  20. package/package.json +2 -2
  21. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +2 -2
  22. package/styled-components/cjs/components/Dropdown/Dropdown.js +2 -2
  23. package/styled-components/cjs/components/Select/Select.js +2 -2
  24. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +2 -2
  25. package/styled-components/es/components/Dropdown/Dropdown.js +2 -2
  26. package/styled-components/es/components/Select/Select.js +2 -2
  27. package/styled-components/es/examples/components/Combobox/Combobox.js +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.337.0-canary.2257.18032815887.0",
3
+ "version": "0.337.0-canary.2257.18034036488.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -137,5 +137,5 @@
137
137
  "sideEffects": [
138
138
  "*.css"
139
139
  ],
140
- "gitHead": "4bf0766b4969f015405b20a3f8ce38f1134c4e89"
140
+ "gitHead": "c1e397571e4bb9d59e16bde5f8759c2729c04333"
141
141
  }
@@ -305,7 +305,7 @@ var comboboxRoot = function(Root) {
305
305
  handleListToggle(false);
306
306
  // Возвращаем актуальное значение поля ввода после закрытия выпадающего списка.
307
307
  setTextValue((0, _utils2.getTextValue)(multiple, value, valueToItemMap, renderValue));
308
- }, floatingPopoverRef);
308
+ }, listWrapperRef);
309
309
  // Эта функция срабатывает при изменении Combobox и
310
310
  // при изменении нативного Select для формы (срабатывает только после изменения internalValue и рендера).
311
311
  var onChange = function(newValue, item) {
@@ -711,7 +711,7 @@ var comboboxRoot = function(Root) {
711
711
  dispatchPath: dispatchPath,
712
712
  index: index,
713
713
  listWidth: listWidth,
714
- portal: targetRef
714
+ portal: listWrapperRef
715
715
  });
716
716
  })), afterList)))))));
717
717
  });
@@ -231,7 +231,7 @@ var dropdownRoot = function(Root) {
231
231
  if (onToggle) {
232
232
  onToggle(false, event);
233
233
  }
234
- }, floatingPopoverRef);
234
+ }, listWrapperRef);
235
235
  var handleGlobalToggle = function(opened, event) {
236
236
  if (alwaysOpened || opened) {
237
237
  dispatchPath({
@@ -328,7 +328,7 @@ var dropdownRoot = function(Root) {
328
328
  dispatchPath: dispatchPath,
329
329
  index: index,
330
330
  listWidth: listWidth,
331
- portal: targetRef
331
+ portal: listWrapperRef
332
332
  });
333
333
  }), afterList)))));
334
334
  });
@@ -294,7 +294,7 @@ var selectRoot = function(Root) {
294
294
  return;
295
295
  }
296
296
  handleListToggle(false);
297
- }, floatingPopoverRef);
297
+ }, listWrapperRef);
298
298
  var onChange = function(newValue, item) {
299
299
  if (props.onChange) {
300
300
  // Условие для отправки если компонент используется без формы.
@@ -603,7 +603,7 @@ var selectRoot = function(Root) {
603
603
  dispatchPath: dispatchPath,
604
604
  index: index,
605
605
  listWidth: listWidth,
606
- portal: targetRef
606
+ portal: listWrapperRef
607
607
  });
608
608
  }), afterList))))));
609
609
  });
@@ -248,7 +248,7 @@ import { Context } from "./Combobox.context";
248
248
  handleListToggle(false);
249
249
  // Возвращаем актуальное значение поля ввода после закрытия выпадающего списка.
250
250
  setTextValue(getTextValue(multiple, value, valueToItemMap, renderValue));
251
- }, floatingPopoverRef);
251
+ }, listWrapperRef);
252
252
  // Эта функция срабатывает при изменении Combobox и
253
253
  // при изменении нативного Select для формы (срабатывает только после изменения internalValue и рендера).
254
254
  var onChange = function(newValue, item) {
@@ -654,7 +654,7 @@ import { Context } from "./Combobox.context";
654
654
  dispatchPath: dispatchPath,
655
655
  index: index,
656
656
  listWidth: listWidth,
657
- portal: targetRef
657
+ portal: listWrapperRef
658
658
  });
659
659
  })), afterList)))))));
660
660
  });
@@ -174,7 +174,7 @@ import { Context } from "./Dropdown.context";
174
174
  if (onToggle) {
175
175
  onToggle(false, event);
176
176
  }
177
- }, floatingPopoverRef);
177
+ }, listWrapperRef);
178
178
  var handleGlobalToggle = function(opened, event) {
179
179
  if (alwaysOpened || opened) {
180
180
  dispatchPath({
@@ -271,7 +271,7 @@ import { Context } from "./Dropdown.context";
271
271
  dispatchPath: dispatchPath,
272
272
  index: index,
273
273
  listWidth: listWidth,
274
- portal: targetRef
274
+ portal: listWrapperRef
275
275
  });
276
276
  }), afterList)))));
277
277
  });
@@ -237,7 +237,7 @@ import { Context } from "./Select.context";
237
237
  return;
238
238
  }
239
239
  handleListToggle(false);
240
- }, floatingPopoverRef);
240
+ }, listWrapperRef);
241
241
  var onChange = function(newValue, item) {
242
242
  if (props.onChange) {
243
243
  // Условие для отправки если компонент используется без формы.
@@ -546,7 +546,7 @@ import { Context } from "./Select.context";
546
546
  dispatchPath: dispatchPath,
547
547
  index: index,
548
548
  listWidth: listWidth,
549
- portal: targetRef
549
+ portal: listWrapperRef
550
550
  });
551
551
  }), afterList))))));
552
552
  });
@@ -0,0 +1,7 @@
1
+ import { component, mergeConfig } from "../../../engines";
2
+ import { comboboxNewConfig } from "../../..";
3
+ import { config } from "./Combobox.config";
4
+ var mergedConfig = mergeConfig(comboboxNewConfig, config);
5
+ var ComboboxComponent = component(mergedConfig);
6
+ var Combobox = ComboboxComponent;
7
+ export { Combobox };