@alfalab/core-components-select 15.1.3 → 15.1.5

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 (150) hide show
  1. package/Component.desktop-ebda875c.d.ts +6 -0
  2. package/Component.desktop.d.ts +0 -2
  3. package/Component.mobile-f1f15074.d.ts +12 -12
  4. package/Component.mobile.js +1 -1
  5. package/Component.modal.mobile.js +1 -1
  6. package/Component.responsive.js +1 -1
  7. package/components/arrow/Component.js +1 -1
  8. package/components/arrow/index.css +3 -3
  9. package/components/base-checkmark/Component.js +1 -1
  10. package/components/base-checkmark/index.css +4 -4
  11. package/components/base-option/Component.js +1 -1
  12. package/components/base-option/index.css +13 -13
  13. package/components/base-select/Component.js +1 -1
  14. package/components/base-select/index.css +12 -11
  15. package/components/base-select-mobile/Component.js +1 -1
  16. package/components/base-select-mobile/footer/Component.js +1 -1
  17. package/components/base-select-mobile/footer/index.css +5 -5
  18. package/components/base-select-mobile/index.css +17 -16
  19. package/components/checkmark/Component.js +1 -1
  20. package/components/checkmark/index.css +10 -10
  21. package/components/checkmark-mobile/Component.js +1 -1
  22. package/components/checkmark-mobile/index.css +6 -6
  23. package/components/field/Component.js +1 -1
  24. package/components/field/index.css +12 -12
  25. package/components/optgroup/Component.js +1 -1
  26. package/components/optgroup/index.css +6 -6
  27. package/components/option/Component.js +1 -1
  28. package/components/option/index.css +20 -20
  29. package/components/options-list/Component.js +1 -1
  30. package/components/options-list/index.css +9 -9
  31. package/components/search/Component.js +1 -1
  32. package/components/search/index.css +2 -2
  33. package/components/virtual-options-list/Component.js +1 -1
  34. package/components/virtual-options-list/index.css +15 -15
  35. package/cssm/components/base-select/index.module.css +1 -0
  36. package/cssm/components/base-select-mobile/index.module.css +1 -0
  37. package/esm/Component.mobile.js +1 -1
  38. package/esm/Component.modal.mobile.js +1 -1
  39. package/esm/Component.responsive.js +1 -1
  40. package/esm/components/arrow/Component.js +1 -1
  41. package/esm/components/arrow/index.css +3 -3
  42. package/esm/components/base-checkmark/Component.js +1 -1
  43. package/esm/components/base-checkmark/index.css +4 -4
  44. package/esm/components/base-option/Component.js +1 -1
  45. package/esm/components/base-option/index.css +13 -13
  46. package/esm/components/base-select/Component.js +1 -1
  47. package/esm/components/base-select/index.css +12 -11
  48. package/esm/components/base-select-mobile/Component.js +1 -1
  49. package/esm/components/base-select-mobile/footer/Component.js +1 -1
  50. package/esm/components/base-select-mobile/footer/index.css +5 -5
  51. package/esm/components/base-select-mobile/index.css +17 -16
  52. package/esm/components/checkmark/Component.js +1 -1
  53. package/esm/components/checkmark/index.css +10 -10
  54. package/esm/components/checkmark-mobile/Component.js +1 -1
  55. package/esm/components/checkmark-mobile/index.css +6 -6
  56. package/esm/components/field/Component.js +1 -1
  57. package/esm/components/field/index.css +12 -12
  58. package/esm/components/optgroup/Component.js +1 -1
  59. package/esm/components/optgroup/index.css +6 -6
  60. package/esm/components/option/Component.js +1 -1
  61. package/esm/components/option/index.css +20 -20
  62. package/esm/components/options-list/Component.js +1 -1
  63. package/esm/components/options-list/index.css +9 -9
  64. package/esm/components/search/Component.js +1 -1
  65. package/esm/components/search/index.css +2 -2
  66. package/esm/components/virtual-options-list/Component.js +1 -1
  67. package/esm/components/virtual-options-list/index.css +15 -15
  68. package/esm/index.js +1 -1
  69. package/esm/mobile.js +1 -1
  70. package/esm/presets/index.js +1 -1
  71. package/esm/presets/useSelectWithApply/hook.js +1 -1
  72. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  73. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  74. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  75. package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  76. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  77. package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  78. package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  79. package/esm/presets/useSelectWithLoading/hook.js +1 -1
  80. package/esm/presets/useSelectWithLoading/index.css +2 -2
  81. package/esm/shared.js +1 -1
  82. package/index.js +1 -1
  83. package/mobile-96988a65.d.ts +6 -2
  84. package/mobile.js +1 -1
  85. package/modern/Component.mobile.js +1 -1
  86. package/modern/Component.modal.mobile.js +1 -1
  87. package/modern/Component.responsive.js +1 -1
  88. package/modern/components/arrow/Component.js +1 -1
  89. package/modern/components/arrow/index.css +3 -3
  90. package/modern/components/base-checkmark/Component.js +1 -1
  91. package/modern/components/base-checkmark/index.css +4 -4
  92. package/modern/components/base-option/Component.js +1 -1
  93. package/modern/components/base-option/index.css +13 -13
  94. package/modern/components/base-select/Component.js +1 -1
  95. package/modern/components/base-select/index.css +12 -11
  96. package/modern/components/base-select-mobile/Component.js +1 -1
  97. package/modern/components/base-select-mobile/footer/Component.js +1 -1
  98. package/modern/components/base-select-mobile/footer/index.css +5 -5
  99. package/modern/components/base-select-mobile/index.css +17 -16
  100. package/modern/components/checkmark/Component.js +1 -1
  101. package/modern/components/checkmark/index.css +10 -10
  102. package/modern/components/checkmark-mobile/Component.js +1 -1
  103. package/modern/components/checkmark-mobile/index.css +6 -6
  104. package/modern/components/field/Component.js +1 -1
  105. package/modern/components/field/index.css +12 -12
  106. package/modern/components/optgroup/Component.js +1 -1
  107. package/modern/components/optgroup/index.css +6 -6
  108. package/modern/components/option/Component.js +1 -1
  109. package/modern/components/option/index.css +20 -20
  110. package/modern/components/options-list/Component.js +1 -1
  111. package/modern/components/options-list/index.css +9 -9
  112. package/modern/components/search/Component.js +1 -1
  113. package/modern/components/search/index.css +2 -2
  114. package/modern/components/virtual-options-list/Component.js +1 -1
  115. package/modern/components/virtual-options-list/index.css +15 -15
  116. package/modern/index.js +1 -1
  117. package/modern/mobile.js +1 -1
  118. package/modern/presets/index.js +1 -1
  119. package/modern/presets/useSelectWithApply/hook.js +1 -1
  120. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  121. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  122. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  123. package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  124. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  125. package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  126. package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  127. package/modern/presets/useSelectWithLoading/hook.js +1 -1
  128. package/modern/presets/useSelectWithLoading/index.css +2 -2
  129. package/modern/shared.js +1 -1
  130. package/package.json +5 -5
  131. package/presets/index.js +1 -1
  132. package/presets/useSelectWithApply/hook.js +1 -1
  133. package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  134. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
  135. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  136. package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
  137. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  138. package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  139. package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  140. package/presets/useSelectWithLoading/hook.js +1 -1
  141. package/presets/useSelectWithLoading/index.css +2 -2
  142. package/shared.js +1 -1
  143. package/src/components/base-select/index.module.css +1 -0
  144. package/src/components/base-select-mobile/index.module.css +1 -0
  145. /package/esm/{hook-3add52c3.d.ts → hook-566d4488.d.ts} +0 -0
  146. /package/esm/{hook-3add52c3.js → hook-566d4488.js} +0 -0
  147. /package/{hook-562eedb1.d.ts → hook-00b037e9.d.ts} +0 -0
  148. /package/{hook-562eedb1.js → hook-00b037e9.js} +0 -0
  149. /package/modern/{hook-20e2c551.d.ts → hook-99fd2cdd.d.ts} +0 -0
  150. /package/modern/{hook-20e2c551.js → hook-99fd2cdd.js} +0 -0
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Checkbox } from '@alfalab/core-components-checkbox/esm';
4
4
 
5
- var styles = {"desktop":"select__desktop_1n2jh","mobile":"select__mobile_1n2jh"};
5
+ var styles = {"desktop":"select__desktop_16srq","mobile":"select__mobile_16srq"};
6
6
  require('./index.css')
7
7
 
8
8
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1718c */
1
+ /* hash: dp8fd */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,8 +16,8 @@
16
16
  --gap-s: 12px;
17
17
  } :root {
18
18
  } :root {
19
- } .select__desktop_1n2jh {
19
+ } .select__desktop_16srq {
20
20
  padding: var(--gap-s);
21
- } .select__mobile_1n2jh {
21
+ } .select__mobile_16srq {
22
22
  padding: var(--gap-s) var(--gap-xs);
23
23
  }
@@ -1 +1 @@
1
- export * from "../../../hook-3add52c3";
1
+ export * from "../../../hook-566d4488";
@@ -1,4 +1,4 @@
1
- export { O as OptionsListWithApply } from '../../../hook-3add52c3.js';
1
+ export { O as OptionsListWithApply } from '../../../hook-566d4488.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
4
  import '../../../utils.js';
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
10
10
  import '@alfalab/icons-glyph/CheckmarkMIcon';
11
11
  import '../../components/checkmark-mobile/Component.js';
12
12
 
13
- var styles = {"skeleton":"select__skeleton_925nr"};
13
+ var styles = {"skeleton":"select__skeleton_1fu0i"};
14
14
  require('./index.css')
15
15
 
16
16
  function useSelectWithLoading(_a) {
@@ -1,5 +1,5 @@
1
- /* hash: 1bzoj */
2
- .select__skeleton_925nr {
1
+ /* hash: ytgwm */
2
+ .select__skeleton_1fu0i {
3
3
  position: absolute;
4
4
  top: 50%;
5
5
  transform: translateY(-50%);
package/esm/shared.js CHANGED
@@ -9,7 +9,7 @@ export { BaseOption } from './components/base-option/Component.js';
9
9
  export { Search } from './components/search/Component.js';
10
10
  export { useSelectWithLoading } from './presets/useSelectWithLoading/hook.js';
11
11
  export { useLazyLoading } from './presets/useLazyLoading/hook.js';
12
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from './hook-3add52c3.js';
12
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from './hook-566d4488.js';
13
13
  export { defaultAccessor, defaultFilterFn, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from './utils.js';
14
14
  import 'react';
15
15
  import 'classnames';
package/index.js CHANGED
@@ -44,7 +44,7 @@ require('@alfalab/core-components-base-modal');
44
44
  require('@alfalab/core-components-button/mobile');
45
45
  require('./components/virtual-options-list/Component.js');
46
46
  require('react-virtual');
47
- require('./hook-562eedb1.js');
47
+ require('./hook-00b037e9.js');
48
48
  require('./presets/useSelectWithApply/options-list-with-apply/footer/Component.js');
49
49
  require('@alfalab/core-components-button/desktop');
50
50
  require('./presets/useSelectWithApply/options-list-with-apply/header/Component.js');
@@ -1,2 +1,6 @@
1
- export * from "./Component.mobile-ebda875c";
2
- export {};
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { BaseFormControlProps } from "./index-ebda875c";
4
+ type FormControlMobileProps = Omit<BaseFormControlProps, "styles" | "colorStyles">;
5
+ declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { FormControlMobileProps, FormControlMobile };
package/mobile.js CHANGED
@@ -38,7 +38,7 @@ require('@alfalab/core-components-base-modal');
38
38
  require('@alfalab/core-components-button/mobile');
39
39
  require('./components/virtual-options-list/Component.js');
40
40
  require('react-virtual');
41
- require('./hook-562eedb1.js');
41
+ require('./hook-00b037e9.js');
42
42
  require('./presets/useSelectWithApply/options-list-with-apply/footer/Component.js');
43
43
  require('@alfalab/core-components-button/desktop');
44
44
  require('./presets/useSelectWithApply/options-list-with-apply/header/Component.js');
@@ -9,7 +9,7 @@ import { Option } from './components/option/Component.js';
9
9
  import { OptionsList } from './components/options-list/Component.js';
10
10
  import { Search } from './components/search/Component.js';
11
11
  import { VirtualOptionsList } from './components/virtual-options-list/Component.js';
12
- import { u as useSelectWithApply } from './hook-20e2c551.js';
12
+ import { u as useSelectWithApply } from './hook-99fd2cdd.js';
13
13
  import { Header } from './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
14
14
  import 'classnames';
15
15
  import '@alfalab/icons-glyph/ChevronDownMIcon';
@@ -8,7 +8,7 @@ import { Optgroup } from './components/optgroup/Component.js';
8
8
  import { Option } from './components/option/Component.js';
9
9
  import { OptionsList } from './components/options-list/Component.js';
10
10
  import { VirtualOptionsList } from './components/virtual-options-list/Component.js';
11
- import { u as useSelectWithApply } from './hook-20e2c551.js';
11
+ import { u as useSelectWithApply } from './hook-99fd2cdd.js';
12
12
  import { Header } from './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
13
13
  import 'classnames';
14
14
  import '@alfalab/icons-glyph/ChevronDownMIcon';
@@ -38,7 +38,7 @@ import '@alfalab/core-components-base-modal/modern';
38
38
  import '@alfalab/core-components-button/modern/mobile';
39
39
  import './components/virtual-options-list/Component.js';
40
40
  import 'react-virtual';
41
- import './hook-20e2c551.js';
41
+ import './hook-99fd2cdd.js';
42
42
  import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
43
43
  import '@alfalab/core-components-button/modern/desktop';
44
44
  import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -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
- const styles = {"arrow":"select__arrow_10h63","open":"select__open_10h63"};
5
+ const styles = {"arrow":"select__arrow_15vlt","open":"select__open_15vlt"};
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: 29vdt */
1
+ /* hash: 17zqw */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -26,13 +26,13 @@
26
26
  /* checkmark */
27
27
 
28
28
  /* optgroup */
29
- } .select__arrow_10h63 {
29
+ } .select__arrow_15vlt {
30
30
  display: block;
31
31
  width: 24px;
32
32
  height: 24px;
33
33
  color: var(--select-arrow-color);
34
34
 
35
35
  transition: transform 0.15s ease-in-out, opacity 0.2s ease;
36
- } .select__open_10h63 {
36
+ } .select__open_15vlt {
37
37
  transform: var(--arrow-transform);
38
38
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { Checkbox } from '@alfalab/core-components-checkbox/modern';
4
4
  import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
5
5
 
6
- const styles = {"checkmark":"select__checkmark_16vvy","single":"select__single_16vvy","selected":"select__selected_16vvy"};
6
+ const styles = {"checkmark":"select__checkmark_145l3","single":"select__single_145l3","selected":"select__selected_145l3"};
7
7
  require('./index.css')
8
8
 
9
9
  const BaseCheckmark = ({ selected, disabled = false, className, multiple, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 7fzmg */
1
+ /* hash: 1fk8j */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -23,14 +23,14 @@
23
23
  /* checkmark */
24
24
 
25
25
  /* optgroup */
26
- } .select__checkmark_16vvy {
26
+ } .select__checkmark_145l3 {
27
27
  flex-shrink: 0;
28
28
  box-sizing: border-box;
29
- } .select__single_16vvy {
29
+ } .select__single_145l3 {
30
30
  display: flex;
31
31
  align-items: center;
32
32
  justify-content: center;
33
33
  opacity: 0
34
- } .select__single_16vvy.select__selected_16vvy {
34
+ } .select__single_145l3.select__selected_145l3 {
35
35
  opacity: 1;
36
36
  }
@@ -4,7 +4,7 @@ import { BaseCheckmark } from '../base-checkmark/Component.js';
4
4
  import '@alfalab/core-components-checkbox/modern';
5
5
  import '@alfalab/icons-glyph/CheckmarkMIcon';
6
6
 
7
- const styles = {"option":"select__option_1sj6p","disabled":"select__disabled_1sj6p","checkmarkBefore":"select__checkmarkBefore_1sj6p","mobile":"select__mobile_1sj6p","checkmarkAfter":"select__checkmarkAfter_1sj6p","textContent":"select__textContent_1sj6p","selected":"select__selected_1sj6p","highlighted":"select__highlighted_1sj6p","content":"select__content_1sj6p"};
7
+ const styles = {"option":"select__option_lqkh7","disabled":"select__disabled_lqkh7","checkmarkBefore":"select__checkmarkBefore_lqkh7","mobile":"select__mobile_lqkh7","checkmarkAfter":"select__checkmarkAfter_lqkh7","textContent":"select__textContent_lqkh7","selected":"select__selected_lqkh7","highlighted":"select__highlighted_lqkh7","content":"select__content_lqkh7"};
8
8
  require('./index.css')
9
9
 
10
10
  const BaseOption = ({ className, option, children, selected, highlighted, disabled, multiple, Checkmark = BaseCheckmark, checkmarkPosition = multiple ? 'before' : 'after', innerProps, dataTestId, mobile = false, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 76774 */
1
+ /* hash: 1fb7i */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -43,7 +43,7 @@
43
43
  /* checkmark */
44
44
 
45
45
  /* optgroup */
46
- } .select__option_1sj6p {
46
+ } .select__option_lqkh7 {
47
47
  font-size: 16px;
48
48
  line-height: 20px;
49
49
  font-weight: 400;
@@ -60,32 +60,32 @@
60
60
  position: relative;
61
61
  cursor: pointer;
62
62
  min-height: var(--size-s-height)
63
- } .select__option_1sj6p:not(.select__disabled_1sj6p):active {
63
+ } .select__option_lqkh7:not(.select__disabled_lqkh7):active {
64
64
  background: var(--select-option-active-background);
65
65
  color: var(--select-option-active-color);
66
- } .select__option_1sj6p.select__checkmarkBefore_1sj6p {
66
+ } .select__option_lqkh7.select__checkmarkBefore_lqkh7 {
67
67
  padding: 0 0 0 var(--gap-s)
68
- } .select__option_1sj6p.select__checkmarkBefore_1sj6p.select__mobile_1sj6p {
68
+ } .select__option_lqkh7.select__checkmarkBefore_lqkh7.select__mobile_lqkh7 {
69
69
  padding-left: var(--gap-m);
70
- } .select__option_1sj6p.select__checkmarkAfter_1sj6p {
70
+ } .select__option_lqkh7.select__checkmarkAfter_lqkh7 {
71
71
  padding: 0 var(--gap-s) 0 0
72
- } .select__option_1sj6p.select__checkmarkAfter_1sj6p.select__mobile_1sj6p {
72
+ } .select__option_lqkh7.select__checkmarkAfter_lqkh7.select__mobile_lqkh7 {
73
73
  padding-right: var(--gap-l);
74
- } .select__option_1sj6p.select__textContent_1sj6p {
74
+ } .select__option_lqkh7.select__textContent_lqkh7 {
75
75
  padding: var(--gap-s)
76
- } .select__option_1sj6p.select__textContent_1sj6p.select__mobile_1sj6p {
76
+ } .select__option_lqkh7.select__textContent_lqkh7.select__mobile_lqkh7 {
77
77
  padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
78
- } .select__selected_1sj6p {
78
+ } .select__selected_lqkh7 {
79
79
  background: var(--select-option-selected-background);
80
80
  color: var(--select-option-selected-color);
81
81
  cursor: default;
82
- } .select__highlighted_1sj6p {
82
+ } .select__highlighted_lqkh7 {
83
83
  background: var(--select-option-hover-background);
84
84
  color: var(--select-option-hover-color);
85
- } .select__disabled_1sj6p {
85
+ } .select__disabled_lqkh7 {
86
86
  cursor: var(--disabled-cursor);
87
87
  background: var(--select-option-disabled-background);
88
88
  color: var(--select-option-disabled-color);
89
- } .select__content_1sj6p {
89
+ } .select__content_lqkh7 {
90
90
  flex: 1;
91
91
  }
@@ -9,7 +9,7 @@ import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
9
9
  import { defaultAccessor, processOptions, defaultFilterFn } from '../../utils.js';
10
10
  import { NativeSelect } from '../native-select/Component.js';
11
11
 
12
- const styles = {"component":"select__component_1o6yo","popoverInner":"select__popoverInner_1o6yo","optionsList":"select__optionsList_1o6yo","optionsListBorder":"select__optionsListBorder_1o6yo","nativeSelect":"select__nativeSelect_1o6yo","block":"select__block_1o6yo","emptySearchPlaceholder":"select__emptySearchPlaceholder_1o6yo","search":"select__search_1o6yo"};
12
+ const styles = {"component":"select__component_2agli","popoverInner":"select__popoverInner_2agli","optionsList":"select__optionsList_2agli","optionsListBorder":"select__optionsListBorder_2agli","nativeSelect":"select__nativeSelect_2agli","block":"select__block_2agli","emptySearchPlaceholder":"select__emptySearchPlaceholder_2agli","search":"select__search_2agli"};
13
13
  require('./index.css')
14
14
 
15
15
  /* eslint-disable no-nested-ternary */
@@ -1,4 +1,4 @@
1
- /* hash: syqzw */
1
+ /* hash: uljqx */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -37,11 +37,12 @@
37
37
  /* checkmark */
38
38
 
39
39
  /* optgroup */
40
- } .select__component_1o6yo {
40
+ } .select__component_2agli {
41
41
  width: max-content;
42
42
  position: relative;
43
43
  outline: 0;
44
- } .select__popoverInner_1o6yo {
44
+ max-width: 100%;
45
+ } .select__popoverInner_2agli {
45
46
  padding-top: var(--select-options-list-offset);
46
47
  padding-bottom: var(--select-options-list-offset);
47
48
  box-shadow: none;
@@ -49,7 +50,7 @@
49
50
  background: transparent;
50
51
  border-radius: 0;
51
52
  position: relative;
52
- } .select__optionsList_1o6yo {
53
+ } .select__optionsList_2agli {
53
54
  position: relative;
54
55
  padding-top: var(--select-options-list-top-padding);
55
56
  padding-bottom: var(--select-options-list-bottom-padding);
@@ -58,7 +59,7 @@
58
59
  background: var(--select-option-background);
59
60
  overflow: hidden;
60
61
  will-change: transform;
61
- } .select__optionsListBorder_1o6yo {
62
+ } .select__optionsListBorder_2agli {
62
63
  position: absolute;
63
64
  top: 0;
64
65
  right: 0;
@@ -67,7 +68,7 @@
67
68
  box-shadow: inset 0 0 0 1px var(--color-light-border-secondary);
68
69
  border-radius: inherit;
69
70
  pointer-events: none;
70
- } .select__nativeSelect_1o6yo {
71
+ } .select__nativeSelect_2agli {
71
72
  opacity: 0;
72
73
  overflow: hidden;
73
74
  position: absolute;
@@ -80,16 +81,16 @@
80
81
  height: 100%;
81
82
  cursor: pointer;
82
83
  z-index: 1;
83
- } .select__block_1o6yo {
84
+ } .select__block_2agli {
84
85
  width: 100%;
85
- } .select__emptySearchPlaceholder_1o6yo {
86
+ } .select__emptySearchPlaceholder_2agli {
86
87
  text-align: center;
87
- } .select__search_1o6yo {
88
+ } .select__search_2agli {
88
89
  margin: var(--gap-s) var(--gap-s) 0
89
- } .select__search_1o6yo:last-child {
90
+ } .select__search_2agli:last-child {
90
91
  margin-bottom: var(--gap-s);
91
92
  } /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
92
- .select__component_1o6yo {
93
+ .select__component_2agli {
93
94
  float: left;
94
95
  clear: left;
95
96
  }
@@ -25,7 +25,7 @@ import '../../consts.js';
25
25
  import '@alfalab/core-components-input/modern';
26
26
  import '@alfalab/icons-glyph/MagnifierMIcon';
27
27
 
28
- const styles = {"component":"select__component_1lczi","sheet":"select__sheet_1lczi","sheetContent":"select__sheetContent_1lczi","modalContent":"select__modalContent_1lczi","sheetContainer":"select__sheetContainer_1lczi","block":"select__block_1lczi","optionsListWrapper":"select__optionsListWrapper_1lczi","optionsList":"select__optionsList_1lczi","scrollbar":"select__scrollbar_1lczi","emptySearchPlaceholder":"select__emptySearchPlaceholder_1lczi","search":"select__search_1lczi","option":"select__option_1lczi","optionGroup":"select__optionGroup_1lczi"};
28
+ const styles = {"component":"select__component_lcsob","sheet":"select__sheet_lcsob","sheetContent":"select__sheetContent_lcsob","modalContent":"select__modalContent_lcsob","sheetContainer":"select__sheetContainer_lcsob","block":"select__block_lcsob","optionsListWrapper":"select__optionsListWrapper_lcsob","optionsList":"select__optionsList_lcsob","scrollbar":"select__scrollbar_lcsob","emptySearchPlaceholder":"select__emptySearchPlaceholder_lcsob","search":"select__search_lcsob","option":"select__option_lcsob","optionGroup":"select__optionGroup_lcsob"};
29
29
  require('./index.css')
30
30
 
31
31
  const BaseSelectMobile = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, optionGroupClassName, optionsListProps, options = [], autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, defaultOpen = false, open: openProp, optionsListWidth = 'content', name, id, selected = [], size = 'm', optionsSize = 'm', error, hint, block, label, labelView, placeholder, fieldProps = {}, optionProps = {}, searchProps = {}, showSearch = false, valueRenderer, onChange, onOpen, onFocus, onBlur, Arrow: Arrow$1 = Arrow, Field: Field$1 = Field, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, OptionsList: OptionsList$1 = OptionsList, Search: Search$1 = Search, swipeable, footer, isBottomSheet, bottomSheetProps, modalProps, modalHeaderProps, modalFooterProps, showEmptyOptionsList = false, }, ref) => {
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
4
4
  import { ButtonMobile } from '@alfalab/core-components-button/modern/mobile';
5
5
 
6
- const styles = {"footer":"select__footer_vs36e","button":"select__button_vs36e","highlighted":"select__highlighted_vs36e"};
6
+ const styles = {"footer":"select__footer_qeeub","button":"select__button_qeeub","highlighted":"select__highlighted_qeeub"};
7
7
  require('./index.css')
8
8
 
9
9
  const Footer = ({ handleApply, handleClear, showClear }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 155rz */
1
+ /* hash: 13i7v */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -26,17 +26,17 @@
26
26
  /* checkmark */
27
27
 
28
28
  /* optgroup */
29
- } .select__footer_vs36e {
29
+ } .select__footer_qeeub {
30
30
  display: flex;
31
31
  box-sizing: border-box;
32
32
  width: 100%;
33
33
  padding: var(--gap-m) var(--gap-m);
34
34
  background-color: var(--color-light-bg-primary)
35
- } .select__footer_vs36e .select__button_vs36e:first-of-type {
35
+ } .select__footer_qeeub .select__button_qeeub:first-of-type {
36
36
  margin-right: var(--gap-m);
37
- } .select__button_vs36e {
37
+ } .select__button_qeeub {
38
38
  width: 50%;
39
- } .select__highlighted_vs36e {
39
+ } .select__highlighted_qeeub {
40
40
  border-top: 1px solid var(--color-light-border-primary);
41
41
  background-color: var(--color-light-bg-primary);
42
42
  }
@@ -1,4 +1,4 @@
1
- /* hash: 10zpw */
1
+ /* hash: nu9mr */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -28,43 +28,44 @@
28
28
  /* checkmark */
29
29
 
30
30
  /* optgroup */
31
- } .select__component_1lczi {
31
+ } .select__component_lcsob {
32
32
  width: max-content;
33
33
  position: relative;
34
34
  outline: 0;
35
- } .select__sheet_1lczi {
35
+ max-width: 100%;
36
+ } .select__sheet_lcsob {
36
37
  overflow: hidden;
37
- } .select__sheetContent_1lczi {
38
+ } .select__sheetContent_lcsob {
38
39
  padding: 0
39
- } .select__sheetContent_1lczi .select__modalContent_1lczi {
40
+ } .select__sheetContent_lcsob .select__modalContent_lcsob {
40
41
  padding: 0;
41
42
  display: flex;
42
43
  flex-direction: column;
43
- } .select__sheetContainer_1lczi {
44
+ } .select__sheetContainer_lcsob {
44
45
  padding: 0;
45
- } .select__block_1lczi {
46
+ } .select__block_lcsob {
46
47
  width: 100%;
47
- } .select__optionsListWrapper_1lczi {
48
+ } .select__optionsListWrapper_lcsob {
48
49
  flex: 1;
49
- } .select__optionsList_1lczi {
50
+ } .select__optionsList_lcsob {
50
51
  height: 100%;
51
52
  display: flex;
52
53
  flex-direction: column;
53
- } .select__scrollbar_1lczi {
54
+ } .select__scrollbar_lcsob {
54
55
  flex: 1;
55
- } .select__emptySearchPlaceholder_1lczi {
56
+ } .select__emptySearchPlaceholder_lcsob {
56
57
  text-align: center;
57
- } .select__search_1lczi {
58
+ } .select__search_lcsob {
58
59
  padding: var(--gap-m) var(--gap-xs) var(--gap-s);
59
60
  } /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
60
- .select__component_1lczi {
61
+ .select__component_lcsob {
61
62
  float: left;
62
63
  clear: left;
63
64
  }
64
- } .select__option_1lczi {
65
+ } .select__option_lcsob {
65
66
  padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
66
- } .select__option_1lczi:before {
67
+ } .select__option_lcsob:before {
67
68
  display: none;
68
- } .select__optionGroup_1lczi {
69
+ } .select__optionGroup_lcsob {
69
70
  padding: var(--gap-m) var(--gap-m) var(--gap-xs);
70
71
  }
@@ -5,7 +5,7 @@ import { Checkbox } from '@alfalab/core-components-checkbox/modern';
5
5
  import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
6
6
  import CheckmarkMIcon from '@alfalab/icons-glyph/CheckmarkMIcon';
7
7
 
8
- const styles = {"checkmark":"select__checkmark_q1rdk","after":"select__after_q1rdk","single":"select__single_q1rdk","selected":"select__selected_q1rdk","before":"select__before_q1rdk","multiple":"select__multiple_q1rdk","colorIcon":"select__colorIcon_q1rdk"};
8
+ const styles = {"checkmark":"select__checkmark_lyvfo","after":"select__after_lyvfo","single":"select__single_lyvfo","selected":"select__selected_lyvfo","before":"select__before_lyvfo","multiple":"select__multiple_lyvfo","colorIcon":"select__colorIcon_lyvfo"};
9
9
  require('./index.css')
10
10
 
11
11
  const Checkmark = ({ selected, disabled = false, className, multiple, position = 'before', }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 13pvw */
1
+ /* hash: cts64 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-positive: #2fc26e;
@@ -39,12 +39,12 @@
39
39
  --select-checkmark-border-radius: var(--border-radius-circle);
40
40
 
41
41
  /* optgroup */
42
- } .select__checkmark_q1rdk {
42
+ } .select__checkmark_lyvfo {
43
43
  flex-shrink: 0;
44
44
  margin: var(--select-checkmark-margin)
45
- } .select__checkmark_q1rdk.select__after_q1rdk {
45
+ } .select__checkmark_lyvfo.select__after_lyvfo {
46
46
  margin: var(--select-checkmark-margin-after);
47
- } .select__single_q1rdk {
47
+ } .select__single_lyvfo {
48
48
  display: flex;
49
49
  align-items: center;
50
50
  justify-content: center;
@@ -54,17 +54,17 @@
54
54
  border-radius: var(--select-checkmark-border-radius);
55
55
  width: var(--select-checkmark-size);
56
56
  height: var(--select-checkmark-size)
57
- } .select__single_q1rdk.select__selected_q1rdk {
57
+ } .select__single_lyvfo.select__selected_lyvfo {
58
58
  opacity: 1;
59
- } .select__before_q1rdk {
59
+ } .select__before_lyvfo {
60
60
  display: var(--select-checkmark-before-display)
61
- } .select__before_q1rdk.select__multiple_q1rdk {
61
+ } .select__before_lyvfo.select__multiple_lyvfo {
62
62
  margin-right: var(--gap-s);
63
63
  display: var(--select-checkmark-before-display-multiple);
64
- } .select__after_q1rdk {
64
+ } .select__after_lyvfo {
65
65
  display: var(--select-checkmark-after-display)
66
- } .select__after_q1rdk.select__single_q1rdk {
66
+ } .select__after_lyvfo.select__single_lyvfo {
67
67
  display: var(--select-checkmark-after-display-single);
68
- } .select__colorIcon_q1rdk {
68
+ } .select__colorIcon_lyvfo {
69
69
  color: var(--color-light-graphic-positive);
70
70
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
4
4
 
5
- const styles = {"checkmark":"select__checkmark_jygox","selected":"select__selected_jygox","displayIcon":"select__displayIcon_jygox","displayBadge":"select__displayBadge_jygox"};
5
+ const styles = {"checkmark":"select__checkmark_1aveq","selected":"select__selected_1aveq","displayIcon":"select__displayIcon_1aveq","displayBadge":"select__displayBadge_1aveq"};
6
6
  require('./index.css')
7
7
 
8
8
  const Checkmark = ({ selected, className }) => (React.createElement("div", { className: cn(styles.checkmark, className, {
@@ -1,4 +1,4 @@
1
- /* hash: e58y8 */
1
+ /* hash: 17ghh */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -25,7 +25,7 @@
25
25
  --select-mobile-checkmark-display-badge: none;
26
26
 
27
27
  /* optgroup */
28
- } .select__checkmark_jygox {
28
+ } .select__checkmark_1aveq {
29
29
  flex-shrink: 0;
30
30
  display: flex;
31
31
  align-items: center;
@@ -33,12 +33,12 @@
33
33
  width: 24px;
34
34
  height: 24px;
35
35
  opacity: 0
36
- } .select__checkmark_jygox:first-child {
36
+ } .select__checkmark_1aveq:first-child {
37
37
  display: none;
38
- } .select__checkmark_jygox.select__selected_jygox {
38
+ } .select__checkmark_1aveq.select__selected_1aveq {
39
39
  opacity: 1;
40
- } .select__displayIcon_jygox {
40
+ } .select__displayIcon_1aveq {
41
41
  display: var(--select-mobile-checkmark-display-icon);
42
- } .select__displayBadge_jygox {
42
+ } .select__displayBadge_1aveq {
43
43
  display: var(--select-mobile-checkmark-display-badge);
44
44
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { useFocus } from '@alfalab/hooks';
4
4
  import { joinOptions } from '../../utils.js';
5
5
 
6
- const styles = {"component":"select__component_8ay2c","field":"select__field_8ay2c","disabled":"select__disabled_8ay2c","arrow":"select__arrow_8ay2c","placeholder":"select__placeholder_8ay2c","show-placeholder":"select__show-placeholder_8ay2c","focused":"select__focused_8ay2c","contentWrapper":"select__contentWrapper_8ay2c","value":"select__value_8ay2c","focusVisible":"select__focusVisible_8ay2c"};
6
+ const styles = {"component":"select__component_4824g","field":"select__field_4824g","disabled":"select__disabled_4824g","arrow":"select__arrow_4824g","placeholder":"select__placeholder_4824g","show-placeholder":"select__show-placeholder_4824g","focused":"select__focused_4824g","contentWrapper":"select__contentWrapper_4824g","value":"select__value_4824g","focusVisible":"select__focusVisible_4824g"};
7
7
  require('./index.css')
8
8
 
9
9
  const Field = ({ size = 'm', open, multiple, error, hint, disabled, label, labelView = 'inner', placeholder, selectedMultiple = [], selected, rightAddons, valueRenderer = joinOptions, setSelectedItems, toggleMenu, Arrow, innerProps, dataTestId, fieldClassName, FormControlComponent, ...restProps }) => {