@alfalab/core-components-select 13.2.18 → 13.2.19
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-622a0fca.js → Component-67e36290.js} +2 -2
- package/{Component-93388611.js → Component-86fe0799.js} +4 -4
- package/Component.js +3 -1
- package/Component.responsive.js +5 -3
- package/components/arrow/Component.js +3 -1
- package/components/arrow/index.css +4 -4
- package/components/arrow/index.js +2 -0
- package/components/base-checkmark/Component.js +3 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-checkmark/index.js +2 -0
- package/components/base-option/Component.js +3 -1
- package/components/base-option/index.css +16 -16
- package/components/base-option/index.js +2 -0
- package/components/base-select/Component.js +3 -1
- package/components/base-select/index.css +11 -10
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +3 -1
- package/components/base-select-mobile/Component.js +5 -3
- package/components/base-select-mobile/checkmark/Component.js +3 -1
- package/components/base-select-mobile/checkmark/index.css +6 -6
- package/components/base-select-mobile/checkmark/index.js +2 -0
- 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 +5 -3
- package/components/base-select-mobile/options-list/Component.js +3 -1
- package/components/base-select-mobile/options-list/index.css +11 -11
- package/components/base-select-mobile/options-list/index.js +2 -0
- package/components/base-select-mobile/virtual-options-list/Component.js +3 -1
- package/components/base-select-mobile/virtual-options-list/index.css +17 -17
- package/components/base-select-mobile/virtual-options-list/index.js +2 -0
- package/components/checkmark/Component.js +3 -1
- package/components/checkmark/index.css +11 -11
- package/components/checkmark/index.js +2 -0
- package/components/field/Component.js +3 -1
- package/components/field/index.css +11 -11
- package/components/field/index.js +2 -0
- package/components/index.js +11 -9
- package/components/native-select/Component.js +2 -0
- package/components/native-select/index.js +2 -0
- package/components/optgroup/Component.js +3 -1
- package/components/optgroup/index.css +7 -7
- package/components/optgroup/index.js +2 -0
- package/components/option/Component.js +3 -1
- package/components/option/index.css +24 -24
- package/components/option/index.js +2 -0
- package/components/options-list/Component.js +3 -1
- package/components/options-list/index.css +11 -11
- package/components/options-list/index.js +2 -0
- package/components/select-mobile/Component.js +5 -3
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +5 -3
- package/components/select-modal-mobile/Component.js +5 -3
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +5 -3
- package/components/virtual-options-list/Component.js +3 -1
- package/components/virtual-options-list/index.css +18 -18
- package/components/virtual-options-list/index.js +2 -0
- package/cssm/{Component-31b4153d.js → Component-e0df017c.js} +1 -1
- package/cssm/{Component-afba64fc.js → Component-e4ef870b.js} +1 -1
- package/cssm/Component.js +3 -1
- package/cssm/Component.responsive.js +4 -2
- package/cssm/components/arrow/Component.js +2 -0
- package/cssm/components/arrow/index.js +2 -0
- package/cssm/components/arrow/index.module.css +1 -1
- package/cssm/components/base-checkmark/Component.js +2 -0
- package/cssm/components/base-checkmark/index.js +2 -0
- package/cssm/components/base-option/Component.js +2 -0
- package/cssm/components/base-option/index.js +2 -0
- package/cssm/components/base-option/index.module.css +3 -3
- package/cssm/components/base-select/Component.js +3 -1
- package/cssm/components/base-select/index.d.ts +1 -1
- package/cssm/components/base-select/index.js +3 -1
- package/cssm/components/base-select/index.module.css +3 -2
- package/cssm/components/base-select-mobile/Component.js +4 -2
- package/cssm/components/base-select-mobile/checkmark/Component.js +2 -0
- package/cssm/components/base-select-mobile/checkmark/index.js +2 -0
- package/cssm/components/base-select-mobile/index.d.ts +1 -1
- package/cssm/components/base-select-mobile/index.js +4 -2
- package/cssm/components/base-select-mobile/options-list/Component.js +2 -0
- package/cssm/components/base-select-mobile/options-list/index.js +2 -0
- package/cssm/components/base-select-mobile/options-list/index.module.css +2 -2
- package/cssm/components/base-select-mobile/virtual-options-list/Component.js +2 -0
- package/cssm/components/base-select-mobile/virtual-options-list/index.js +2 -0
- package/cssm/components/base-select-mobile/virtual-options-list/index.module.css +2 -2
- package/cssm/components/checkmark/Component.js +2 -0
- package/cssm/components/checkmark/index.js +2 -0
- package/cssm/components/checkmark/index.module.css +1 -1
- package/cssm/components/field/Component.js +2 -0
- package/cssm/components/field/index.js +2 -0
- package/cssm/components/field/index.module.css +2 -2
- package/cssm/components/index.js +15 -13
- package/cssm/components/native-select/Component.js +2 -0
- package/cssm/components/native-select/index.js +2 -0
- package/cssm/components/optgroup/Component.js +2 -0
- package/cssm/components/optgroup/index.js +2 -0
- package/cssm/components/optgroup/index.module.css +1 -1
- package/cssm/components/option/Component.js +2 -0
- package/cssm/components/option/index.js +2 -0
- package/cssm/components/option/index.module.css +4 -4
- package/cssm/components/options-list/Component.js +2 -0
- package/cssm/components/options-list/index.js +2 -0
- package/cssm/components/options-list/index.module.css +2 -2
- package/cssm/components/select-mobile/Component.js +4 -2
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +4 -2
- package/cssm/components/select-modal-mobile/Component.js +4 -2
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +4 -2
- package/cssm/components/virtual-options-list/Component.js +2 -0
- package/cssm/components/virtual-options-list/index.js +2 -0
- package/cssm/components/virtual-options-list/index.module.css +3 -3
- package/cssm/index-3885b0d7.d.ts +1 -1
- package/cssm/index.js +17 -15
- package/cssm/presets/index.js +4 -2
- package/cssm/presets/useLazyLoading/hook.js +2 -0
- package/cssm/presets/useSelectWithApply/hook.js +4 -2
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -2
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +4 -2
- package/cssm/presets/useSelectWithLoading/hook.js +2 -0
- package/cssm/responsive.js +4 -2
- package/cssm/typings.d.ts +1 -1
- package/cssm/utils.js +2 -0
- package/esm/{Component-e283e558.js → Component-c79b7ae7.js} +4 -4
- package/esm/{Component-657977aa.js → Component-fdfce5e1.js} +2 -2
- package/esm/Component.js +1 -1
- package/esm/Component.responsive.js +3 -3
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +4 -4
- 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 +1 -1
- package/esm/components/base-option/index.css +16 -16
- package/esm/components/base-select/Component.js +1 -1
- package/esm/components/base-select/index.css +11 -10
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +1 -1
- package/esm/components/base-select-mobile/Component.js +3 -3
- 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 +3 -3
- package/esm/components/base-select-mobile/options-list/Component.js +1 -1
- package/esm/components/base-select-mobile/options-list/index.css +11 -11
- package/esm/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/esm/components/base-select-mobile/virtual-options-list/index.css +17 -17
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +11 -11
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +11 -11
- package/esm/components/index.js +9 -9
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +7 -7
- package/esm/components/option/Component.js +1 -1
- package/esm/components/option/index.css +24 -24
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +11 -11
- package/esm/components/select-mobile/Component.js +3 -3
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +3 -3
- package/esm/components/select-modal-mobile/Component.js +3 -3
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +3 -3
- package/esm/components/virtual-options-list/Component.js +1 -1
- package/esm/components/virtual-options-list/index.css +18 -18
- package/esm/index-3885b0d7.d.ts +1 -1
- package/esm/index.js +11 -11
- package/esm/presets/index.js +3 -3
- package/esm/presets/useLazyLoading/hook.js +2 -2
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/esm/presets/useSelectWithLoading/hook.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +3 -3
- package/esm/typings.d.ts +1 -1
- package/index-3885b0d7.d.ts +1 -1
- package/index.js +13 -11
- package/modern/{Component-72ef5116.js → Component-4c4a3ab4.js} +4 -4
- package/modern/{Component-322fd90d.js → Component-979388ae.js} +3 -2
- 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 +4 -4
- 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 +16 -16
- package/modern/components/base-select/Component.js +1 -1
- package/modern/components/base-select/index.css +11 -10
- 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 +11 -11
- package/modern/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/virtual-options-list/index.css +17 -17
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +11 -11
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +11 -11
- package/modern/components/index.js +9 -9
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +7 -7
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +24 -24
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +11 -11
- 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 +18 -18
- package/modern/index-3885b0d7.d.ts +1 -1
- package/modern/index.js +11 -11
- 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 +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +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 -1
- package/package.json +12 -12
- package/presets/index.js +5 -3
- package/presets/useLazyLoading/hook.js +4 -2
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +5 -3
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +5 -3
- package/presets/useSelectWithLoading/hook.js +3 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +5 -3
- package/typings.d.ts +1 -1
- package/utils.js +2 -0
- /package/{Component-622a0fca.d.ts → Component-67e36290.d.ts} +0 -0
- /package/{Component-93388611.d.ts → Component-86fe0799.d.ts} +0 -0
- /package/cssm/{Component-31b4153d.d.ts → Component-e0df017c.d.ts} +0 -0
- /package/cssm/{Component-afba64fc.d.ts → Component-e4ef870b.d.ts} +0 -0
- /package/esm/{Component-e283e558.d.ts → Component-c79b7ae7.d.ts} +0 -0
- /package/esm/{Component-657977aa.d.ts → Component-fdfce5e1.d.ts} +0 -0
- /package/esm/{intersection-observer-9544c9e7.d.ts → intersection-observer-be15dad5.d.ts} +0 -0
- /package/esm/{intersection-observer-9544c9e7.js → intersection-observer-be15dad5.js} +0 -0
- /package/{intersection-observer-023c126a.d.ts → intersection-observer-de1426cf.d.ts} +0 -0
- /package/{intersection-observer-023c126a.js → intersection-observer-de1426cf.js} +0 -0
- /package/modern/{Component-72ef5116.d.ts → Component-4c4a3ab4.d.ts} +0 -0
- /package/modern/{Component-322fd90d.d.ts → Component-979388ae.d.ts} +0 -0
- /package/modern/{intersection-observer-9544c9e7.d.ts → intersection-observer-be15dad5.d.ts} +0 -0
- /package/modern/{intersection-observer-9544c9e7.js → intersection-observer-be15dad5.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3jeuw */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-border-primary: #
|
|
5
|
-
--color-light-border-secondary: #
|
|
6
|
-
--color-light-text-secondary: rgba(
|
|
4
|
+
--color-light-border-primary: #dcdcdd;
|
|
5
|
+
--color-light-border-secondary: #e9e9eb;
|
|
6
|
+
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
7
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
8
8
|
} :root {
|
|
9
9
|
} :root {
|
|
@@ -35,31 +35,31 @@
|
|
|
35
35
|
/* checkmark */
|
|
36
36
|
|
|
37
37
|
/* optgroup */
|
|
38
|
-
} .
|
|
38
|
+
} .select__virtualOptionsList_1dpez {
|
|
39
39
|
width: 100%;
|
|
40
40
|
outline: none;
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
position: relative;
|
|
43
|
-
} .
|
|
43
|
+
} .select__virtualOptionsListHeader_1dpez {
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
46
|
-
} .
|
|
46
|
+
} .select__virtualOptionsListFooter_1dpez {
|
|
47
47
|
box-sizing: border-box;
|
|
48
48
|
border-top: 1px solid transparent
|
|
49
|
-
} .
|
|
49
|
+
} .select__virtualOptionsListFooter_1dpez.select__withBorder_1dpez {
|
|
50
50
|
border-top: 1px solid var(--color-light-border-secondary);
|
|
51
|
-
} .
|
|
51
|
+
} .select__scrollable_1dpez {
|
|
52
52
|
overflow: auto;
|
|
53
53
|
width: 100%;
|
|
54
|
-
} .
|
|
54
|
+
} .select__inner_1dpez {
|
|
55
55
|
position: relative;
|
|
56
56
|
width: 100%;
|
|
57
|
-
} .
|
|
57
|
+
} .select__virtualRow_1dpez {
|
|
58
58
|
position: absolute;
|
|
59
59
|
top: 0;
|
|
60
60
|
left: 0;
|
|
61
61
|
width: 100%
|
|
62
|
-
} .
|
|
62
|
+
} .select__virtualRow_1dpez:before {
|
|
63
63
|
content: '';
|
|
64
64
|
position: absolute;
|
|
65
65
|
z-index: 1;
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
height: 1px;
|
|
70
70
|
background: var(--select-option-divider-background);
|
|
71
71
|
display: var(--select-option-divider-display);
|
|
72
|
-
} .
|
|
72
|
+
} .select__virtualRow_1dpez:first-child:before {
|
|
73
73
|
display: none;
|
|
74
|
-
} .
|
|
75
|
-
.
|
|
74
|
+
} .select__highlighted_1dpez:before,
|
|
75
|
+
.select__highlighted_1dpez + .select__virtualRow_1dpez:before {
|
|
76
76
|
display: none;
|
|
77
|
-
} .
|
|
77
|
+
} .select__emptyPlaceholder_1dpez {
|
|
78
78
|
padding: var(--gap-m) var(--gap-s);
|
|
79
79
|
color: var(--select-options-list-empty-placeholder-color);
|
|
80
|
-
} .
|
|
81
|
-
.
|
|
80
|
+
} .select__l_1dpez .select__emptyPlaceholder_1dpez,
|
|
81
|
+
.select__xl_1dpez .select__emptyPlaceholder_1dpez {
|
|
82
82
|
padding: var(--gap-xl) var(--gap-m);
|
|
83
83
|
}
|
package/esm/index-3885b0d7.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Select } from './Component.js';
|
|
2
2
|
export { Arrow } from './components/arrow/Component.js';
|
|
3
|
-
export { B as BaseSelect } from './Component-
|
|
4
|
-
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-
|
|
3
|
+
export { B as BaseSelect } from './Component-fdfce5e1.js';
|
|
4
|
+
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-c79b7ae7.js';
|
|
5
5
|
export { Field } from './components/field/Component.js';
|
|
6
6
|
export { Optgroup } from './components/optgroup/Component.js';
|
|
7
7
|
export { Option } from './components/option/Component.js';
|
|
@@ -21,21 +21,21 @@ import 'downshift';
|
|
|
21
21
|
import '@alfalab/core-components-popover/esm';
|
|
22
22
|
import '@alfalab/hooks';
|
|
23
23
|
import './components/native-select/Component.js';
|
|
24
|
-
import '@alfalab/core-components-form-control/esm';
|
|
25
|
-
import './components/base-select-mobile/checkmark/Component.js';
|
|
26
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
27
|
-
import './components/checkmark/Component.js';
|
|
28
|
-
import '@alfalab/core-components-badge/esm';
|
|
29
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
30
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
31
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
32
24
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
33
25
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
34
26
|
import 'react-virtual';
|
|
27
|
+
import '@alfalab/core-components-scrollbar/esm';
|
|
35
28
|
import '@alfalab/core-components-skeleton/esm';
|
|
36
|
-
import './intersection-observer-
|
|
29
|
+
import './intersection-observer-be15dad5.js';
|
|
37
30
|
import '@alfalab/core-components-button/esm';
|
|
31
|
+
import '@alfalab/core-components-form-control/esm';
|
|
32
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
33
|
+
import '@alfalab/core-components-badge/esm';
|
|
34
|
+
import '@alfalab/core-components-checkbox/esm';
|
|
35
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
38
36
|
import './components/base-checkmark/Component.js';
|
|
37
|
+
import './components/base-select-mobile/checkmark/Component.js';
|
|
39
38
|
import './components/base-select-mobile/options-list/Component.js';
|
|
40
39
|
import '@alfalab/core-components-base-modal/esm';
|
|
41
40
|
import './components/base-select-mobile/virtual-options-list/Component.js';
|
|
41
|
+
import './components/checkmark/Component.js';
|
package/esm/presets/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
3
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-
|
|
3
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-c79b7ae7.js';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@alfalab/core-components-skeleton/esm';
|
|
@@ -12,7 +12,7 @@ import '../components/checkmark/Component.js';
|
|
|
12
12
|
import '@alfalab/core-components-badge/esm';
|
|
13
13
|
import '@alfalab/core-components-checkbox/esm';
|
|
14
14
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
15
|
-
import '../intersection-observer-
|
|
15
|
+
import '../intersection-observer-be15dad5.js';
|
|
16
16
|
import '../components/arrow/Component.js';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
18
18
|
import 'react-merge-refs';
|
|
@@ -20,7 +20,7 @@ import 'downshift';
|
|
|
20
20
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
21
21
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
22
22
|
import '../Component.js';
|
|
23
|
-
import '../Component-
|
|
23
|
+
import '../Component-fdfce5e1.js';
|
|
24
24
|
import '@juggle/resize-observer';
|
|
25
25
|
import '@alfalab/core-components-popover/esm';
|
|
26
26
|
import '@alfalab/hooks';
|
|
@@ -2,7 +2,7 @@ import { __spreadArray, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
3
3
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
4
4
|
import { Option } from '../../components/option/Component.js';
|
|
5
|
-
import '../../intersection-observer-
|
|
5
|
+
import '../../intersection-observer-be15dad5.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../../components/base-select-mobile/checkmark/Component.js';
|
|
8
8
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
@@ -11,7 +11,7 @@ import '@alfalab/core-components-badge/esm';
|
|
|
11
11
|
import '@alfalab/core-components-checkbox/esm';
|
|
12
12
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
13
13
|
|
|
14
|
-
var styles = {"skeleton":"
|
|
14
|
+
var styles = {"skeleton":"select__skeleton_176ym"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var DEBOUNCE_TIMEOUT = 300;
|
|
@@ -3,8 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../../Component.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
-
import '../../Component-
|
|
7
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-
|
|
6
|
+
import '../../Component-fdfce5e1.js';
|
|
7
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-c79b7ae7.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
10
|
import '../../utils.js';
|
|
@@ -16,7 +16,7 @@ import '../../components/options-list/Component.js';
|
|
|
16
16
|
import 'react-virtual';
|
|
17
17
|
import '@alfalab/core-components-scrollbar/esm';
|
|
18
18
|
import '@alfalab/core-components-skeleton/esm';
|
|
19
|
-
import '../../intersection-observer-
|
|
19
|
+
import '../../intersection-observer-be15dad5.js';
|
|
20
20
|
import '../../components/arrow/Component.js';
|
|
21
21
|
import '../../components/field/Component.js';
|
|
22
22
|
import '../../components/optgroup/Component.js';
|
|
@@ -3,8 +3,8 @@ import 'react';
|
|
|
3
3
|
import '@alfalab/core-components-button/esm';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
-
import '../../../Component-
|
|
7
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
6
|
+
import '../../../Component-fdfce5e1.js';
|
|
7
|
+
export { O as OptionsListWithApply } from '../../../Component-c79b7ae7.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
10
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
@@ -32,7 +32,7 @@ import '../../../components/checkmark/Component.js';
|
|
|
32
32
|
import '../../../components/base-option/Component.js';
|
|
33
33
|
import '../../../components/base-checkmark/Component.js';
|
|
34
34
|
import '@alfalab/core-components-skeleton/esm';
|
|
35
|
-
import '../../../intersection-observer-
|
|
35
|
+
import '../../../intersection-observer-be15dad5.js';
|
|
36
36
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
38
38
|
import '../../../components/base-select-mobile/virtual-options-list/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1olw7 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
/* checkmark */
|
|
27
27
|
|
|
28
28
|
/* optgroup */
|
|
29
|
-
} .
|
|
29
|
+
} .select__footer_1jv7r {
|
|
30
30
|
background: var(--color-light-bg-primary);
|
|
31
31
|
padding: var(--gap-s);
|
|
32
32
|
outline: none
|
|
33
|
-
} .
|
|
33
|
+
} .select__footer_1jv7r > * + * {
|
|
34
34
|
margin-left: var(--gap-xs);
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../Component-
|
|
1
|
+
export * from "../../../Component-c79b7ae7";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
1
|
+
export { O as OptionsListWithApply } from '../../../Component-c79b7ae7.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../../components/arrow/Component.js';
|
|
@@ -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-fdfce5e1.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 '../../../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-be15dad5.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';
|
|
@@ -10,7 +10,7 @@ import '@alfalab/core-components-badge/esm';
|
|
|
10
10
|
import '@alfalab/core-components-checkbox/esm';
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
12
12
|
|
|
13
|
-
var styles = {"skeleton":"
|
|
13
|
+
var styles = {"skeleton":"select__skeleton_n2ugb"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
function useSelectWithLoading(_a) {
|
package/esm/responsive.js
CHANGED
|
@@ -6,7 +6,7 @@ import './Component.js';
|
|
|
6
6
|
import './components/arrow/Component.js';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
|
-
import './Component-
|
|
9
|
+
import './Component-fdfce5e1.js';
|
|
10
10
|
import 'react-merge-refs';
|
|
11
11
|
import '@juggle/resize-observer';
|
|
12
12
|
import 'downshift';
|
|
@@ -25,14 +25,14 @@ import '@alfalab/core-components-checkbox/esm';
|
|
|
25
25
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
26
26
|
import './components/options-list/Component.js';
|
|
27
27
|
import '@alfalab/core-components-scrollbar/esm';
|
|
28
|
-
import './Component-
|
|
28
|
+
import './Component-c79b7ae7.js';
|
|
29
29
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
30
30
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
31
31
|
import 'react-virtual';
|
|
32
32
|
import './components/base-option/Component.js';
|
|
33
33
|
import './components/base-checkmark/Component.js';
|
|
34
34
|
import '@alfalab/core-components-skeleton/esm';
|
|
35
|
-
import './intersection-observer-
|
|
35
|
+
import './intersection-observer-be15dad5.js';
|
|
36
36
|
import '@alfalab/core-components-button/esm';
|
|
37
37
|
import './components/base-select-mobile/options-list/Component.js';
|
|
38
38
|
import '@alfalab/core-components-base-modal/esm';
|
package/esm/typings.d.ts
CHANGED
|
@@ -318,7 +318,7 @@ type FieldProps = {
|
|
|
318
318
|
onBlur?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
|
|
319
319
|
onFocus?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
|
|
320
320
|
onClick?: (event: MouseEvent<HTMLDivElement | HTMLInputElement>) => void;
|
|
321
|
-
tabIndex
|
|
321
|
+
tabIndex?: number;
|
|
322
322
|
id: string;
|
|
323
323
|
} & RefAttributes<HTMLDivElement | HTMLInputElement> & AriaAttributes;
|
|
324
324
|
/**
|
package/index-3885b0d7.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var Component = require('./Component.js');
|
|
4
6
|
var components_arrow_Component = require('./components/arrow/Component.js');
|
|
5
|
-
var components_baseSelect_Component = require('./Component-
|
|
6
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('./Component-
|
|
7
|
+
var components_baseSelect_Component = require('./Component-67e36290.js');
|
|
8
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('./Component-86fe0799.js');
|
|
7
9
|
var components_field_Component = require('./components/field/Component.js');
|
|
8
10
|
var components_optgroup_Component = require('./components/optgroup/Component.js');
|
|
9
11
|
var components_option_Component = require('./components/option/Component.js');
|
|
@@ -23,24 +25,24 @@ require('downshift');
|
|
|
23
25
|
require('@alfalab/core-components-popover');
|
|
24
26
|
require('@alfalab/hooks');
|
|
25
27
|
require('./components/native-select/Component.js');
|
|
26
|
-
require('@alfalab/core-components-form-control');
|
|
27
|
-
require('./components/base-select-mobile/checkmark/Component.js');
|
|
28
|
-
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
29
|
-
require('./components/checkmark/Component.js');
|
|
30
|
-
require('@alfalab/core-components-badge');
|
|
31
|
-
require('@alfalab/core-components-checkbox');
|
|
32
|
-
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
33
|
-
require('@alfalab/core-components-scrollbar');
|
|
34
28
|
require('@alfalab/core-components-bottom-sheet');
|
|
35
29
|
require('@alfalab/core-components-modal/mobile');
|
|
36
30
|
require('react-virtual');
|
|
31
|
+
require('@alfalab/core-components-scrollbar');
|
|
37
32
|
require('@alfalab/core-components-skeleton');
|
|
38
|
-
require('./intersection-observer-
|
|
33
|
+
require('./intersection-observer-de1426cf.js');
|
|
39
34
|
require('@alfalab/core-components-button');
|
|
35
|
+
require('@alfalab/core-components-form-control');
|
|
36
|
+
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
37
|
+
require('@alfalab/core-components-badge');
|
|
38
|
+
require('@alfalab/core-components-checkbox');
|
|
39
|
+
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
40
40
|
require('./components/base-checkmark/Component.js');
|
|
41
|
+
require('./components/base-select-mobile/checkmark/Component.js');
|
|
41
42
|
require('./components/base-select-mobile/options-list/Component.js');
|
|
42
43
|
require('@alfalab/core-components-base-modal');
|
|
43
44
|
require('./components/base-select-mobile/virtual-options-list/Component.js');
|
|
45
|
+
require('./components/checkmark/Component.js');
|
|
44
46
|
|
|
45
47
|
|
|
46
48
|
|
|
@@ -6,7 +6,7 @@ import { useMultipleSelection, useCombobox } from 'downshift';
|
|
|
6
6
|
import { BottomSheet } from '@alfalab/core-components-bottom-sheet/modern';
|
|
7
7
|
import { ModalMobile } from '@alfalab/core-components-modal/modern/mobile';
|
|
8
8
|
import './Component.js';
|
|
9
|
-
import { g as getDataTestId } from './Component-
|
|
9
|
+
import { g as getDataTestId } from './Component-979388ae.js';
|
|
10
10
|
import { Field } from './components/field/Component.js';
|
|
11
11
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
12
12
|
import { Option } from './components/option/Component.js';
|
|
@@ -17,7 +17,7 @@ import '@alfalab/hooks';
|
|
|
17
17
|
import { processOptions } from './utils.js';
|
|
18
18
|
import { BaseOption } from './components/base-option/Component.js';
|
|
19
19
|
import '@alfalab/core-components-skeleton/modern';
|
|
20
|
-
import './intersection-observer-
|
|
20
|
+
import './intersection-observer-be15dad5.js';
|
|
21
21
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
22
22
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
23
23
|
import '@alfalab/core-components-form-control/modern';
|
|
@@ -30,7 +30,7 @@ import { Checkmark } from './components/base-select-mobile/checkmark/Component.j
|
|
|
30
30
|
import { OptionsList as OptionsList$1 } from './components/base-select-mobile/options-list/Component.js';
|
|
31
31
|
import { VirtualOptionsList } from './components/base-select-mobile/virtual-options-list/Component.js';
|
|
32
32
|
|
|
33
|
-
const styles$1 = {"footer":"
|
|
33
|
+
const styles$1 = {"footer":"select__footer_1jv7r"};
|
|
34
34
|
require('./presets/useSelectWithApply/options-list-with-apply/index.css')
|
|
35
35
|
|
|
36
36
|
const OptionsListWithApply = forwardRef(({ toggleMenu, OptionsList: OptionsList$1 = OptionsList, getOptionProps: defaultGetOptionProps, showClear = true, selectedDraft = [], flatOptions = [], onApply = () => null, onClear = () => null, onClose = () => null, visibleOptions = 5, ...restProps }, ref) => {
|
|
@@ -141,7 +141,7 @@ function useSelectWithApply({ options, selected, onChange = () => null, OptionsL
|
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
const styles = {"component":"
|
|
144
|
+
const styles = {"component":"select__component_1lci1","popoverInner":"select__popoverInner_1lci1","sheet":"select__sheet_1lci1","sheetContent":"select__sheetContent_1lci1","sheetContainer":"select__sheetContainer_1lci1","block":"select__block_1lci1","option":"select__option_1lci1","optionGroup":"select__optionGroup_1lci1"};
|
|
145
145
|
require('./components/base-select-mobile/index.css')
|
|
146
146
|
|
|
147
147
|
const VIRTUAL_OPTIONS_LIST_THRESHOLD = 30;
|
|
@@ -13,9 +13,10 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
13
13
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const styles = {"component":"
|
|
16
|
+
const styles = {"component":"select__component_hff12","popoverInner":"select__popoverInner_hff12","optionsList":"select__optionsList_hff12","optionsListBorder":"select__optionsListBorder_hff12","nativeSelect":"select__nativeSelect_hff12","block":"select__block_hff12"};
|
|
17
17
|
require('./components/base-select/index.css')
|
|
18
18
|
|
|
19
|
+
/* eslint-disable no-nested-ternary */
|
|
19
20
|
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) => {
|
|
20
21
|
const rootRef = useRef(null);
|
|
21
22
|
const fieldRef = useRef(null);
|
|
@@ -236,7 +237,7 @@ const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsL
|
|
|
236
237
|
onBlur: handleFieldBlur,
|
|
237
238
|
onFocus: disabled ? undefined : handleFieldFocus,
|
|
238
239
|
onClick: disabled ? undefined : handleFieldClick,
|
|
239
|
-
tabIndex:
|
|
240
|
+
tabIndex: disabled ? undefined : nativeSelect ? -1 : 0,
|
|
240
241
|
ref: mergeRefs([inputProps.ref]),
|
|
241
242
|
id: inputProps.id,
|
|
242
243
|
'aria-labelledby': inputProps['aria-labelledby'],
|
package/modern/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { Arrow } from './components/arrow/Component.js';
|
|
3
|
-
import { B as BaseSelect } from './Component-
|
|
3
|
+
import { B as BaseSelect } from './Component-979388ae.js';
|
|
4
4
|
import { Field } from './components/field/Component.js';
|
|
5
5
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
6
6
|
import { Option } from './components/option/Component.js';
|
|
@@ -3,8 +3,8 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
3
3
|
import { Select } from './Component.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
-
import './Component-
|
|
7
|
-
import { S as SelectMobile } from './Component-
|
|
6
|
+
import './Component-979388ae.js';
|
|
7
|
+
import { S as SelectMobile } from './Component-4c4a3ab4.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/modern';
|
|
9
9
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
10
10
|
import '@alfalab/core-components-badge/modern';
|
|
@@ -30,7 +30,7 @@ import '@alfalab/core-components-modal/modern/mobile';
|
|
|
30
30
|
import './components/base-option/Component.js';
|
|
31
31
|
import './components/base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-skeleton/modern';
|
|
33
|
-
import './intersection-observer-
|
|
33
|
+
import './intersection-observer-be15dad5.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import './components/base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/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
|
-
const styles = {"arrow":"
|
|
5
|
+
const styles = {"arrow":"select__arrow_1pkl3","open":"select__open_1pkl3"};
|
|
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,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1s5ua */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-graphic-primary: #
|
|
4
|
+
--color-light-graphic-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
/* checkmark */
|
|
27
27
|
|
|
28
28
|
/* optgroup */
|
|
29
|
-
} .
|
|
29
|
+
} .select__arrow_1pkl3 {
|
|
30
30
|
display: block;
|
|
31
31
|
width: 24px;
|
|
32
32
|
height: 24px;
|
|
33
33
|
color: var(--select-arrow-color);
|
|
34
34
|
|
|
35
35
|
transition: transform 0.15s ease-in-out, opacity 0.2s ease;
|
|
36
|
-
} .
|
|
36
|
+
} .select__open_1pkl3 {
|
|
37
37
|
transform: var(--arrow-transform);
|
|
38
38
|
}
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Checkbox } from '@alfalab/core-components-checkbox/modern';
|
|
4
4
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
5
5
|
|
|
6
|
-
const styles = {"checkmark":"
|
|
6
|
+
const styles = {"checkmark":"select__checkmark_1bkaj","single":"select__single_1bkaj","selected":"select__selected_1bkaj"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const BaseCheckmark = ({ selected, disabled = false, className, multiple, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 119lk */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
/* checkmark */
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
|
-
} .
|
|
26
|
+
} .select__checkmark_1bkaj {
|
|
27
27
|
flex-shrink: 0;
|
|
28
28
|
box-sizing: border-box;
|
|
29
|
-
} .
|
|
29
|
+
} .select__single_1bkaj {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
opacity: 0
|
|
34
|
-
} .
|
|
34
|
+
} .select__single_1bkaj.select__selected_1bkaj {
|
|
35
35
|
opacity: 1;
|
|
36
36
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseCheckmark } from '../base-checkmark/Component.js';
|
|
|
4
4
|
import '@alfalab/core-components-checkbox/modern';
|
|
5
5
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
6
6
|
|
|
7
|
-
const styles = {"option":"
|
|
7
|
+
const styles = {"option":"select__option_r6anh","disabled":"select__disabled_r6anh","checkmarkBefore":"select__checkmarkBefore_r6anh","mobile":"select__mobile_r6anh","checkmarkAfter":"select__checkmarkAfter_r6anh","textContent":"select__textContent_r6anh","selected":"select__selected_r6anh","highlighted":"select__highlighted_r6anh","content":"select__content_r6anh"};
|
|
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, }) => {
|