@alfalab/core-components-select 13.2.7 → 13.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Component-d0416db1.d.ts → Component-15130ab3.d.ts} +0 -0
- package/{Component-d0416db1.js → Component-15130ab3.js} +2 -2
- package/{Component-f8843b94.d.ts → Component-f1158c0d.d.ts} +0 -0
- package/{Component-f8843b94.js → Component-f1158c0d.js} +5 -5
- package/Component.d.ts +1 -1
- package/Component.js +2 -2
- package/Component.responsive.js +4 -4
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +12 -11
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +13 -9
- package/components/base-option/Component.js +2 -2
- package/components/base-option/index.css +22 -33
- package/components/base-option/index.js +1 -1
- package/components/base-select/Component.js +2 -2
- package/components/base-select/index.css +18 -24
- 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 +15 -13
- package/components/base-select-mobile/index.css +21 -27
- 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 +19 -24
- package/components/base-select-mobile/options-list/index.js +1 -1
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +18 -24
- package/components/field/Component.js +2 -2
- package/components/field/index.css +18 -24
- 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 +15 -16
- package/components/option/Component.js +2 -2
- package/components/option/index.css +30 -47
- package/components/option/index.js +1 -1
- package/components/options-list/Component.js +2 -2
- package/components/options-list/index.css +15 -16
- 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 +21 -27
- package/components/virtual-options-list/index.js +1 -1
- package/cssm/Component.d.ts +1 -1
- package/cssm/components/arrow/index.module.css +11 -10
- package/cssm/components/base-checkmark/index.module.css +12 -8
- package/cssm/components/base-option/index.module.css +21 -32
- package/cssm/components/base-select/index.module.css +16 -22
- package/cssm/components/base-select-mobile/checkmark/index.module.css +14 -12
- package/cssm/components/base-select-mobile/index.module.css +19 -25
- package/cssm/components/base-select-mobile/options-list/index.module.css +17 -22
- package/cssm/components/checkmark/index.module.css +17 -23
- package/cssm/components/field/index.module.css +17 -23
- package/cssm/components/optgroup/index.module.css +13 -14
- package/cssm/components/option/index.module.css +26 -43
- package/cssm/components/options-list/index.module.css +13 -14
- package/cssm/components/virtual-options-list/index.module.css +18 -24
- package/cssm/index-3fe0d3e6.d.ts +2 -0
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.module.css +12 -12
- package/cssm/typings.d.ts +1 -5
- package/esm/{Component-a4f5db58.d.ts → Component-45681199.d.ts} +0 -0
- package/esm/{Component-a4f5db58.js → Component-45681199.js} +2 -2
- package/esm/{Component-cd3a0fb2.d.ts → Component-ff31e94c.d.ts} +0 -0
- package/esm/{Component-cd3a0fb2.js → Component-ff31e94c.js} +5 -5
- package/esm/Component.d.ts +1 -1
- 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 +12 -11
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +13 -9
- package/esm/components/base-option/Component.js +2 -2
- package/esm/components/base-option/index.css +22 -33
- 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 +18 -24
- 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 +15 -13
- package/esm/components/base-select-mobile/index.css +21 -27
- 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 +19 -24
- 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 +18 -24
- package/esm/components/field/Component.js +2 -2
- package/esm/components/field/index.css +18 -24
- 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 +15 -16
- package/esm/components/option/Component.js +2 -2
- package/esm/components/option/index.css +30 -47
- package/esm/components/option/index.js +1 -1
- package/esm/components/options-list/Component.js +2 -2
- package/esm/components/options-list/index.css +15 -16
- 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 +21 -27
- package/esm/components/virtual-options-list/index.js +1 -1
- package/esm/index-3fe0d3e6.d.ts +2 -0
- package/esm/index.js +4 -4
- package/esm/{intersection-observer-3636a1ee.d.ts → intersection-observer-ce0b7183.d.ts} +0 -0
- package/esm/{intersection-observer-3636a1ee.js → intersection-observer-ce0b7183.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 +13 -13
- 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-14a50f07.d.ts → tslib.es6-60ccbcec.d.ts} +0 -0
- package/esm/{tslib.es6-14a50f07.js → tslib.es6-60ccbcec.js} +0 -0
- package/esm/typings.d.ts +1 -5
- package/index-3fe0d3e6.d.ts +2 -0
- package/index.js +4 -4
- package/{intersection-observer-a637ef02.d.ts → intersection-observer-4a8b5b51.d.ts} +0 -0
- package/{intersection-observer-a637ef02.js → intersection-observer-4a8b5b51.js} +0 -0
- package/modern/{Component-d798746a.d.ts → Component-0998aafe.d.ts} +0 -0
- package/modern/{Component-d798746a.js → Component-0998aafe.js} +1 -1
- package/modern/{Component-c168633c.d.ts → Component-adf0c0e0.d.ts} +0 -0
- package/modern/{Component-c168633c.js → Component-adf0c0e0.js} +4 -4
- package/modern/Component.d.ts +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 +12 -11
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +13 -9
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +22 -33
- package/modern/components/base-select/Component.js +1 -1
- package/modern/components/base-select/index.css +18 -24
- 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 +15 -13
- package/modern/components/base-select-mobile/index.css +21 -27
- 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 +19 -24
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +18 -24
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +18 -24
- package/modern/components/index.js +3 -3
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +15 -16
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +30 -47
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +15 -16
- 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 +21 -27
- package/modern/index-3fe0d3e6.d.ts +2 -0
- package/modern/index.js +3 -3
- package/modern/{intersection-observer-3636a1ee.d.ts → intersection-observer-ce0b7183.d.ts} +0 -0
- package/modern/{intersection-observer-3636a1ee.js → intersection-observer-ce0b7183.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 +13 -13
- 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/modern/typings.d.ts +1 -5
- 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 +13 -13
- 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-7774243f.d.ts → tslib.es6-dde7343f.d.ts} +0 -0
- package/{tslib.es6-7774243f.js → tslib.es6-dde7343f.js} +0 -0
- package/typings.d.ts +1 -5
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-bg-primary: #fff;
|
|
3
4
|
--color-light-border-secondary: #e7e9eb;
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
14
16
|
--gap-xs: 8px;
|
|
15
17
|
--gap-s: 12px;
|
|
16
|
-
}
|
|
17
|
-
:root {
|
|
18
|
+
} :root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
18
21
|
|
|
19
22
|
/* options list */
|
|
20
23
|
|
|
@@ -23,15 +26,12 @@
|
|
|
23
26
|
/* checkmark */
|
|
24
27
|
|
|
25
28
|
/* optgroup */
|
|
26
|
-
}
|
|
27
|
-
.footer {
|
|
29
|
+
} .footer {
|
|
28
30
|
background: var(--color-light-bg-primary);
|
|
29
31
|
padding: var(--gap-s);
|
|
30
32
|
outline: none
|
|
31
|
-
}
|
|
32
|
-
.footer > * + * {
|
|
33
|
+
} .footer > * + * {
|
|
33
34
|
margin-left: var(--gap-xs);
|
|
34
|
-
}
|
|
35
|
-
.withBorder {
|
|
35
|
+
} .withBorder {
|
|
36
36
|
box-shadow: inset 0 1px 0 var(--color-light-border-secondary);
|
|
37
37
|
}
|
package/cssm/typings.d.ts
CHANGED
|
@@ -251,10 +251,6 @@ type FieldProps = {
|
|
|
251
251
|
* Дополнительный класс
|
|
252
252
|
*/
|
|
253
253
|
className?: string;
|
|
254
|
-
/**
|
|
255
|
-
* Размер компонента
|
|
256
|
-
*/
|
|
257
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
258
254
|
/**
|
|
259
255
|
* Выбранный пункт
|
|
260
256
|
*/
|
|
@@ -329,7 +325,7 @@ type FieldProps = {
|
|
|
329
325
|
* Идентификатор для систем автоматизированного тестирования
|
|
330
326
|
*/
|
|
331
327
|
dataTestId?: string;
|
|
332
|
-
}
|
|
328
|
+
} & Record<string, any>;
|
|
333
329
|
type ArrowProps = {
|
|
334
330
|
/**
|
|
335
331
|
* Дополнительный класс
|
|
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-60ccbcec.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_jds7l","popoverInner":"select__popoverInner_jds7l","optionsList":"select__optionsList_jds7l","nativeSelect":"select__nativeSelect_jds7l","block":"select__block_jds7l"};
|
|
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-60ccbcec.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-45681199.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-ce0b7183.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_hr9jx","withBorder":"select__withBorder_hr9jx"};
|
|
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_1pm5k","popoverInner":"select__popoverInner_1pm5k","sheet":"select__sheet_1pm5k","sheetContent":"select__sheetContent_1pm5k","sheetContainer":"select__sheetContainer_1pm5k","block":"select__block_1pm5k","option":"select__option_1pm5k","optionGroup":"select__optionGroup_1pm5k"};
|
|
145
145
|
require('./components/base-select-mobile/index.css')
|
|
146
146
|
|
|
147
147
|
var BaseSelectMobile = forwardRef(function (_a, ref) {
|
package/esm/Component.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ type FormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
84
84
|
*/
|
|
85
85
|
children?: ReactNode;
|
|
86
86
|
};
|
|
87
|
-
type SelectFieldProps = FormControlProps & Record<string, unknown>;
|
|
87
|
+
type SelectFieldProps = Omit<FormControlProps, 'size'> & Record<string, unknown>;
|
|
88
88
|
type SelectProps = Omit<BaseSelectProps, 'fieldProps'> & {
|
|
89
89
|
/**
|
|
90
90
|
* Пропсы, которые будут прокинуты в компонент поля
|
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-60ccbcec.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-45681199.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-60ccbcec.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-45681199.js';
|
|
8
|
+
import { S as SelectMobile } from './Component-ff31e94c.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-ce0b7183.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_1uvqh","open":"select__open_1uvqh"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Arrow = function (_a) {
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: knikw */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-graphic-primary: #0b1f35;
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
14
18
|
--arrow-transform: rotate(180deg);
|
|
15
|
-
}
|
|
16
|
-
:root {
|
|
19
|
+
} :root {
|
|
17
20
|
--select-arrow-color: var(--color-light-graphic-primary);
|
|
18
21
|
|
|
19
22
|
/* options list */
|
|
@@ -23,15 +26,13 @@
|
|
|
23
26
|
/* checkmark */
|
|
24
27
|
|
|
25
28
|
/* optgroup */
|
|
26
|
-
}
|
|
27
|
-
.select__arrow_8mtnq {
|
|
29
|
+
} .select__arrow_1uvqh {
|
|
28
30
|
display: block;
|
|
29
31
|
width: 24px;
|
|
30
32
|
height: 24px;
|
|
31
33
|
color: var(--select-arrow-color);
|
|
32
34
|
|
|
33
35
|
transition: transform 0.15s ease-in-out, opacity 0.2s ease;
|
|
34
|
-
}
|
|
35
|
-
.select__open_8mtnq {
|
|
36
|
+
} .select__open_1uvqh {
|
|
36
37
|
transform: var(--arrow-transform);
|
|
37
38
|
}
|
|
@@ -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_fq5bo","single":"select__single_fq5bo","selected":"select__selected_fq5bo"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var BaseCheckmark = function (_a) {
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r1h21 */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
11
18
|
|
|
12
19
|
/* options list */
|
|
13
20
|
|
|
@@ -16,17 +23,14 @@
|
|
|
16
23
|
/* checkmark */
|
|
17
24
|
|
|
18
25
|
/* optgroup */
|
|
19
|
-
}
|
|
20
|
-
.select__checkmark_1hwnu {
|
|
26
|
+
} .select__checkmark_fq5bo {
|
|
21
27
|
flex-shrink: 0;
|
|
22
28
|
box-sizing: border-box;
|
|
23
|
-
}
|
|
24
|
-
.select__single_1hwnu {
|
|
29
|
+
} .select__single_fq5bo {
|
|
25
30
|
display: flex;
|
|
26
31
|
align-items: center;
|
|
27
32
|
justify-content: center;
|
|
28
33
|
opacity: 0
|
|
29
|
-
}
|
|
30
|
-
.select__single_1hwnu.select__selected_1hwnu {
|
|
34
|
+
} .select__single_fq5bo.select__selected_fq5bo {
|
|
31
35
|
opacity: 1;
|
|
32
36
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-60ccbcec.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_qay43","disabled":"select__disabled_qay43","checkmarkBefore":"select__checkmarkBefore_qay43","mobile":"select__mobile_qay43","checkmarkAfter":"select__checkmarkAfter_qay43","textContent":"select__textContent_qay43","selected":"select__selected_qay43","highlighted":"select__highlighted_qay43","content":"select__content_qay43"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var BaseOption = function (_a) {
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: pjrhp */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-bg-primary: #fff;
|
|
4
5
|
--color-light-bg-secondary: #f3f4f5;
|
|
5
6
|
--color-light-bg-tertiary: #e7e9eb;
|
|
6
7
|
--color-light-text-primary: #0b1f35;
|
|
7
8
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
9
|
+
} :root {
|
|
10
|
+
} :root {
|
|
11
|
+
} :root {
|
|
10
12
|
|
|
11
13
|
/* Hard */
|
|
12
14
|
|
|
13
15
|
/* Up */
|
|
14
16
|
|
|
15
17
|
/* Hard up */
|
|
16
|
-
}
|
|
17
|
-
:root {
|
|
18
|
+
} :root {
|
|
19
|
+
} :root {
|
|
18
20
|
--gap-s: 12px;
|
|
19
21
|
--gap-m: 16px;
|
|
20
22
|
--gap-l: 20px;
|
|
21
|
-
}
|
|
22
|
-
:root {
|
|
23
|
+
} :root {
|
|
24
|
+
} :root {
|
|
23
25
|
--disabled-cursor: not-allowed;
|
|
24
26
|
--size-s-height: 48px;
|
|
25
|
-
}
|
|
26
|
-
:root {
|
|
27
|
+
} :root {
|
|
27
28
|
|
|
28
29
|
/* options list */
|
|
29
30
|
|
|
@@ -42,8 +43,7 @@
|
|
|
42
43
|
/* checkmark */
|
|
43
44
|
|
|
44
45
|
/* optgroup */
|
|
45
|
-
}
|
|
46
|
-
.select__option_1hdpc {
|
|
46
|
+
} .select__option_qay43 {
|
|
47
47
|
font-size: 16px;
|
|
48
48
|
line-height: 20px;
|
|
49
49
|
font-weight: 400;
|
|
@@ -60,43 +60,32 @@
|
|
|
60
60
|
position: relative;
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
min-height: var(--size-s-height)
|
|
63
|
-
}
|
|
64
|
-
.select__option_1hdpc:not(.select__disabled_1hdpc):active {
|
|
63
|
+
} .select__option_qay43:not(.select__disabled_qay43):active {
|
|
65
64
|
background: var(--select-option-active-background);
|
|
66
65
|
color: var(--select-option-active-color);
|
|
67
|
-
}
|
|
68
|
-
.select__option_1hdpc.select__checkmarkBefore_1hdpc {
|
|
66
|
+
} .select__option_qay43.select__checkmarkBefore_qay43 {
|
|
69
67
|
padding: 0 0 0 var(--gap-s)
|
|
70
|
-
}
|
|
71
|
-
.select__option_1hdpc.select__checkmarkBefore_1hdpc.select__mobile_1hdpc {
|
|
68
|
+
} .select__option_qay43.select__checkmarkBefore_qay43.select__mobile_qay43 {
|
|
72
69
|
padding-left: var(--gap-m);
|
|
73
|
-
}
|
|
74
|
-
.select__option_1hdpc.select__checkmarkAfter_1hdpc {
|
|
70
|
+
} .select__option_qay43.select__checkmarkAfter_qay43 {
|
|
75
71
|
padding: 0 var(--gap-s) 0 0
|
|
76
|
-
}
|
|
77
|
-
.select__option_1hdpc.select__checkmarkAfter_1hdpc.select__mobile_1hdpc {
|
|
72
|
+
} .select__option_qay43.select__checkmarkAfter_qay43.select__mobile_qay43 {
|
|
78
73
|
padding-right: var(--gap-l);
|
|
79
|
-
}
|
|
80
|
-
.select__option_1hdpc.select__textContent_1hdpc {
|
|
74
|
+
} .select__option_qay43.select__textContent_qay43 {
|
|
81
75
|
padding: var(--gap-s)
|
|
82
|
-
}
|
|
83
|
-
.select__option_1hdpc.select__textContent_1hdpc.select__mobile_1hdpc {
|
|
76
|
+
} .select__option_qay43.select__textContent_qay43.select__mobile_qay43 {
|
|
84
77
|
padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
|
|
85
|
-
}
|
|
86
|
-
.select__selected_1hdpc {
|
|
78
|
+
} .select__selected_qay43 {
|
|
87
79
|
background: var(--select-option-selected-background);
|
|
88
80
|
color: var(--select-option-selected-color);
|
|
89
81
|
cursor: default;
|
|
90
|
-
}
|
|
91
|
-
.select__highlighted_1hdpc {
|
|
82
|
+
} .select__highlighted_qay43 {
|
|
92
83
|
background: var(--select-option-hover-background);
|
|
93
84
|
color: var(--select-option-hover-color);
|
|
94
|
-
}
|
|
95
|
-
.select__disabled_1hdpc {
|
|
85
|
+
} .select__disabled_qay43 {
|
|
96
86
|
cursor: var(--disabled-cursor);
|
|
97
87
|
background: var(--select-option-disabled-background);
|
|
98
88
|
color: var(--select-option-disabled-color);
|
|
99
|
-
}
|
|
100
|
-
.select__content_1hdpc {
|
|
89
|
+
} .select__content_qay43 {
|
|
101
90
|
flex: 1;
|
|
102
91
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-60ccbcec.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-45681199.js';
|
|
10
10
|
import '../../utils.js';
|
|
11
11
|
import '../native-select/Component.js';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: mw53q */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-bg-primary: #fff;
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
--shadow-m: 0 0 16px rgba(11, 31, 53, 0.08), 0 8px 16px rgba(11, 31, 53, 0.16);
|
|
7
9
|
|
|
8
10
|
/* Hard */
|
|
@@ -10,14 +12,13 @@
|
|
|
10
12
|
/* Up */
|
|
11
13
|
|
|
12
14
|
/* Hard up */
|
|
13
|
-
}
|
|
14
|
-
:root {
|
|
15
|
-
--gap-2xs: 4px;
|
|
16
|
-
}
|
|
17
|
-
:root {
|
|
15
|
+
} :root {
|
|
18
16
|
--border-radius-m: 8px;
|
|
19
|
-
}
|
|
20
|
-
:
|
|
17
|
+
} :root {
|
|
18
|
+
--gap-2xs: 4px;
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
21
22
|
|
|
22
23
|
/* options list */
|
|
23
24
|
|
|
@@ -33,13 +34,11 @@
|
|
|
33
34
|
/* checkmark */
|
|
34
35
|
|
|
35
36
|
/* optgroup */
|
|
36
|
-
}
|
|
37
|
-
.select__component_1bdg8 {
|
|
37
|
+
} .select__component_jds7l {
|
|
38
38
|
width: max-content;
|
|
39
39
|
position: relative;
|
|
40
40
|
outline: 0;
|
|
41
|
-
}
|
|
42
|
-
.select__popoverInner_1bdg8 {
|
|
41
|
+
} .select__popoverInner_jds7l {
|
|
43
42
|
padding-top: var(--select-options-list-offset);
|
|
44
43
|
padding-bottom: var(--select-options-list-offset);
|
|
45
44
|
box-shadow: none;
|
|
@@ -47,8 +46,7 @@
|
|
|
47
46
|
background: transparent;
|
|
48
47
|
border-radius: 0;
|
|
49
48
|
position: relative;
|
|
50
|
-
}
|
|
51
|
-
.select__optionsList_1bdg8 {
|
|
49
|
+
} .select__optionsList_jds7l {
|
|
52
50
|
padding-top: var(--select-options-list-top-padding);
|
|
53
51
|
padding-bottom: var(--select-options-list-bottom-padding);
|
|
54
52
|
box-shadow: var(--select-options-list-box-shadow);
|
|
@@ -56,8 +54,7 @@
|
|
|
56
54
|
background: var(--select-option-background);
|
|
57
55
|
overflow: hidden;
|
|
58
56
|
will-change: transform;
|
|
59
|
-
}
|
|
60
|
-
.select__nativeSelect_1bdg8 {
|
|
57
|
+
} .select__nativeSelect_jds7l {
|
|
61
58
|
opacity: 0;
|
|
62
59
|
overflow: hidden;
|
|
63
60
|
position: absolute;
|
|
@@ -70,13 +67,10 @@
|
|
|
70
67
|
height: 100%;
|
|
71
68
|
cursor: pointer;
|
|
72
69
|
z-index: 1;
|
|
73
|
-
}
|
|
74
|
-
.select__block_1bdg8 {
|
|
70
|
+
} .select__block_jds7l {
|
|
75
71
|
width: 100%;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
79
|
-
.select__component_1bdg8 {
|
|
72
|
+
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
73
|
+
.select__component_jds7l {
|
|
80
74
|
float: left;
|
|
81
75
|
clear: left;
|
|
82
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-45681199";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { B as BaseSelect } from '../../Component-
|
|
2
|
-
import '../../tslib.es6-
|
|
1
|
+
export { B as BaseSelect } from '../../Component-45681199.js';
|
|
2
|
+
import '../../tslib.es6-60ccbcec.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-60ccbcec.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-45681199.js';
|
|
11
|
+
export { B as BaseSelectMobile } from '../../Component-ff31e94c.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-ce0b7183.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_1aviy","selected":"select__selected_1aviy","displayIcon":"select__displayIcon_1aviy","displayBadge":"select__displayBadge_1aviy"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var Checkmark = function (_a) {
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1wvau */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
11
18
|
|
|
12
19
|
/* options list */
|
|
13
20
|
|
|
@@ -18,8 +25,7 @@
|
|
|
18
25
|
--select-mobile-checkmark-display-badge: none;
|
|
19
26
|
|
|
20
27
|
/* optgroup */
|
|
21
|
-
}
|
|
22
|
-
.select__checkmark_1222e {
|
|
28
|
+
} .select__checkmark_1aviy {
|
|
23
29
|
flex-shrink: 0;
|
|
24
30
|
display: flex;
|
|
25
31
|
align-items: center;
|
|
@@ -27,16 +33,12 @@
|
|
|
27
33
|
width: 24px;
|
|
28
34
|
height: 24px;
|
|
29
35
|
opacity: 0
|
|
30
|
-
}
|
|
31
|
-
.select__checkmark_1222e:first-child {
|
|
36
|
+
} .select__checkmark_1aviy:first-child {
|
|
32
37
|
display: none;
|
|
33
|
-
}
|
|
34
|
-
.select__checkmark_1222e.select__selected_1222e {
|
|
38
|
+
} .select__checkmark_1aviy.select__selected_1aviy {
|
|
35
39
|
opacity: 1;
|
|
36
|
-
}
|
|
37
|
-
.select__displayIcon_1222e {
|
|
40
|
+
} .select__displayIcon_1aviy {
|
|
38
41
|
display: var(--select-mobile-checkmark-display-icon);
|
|
39
|
-
}
|
|
40
|
-
.select__displayBadge_1222e {
|
|
42
|
+
} .select__displayBadge_1aviy {
|
|
41
43
|
display: var(--select-mobile-checkmark-display-badge);
|
|
42
44
|
}
|