@alfalab/core-components-select 19.1.7 → 19.1.8-alfasans

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 (159) hide show
  1. package/components/arrow/index.css +4 -4
  2. package/components/arrow/index.module.css.js +1 -1
  3. package/components/base-checkmark/Component.js +5 -12
  4. package/components/base-checkmark/Component.js.map +1 -1
  5. package/components/base-checkmark/index.css +13 -26
  6. package/components/base-checkmark/index.module.css.js +1 -1
  7. package/components/base-checkmark/index.module.css.js.map +1 -1
  8. package/components/base-option/Component.js +7 -1
  9. package/components/base-option/Component.js.map +1 -1
  10. package/components/base-option/index.css +19 -17
  11. package/components/base-option/index.module.css.js +1 -1
  12. package/components/base-select/index.css +11 -11
  13. package/components/base-select/index.module.css.js +1 -1
  14. package/components/base-select/mobile.css +11 -11
  15. package/components/base-select/mobile.module.css.js +1 -1
  16. package/components/checkmark/index.css +11 -11
  17. package/components/checkmark/index.module.css.js +1 -1
  18. package/components/checkmark-mobile/index.css +6 -6
  19. package/components/checkmark-mobile/index.module.css.js +1 -1
  20. package/components/clear-button/index.css +4 -4
  21. package/components/clear-button/index.module.css.js +1 -1
  22. package/components/field/index.css +22 -18
  23. package/components/field/index.module.css.js +1 -1
  24. package/components/footer/index.css +4 -4
  25. package/components/footer/index.module.css.js +1 -1
  26. package/components/optgroup/index.css +8 -7
  27. package/components/optgroup/index.module.css.js +1 -1
  28. package/components/option/desktop/index.css +24 -22
  29. package/components/option/desktop/index.module.css.js +1 -1
  30. package/components/option/mobile/index.css +21 -19
  31. package/components/option/mobile/index.module.css.js +1 -1
  32. package/components/options-list/index.css +13 -13
  33. package/components/options-list/index.module.css.js +1 -1
  34. package/components/search/index.css +1 -1
  35. package/components/search/index.module.css.js +1 -1
  36. package/components/virtual-options-list/index.css +13 -13
  37. package/components/virtual-options-list/index.module.css.js +1 -1
  38. package/cssm/components/base-checkmark/Component.js +5 -12
  39. package/cssm/components/base-checkmark/Component.js.map +1 -1
  40. package/cssm/components/base-checkmark/index.module.css +6 -19
  41. package/cssm/components/base-option/Component.js +7 -1
  42. package/cssm/components/base-option/Component.js.map +1 -1
  43. package/cssm/components/base-option/index.module.css +5 -3
  44. package/cssm/components/field/index.module.css +9 -5
  45. package/cssm/components/optgroup/index.module.css +4 -3
  46. package/cssm/components/option/desktop/index.module.css +5 -3
  47. package/cssm/components/option/mobile/index.module.css +5 -3
  48. package/esm/components/arrow/index.css +4 -4
  49. package/esm/components/arrow/index.module.css.js +1 -1
  50. package/esm/components/base-checkmark/Component.js +5 -12
  51. package/esm/components/base-checkmark/Component.js.map +1 -1
  52. package/esm/components/base-checkmark/index.css +13 -26
  53. package/esm/components/base-checkmark/index.module.css.js +1 -1
  54. package/esm/components/base-checkmark/index.module.css.js.map +1 -1
  55. package/esm/components/base-option/Component.js +7 -1
  56. package/esm/components/base-option/Component.js.map +1 -1
  57. package/esm/components/base-option/index.css +19 -17
  58. package/esm/components/base-option/index.module.css.js +1 -1
  59. package/esm/components/base-select/index.css +11 -11
  60. package/esm/components/base-select/index.module.css.js +1 -1
  61. package/esm/components/base-select/mobile.css +11 -11
  62. package/esm/components/base-select/mobile.module.css.js +1 -1
  63. package/esm/components/checkmark/index.css +11 -11
  64. package/esm/components/checkmark/index.module.css.js +1 -1
  65. package/esm/components/checkmark-mobile/index.css +6 -6
  66. package/esm/components/checkmark-mobile/index.module.css.js +1 -1
  67. package/esm/components/clear-button/index.css +4 -4
  68. package/esm/components/clear-button/index.module.css.js +1 -1
  69. package/esm/components/field/index.css +22 -18
  70. package/esm/components/field/index.module.css.js +1 -1
  71. package/esm/components/footer/index.css +4 -4
  72. package/esm/components/footer/index.module.css.js +1 -1
  73. package/esm/components/optgroup/index.css +8 -7
  74. package/esm/components/optgroup/index.module.css.js +1 -1
  75. package/esm/components/option/desktop/index.css +24 -22
  76. package/esm/components/option/desktop/index.module.css.js +1 -1
  77. package/esm/components/option/mobile/index.css +21 -19
  78. package/esm/components/option/mobile/index.module.css.js +1 -1
  79. package/esm/components/options-list/index.css +13 -13
  80. package/esm/components/options-list/index.module.css.js +1 -1
  81. package/esm/components/search/index.css +1 -1
  82. package/esm/components/search/index.module.css.js +1 -1
  83. package/esm/components/virtual-options-list/index.css +13 -13
  84. package/esm/components/virtual-options-list/index.module.css.js +1 -1
  85. package/esm/mobile/modal.mobile.css +1 -1
  86. package/esm/mobile/modal.mobile.module.css.js +1 -1
  87. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  88. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
  89. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
  90. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
  91. package/esm/presets/useSelectWithLoading/index.css +1 -1
  92. package/esm/presets/useSelectWithLoading/index.module.css.js +1 -1
  93. package/mobile/modal.mobile.css +1 -1
  94. package/mobile/modal.mobile.module.css.js +1 -1
  95. package/modern/components/arrow/index.css +4 -4
  96. package/modern/components/arrow/index.module.css.js +1 -1
  97. package/modern/components/base-checkmark/Component.js +5 -11
  98. package/modern/components/base-checkmark/Component.js.map +1 -1
  99. package/modern/components/base-checkmark/index.css +13 -26
  100. package/modern/components/base-checkmark/index.module.css.js +1 -1
  101. package/modern/components/base-checkmark/index.module.css.js.map +1 -1
  102. package/modern/components/base-option/Component.js +5 -1
  103. package/modern/components/base-option/Component.js.map +1 -1
  104. package/modern/components/base-option/index.css +19 -17
  105. package/modern/components/base-option/index.module.css.js +1 -1
  106. package/modern/components/base-select/index.css +11 -11
  107. package/modern/components/base-select/index.module.css.js +1 -1
  108. package/modern/components/base-select/mobile.css +11 -11
  109. package/modern/components/base-select/mobile.module.css.js +1 -1
  110. package/modern/components/checkmark/index.css +11 -11
  111. package/modern/components/checkmark/index.module.css.js +1 -1
  112. package/modern/components/checkmark-mobile/index.css +6 -6
  113. package/modern/components/checkmark-mobile/index.module.css.js +1 -1
  114. package/modern/components/clear-button/index.css +4 -4
  115. package/modern/components/clear-button/index.module.css.js +1 -1
  116. package/modern/components/field/index.css +22 -18
  117. package/modern/components/field/index.module.css.js +1 -1
  118. package/modern/components/footer/index.css +4 -4
  119. package/modern/components/footer/index.module.css.js +1 -1
  120. package/modern/components/optgroup/index.css +8 -7
  121. package/modern/components/optgroup/index.module.css.js +1 -1
  122. package/modern/components/option/desktop/index.css +24 -22
  123. package/modern/components/option/desktop/index.module.css.js +1 -1
  124. package/modern/components/option/mobile/index.css +21 -19
  125. package/modern/components/option/mobile/index.module.css.js +1 -1
  126. package/modern/components/options-list/index.css +13 -13
  127. package/modern/components/options-list/index.module.css.js +1 -1
  128. package/modern/components/search/index.css +1 -1
  129. package/modern/components/search/index.module.css.js +1 -1
  130. package/modern/components/virtual-options-list/index.css +13 -13
  131. package/modern/components/virtual-options-list/index.module.css.js +1 -1
  132. package/modern/mobile/modal.mobile.css +1 -1
  133. package/modern/mobile/modal.mobile.module.css.js +1 -1
  134. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  135. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
  136. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
  137. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
  138. package/modern/presets/useSelectWithLoading/index.css +1 -1
  139. package/modern/presets/useSelectWithLoading/index.module.css.js +1 -1
  140. package/moderncssm/components/base-checkmark/Component.js +5 -11
  141. package/moderncssm/components/base-checkmark/Component.js.map +1 -1
  142. package/moderncssm/components/base-checkmark/index.module.css +8 -24
  143. package/moderncssm/components/base-option/Component.js +5 -1
  144. package/moderncssm/components/base-option/Component.js.map +1 -1
  145. package/moderncssm/components/base-option/index.module.css +2 -1
  146. package/moderncssm/components/field/index.module.css +6 -3
  147. package/moderncssm/components/optgroup/index.module.css +1 -1
  148. package/moderncssm/components/option/desktop/index.module.css +2 -1
  149. package/moderncssm/components/option/mobile/index.module.css +2 -1
  150. package/package.json +15 -15
  151. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  152. package/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
  153. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
  154. package/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
  155. package/presets/useSelectWithLoading/index.css +1 -1
  156. package/presets/useSelectWithLoading/index.module.css.js +1 -1
  157. package/src/components/base-checkmark/Component.tsx +8 -24
  158. package/src/components/base-checkmark/index.module.css +6 -21
  159. package/src/components/base-option/Component.tsx +16 -12
@@ -15,57 +15,57 @@
15
15
  --select-options-list-scrollbar-gap: var(--gap-12);
16
16
  --select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
17
17
  }
18
- .select__optionsList_16w4h {
18
+ .select__optionsList_dz7dv {
19
19
  width: 100%;
20
20
  outline: none;
21
21
  box-sizing: border-box;
22
22
  position: relative;
23
23
  }
24
- .select__optionsList_16w4h .select__scrollable_16w4h {
24
+ .select__optionsList_dz7dv .select__scrollable_dz7dv {
25
25
  overflow: auto;
26
26
  width: 100%;
27
27
  }
28
- .select__optionsList_16w4h .select__scrollable_16w4h .select__verticalBar_16w4h.select__verticalBar_16w4h {
28
+ .select__optionsList_dz7dv .select__scrollable_dz7dv .select__verticalBar_dz7dv.select__verticalBar_dz7dv {
29
29
  top: var(--select-options-list-scrollbar-gap);
30
30
  height: calc(100% - 2 * var(--select-options-list-scrollbar-gap));
31
31
  }
32
- .select__optionsList_16w4h .select__scrollable_16w4h .select__verticalBar_16w4h.select__verticalBar_16w4h.select__verticalBarWithHeader_16w4h {
32
+ .select__optionsList_dz7dv .select__scrollable_dz7dv .select__verticalBar_dz7dv.select__verticalBar_dz7dv.select__verticalBarWithHeader_dz7dv {
33
33
  top: 0;
34
34
  height: calc(100% - var(--select-options-list-scrollbar-gap));
35
35
  }
36
- .select__optionsList_16w4h .select__scrollable_16w4h .select__verticalBar_16w4h.select__verticalBar_16w4h.select__verticalBarWithFooter_16w4h {
36
+ .select__optionsList_dz7dv .select__scrollable_dz7dv .select__verticalBar_dz7dv.select__verticalBar_dz7dv.select__verticalBarWithFooter_dz7dv {
37
37
  top: var(--select-options-list-scrollbar-gap);
38
38
  height: calc(100% - var(--select-options-list-scrollbar-gap));
39
39
  }
40
- .select__optionsList_16w4h .select__scrollable_16w4h .select__verticalBar_16w4h.select__verticalBar_16w4h.select__verticalBarWithHeader_16w4h.select__verticalBarWithFooter_16w4h {
40
+ .select__optionsList_dz7dv .select__scrollable_dz7dv .select__verticalBar_dz7dv.select__verticalBar_dz7dv.select__verticalBarWithHeader_dz7dv.select__verticalBarWithFooter_dz7dv {
41
41
  top: 0;
42
42
  height: 100%;
43
43
  }
44
- .select__optionsListHeader_16w4h {
44
+ .select__optionsListHeader_dz7dv {
45
45
  box-sizing: border-box;
46
46
  border-bottom: 1px solid transparent;
47
47
  transition: border-color 0.2s ease;
48
48
  }
49
- .select__optionsListHeader_16w4h.select__headerHighlighted_16w4h {
49
+ .select__optionsListHeader_dz7dv.select__headerHighlighted_dz7dv {
50
50
  border-bottom-color: var(--color-light-neutral-300);
51
51
  }
52
- .select__optionsListFooter_16w4h {
52
+ .select__optionsListFooter_dz7dv {
53
53
  position: sticky;
54
54
  bottom: var(--gap-0);
55
55
  box-sizing: border-box;
56
56
  border-top: 1px solid transparent;
57
57
  transition: border-color 0.2s ease;
58
58
  }
59
- .select__optionsListFooter_16w4h.select__withBorder_16w4h {
59
+ .select__optionsListFooter_dz7dv.select__withBorder_dz7dv {
60
60
  border-top-color: var(--color-light-neutral-300);
61
61
  }
62
- .select__mask_16w4h {
62
+ .select__mask_dz7dv {
63
63
  min-width: 4000px;
64
64
  }
65
- .select__emptyPlaceholder_16w4h {
65
+ .select__emptyPlaceholder_dz7dv {
66
66
  padding: var(--gap-16) var(--gap-12);
67
67
  color: var(--select-options-list-empty-placeholder-color);
68
68
  }
69
- .select__size-72_16w4h .select__emptyPlaceholder_16w4h {
69
+ .select__size-72_dz7dv .select__emptyPlaceholder_dz7dv {
70
70
  padding: var(--gap-24) var(--gap-16);
71
71
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"optionsList":"select__optionsList_16w4h","scrollable":"select__scrollable_16w4h","verticalBar":"select__verticalBar_16w4h","verticalBarWithHeader":"select__verticalBarWithHeader_16w4h","verticalBarWithFooter":"select__verticalBarWithFooter_16w4h","optionsListHeader":"select__optionsListHeader_16w4h","headerHighlighted":"select__headerHighlighted_16w4h","optionsListFooter":"select__optionsListFooter_16w4h","withBorder":"select__withBorder_16w4h","mask":"select__mask_16w4h","emptyPlaceholder":"select__emptyPlaceholder_16w4h","size-72":"select__size-72_16w4h"};
3
+ var styles = {"optionsList":"select__optionsList_dz7dv","scrollable":"select__scrollable_dz7dv","verticalBar":"select__verticalBar_dz7dv","verticalBarWithHeader":"select__verticalBarWithHeader_dz7dv","verticalBarWithFooter":"select__verticalBarWithFooter_dz7dv","optionsListHeader":"select__optionsListHeader_dz7dv","headerHighlighted":"select__headerHighlighted_dz7dv","optionsListFooter":"select__optionsListFooter_dz7dv","withBorder":"select__withBorder_dz7dv","mask":"select__mask_dz7dv","emptyPlaceholder":"select__emptyPlaceholder_dz7dv","size-72":"select__size-72_dz7dv"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,3 +1,3 @@
1
- .select__component_1dzaz.select__component_1dzaz {
1
+ .select__component_1un2y.select__component_1un2y {
2
2
  width: auto;
3
3
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"select__component_1dzaz"};
3
+ var styles = {"component":"select__component_1un2y"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -20,42 +20,42 @@
20
20
  --select-option-left-padding: var(--gap-12);
21
21
  --select-option-right-padding: var(--gap-12);
22
22
  }
23
- .select__virtualOptionsList_7pw7q {
23
+ .select__virtualOptionsList_b587l {
24
24
  width: 100%;
25
25
  outline: none;
26
26
  box-sizing: border-box;
27
27
  position: sticky;
28
28
  justify-content: space-between;
29
29
  }
30
- .select__virtualOptionsListHeader_7pw7q {
30
+ .select__virtualOptionsListHeader_b587l {
31
31
  box-sizing: border-box;
32
32
  border-bottom: 1px solid var(--color-light-neutral-300);
33
33
  }
34
- .select__virtualOptionsListFooter_7pw7q {
34
+ .select__virtualOptionsListFooter_b587l {
35
35
  position: sticky;
36
36
  bottom: var(--gap-0);
37
37
  box-sizing: border-box;
38
38
  border-top: 1px solid transparent;
39
39
  }
40
- .select__virtualOptionsListFooter_7pw7q.select__withBorder_7pw7q {
40
+ .select__virtualOptionsListFooter_b587l.select__withBorder_b587l {
41
41
  border-top: 1px solid var(--color-light-neutral-300);
42
42
  }
43
- .select__scrollable_7pw7q {
43
+ .select__scrollable_b587l {
44
44
  position: relative;
45
45
  overflow: auto;
46
46
  width: 100%;
47
47
  }
48
- .select__inner_7pw7q {
48
+ .select__inner_b587l {
49
49
  position: relative;
50
50
  width: 100%;
51
51
  }
52
- .select__virtualRow_7pw7q {
52
+ .select__virtualRow_b587l {
53
53
  position: absolute;
54
54
  top: var(--gap-0);
55
55
  left: var(--gap-0);
56
56
  width: 100%;
57
57
  }
58
- .select__virtualRow_7pw7q:before {
58
+ .select__virtualRow_b587l:before {
59
59
  content: '';
60
60
  position: absolute;
61
61
  z-index: 1;
@@ -66,18 +66,18 @@
66
66
  background: var(--select-option-divider-background);
67
67
  display: var(--select-option-divider-display);
68
68
  }
69
- .select__virtualRow_7pw7q:first-child:before {
69
+ .select__virtualRow_b587l:first-child:before {
70
70
  display: none;
71
71
  }
72
- .select__highlighted_7pw7q:before,
73
- .select__highlighted_7pw7q + .select__virtualRow_7pw7q:before {
72
+ .select__highlighted_b587l:before,
73
+ .select__highlighted_b587l + .select__virtualRow_b587l:before {
74
74
  display: none;
75
75
  }
76
- .select__emptyPlaceholder_7pw7q {
76
+ .select__emptyPlaceholder_b587l {
77
77
  padding: var(--gap-16) var(--gap-12);
78
78
  color: var(--select-options-list-empty-placeholder-color);
79
79
  flex: 1;
80
80
  }
81
- .select__size-72_7pw7q .select__emptyPlaceholder_7pw7q {
81
+ .select__size-72_b587l .select__emptyPlaceholder_b587l {
82
82
  padding: var(--gap-24) var(--gap-16);
83
83
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"virtualOptionsList":"select__virtualOptionsList_7pw7q","virtualOptionsListHeader":"select__virtualOptionsListHeader_7pw7q","virtualOptionsListFooter":"select__virtualOptionsListFooter_7pw7q","withBorder":"select__withBorder_7pw7q","scrollable":"select__scrollable_7pw7q","inner":"select__inner_7pw7q","virtualRow":"select__virtualRow_7pw7q","highlighted":"select__highlighted_7pw7q","emptyPlaceholder":"select__emptyPlaceholder_7pw7q","size-72":"select__size-72_7pw7q"};
3
+ var styles = {"virtualOptionsList":"select__virtualOptionsList_b587l","virtualOptionsListHeader":"select__virtualOptionsListHeader_b587l","virtualOptionsListFooter":"select__virtualOptionsListFooter_b587l","withBorder":"select__withBorder_b587l","scrollable":"select__scrollable_b587l","inner":"select__inner_b587l","virtualRow":"select__virtualRow_b587l","highlighted":"select__highlighted_b587l","emptyPlaceholder":"select__emptyPlaceholder_b587l","size-72":"select__size-72_b587l"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -2,7 +2,7 @@
2
2
  --gap-xs: 8px;
3
3
  --gap-8: var(--gap-xs);
4
4
  }
5
- .select__header_a3kcp {
5
+ .select__header_hv322 {
6
6
  padding-right: var(--gap-8);
7
7
  padding-left: var(--gap-8);
8
8
  }
@@ -1,6 +1,6 @@
1
1
  import './modal.mobile.css';
2
2
 
3
- var styles = {"header":"select__header_a3kcp"};
3
+ var styles = {"header":"select__header_hv322"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=modal.mobile.module.css.js.map
@@ -12,14 +12,14 @@
12
12
  :root {
13
13
  --select-option-list-footer-button-gap: var(--gap-8);
14
14
  }
15
- .select__footer_1sfv8 {
15
+ .select__footer_1btsd {
16
16
  background-color: var(--color-light-base-bg-primary);
17
17
  padding: var(--gap-12);
18
18
  outline: none;
19
19
  }
20
- .select__footer_1sfv8.select__size-72_1sfv8 {
20
+ .select__footer_1btsd.select__size-72_1btsd {
21
21
  padding: var(--gap-12) var(--gap-16);
22
22
  }
23
- .select__footer_1sfv8 > .select__button_1sfv8 + .select__button_1sfv8 {
23
+ .select__footer_1btsd > .select__button_1btsd + .select__button_1btsd {
24
24
  margin-left: var(--select-option-list-footer-button-gap);
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"footer":"select__footer_1sfv8","size-72":"select__size-72_1sfv8","button":"select__button_1sfv8"};
3
+ var styles = {"footer":"select__footer_1btsd","size-72":"select__size-72_1btsd","button":"select__button_1btsd"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -6,16 +6,16 @@
6
6
  --gap-12: var(--gap-s);
7
7
  --gap-16: var(--gap-m);
8
8
  }
9
- .select__desktop_xi3y4 {
9
+ .select__desktop_11llj {
10
10
  padding: var(--gap-12);
11
11
  }
12
- .select__desktop_xi3y4.select__size-72_xi3y4 {
12
+ .select__desktop_11llj.select__size-72_11llj {
13
13
  padding-left: var(--gap-16);
14
14
  }
15
- .select__mobile_xi3y4 {
15
+ .select__mobile_11llj {
16
16
  padding: var(--gap-12) var(--gap-12) var(--gap-12) var(--gap-8);
17
17
  }
18
- .select__positionAfter_xi3y4 {
18
+ .select__positionAfter_11llj {
19
19
  margin-left: 0;
20
20
  margin-left: initial;
21
21
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"desktop":"select__desktop_xi3y4","size-72":"select__size-72_xi3y4","mobile":"select__mobile_xi3y4","positionAfter":"select__positionAfter_xi3y4"};
3
+ var styles = {"desktop":"select__desktop_11llj","size-72":"select__size-72_11llj","mobile":"select__mobile_11llj","positionAfter":"select__positionAfter_11llj"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,4 +1,4 @@
1
- .select__skeleton_sbv5r {
1
+ .select__skeleton_1igtv {
2
2
  position: absolute;
3
3
  top: 50%;
4
4
  transform: translateY(-50%);
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"skeleton":"select__skeleton_sbv5r"};
3
+ var styles = {"skeleton":"select__skeleton_1igtv"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -2,7 +2,7 @@
2
2
  --gap-xs: 8px;
3
3
  --gap-8: var(--gap-xs);
4
4
  }
5
- .select__header_a3kcp {
5
+ .select__header_hv322 {
6
6
  padding-right: var(--gap-8);
7
7
  padding-left: var(--gap-8);
8
8
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./modal.mobile.css');
4
4
 
5
- var styles = {"header":"select__header_a3kcp"};
5
+ var styles = {"header":"select__header_hv322"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=modal.mobile.module.css.js.map
@@ -9,7 +9,7 @@
9
9
  --select-arrow-color: var(--color-light-neutral-translucent-700);
10
10
  --select-arrow-disabled-color: var(--color-light-neutral-translucent-500);
11
11
  }
12
- .select__arrow_5gn75 {
12
+ .select__arrow_li5k5 {
13
13
  display: block;
14
14
  width: 24px;
15
15
  height: 24px;
@@ -19,15 +19,15 @@
19
19
  transform 0.15s ease-in-out,
20
20
  opacity 0.2s ease;
21
21
  }
22
- .select__arrow_5gn75.select__disabled_5gn75 {
22
+ .select__arrow_li5k5.select__disabled_li5k5 {
23
23
  color: var(--select-arrow-disabled-color);
24
24
  }
25
- .select__arrow_5gn75.select__size-40_5gn75 {
25
+ .select__arrow_li5k5.select__size-40_li5k5 {
26
26
  width: auto;
27
27
  width: initial;
28
28
  height: auto;
29
29
  height: initial;
30
30
  }
31
- .select__open_5gn75 {
31
+ .select__open_li5k5 {
32
32
  transform: var(--arrow-transform);
33
33
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"arrow":"select__arrow_5gn75","disabled":"select__disabled_5gn75","size-40":"select__size-40_5gn75","open":"select__open_5gn75"};
3
+ const styles = {"arrow":"select__arrow_li5k5","disabled":"select__disabled_li5k5","size-40":"select__size-40_li5k5","open":"select__open_li5k5"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -4,17 +4,11 @@ import { Checkbox } from '@alfalab/core-components-checkbox/modern';
4
4
  import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
5
5
  import styles from './index.module.css.js';
6
6
 
7
- const BaseCheckmark = ({ selected, disabled = false, className, multiple, align = 'center', position = 'before', content, }) => {
8
- const renderCheckmarkIcon = () => (React.createElement(CheckmarkMIcon, { className: cn(styles.singleIcon, styles[position], {
9
- [styles.selected]: selected,
10
- }) }));
11
- return multiple ? (React.createElement(Checkbox, { block: true, checked: selected, disabled: disabled, contentClassName: cn({ [styles.positionAfter]: position === 'after' }), className: cn(styles.checkmark, styles[align], className, {
12
- [styles.selected]: selected,
13
- }), size: 24, position: position, label: content, hiddenInput: true })) : (React.createElement("div", { className: cn(styles.container, styles[align], className) },
14
- position === 'before' && renderCheckmarkIcon(),
15
- React.createElement("div", { className: styles.content }, content),
16
- position === 'after' && renderCheckmarkIcon()));
17
- };
7
+ const BaseCheckmark = ({ selected, disabled = false, className, multiple, align = 'center', position = 'before', }) => multiple ? (React.createElement(Checkbox, { checked: selected, disabled: disabled, className: cn(styles.checkmark, styles[position], styles[align], className, {
8
+ [styles.selected]: selected,
9
+ }), size: 24, hiddenInput: true })) : (React.createElement(CheckmarkMIcon, { className: cn(styles.singleIcon, styles[position], styles[align], className, {
10
+ [styles.selected]: selected,
11
+ }) }));
18
12
 
19
13
  export { BaseCheckmark };
20
14
  //# sourceMappingURL=Component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Component.js","sources":["../../../src/components/base-checkmark/Component.tsx"],"sourcesContent":["import React, { type FC } from 'react';\nimport cn from 'classnames';\n\nimport { Checkbox } from '@alfalab/core-components-checkbox';\nimport { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';\n\nimport { type CheckmarkProps } from '../../typings';\n\nimport styles from './index.module.css';\n\nexport const BaseCheckmark: FC<CheckmarkProps> = ({\n selected,\n disabled = false,\n className,\n multiple,\n align = 'center',\n position = 'before',\n content,\n}) => {\n const renderCheckmarkIcon = () => (\n <CheckmarkMIcon\n className={cn(styles.singleIcon, styles[position], {\n [styles.selected]: selected,\n })}\n />\n );\n\n return multiple ? (\n <Checkbox\n block={true}\n checked={selected}\n disabled={disabled}\n contentClassName={cn({ [styles.positionAfter]: position === 'after' })}\n className={cn(styles.checkmark, styles[align], className, {\n [styles.selected]: selected,\n })}\n size={24}\n position={position}\n label={content}\n hiddenInput={true}\n />\n ) : (\n <div className={cn(styles.container, styles[align], className)}>\n {position === 'before' && renderCheckmarkIcon()}\n\n <div className={styles.content}>{content}</div>\n\n {position === 'after' && renderCheckmarkIcon()}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAUa,MAAA,aAAa,GAAuB,CAAC,EAC9C,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,QAAQ,EACR,KAAK,GAAG,QAAQ,EAChB,QAAQ,GAAG,QAAQ,EACnB,OAAO,GACV,KAAI;IACD,MAAM,mBAAmB,GAAG,OACxB,KAAA,CAAA,aAAA,CAAC,cAAc,EACX,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE;AAC/C,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;SAC9B,CAAC,EAAA,CACJ,CACL;IAED,OAAO,QAAQ,IACX,KAAC,CAAA,aAAA,CAAA,QAAQ,EACL,EAAA,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,aAAa,GAAG,QAAQ,KAAK,OAAO,EAAE,CAAC,EACtE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE;AACtD,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;AAC9B,SAAA,CAAC,EACF,IAAI,EAAE,EAAE,EACR,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,OAAO,EACd,WAAW,EAAE,IAAI,EACnB,CAAA,KAEF,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,EAAA;AACzD,QAAA,QAAQ,KAAK,QAAQ,IAAI,mBAAmB,EAAE;AAE/C,QAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,OAAO,EAAA,EAAG,OAAO,CAAO;AAE9C,QAAA,QAAQ,KAAK,OAAO,IAAI,mBAAmB,EAAE,CAC5C,CACT;AACL;;;;"}
1
+ {"version":3,"file":"Component.js","sources":["../../../src/components/base-checkmark/Component.tsx"],"sourcesContent":["import React, { type FC } from 'react';\nimport cn from 'classnames';\n\nimport { Checkbox } from '@alfalab/core-components-checkbox';\nimport { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';\n\nimport { type CheckmarkProps } from '../../typings';\n\nimport styles from './index.module.css';\n\nexport const BaseCheckmark: FC<CheckmarkProps> = ({\n selected,\n disabled = false,\n className,\n multiple,\n align = 'center',\n position = 'before',\n}) =>\n multiple ? (\n <Checkbox\n checked={selected}\n disabled={disabled}\n className={cn(styles.checkmark, styles[position], styles[align], className, {\n [styles.selected]: selected,\n })}\n size={24}\n hiddenInput={true}\n />\n ) : (\n <CheckmarkMIcon\n className={cn(styles.singleIcon, styles[position], styles[align], className, {\n [styles.selected]: selected,\n })}\n />\n );\n"],"names":[],"mappings":";;;;;;AAUO,MAAM,aAAa,GAAuB,CAAC,EAC9C,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,QAAQ,EACR,KAAK,GAAG,QAAQ,EAChB,QAAQ,GAAG,QAAQ,GACtB,KACG,QAAQ,IACJ,KAAA,CAAA,aAAA,CAAC,QAAQ,EAAA,EACL,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE;AACxE,QAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;AAC9B,KAAA,CAAC,EACF,IAAI,EAAE,EAAE,EACR,WAAW,EAAE,IAAI,EACnB,CAAA,KAEF,KAAA,CAAA,aAAA,CAAC,cAAc,EACX,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE;AACzE,QAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;KAC9B,CAAC,EAAA,CACJ;;;;"}
@@ -2,45 +2,32 @@
2
2
  --gap-s: 12px;
3
3
  --gap-12: var(--gap-s);
4
4
  }
5
- .select__checkmark_amrft {
5
+ .select__checkmark_j0fuj {
6
6
  flex-shrink: 0;
7
7
  box-sizing: border-box;
8
8
  }
9
- .select__checkmark_amrft.select__start_amrft {
10
- align-self: start;
9
+ .select__checkmark_j0fuj.select__before_j0fuj {
10
+ margin-right: var(--gap-12);
11
11
  }
12
- .select__checkmark_amrft.select__center_amrft {
13
- align-self: center;
12
+ .select__checkmark_j0fuj.select__after_j0fuj {
13
+ margin-left: var(--gap-12);
14
14
  }
15
- .select__positionAfter_amrft {
16
- margin-left: 0;
17
- margin-left: initial;
18
- }
19
- .select__container_amrft {
20
- display: flex;
21
- align-items: center;
22
- justify-content: center;
23
- width: 100%;
24
- }
25
- .select__container_amrft.select__start_amrft {
26
- align-items: flex-start;
15
+ .select__checkmark_j0fuj.select__start_j0fuj {
16
+ align-self: start;
27
17
  }
28
- .select__container_amrft.select__center_amrft {
29
- align-items: center;
18
+ .select__checkmark_j0fuj.select__center_j0fuj {
19
+ align-self: center;
30
20
  }
31
- .select__singleIcon_amrft {
21
+ .select__singleIcon_j0fuj {
32
22
  flex-shrink: 0;
33
23
  opacity: 0;
34
24
  }
35
- .select__singleIcon_amrft.select__before_amrft {
25
+ .select__singleIcon_j0fuj.select__before_j0fuj {
36
26
  margin-right: var(--gap-12);
37
27
  }
38
- .select__singleIcon_amrft.select__after_amrft {
28
+ .select__singleIcon_j0fuj.select__after_j0fuj {
39
29
  margin-left: var(--gap-12);
40
30
  }
41
- .select__singleIcon_amrft.select__selected_amrft {
31
+ .select__singleIcon_j0fuj.select__selected_j0fuj {
42
32
  opacity: 1;
43
33
  }
44
- .select__content_amrft {
45
- flex: 1;
46
- }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"checkmark":"select__checkmark_amrft","start":"select__start_amrft","center":"select__center_amrft","positionAfter":"select__positionAfter_amrft","container":"select__container_amrft","singleIcon":"select__singleIcon_amrft","before":"select__before_amrft","after":"select__after_amrft","selected":"select__selected_amrft","content":"select__content_amrft"};
3
+ const styles = {"checkmark":"select__checkmark_j0fuj","before":"select__before_j0fuj","after":"select__after_j0fuj","start":"select__start_j0fuj","center":"select__center_j0fuj","singleIcon":"select__singleIcon_j0fuj","selected":"select__selected_j0fuj"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/base-checkmark/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../vars.css';\n\n.checkmark {\n flex-shrink: 0;\n box-sizing: border-box;\n\n &.start {\n align-self: start;\n }\n\n &.center {\n align-self: center;\n }\n}\n\n.positionAfter {\n margin-left: unset;\n}\n\n.container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n\n &.start {\n align-items: flex-start;\n }\n\n &.center {\n align-items: center;\n }\n}\n\n.singleIcon {\n flex-shrink: 0;\n opacity: 0;\n\n &.before {\n margin-right: var(--gap-12);\n }\n\n &.after {\n margin-left: var(--gap-12);\n }\n\n &.selected {\n opacity: 1;\n }\n}\n\n.content {\n flex: 1;\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,yBAAyB,CAAC,OAAO,CAAC,qBAAqB,CAAC,QAAQ,CAAC,sBAAsB,CAAC,eAAe,CAAC,6BAA6B,CAAC,WAAW,CAAC,yBAAyB,CAAC,YAAY,CAAC,0BAA0B,CAAC,QAAQ,CAAC,sBAAsB,CAAC,OAAO,CAAC,qBAAqB,CAAC,UAAU,CAAC,wBAAwB,CAAC,SAAS,CAAC,uBAAuB,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/base-checkmark/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../vars.css';\n\n.checkmark {\n flex-shrink: 0;\n box-sizing: border-box;\n\n &.before {\n margin-right: var(--gap-12);\n }\n\n &.after {\n margin-left: var(--gap-12);\n }\n\n &.start {\n align-self: start;\n }\n\n &.center {\n align-self: center;\n }\n}\n\n.singleIcon {\n flex-shrink: 0;\n opacity: 0;\n\n &.before {\n margin-right: var(--gap-12);\n }\n\n &.after {\n margin-left: var(--gap-12);\n }\n\n &.selected {\n opacity: 1;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,yBAAyB,CAAC,QAAQ,CAAC,sBAAsB,CAAC,OAAO,CAAC,qBAAqB,CAAC,OAAO,CAAC,qBAAqB,CAAC,QAAQ,CAAC,sBAAsB,CAAC,YAAY,CAAC,0BAA0B,CAAC,UAAU,CAAC,wBAAwB,CAAC;;;;"}
@@ -8,6 +8,7 @@ const BaseOption = ({ className, option, children, selected, highlighted, disabl
8
8
  const { showCheckMark = true } = option;
9
9
  const isTextContent = !isValidElement(content);
10
10
  const showCheckmark = Checkmark && showCheckMark;
11
+ const renderCheckmark = (position) => showCheckmark && (React.createElement(Checkmark, { disabled: disabled, selected: selected, multiple: multiple, align: align, position: position }));
11
12
  return (React.createElement("div", { ...innerProps, className: cn(styles.option, size && styles[`size-${size}`], className, {
12
13
  [styles.highlighted]: !mobile && highlighted,
13
14
  [styles.selected]: selected,
@@ -16,7 +17,10 @@ const BaseOption = ({ className, option, children, selected, highlighted, disabl
16
17
  [styles.mobile]: mobile,
17
18
  [styles.checkmarkAfter]: showCheckmark && !isTextContent && checkmarkPosition === 'after',
18
19
  [styles.checkmarkBefore]: showCheckmark && !isTextContent && checkmarkPosition === 'before',
19
- }), "data-test-id": dataTestId, "aria-label": option?.value?.name }, showCheckmark ? (React.createElement(Checkmark, { disabled: disabled, selected: selected, multiple: multiple, align: align, position: checkmarkPosition, content: content })) : (React.createElement("div", { className: cn(styles.content) }, content))));
20
+ }), "data-test-id": dataTestId, "aria-label": option?.value?.name },
21
+ checkmarkPosition === 'before' && renderCheckmark('before'),
22
+ React.createElement("div", { className: cn(styles.content) }, content),
23
+ checkmarkPosition === 'after' && renderCheckmark('after')));
20
24
  };
21
25
 
22
26
  export { BaseOption };
@@ -1 +1 @@
1
- {"version":3,"file":"Component.js","sources":["../../../src/components/base-option/Component.tsx"],"sourcesContent":["import React, { type FC, isValidElement } from 'react';\nimport cn from 'classnames';\n\nimport { type OptionProps } from '../../typings';\nimport { BaseCheckmark } from '../base-checkmark';\n\nimport styles from './index.module.css';\n\nexport const BaseOption: FC<OptionProps> = ({\n className,\n option,\n children,\n selected,\n highlighted,\n disabled,\n multiple,\n Checkmark = BaseCheckmark,\n checkmarkPosition = multiple ? 'before' : 'after',\n align = 'center',\n innerProps,\n dataTestId,\n mobile = false,\n size,\n}) => {\n const content = children || option.content || option.key;\n const { showCheckMark = true } = option;\n const isTextContent = !isValidElement(content);\n const showCheckmark = Checkmark && showCheckMark;\n\n return (\n <div\n {...innerProps}\n className={cn(styles.option, size && styles[`size-${size}`], className, {\n [styles.highlighted]: !mobile && highlighted,\n [styles.selected]: selected,\n [styles.disabled]: disabled,\n [styles.textContent]: isTextContent,\n [styles.mobile]: mobile,\n [styles.checkmarkAfter]:\n showCheckmark && !isTextContent && checkmarkPosition === 'after',\n [styles.checkmarkBefore]:\n showCheckmark && !isTextContent && checkmarkPosition === 'before',\n })}\n data-test-id={dataTestId}\n aria-label={option?.value?.name}\n >\n {showCheckmark ? (\n <Checkmark\n disabled={disabled}\n selected={selected}\n multiple={multiple}\n align={align}\n position={checkmarkPosition}\n content={content}\n />\n ) : (\n <div className={cn(styles.content)}>{content}</div>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;MAQa,UAAU,GAAoB,CAAC,EACxC,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,SAAS,GAAG,aAAa,EACzB,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,EACjD,KAAK,GAAG,QAAQ,EAChB,UAAU,EACV,UAAU,EACV,MAAM,GAAG,KAAK,EACd,IAAI,GACP,KAAI;IACD,MAAM,OAAO,GAAG,QAAQ,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG;AACxD,IAAA,MAAM,EAAE,aAAa,GAAG,IAAI,EAAE,GAAG,MAAM;AACvC,IAAA,MAAM,aAAa,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC;AAC9C,IAAA,MAAM,aAAa,GAAG,SAAS,IAAI,aAAa;IAEhD,QACI,gCACQ,UAAU,EACd,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,IAAI,MAAM,CAAC,CAAA,KAAA,EAAQ,IAAI,CAAE,CAAA,CAAC,EAAE,SAAS,EAAE;YACpE,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,MAAM,IAAI,WAAW;AAC5C,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;AAC3B,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;AAC3B,YAAA,CAAC,MAAM,CAAC,WAAW,GAAG,aAAa;AACnC,YAAA,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM;AACvB,YAAA,CAAC,MAAM,CAAC,cAAc,GAClB,aAAa,IAAI,CAAC,aAAa,IAAI,iBAAiB,KAAK,OAAO;AACpE,YAAA,CAAC,MAAM,CAAC,eAAe,GACnB,aAAa,IAAI,CAAC,aAAa,IAAI,iBAAiB,KAAK,QAAQ;AACxE,SAAA,CAAC,EACY,cAAA,EAAA,UAAU,EACZ,YAAA,EAAA,MAAM,EAAE,KAAK,EAAE,IAAI,EAE9B,EAAA,aAAa,IACV,KAAC,CAAA,aAAA,CAAA,SAAS,EACN,EAAA,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,OAAO,EAClB,CAAA,KAEF,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAA,EAAG,OAAO,CAAO,CACtD,CACC;AAEd;;;;"}
1
+ {"version":3,"file":"Component.js","sources":["../../../src/components/base-option/Component.tsx"],"sourcesContent":["import React, { type FC, isValidElement } from 'react';\nimport cn from 'classnames';\n\nimport { type OptionProps } from '../../typings';\nimport { BaseCheckmark } from '../base-checkmark';\n\nimport styles from './index.module.css';\n\nexport const BaseOption: FC<OptionProps> = ({\n className,\n option,\n children,\n selected,\n highlighted,\n disabled,\n multiple,\n Checkmark = BaseCheckmark,\n checkmarkPosition = multiple ? 'before' : 'after',\n align = 'center',\n innerProps,\n dataTestId,\n mobile = false,\n size,\n}) => {\n const content = children || option.content || option.key;\n const { showCheckMark = true } = option;\n const isTextContent = !isValidElement(content);\n const showCheckmark = Checkmark && showCheckMark;\n\n const renderCheckmark = (position: 'before' | 'after') =>\n showCheckmark && (\n <Checkmark\n disabled={disabled}\n selected={selected}\n multiple={multiple}\n align={align}\n position={position}\n />\n );\n\n return (\n <div\n {...innerProps}\n className={cn(styles.option, size && styles[`size-${size}`], className, {\n [styles.highlighted]: !mobile && highlighted,\n [styles.selected]: selected,\n [styles.disabled]: disabled,\n [styles.textContent]: isTextContent,\n [styles.mobile]: mobile,\n [styles.checkmarkAfter]:\n showCheckmark && !isTextContent && checkmarkPosition === 'after',\n [styles.checkmarkBefore]:\n showCheckmark && !isTextContent && checkmarkPosition === 'before',\n })}\n data-test-id={dataTestId}\n aria-label={option?.value?.name}\n >\n {checkmarkPosition === 'before' && renderCheckmark('before')}\n\n <div className={cn(styles.content)}>{content}</div>\n\n {checkmarkPosition === 'after' && renderCheckmark('after')}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;MAQa,UAAU,GAAoB,CAAC,EACxC,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,SAAS,GAAG,aAAa,EACzB,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,EACjD,KAAK,GAAG,QAAQ,EAChB,UAAU,EACV,UAAU,EACV,MAAM,GAAG,KAAK,EACd,IAAI,GACP,KAAI;IACD,MAAM,OAAO,GAAG,QAAQ,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG;AACxD,IAAA,MAAM,EAAE,aAAa,GAAG,IAAI,EAAE,GAAG,MAAM;AACvC,IAAA,MAAM,aAAa,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC;AAC9C,IAAA,MAAM,aAAa,GAAG,SAAS,IAAI,aAAa;AAEhD,IAAA,MAAM,eAAe,GAAG,CAAC,QAA4B,KACjD,aAAa,KACT,KAAC,CAAA,aAAA,CAAA,SAAS,EACN,EAAA,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAAA,CACpB,CACL;IAEL,QACI,gCACQ,UAAU,EACd,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,IAAI,MAAM,CAAC,CAAA,KAAA,EAAQ,IAAI,CAAE,CAAA,CAAC,EAAE,SAAS,EAAE;YACpE,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,MAAM,IAAI,WAAW;AAC5C,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;AAC3B,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;AAC3B,YAAA,CAAC,MAAM,CAAC,WAAW,GAAG,aAAa;AACnC,YAAA,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM;AACvB,YAAA,CAAC,MAAM,CAAC,cAAc,GAClB,aAAa,IAAI,CAAC,aAAa,IAAI,iBAAiB,KAAK,OAAO;AACpE,YAAA,CAAC,MAAM,CAAC,eAAe,GACnB,aAAa,IAAI,CAAC,aAAa,IAAI,iBAAiB,KAAK,QAAQ;AACxE,SAAA,CAAC,kBACY,UAAU,EAAA,YAAA,EACZ,MAAM,EAAE,KAAK,EAAE,IAAI,EAAA;AAE9B,QAAA,iBAAiB,KAAK,QAAQ,IAAI,eAAe,CAAC,QAAQ,CAAC;QAE5D,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAG,EAAA,OAAO,CAAO;QAElD,iBAAiB,KAAK,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CACxD;AAEd;;;;"}
@@ -15,8 +15,9 @@
15
15
  --gap-20: var(--gap-l);
16
16
  }
17
17
  :root {
18
- --font-family-system:
19
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
18
+ --font-family-alfasans:
19
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
20
+ Helvetica, sans-serif;
20
21
  }
21
22
  :root {
22
23
  --disabled-cursor: not-allowed;
@@ -34,11 +35,12 @@
34
35
  --select-option-active-color: var(--color-light-text-primary);
35
36
  --select-option-disabled-color: var(--color-light-text-secondary);
36
37
  }
37
- .select__option_1k7vx {
38
+ .select__option_16x17 {
38
39
  font-size: 16px;
39
40
  line-height: 20px;
40
41
  font-weight: 400;
41
- font-family: var(--font-family-system);
42
+ letter-spacing: -0.24px;
43
+ font-family: var(--font-family-alfasans);
42
44
 
43
45
  display: flex;
44
46
  align-items: center;
@@ -50,49 +52,49 @@
50
52
  cursor: pointer;
51
53
  min-height: var(--size-s-height);
52
54
  }
53
- .select__option_1k7vx:not(.select__disabled_1k7vx):active {
55
+ .select__option_16x17:not(.select__disabled_16x17):active {
54
56
  background: var(--select-option-active-background);
55
57
  color: var(--select-option-active-color);
56
58
  }
57
- .select__option_1k7vx.select__checkmarkBefore_1k7vx {
59
+ .select__option_16x17.select__checkmarkBefore_16x17 {
58
60
  padding: var(--gap-0) var(--gap-0) var(--gap-0) var(--gap-12);
59
61
  }
60
- .select__option_1k7vx.select__checkmarkBefore_1k7vx.select__mobile_1k7vx {
62
+ .select__option_16x17.select__checkmarkBefore_16x17.select__mobile_16x17 {
61
63
  padding-left: var(--gap-16);
62
64
  }
63
- .select__option_1k7vx.select__checkmarkAfter_1k7vx.select__checkmarkAfter_1k7vx {
65
+ .select__option_16x17.select__checkmarkAfter_16x17.select__checkmarkAfter_16x17 {
64
66
  padding: var(--gap-0) var(--gap-12) var(--gap-0) var(--gap-0);
65
67
  }
66
- .select__option_1k7vx.select__checkmarkAfter_1k7vx.select__checkmarkAfter_1k7vx.select__size-72_1k7vx {
68
+ .select__option_16x17.select__checkmarkAfter_16x17.select__checkmarkAfter_16x17.select__size-72_16x17 {
67
69
  padding-right: var(--gap-16);
68
70
  }
69
- .select__option_1k7vx.select__checkmarkAfter_1k7vx.select__checkmarkAfter_1k7vx.select__mobile_1k7vx {
71
+ .select__option_16x17.select__checkmarkAfter_16x17.select__checkmarkAfter_16x17.select__mobile_16x17 {
70
72
  padding-right: var(--gap-20);
71
73
  }
72
- .select__option_1k7vx.select__textContent_1k7vx {
74
+ .select__option_16x17.select__textContent_16x17 {
73
75
  padding: var(--gap-12);
74
76
  }
75
- .select__option_1k7vx.select__textContent_1k7vx.select__size-72_1k7vx {
77
+ .select__option_16x17.select__textContent_16x17.select__size-72_16x17 {
76
78
  padding-left: var(--gap-16);
77
79
  padding-right: var(--gap-16);
78
80
  }
79
- .select__option_1k7vx.select__textContent_1k7vx.select__mobile_1k7vx {
81
+ .select__option_16x17.select__textContent_16x17.select__mobile_16x17 {
80
82
  padding: var(--gap-16) var(--gap-20);
81
83
  }
82
- .select__selected_1k7vx {
84
+ .select__selected_16x17 {
83
85
  background: var(--select-option-selected-background);
84
86
  color: var(--select-option-selected-color);
85
87
  cursor: default;
86
88
  }
87
- .select__highlighted_1k7vx {
89
+ .select__highlighted_16x17 {
88
90
  background: var(--select-option-hover-background);
89
91
  color: var(--select-option-hover-color);
90
92
  }
91
- .select__disabled_1k7vx {
93
+ .select__disabled_16x17 {
92
94
  cursor: var(--disabled-cursor);
93
95
  background: var(--select-option-disabled-background);
94
96
  color: var(--select-option-disabled-color);
95
97
  }
96
- .select__content_1k7vx {
98
+ .select__content_16x17 {
97
99
  flex: 1;
98
100
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"option":"select__option_1k7vx","disabled":"select__disabled_1k7vx","checkmarkBefore":"select__checkmarkBefore_1k7vx","mobile":"select__mobile_1k7vx","checkmarkAfter":"select__checkmarkAfter_1k7vx","size-72":"select__size-72_1k7vx","textContent":"select__textContent_1k7vx","selected":"select__selected_1k7vx","highlighted":"select__highlighted_1k7vx","content":"select__content_1k7vx"};
3
+ const styles = {"option":"select__option_16x17","disabled":"select__disabled_16x17","checkmarkBefore":"select__checkmarkBefore_16x17","mobile":"select__mobile_16x17","checkmarkAfter":"select__checkmarkAfter_16x17","size-72":"select__size-72_16x17","textContent":"select__textContent_16x17","selected":"select__selected_16x17","highlighted":"select__highlighted_16x17","content":"select__content_16x17"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map