@alfalab/core-components-select 18.2.7 → 18.2.9

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 (135) 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/index.css +5 -5
  4. package/components/base-checkmark/index.module.css.js +1 -1
  5. package/components/base-option/index.css +16 -16
  6. package/components/base-option/index.module.css.js +1 -1
  7. package/components/base-select/index.css +14 -14
  8. package/components/base-select/index.module.css.js +1 -1
  9. package/components/base-select/mobile.css +11 -11
  10. package/components/base-select/mobile.module.css.js +1 -1
  11. package/components/checkmark/index.css +9 -9
  12. package/components/checkmark/index.module.css.js +1 -1
  13. package/components/checkmark-mobile/index.css +5 -5
  14. package/components/checkmark-mobile/index.module.css.js +1 -1
  15. package/components/clear-button/index.css +4 -4
  16. package/components/clear-button/index.module.css.js +1 -1
  17. package/components/field/index.css +13 -13
  18. package/components/field/index.module.css.js +1 -1
  19. package/components/footer/index.css +4 -4
  20. package/components/footer/index.module.css.js +1 -1
  21. package/components/optgroup/index.css +4 -4
  22. package/components/optgroup/index.module.css.js +1 -1
  23. package/components/option/desktop/index.css +19 -19
  24. package/components/option/desktop/index.module.css.js +1 -1
  25. package/components/option/mobile/index.css +16 -16
  26. package/components/option/mobile/index.module.css.js +1 -1
  27. package/components/options-list/Component.js +8 -5
  28. package/components/options-list/Component.js.map +1 -1
  29. package/components/options-list/index.css +24 -11
  30. package/components/options-list/index.module.css.js +1 -1
  31. package/components/options-list/index.module.css.js.map +1 -1
  32. package/components/search/index.css +1 -1
  33. package/components/search/index.module.css.js +1 -1
  34. package/components/virtual-options-list/index.css +13 -13
  35. package/components/virtual-options-list/index.module.css.js +1 -1
  36. package/cssm/components/base-select/index.module.css +3 -3
  37. package/cssm/components/options-list/Component.js +8 -5
  38. package/cssm/components/options-list/Component.js.map +1 -1
  39. package/cssm/components/options-list/index.module.css +18 -5
  40. package/esm/components/arrow/index.css +4 -4
  41. package/esm/components/arrow/index.module.css.js +1 -1
  42. package/esm/components/base-checkmark/index.css +5 -5
  43. package/esm/components/base-checkmark/index.module.css.js +1 -1
  44. package/esm/components/base-option/index.css +16 -16
  45. package/esm/components/base-option/index.module.css.js +1 -1
  46. package/esm/components/base-select/index.css +14 -14
  47. package/esm/components/base-select/index.module.css.js +1 -1
  48. package/esm/components/base-select/mobile.css +11 -11
  49. package/esm/components/base-select/mobile.module.css.js +1 -1
  50. package/esm/components/checkmark/index.css +9 -9
  51. package/esm/components/checkmark/index.module.css.js +1 -1
  52. package/esm/components/checkmark-mobile/index.css +5 -5
  53. package/esm/components/checkmark-mobile/index.module.css.js +1 -1
  54. package/esm/components/clear-button/index.css +4 -4
  55. package/esm/components/clear-button/index.module.css.js +1 -1
  56. package/esm/components/field/index.css +13 -13
  57. package/esm/components/field/index.module.css.js +1 -1
  58. package/esm/components/footer/index.css +4 -4
  59. package/esm/components/footer/index.module.css.js +1 -1
  60. package/esm/components/optgroup/index.css +4 -4
  61. package/esm/components/optgroup/index.module.css.js +1 -1
  62. package/esm/components/option/desktop/index.css +19 -19
  63. package/esm/components/option/desktop/index.module.css.js +1 -1
  64. package/esm/components/option/mobile/index.css +16 -16
  65. package/esm/components/option/mobile/index.module.css.js +1 -1
  66. package/esm/components/options-list/Component.js +8 -5
  67. package/esm/components/options-list/Component.js.map +1 -1
  68. package/esm/components/options-list/index.css +24 -11
  69. package/esm/components/options-list/index.module.css.js +1 -1
  70. package/esm/components/options-list/index.module.css.js.map +1 -1
  71. package/esm/components/search/index.css +1 -1
  72. package/esm/components/search/index.module.css.js +1 -1
  73. package/esm/components/virtual-options-list/index.css +13 -13
  74. package/esm/components/virtual-options-list/index.module.css.js +1 -1
  75. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  76. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
  77. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  78. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
  79. package/esm/presets/useSelectWithLoading/index.css +1 -1
  80. package/esm/presets/useSelectWithLoading/index.module.css.js +1 -1
  81. package/modern/components/arrow/index.css +4 -4
  82. package/modern/components/arrow/index.module.css.js +1 -1
  83. package/modern/components/base-checkmark/index.css +5 -5
  84. package/modern/components/base-checkmark/index.module.css.js +1 -1
  85. package/modern/components/base-option/index.css +16 -16
  86. package/modern/components/base-option/index.module.css.js +1 -1
  87. package/modern/components/base-select/index.css +14 -14
  88. package/modern/components/base-select/index.module.css.js +1 -1
  89. package/modern/components/base-select/mobile.css +11 -11
  90. package/modern/components/base-select/mobile.module.css.js +1 -1
  91. package/modern/components/checkmark/index.css +9 -9
  92. package/modern/components/checkmark/index.module.css.js +1 -1
  93. package/modern/components/checkmark-mobile/index.css +5 -5
  94. package/modern/components/checkmark-mobile/index.module.css.js +1 -1
  95. package/modern/components/clear-button/index.css +4 -4
  96. package/modern/components/clear-button/index.module.css.js +1 -1
  97. package/modern/components/field/index.css +13 -13
  98. package/modern/components/field/index.module.css.js +1 -1
  99. package/modern/components/footer/index.css +4 -4
  100. package/modern/components/footer/index.module.css.js +1 -1
  101. package/modern/components/optgroup/index.css +4 -4
  102. package/modern/components/optgroup/index.module.css.js +1 -1
  103. package/modern/components/option/desktop/index.css +19 -19
  104. package/modern/components/option/desktop/index.module.css.js +1 -1
  105. package/modern/components/option/mobile/index.css +16 -16
  106. package/modern/components/option/mobile/index.module.css.js +1 -1
  107. package/modern/components/options-list/Component.js +4 -1
  108. package/modern/components/options-list/Component.js.map +1 -1
  109. package/modern/components/options-list/index.css +24 -11
  110. package/modern/components/options-list/index.module.css.js +1 -1
  111. package/modern/components/options-list/index.module.css.js.map +1 -1
  112. package/modern/components/search/index.css +1 -1
  113. package/modern/components/search/index.module.css.js +1 -1
  114. package/modern/components/virtual-options-list/index.css +13 -13
  115. package/modern/components/virtual-options-list/index.module.css.js +1 -1
  116. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  117. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
  118. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  119. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
  120. package/modern/presets/useSelectWithLoading/index.css +1 -1
  121. package/modern/presets/useSelectWithLoading/index.module.css.js +1 -1
  122. package/moderncssm/components/base-select/index.module.css +1 -1
  123. package/moderncssm/components/options-list/Component.js +4 -1
  124. package/moderncssm/components/options-list/Component.js.map +1 -1
  125. package/moderncssm/components/options-list/index.module.css +26 -5
  126. package/package.json +6 -6
  127. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  128. package/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
  129. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
  130. package/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
  131. package/presets/useSelectWithLoading/index.css +1 -1
  132. package/presets/useSelectWithLoading/index.module.css.js +1 -1
  133. package/src/components/options-list/Component.tsx +4 -0
  134. package/src/components/options-list/index.module.css +25 -5
  135. package/src/vars.css +2 -1
@@ -35,7 +35,7 @@
35
35
  --select-option-hover-color: var(--color-light-text-primary);
36
36
  --select-option-active-color: var(--color-light-text-primary);
37
37
  --select-option-disabled-color: var(--color-light-text-secondary);
38
- } .select__option_lioo6 {
38
+ } .select__option_1937e {
39
39
  font-size: 16px;
40
40
  line-height: 20px;
41
41
  font-weight: 400;
@@ -50,10 +50,10 @@
50
50
  box-sizing: border-box;
51
51
  position: relative;
52
52
  cursor: pointer;
53
- } .select__option_lioo6:not(.select__disabled_lioo6):active {
53
+ } .select__option_1937e:not(.select__disabled_1937e):active {
54
54
  background: var(--select-option-active-background);
55
55
  color: var(--select-option-active-color);
56
- } .select__option_lioo6:before {
56
+ } .select__option_1937e:before {
57
57
  content: '';
58
58
  position: absolute;
59
59
  left: var(--select-option-left-padding);
@@ -63,40 +63,40 @@
63
63
  background: var(--select-option-divider-background);
64
64
  display: var(--select-option-divider-display);
65
65
  transition: opacity 0.2s ease;
66
- } .select__option_lioo6:first-child:before {
66
+ } .select__option_1937e:first-child:before {
67
67
  display: none;
68
- } .select__size-48_lioo6 {
68
+ } .select__size-48_1937e {
69
69
  min-height: var(--size-s-height);
70
- } .select__size-56_lioo6 {
70
+ } .select__size-56_1937e {
71
71
  min-height: var(--size-m-height);
72
- } .select__size-64_lioo6 {
72
+ } .select__size-64_1937e {
73
73
  min-height: var(--size-l-height);
74
- } .select__size-72_lioo6 {
74
+ } .select__size-72_1937e {
75
75
  min-height: var(--size-xl-height);
76
76
  padding-left: var(--select-option-l-left-padding);
77
77
  padding-right: var(--select-option-l-right-padding);
78
- } .select__size-72_lioo6:before {
78
+ } .select__size-72_1937e:before {
79
79
  left: var(--select-option-l-left-padding);
80
80
  right: var(--select-option-l-right-padding);
81
- } .select__selected_lioo6 {
81
+ } .select__selected_1937e {
82
82
  background: var(--select-option-selected-background);
83
83
  color: var(--select-option-selected-color);
84
84
  cursor: default;
85
- } .select__highlighted_lioo6 {
85
+ } .select__highlighted_1937e {
86
86
  background: var(--select-option-hover-background);
87
87
  color: var(--select-option-hover-color);
88
- } .select__highlighted_lioo6:before,
89
- .select__highlighted_lioo6 + .select__option_lioo6:before {
88
+ } .select__highlighted_1937e:before,
89
+ .select__highlighted_1937e + .select__option_1937e:before {
90
90
  opacity: 0;
91
- } .select__disabled_lioo6 {
91
+ } .select__disabled_1937e {
92
92
  cursor: var(--disabled-cursor);
93
93
  background: var(--select-option-disabled-background);
94
94
  color: var(--select-option-disabled-color);
95
- } .select__content_lioo6 {
95
+ } .select__content_1937e {
96
96
  overflow: hidden;
97
97
  flex: 1;
98
98
  text-overflow: ellipsis;
99
- } .select__textContent_lioo6 {
99
+ } .select__textContent_1937e {
100
100
  padding-top: var(--gap-12);
101
101
  padding-bottom: var(--gap-12);
102
102
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"option":"select__option_lioo6","disabled":"select__disabled_lioo6","size-48":"select__size-48_lioo6","size-56":"select__size-56_lioo6","size-64":"select__size-64_lioo6","size-72":"select__size-72_lioo6","selected":"select__selected_lioo6","highlighted":"select__highlighted_lioo6","content":"select__content_lioo6","textContent":"select__textContent_lioo6"};
3
+ var styles = {"option":"select__option_1937e","disabled":"select__disabled_1937e","size-48":"select__size-48_1937e","size-56":"select__size-56_1937e","size-64":"select__size-64_1937e","size-72":"select__size-72_1937e","selected":"select__selected_1937e","highlighted":"select__highlighted_1937e","content":"select__content_1937e","textContent":"select__textContent_1937e"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -76,20 +76,23 @@ var OptionsList = forwardRef(function (_a, ref) {
76
76
  }),
77
77
  emptyPlaceholder && options.length === 0 && (React.createElement("div", { className: styles.emptyPlaceholder }, emptyPlaceholder)))); };
78
78
  var renderWithCustomScrollbar = function () {
79
- var _a;
79
+ var _a, _b;
80
80
  var scrollableNodeProps = {
81
81
  onScroll: handleScroll,
82
82
  'data-test-id': dataTestId,
83
83
  ref: ref,
84
84
  };
85
- return (React.createElement(Scrollbar, { className: cn(styles.scrollable, scrollbarClassName), ref: scrollbarRef, style: { height: height }, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: scrollableNodeProps, contentNodeProps: { ref: listRef }, maskProps: {
85
+ return (React.createElement(Scrollbar, { className: cn(styles.scrollable, scrollbarClassName), verticalBarClassName: cn(styles.verticalBar, (_a = {},
86
+ _a[styles.verticalBarWithHeader] = Boolean(header),
87
+ _a[styles.verticalBarWithFooter] = Boolean(footer),
88
+ _a)), ref: scrollbarRef, style: { height: height }, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: scrollableNodeProps, contentNodeProps: { ref: listRef }, maskProps: {
86
89
  /*
87
90
  * Для корректного подсчета высоты опций(иначе для optionsListWidth: 'field'
88
91
  * высота опции всегда будет равна высоте одной строчки)
89
92
  */
90
- className: cn((_a = {},
91
- _a[styles.mask] = optionsListWidth === 'content' && !measured,
92
- _a)),
93
+ className: cn((_b = {},
94
+ _b[styles.mask] = optionsListWidth === 'content' && !measured,
95
+ _b)),
93
96
  } }, renderListItems()));
94
97
  };
95
98
  var renderWithNativeScrollbar = function () { return (React.createElement("div", { className: cn(styles.scrollable, scrollbarClassName), ref: mergeRefs([listRef, ref]), onScroll: handleScroll, style: { height: height } }, renderListItems())); };
@@ -1 +1 @@
1
- {"version":3,"file":"Component.js","sources":["../../../src/components/options-list/Component.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useRef, useState } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { Scrollbar } from '@alfalab/core-components-scrollbar';\n\nimport { DEFAULT_VISIBLE_OPTIONS, SIZE_TO_CLASSNAME_MAP } from '../../consts';\nimport { useNativeScrollbar } from '../../hooks/use-native-scrollbar';\nimport { type GroupShape, type OptionShape, type OptionsListProps } from '../../typings';\nimport { isGroup, useVisibleOptions } from '../../utils';\nimport { Optgroup as DefaultOptgroup } from '../optgroup';\n\nimport styles from './index.module.css';\n\nconst createCounter = () => {\n let count = 0;\n\n // eslint-disable-next-line no-plusplus\n return () => count++;\n};\n\nexport const OptionsList = forwardRef<HTMLDivElement, OptionsListProps>(\n (\n {\n size = 48,\n className,\n optionGroupClassName,\n footerClassName,\n scrollbarClassName,\n Option,\n getOptionProps,\n groupOptionProps = {},\n options = [],\n Optgroup = DefaultOptgroup,\n dataTestId,\n emptyPlaceholder,\n visibleOptions = DEFAULT_VISIBLE_OPTIONS,\n onScroll,\n open,\n header,\n footer,\n showFooter = true,\n optionsListWidth,\n nativeScrollbar: nativeScrollbarProp,\n flatOptions = [],\n setHighlightedIndex,\n selectedItems,\n search,\n setSelectedItems,\n multiple,\n limitDynamicOptionGroupSize = false,\n client,\n },\n ref,\n ) => {\n const [scrollTop, setScrollTop] = useState(true);\n const [scrollBottom, setScrollBottom] = useState(false);\n\n const nativeScrollbar = useNativeScrollbar({\n nativeScrollbar: nativeScrollbarProp,\n client,\n });\n\n const handleScroll = useCallback(\n (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {\n const scrolledToHeader = event.currentTarget.scrollTop <= 0;\n const scrolledToFooter =\n event.currentTarget.scrollHeight - event.currentTarget.offsetHeight <=\n event.currentTarget.scrollTop;\n\n setScrollTop(scrolledToHeader);\n setScrollBottom(scrolledToFooter);\n\n onScroll?.(event);\n },\n [onScroll],\n );\n\n const renderOption = (option: OptionShape, index: number) => (\n <Option key={option.key} {...getOptionProps(option, index)} />\n );\n\n const listRef = useRef<HTMLDivElement>(null);\n const scrollbarRef = useRef<HTMLDivElement>(null);\n const counter = createCounter();\n const renderGroup = (group: GroupShape) => {\n const groupSelectedItems = selectedItems?.filter(({ key: selectedItemKey }) =>\n group.options.some((option) => option.key === selectedItemKey),\n );\n const handleSelectedItems = (items: OptionShape[]) => {\n setSelectedItems(\n (\n selectedItems?.filter(\n ({ key: selectedItemKey }) =>\n !group.options.some((option) => option.key === selectedItemKey),\n ) ?? []\n ).concat(items),\n );\n };\n\n return (\n <Optgroup\n className={optionGroupClassName}\n label={group.label}\n key={group.label}\n size={size}\n options={group.options}\n selectedItems={groupSelectedItems}\n setSelectedItems={handleSelectedItems}\n search={search}\n multiple={multiple}\n {...groupOptionProps}\n >\n {group.options.map((option) => renderOption(option, counter()))}\n </Optgroup>\n );\n };\n\n const actualOptionsCount = limitDynamicOptionGroupSize && options.length > 0;\n\n const [measured, height] = useVisibleOptions({\n visibleOptions,\n listRef,\n open,\n options,\n actualOptionsCount,\n size: actualOptionsCount\n ? (() => {\n switch (typeof size) {\n case 'string':\n throw new Error(\n 'OptionsList with `limitDynamicOptionGroupSize` enabled needs a `size` with number type',\n );\n default:\n return size;\n }\n })()\n : undefined,\n });\n\n if (options.length === 0 && !emptyPlaceholder && !header && !footer) {\n return null;\n }\n\n const renderListItems = () => (\n <React.Fragment>\n {options.map((option) =>\n isGroup(option) ? renderGroup(option) : renderOption(option, counter()),\n )}\n\n {emptyPlaceholder && options.length === 0 && (\n <div className={styles.emptyPlaceholder}>{emptyPlaceholder}</div>\n )}\n </React.Fragment>\n );\n\n const renderWithCustomScrollbar = () => {\n const scrollableNodeProps = {\n onScroll: handleScroll,\n 'data-test-id': dataTestId,\n ref: ref as React.RefObject<HTMLDivElement>,\n };\n\n return (\n <Scrollbar\n className={cn(styles.scrollable, scrollbarClassName)}\n ref={scrollbarRef}\n style={{ height }}\n horizontalAutoStretch={optionsListWidth === 'content'}\n scrollableNodeProps={scrollableNodeProps}\n contentNodeProps={{ ref: listRef }}\n maskProps={{\n /*\n * Для корректного подсчета высоты опций(иначе для optionsListWidth: 'field'\n * высота опции всегда будет равна высоте одной строчки)\n */\n className: cn({\n [styles.mask]: optionsListWidth === 'content' && !measured,\n }),\n }}\n >\n {renderListItems()}\n </Scrollbar>\n );\n };\n\n const renderWithNativeScrollbar = () => (\n <div\n className={cn(styles.scrollable, scrollbarClassName)}\n ref={mergeRefs([listRef, ref])}\n onScroll={handleScroll}\n style={{ height }}\n >\n {renderListItems()}\n </div>\n );\n\n const resetHighlightedIndex = () => setHighlightedIndex?.(-1);\n\n return (\n <div\n {...(nativeScrollbar && { 'data-test-id': dataTestId })}\n className={cn(styles.optionsList, styles[SIZE_TO_CLASSNAME_MAP[size]], className)}\n >\n {header && (\n <div\n className={cn(styles.optionsListHeader, {\n [styles.headerHighlighted]: !scrollTop,\n })}\n onMouseEnter={resetHighlightedIndex}\n >\n {header}\n </div>\n )}\n\n {nativeScrollbar ? renderWithNativeScrollbar() : renderWithCustomScrollbar()}\n\n {showFooter && footer && (\n <div\n onMouseEnter={resetHighlightedIndex}\n className={cn(styles.optionsListFooter, footerClassName, {\n [styles.withBorder]:\n visibleOptions &&\n flatOptions.length > visibleOptions &&\n !scrollBottom,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n );\n },\n);\n"],"names":["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GAAA,EAAA,GAAA,EAAA;AACnD,gBAAA,EAAA,CAAC,MAAM,CAAC,UAAU,CAAA,GACd,cAAc;oBACd,WAAW,CAAC,MAAM,GAAG,cAAc;AACnC,oBAAA,CAAC,YAAY;AACnB,gBAAA,EAAA,EAAA,EAAA,EAED,MAAM,CACL,CACT,CACC;AAEd,CAAC;;;;"}
1
+ {"version":3,"file":"Component.js","sources":["../../../src/components/options-list/Component.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useRef, useState } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { Scrollbar } from '@alfalab/core-components-scrollbar';\n\nimport { DEFAULT_VISIBLE_OPTIONS, SIZE_TO_CLASSNAME_MAP } from '../../consts';\nimport { useNativeScrollbar } from '../../hooks/use-native-scrollbar';\nimport { type GroupShape, type OptionShape, type OptionsListProps } from '../../typings';\nimport { isGroup, useVisibleOptions } from '../../utils';\nimport { Optgroup as DefaultOptgroup } from '../optgroup';\n\nimport styles from './index.module.css';\n\nconst createCounter = () => {\n let count = 0;\n\n // eslint-disable-next-line no-plusplus\n return () => count++;\n};\n\nexport const OptionsList = forwardRef<HTMLDivElement, OptionsListProps>(\n (\n {\n size = 48,\n className,\n optionGroupClassName,\n footerClassName,\n scrollbarClassName,\n Option,\n getOptionProps,\n groupOptionProps = {},\n options = [],\n Optgroup = DefaultOptgroup,\n dataTestId,\n emptyPlaceholder,\n visibleOptions = DEFAULT_VISIBLE_OPTIONS,\n onScroll,\n open,\n header,\n footer,\n showFooter = true,\n optionsListWidth,\n nativeScrollbar: nativeScrollbarProp,\n flatOptions = [],\n setHighlightedIndex,\n selectedItems,\n search,\n setSelectedItems,\n multiple,\n limitDynamicOptionGroupSize = false,\n client,\n },\n ref,\n ) => {\n const [scrollTop, setScrollTop] = useState(true);\n const [scrollBottom, setScrollBottom] = useState(false);\n\n const nativeScrollbar = useNativeScrollbar({\n nativeScrollbar: nativeScrollbarProp,\n client,\n });\n\n const handleScroll = useCallback(\n (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {\n const scrolledToHeader = event.currentTarget.scrollTop <= 0;\n const scrolledToFooter =\n event.currentTarget.scrollHeight - event.currentTarget.offsetHeight <=\n event.currentTarget.scrollTop;\n\n setScrollTop(scrolledToHeader);\n setScrollBottom(scrolledToFooter);\n\n onScroll?.(event);\n },\n [onScroll],\n );\n\n const renderOption = (option: OptionShape, index: number) => (\n <Option key={option.key} {...getOptionProps(option, index)} />\n );\n\n const listRef = useRef<HTMLDivElement>(null);\n const scrollbarRef = useRef<HTMLDivElement>(null);\n const counter = createCounter();\n const renderGroup = (group: GroupShape) => {\n const groupSelectedItems = selectedItems?.filter(({ key: selectedItemKey }) =>\n group.options.some((option) => option.key === selectedItemKey),\n );\n const handleSelectedItems = (items: OptionShape[]) => {\n setSelectedItems(\n (\n selectedItems?.filter(\n ({ key: selectedItemKey }) =>\n !group.options.some((option) => option.key === selectedItemKey),\n ) ?? []\n ).concat(items),\n );\n };\n\n return (\n <Optgroup\n className={optionGroupClassName}\n label={group.label}\n key={group.label}\n size={size}\n options={group.options}\n selectedItems={groupSelectedItems}\n setSelectedItems={handleSelectedItems}\n search={search}\n multiple={multiple}\n {...groupOptionProps}\n >\n {group.options.map((option) => renderOption(option, counter()))}\n </Optgroup>\n );\n };\n\n const actualOptionsCount = limitDynamicOptionGroupSize && options.length > 0;\n\n const [measured, height] = useVisibleOptions({\n visibleOptions,\n listRef,\n open,\n options,\n actualOptionsCount,\n size: actualOptionsCount\n ? (() => {\n switch (typeof size) {\n case 'string':\n throw new Error(\n 'OptionsList with `limitDynamicOptionGroupSize` enabled needs a `size` with number type',\n );\n default:\n return size;\n }\n })()\n : undefined,\n });\n\n if (options.length === 0 && !emptyPlaceholder && !header && !footer) {\n return null;\n }\n\n const renderListItems = () => (\n <React.Fragment>\n {options.map((option) =>\n isGroup(option) ? renderGroup(option) : renderOption(option, counter()),\n )}\n\n {emptyPlaceholder && options.length === 0 && (\n <div className={styles.emptyPlaceholder}>{emptyPlaceholder}</div>\n )}\n </React.Fragment>\n );\n\n const renderWithCustomScrollbar = () => {\n const scrollableNodeProps = {\n onScroll: handleScroll,\n 'data-test-id': dataTestId,\n ref: ref as React.RefObject<HTMLDivElement>,\n };\n\n return (\n <Scrollbar\n className={cn(styles.scrollable, scrollbarClassName)}\n verticalBarClassName={cn(styles.verticalBar, {\n [styles.verticalBarWithHeader]: Boolean(header),\n [styles.verticalBarWithFooter]: Boolean(footer),\n })}\n ref={scrollbarRef}\n style={{ height }}\n horizontalAutoStretch={optionsListWidth === 'content'}\n scrollableNodeProps={scrollableNodeProps}\n contentNodeProps={{ ref: listRef }}\n maskProps={{\n /*\n * Для корректного подсчета высоты опций(иначе для optionsListWidth: 'field'\n * высота опции всегда будет равна высоте одной строчки)\n */\n className: cn({\n [styles.mask]: optionsListWidth === 'content' && !measured,\n }),\n }}\n >\n {renderListItems()}\n </Scrollbar>\n );\n };\n\n const renderWithNativeScrollbar = () => (\n <div\n className={cn(styles.scrollable, scrollbarClassName)}\n ref={mergeRefs([listRef, ref])}\n onScroll={handleScroll}\n style={{ height }}\n >\n {renderListItems()}\n </div>\n );\n\n const resetHighlightedIndex = () => setHighlightedIndex?.(-1);\n\n return (\n <div\n {...(nativeScrollbar && { 'data-test-id': dataTestId })}\n className={cn(styles.optionsList, styles[SIZE_TO_CLASSNAME_MAP[size]], className)}\n >\n {header && (\n <div\n className={cn(styles.optionsListHeader, {\n [styles.headerHighlighted]: !scrollTop,\n })}\n onMouseEnter={resetHighlightedIndex}\n >\n {header}\n </div>\n )}\n\n {nativeScrollbar ? renderWithNativeScrollbar() : renderWithCustomScrollbar()}\n\n {showFooter && footer && (\n <div\n onMouseEnter={resetHighlightedIndex}\n className={cn(styles.optionsListFooter, footerClassName, {\n [styles.withBorder]:\n visibleOptions &&\n flatOptions.length > visibleOptions &&\n !scrollBottom,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n );\n },\n);\n"],"names":["Optgroup","DefaultOptgroup"],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,MAAM,CACL,CACT;QAEA,eAAe,GAAG,yBAAyB,EAAE,GAAG,yBAAyB,EAAE;AAE3E,QAAA,UAAU,IAAI,MAAM,KACjB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,YAAY,EAAE,qBAAqB,EACnC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,GAAA,EAAA,GAAA,EAAA;AACnD,gBAAA,EAAA,CAAC,MAAM,CAAC,UAAU,CAAA,GACd,cAAc;oBACd,WAAW,CAAC,MAAM,GAAG,cAAc;AACnC,oBAAA,CAAC,YAAY;AACnB,gBAAA,EAAA,EAAA,EAAA,EAED,MAAM,CACL,CACT,CACC;AAEd,CAAC;;;;"}
@@ -10,34 +10,47 @@
10
10
  --gap-16: var(--gap-m);
11
11
  --gap-24: var(--gap-xl);
12
12
  } :root {
13
+ --select-options-list-scrollbar-gap: var(--gap-12);
13
14
  --select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
14
- } .select__optionsList_6zwqx {
15
+ } .select__optionsList_1709v {
15
16
  width: 100%;
16
17
  outline: none;
17
18
  box-sizing: border-box;
18
19
  position: relative;
19
- } .select__optionsListHeader_6zwqx {
20
+ } .select__optionsList_1709v .select__scrollable_1709v {
21
+ overflow: auto;
22
+ width: 100%;
23
+ } .select__optionsList_1709v .select__scrollable_1709v .select__verticalBar_1709v.select__verticalBar_1709v {
24
+ top: var(--select-options-list-scrollbar-gap);
25
+ height: calc(100% - 2 * var(--select-options-list-scrollbar-gap));
26
+ } .select__optionsList_1709v .select__scrollable_1709v .select__verticalBar_1709v.select__verticalBar_1709v.select__verticalBarWithHeader_1709v {
27
+ top: 0;
28
+ height: calc(100% - var(--select-options-list-scrollbar-gap));
29
+ } .select__optionsList_1709v .select__scrollable_1709v .select__verticalBar_1709v.select__verticalBar_1709v.select__verticalBarWithFooter_1709v {
30
+ top: var(--select-options-list-scrollbar-gap);
31
+ height: calc(100% - var(--select-options-list-scrollbar-gap));
32
+ } .select__optionsList_1709v .select__scrollable_1709v .select__verticalBar_1709v.select__verticalBar_1709v.select__verticalBarWithHeader_1709v.select__verticalBarWithFooter_1709v {
33
+ top: 0;
34
+ height: 100%;
35
+ } .select__optionsListHeader_1709v {
20
36
  box-sizing: border-box;
21
37
  border-bottom: 1px solid transparent;
22
38
  transition: border-color 0.2s ease;
23
- } .select__optionsListHeader_6zwqx.select__headerHighlighted_6zwqx {
39
+ } .select__optionsListHeader_1709v.select__headerHighlighted_1709v {
24
40
  border-bottom-color: var(--color-light-neutral-300);
25
- } .select__optionsListFooter_6zwqx {
41
+ } .select__optionsListFooter_1709v {
26
42
  position: sticky;
27
43
  bottom: var(--gap-0);
28
44
  box-sizing: border-box;
29
45
  border-top: 1px solid transparent;
30
46
  transition: border-color 0.2s ease;
31
- } .select__optionsListFooter_6zwqx.select__withBorder_6zwqx {
47
+ } .select__optionsListFooter_1709v.select__withBorder_1709v {
32
48
  border-top-color: var(--color-light-neutral-300);
33
- } .select__scrollable_6zwqx {
34
- overflow: auto;
35
- width: 100%;
36
- } .select__mask_6zwqx {
49
+ } .select__mask_1709v {
37
50
  min-width: 4000px;
38
- } .select__emptyPlaceholder_6zwqx {
51
+ } .select__emptyPlaceholder_1709v {
39
52
  padding: var(--gap-16) var(--gap-12);
40
53
  color: var(--select-options-list-empty-placeholder-color);
41
- } .select__size-72_6zwqx .select__emptyPlaceholder_6zwqx {
54
+ } .select__size-72_1709v .select__emptyPlaceholder_1709v {
42
55
  padding: var(--gap-24) var(--gap-16);
43
56
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"optionsList":"select__optionsList_6zwqx","optionsListHeader":"select__optionsListHeader_6zwqx","headerHighlighted":"select__headerHighlighted_6zwqx","optionsListFooter":"select__optionsListFooter_6zwqx","withBorder":"select__withBorder_6zwqx","scrollable":"select__scrollable_6zwqx","mask":"select__mask_6zwqx","emptyPlaceholder":"select__emptyPlaceholder_6zwqx","size-72":"select__size-72_6zwqx"};
3
+ var styles = {"optionsList":"select__optionsList_1709v","scrollable":"select__scrollable_1709v","verticalBar":"select__verticalBar_1709v","verticalBarWithHeader":"select__verticalBarWithHeader_1709v","verticalBarWithFooter":"select__verticalBarWithFooter_1709v","optionsListHeader":"select__optionsListHeader_1709v","headerHighlighted":"select__headerHighlighted_1709v","optionsListFooter":"select__optionsListFooter_1709v","withBorder":"select__withBorder_1709v","mask":"select__mask_1709v","emptyPlaceholder":"select__emptyPlaceholder_1709v","size-72":"select__size-72_1709v"};
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/options-list/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../../vars.css';\n\n.optionsList {\n width: 100%;\n outline: none;\n box-sizing: border-box;\n position: relative;\n}\n\n.optionsListHeader {\n box-sizing: border-box;\n border-bottom: 1px solid transparent;\n transition: border-color 0.2s ease;\n\n &.headerHighlighted {\n border-bottom-color: var(--color-light-neutral-300);\n }\n}\n\n.optionsListFooter {\n position: sticky;\n bottom: var(--gap-0);\n box-sizing: border-box;\n border-top: 1px solid transparent;\n transition: border-color 0.2s ease;\n\n &.withBorder {\n border-top-color: var(--color-light-neutral-300);\n }\n}\n\n.scrollable {\n overflow: auto;\n width: 100%;\n}\n\n.mask {\n min-width: 4000px;\n}\n\n.emptyPlaceholder {\n padding: var(--gap-16) var(--gap-12);\n color: var(--select-options-list-empty-placeholder-color);\n}\n\n.size-72 .emptyPlaceholder {\n padding: var(--gap-24) var(--gap-16);\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,aAAa,CAAC,2BAA2B,CAAC,mBAAmB,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,iCAAiC,CAAC,YAAY,CAAC,0BAA0B,CAAC,YAAY,CAAC,0BAA0B,CAAC,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,SAAS,CAAC,uBAAuB,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/options-list/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../../vars.css';\n\n.optionsList {\n width: 100%;\n outline: none;\n box-sizing: border-box;\n position: relative;\n\n & .scrollable {\n overflow: auto;\n width: 100%;\n\n & .verticalBar.verticalBar {\n top: var(--select-options-list-scrollbar-gap);\n height: calc(100% - 2 * var(--select-options-list-scrollbar-gap));\n\n &.verticalBarWithHeader {\n top: 0;\n height: calc(100% - var(--select-options-list-scrollbar-gap));\n }\n\n &.verticalBarWithFooter {\n top: var(--select-options-list-scrollbar-gap);\n height: calc(100% - var(--select-options-list-scrollbar-gap));\n }\n\n &.verticalBarWithHeader.verticalBarWithFooter {\n top: 0;\n height: 100%;\n }\n }\n }\n}\n\n.optionsListHeader {\n box-sizing: border-box;\n border-bottom: 1px solid transparent;\n transition: border-color 0.2s ease;\n\n &.headerHighlighted {\n border-bottom-color: var(--color-light-neutral-300);\n }\n}\n\n.optionsListFooter {\n position: sticky;\n bottom: var(--gap-0);\n box-sizing: border-box;\n border-top: 1px solid transparent;\n transition: border-color 0.2s ease;\n\n &.withBorder {\n border-top-color: var(--color-light-neutral-300);\n }\n}\n\n.mask {\n min-width: 4000px;\n}\n\n.emptyPlaceholder {\n padding: var(--gap-16) var(--gap-12);\n color: var(--select-options-list-empty-placeholder-color);\n}\n\n.size-72 .emptyPlaceholder {\n padding: var(--gap-24) var(--gap-16);\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,aAAa,CAAC,2BAA2B,CAAC,YAAY,CAAC,0BAA0B,CAAC,aAAa,CAAC,2BAA2B,CAAC,uBAAuB,CAAC,qCAAqC,CAAC,uBAAuB,CAAC,qCAAqC,CAAC,mBAAmB,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,iCAAiC,CAAC,YAAY,CAAC,0BAA0B,CAAC,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,SAAS,CAAC,uBAAuB,CAAC;;;;"}
@@ -1,3 +1,3 @@
1
- .select__component_16ak6.select__component_16ak6 {
1
+ .select__component_7aknm.select__component_7aknm {
2
2
  width: auto;
3
3
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"select__component_16ak6"};
3
+ var styles = {"component":"select__component_7aknm"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -17,35 +17,35 @@
17
17
 
18
18
  --select-option-left-padding: var(--gap-12);
19
19
  --select-option-right-padding: var(--gap-12);
20
- } .select__virtualOptionsList_yyfv8 {
20
+ } .select__virtualOptionsList_16cps {
21
21
  width: 100%;
22
22
  outline: none;
23
23
  box-sizing: border-box;
24
24
  position: sticky;
25
25
  justify-content: space-between;
26
- } .select__virtualOptionsListHeader_yyfv8 {
26
+ } .select__virtualOptionsListHeader_16cps {
27
27
  box-sizing: border-box;
28
28
  border-bottom: 1px solid var(--color-light-neutral-300);
29
- } .select__virtualOptionsListFooter_yyfv8 {
29
+ } .select__virtualOptionsListFooter_16cps {
30
30
  position: sticky;
31
31
  bottom: var(--gap-0);
32
32
  box-sizing: border-box;
33
33
  border-top: 1px solid transparent;
34
- } .select__virtualOptionsListFooter_yyfv8.select__withBorder_yyfv8 {
34
+ } .select__virtualOptionsListFooter_16cps.select__withBorder_16cps {
35
35
  border-top: 1px solid var(--color-light-neutral-300);
36
- } .select__scrollable_yyfv8 {
36
+ } .select__scrollable_16cps {
37
37
  position: relative;
38
38
  overflow: auto;
39
39
  width: 100%;
40
- } .select__inner_yyfv8 {
40
+ } .select__inner_16cps {
41
41
  position: relative;
42
42
  width: 100%;
43
- } .select__virtualRow_yyfv8 {
43
+ } .select__virtualRow_16cps {
44
44
  position: absolute;
45
45
  top: var(--gap-0);
46
46
  left: var(--gap-0);
47
47
  width: 100%;
48
- } .select__virtualRow_yyfv8:before {
48
+ } .select__virtualRow_16cps:before {
49
49
  content: '';
50
50
  position: absolute;
51
51
  z-index: 1;
@@ -55,15 +55,15 @@
55
55
  height: 1px;
56
56
  background: var(--select-option-divider-background);
57
57
  display: var(--select-option-divider-display);
58
- } .select__virtualRow_yyfv8:first-child:before {
58
+ } .select__virtualRow_16cps:first-child:before {
59
59
  display: none;
60
- } .select__highlighted_yyfv8:before,
61
- .select__highlighted_yyfv8 + .select__virtualRow_yyfv8:before {
60
+ } .select__highlighted_16cps:before,
61
+ .select__highlighted_16cps + .select__virtualRow_16cps:before {
62
62
  display: none;
63
- } .select__emptyPlaceholder_yyfv8 {
63
+ } .select__emptyPlaceholder_16cps {
64
64
  padding: var(--gap-16) var(--gap-12);
65
65
  color: var(--select-options-list-empty-placeholder-color);
66
66
  flex: 1;
67
- } .select__size-72_yyfv8 .select__emptyPlaceholder_yyfv8 {
67
+ } .select__size-72_16cps .select__emptyPlaceholder_16cps {
68
68
  padding: var(--gap-24) var(--gap-16);
69
69
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"virtualOptionsList":"select__virtualOptionsList_yyfv8","virtualOptionsListHeader":"select__virtualOptionsListHeader_yyfv8","virtualOptionsListFooter":"select__virtualOptionsListFooter_yyfv8","withBorder":"select__withBorder_yyfv8","scrollable":"select__scrollable_yyfv8","inner":"select__inner_yyfv8","virtualRow":"select__virtualRow_yyfv8","highlighted":"select__highlighted_yyfv8","emptyPlaceholder":"select__emptyPlaceholder_yyfv8","size-72":"select__size-72_yyfv8"};
3
+ var styles = {"virtualOptionsList":"select__virtualOptionsList_16cps","virtualOptionsListHeader":"select__virtualOptionsListHeader_16cps","virtualOptionsListFooter":"select__virtualOptionsListFooter_16cps","withBorder":"select__withBorder_16cps","scrollable":"select__scrollable_16cps","inner":"select__inner_16cps","virtualRow":"select__virtualRow_16cps","highlighted":"select__highlighted_16cps","emptyPlaceholder":"select__emptyPlaceholder_16cps","size-72":"select__size-72_16cps"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -9,12 +9,12 @@
9
9
  --gap-16: var(--gap-m);
10
10
  } :root {
11
11
  --select-option-list-footer-button-gap: var(--gap-8);
12
- } .select__footer_knau3 {
12
+ } .select__footer_17zxh {
13
13
  background-color: var(--color-light-base-bg-primary);
14
14
  padding: var(--gap-12);
15
15
  outline: none;
16
- } .select__footer_knau3.select__size-72_knau3 {
16
+ } .select__footer_17zxh.select__size-72_17zxh {
17
17
  padding: var(--gap-12) var(--gap-16);
18
- } .select__footer_knau3 > .select__button_knau3 + .select__button_knau3 {
18
+ } .select__footer_17zxh > .select__button_17zxh + .select__button_17zxh {
19
19
  margin-left: var(--select-option-list-footer-button-gap);
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"footer":"select__footer_knau3","size-72":"select__size-72_knau3","button":"select__button_knau3"};
3
+ var styles = {"footer":"select__footer_17zxh","size-72":"select__size-72_17zxh","button":"select__button_17zxh"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -5,10 +5,10 @@
5
5
  --gap-8: var(--gap-xs);
6
6
  --gap-12: var(--gap-s);
7
7
  --gap-16: var(--gap-m);
8
- } .select__desktop_156uq {
8
+ } .select__desktop_55q7s {
9
9
  padding: var(--gap-12);
10
- } .select__desktop_156uq.select__size-72_156uq {
10
+ } .select__desktop_55q7s.select__size-72_55q7s {
11
11
  padding-left: var(--gap-16);
12
- } .select__mobile_156uq {
12
+ } .select__mobile_55q7s {
13
13
  padding: var(--gap-12) var(--gap-8);
14
14
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"desktop":"select__desktop_156uq","size-72":"select__size-72_156uq","mobile":"select__mobile_156uq"};
3
+ var styles = {"desktop":"select__desktop_55q7s","size-72":"select__size-72_55q7s","mobile":"select__mobile_55q7s"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,4 +1,4 @@
1
- .select__skeleton_17vfu {
1
+ .select__skeleton_kjkl3 {
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_17vfu"};
3
+ var styles = {"skeleton":"select__skeleton_kjkl3"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -6,7 +6,7 @@
6
6
  } :root {
7
7
  --select-arrow-color: var(--color-light-neutral-translucent-700);
8
8
  --select-arrow-disabled-color: var(--color-light-neutral-translucent-500);
9
- } .select__arrow_1p3an {
9
+ } .select__arrow_y7g99 {
10
10
  display: block;
11
11
  width: 24px;
12
12
  height: 24px;
@@ -15,13 +15,13 @@
15
15
  transition:
16
16
  transform 0.15s ease-in-out,
17
17
  opacity 0.2s ease;
18
- } .select__arrow_1p3an.select__disabled_1p3an {
18
+ } .select__arrow_y7g99.select__disabled_y7g99 {
19
19
  color: var(--select-arrow-disabled-color);
20
- } .select__arrow_1p3an.select__size-40_1p3an {
20
+ } .select__arrow_y7g99.select__size-40_y7g99 {
21
21
  width: auto;
22
22
  width: initial;
23
23
  height: auto;
24
24
  height: initial;
25
- } .select__open_1p3an {
25
+ } .select__open_y7g99 {
26
26
  transform: var(--arrow-transform);
27
27
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"arrow":"select__arrow_1p3an","disabled":"select__disabled_1p3an","size-40":"select__size-40_1p3an","open":"select__open_1p3an"};
3
+ const styles = {"arrow":"select__arrow_y7g99","disabled":"select__disabled_y7g99","size-40":"select__size-40_y7g99","open":"select__open_y7g99"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,15 +1,15 @@
1
- .select__checkmark_5okzd {
1
+ .select__checkmark_1x3j0 {
2
2
  flex-shrink: 0;
3
3
  box-sizing: border-box;
4
- } .select__checkmark_5okzd.select__start_5okzd {
4
+ } .select__checkmark_1x3j0.select__start_1x3j0 {
5
5
  align-self: start;
6
- } .select__checkmark_5okzd.select__center_5okzd {
6
+ } .select__checkmark_1x3j0.select__center_1x3j0 {
7
7
  align-self: center;
8
- } .select__single_5okzd {
8
+ } .select__single_1x3j0 {
9
9
  display: flex;
10
10
  align-items: center;
11
11
  justify-content: center;
12
12
  opacity: 0;
13
- } .select__single_5okzd.select__selected_5okzd {
13
+ } .select__single_1x3j0.select__selected_1x3j0 {
14
14
  opacity: 1;
15
15
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"checkmark":"select__checkmark_5okzd","start":"select__start_5okzd","center":"select__center_5okzd","single":"select__single_5okzd","selected":"select__selected_5okzd"};
3
+ const styles = {"checkmark":"select__checkmark_1x3j0","start":"select__start_1x3j0","center":"select__center_1x3j0","single":"select__single_1x3j0","selected":"select__selected_1x3j0"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -26,7 +26,7 @@
26
26
  --select-option-hover-color: var(--color-light-text-primary);
27
27
  --select-option-active-color: var(--color-light-text-primary);
28
28
  --select-option-disabled-color: var(--color-light-text-secondary);
29
- } .select__option_cfbis {
29
+ } .select__option_zry5r {
30
30
  font-size: 16px;
31
31
  line-height: 20px;
32
32
  font-weight: 400;
@@ -40,41 +40,41 @@
40
40
  position: relative;
41
41
  cursor: pointer;
42
42
  min-height: var(--size-s-height);
43
- } .select__option_cfbis:not(.select__disabled_cfbis):active {
43
+ } .select__option_zry5r:not(.select__disabled_zry5r):active {
44
44
  background: var(--select-option-active-background);
45
45
  color: var(--select-option-active-color);
46
- } .select__option_cfbis.select__checkmarkBefore_cfbis {
46
+ } .select__option_zry5r.select__checkmarkBefore_zry5r {
47
47
  padding: var(--gap-0) var(--gap-0) var(--gap-0) var(--gap-12);
48
- } .select__option_cfbis.select__checkmarkBefore_cfbis.select__mobile_cfbis {
48
+ } .select__option_zry5r.select__checkmarkBefore_zry5r.select__mobile_zry5r {
49
49
  padding-left: var(--gap-16);
50
- } .select__option_cfbis.select__checkmarkAfter_cfbis.select__checkmarkAfter_cfbis {
50
+ } .select__option_zry5r.select__checkmarkAfter_zry5r.select__checkmarkAfter_zry5r {
51
51
  padding: var(--gap-0) var(--gap-12) var(--gap-0) var(--gap-0);
52
- } .select__option_cfbis.select__checkmarkAfter_cfbis.select__checkmarkAfter_cfbis.select__size-72_cfbis {
52
+ } .select__option_zry5r.select__checkmarkAfter_zry5r.select__checkmarkAfter_zry5r.select__size-72_zry5r {
53
53
  padding-right: var(--gap-16);
54
- } .select__option_cfbis.select__checkmarkAfter_cfbis.select__checkmarkAfter_cfbis.select__mobile_cfbis {
54
+ } .select__option_zry5r.select__checkmarkAfter_zry5r.select__checkmarkAfter_zry5r.select__mobile_zry5r {
55
55
  padding-right: var(--gap-20);
56
- } .select__option_cfbis.select__textContent_cfbis {
56
+ } .select__option_zry5r.select__textContent_zry5r {
57
57
  padding: var(--gap-12);
58
- } .select__option_cfbis.select__textContent_cfbis.select__size-72_cfbis {
58
+ } .select__option_zry5r.select__textContent_zry5r.select__size-72_zry5r {
59
59
  padding-left: var(--gap-16);
60
60
  padding-right: var(--gap-16);
61
- } .select__option_cfbis.select__textContent_cfbis.select__mobile_cfbis {
61
+ } .select__option_zry5r.select__textContent_zry5r.select__mobile_zry5r {
62
62
  padding: var(--gap-16) var(--gap-20) var(--gap-16) var(--gap-16);
63
- } .select__selected_cfbis {
63
+ } .select__selected_zry5r {
64
64
  background: var(--select-option-selected-background);
65
65
  color: var(--select-option-selected-color);
66
66
  cursor: default;
67
- } .select__highlighted_cfbis {
67
+ } .select__highlighted_zry5r {
68
68
  background: var(--select-option-hover-background);
69
69
  color: var(--select-option-hover-color);
70
- } .select__disabled_cfbis {
70
+ } .select__disabled_zry5r {
71
71
  cursor: var(--disabled-cursor);
72
72
  background: var(--select-option-disabled-background);
73
73
  color: var(--select-option-disabled-color);
74
- } .select__checkmarkBeforeContent_cfbis {
74
+ } .select__checkmarkBeforeContent_zry5r {
75
75
  margin-right: var(--gap-12);
76
- } .select__checkmarkAfterContent_cfbis {
76
+ } .select__checkmarkAfterContent_zry5r {
77
77
  margin-left: var(--gap-12);
78
- } .select__content_cfbis {
78
+ } .select__content_zry5r {
79
79
  flex: 1;
80
80
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"option":"select__option_cfbis","disabled":"select__disabled_cfbis","checkmarkBefore":"select__checkmarkBefore_cfbis","mobile":"select__mobile_cfbis","checkmarkAfter":"select__checkmarkAfter_cfbis","size-72":"select__size-72_cfbis","textContent":"select__textContent_cfbis","selected":"select__selected_cfbis","highlighted":"select__highlighted_cfbis","checkmarkBeforeContent":"select__checkmarkBeforeContent_cfbis","checkmarkAfterContent":"select__checkmarkAfterContent_cfbis","content":"select__content_cfbis"};
3
+ const styles = {"option":"select__option_zry5r","disabled":"select__disabled_zry5r","checkmarkBefore":"select__checkmarkBefore_zry5r","mobile":"select__mobile_zry5r","checkmarkAfter":"select__checkmarkAfter_zry5r","size-72":"select__size-72_zry5r","textContent":"select__textContent_zry5r","selected":"select__selected_zry5r","highlighted":"select__highlighted_zry5r","checkmarkBeforeContent":"select__checkmarkBeforeContent_zry5r","checkmarkAfterContent":"select__checkmarkAfterContent_zry5r","content":"select__content_zry5r"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map