@alfalab/core-components-select 13.2.5 → 13.2.7
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/{Component-34027c1a.d.ts → Component-d0416db1.d.ts} +0 -0
- package/{Component-34027c1a.js → Component-d0416db1.js} +2 -2
- package/{Component-85112f99.d.ts → Component-f8843b94.d.ts} +0 -0
- package/{Component-85112f99.js → Component-f8843b94.js} +5 -5
- package/Component.js +2 -2
- package/Component.responsive.js +4 -4
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +4 -4
- package/components/base-option/index.css +23 -16
- package/components/base-option/index.js +1 -1
- package/components/base-select/Component.js +2 -2
- package/components/base-select/index.css +7 -7
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +2 -2
- package/components/base-select-mobile/Component.js +4 -4
- package/components/base-select-mobile/checkmark/Component.js +1 -1
- package/components/base-select-mobile/checkmark/index.css +6 -6
- package/components/base-select-mobile/index.css +11 -11
- package/components/base-select-mobile/index.d.ts +1 -1
- package/components/base-select-mobile/index.js +4 -4
- package/components/base-select-mobile/options-list/Component.js +2 -2
- package/components/base-select-mobile/options-list/index.css +9 -9
- package/components/base-select-mobile/options-list/index.js +1 -1
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +8 -8
- package/components/field/Component.js +2 -2
- package/components/field/index.css +9 -9
- package/components/field/index.js +1 -1
- package/components/index.js +4 -4
- package/components/native-select/Component.js +1 -1
- package/components/native-select/index.js +1 -1
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +2 -2
- package/components/option/index.css +20 -20
- package/components/option/index.js +1 -1
- package/components/options-list/Component.js +2 -2
- package/components/options-list/index.css +6 -6
- package/components/options-list/index.js +1 -1
- package/components/select-mobile/Component.js +4 -4
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +4 -4
- package/components/select-modal-mobile/Component.js +4 -4
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +4 -4
- package/components/virtual-options-list/Component.js +2 -2
- package/components/virtual-options-list/index.css +12 -12
- package/components/virtual-options-list/index.js +1 -1
- package/cssm/components/base-option/Component.js +2 -2
- package/cssm/components/base-option/index.module.css +13 -6
- package/esm/{Component-9a0767f0.d.ts → Component-a4f5db58.d.ts} +0 -0
- package/esm/{Component-9a0767f0.js → Component-a4f5db58.js} +2 -2
- package/esm/{Component-e5d39881.d.ts → Component-cd3a0fb2.d.ts} +0 -0
- package/esm/{Component-e5d39881.js → Component-cd3a0fb2.js} +5 -5
- package/esm/Component.js +2 -2
- package/esm/Component.responsive.js +4 -4
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-option/Component.js +4 -4
- package/esm/components/base-option/index.css +23 -16
- package/esm/components/base-option/index.js +1 -1
- package/esm/components/base-select/Component.js +2 -2
- package/esm/components/base-select/index.css +7 -7
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +2 -2
- package/esm/components/base-select-mobile/Component.js +4 -4
- package/esm/components/base-select-mobile/checkmark/Component.js +1 -1
- package/esm/components/base-select-mobile/checkmark/index.css +6 -6
- package/esm/components/base-select-mobile/index.css +11 -11
- package/esm/components/base-select-mobile/index.d.ts +1 -1
- package/esm/components/base-select-mobile/index.js +4 -4
- package/esm/components/base-select-mobile/options-list/Component.js +2 -2
- package/esm/components/base-select-mobile/options-list/index.css +9 -9
- package/esm/components/base-select-mobile/options-list/index.js +1 -1
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +8 -8
- package/esm/components/field/Component.js +2 -2
- package/esm/components/field/index.css +9 -9
- package/esm/components/field/index.js +1 -1
- package/esm/components/index.js +4 -4
- package/esm/components/native-select/Component.js +1 -1
- package/esm/components/native-select/index.js +1 -1
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +2 -2
- package/esm/components/option/index.css +20 -20
- package/esm/components/option/index.js +1 -1
- package/esm/components/options-list/Component.js +2 -2
- package/esm/components/options-list/index.css +6 -6
- package/esm/components/options-list/index.js +1 -1
- package/esm/components/select-mobile/Component.js +4 -4
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +4 -4
- package/esm/components/select-modal-mobile/Component.js +4 -4
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +4 -4
- package/esm/components/virtual-options-list/Component.js +2 -2
- package/esm/components/virtual-options-list/index.css +12 -12
- package/esm/components/virtual-options-list/index.js +1 -1
- package/esm/index.js +4 -4
- package/esm/{intersection-observer-372e5e63.d.ts → intersection-observer-3636a1ee.d.ts} +0 -0
- package/esm/{intersection-observer-372e5e63.js → intersection-observer-3636a1ee.js} +0 -0
- package/esm/presets/index.js +4 -4
- package/esm/presets/useLazyLoading/hook.js +3 -3
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
- package/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +4 -4
- package/esm/{tslib.es6-945ed8f5.d.ts → tslib.es6-14a50f07.d.ts} +0 -0
- package/esm/{tslib.es6-945ed8f5.js → tslib.es6-14a50f07.js} +0 -0
- package/index.js +4 -4
- package/{intersection-observer-5e705f93.d.ts → intersection-observer-a637ef02.d.ts} +0 -0
- package/{intersection-observer-5e705f93.js → intersection-observer-a637ef02.js} +0 -0
- package/modern/{Component-92a5a09b.d.ts → Component-c168633c.d.ts} +0 -0
- package/modern/{Component-92a5a09b.js → Component-c168633c.js} +4 -4
- package/modern/{Component-4a19aa61.d.ts → Component-d798746a.d.ts} +0 -0
- package/modern/{Component-4a19aa61.js → Component-d798746a.js} +1 -1
- package/modern/Component.js +1 -1
- package/modern/Component.responsive.js +3 -3
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +4 -4
- package/modern/components/base-option/Component.js +3 -3
- package/modern/components/base-option/index.css +23 -16
- package/modern/components/base-select/Component.js +1 -1
- package/modern/components/base-select/index.css +7 -7
- package/modern/components/base-select/index.d.ts +1 -1
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.js +3 -3
- package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
- package/modern/components/base-select-mobile/checkmark/index.css +6 -6
- package/modern/components/base-select-mobile/index.css +11 -11
- package/modern/components/base-select-mobile/index.d.ts +1 -1
- package/modern/components/base-select-mobile/index.js +3 -3
- package/modern/components/base-select-mobile/options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/options-list/index.css +9 -9
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +8 -8
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +3 -3
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +20 -20
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +6 -6
- package/modern/components/select-mobile/Component.js +3 -3
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +3 -3
- package/modern/components/select-modal-mobile/Component.js +3 -3
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +3 -3
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +12 -12
- package/modern/index.js +3 -3
- package/modern/{intersection-observer-372e5e63.d.ts → intersection-observer-3636a1ee.d.ts} +0 -0
- package/modern/{intersection-observer-372e5e63.js → intersection-observer-3636a1ee.js} +0 -0
- package/modern/presets/index.js +3 -3
- package/modern/presets/useLazyLoading/hook.js +2 -2
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +3 -3
- package/package.json +5 -5
- package/presets/index.js +4 -4
- package/presets/useLazyLoading/hook.js +3 -3
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
- package/presets/useSelectWithLoading/hook.js +2 -2
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +4 -4
- /package/{tslib.es6-24b443ac.d.ts → tslib.es6-7774243f.d.ts} +0 -0
- /package/{tslib.es6-24b443ac.js → tslib.es6-7774243f.js} +0 -0
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
:root {
|
|
17
17
|
--gap-s: 12px;
|
|
18
18
|
--gap-m: 16px;
|
|
19
|
+
--gap-l: 20px;
|
|
19
20
|
}
|
|
20
21
|
:root {
|
|
21
22
|
--disabled-cursor: not-allowed;
|
|
@@ -63,17 +64,23 @@
|
|
|
63
64
|
color: var(--select-option-active-color);
|
|
64
65
|
}
|
|
65
66
|
.option.checkmarkBefore {
|
|
66
|
-
padding: 0 0 0 var(--gap-s)
|
|
67
|
+
padding: 0 0 0 var(--gap-s)
|
|
67
68
|
}
|
|
69
|
+
.option.checkmarkBefore.mobile {
|
|
70
|
+
padding-left: var(--gap-m);
|
|
71
|
+
}
|
|
68
72
|
.option.checkmarkAfter {
|
|
69
|
-
padding: 0 var(--gap-s) 0 0
|
|
73
|
+
padding: 0 var(--gap-s) 0 0
|
|
70
74
|
}
|
|
75
|
+
.option.checkmarkAfter.mobile {
|
|
76
|
+
padding-right: var(--gap-l);
|
|
77
|
+
}
|
|
71
78
|
.option.textContent {
|
|
72
|
-
padding: var(--gap-s)
|
|
73
|
-
}
|
|
74
|
-
.option.mobileTextContent {
|
|
75
|
-
padding: var(--gap-m);
|
|
79
|
+
padding: var(--gap-s)
|
|
76
80
|
}
|
|
81
|
+
.option.textContent.mobile {
|
|
82
|
+
padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
|
|
83
|
+
}
|
|
77
84
|
.selected {
|
|
78
85
|
background: var(--select-option-selected-background);
|
|
79
86
|
color: var(--select-option-selected-color);
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign, b as __spreadArray } from './tslib.es6-
|
|
1
|
+
import { a as __assign, b as __spreadArray } from './tslib.es6-14a50f07.js';
|
|
2
2
|
import React, { forwardRef, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
@@ -14,7 +14,7 @@ var getDataTestId = function (dataTestId, element) {
|
|
|
14
14
|
return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"
|
|
17
|
+
var styles = {"component":"select__component_1bdg8","popoverInner":"select__popoverInner_1bdg8","optionsList":"select__optionsList_1bdg8","nativeSelect":"select__nativeSelect_1bdg8","block":"select__block_1bdg8"};
|
|
18
18
|
require('./components/base-select/index.css')
|
|
19
19
|
|
|
20
20
|
var BaseSelect = forwardRef(function (_a, ref) {
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, b as __spreadArray } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign, b as __spreadArray } from './tslib.es6-14a50f07.js';
|
|
2
2
|
import React, { forwardRef, useRef, useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { Arrow } from './components/arrow/Component.js';
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
@@ -7,7 +7,7 @@ import { useMultipleSelection, useCombobox } from 'downshift';
|
|
|
7
7
|
import { BottomSheet } from '@alfalab/core-components-bottom-sheet/esm';
|
|
8
8
|
import { ModalMobile } from '@alfalab/core-components-modal/esm/mobile';
|
|
9
9
|
import './Component.js';
|
|
10
|
-
import { g as getDataTestId } from './Component-
|
|
10
|
+
import { g as getDataTestId } from './Component-a4f5db58.js';
|
|
11
11
|
import { Field } from './components/field/Component.js';
|
|
12
12
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
13
13
|
import { Option } from './components/option/Component.js';
|
|
@@ -18,7 +18,7 @@ import '@alfalab/hooks';
|
|
|
18
18
|
import { processOptions } from './utils.js';
|
|
19
19
|
import { BaseOption } from './components/base-option/Component.js';
|
|
20
20
|
import '@alfalab/core-components-skeleton/esm';
|
|
21
|
-
import './intersection-observer-
|
|
21
|
+
import './intersection-observer-3636a1ee.js';
|
|
22
22
|
import { Button } from '@alfalab/core-components-button/esm';
|
|
23
23
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
24
24
|
import '@alfalab/core-components-form-control/esm';
|
|
@@ -30,7 +30,7 @@ import { BaseCheckmark } from './components/base-checkmark/Component.js';
|
|
|
30
30
|
import { Checkmark } from './components/base-select-mobile/checkmark/Component.js';
|
|
31
31
|
import { OptionsList as OptionsList$1 } from './components/base-select-mobile/options-list/Component.js';
|
|
32
32
|
|
|
33
|
-
var styles$1 = {"footer":"
|
|
33
|
+
var styles$1 = {"footer":"select__footer_1e8sw","withBorder":"select__withBorder_1e8sw"};
|
|
34
34
|
require('./presets/useSelectWithApply/options-list-with-apply/index.css')
|
|
35
35
|
|
|
36
36
|
var OptionsListWithApply = forwardRef(function (_a, ref) {
|
|
@@ -141,7 +141,7 @@ function useSelectWithApply(_a) {
|
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
var styles = {"component":"
|
|
144
|
+
var styles = {"component":"select__component_lrrs7","popoverInner":"select__popoverInner_lrrs7","sheet":"select__sheet_lrrs7","sheetContent":"select__sheetContent_lrrs7","sheetContainer":"select__sheetContainer_lrrs7","block":"select__block_lrrs7","option":"select__option_lrrs7","optionGroup":"select__optionGroup_lrrs7"};
|
|
145
145
|
require('./components/base-select-mobile/index.css')
|
|
146
146
|
|
|
147
147
|
var BaseSelectMobile = forwardRef(function (_a, ref) {
|
package/esm/Component.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-14a50f07.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Arrow } from './components/arrow/Component.js';
|
|
4
|
-
import { B as BaseSelect } from './Component-
|
|
4
|
+
import { B as BaseSelect } from './Component-a4f5db58.js';
|
|
5
5
|
import { Field } from './components/field/Component.js';
|
|
6
6
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
7
7
|
import { Option } from './components/option/Component.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-14a50f07.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { useMedia } from '@alfalab/hooks';
|
|
4
4
|
import { Select } from './Component.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
7
|
-
import './Component-
|
|
8
|
-
import { S as SelectMobile } from './Component-
|
|
7
|
+
import './Component-a4f5db58.js';
|
|
8
|
+
import { S as SelectMobile } from './Component-cd3a0fb2.js';
|
|
9
9
|
import '@alfalab/core-components-form-control/esm';
|
|
10
10
|
import '@alfalab/core-components-badge/esm';
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
@@ -31,7 +31,7 @@ import '@alfalab/core-components-modal/esm/mobile';
|
|
|
31
31
|
import './components/base-option/Component.js';
|
|
32
32
|
import './components/base-checkmark/Component.js';
|
|
33
33
|
import '@alfalab/core-components-skeleton/esm';
|
|
34
|
-
import './intersection-observer-
|
|
34
|
+
import './intersection-observer-3636a1ee.js';
|
|
35
35
|
import '@alfalab/core-components-button/esm';
|
|
36
36
|
import './components/base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { ChevronDownMIcon } from '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
4
4
|
|
|
5
|
-
var styles = {"arrow":"
|
|
5
|
+
var styles = {"arrow":"select__arrow_8mtnq","open":"select__open_8mtnq"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Arrow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qh3o */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.select__arrow_8mtnq {
|
|
28
28
|
display: block;
|
|
29
29
|
width: 24px;
|
|
30
30
|
height: 24px;
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
|
|
33
33
|
transition: transform 0.15s ease-in-out, opacity 0.2s ease;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__open_8mtnq {
|
|
36
36
|
transform: var(--arrow-transform);
|
|
37
37
|
}
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Checkbox } from '@alfalab/core-components-checkbox/esm';
|
|
4
4
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
5
5
|
|
|
6
|
-
var styles = {"checkmark":"
|
|
6
|
+
var styles = {"checkmark":"select__checkmark_1hwnu","single":"select__single_1hwnu","selected":"select__selected_1hwnu"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var BaseCheckmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1wtr3 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
|
|
18
18
|
/* optgroup */
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.select__checkmark_1hwnu {
|
|
21
21
|
flex-shrink: 0;
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.select__single_1hwnu {
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: center;
|
|
28
28
|
opacity: 0
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.select__single_1hwnu.select__selected_1hwnu {
|
|
31
31
|
opacity: 1;
|
|
32
32
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-14a50f07.js';
|
|
2
2
|
import React, { isValidElement } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseCheckmark } from '../base-checkmark/Component.js';
|
|
5
5
|
import '@alfalab/core-components-checkbox/esm';
|
|
6
6
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"option":"
|
|
8
|
+
var styles = {"option":"select__option_1hdpc","disabled":"select__disabled_1hdpc","checkmarkBefore":"select__checkmarkBefore_1hdpc","mobile":"select__mobile_1hdpc","checkmarkAfter":"select__checkmarkAfter_1hdpc","textContent":"select__textContent_1hdpc","selected":"select__selected_1hdpc","highlighted":"select__highlighted_1hdpc","content":"select__content_1hdpc"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var BaseOption = function (_a) {
|
|
@@ -24,8 +24,8 @@ var BaseOption = function (_a) {
|
|
|
24
24
|
_b[styles.highlighted] = highlighted,
|
|
25
25
|
_b[styles.selected] = selected,
|
|
26
26
|
_b[styles.disabled] = disabled,
|
|
27
|
-
_b[styles.textContent] = isTextContent
|
|
28
|
-
_b[styles.
|
|
27
|
+
_b[styles.textContent] = isTextContent,
|
|
28
|
+
_b[styles.mobile] = mobile,
|
|
29
29
|
_b[styles.checkmarkAfter] = !isTextContent && checkmarkPosition === 'after',
|
|
30
30
|
_b[styles.checkmarkBefore] = !isTextContent && checkmarkPosition === 'before',
|
|
31
31
|
_b)), "data-test-id": dataTestId }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r9q59 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-bg-secondary: #f3f4f5;
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
:root {
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
--gap-m: 16px;
|
|
20
|
+
--gap-l: 20px;
|
|
20
21
|
}
|
|
21
22
|
:root {
|
|
22
23
|
--disabled-cursor: not-allowed;
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
|
|
43
44
|
/* optgroup */
|
|
44
45
|
}
|
|
45
|
-
.
|
|
46
|
+
.select__option_1hdpc {
|
|
46
47
|
font-size: 16px;
|
|
47
48
|
line-height: 20px;
|
|
48
49
|
font-weight: 400;
|
|
@@ -60,36 +61,42 @@
|
|
|
60
61
|
cursor: pointer;
|
|
61
62
|
min-height: var(--size-s-height)
|
|
62
63
|
}
|
|
63
|
-
.
|
|
64
|
+
.select__option_1hdpc:not(.select__disabled_1hdpc):active {
|
|
64
65
|
background: var(--select-option-active-background);
|
|
65
66
|
color: var(--select-option-active-color);
|
|
66
67
|
}
|
|
67
|
-
.
|
|
68
|
-
padding: 0 0 0 var(--gap-s)
|
|
68
|
+
.select__option_1hdpc.select__checkmarkBefore_1hdpc {
|
|
69
|
+
padding: 0 0 0 var(--gap-s)
|
|
69
70
|
}
|
|
70
|
-
.
|
|
71
|
-
|
|
71
|
+
.select__option_1hdpc.select__checkmarkBefore_1hdpc.select__mobile_1hdpc {
|
|
72
|
+
padding-left: var(--gap-m);
|
|
73
|
+
}
|
|
74
|
+
.select__option_1hdpc.select__checkmarkAfter_1hdpc {
|
|
75
|
+
padding: 0 var(--gap-s) 0 0
|
|
72
76
|
}
|
|
73
|
-
.
|
|
74
|
-
|
|
77
|
+
.select__option_1hdpc.select__checkmarkAfter_1hdpc.select__mobile_1hdpc {
|
|
78
|
+
padding-right: var(--gap-l);
|
|
79
|
+
}
|
|
80
|
+
.select__option_1hdpc.select__textContent_1hdpc {
|
|
81
|
+
padding: var(--gap-s)
|
|
75
82
|
}
|
|
76
|
-
.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
.
|
|
83
|
+
.select__option_1hdpc.select__textContent_1hdpc.select__mobile_1hdpc {
|
|
84
|
+
padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
|
|
85
|
+
}
|
|
86
|
+
.select__selected_1hdpc {
|
|
80
87
|
background: var(--select-option-selected-background);
|
|
81
88
|
color: var(--select-option-selected-color);
|
|
82
89
|
cursor: default;
|
|
83
90
|
}
|
|
84
|
-
.
|
|
91
|
+
.select__highlighted_1hdpc {
|
|
85
92
|
background: var(--select-option-hover-background);
|
|
86
93
|
color: var(--select-option-hover-color);
|
|
87
94
|
}
|
|
88
|
-
.
|
|
95
|
+
.select__disabled_1hdpc {
|
|
89
96
|
cursor: var(--disabled-cursor);
|
|
90
97
|
background: var(--select-option-disabled-background);
|
|
91
98
|
color: var(--select-option-disabled-color);
|
|
92
99
|
}
|
|
93
|
-
.
|
|
100
|
+
.select__content_1hdpc {
|
|
94
101
|
flex: 1;
|
|
95
102
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-14a50f07.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import '@juggle/resize-observer';
|
|
@@ -6,6 +6,6 @@ import 'classnames';
|
|
|
6
6
|
import 'downshift';
|
|
7
7
|
import '@alfalab/core-components-popover/esm';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
|
-
export { B as BaseSelect } from '../../Component-
|
|
9
|
+
export { B as BaseSelect } from '../../Component-a4f5db58.js';
|
|
10
10
|
import '../../utils.js';
|
|
11
11
|
import '../native-select/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xvfps */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
|
|
35
35
|
/* optgroup */
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.select__component_1bdg8 {
|
|
38
38
|
width: max-content;
|
|
39
39
|
position: relative;
|
|
40
40
|
outline: 0;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.select__popoverInner_1bdg8 {
|
|
43
43
|
padding-top: var(--select-options-list-offset);
|
|
44
44
|
padding-bottom: var(--select-options-list-offset);
|
|
45
45
|
box-shadow: none;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
border-radius: 0;
|
|
49
49
|
position: relative;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.select__optionsList_1bdg8 {
|
|
52
52
|
padding-top: var(--select-options-list-top-padding);
|
|
53
53
|
padding-bottom: var(--select-options-list-bottom-padding);
|
|
54
54
|
box-shadow: var(--select-options-list-box-shadow);
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
will-change: transform;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.select__nativeSelect_1bdg8 {
|
|
61
61
|
opacity: 0;
|
|
62
62
|
overflow: hidden;
|
|
63
63
|
position: absolute;
|
|
@@ -71,12 +71,12 @@
|
|
|
71
71
|
cursor: pointer;
|
|
72
72
|
z-index: 1;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.select__block_1bdg8 {
|
|
75
75
|
width: 100%;
|
|
76
76
|
}
|
|
77
77
|
/* width: max-content; fix for IE */
|
|
78
78
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
79
|
-
.
|
|
79
|
+
.select__component_1bdg8 {
|
|
80
80
|
float: left;
|
|
81
81
|
clear: left;
|
|
82
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-a4f5db58";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { B as BaseSelect } from '../../Component-
|
|
2
|
-
import '../../tslib.es6-
|
|
1
|
+
export { B as BaseSelect } from '../../Component-a4f5db58.js';
|
|
2
|
+
import '../../tslib.es6-14a50f07.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import '@juggle/resize-observer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-14a50f07.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
@@ -7,8 +7,8 @@ import '@alfalab/core-components-bottom-sheet/esm';
|
|
|
7
7
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
8
8
|
import '../../Component.js';
|
|
9
9
|
import '../arrow/Component.js';
|
|
10
|
-
import '../../Component-
|
|
11
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
10
|
+
import '../../Component-a4f5db58.js';
|
|
11
|
+
export { B as BaseSelectMobile } from '../../Component-cd3a0fb2.js';
|
|
12
12
|
import '../field/Component.js';
|
|
13
13
|
import '../optgroup/Component.js';
|
|
14
14
|
import '../option/Component.js';
|
|
@@ -19,7 +19,7 @@ import '@alfalab/hooks';
|
|
|
19
19
|
import '../../utils.js';
|
|
20
20
|
import '../base-option/Component.js';
|
|
21
21
|
import '@alfalab/core-components-skeleton/esm';
|
|
22
|
-
import '../../intersection-observer-
|
|
22
|
+
import '../../intersection-observer-3636a1ee.js';
|
|
23
23
|
import '../base-checkmark/Component.js';
|
|
24
24
|
import './checkmark/Component.js';
|
|
25
25
|
import './options-list/Component.js';
|
|
@@ -4,7 +4,7 @@ import { Badge } from '@alfalab/core-components-badge/esm';
|
|
|
4
4
|
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
5
5
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
6
6
|
|
|
7
|
-
var styles = {"checkmark":"
|
|
7
|
+
var styles = {"checkmark":"select__checkmark_1222e","selected":"select__selected_1222e","displayIcon":"select__displayIcon_1222e","displayBadge":"select__displayBadge_1222e"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var Checkmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 8them */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
/* optgroup */
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.select__checkmark_1222e {
|
|
23
23
|
flex-shrink: 0;
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: center;
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
height: 24px;
|
|
29
29
|
opacity: 0
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.select__checkmark_1222e:first-child {
|
|
32
32
|
display: none;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.select__checkmark_1222e.select__selected_1222e {
|
|
35
35
|
opacity: 1;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.select__displayIcon_1222e {
|
|
38
38
|
display: var(--select-mobile-checkmark-display-icon);
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.select__displayBadge_1222e {
|
|
41
41
|
display: var(--select-mobile-checkmark-display-badge);
|
|
42
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ondj */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.select__component_lrrs7 {
|
|
28
28
|
width: max-content;
|
|
29
29
|
position: relative;
|
|
30
30
|
outline: 0;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.select__popoverInner_lrrs7 {
|
|
33
33
|
padding-top: var(--select-options-list-offset);
|
|
34
34
|
padding-bottom: var(--select-options-list-offset);
|
|
35
35
|
box-shadow: none;
|
|
@@ -38,31 +38,31 @@
|
|
|
38
38
|
border-radius: 0;
|
|
39
39
|
position: relative;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.select__sheet_lrrs7 {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.select__sheetContent_lrrs7 {
|
|
45
45
|
padding: 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.select__sheetContainer_lrrs7 {
|
|
48
48
|
padding: 0;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.select__block_lrrs7 {
|
|
51
51
|
width: 100%;
|
|
52
52
|
}
|
|
53
53
|
/* width: max-content; fix for IE */
|
|
54
54
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
55
|
-
.
|
|
55
|
+
.select__component_lrrs7 {
|
|
56
56
|
float: left;
|
|
57
57
|
clear: left;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.select__option_lrrs7 {
|
|
61
61
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.select__option_lrrs7:before {
|
|
64
64
|
display: none;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.select__optionGroup_lrrs7 {
|
|
67
67
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
68
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-cd3a0fb2";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
2
|
-
import '../../tslib.es6-
|
|
1
|
+
export { B as BaseSelectMobile } from '../../Component-cd3a0fb2.js';
|
|
2
|
+
import '../../tslib.es6-14a50f07.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../arrow/Component.js';
|
|
5
5
|
import 'classnames';
|
|
@@ -9,7 +9,7 @@ import 'downshift';
|
|
|
9
9
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
10
10
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
11
11
|
import '../../Component.js';
|
|
12
|
-
import '../../Component-
|
|
12
|
+
import '../../Component-a4f5db58.js';
|
|
13
13
|
import '@juggle/resize-observer';
|
|
14
14
|
import '@alfalab/core-components-popover/esm';
|
|
15
15
|
import '@alfalab/hooks';
|
|
@@ -31,7 +31,7 @@ import 'react-virtual';
|
|
|
31
31
|
import '../base-option/Component.js';
|
|
32
32
|
import '../base-checkmark/Component.js';
|
|
33
33
|
import '@alfalab/core-components-skeleton/esm';
|
|
34
|
-
import '../../intersection-observer-
|
|
34
|
+
import '../../intersection-observer-3636a1ee.js';
|
|
35
35
|
import '@alfalab/core-components-button/esm';
|
|
36
36
|
import './options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../../tslib.es6-14a50f07.js';
|
|
2
2
|
import React, { useContext, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
|
|
@@ -6,7 +6,7 @@ import { Button } from '@alfalab/core-components-button/esm';
|
|
|
6
6
|
import { isGroup } from '../../../utils.js';
|
|
7
7
|
import { Optgroup } from '../../optgroup/Component.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"optionsList":"
|
|
9
|
+
var styles = {"optionsList":"select__optionsList_djh10","emptyPlaceholder":"select__emptyPlaceholder_djh10","l":"select__l_djh10","xl":"select__xl_djh10","footer":"select__footer_djh10","footerButton":"select__footerButton_djh10","highlighted":"select__highlighted_djh10"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var createCounter = function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: a91bx */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
33
33
|
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__optionsList_djh10 {
|
|
36
36
|
width: 100%;
|
|
37
37
|
outline: none;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.select__emptyPlaceholder_djh10 {
|
|
41
41
|
padding: var(--gap-m) var(--gap-s);
|
|
42
42
|
color: var(--select-options-list-empty-placeholder-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
45
|
-
.
|
|
44
|
+
.select__l_djh10 .select__emptyPlaceholder_djh10,
|
|
45
|
+
.select__xl_djh10 .select__emptyPlaceholder_djh10 {
|
|
46
46
|
padding: var(--gap-xl) var(--gap-m);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.select__footer_djh10 {
|
|
49
49
|
display: flex;
|
|
50
50
|
justify-content: space-between;
|
|
51
51
|
position: sticky;
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
background-color: var(--color-light-bg-primary);
|
|
54
54
|
bottom: 0
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.select__footer_djh10 .select__footerButton_djh10:first-of-type {
|
|
57
57
|
margin-right: var(--gap-m);
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.select__footerButton_djh10 {
|
|
60
60
|
width: 50%;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.select__highlighted_djh10 {
|
|
63
63
|
border-top: var(--select-mobile-footer-border-top);
|
|
64
64
|
background-color: var(--select-mobile-footer-background-color);
|
|
65
65
|
}
|