@alfalab/core-components-select 13.1.1 → 13.1.2
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-ecfd1f2b.d.ts → Component-ad8bdc8a.d.ts} +0 -0
- package/{Component-ecfd1f2b.js → Component-ad8bdc8a.js} +2 -2
- package/{Component-7546861a.d.ts → Component-bf23f796.d.ts} +0 -0
- package/{Component-7546861a.js → Component-bf23f796.js} +5 -5
- package/Component.js +2 -2
- 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 +2 -2
- package/components/base-option/index.css +11 -11
- 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/esm/{Component-42145c7f.d.ts → Component-49ae431a.d.ts} +0 -0
- package/esm/{Component-42145c7f.js → Component-49ae431a.js} +2 -2
- package/esm/{Component-904366d4.d.ts → Component-ef141f41.d.ts} +0 -0
- package/esm/{Component-904366d4.js → Component-ef141f41.js} +5 -5
- package/esm/Component.js +2 -2
- 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 +2 -2
- package/esm/components/base-option/index.css +11 -11
- 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-54d01139.d.ts → intersection-observer-4bd81169.d.ts} +0 -0
- package/esm/{intersection-observer-54d01139.js → intersection-observer-4bd81169.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/{tslib.es6-795118d5.d.ts → tslib.es6-651def22.d.ts} +0 -0
- package/esm/{tslib.es6-795118d5.js → tslib.es6-651def22.js} +0 -0
- package/index.js +4 -4
- package/{intersection-observer-0340401e.d.ts → intersection-observer-d65d2934.d.ts} +0 -0
- package/{intersection-observer-0340401e.js → intersection-observer-d65d2934.js} +0 -0
- package/modern/{Component-83edf513.d.ts → Component-0949887e.d.ts} +0 -0
- package/modern/{Component-83edf513.js → Component-0949887e.js} +1 -1
- package/modern/{Component-81d1cf96.d.ts → Component-cbf3ea29.d.ts} +0 -0
- package/modern/{Component-81d1cf96.js → Component-cbf3ea29.js} +4 -4
- package/modern/Component.js +1 -1
- 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 +1 -1
- package/modern/components/base-option/index.css +11 -11
- 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-54d01139.d.ts → intersection-observer-4bd81169.d.ts} +0 -0
- package/modern/{intersection-observer-54d01139.js → intersection-observer-4bd81169.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/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/{tslib.es6-adf850c3.d.ts → tslib.es6-43fcc2c4.d.ts} +0 -0
- /package/{tslib.es6-adf850c3.js → tslib.es6-43fcc2c4.js} +0 -0
package/esm/presets/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../tslib.es6-
|
|
1
|
+
import '../tslib.es6-651def22.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -8,7 +8,7 @@ import '@juggle/resize-observer';
|
|
|
8
8
|
import 'downshift';
|
|
9
9
|
import '@alfalab/core-components-popover/esm';
|
|
10
10
|
import '@alfalab/hooks';
|
|
11
|
-
import '../Component-
|
|
11
|
+
import '../Component-49ae431a.js';
|
|
12
12
|
import '../utils.js';
|
|
13
13
|
import '../components/native-select/Component.js';
|
|
14
14
|
import '@alfalab/core-components-form-control/esm';
|
|
@@ -27,7 +27,7 @@ import '../Component.js';
|
|
|
27
27
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
28
28
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
29
29
|
import '@alfalab/core-components-button/esm';
|
|
30
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-
|
|
30
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-ef141f41.js';
|
|
31
31
|
import '../components/base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-base-modal/esm';
|
|
33
33
|
import '../components/base-select-mobile/options-list/Component.js';
|
|
@@ -36,4 +36,4 @@ import '../components/base-option/Component.js';
|
|
|
36
36
|
import '@alfalab/core-components-skeleton/esm';
|
|
37
37
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
38
38
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
39
|
-
import '../intersection-observer-
|
|
39
|
+
import '../intersection-observer-4bd81169.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as __spreadArray, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { b as __spreadArray, a as __assign } from '../../tslib.es6-651def22.js';
|
|
2
2
|
import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components/badge';
|
|
@@ -9,9 +9,9 @@ import '@alfalab/core-components-checkbox/esm';
|
|
|
9
9
|
import '../../components/checkmark/Component.js';
|
|
10
10
|
import { Option } from '../../components/option/Component.js';
|
|
11
11
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
12
|
-
import '../../intersection-observer-
|
|
12
|
+
import '../../intersection-observer-4bd81169.js';
|
|
13
13
|
|
|
14
|
-
var styles = {"skeleton":"
|
|
14
|
+
var styles = {"skeleton":"select__skeleton_e5ban"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var DEBOUNCE_TIMEOUT = 300;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-651def22.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -8,7 +8,7 @@ import '@juggle/resize-observer';
|
|
|
8
8
|
import 'downshift';
|
|
9
9
|
import '@alfalab/core-components-popover/esm';
|
|
10
10
|
import '@alfalab/hooks';
|
|
11
|
-
import '../../Component-
|
|
11
|
+
import '../../Component-49ae431a.js';
|
|
12
12
|
import '../../utils.js';
|
|
13
13
|
import '../../components/native-select/Component.js';
|
|
14
14
|
import '@alfalab/core-components-form-control/esm';
|
|
@@ -27,11 +27,11 @@ import '../../Component.js';
|
|
|
27
27
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
28
28
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
29
29
|
import '@alfalab/core-components-button/esm';
|
|
30
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-
|
|
30
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-ef141f41.js';
|
|
31
31
|
import '../../components/base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-base-modal/esm';
|
|
33
33
|
import '../../components/base-select-mobile/options-list/Component.js';
|
|
34
34
|
import 'react-virtual';
|
|
35
35
|
import '../../components/base-option/Component.js';
|
|
36
36
|
import '@alfalab/core-components-skeleton/esm';
|
|
37
|
-
import '../../intersection-observer-
|
|
37
|
+
import '../../intersection-observer-4bd81169.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../tslib.es6-
|
|
1
|
+
import '../../../tslib.es6-651def22.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -8,7 +8,7 @@ import '@juggle/resize-observer';
|
|
|
8
8
|
import 'downshift';
|
|
9
9
|
import '@alfalab/core-components-popover/esm';
|
|
10
10
|
import '@alfalab/hooks';
|
|
11
|
-
import '../../../Component-
|
|
11
|
+
import '../../../Component-49ae431a.js';
|
|
12
12
|
import '../../../utils.js';
|
|
13
13
|
import '../../../components/native-select/Component.js';
|
|
14
14
|
import '@alfalab/core-components-form-control/esm';
|
|
@@ -27,11 +27,11 @@ import '../../../Component.js';
|
|
|
27
27
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
28
28
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
29
29
|
import '@alfalab/core-components-button/esm';
|
|
30
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
30
|
+
export { O as OptionsListWithApply } from '../../../Component-ef141f41.js';
|
|
31
31
|
import '../../../components/base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-base-modal/esm';
|
|
33
33
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
34
34
|
import 'react-virtual';
|
|
35
35
|
import '../../../components/base-option/Component.js';
|
|
36
36
|
import '@alfalab/core-components-skeleton/esm';
|
|
37
|
-
import '../../../intersection-observer-
|
|
37
|
+
import '../../../intersection-observer-4bd81169.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9qzz5 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-secondary: #e7e9eb;
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
|
|
26
26
|
/* optgroup */
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.select__footer_13khx {
|
|
29
29
|
background: var(--color-light-bg-primary);
|
|
30
30
|
padding: var(--gap-s);
|
|
31
31
|
outline: none
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.select__footer_13khx > * + * {
|
|
34
34
|
margin-left: var(--gap-xs);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.select__withBorder_13khx {
|
|
37
37
|
box-shadow: inset 0 1px 0 var(--color-light-border-secondary);
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../Component-
|
|
1
|
+
export * from "../../../Component-ef141f41";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../tslib.es6-
|
|
1
|
+
import '../../../tslib.es6-651def22.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -8,7 +8,7 @@ import '@juggle/resize-observer';
|
|
|
8
8
|
import 'downshift';
|
|
9
9
|
import '@alfalab/core-components-popover/esm';
|
|
10
10
|
import '@alfalab/hooks';
|
|
11
|
-
import '../../../Component-
|
|
11
|
+
import '../../../Component-49ae431a.js';
|
|
12
12
|
import '../../../utils.js';
|
|
13
13
|
import '../../../components/native-select/Component.js';
|
|
14
14
|
import '@alfalab/core-components-form-control/esm';
|
|
@@ -27,11 +27,11 @@ import '../../../Component.js';
|
|
|
27
27
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
28
28
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
29
29
|
import '@alfalab/core-components-button/esm';
|
|
30
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
30
|
+
export { O as OptionsListWithApply } from '../../../Component-ef141f41.js';
|
|
31
31
|
import '../../../components/base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-base-modal/esm';
|
|
33
33
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
34
34
|
import 'react-virtual';
|
|
35
35
|
import '../../../components/base-option/Component.js';
|
|
36
36
|
import '@alfalab/core-components-skeleton/esm';
|
|
37
|
-
import '../../../intersection-observer-
|
|
37
|
+
import '../../../intersection-observer-4bd81169.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-651def22.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components/badge';
|
|
@@ -10,7 +10,7 @@ import '../../components/checkmark/Component.js';
|
|
|
10
10
|
import { Option } from '../../components/option/Component.js';
|
|
11
11
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
12
12
|
|
|
13
|
-
var styles = {"skeleton":"
|
|
13
|
+
var styles = {"skeleton":"select__skeleton_1e8mj"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
function useSelectWithLoading(_a) {
|
|
File without changes
|
|
File without changes
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-43fcc2c4.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
@@ -12,7 +12,7 @@ require('@juggle/resize-observer');
|
|
|
12
12
|
require('downshift');
|
|
13
13
|
require('@alfalab/core-components-popover');
|
|
14
14
|
require('@alfalab/hooks');
|
|
15
|
-
var components_baseSelect_Component = require('./Component-
|
|
15
|
+
var components_baseSelect_Component = require('./Component-ad8bdc8a.js');
|
|
16
16
|
var utils = require('./utils.js');
|
|
17
17
|
require('./components/native-select/Component.js');
|
|
18
18
|
require('@alfalab/core-components-form-control');
|
|
@@ -31,7 +31,7 @@ var Component = require('./Component.js');
|
|
|
31
31
|
require('@alfalab/core-components-bottom-sheet');
|
|
32
32
|
require('@alfalab/core-components-modal/mobile');
|
|
33
33
|
require('@alfalab/core-components-button');
|
|
34
|
-
var presets_useSelectWithApply_hook = require('./Component-
|
|
34
|
+
var presets_useSelectWithApply_hook = require('./Component-bf23f796.js');
|
|
35
35
|
require('./components/base-checkmark/Component.js');
|
|
36
36
|
require('@alfalab/core-components-base-modal');
|
|
37
37
|
require('./components/base-select-mobile/options-list/Component.js');
|
|
@@ -41,7 +41,7 @@ var components_baseOption_Component = require('./components/base-option/Componen
|
|
|
41
41
|
require('@alfalab/core-components-skeleton');
|
|
42
42
|
var presets_useSelectWithLoading_hook = require('./presets/useSelectWithLoading/hook.js');
|
|
43
43
|
var presets_useLazyLoading_hook = require('./presets/useLazyLoading/hook.js');
|
|
44
|
-
require('./intersection-observer-
|
|
44
|
+
require('./intersection-observer-d65d2934.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
13
13
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"
|
|
16
|
+
var styles = {"component":"select__component_1s583","popoverInner":"select__popoverInner_1s583","optionsList":"select__optionsList_1s583","nativeSelect":"select__nativeSelect_1s583","block":"select__block_1s583"};
|
|
17
17
|
require('./components/base-select/index.css')
|
|
18
18
|
|
|
19
19
|
const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, popperClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 's', optionsSize = size, error, hint, block, label, labelView, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, updatePopover, zIndexPopover, showEmptyOptionsList = false, visibleOptions, }, ref) => {
|
|
File without changes
|
|
@@ -5,7 +5,7 @@ import { Arrow } from './components/arrow/Component.js';
|
|
|
5
5
|
import mergeRefs from 'react-merge-refs';
|
|
6
6
|
import { useMultipleSelection, useCombobox } from 'downshift';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
|
-
import { g as getDataTestId } from './Component-
|
|
8
|
+
import { g as getDataTestId } from './Component-0949887e.js';
|
|
9
9
|
import { processOptions } from './utils.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern';
|
|
11
11
|
import { Field } from './components/field/Component.js';
|
|
@@ -27,7 +27,7 @@ import { OptionsList as OptionsList$1 } from './components/base-select-mobile/op
|
|
|
27
27
|
import 'react-virtual';
|
|
28
28
|
import { BaseOption } from './components/base-option/Component.js';
|
|
29
29
|
import '@alfalab/core-components-skeleton/modern';
|
|
30
|
-
import './intersection-observer-
|
|
30
|
+
import './intersection-observer-4bd81169.js';
|
|
31
31
|
|
|
32
32
|
const SELECT_ALL_KEY = 'select_all';
|
|
33
33
|
const selectAllOption = { key: SELECT_ALL_KEY, content: 'Выбрать все' };
|
|
@@ -95,7 +95,7 @@ function useSelectWithApply({ options, selected, onChange = () => null, OptionsL
|
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
var styles = {"footer":"
|
|
98
|
+
var styles = {"footer":"select__footer_13khx","withBorder":"select__withBorder_13khx"};
|
|
99
99
|
require('./presets/useSelectWithApply/options-list-with-apply/index.css')
|
|
100
100
|
|
|
101
101
|
const OptionsListWithApply = forwardRef(({ toggleMenu, OptionsList: OptionsList$1 = OptionsList, getOptionProps: defaultGetOptionProps, showClear = true, selectedDraft = [], flatOptions = [], onApply = () => null, onClear = () => null, onClose = () => null, visibleOptions = 5, ...restProps }, ref) => {
|
|
@@ -142,7 +142,7 @@ const OptionsListWithApply = forwardRef(({ toggleMenu, OptionsList: OptionsList$
|
|
|
142
142
|
showClear && (React.createElement(Button, { size: 'xxs', view: 'secondary', onClick: handleClear }, "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C"))) }));
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
-
var styles$1 = {"component":"
|
|
145
|
+
var styles$1 = {"component":"select__component_b3gt3","popoverInner":"select__popoverInner_b3gt3","sheet":"select__sheet_b3gt3","sheetContent":"select__sheetContent_b3gt3","sheetContainer":"select__sheetContainer_b3gt3","block":"select__block_b3gt3","option":"select__option_b3gt3","optionGroup":"select__optionGroup_b3gt3"};
|
|
146
146
|
require('./components/base-select-mobile/index.css')
|
|
147
147
|
|
|
148
148
|
const BaseSelectMobile = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, optionGroupClassName, optionsListProps, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, defaultOpen = false, open: openProp, name, id, selected, size = 'm', optionsSize = 'm', error, hint, block, label, labelView, placeholder, fieldProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, Arrow: Arrow$1 = Arrow, Field: Field$1 = Field, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, swipeable, footer, isBottomSheet, bottomSheetProps, }, ref) => {
|
package/modern/Component.js
CHANGED
|
@@ -7,7 +7,7 @@ import '@juggle/resize-observer';
|
|
|
7
7
|
import 'downshift';
|
|
8
8
|
import '@alfalab/core-components-popover/modern';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import { B as BaseSelect } from './Component-
|
|
10
|
+
import { B as BaseSelect } from './Component-0949887e.js';
|
|
11
11
|
import './utils.js';
|
|
12
12
|
import './components/native-select/Component.js';
|
|
13
13
|
import '@alfalab/core-components-form-control/modern';
|
|
@@ -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_4xop4","open":"select__open_4xop4"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Arrow = ({ open, className }) => (React.createElement(ChevronDownMIcon, { className: cn(styles.arrow, className, { [styles.open]: open }) }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: oa0j9 */
|
|
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_4xop4 {
|
|
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_4xop4 {
|
|
36
36
|
transform: var(--arrow-transform);
|
|
37
37
|
}
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
4
4
|
import { Checkbox } from '@alfalab/core-components-checkbox/modern';
|
|
5
5
|
|
|
6
|
-
var styles = {"checkmark":"
|
|
6
|
+
var styles = {"checkmark":"select__checkmark_ot7kz","single":"select__single_ot7kz","selected":"select__selected_ot7kz"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const BaseCheckmark = ({ selected, disabled = false, className, multiple, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: mkr7f */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
|
|
18
18
|
/* optgroup */
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.select__checkmark_ot7kz {
|
|
21
21
|
flex-shrink: 0;
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.select__single_ot7kz {
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: center;
|
|
28
28
|
opacity: 0
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.select__single_ot7kz.select__selected_ot7kz {
|
|
31
31
|
opacity: 1;
|
|
32
32
|
}
|
|
@@ -4,7 +4,7 @@ import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
|
4
4
|
import '@alfalab/core-components-checkbox/modern';
|
|
5
5
|
import { BaseCheckmark } from '../base-checkmark/Component.js';
|
|
6
6
|
|
|
7
|
-
var styles = {"option":"
|
|
7
|
+
var styles = {"option":"select__option_tmrhv","disabled":"select__disabled_tmrhv","checkmarkBefore":"select__checkmarkBefore_tmrhv","checkmarkAfter":"select__checkmarkAfter_tmrhv","textContent":"select__textContent_tmrhv","mobileTextContent":"select__mobileTextContent_tmrhv","selected":"select__selected_tmrhv","highlighted":"select__highlighted_tmrhv","content":"select__content_tmrhv"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const BaseOption = ({ className, option, children, selected, highlighted, disabled, multiple, Checkmark = BaseCheckmark, checkmarkPosition = multiple ? 'before' : 'after', innerProps, dataTestId, mobile = false, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1w5vo */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-bg-secondary: #f3f4f5;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
/* optgroup */
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.select__option_tmrhv {
|
|
46
46
|
font-size: 16px;
|
|
47
47
|
line-height: 20px;
|
|
48
48
|
font-weight: 400;
|
|
@@ -60,36 +60,36 @@
|
|
|
60
60
|
cursor: pointer;
|
|
61
61
|
min-height: var(--size-s-height)
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.select__option_tmrhv:not(.select__disabled_tmrhv):active {
|
|
64
64
|
background: var(--select-option-active-background);
|
|
65
65
|
color: var(--select-option-active-color);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.select__option_tmrhv.select__checkmarkBefore_tmrhv {
|
|
68
68
|
padding: 0 0 0 var(--gap-s);
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.select__option_tmrhv.select__checkmarkAfter_tmrhv {
|
|
71
71
|
padding: 0 var(--gap-s) 0 0;
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.select__option_tmrhv.select__textContent_tmrhv {
|
|
74
74
|
padding: var(--gap-s);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.select__option_tmrhv.select__mobileTextContent_tmrhv {
|
|
77
77
|
padding: var(--gap-m);
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.select__selected_tmrhv {
|
|
80
80
|
background: var(--select-option-selected-background);
|
|
81
81
|
color: var(--select-option-selected-color);
|
|
82
82
|
cursor: default;
|
|
83
83
|
}
|
|
84
|
-
.
|
|
84
|
+
.select__highlighted_tmrhv {
|
|
85
85
|
background: var(--select-option-hover-background);
|
|
86
86
|
color: var(--select-option-hover-color);
|
|
87
87
|
}
|
|
88
|
-
.
|
|
88
|
+
.select__disabled_tmrhv {
|
|
89
89
|
cursor: var(--disabled-cursor);
|
|
90
90
|
background: var(--select-option-disabled-background);
|
|
91
91
|
color: var(--select-option-disabled-color);
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.select__content_tmrhv {
|
|
94
94
|
flex: 1;
|
|
95
95
|
}
|
|
@@ -5,6 +5,6 @@ import '@juggle/resize-observer';
|
|
|
5
5
|
import 'downshift';
|
|
6
6
|
import '@alfalab/core-components-popover/modern';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
|
-
export { B as BaseSelect } from '../../Component-
|
|
8
|
+
export { B as BaseSelect } from '../../Component-0949887e.js';
|
|
9
9
|
import '../../utils.js';
|
|
10
10
|
import '../native-select/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1vfxq */
|
|
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_1s583 {
|
|
38
38
|
width: max-content;
|
|
39
39
|
position: relative;
|
|
40
40
|
outline: 0;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.select__popoverInner_1s583 {
|
|
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_1s583 {
|
|
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_1s583 {
|
|
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_1s583 {
|
|
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_1s583 {
|
|
80
80
|
float: left;
|
|
81
81
|
clear: left;
|
|
82
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-0949887e";
|
|
@@ -5,6 +5,6 @@ import '@juggle/resize-observer';
|
|
|
5
5
|
import 'downshift';
|
|
6
6
|
import '@alfalab/core-components-popover/modern';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
|
-
export { B as BaseSelect } from '../../Component-
|
|
8
|
+
export { B as BaseSelect } from '../../Component-0949887e.js';
|
|
9
9
|
import '../../utils.js';
|
|
10
10
|
import '../native-select/Component.js';
|
|
@@ -7,7 +7,7 @@ import '@juggle/resize-observer';
|
|
|
7
7
|
import 'downshift';
|
|
8
8
|
import '@alfalab/core-components-popover/modern';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import '../../Component-
|
|
10
|
+
import '../../Component-0949887e.js';
|
|
11
11
|
import '../../utils.js';
|
|
12
12
|
import '../native-select/Component.js';
|
|
13
13
|
import '@alfalab/core-components-form-control/modern';
|
|
@@ -26,11 +26,11 @@ import '../../Component.js';
|
|
|
26
26
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
27
27
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
28
28
|
import '@alfalab/core-components-button/modern';
|
|
29
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
29
|
+
export { B as BaseSelectMobile } from '../../Component-cbf3ea29.js';
|
|
30
30
|
import '../base-checkmark/Component.js';
|
|
31
31
|
import '@alfalab/core-components-base-modal/modern';
|
|
32
32
|
import './options-list/Component.js';
|
|
33
33
|
import 'react-virtual';
|
|
34
34
|
import '../base-option/Component.js';
|
|
35
35
|
import '@alfalab/core-components-skeleton/modern';
|
|
36
|
-
import '../../intersection-observer-
|
|
36
|
+
import '../../intersection-observer-4bd81169.js';
|
|
@@ -4,7 +4,7 @@ import { Badge } from '@alfalab/core-components/badge';
|
|
|
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_3ew5p","selected":"select__selected_3ew5p","displayIcon":"select__displayIcon_3ew5p","displayBadge":"select__displayBadge_3ew5p"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Checkmark = ({ selected, className }) => (React.createElement("div", { className: cn(styles.checkmark, className, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15nib */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
/* optgroup */
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.select__checkmark_3ew5p {
|
|
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_3ew5p:first-child {
|
|
32
32
|
display: none;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.select__checkmark_3ew5p.select__selected_3ew5p {
|
|
35
35
|
opacity: 1;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.select__displayIcon_3ew5p {
|
|
38
38
|
display: var(--select-mobile-checkmark-display-icon);
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.select__displayBadge_3ew5p {
|
|
41
41
|
display: var(--select-mobile-checkmark-display-badge);
|
|
42
42
|
}
|