@alfalab/core-components-select 10.0.0 → 10.2.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 (93) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/Component.d.ts +1 -1
  3. package/dist/Component.js +1 -1
  4. package/dist/components/arrow/Component.js +1 -1
  5. package/dist/components/arrow/index.css +3 -3
  6. package/dist/components/base-select/Component.js +4 -4
  7. package/dist/components/base-select/index.css +7 -7
  8. package/dist/components/base-select/index.js +1 -1
  9. package/dist/components/checkmark/Component.js +1 -1
  10. package/dist/components/checkmark/index.css +3 -3
  11. package/dist/components/field/Component.js +2 -2
  12. package/dist/components/field/index.css +9 -9
  13. package/dist/components/field/index.js +1 -1
  14. package/dist/components/index.js +1 -1
  15. package/dist/components/native-select/Component.js +1 -1
  16. package/dist/components/native-select/index.js +1 -1
  17. package/dist/components/optgroup/Component.js +1 -1
  18. package/dist/components/optgroup/index.css +6 -6
  19. package/dist/components/option/Component.js +2 -2
  20. package/dist/components/option/index.css +20 -20
  21. package/dist/components/option/index.js +1 -1
  22. package/dist/components/options-list/Component.js +1 -1
  23. package/dist/components/options-list/index.css +5 -5
  24. package/dist/components/virtual-options-list/Component.js +1 -1
  25. package/dist/components/virtual-options-list/index.css +11 -11
  26. package/dist/cssm/Component.d.ts +1 -1
  27. package/dist/cssm/components/base-select/Component.js +2 -2
  28. package/dist/cssm/typings.d.ts +4 -0
  29. package/dist/esm/Component.d.ts +1 -1
  30. package/dist/esm/Component.js +1 -1
  31. package/dist/esm/components/arrow/Component.js +1 -1
  32. package/dist/esm/components/arrow/index.css +3 -3
  33. package/dist/esm/components/base-select/Component.js +4 -4
  34. package/dist/esm/components/base-select/index.css +7 -7
  35. package/dist/esm/components/base-select/index.js +1 -1
  36. package/dist/esm/components/checkmark/Component.js +1 -1
  37. package/dist/esm/components/checkmark/index.css +3 -3
  38. package/dist/esm/components/field/Component.js +2 -2
  39. package/dist/esm/components/field/index.css +9 -9
  40. package/dist/esm/components/field/index.js +1 -1
  41. package/dist/esm/components/index.js +1 -1
  42. package/dist/esm/components/native-select/Component.js +1 -1
  43. package/dist/esm/components/native-select/index.js +1 -1
  44. package/dist/esm/components/optgroup/Component.js +1 -1
  45. package/dist/esm/components/optgroup/index.css +6 -6
  46. package/dist/esm/components/option/Component.js +2 -2
  47. package/dist/esm/components/option/index.css +20 -20
  48. package/dist/esm/components/option/index.js +1 -1
  49. package/dist/esm/components/options-list/Component.js +1 -1
  50. package/dist/esm/components/options-list/index.css +5 -5
  51. package/dist/esm/components/virtual-options-list/Component.js +1 -1
  52. package/dist/esm/components/virtual-options-list/index.css +11 -11
  53. package/dist/esm/index.js +1 -1
  54. package/dist/esm/presets/index.js +1 -1
  55. package/dist/esm/presets/useLazyLoading/hook.js +2 -2
  56. package/dist/esm/presets/useLazyLoading/index.css +2 -2
  57. package/dist/esm/presets/useSelectWithLoading/hook.js +2 -2
  58. package/dist/esm/presets/useSelectWithLoading/index.css +2 -2
  59. package/dist/esm/{tslib.es6-6ca380f2.d.ts → tslib.es6-036166d8.d.ts} +0 -0
  60. package/dist/esm/{tslib.es6-6ca380f2.js → tslib.es6-036166d8.js} +0 -0
  61. package/dist/esm/typings.d.ts +4 -0
  62. package/dist/index.js +1 -1
  63. package/dist/modern/Component.d.ts +1 -1
  64. package/dist/modern/components/arrow/Component.js +1 -1
  65. package/dist/modern/components/arrow/index.css +3 -3
  66. package/dist/modern/components/base-select/Component.js +3 -3
  67. package/dist/modern/components/base-select/index.css +7 -7
  68. package/dist/modern/components/checkmark/Component.js +1 -1
  69. package/dist/modern/components/checkmark/index.css +3 -3
  70. package/dist/modern/components/field/Component.js +1 -1
  71. package/dist/modern/components/field/index.css +9 -9
  72. package/dist/modern/components/optgroup/Component.js +1 -1
  73. package/dist/modern/components/optgroup/index.css +6 -6
  74. package/dist/modern/components/option/Component.js +1 -1
  75. package/dist/modern/components/option/index.css +20 -20
  76. package/dist/modern/components/options-list/Component.js +1 -1
  77. package/dist/modern/components/options-list/index.css +5 -5
  78. package/dist/modern/components/virtual-options-list/Component.js +1 -1
  79. package/dist/modern/components/virtual-options-list/index.css +11 -11
  80. package/dist/modern/presets/useLazyLoading/hook.js +1 -1
  81. package/dist/modern/presets/useLazyLoading/index.css +2 -2
  82. package/dist/modern/presets/useSelectWithLoading/hook.js +1 -1
  83. package/dist/modern/presets/useSelectWithLoading/index.css +2 -2
  84. package/dist/modern/typings.d.ts +4 -0
  85. package/dist/presets/index.js +1 -1
  86. package/dist/presets/useLazyLoading/hook.js +2 -2
  87. package/dist/presets/useLazyLoading/index.css +2 -2
  88. package/dist/presets/useSelectWithLoading/hook.js +2 -2
  89. package/dist/presets/useSelectWithLoading/index.css +2 -2
  90. package/dist/{tslib.es6-d00003ef.d.ts → tslib.es6-d8513212.d.ts} +0 -0
  91. package/dist/{tslib.es6-d00003ef.js → tslib.es6-d8513212.js} +0 -0
  92. package/dist/typings.d.ts +4 -0
  93. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { a as __assign, b as __spreadArrays } from '../../tslib.es6-6ca380f2.js';
1
+ import { a as __assign, b as __spreadArrays } from '../../tslib.es6-036166d8.js';
2
2
  import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
3
3
  import 'classnames';
4
4
  import '../../components/checkmark/Component.js';
@@ -897,7 +897,7 @@ import { Skeleton } from '@alfalab/core-components-skeleton/dist/esm';
897
897
  window.IntersectionObserverEntry = IntersectionObserverEntry;
898
898
  }());
899
899
 
900
- var styles = {"skeleton":"select__skeleton_170og"};
900
+ var styles = {"skeleton":"select__skeleton_dpxw5"};
901
901
  require('./index.css')
902
902
 
903
903
  var DEBOUNCE_TIMEOUT = 300;
@@ -1,5 +1,5 @@
1
- /* hash: 170og */
2
- .select__skeleton_170og {
1
+ /* hash: k8vda */
2
+ .select__skeleton_dpxw5 {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
@@ -1,11 +1,11 @@
1
- import { a as __assign } from '../../tslib.es6-6ca380f2.js';
1
+ import { a as __assign } from '../../tslib.es6-036166d8.js';
2
2
  import React, { useCallback } from 'react';
3
3
  import 'classnames';
4
4
  import '../../components/checkmark/Component.js';
5
5
  import { Option } from '../../components/option/Component.js';
6
6
  import { Skeleton } from '@alfalab/core-components-skeleton/dist/esm';
7
7
 
8
- var styles = {"skeleton":"select__skeleton_1qcb9"};
8
+ var styles = {"skeleton":"select__skeleton_1vmit"};
9
9
  require('./index.css')
10
10
 
11
11
  function useSelectWithLoading(_a) {
@@ -1,5 +1,5 @@
1
- /* hash: 1qcb9 */
2
- .select__skeleton_1qcb9 {
1
+ /* hash: 353mm */
2
+ .select__skeleton_1vmit {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
@@ -219,6 +219,10 @@ type BaseSelectProps = {
219
219
  * Хранит функцию, с помощью которой можно обновить положение поповера
220
220
  */
221
221
  updatePopover?: PopoverProps['update'];
222
+ /**
223
+ * z-index поповера
224
+ */
225
+ zIndexPopover?: PopoverProps['zIndex'];
222
226
  /**
223
227
  * Показывать OptionsList, если он пустой
224
228
  */
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-d00003ef.js');
5
+ require('./tslib.es6-d8513212.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/hooks');
@@ -82,7 +82,7 @@ type SelectProps = Omit<BaseSelectProps, 'fieldProps'> & {
82
82
  */
83
83
  fieldProps?: FormControlProps & Record<string, unknown>;
84
84
  };
85
- declare const Select: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "onScroll" | "preventFlip" | "open" | "name" | "options" | "multiple" | "selected" | "valueRenderer" | "Optgroup" | "visibleOptions" | "Arrow" | "Option" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsListWidth" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "OptionsList" | "updatePopover" | "showEmptyOptionsList"> & {
85
+ declare const Select: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "onScroll" | "preventFlip" | "open" | "name" | "options" | "multiple" | "selected" | "valueRenderer" | "Optgroup" | "visibleOptions" | "Arrow" | "Option" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "nativeSelect" | "defaultOpen" | "popoverPosition" | "optionsListWidth" | "optionsSize" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
86
86
  /**
87
87
  * Пропсы, которые будут прокинуты в компонент поля
88
88
  */
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { ChevronDownMIcon } from '@alfalab/icons-glyph/ChevronDownMIcon';
4
4
 
5
- var styles = {"arrow":"select__arrow_1pfzl","open":"select__open_1pfzl"};
5
+ var styles = {"arrow":"select__arrow_4ibam","open":"select__open_4ibam"};
6
6
  require('./index.css')
7
7
 
8
8
  const Arrow = ({ open, className }) => (React.createElement(ChevronDownMIcon, { className: cn(styles.arrow, className, { [styles.open]: open }) }));
@@ -1,4 +1,4 @@
1
- /* hash: 1pfzl */
1
+ /* hash: b18rr */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -24,7 +24,7 @@
24
24
 
25
25
  /* optgroup */
26
26
  }
27
- .select__arrow_1pfzl {
27
+ .select__arrow_4ibam {
28
28
  display: block;
29
29
  width: 24px;
30
30
  height: 24px;
@@ -32,6 +32,6 @@
32
32
 
33
33
  transition: transform 0.15s ease-in-out, opacity 0.2s ease;
34
34
  }
35
- .select__open_1pfzl {
35
+ .select__open_4ibam {
36
36
  transform: var(--arrow-transform);
37
37
  }
@@ -12,10 +12,10 @@ const getDataTestId = (dataTestId, element) => {
12
12
  return dataTestId ? `${dataTestId}${elementPart}` : undefined;
13
13
  };
14
14
 
15
- var styles = {"component":"select__component_jdx2x","popoverInner":"select__popoverInner_jdx2x","optionsList":"select__optionsList_jdx2x","nativeSelect":"select__nativeSelect_jdx2x","block":"select__block_jdx2x"};
15
+ var styles = {"component":"select__component_fpyu0","popoverInner":"select__popoverInner_fpyu0","optionsList":"select__optionsList_fpyu0","nativeSelect":"select__nativeSelect_fpyu0","block":"select__block_fpyu0"};
16
16
  require('./index.css')
17
17
 
18
- const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 's', optionsSize = size, error, hint, block, label, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, updatePopover, showEmptyOptionsList = false, visibleOptions, }, ref) => {
18
+ const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 's', optionsSize = size, error, hint, block, label, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, updatePopover, zIndexPopover, showEmptyOptionsList = false, visibleOptions, }, ref) => {
19
19
  const rootRef = useRef(null);
20
20
  const fieldRef = useRef(null);
21
21
  const listRef = useRef(null);
@@ -235,7 +235,7 @@ const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsL
235
235
  : undefined,
236
236
  }, dataTestId: getDataTestId(dataTestId, 'field') }, fieldProps)),
237
237
  name && !nativeSelect && renderValue(),
238
- !nativeSelect && (React.createElement(Popover, { open: open, withTransition: false, anchorElement: fieldRef.current, position: popoverPosition, preventFlip: preventFlip, popperClassName: styles.popoverInner, update: updatePopover }, needRenderOptionsList && (React.createElement("div", Object.assign({}, menuProps, { className: cn(optionsListClassName, styles.optionsList) }),
238
+ !nativeSelect && (React.createElement(Popover, { open: open, withTransition: false, anchorElement: fieldRef.current, position: popoverPosition, preventFlip: preventFlip, popperClassName: styles.popoverInner, update: updatePopover, zIndex: zIndexPopover }, needRenderOptionsList && (React.createElement("div", Object.assign({}, menuProps, { className: cn(optionsListClassName, styles.optionsList) }),
239
239
  React.createElement(OptionsList, Object.assign({}, optionsListProps, { flatOptions: flatOptions, highlightedIndex: highlightedIndex, open: open, size: size, options: options, Optgroup: Optgroup, Option: WrappedOption, visibleOptions: visibleOptions, onScroll: onScroll, dataTestId: getDataTestId(dataTestId, 'options-list') }))))))));
240
240
  });
241
241
 
@@ -1,4 +1,4 @@
1
- /* hash: jdx2x */
1
+ /* hash: 2s7v5 */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -28,12 +28,12 @@
28
28
 
29
29
  /* optgroup */
30
30
  }
31
- .select__component_jdx2x {
31
+ .select__component_fpyu0 {
32
32
  width: max-content;
33
33
  position: relative;
34
34
  outline: 0;
35
35
  }
36
- .select__popoverInner_jdx2x {
36
+ .select__popoverInner_fpyu0 {
37
37
  padding-top: var(--select-options-list-offset);
38
38
  padding-bottom: var(--select-options-list-offset);
39
39
  box-shadow: none;
@@ -42,7 +42,7 @@
42
42
  border-radius: 0;
43
43
  position: relative;
44
44
  }
45
- .select__optionsList_jdx2x {
45
+ .select__optionsList_fpyu0 {
46
46
  padding-top: var(--select-options-list-top-padding);
47
47
  padding-bottom: var(--select-options-list-bottom-padding);
48
48
  box-shadow: var(--select-options-list-box-shadow);
@@ -51,7 +51,7 @@
51
51
  overflow: hidden;
52
52
  will-change: transform;
53
53
  }
54
- .select__nativeSelect_jdx2x {
54
+ .select__nativeSelect_fpyu0 {
55
55
  opacity: 0;
56
56
  overflow: hidden;
57
57
  position: absolute;
@@ -65,12 +65,12 @@
65
65
  cursor: pointer;
66
66
  z-index: 1;
67
67
  }
68
- .select__block_jdx2x {
68
+ .select__block_fpyu0 {
69
69
  width: 100%;
70
70
  }
71
71
  /* width: max-content; fix for IE */
72
72
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
73
- .select__component_jdx2x {
73
+ .select__component_fpyu0 {
74
74
  float: left;
75
75
  clear: left;
76
76
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"checkmark":"select__checkmark_1kdq1","selected":"select__selected_1kdq1"};
4
+ var styles = {"checkmark":"select__checkmark_1kz5v","selected":"select__selected_1kz5v"};
5
5
  require('./index.css')
6
6
 
7
7
  const Checkmark = ({ selected }) => (React.createElement("span", { className: cn(styles.checkmark, {
@@ -1,4 +1,4 @@
1
- /* hash: 1kdq1 */
1
+ /* hash: 1ycjj */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -33,7 +33,7 @@
33
33
 
34
34
  /* optgroup */
35
35
  }
36
- .select__checkmark_1kdq1 {
36
+ .select__checkmark_1kz5v {
37
37
  display: flex;
38
38
  align-items: center;
39
39
  justify-content: center;
@@ -47,6 +47,6 @@
47
47
  width: var(--select-checkmark-size);
48
48
  height: var(--select-checkmark-size);
49
49
  }
50
- .select__selected_1kdq1 {
50
+ .select__selected_1kz5v {
51
51
  opacity: 1;
52
52
  }
@@ -4,7 +4,7 @@ import { useFocus } from '@alfalab/hooks';
4
4
  import { FormControl } from '@alfalab/core-components-form-control/dist/modern';
5
5
  import { joinOptions } from '../../utils.js';
6
6
 
7
- var styles = {"component":"select__component_1ozzk","field":"select__field_1ozzk","disabled":"select__disabled_1ozzk","arrow":"select__arrow_1ozzk","placeholder":"select__placeholder_1ozzk","contentWrapper":"select__contentWrapper_1ozzk","value":"select__value_1ozzk","focusVisible":"select__focusVisible_1ozzk"};
7
+ var styles = {"component":"select__component_kqxkl","field":"select__field_kqxkl","disabled":"select__disabled_kqxkl","arrow":"select__arrow_kqxkl","placeholder":"select__placeholder_kqxkl","contentWrapper":"select__contentWrapper_kqxkl","value":"select__value_kqxkl","focusVisible":"select__focusVisible_kqxkl"};
8
8
  require('./index.css')
9
9
 
10
10
  const Field = ({ size = 'm', open, multiple, error, hint, disabled, label, placeholder, selectedMultiple = [], selected, rightAddons, valueRenderer = joinOptions, Arrow, innerProps, dataTestId, fieldClassName, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1ozzk */
1
+ /* hash: e803h */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-text-secondary: #546272;
@@ -26,24 +26,24 @@
26
26
 
27
27
  /* optgroup */
28
28
  }
29
- .select__component_1ozzk {
29
+ .select__component_kqxkl {
30
30
  width: 100%;
31
31
  outline: none;
32
32
  }
33
- .select__field_1ozzk:not(.select__disabled_1ozzk) {
33
+ .select__field_kqxkl:not(.select__disabled_kqxkl) {
34
34
  cursor: pointer
35
35
  }
36
- .select__field_1ozzk:not(.select__disabled_1ozzk):hover .select__arrow_1ozzk {
36
+ .select__field_kqxkl:not(.select__disabled_kqxkl):hover .select__arrow_kqxkl {
37
37
  opacity: var(--select-arrow-hover-opacity);
38
38
  }
39
- .select__disabled_1ozzk {
39
+ .select__disabled_kqxkl {
40
40
  cursor: var(--disabled-cursor);
41
41
  }
42
42
  /* TODO: Заюзать переменные из инпута */
43
- .select__placeholder_1ozzk {
43
+ .select__placeholder_kqxkl {
44
44
  color: var(--color-light-text-secondary);
45
45
  }
46
- .select__contentWrapper_1ozzk {
46
+ .select__contentWrapper_kqxkl {
47
47
  font-size: 16px;
48
48
  line-height: 20px;
49
49
  font-weight: 400;
@@ -53,12 +53,12 @@
53
53
  overflow: hidden;
54
54
  width: 100%;
55
55
  }
56
- .select__value_1ozzk {
56
+ .select__value_kqxkl {
57
57
  overflow: hidden;
58
58
  text-overflow: ellipsis;
59
59
  text-align: left;
60
60
  }
61
- .select__focusVisible_1ozzk {
61
+ .select__focusVisible_kqxkl {
62
62
  outline: 2px solid var(--focus-color);
63
63
  outline-offset: 2px;
64
64
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"optgroup":"select__optgroup_1dtr6","label":"select__label_1dtr6","l":"select__l_1dtr6","xl":"select__xl_1dtr6"};
4
+ var styles = {"optgroup":"select__optgroup_1xplk","label":"select__label_1xplk","l":"select__l_1xplk","xl":"select__xl_1xplk"};
5
5
  require('./index.css')
6
6
 
7
7
  const Optgroup = ({ children, label, size = 's' }) => (React.createElement(React.Fragment, null,
@@ -1,4 +1,4 @@
1
- /* hash: 1dtr6 */
1
+ /* hash: 1krul */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-text-secondary: #546272;
@@ -33,7 +33,7 @@
33
33
  --select-optgroup-l-left-padding: var(--gap-m);
34
34
  --select-optgroup-l-right-padding: var(--gap-m);
35
35
  }
36
- .select__optgroup_1dtr6 {
36
+ .select__optgroup_1xplk {
37
37
  position: relative;
38
38
  display: flex;
39
39
  align-items: center;
@@ -43,10 +43,10 @@
43
43
  background: var(--select-optgroup-background);
44
44
  min-height: 40px
45
45
  }
46
- .select__optgroup_1dtr6 + *[role='option']:before {
46
+ .select__optgroup_1xplk + *[role='option']:before {
47
47
  display: none;
48
48
  }
49
- .select__label_1dtr6 {
49
+ .select__label_1xplk {
50
50
  font-size: 12px;
51
51
  line-height: 16px;
52
52
  font-weight: 500;
@@ -56,8 +56,8 @@
56
56
  display: block;
57
57
  color: var(--select-optgroup-color);
58
58
  }
59
- .select__l_1dtr6,
60
- .select__xl_1dtr6 {
59
+ .select__l_1xplk,
60
+ .select__xl_1xplk {
61
61
  padding-left: var(--select-optgroup-l-left-padding);
62
62
  padding-right: var(--select-optgroup-l-right-padding);
63
63
  }
@@ -2,7 +2,7 @@ import React, { isValidElement } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Checkmark } from '../checkmark/Component.js';
4
4
 
5
- var styles = {"option":"select__option_sbaon","disabled":"select__disabled_sbaon","s":"select__s_sbaon","m":"select__m_sbaon","l":"select__l_sbaon","xl":"select__xl_sbaon","selected":"select__selected_sbaon","highlighted":"select__highlighted_sbaon","content":"select__content_sbaon","textContent":"select__textContent_sbaon"};
5
+ var styles = {"option":"select__option_1v52e","disabled":"select__disabled_1v52e","s":"select__s_1v52e","m":"select__m_1v52e","l":"select__l_1v52e","xl":"select__xl_1v52e","selected":"select__selected_1v52e","highlighted":"select__highlighted_1v52e","content":"select__content_1v52e","textContent":"select__textContent_1v52e"};
6
6
  require('./index.css')
7
7
 
8
8
  const Option = ({ size = 's', className, option, children, selected, highlighted, disabled, Checkmark: Checkmark$1 = Checkmark, innerProps, dataTestId, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: sbaon */
1
+ /* hash: 1mzcm */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-bg-secondary: #f3f4f5;
@@ -53,7 +53,7 @@
53
53
 
54
54
  /* optgroup */
55
55
  }
56
- .select__option_sbaon {
56
+ .select__option_1v52e {
57
57
  font-size: 16px;
58
58
  line-height: 20px;
59
59
  font-weight: 400;
@@ -69,11 +69,11 @@
69
69
  position: relative;
70
70
  cursor: pointer
71
71
  }
72
- .select__option_sbaon:not(.select__disabled_sbaon):active {
72
+ .select__option_1v52e:not(.select__disabled_1v52e):active {
73
73
  background: var(--select-option-active-background);
74
74
  color: var(--select-option-active-color);
75
75
  }
76
- .select__option_sbaon:before {
76
+ .select__option_1v52e:before {
77
77
  content: '';
78
78
  position: absolute;
79
79
  left: var(--select-option-left-padding);
@@ -84,60 +84,60 @@
84
84
  display: var(--select-option-divider-display);
85
85
  transition: opacity 0.2s ease;
86
86
  }
87
- .select__option_sbaon:first-child:before {
87
+ .select__option_1v52e:first-child:before {
88
88
  display: none;
89
89
  }
90
- .select__s_sbaon {
90
+ .select__s_1v52e {
91
91
  min-height: var(--size-s-height);
92
92
  }
93
- .select__m_sbaon {
93
+ .select__m_1v52e {
94
94
  min-height: var(--size-m-height);
95
95
  }
96
- .select__l_sbaon {
96
+ .select__l_1v52e {
97
97
  min-height: var(--size-l-height);
98
98
  }
99
- .select__xl_sbaon {
99
+ .select__xl_1v52e {
100
100
  min-height: var(--size-xl-height);
101
101
  }
102
- .select__l_sbaon,
103
- .select__xl_sbaon {
102
+ .select__l_1v52e,
103
+ .select__xl_1v52e {
104
104
  padding-left: var(--select-option-l-left-padding);
105
105
  padding-right: var(--select-option-l-right-padding)
106
106
  }
107
- .select__l_sbaon:before, .select__xl_sbaon:before {
107
+ .select__l_1v52e:before, .select__xl_1v52e:before {
108
108
  left: var(--select-option-l-left-padding);
109
109
  right: var(--select-option-l-right-padding);
110
110
  }
111
- .select__selected_sbaon {
111
+ .select__selected_1v52e {
112
112
  background: var(--select-option-selected-background);
113
113
  color: var(--select-option-selected-color);
114
114
  cursor: default;
115
115
  }
116
- .select__highlighted_sbaon {
116
+ .select__highlighted_1v52e {
117
117
  background: var(--select-option-hover-background);
118
118
  color: var(--select-option-hover-color)
119
119
  }
120
- .select__highlighted_sbaon:before,
121
- .select__highlighted_sbaon + .select__option_sbaon:before {
120
+ .select__highlighted_1v52e:before,
121
+ .select__highlighted_1v52e + .select__option_1v52e:before {
122
122
  opacity: 0;
123
123
  }
124
- .select__disabled_sbaon {
124
+ .select__disabled_1v52e {
125
125
  cursor: var(--disabled-cursor);
126
126
  background: var(--select-option-disabled-background);
127
127
  color: var(--select-option-disabled-color);
128
128
  }
129
- .select__content_sbaon {
129
+ .select__content_1v52e {
130
130
  overflow: hidden;
131
131
  text-overflow: ellipsis;
132
132
  flex: 1;
133
133
  }
134
- .select__textContent_sbaon {
134
+ .select__textContent_1v52e {
135
135
  padding-top: var(--gap-s);
136
136
  padding-bottom: var(--gap-s);
137
137
  }
138
138
  /* IE min-height fix */
139
139
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
140
- .select__option_sbaon:after {
140
+ .select__option_1v52e:after {
141
141
  min-height: inherit;
142
142
  font-size: 0;
143
143
  content: '';
@@ -4,7 +4,7 @@ import { useVisibleOptions, isGroup } from '../../utils.js';
4
4
  import mergeRefs from 'react-merge-refs';
5
5
  import { Optgroup } from '../optgroup/Component.js';
6
6
 
7
- var styles = {"optionsList":"select__optionsList_bdxu6","emptyPlaceholder":"select__emptyPlaceholder_bdxu6","l":"select__l_bdxu6","xl":"select__xl_bdxu6"};
7
+ var styles = {"optionsList":"select__optionsList_1xbp4","emptyPlaceholder":"select__emptyPlaceholder_1xbp4","l":"select__l_1xbp4","xl":"select__xl_1xbp4"};
8
8
  require('./index.css')
9
9
 
10
10
  const createCounter = () => {
@@ -1,4 +1,4 @@
1
- /* hash: bdxu6 */
1
+ /* hash: 1p57x */
2
2
  :root {
3
3
  --color-light-text-secondary: #546272;
4
4
  }
@@ -26,17 +26,17 @@
26
26
 
27
27
  /* optgroup */
28
28
  }
29
- .select__optionsList_bdxu6 {
29
+ .select__optionsList_1xbp4 {
30
30
  overflow: auto;
31
31
  width: 100%;
32
32
  outline: none;
33
33
  box-sizing: border-box;
34
34
  }
35
- .select__emptyPlaceholder_bdxu6 {
35
+ .select__emptyPlaceholder_1xbp4 {
36
36
  padding: var(--gap-m) var(--gap-s);
37
37
  color: var(--select-options-list-empty-placeholder-color);
38
38
  }
39
- .select__l_bdxu6 .select__emptyPlaceholder_bdxu6,
40
- .select__xl_bdxu6 .select__emptyPlaceholder_bdxu6 {
39
+ .select__l_1xbp4 .select__emptyPlaceholder_1xbp4,
40
+ .select__xl_1xbp4 .select__emptyPlaceholder_1xbp4 {
41
41
  padding: var(--gap-xl) var(--gap-m);
42
42
  }
@@ -4,7 +4,7 @@ import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../util
4
4
  import { Optgroup } from '../optgroup/Component.js';
5
5
  import { useVirtual } from 'react-virtual';
6
6
 
7
- var styles = {"virtualOptionsList":"select__virtualOptionsList_1n2dt","inner":"select__inner_1n2dt","virtualRow":"select__virtualRow_1n2dt","highlighted":"select__highlighted_1n2dt","emptyPlaceholder":"select__emptyPlaceholder_1n2dt","l":"select__l_1n2dt","xl":"select__xl_1n2dt"};
7
+ var styles = {"virtualOptionsList":"select__virtualOptionsList_3iqj6","inner":"select__inner_3iqj6","virtualRow":"select__virtualRow_3iqj6","highlighted":"select__highlighted_3iqj6","emptyPlaceholder":"select__emptyPlaceholder_3iqj6","l":"select__l_3iqj6","xl":"select__xl_3iqj6"};
8
8
  require('./index.css')
9
9
 
10
10
  /* eslint-disable react-hooks/exhaustive-deps */
@@ -1,4 +1,4 @@
1
- /* hash: 1n2dt */
1
+ /* hash: gw478 */
2
2
  :root {
3
3
  --color-light-border-primary: #dbdee1;
4
4
  --color-light-text-secondary: #546272;
@@ -32,24 +32,24 @@
32
32
 
33
33
  /* optgroup */
34
34
  }
35
- .select__virtualOptionsList_1n2dt {
35
+ .select__virtualOptionsList_3iqj6 {
36
36
  overflow: auto;
37
37
  width: 100%;
38
38
  outline: none;
39
39
  box-sizing: border-box;
40
40
  position: relative;
41
41
  }
42
- .select__inner_1n2dt {
42
+ .select__inner_3iqj6 {
43
43
  position: relative;
44
44
  width: 100%;
45
45
  }
46
- .select__virtualRow_1n2dt {
46
+ .select__virtualRow_3iqj6 {
47
47
  position: absolute;
48
48
  top: 0;
49
49
  left: 0;
50
50
  width: 100%
51
51
  }
52
- .select__virtualRow_1n2dt:before {
52
+ .select__virtualRow_3iqj6:before {
53
53
  content: '';
54
54
  position: absolute;
55
55
  z-index: 1;
@@ -60,18 +60,18 @@
60
60
  background: var(--select-option-divider-background);
61
61
  display: var(--select-option-divider-display);
62
62
  }
63
- .select__virtualRow_1n2dt:first-child:before {
63
+ .select__virtualRow_3iqj6:first-child:before {
64
64
  display: none;
65
65
  }
66
- .select__highlighted_1n2dt:before,
67
- .select__highlighted_1n2dt + .select__virtualRow_1n2dt:before {
66
+ .select__highlighted_3iqj6:before,
67
+ .select__highlighted_3iqj6 + .select__virtualRow_3iqj6:before {
68
68
  display: none;
69
69
  }
70
- .select__emptyPlaceholder_1n2dt {
70
+ .select__emptyPlaceholder_3iqj6 {
71
71
  padding: var(--gap-m) var(--gap-s);
72
72
  color: var(--select-options-list-empty-placeholder-color);
73
73
  }
74
- .select__l_1n2dt .select__emptyPlaceholder_1n2dt,
75
- .select__xl_1n2dt .select__emptyPlaceholder_1n2dt {
74
+ .select__l_3iqj6 .select__emptyPlaceholder_3iqj6,
75
+ .select__xl_3iqj6 .select__emptyPlaceholder_3iqj6 {
76
76
  padding: var(--gap-xl) var(--gap-m);
77
77
  }
@@ -896,7 +896,7 @@ import { Skeleton } from '@alfalab/core-components-skeleton/dist/modern';
896
896
  window.IntersectionObserverEntry = IntersectionObserverEntry;
897
897
  }());
898
898
 
899
- var styles = {"skeleton":"select__skeleton_170og"};
899
+ var styles = {"skeleton":"select__skeleton_dpxw5"};
900
900
  require('./index.css')
901
901
 
902
902
  const DEBOUNCE_TIMEOUT = 300;
@@ -1,5 +1,5 @@
1
- /* hash: 170og */
2
- .select__skeleton_170og {
1
+ /* hash: k8vda */
2
+ .select__skeleton_dpxw5 {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
@@ -4,7 +4,7 @@ import '../../components/checkmark/Component.js';
4
4
  import { Option } from '../../components/option/Component.js';
5
5
  import { Skeleton } from '@alfalab/core-components-skeleton/dist/modern';
6
6
 
7
- var styles = {"skeleton":"select__skeleton_1qcb9"};
7
+ var styles = {"skeleton":"select__skeleton_1vmit"};
8
8
  require('./index.css')
9
9
 
10
10
  function useSelectWithLoading({ loading = false, visibleOptions = 6, }) {
@@ -1,5 +1,5 @@
1
- /* hash: 1qcb9 */
2
- .select__skeleton_1qcb9 {
1
+ /* hash: 353mm */
2
+ .select__skeleton_1vmit {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
@@ -219,6 +219,10 @@ type BaseSelectProps = {
219
219
  * Хранит функцию, с помощью которой можно обновить положение поповера
220
220
  */
221
221
  updatePopover?: PopoverProps['update'];
222
+ /**
223
+ * z-index поповера
224
+ */
225
+ zIndexPopover?: PopoverProps['zIndex'];
222
226
  /**
223
227
  * Показывать OptionsList, если он пустой
224
228
  */
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../tslib.es6-d00003ef.js');
5
+ require('../tslib.es6-d8513212.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('../components/checkmark/Component.js');