@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,19 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: vhix9 */
|
|
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 {
|
|
11
15
|
--gap-2xs: 4px;
|
|
12
16
|
--gap-xs: 8px;
|
|
13
17
|
--gap-m: 16px;
|
|
14
18
|
--gap-l: 20px;
|
|
15
|
-
}
|
|
16
|
-
:root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
17
22
|
|
|
18
23
|
/* options list */
|
|
19
24
|
--select-options-list-offset: var(--gap-2xs);
|
|
@@ -23,13 +28,11 @@
|
|
|
23
28
|
/* checkmark */
|
|
24
29
|
|
|
25
30
|
/* optgroup */
|
|
26
|
-
}
|
|
27
|
-
.select__component_lrrs7 {
|
|
31
|
+
} .select__component_1pm5k {
|
|
28
32
|
width: max-content;
|
|
29
33
|
position: relative;
|
|
30
34
|
outline: 0;
|
|
31
|
-
}
|
|
32
|
-
.select__popoverInner_lrrs7 {
|
|
35
|
+
} .select__popoverInner_1pm5k {
|
|
33
36
|
padding-top: var(--select-options-list-offset);
|
|
34
37
|
padding-bottom: var(--select-options-list-offset);
|
|
35
38
|
box-shadow: none;
|
|
@@ -37,32 +40,23 @@
|
|
|
37
40
|
background: transparent;
|
|
38
41
|
border-radius: 0;
|
|
39
42
|
position: relative;
|
|
40
|
-
}
|
|
41
|
-
.select__sheet_lrrs7 {
|
|
43
|
+
} .select__sheet_1pm5k {
|
|
42
44
|
overflow: hidden;
|
|
43
|
-
}
|
|
44
|
-
.select__sheetContent_lrrs7 {
|
|
45
|
+
} .select__sheetContent_1pm5k {
|
|
45
46
|
padding: 0;
|
|
46
|
-
}
|
|
47
|
-
.select__sheetContainer_lrrs7 {
|
|
47
|
+
} .select__sheetContainer_1pm5k {
|
|
48
48
|
padding: 0;
|
|
49
|
-
}
|
|
50
|
-
.select__block_lrrs7 {
|
|
49
|
+
} .select__block_1pm5k {
|
|
51
50
|
width: 100%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
55
|
-
.select__component_lrrs7 {
|
|
51
|
+
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
52
|
+
.select__component_1pm5k {
|
|
56
53
|
float: left;
|
|
57
54
|
clear: left;
|
|
58
55
|
}
|
|
59
|
-
}
|
|
60
|
-
.select__option_lrrs7 {
|
|
56
|
+
} .select__option_1pm5k {
|
|
61
57
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
62
|
-
}
|
|
63
|
-
.select__option_lrrs7:before {
|
|
58
|
+
} .select__option_1pm5k:before {
|
|
64
59
|
display: none;
|
|
65
|
-
}
|
|
66
|
-
.select__optionGroup_lrrs7 {
|
|
60
|
+
} .select__optionGroup_1pm5k {
|
|
67
61
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
68
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-ff31e94c";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
2
|
-
import '../../tslib.es6-
|
|
1
|
+
export { B as BaseSelectMobile } from '../../Component-ff31e94c.js';
|
|
2
|
+
import '../../tslib.es6-60ccbcec.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-45681199.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-ce0b7183.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-60ccbcec.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_u5r7f","emptyPlaceholder":"select__emptyPlaceholder_u5r7f","l":"select__l_u5r7f","xl":"select__xl_u5r7f","footer":"select__footer_u5r7f","footerButton":"select__footerButton_u5r7f","highlighted":"select__highlighted_u5r7f"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var createCounter = function () {
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 23yhf */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-bg-primary: #fff;
|
|
4
5
|
--color-light-border-primary: #dbdee1;
|
|
5
6
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
6
|
-
}
|
|
7
|
-
:root {
|
|
7
|
+
} :root {
|
|
8
|
+
} :root {
|
|
9
|
+
} :root {
|
|
8
10
|
|
|
9
11
|
/* Hard */
|
|
10
12
|
|
|
11
13
|
/* Up */
|
|
12
14
|
|
|
13
15
|
/* Hard up */
|
|
14
|
-
}
|
|
15
|
-
:root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
16
18
|
--gap-s: 12px;
|
|
17
19
|
--gap-m: 16px;
|
|
18
20
|
--gap-xl: 24px;
|
|
19
|
-
}
|
|
20
|
-
:root {
|
|
21
|
+
} :root {
|
|
22
|
+
} :root {
|
|
23
|
+
} :root {
|
|
21
24
|
|
|
22
25
|
/* options list */
|
|
23
26
|
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
@@ -27,39 +30,31 @@
|
|
|
27
30
|
/* checkmark */
|
|
28
31
|
|
|
29
32
|
/* optgroup */
|
|
30
|
-
}
|
|
31
|
-
:root {
|
|
33
|
+
} :root {
|
|
32
34
|
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
33
35
|
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
34
|
-
}
|
|
35
|
-
.select__optionsList_djh10 {
|
|
36
|
+
} .select__optionsList_u5r7f {
|
|
36
37
|
width: 100%;
|
|
37
38
|
outline: none;
|
|
38
39
|
box-sizing: border-box;
|
|
39
|
-
}
|
|
40
|
-
.select__emptyPlaceholder_djh10 {
|
|
40
|
+
} .select__emptyPlaceholder_u5r7f {
|
|
41
41
|
padding: var(--gap-m) var(--gap-s);
|
|
42
42
|
color: var(--select-options-list-empty-placeholder-color);
|
|
43
|
-
}
|
|
44
|
-
.
|
|
45
|
-
.select__xl_djh10 .select__emptyPlaceholder_djh10 {
|
|
43
|
+
} .select__l_u5r7f .select__emptyPlaceholder_u5r7f,
|
|
44
|
+
.select__xl_u5r7f .select__emptyPlaceholder_u5r7f {
|
|
46
45
|
padding: var(--gap-xl) var(--gap-m);
|
|
47
|
-
}
|
|
48
|
-
.select__footer_djh10 {
|
|
46
|
+
} .select__footer_u5r7f {
|
|
49
47
|
display: flex;
|
|
50
48
|
justify-content: space-between;
|
|
51
49
|
position: sticky;
|
|
52
50
|
padding: var(--gap-m) var(--gap-m);
|
|
53
51
|
background-color: var(--color-light-bg-primary);
|
|
54
52
|
bottom: 0
|
|
55
|
-
}
|
|
56
|
-
.select__footer_djh10 .select__footerButton_djh10:first-of-type {
|
|
53
|
+
} .select__footer_u5r7f .select__footerButton_u5r7f:first-of-type {
|
|
57
54
|
margin-right: var(--gap-m);
|
|
58
|
-
}
|
|
59
|
-
.select__footerButton_djh10 {
|
|
55
|
+
} .select__footerButton_u5r7f {
|
|
60
56
|
width: 50%;
|
|
61
|
-
}
|
|
62
|
-
.select__highlighted_djh10 {
|
|
57
|
+
} .select__highlighted_u5r7f {
|
|
63
58
|
border-top: var(--select-mobile-footer-border-top);
|
|
64
59
|
background-color: var(--select-mobile-footer-background-color);
|
|
65
60
|
}
|
|
@@ -4,7 +4,7 @@ import { Badge } from '@alfalab/core-components-badge/esm';
|
|
|
4
4
|
import { Checkbox } from '@alfalab/core-components-checkbox/esm';
|
|
5
5
|
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
6
6
|
|
|
7
|
-
var styles = {"checkmark":"
|
|
7
|
+
var styles = {"checkmark":"select__checkmark_1mumt","single":"select__single_1mumt","selected":"select__selected_1mumt","before":"select__before_1mumt","multiple":"select__multiple_1mumt","after":"select__after_1mumt","colorIcon":"select__colorIcon_1mumt"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var Checkmark = function (_a) {
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1lzpe */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-graphic-positive: #2fc26e;
|
|
4
5
|
--color-light-graphic-primary: #0b1f35;
|
|
5
|
-
}
|
|
6
|
-
:root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
8
|
+
} :root {
|
|
7
9
|
|
|
8
10
|
/* Hard */
|
|
9
11
|
|
|
10
12
|
/* Up */
|
|
11
13
|
|
|
12
14
|
/* Hard up */
|
|
13
|
-
}
|
|
14
|
-
:
|
|
15
|
+
} :root {
|
|
16
|
+
--border-radius-circle: 50%;
|
|
17
|
+
} :root {
|
|
15
18
|
--gap-xs: 8px;
|
|
16
19
|
--gap-s: 12px;
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
:root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
22
|
+
} :root {
|
|
22
23
|
|
|
23
24
|
/* options list */
|
|
24
25
|
|
|
@@ -35,12 +36,10 @@
|
|
|
35
36
|
--select-checkmark-border-radius: var(--border-radius-circle);
|
|
36
37
|
|
|
37
38
|
/* optgroup */
|
|
38
|
-
}
|
|
39
|
-
.select__checkmark_ewa0o {
|
|
39
|
+
} .select__checkmark_1mumt {
|
|
40
40
|
flex-shrink: 0;
|
|
41
41
|
margin: var(--select-checkmark-margin);
|
|
42
|
-
}
|
|
43
|
-
.select__single_ewa0o {
|
|
42
|
+
} .select__single_1mumt {
|
|
44
43
|
display: flex;
|
|
45
44
|
align-items: center;
|
|
46
45
|
justify-content: center;
|
|
@@ -50,19 +49,14 @@
|
|
|
50
49
|
border-radius: var(--select-checkmark-border-radius);
|
|
51
50
|
width: var(--select-checkmark-size);
|
|
52
51
|
height: var(--select-checkmark-size)
|
|
53
|
-
}
|
|
54
|
-
.select__single_ewa0o.select__selected_ewa0o {
|
|
52
|
+
} .select__single_1mumt.select__selected_1mumt {
|
|
55
53
|
opacity: 1;
|
|
56
|
-
}
|
|
57
|
-
.select__before_ewa0o {
|
|
54
|
+
} .select__before_1mumt {
|
|
58
55
|
display: var(--select-checkmark-before-display)
|
|
59
|
-
}
|
|
60
|
-
.select__before_ewa0o.select__multiple_ewa0o {
|
|
56
|
+
} .select__before_1mumt.select__multiple_1mumt {
|
|
61
57
|
margin-right: var(--gap-s);
|
|
62
|
-
}
|
|
63
|
-
.select__after_ewa0o {
|
|
58
|
+
} .select__after_1mumt {
|
|
64
59
|
display: var(--select-checkmark-after-display);
|
|
65
|
-
}
|
|
66
|
-
.select__colorIcon_ewa0o {
|
|
60
|
+
} .select__colorIcon_1mumt {
|
|
67
61
|
color: var(--color-light-graphic-positive);
|
|
68
62
|
}
|
|
@@ -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, { useState, useRef, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { FormControl } from '@alfalab/core-components-form-control/esm';
|
|
5
5
|
import { useFocus } from '@alfalab/hooks';
|
|
6
6
|
import { joinOptions } from '../../utils.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"
|
|
8
|
+
var styles = {"component":"select__component_1kjo4","field":"select__field_1kjo4","disabled":"select__disabled_1kjo4","arrow":"select__arrow_1kjo4","placeholder":"select__placeholder_1kjo4","contentWrapper":"select__contentWrapper_1kjo4","value":"select__value_1kjo4","focusVisible":"select__focusVisible_1kjo4"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Field = function (_a) {
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 10sge */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-border-link: #007aff;
|
|
4
5
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
5
|
-
}
|
|
6
|
-
:root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
8
|
+
} :root {
|
|
7
9
|
|
|
8
10
|
/* Hard */
|
|
9
11
|
|
|
10
12
|
/* Up */
|
|
11
13
|
|
|
12
14
|
/* Hard up */
|
|
13
|
-
}
|
|
14
|
-
:root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
15
19
|
--focus-color: var(--color-light-border-link);
|
|
16
20
|
--disabled-cursor: not-allowed;
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
21
|
+
} :root {
|
|
19
22
|
--select-arrow-hover-opacity: 0.7;
|
|
20
23
|
|
|
21
24
|
/* options list */
|
|
@@ -25,25 +28,18 @@
|
|
|
25
28
|
/* checkmark */
|
|
26
29
|
|
|
27
30
|
/* optgroup */
|
|
28
|
-
}
|
|
29
|
-
.select__component_pcxup {
|
|
31
|
+
} .select__component_1kjo4 {
|
|
30
32
|
width: 100%;
|
|
31
33
|
outline: none;
|
|
32
|
-
}
|
|
33
|
-
.select__field_pcxup:not(.select__disabled_pcxup) {
|
|
34
|
+
} .select__field_1kjo4:not(.select__disabled_1kjo4) {
|
|
34
35
|
cursor: pointer
|
|
35
|
-
}
|
|
36
|
-
.select__field_pcxup:not(.select__disabled_pcxup):hover .select__arrow_pcxup {
|
|
36
|
+
} .select__field_1kjo4:not(.select__disabled_1kjo4):hover .select__arrow_1kjo4 {
|
|
37
37
|
opacity: var(--select-arrow-hover-opacity);
|
|
38
|
-
}
|
|
39
|
-
.select__disabled_pcxup {
|
|
38
|
+
} .select__disabled_1kjo4 {
|
|
40
39
|
cursor: var(--disabled-cursor);
|
|
41
|
-
}
|
|
42
|
-
/* TODO: Заюзать переменные из инпута */
|
|
43
|
-
.select__placeholder_pcxup {
|
|
40
|
+
} /* TODO: Заюзать переменные из инпута */ .select__placeholder_1kjo4 {
|
|
44
41
|
color: var(--color-light-text-secondary);
|
|
45
|
-
}
|
|
46
|
-
.select__contentWrapper_pcxup {
|
|
42
|
+
} .select__contentWrapper_1kjo4 {
|
|
47
43
|
font-size: 16px;
|
|
48
44
|
line-height: 20px;
|
|
49
45
|
font-weight: 400;
|
|
@@ -52,13 +48,11 @@
|
|
|
52
48
|
text-overflow: ellipsis;
|
|
53
49
|
overflow: hidden;
|
|
54
50
|
width: 100%;
|
|
55
|
-
}
|
|
56
|
-
.select__value_pcxup {
|
|
51
|
+
} .select__value_1kjo4 {
|
|
57
52
|
overflow: hidden;
|
|
58
53
|
text-overflow: ellipsis;
|
|
59
54
|
text-align: left;
|
|
60
|
-
}
|
|
61
|
-
.select__focusVisible_pcxup {
|
|
55
|
+
} .select__focusVisible_1kjo4 {
|
|
62
56
|
outline: 2px solid var(--focus-color);
|
|
63
57
|
outline-offset: 2px;
|
|
64
58
|
}
|
package/esm/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Arrow } from './arrow/Component.js';
|
|
2
|
-
export { B as BaseSelect } from '../Component-
|
|
3
|
-
export { S as SelectMobile, a as SelectModalMobile } from '../Component-
|
|
2
|
+
export { B as BaseSelect } from '../Component-45681199.js';
|
|
3
|
+
export { S as SelectMobile, a as SelectModalMobile } from '../Component-ff31e94c.js';
|
|
4
4
|
export { Field } from './field/Component.js';
|
|
5
5
|
export { Optgroup } from './optgroup/Component.js';
|
|
6
6
|
export { Option } from './option/Component.js';
|
|
@@ -10,7 +10,7 @@ export { BaseOption } from './base-option/Component.js';
|
|
|
10
10
|
import 'react';
|
|
11
11
|
import 'classnames';
|
|
12
12
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
13
|
-
import '../tslib.es6-
|
|
13
|
+
import '../tslib.es6-60ccbcec.js';
|
|
14
14
|
import 'react-merge-refs';
|
|
15
15
|
import '@juggle/resize-observer';
|
|
16
16
|
import 'downshift';
|
|
@@ -31,7 +31,7 @@ import '@alfalab/core-components-checkbox/esm';
|
|
|
31
31
|
import '@alfalab/core-components-scrollbar/esm';
|
|
32
32
|
import 'react-virtual';
|
|
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 './base-checkmark/Component.js';
|
|
37
37
|
import './base-select-mobile/options-list/Component.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"optgroup":"
|
|
4
|
+
var styles = {"optgroup":"select__optgroup_4pd8i","label":"select__label_4pd8i","l":"select__l_4pd8i","xl":"select__xl_4pd8i"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Optgroup = function (_a) {
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5unsb */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-bg-primary: #fff;
|
|
4
5
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
5
|
-
}
|
|
6
|
-
:root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
8
|
+
} :root {
|
|
7
9
|
|
|
8
10
|
/* Hard */
|
|
9
11
|
|
|
10
12
|
/* Up */
|
|
11
13
|
|
|
12
14
|
/* Hard up */
|
|
13
|
-
}
|
|
14
|
-
:root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
15
17
|
--gap-2xs: 4px;
|
|
16
18
|
--gap-s: 12px;
|
|
17
19
|
--gap-m: 16px;
|
|
18
|
-
}
|
|
19
|
-
:root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
22
|
+
} :root {
|
|
20
23
|
|
|
21
24
|
/* options list */
|
|
22
25
|
|
|
@@ -32,8 +35,7 @@
|
|
|
32
35
|
--select-optgroup-right-padding: var(--gap-s);
|
|
33
36
|
--select-optgroup-l-left-padding: var(--gap-m);
|
|
34
37
|
--select-optgroup-l-right-padding: var(--gap-m);
|
|
35
|
-
}
|
|
36
|
-
.select__optgroup_ve86i {
|
|
38
|
+
} .select__optgroup_4pd8i {
|
|
37
39
|
position: relative;
|
|
38
40
|
display: flex;
|
|
39
41
|
align-items: center;
|
|
@@ -42,11 +44,9 @@
|
|
|
42
44
|
box-sizing: border-box;
|
|
43
45
|
background: var(--select-optgroup-background);
|
|
44
46
|
min-height: 40px
|
|
45
|
-
}
|
|
46
|
-
.select__optgroup_ve86i + *[role='option']:before {
|
|
47
|
+
} .select__optgroup_4pd8i + *[role='option']:before {
|
|
47
48
|
display: none;
|
|
48
|
-
}
|
|
49
|
-
.select__label_ve86i {
|
|
49
|
+
} .select__label_4pd8i {
|
|
50
50
|
font-size: 12px;
|
|
51
51
|
line-height: 16px;
|
|
52
52
|
font-weight: 500;
|
|
@@ -55,9 +55,8 @@
|
|
|
55
55
|
|
|
56
56
|
display: block;
|
|
57
57
|
color: var(--select-optgroup-color);
|
|
58
|
-
}
|
|
59
|
-
.
|
|
60
|
-
.select__xl_ve86i {
|
|
58
|
+
} .select__l_4pd8i,
|
|
59
|
+
.select__xl_4pd8i {
|
|
61
60
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
62
61
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
63
62
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
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 { Checkmark } from '../base-select-mobile/checkmark/Component.js';
|
|
@@ -8,7 +8,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
|
8
8
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
9
9
|
import '@alfalab/core-components-checkbox/esm';
|
|
10
10
|
|
|
11
|
-
var styles = {"option":"
|
|
11
|
+
var styles = {"option":"select__option_1mi4y","disabled":"select__disabled_1mi4y","s":"select__s_1mi4y","m":"select__m_1mi4y","l":"select__l_1mi4y","xl":"select__xl_1mi4y","selected":"select__selected_1mi4y","highlighted":"select__highlighted_1mi4y","content":"select__content_1mi4y","textContent":"select__textContent_1mi4y"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Option = function (_a) {
|