@alfalab/core-components-select 17.19.0 → 17.20.1
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.
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +5 -5
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +6 -6
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +15 -15
- package/components/base-select/Component.js +2 -2
- package/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/components/base-select/index.css +11 -11
- package/components/base-select/mobile.css +12 -12
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/checkmark-mobile/Component.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/clear-button/Component.js +1 -1
- package/components/clear-button/index.css +7 -7
- package/components/field/Component.js +1 -1
- package/components/field/index.css +14 -14
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +5 -5
- package/components/index.js +6 -2
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.d.ts +16 -3
- package/components/option/Component.js +4 -9
- package/components/option/Component.responsive.d.ts +5 -0
- package/components/option/Component.responsive.js +19 -0
- package/components/option/desktop/Component.d.ts +5 -0
- package/components/option/desktop/Component.js +22 -0
- package/components/option/desktop/index.css +135 -0
- package/components/option/index.d.ts +3 -1
- package/components/option/index.js +6 -2
- package/components/option/mobile/Component.d.ts +5 -0
- package/components/option/mobile/Component.js +22 -0
- package/components/option/{index.css → mobile/index.css} +19 -19
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +11 -11
- package/components/search/Component.js +1 -1
- package/components/search/index.css +2 -2
- package/components/virtual-options-list/Component.js +8 -4
- package/components/virtual-options-list/index.css +15 -15
- package/cssm/components/index.js +6 -2
- package/cssm/components/option/Component.d.ts +16 -3
- package/cssm/components/option/Component.js +10 -14
- package/cssm/components/option/Component.responsive.d.ts +5 -0
- package/cssm/components/option/Component.responsive.js +19 -0
- package/cssm/components/option/desktop/Component.d.ts +5 -0
- package/cssm/components/option/desktop/Component.js +21 -0
- package/cssm/components/option/desktop/index.module.css +134 -0
- package/cssm/components/option/index.d.ts +3 -1
- package/cssm/components/option/index.js +6 -2
- package/cssm/components/option/mobile/Component.d.ts +5 -0
- package/cssm/components/option/mobile/Component.js +21 -0
- package/cssm/components/option/mobile/index.module.css +128 -0
- package/cssm/components/virtual-options-list/Component.js +7 -3
- package/cssm/desktop/Component.desktop.js +11 -2
- package/{hook-639eaf6a.js → cssm/hook-928265a3.js} +0 -1
- package/{esm/hook-b8d44131.d.ts → cssm/hook-94ef1330.d.ts} +0 -1
- package/cssm/mobile/Component.mobile.js +12 -3
- package/cssm/presets/index.d.ts +1 -1
- package/cssm/presets/index.js +1 -1
- package/cssm/presets/useLazyLoading/hook.js +11 -2
- package/cssm/presets/useSelectWithApply/hook.js +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/cssm/presets/useSelectWithLoading/hook.js +11 -2
- package/cssm/shared/index.js +7 -3
- package/cssm/typings.d.ts +6 -4
- package/desktop/Component.desktop.js +7 -2
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +5 -5
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +6 -6
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +15 -15
- package/esm/components/base-select/Component.js +2 -2
- package/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/esm/components/base-select/index.css +11 -11
- package/esm/components/base-select/mobile.css +12 -12
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/checkmark-mobile/Component.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/clear-button/Component.js +1 -1
- package/esm/components/clear-button/index.css +7 -7
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +14 -14
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +5 -5
- package/esm/components/index.js +3 -1
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.d.ts +16 -3
- package/esm/components/option/Component.js +6 -11
- package/esm/components/option/Component.responsive.d.ts +5 -0
- package/esm/components/option/Component.responsive.js +11 -0
- package/esm/components/option/desktop/Component.d.ts +5 -0
- package/esm/components/option/desktop/Component.js +14 -0
- package/esm/components/option/desktop/index.css +135 -0
- package/esm/components/option/index.d.ts +3 -1
- package/esm/components/option/index.js +3 -1
- package/esm/components/option/mobile/Component.d.ts +5 -0
- package/esm/components/option/mobile/Component.js +14 -0
- package/esm/components/option/{index.css → mobile/index.css} +19 -19
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +11 -11
- package/esm/components/search/Component.js +1 -1
- package/esm/components/search/index.css +2 -2
- package/esm/components/virtual-options-list/Component.js +8 -4
- package/esm/components/virtual-options-list/index.css +15 -15
- package/esm/desktop/Component.desktop.js +8 -3
- package/{hook-b8d44131.d.ts → esm/hook-94ef1330.d.ts} +0 -1
- package/esm/{hook-1ba9fd0a.js → hook-d1496a1f.js} +0 -1
- package/esm/{list-popover-desktop-3f111509.js → list-popover-desktop-2ecb3c74.js} +1 -1
- package/esm/mobile/Component.mobile.js +9 -4
- package/esm/mobile.module-0044dacb.js +4 -0
- package/esm/presets/index.d.ts +1 -1
- package/esm/presets/index.js +1 -1
- package/esm/presets/useLazyLoading/hook.js +8 -3
- package/esm/presets/useSelectWithApply/hook.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/esm/presets/useSelectWithLoading/hook.js +9 -4
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/shared/index.js +4 -2
- package/esm/typings.d.ts +6 -4
- package/{cssm/hook-08576e87.js → hook-4d462686.js} +0 -1
- package/{modern/hook-b8d44131.d.ts → hook-94ef1330.d.ts} +0 -1
- package/{list-popover-desktop-a809f4f3.js → list-popover-desktop-5ac1964a.js} +1 -1
- package/mobile/Component.mobile.js +8 -3
- package/mobile.module-10633efa.js +6 -0
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +5 -5
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +6 -6
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +15 -15
- package/modern/components/base-select/Component.js +2 -2
- package/modern/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +1 -1
- package/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/modern/components/base-select/index.css +11 -11
- package/modern/components/base-select/mobile.css +12 -12
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/checkmark-mobile/Component.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/clear-button/Component.js +1 -1
- package/modern/components/clear-button/index.css +7 -7
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +14 -14
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +5 -5
- package/modern/components/index.js +3 -1
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.d.ts +16 -3
- package/modern/components/option/Component.js +4 -9
- package/modern/components/option/Component.responsive.d.ts +5 -0
- package/modern/components/option/Component.responsive.js +7 -0
- package/modern/components/option/desktop/Component.d.ts +5 -0
- package/modern/components/option/desktop/Component.js +10 -0
- package/modern/components/option/desktop/index.css +135 -0
- package/modern/components/option/index.d.ts +3 -1
- package/modern/components/option/index.js +3 -1
- package/modern/components/option/mobile/Component.d.ts +5 -0
- package/modern/components/option/mobile/Component.js +10 -0
- package/modern/components/option/{index.css → mobile/index.css} +19 -19
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +11 -11
- package/modern/components/search/Component.js +1 -1
- package/modern/components/search/index.css +2 -2
- package/modern/components/virtual-options-list/Component.js +3 -3
- package/modern/components/virtual-options-list/index.css +15 -15
- package/modern/desktop/Component.desktop.js +7 -2
- package/{cssm/hook-b8d44131.d.ts → modern/hook-94ef1330.d.ts} +0 -1
- package/{moderncssm/hook-50057c35.js → modern/hook-e1bb3e1e.js} +0 -1
- package/modern/{list-popover-desktop-6d15956b.js → list-popover-desktop-edd27f5e.js} +1 -1
- package/modern/mobile/Component.mobile.js +9 -4
- package/modern/mobile.module-b160a7de.js +4 -0
- package/modern/presets/index.d.ts +1 -1
- package/modern/presets/index.js +1 -1
- package/modern/presets/useLazyLoading/hook.js +8 -3
- package/modern/presets/useSelectWithApply/hook.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/modern/presets/useSelectWithLoading/hook.js +9 -4
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/shared/index.js +4 -2
- package/modern/typings.d.ts +6 -4
- package/moderncssm/components/index.js +3 -1
- package/moderncssm/components/option/Component.d.ts +16 -3
- package/moderncssm/components/option/Component.js +4 -7
- package/moderncssm/components/option/Component.responsive.d.ts +5 -0
- package/moderncssm/components/option/Component.responsive.js +7 -0
- package/moderncssm/components/option/desktop/Component.d.ts +5 -0
- package/moderncssm/components/option/desktop/Component.js +8 -0
- package/moderncssm/components/option/desktop/index.module.css +118 -0
- package/moderncssm/components/option/index.d.ts +3 -1
- package/moderncssm/components/option/index.js +3 -1
- package/moderncssm/components/option/mobile/Component.d.ts +5 -0
- package/moderncssm/components/option/mobile/Component.js +8 -0
- package/moderncssm/components/option/mobile/index.module.css +110 -0
- package/moderncssm/components/virtual-options-list/Component.js +2 -2
- package/moderncssm/desktop/Component.desktop.js +11 -2
- package/{modern/hook-f9dc9773.js → moderncssm/hook-0c8b8277.js} +0 -1
- package/moderncssm/hook-94ef1330.d.ts +111 -0
- package/moderncssm/mobile/Component.mobile.js +13 -4
- package/moderncssm/presets/index.d.ts +1 -1
- package/moderncssm/presets/index.js +1 -1
- package/moderncssm/presets/useLazyLoading/hook.js +12 -3
- package/moderncssm/presets/useSelectWithApply/hook.js +1 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/moderncssm/presets/useSelectWithLoading/hook.js +12 -3
- package/moderncssm/shared/index.js +4 -2
- package/moderncssm/typings.d.ts +6 -4
- package/package.json +1 -1
- package/presets/index.d.ts +1 -1
- package/presets/index.js +1 -1
- package/presets/useLazyLoading/hook.js +7 -2
- package/presets/useSelectWithApply/hook.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/presets/useSelectWithLoading/hook.js +8 -3
- package/presets/useSelectWithLoading/index.css +2 -2
- package/shared/index.js +7 -3
- package/src/components/option/Component.responsive.tsx +9 -0
- package/src/components/option/Component.tsx +17 -6
- package/src/components/option/desktop/Component.tsx +11 -0
- package/src/components/option/desktop/index.module.css +13 -0
- package/src/components/option/index.ts +3 -1
- package/src/components/option/mobile/Component.tsx +11 -0
- package/src/components/option/mobile/index.module.css +3 -0
- package/src/components/virtual-options-list/Component.tsx +6 -3
- package/src/presets/useSelectWithApply/hook.tsx +0 -1
- package/src/typings.ts +4 -2
- package/typings.d.ts +6 -4
- package/esm/mobile.module-8b1bdca7.js +0 -4
- package/mobile.module-e1d050c2.js +0 -6
- package/modern/mobile.module-13db2bf1.js +0 -4
- package/moderncssm/hook-b8d44131.d.ts +0 -112
- /package/cssm/{hook-08576e87.d.ts → hook-928265a3.d.ts} +0 -0
- /package/esm/{hook-1ba9fd0a.d.ts → hook-d1496a1f.d.ts} +0 -0
- /package/esm/{list-popover-desktop-3f111509.d.ts → list-popover-desktop-2ecb3c74.d.ts} +0 -0
- /package/{hook-639eaf6a.d.ts → hook-4d462686.d.ts} +0 -0
- /package/{list-popover-desktop-a809f4f3.d.ts → list-popover-desktop-5ac1964a.d.ts} +0 -0
- /package/modern/{hook-f9dc9773.d.ts → hook-e1bb3e1e.d.ts} +0 -0
- /package/modern/{list-popover-desktop-6d15956b.d.ts → list-popover-desktop-edd27f5e.d.ts} +0 -0
- /package/moderncssm/{hook-50057c35.d.ts → hook-0c8b8277.d.ts} +0 -0
package/presets/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
|
|
6
6
|
var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
|
|
7
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-
|
|
7
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-4d462686.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -5,7 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var coreComponentsSkeleton = require('@alfalab/core-components-skeleton');
|
|
8
|
-
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('@alfalab/core-components-badge');
|
|
10
|
+
require('@alfalab/core-components-checkbox');
|
|
11
|
+
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
12
|
+
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
13
|
+
var components_option_Component_responsive = require('../../components/option/Component.responsive.js');
|
|
9
14
|
require('intersection-observer');
|
|
10
15
|
|
|
11
16
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -41,7 +46,7 @@ var skeletonStyle = {
|
|
|
41
46
|
width: '50%',
|
|
42
47
|
};
|
|
43
48
|
function useLazyLoading(_a) {
|
|
44
|
-
var _b = _a.limit, limit = _b === void 0 ? 10 : _b, _c = _a.initialOffset, initialOffset = _c === void 0 ? 0 : _c, optionsFetcher = _a.optionsFetcher, _d = _a.skeleton, skeleton = _d === void 0 ? React__default.default.createElement(coreComponentsSkeleton.Skeleton, { style: skeletonStyle, visible: true }) : _d, _e = _a.Option, Option = _e === void 0 ?
|
|
49
|
+
var _b = _a.limit, limit = _b === void 0 ? 10 : _b, _c = _a.initialOffset, initialOffset = _c === void 0 ? 0 : _c, optionsFetcher = _a.optionsFetcher, _d = _a.skeleton, skeleton = _d === void 0 ? React__default.default.createElement(coreComponentsSkeleton.Skeleton, { style: skeletonStyle, visible: true }) : _d, _e = _a.Option, Option = _e === void 0 ? components_option_Component_responsive.OptionResponsive : _e;
|
|
45
50
|
var initialOptions = [];
|
|
46
51
|
var initialLoading = false;
|
|
47
52
|
var lazyLoadingInitialState = {
|
|
@@ -6,7 +6,7 @@ require('tslib');
|
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-fast-compare');
|
|
8
8
|
require('../../utils.js');
|
|
9
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-
|
|
9
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-4d462686.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@ require('tslib');
|
|
|
6
6
|
require('react');
|
|
7
7
|
require('../../../components/options-list/Component.js');
|
|
8
8
|
require('../../../consts.js');
|
|
9
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-
|
|
9
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-4d462686.js');
|
|
10
10
|
require('./footer/Component.js');
|
|
11
11
|
require('./header/Component.js');
|
|
12
12
|
|
|
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
|
|
13
|
-
var styles = {"footer":"
|
|
13
|
+
var styles = {"footer":"select__footer_p0z7m","button":"select__button_p0z7m"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: kan21 */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-base-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
} :root {
|
|
26
26
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
27
27
|
--select-option-list-footer-button-gap: var(--gap-8);
|
|
28
|
-
} .
|
|
28
|
+
} .select__footer_p0z7m {
|
|
29
29
|
background-color: var(--color-light-base-bg-primary);
|
|
30
30
|
padding: var(--gap-12);
|
|
31
31
|
outline: none
|
|
32
|
-
} .
|
|
32
|
+
} .select__footer_p0z7m > .select__button_p0z7m + .select__button_p0z7m {
|
|
33
33
|
margin-left: var(--select-option-list-footer-button-gap);
|
|
34
34
|
}
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"desktop":"
|
|
14
|
+
var styles = {"desktop":"select__desktop_521ik","mobile":"select__mobile_521ik"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1jdr3 */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
--gap-12: var(--gap-s);
|
|
23
23
|
} :root {
|
|
24
24
|
} :root {
|
|
25
|
-
} /* сбрасывает синюю подсветку при нажатии */ .
|
|
25
|
+
} /* сбрасывает синюю подсветку при нажатии */ .select__desktop_521ik {
|
|
26
26
|
padding: var(--gap-12);
|
|
27
|
-
} .
|
|
27
|
+
} .select__mobile_521ik {
|
|
28
28
|
padding: var(--gap-12) var(--gap-8);
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../hook-
|
|
1
|
+
export * from "../../../hook-4d462686";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-
|
|
5
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-4d462686.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -5,17 +5,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var coreComponentsSkeleton = require('@alfalab/core-components-skeleton');
|
|
8
|
-
|
|
8
|
+
require('classnames');
|
|
9
|
+
require('@alfalab/core-components-badge');
|
|
10
|
+
require('@alfalab/core-components-checkbox');
|
|
11
|
+
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
12
|
+
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
13
|
+
var components_option_Component_responsive = require('../../components/option/Component.responsive.js');
|
|
9
14
|
|
|
10
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
16
|
|
|
12
17
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
18
|
|
|
14
|
-
var styles = {"skeleton":"
|
|
19
|
+
var styles = {"skeleton":"select__skeleton_1dpwp"};
|
|
15
20
|
require('./index.css')
|
|
16
21
|
|
|
17
22
|
function useSelectWithLoading(_a) {
|
|
18
|
-
var _b = _a.loading, loading = _b === void 0 ? false : _b, _c = _a.visibleOptions, visibleOptions = _c === void 0 ? 6 : _c, _d = _a.Option, Option = _d === void 0 ?
|
|
23
|
+
var _b = _a.loading, loading = _b === void 0 ? false : _b, _c = _a.visibleOptions, visibleOptions = _c === void 0 ? 6 : _c, _d = _a.Option, Option = _d === void 0 ? components_option_Component_responsive.OptionResponsive : _d;
|
|
19
24
|
var renderOption = function (props) { return (React__default.default.createElement(Option, tslib.__assign({}, props, { Checkmark: null, highlighted: loading ? false : props.highlighted }))); };
|
|
20
25
|
var options = Array(visibleOptions)
|
|
21
26
|
.fill(0)
|
package/shared/index.js
CHANGED
|
@@ -4,9 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var presets_useSelectWithLoading_hook = require('../presets/useSelectWithLoading/hook.js');
|
|
6
6
|
var presets_useLazyLoading_hook = require('../presets/useLazyLoading/hook.js');
|
|
7
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-
|
|
7
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-4d462686.js');
|
|
8
8
|
var utils = require('../utils.js');
|
|
9
|
-
var
|
|
9
|
+
var components_option_desktop_Component = require('../components/option/desktop/Component.js');
|
|
10
|
+
var components_option_mobile_Component = require('../components/option/mobile/Component.js');
|
|
11
|
+
var components_option_Component_responsive = require('../components/option/Component.responsive.js');
|
|
10
12
|
var components_baseOption_Component = require('../components/base-option/Component.js');
|
|
11
13
|
var components_optionsList_Component = require('../components/options-list/Component.js');
|
|
12
14
|
var components_virtualOptionsList_Component = require('../components/virtual-options-list/Component.js');
|
|
@@ -35,7 +37,9 @@ exports.processOptions = utils.processOptions;
|
|
|
35
37
|
exports.usePrevious = utils.usePrevious;
|
|
36
38
|
exports.useVirtualVisibleOptions = utils.useVirtualVisibleOptions;
|
|
37
39
|
exports.useVisibleOptions = utils.useVisibleOptions;
|
|
38
|
-
exports.
|
|
40
|
+
exports.OptionDesktop = components_option_desktop_Component.OptionDesktop;
|
|
41
|
+
exports.OptionMobile = components_option_mobile_Component.OptionMobile;
|
|
42
|
+
exports.Option = components_option_Component_responsive.OptionResponsive;
|
|
39
43
|
exports.BaseOption = components_baseOption_Component.BaseOption;
|
|
40
44
|
exports.OptionsList = components_optionsList_Component.OptionsList;
|
|
41
45
|
exports.VirtualOptionsList = components_virtualOptionsList_Component.VirtualOptionsList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import type { OptionProps } from '../../typings';
|
|
4
|
+
|
|
5
|
+
import { OptionDesktop } from './desktop/Component'
|
|
6
|
+
import { OptionMobile } from './mobile/Component'
|
|
7
|
+
|
|
8
|
+
export const OptionResponsive = ({mobile, ...props}: OptionProps) =>
|
|
9
|
+
mobile ? <OptionMobile {...props} /> : <OptionDesktop {...props} />
|
|
@@ -2,13 +2,23 @@ import React, { FC, isValidElement } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
4
|
import { SIZE_TO_CLASSNAME_MAP } from '../../consts';
|
|
5
|
-
import {
|
|
6
|
-
import { Checkmark as DefaultCheckMark } from '../checkmark';
|
|
7
|
-
import { Checkmark as DefaultMobileCheckmark } from '../checkmark-mobile';
|
|
5
|
+
import { OptionCommonProps } from '../../typings';
|
|
8
6
|
|
|
9
|
-
import
|
|
7
|
+
import type stylesDesktop from './desktop/index.module.css';
|
|
8
|
+
import type stylesMobile from './mobile/index.module.css';
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
type OptionPrivateProps = {
|
|
11
|
+
/**
|
|
12
|
+
* Мобильная версия option.
|
|
13
|
+
*/
|
|
14
|
+
mobile: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Стили
|
|
17
|
+
*/
|
|
18
|
+
styles: typeof stylesDesktop | typeof stylesMobile;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const OptionBase: FC<OptionCommonProps & OptionPrivateProps> = ({
|
|
12
22
|
size = 48,
|
|
13
23
|
className,
|
|
14
24
|
option,
|
|
@@ -18,9 +28,10 @@ export const Option: FC<OptionProps> = ({
|
|
|
18
28
|
disabled,
|
|
19
29
|
multiple,
|
|
20
30
|
mobile,
|
|
21
|
-
Checkmark
|
|
31
|
+
Checkmark,
|
|
22
32
|
innerProps,
|
|
23
33
|
dataTestId,
|
|
34
|
+
styles,
|
|
24
35
|
}) => {
|
|
25
36
|
const content = children || option.content || option.key;
|
|
26
37
|
const { showCheckMark = true } = option;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import type { OptionCommonProps } from '../../../typings';
|
|
4
|
+
import { Checkmark as DefaultCheckMark } from '../../checkmark';
|
|
5
|
+
import { OptionBase } from '../Component';
|
|
6
|
+
|
|
7
|
+
import styles from './index.module.css';
|
|
8
|
+
|
|
9
|
+
export const OptionDesktop = ({ Checkmark = DefaultCheckMark, ...props }: OptionCommonProps) => (
|
|
10
|
+
<OptionBase {...props} mobile={false} Checkmark={Checkmark} styles={styles} />
|
|
11
|
+
);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import '@alfalab/core-components-vars/src/index.css';
|
|
2
|
+
@import '../../../vars.css';
|
|
3
|
+
@import '../index.module.css';
|
|
4
|
+
|
|
5
|
+
.highlighted {
|
|
6
|
+
background: var(--select-option-hover-background);
|
|
7
|
+
color: var(--select-option-hover-color);
|
|
8
|
+
|
|
9
|
+
&:before,
|
|
10
|
+
& + .option:before {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import type { OptionCommonProps } from '../../../typings';
|
|
4
|
+
import { Checkmark as DefaultCheckMark } from '../../checkmark-mobile';
|
|
5
|
+
import { OptionBase } from '../Component';
|
|
6
|
+
|
|
7
|
+
import styles from './index.module.css';
|
|
8
|
+
|
|
9
|
+
export const OptionMobile = ({ Checkmark = DefaultCheckMark, ...props }: OptionCommonProps) => (
|
|
10
|
+
<OptionBase {...props} mobile={true} Checkmark={Checkmark} styles={styles} />
|
|
11
|
+
);
|
|
@@ -149,13 +149,16 @@ export const VirtualOptionsList = forwardRef<HTMLDivElement, OptionsListProps>(
|
|
|
149
149
|
|
|
150
150
|
if (!group) return null;
|
|
151
151
|
|
|
152
|
-
const groupSelectedItems = selectedItems?.filter((
|
|
153
|
-
group.options.
|
|
152
|
+
const groupSelectedItems = selectedItems?.filter(({ key: selectedItemKey }) =>
|
|
153
|
+
group.options.some((opt) => opt.key === selectedItemKey),
|
|
154
154
|
);
|
|
155
155
|
const handleSelectedItems = (items: OptionShape[]) => {
|
|
156
156
|
setSelectedItems(
|
|
157
157
|
(
|
|
158
|
-
selectedItems?.filter(
|
|
158
|
+
selectedItems?.filter(
|
|
159
|
+
({ key: selectedItemKey }) =>
|
|
160
|
+
!group.options.some((opt) => opt.key === selectedItemKey),
|
|
161
|
+
) ?? []
|
|
159
162
|
).concat(items),
|
|
160
163
|
);
|
|
161
164
|
};
|
package/src/typings.ts
CHANGED
|
@@ -723,7 +723,7 @@ export type OptgroupProps = {
|
|
|
723
723
|
multiple?: boolean;
|
|
724
724
|
};
|
|
725
725
|
|
|
726
|
-
export type
|
|
726
|
+
export type OptionCommonProps = {
|
|
727
727
|
/**
|
|
728
728
|
* Дополнительный класс
|
|
729
729
|
*/
|
|
@@ -801,9 +801,11 @@ export type OptionProps = {
|
|
|
801
801
|
* Выравнивание чекбокса или иконки "галочки"
|
|
802
802
|
*/
|
|
803
803
|
align?: 'start' | 'center';
|
|
804
|
+
};
|
|
804
805
|
|
|
806
|
+
export type OptionProps = OptionCommonProps & {
|
|
805
807
|
/**
|
|
806
|
-
* Мобильная
|
|
808
|
+
* Мобильная версия option.
|
|
807
809
|
*/
|
|
808
810
|
mobile?: boolean;
|
|
809
811
|
};
|
package/typings.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { InputProps } from "@alfalab/core-components-input";
|
|
|
6
6
|
import { ModalProps } from "@alfalab/core-components-modal";
|
|
7
7
|
import { ModalFooterProps, ModalHeaderProps } from "@alfalab/core-components-modal/shared";
|
|
8
8
|
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
9
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
9
|
+
import { UseSelectWithApplyProps } from "./hook-94ef1330";
|
|
10
10
|
type AnyObject = Record<string, any>;
|
|
11
11
|
type OptionShape = {
|
|
12
12
|
/**
|
|
@@ -567,7 +567,7 @@ type OptgroupProps = {
|
|
|
567
567
|
*/
|
|
568
568
|
multiple?: boolean;
|
|
569
569
|
};
|
|
570
|
-
type
|
|
570
|
+
type OptionCommonProps = {
|
|
571
571
|
/**
|
|
572
572
|
* Дополнительный класс
|
|
573
573
|
*/
|
|
@@ -631,8 +631,10 @@ type OptionProps = {
|
|
|
631
631
|
* Выравнивание чекбокса или иконки "галочки"
|
|
632
632
|
*/
|
|
633
633
|
align?: 'start' | 'center';
|
|
634
|
+
};
|
|
635
|
+
type OptionProps = OptionCommonProps & {
|
|
634
636
|
/**
|
|
635
|
-
* Мобильная
|
|
637
|
+
* Мобильная версия option.
|
|
636
638
|
*/
|
|
637
639
|
mobile?: boolean;
|
|
638
640
|
};
|
|
@@ -768,4 +770,4 @@ type ClearButtonProps = {
|
|
|
768
770
|
*/
|
|
769
771
|
size?: FormControlProps['size'];
|
|
770
772
|
};
|
|
771
|
-
export { AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps, ClearButtonProps };
|
|
773
|
+
export { AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionCommonProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps, ClearButtonProps };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var mobileStyles = {"sheet":"select__sheet_1gz9m","sheetContent":"select__sheetContent_1gz9m","modalContent":"select__modalContent_1gz9m","sheetContainer":"select__sheetContainer_1gz9m","optionsListWrapper":"select__optionsListWrapper_1gz9m","optionsList":"select__optionsList_1gz9m","scrollbar":"select__scrollbar_1gz9m","search":"select__search_1gz9m","option":"select__option_1gz9m","optionGroup":"select__optionGroup_1gz9m"};
|
|
2
|
-
require('./components/base-select/mobile.css')
|
|
3
|
-
|
|
4
|
-
export { mobileStyles as m };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var mobileStyles = {"sheet":"select__sheet_1gz9m","sheetContent":"select__sheetContent_1gz9m","modalContent":"select__modalContent_1gz9m","sheetContainer":"select__sheetContainer_1gz9m","optionsListWrapper":"select__optionsListWrapper_1gz9m","optionsList":"select__optionsList_1gz9m","scrollbar":"select__scrollbar_1gz9m","search":"select__search_1gz9m","option":"select__option_1gz9m","optionGroup":"select__optionGroup_1gz9m"};
|
|
4
|
-
require('./components/base-select/mobile.css')
|
|
5
|
-
|
|
6
|
-
exports.mobileStyles = mobileStyles;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const mobileStyles = {"sheet":"select__sheet_1gz9m","sheetContent":"select__sheetContent_1gz9m","modalContent":"select__modalContent_1gz9m","sheetContainer":"select__sheetContainer_1gz9m","optionsListWrapper":"select__optionsListWrapper_1gz9m","optionsList":"select__optionsList_1gz9m","scrollbar":"select__scrollbar_1gz9m","search":"select__search_1gz9m","option":"select__option_1gz9m","optionGroup":"select__optionGroup_1gz9m"};
|
|
2
|
-
require('./components/base-select/mobile.css')
|
|
3
|
-
|
|
4
|
-
export { mobileStyles as m };
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectProps, OptionShape } from "./typings";
|
|
3
|
-
type UseSelectWithApplyProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Список выбранных пунктов
|
|
6
|
-
*/
|
|
7
|
-
selected: BaseSelectProps['selected'];
|
|
8
|
-
/**
|
|
9
|
-
* Список вариантов выбора
|
|
10
|
-
*/
|
|
11
|
-
options: BaseSelectProps['options'];
|
|
12
|
-
/**
|
|
13
|
-
* Обработчик выбора
|
|
14
|
-
*/
|
|
15
|
-
onChange: BaseSelectProps['onChange'];
|
|
16
|
-
/**
|
|
17
|
-
* Дополнительный обработчик клика на чекбокс выбрать все
|
|
18
|
-
*/
|
|
19
|
-
onSelectAllClick?: (selectedMultiple: OptionShape[]) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Компонент выпадающего меню
|
|
22
|
-
*/
|
|
23
|
-
OptionsList?: BaseSelectProps['OptionsList'];
|
|
24
|
-
/**
|
|
25
|
-
* Пропсы, которые будут прокинуты в компонент списка
|
|
26
|
-
*/
|
|
27
|
-
optionsListProps?: BaseSelectProps['optionsListProps'];
|
|
28
|
-
/**
|
|
29
|
-
* Включает отображение поиска
|
|
30
|
-
*/
|
|
31
|
-
showSearch?: BaseSelectProps['showSearch'];
|
|
32
|
-
/**
|
|
33
|
-
* Настройки поиска
|
|
34
|
-
*/
|
|
35
|
-
searchProps?: BaseSelectProps['searchProps'];
|
|
36
|
-
/**
|
|
37
|
-
* Показывать кнопку очистки
|
|
38
|
-
*/
|
|
39
|
-
showClear?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Показывать пункт "Выбрать все"
|
|
42
|
-
*/
|
|
43
|
-
showSelectAll?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Показывать пункт "Выбрать все" в заголовке списка
|
|
46
|
-
*/
|
|
47
|
-
showHeaderWithSelectAll?: boolean;
|
|
48
|
-
};
|
|
49
|
-
declare const SELECT_ALL_KEY = "select_all";
|
|
50
|
-
declare function useSelectWithApply({ options, selected, onChange, onSelectAllClick, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
|
|
51
|
-
OptionsList: import("react").ForwardRefExoticComponent<import("./typings").OptionsListProps & {
|
|
52
|
-
showClear?: boolean | undefined;
|
|
53
|
-
onClose?: (() => void) | undefined;
|
|
54
|
-
selectedDraft?: OptionShape[] | undefined;
|
|
55
|
-
OptionsList?: import("react").FC<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
56
|
-
Footer?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/footer/Component").FooterProps> | undefined;
|
|
57
|
-
Header?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps> | undefined;
|
|
58
|
-
headerProps?: import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps | undefined;
|
|
59
|
-
showHeaderWithSelectAll?: boolean | undefined;
|
|
60
|
-
setSelectedDraft?: ((selectedDraft: OptionShape[]) => void) | undefined;
|
|
61
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
62
|
-
optionsListProps: {
|
|
63
|
-
OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
64
|
-
showClear: boolean;
|
|
65
|
-
onClear: () => void;
|
|
66
|
-
onApply: () => void;
|
|
67
|
-
onClose: () => void;
|
|
68
|
-
selectedDraft: OptionShape[];
|
|
69
|
-
setSelectedDraft: import("react").Dispatch<import("react").SetStateAction<OptionShape[]>>;
|
|
70
|
-
showHeaderWithSelectAll: boolean;
|
|
71
|
-
headerProps: any;
|
|
72
|
-
};
|
|
73
|
-
allowUnselect: boolean;
|
|
74
|
-
multiple: boolean;
|
|
75
|
-
options: (OptionShape | import("./typings").GroupShape | {
|
|
76
|
-
key: string;
|
|
77
|
-
content: string;
|
|
78
|
-
})[];
|
|
79
|
-
onChange: (payload: import("./typings").BaseSelectChangePayload) => void;
|
|
80
|
-
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
81
|
-
showSearch: boolean;
|
|
82
|
-
searchProps: {
|
|
83
|
-
value: string;
|
|
84
|
-
onChange: ((value: string) => void) | undefined;
|
|
85
|
-
componentProps?: import("./typings").SearchProps | undefined;
|
|
86
|
-
accessor?: ((option: OptionShape) => string) | undefined;
|
|
87
|
-
filterFn?: ((optionText: string, search: string) => boolean) | undefined;
|
|
88
|
-
filterGroup?: boolean | undefined;
|
|
89
|
-
groupAccessor?: ((group: import("./typings").GroupShape) => string | undefined) | undefined;
|
|
90
|
-
} | undefined;
|
|
91
|
-
originalProps: {
|
|
92
|
-
options: (OptionShape | import("./typings").GroupShape)[];
|
|
93
|
-
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
94
|
-
onChange: (payload: import("./typings").BaseSelectChangePayload) => void;
|
|
95
|
-
OptionsList: import("react").ComponentType<import("./typings").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
96
|
-
optionsListProps: unknown;
|
|
97
|
-
showClear: boolean;
|
|
98
|
-
showSelectAll: boolean;
|
|
99
|
-
showHeaderWithSelectAll: boolean;
|
|
100
|
-
showSearch: boolean;
|
|
101
|
-
searchProps: {
|
|
102
|
-
componentProps?: import("./typings").SearchProps | undefined;
|
|
103
|
-
accessor?: ((option: OptionShape) => string) | undefined;
|
|
104
|
-
filterFn?: ((optionText: string, search: string) => boolean) | undefined;
|
|
105
|
-
value?: string | undefined;
|
|
106
|
-
onChange?: ((value: string) => void) | undefined;
|
|
107
|
-
filterGroup?: boolean | undefined;
|
|
108
|
-
groupAccessor?: ((group: import("./typings").GroupShape) => string | undefined) | undefined;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|