@alfalab/core-components-select 13.2.8 → 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-8614ce6b.d.ts → Component-15130ab3.d.ts} +0 -0
- package/{Component-8614ce6b.js → Component-15130ab3.js} +2 -2
- package/{Component-d0e7b8cf.d.ts → Component-f1158c0d.d.ts} +0 -0
- package/{Component-d0e7b8cf.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/presets/useSelectWithApply/options-list-with-apply/index.module.css +12 -12
- package/cssm/typings.d.ts +1 -5
- package/esm/{Component-c09a6820.d.ts → Component-45681199.d.ts} +0 -0
- package/esm/{Component-c09a6820.js → Component-45681199.js} +2 -2
- package/esm/{Component-4ef9d6d2.d.ts → Component-ff31e94c.d.ts} +0 -0
- package/esm/{Component-4ef9d6d2.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.js +4 -4
- package/esm/{intersection-observer-c9397884.d.ts → intersection-observer-ce0b7183.d.ts} +0 -0
- package/esm/{intersection-observer-c9397884.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-3c9b3142.d.ts → tslib.es6-60ccbcec.d.ts} +0 -0
- package/esm/{tslib.es6-3c9b3142.js → tslib.es6-60ccbcec.js} +0 -0
- package/esm/typings.d.ts +1 -5
- package/index.js +4 -4
- package/{intersection-observer-8ba57140.d.ts → intersection-observer-4a8b5b51.d.ts} +0 -0
- package/{intersection-observer-8ba57140.js → intersection-observer-4a8b5b51.js} +0 -0
- package/modern/{Component-8d6d6d34.d.ts → Component-0998aafe.d.ts} +0 -0
- package/modern/{Component-8d6d6d34.js → Component-0998aafe.js} +1 -1
- package/modern/{Component-c2b10ca0.d.ts → Component-adf0c0e0.d.ts} +0 -0
- package/modern/{Component-c2b10ca0.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.js +3 -3
- package/modern/{intersection-observer-c9397884.d.ts → intersection-observer-ce0b7183.d.ts} +0 -0
- package/modern/{intersection-observer-c9397884.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-765af8e2.d.ts → tslib.es6-dde7343f.d.ts} +0 -0
- package/{tslib.es6-765af8e2.js → tslib.es6-dde7343f.js} +0 -0
- package/typings.d.ts +1 -5
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1xppv */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-bg-primary: #fff;
|
|
4
5
|
--color-light-bg-secondary: #f3f4f5;
|
|
5
6
|
--color-light-bg-tertiary: #e7e9eb;
|
|
6
7
|
--color-light-border-primary: #dbdee1;
|
|
7
8
|
--color-light-text-primary: #0b1f35;
|
|
8
9
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
10
|
+
} :root {
|
|
11
|
+
} :root {
|
|
12
|
+
} :root {
|
|
11
13
|
|
|
12
14
|
/* Hard */
|
|
13
15
|
|
|
14
16
|
/* Up */
|
|
15
17
|
|
|
16
18
|
/* Hard up */
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
19
21
|
--gap-s: 12px;
|
|
20
22
|
--gap-m: 16px;
|
|
21
|
-
}
|
|
22
|
-
:root {
|
|
23
|
+
} :root {
|
|
24
|
+
} :root {
|
|
23
25
|
--disabled-cursor: not-allowed;
|
|
24
26
|
--size-s-height: 48px;
|
|
25
27
|
--size-m-height: 56px;
|
|
26
28
|
--size-l-height: 64px;
|
|
27
29
|
--size-xl-height: 72px;
|
|
28
|
-
}
|
|
29
|
-
:root {
|
|
30
|
+
} :root {
|
|
30
31
|
|
|
31
32
|
/* options list */
|
|
32
33
|
--select-option-divider-display: none;
|
|
@@ -52,8 +53,7 @@
|
|
|
52
53
|
/* checkmark */
|
|
53
54
|
|
|
54
55
|
/* optgroup */
|
|
55
|
-
}
|
|
56
|
-
.select__option_4qdvw {
|
|
56
|
+
} .select__option_1mi4y {
|
|
57
57
|
font-size: 16px;
|
|
58
58
|
line-height: 20px;
|
|
59
59
|
font-weight: 400;
|
|
@@ -68,12 +68,10 @@
|
|
|
68
68
|
box-sizing: border-box;
|
|
69
69
|
position: relative;
|
|
70
70
|
cursor: pointer
|
|
71
|
-
}
|
|
72
|
-
.select__option_4qdvw:not(.select__disabled_4qdvw):active {
|
|
71
|
+
} .select__option_1mi4y:not(.select__disabled_1mi4y):active {
|
|
73
72
|
background: var(--select-option-active-background);
|
|
74
73
|
color: var(--select-option-active-color);
|
|
75
|
-
}
|
|
76
|
-
.select__option_4qdvw:before {
|
|
74
|
+
} .select__option_1mi4y:before {
|
|
77
75
|
content: '';
|
|
78
76
|
position: absolute;
|
|
79
77
|
left: var(--select-option-left-padding);
|
|
@@ -83,61 +81,46 @@
|
|
|
83
81
|
background: var(--select-option-divider-background);
|
|
84
82
|
display: var(--select-option-divider-display);
|
|
85
83
|
transition: opacity 0.2s ease;
|
|
86
|
-
}
|
|
87
|
-
.select__option_4qdvw:first-child:before {
|
|
84
|
+
} .select__option_1mi4y:first-child:before {
|
|
88
85
|
display: none;
|
|
89
|
-
}
|
|
90
|
-
.select__s_4qdvw {
|
|
86
|
+
} .select__s_1mi4y {
|
|
91
87
|
min-height: var(--size-s-height);
|
|
92
|
-
}
|
|
93
|
-
.select__m_4qdvw {
|
|
88
|
+
} .select__m_1mi4y {
|
|
94
89
|
min-height: var(--size-m-height);
|
|
95
|
-
}
|
|
96
|
-
.select__l_4qdvw {
|
|
90
|
+
} .select__l_1mi4y {
|
|
97
91
|
min-height: var(--size-l-height);
|
|
98
|
-
}
|
|
99
|
-
.select__xl_4qdvw {
|
|
92
|
+
} .select__xl_1mi4y {
|
|
100
93
|
min-height: var(--size-xl-height);
|
|
101
|
-
}
|
|
102
|
-
.
|
|
103
|
-
.select__xl_4qdvw {
|
|
94
|
+
} .select__l_1mi4y,
|
|
95
|
+
.select__xl_1mi4y {
|
|
104
96
|
padding-left: var(--select-option-l-left-padding);
|
|
105
97
|
padding-right: var(--select-option-l-right-padding)
|
|
106
|
-
}
|
|
107
|
-
.select__l_4qdvw:before, .select__xl_4qdvw:before {
|
|
98
|
+
} .select__l_1mi4y:before, .select__xl_1mi4y:before {
|
|
108
99
|
left: var(--select-option-l-left-padding);
|
|
109
100
|
right: var(--select-option-l-right-padding);
|
|
110
|
-
}
|
|
111
|
-
.select__selected_4qdvw {
|
|
101
|
+
} .select__selected_1mi4y {
|
|
112
102
|
background: var(--select-option-selected-background);
|
|
113
103
|
color: var(--select-option-selected-color);
|
|
114
104
|
cursor: default;
|
|
115
|
-
}
|
|
116
|
-
.select__highlighted_4qdvw {
|
|
105
|
+
} .select__highlighted_1mi4y {
|
|
117
106
|
background: var(--select-option-hover-background);
|
|
118
107
|
color: var(--select-option-hover-color)
|
|
119
|
-
}
|
|
120
|
-
.
|
|
121
|
-
.select__highlighted_4qdvw + .select__option_4qdvw:before {
|
|
108
|
+
} .select__highlighted_1mi4y:before,
|
|
109
|
+
.select__highlighted_1mi4y + .select__option_1mi4y:before {
|
|
122
110
|
opacity: 0;
|
|
123
|
-
}
|
|
124
|
-
.select__disabled_4qdvw {
|
|
111
|
+
} .select__disabled_1mi4y {
|
|
125
112
|
cursor: var(--disabled-cursor);
|
|
126
113
|
background: var(--select-option-disabled-background);
|
|
127
114
|
color: var(--select-option-disabled-color);
|
|
128
|
-
}
|
|
129
|
-
.select__content_4qdvw {
|
|
115
|
+
} .select__content_1mi4y {
|
|
130
116
|
overflow: hidden;
|
|
131
117
|
flex: 1;
|
|
132
118
|
text-overflow: ellipsis;
|
|
133
|
-
}
|
|
134
|
-
.select__textContent_4qdvw {
|
|
119
|
+
} .select__textContent_1mi4y {
|
|
135
120
|
padding-top: var(--gap-s);
|
|
136
121
|
padding-bottom: var(--gap-s);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
140
|
-
.select__option_4qdvw:after {
|
|
122
|
+
} /* IE min-height fix */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
123
|
+
.select__option_1mi4y:after {
|
|
141
124
|
min-height: inherit;
|
|
142
125
|
font-size: 0;
|
|
143
126
|
content: '';
|
|
@@ -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, { forwardRef, useRef } from 'react';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import cn from 'classnames';
|
|
@@ -7,7 +7,7 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
7
7
|
import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
8
8
|
import { Optgroup } from '../optgroup/Component.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"optionsList":"
|
|
10
|
+
var styles = {"optionsList":"select__optionsList_pnda4","scrollable":"select__scrollable_pnda4","emptyPlaceholder":"select__emptyPlaceholder_pnda4","l":"select__l_pnda4","xl":"select__xl_pnda4"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var createCounter = function () {
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 151ap */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
14
16
|
--gap-s: 12px;
|
|
15
17
|
--gap-m: 16px;
|
|
16
18
|
--gap-xl: 24px;
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
19
22
|
|
|
20
23
|
/* options list */
|
|
21
24
|
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
@@ -25,22 +28,18 @@
|
|
|
25
28
|
/* checkmark */
|
|
26
29
|
|
|
27
30
|
/* optgroup */
|
|
28
|
-
}
|
|
29
|
-
.select__optionsList_t5awo {
|
|
31
|
+
} .select__optionsList_pnda4 {
|
|
30
32
|
overflow: auto;
|
|
31
33
|
width: 100%;
|
|
32
34
|
outline: none;
|
|
33
35
|
box-sizing: border-box;
|
|
34
|
-
}
|
|
35
|
-
.select__scrollable_t5awo {
|
|
36
|
+
} .select__scrollable_pnda4 {
|
|
36
37
|
overflow: auto;
|
|
37
38
|
width: 100%;
|
|
38
|
-
}
|
|
39
|
-
.select__emptyPlaceholder_t5awo {
|
|
39
|
+
} .select__emptyPlaceholder_pnda4 {
|
|
40
40
|
padding: var(--gap-m) var(--gap-s);
|
|
41
41
|
color: var(--select-options-list-empty-placeholder-color);
|
|
42
|
-
}
|
|
43
|
-
.
|
|
44
|
-
.select__xl_t5awo .select__emptyPlaceholder_t5awo {
|
|
42
|
+
} .select__l_pnda4 .select__emptyPlaceholder_pnda4,
|
|
43
|
+
.select__xl_pnda4 .select__emptyPlaceholder_pnda4 {
|
|
45
44
|
padding: var(--gap-xl) var(--gap-m);
|
|
46
45
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-60ccbcec.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../arrow/Component.js';
|
|
4
|
-
export { S as SelectMobile } from '../../Component-
|
|
4
|
+
export { S as SelectMobile } from '../../Component-ff31e94c.js';
|
|
5
5
|
import '../field/Component.js';
|
|
6
6
|
import '../optgroup/Component.js';
|
|
7
7
|
import '../option/Component.js';
|
|
@@ -12,7 +12,7 @@ import 'downshift';
|
|
|
12
12
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
13
13
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
14
14
|
import '../../Component.js';
|
|
15
|
-
import '../../Component-
|
|
15
|
+
import '../../Component-45681199.js';
|
|
16
16
|
import '@juggle/resize-observer';
|
|
17
17
|
import '@alfalab/core-components-popover/esm';
|
|
18
18
|
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 '../base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-ff31e94c";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { S as SelectMobile } from '../../Component-
|
|
2
|
-
import '../../tslib.es6-
|
|
1
|
+
export { S as SelectMobile } 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 '../base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-60ccbcec.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../arrow/Component.js';
|
|
4
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
4
|
+
export { a as SelectModalMobile } from '../../Component-ff31e94c.js';
|
|
5
5
|
import '../field/Component.js';
|
|
6
6
|
import '../optgroup/Component.js';
|
|
7
7
|
import '../option/Component.js';
|
|
@@ -12,7 +12,7 @@ import 'downshift';
|
|
|
12
12
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
13
13
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
14
14
|
import '../../Component.js';
|
|
15
|
-
import '../../Component-
|
|
15
|
+
import '../../Component-45681199.js';
|
|
16
16
|
import '@juggle/resize-observer';
|
|
17
17
|
import '@alfalab/core-components-popover/esm';
|
|
18
18
|
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 '../base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-ff31e94c";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
2
|
-
import '../../tslib.es6-
|
|
1
|
+
export { a as SelectModalMobile } 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 '../base-select-mobile/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, { useRef, useState, useEffect, useMemo } from 'react';
|
|
3
3
|
import { useVirtual } from 'react-virtual';
|
|
4
4
|
import cn from 'classnames';
|
|
@@ -7,7 +7,7 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
7
7
|
import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../utils.js';
|
|
8
8
|
import { Optgroup } from '../optgroup/Component.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"virtualOptionsList":"
|
|
10
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_5e7h2","scrollable":"select__scrollable_5e7h2","inner":"select__inner_5e7h2","virtualRow":"select__virtualRow_5e7h2","highlighted":"select__highlighted_5e7h2","emptyPlaceholder":"select__emptyPlaceholder_5e7h2","l":"select__l_5e7h2","xl":"select__xl_5e7h2"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4ja25 */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-border-primary: #dbdee1;
|
|
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-s: 12px;
|
|
16
18
|
--gap-m: 16px;
|
|
17
19
|
--gap-xl: 24px;
|
|
18
|
-
}
|
|
19
|
-
:root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
22
|
+
} :root {
|
|
20
23
|
|
|
21
24
|
/* options list */
|
|
22
25
|
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
@@ -31,28 +34,23 @@
|
|
|
31
34
|
/* checkmark */
|
|
32
35
|
|
|
33
36
|
/* optgroup */
|
|
34
|
-
}
|
|
35
|
-
.select__virtualOptionsList_1rykd {
|
|
37
|
+
} .select__virtualOptionsList_5e7h2 {
|
|
36
38
|
width: 100%;
|
|
37
39
|
outline: none;
|
|
38
40
|
box-sizing: border-box;
|
|
39
41
|
position: relative;
|
|
40
|
-
}
|
|
41
|
-
.select__scrollable_1rykd {
|
|
42
|
+
} .select__scrollable_5e7h2 {
|
|
42
43
|
overflow: auto;
|
|
43
44
|
width: 100%;
|
|
44
|
-
}
|
|
45
|
-
.select__inner_1rykd {
|
|
45
|
+
} .select__inner_5e7h2 {
|
|
46
46
|
position: relative;
|
|
47
47
|
width: 100%;
|
|
48
|
-
}
|
|
49
|
-
.select__virtualRow_1rykd {
|
|
48
|
+
} .select__virtualRow_5e7h2 {
|
|
50
49
|
position: absolute;
|
|
51
50
|
top: 0;
|
|
52
51
|
left: 0;
|
|
53
52
|
width: 100%
|
|
54
|
-
}
|
|
55
|
-
.select__virtualRow_1rykd:before {
|
|
53
|
+
} .select__virtualRow_5e7h2:before {
|
|
56
54
|
content: '';
|
|
57
55
|
position: absolute;
|
|
58
56
|
z-index: 1;
|
|
@@ -62,19 +60,15 @@
|
|
|
62
60
|
height: 1px;
|
|
63
61
|
background: var(--select-option-divider-background);
|
|
64
62
|
display: var(--select-option-divider-display);
|
|
65
|
-
}
|
|
66
|
-
.select__virtualRow_1rykd:first-child:before {
|
|
63
|
+
} .select__virtualRow_5e7h2:first-child:before {
|
|
67
64
|
display: none;
|
|
68
|
-
}
|
|
69
|
-
.
|
|
70
|
-
.select__highlighted_1rykd + .select__virtualRow_1rykd:before {
|
|
65
|
+
} .select__highlighted_5e7h2:before,
|
|
66
|
+
.select__highlighted_5e7h2 + .select__virtualRow_5e7h2:before {
|
|
71
67
|
display: none;
|
|
72
|
-
}
|
|
73
|
-
.select__emptyPlaceholder_1rykd {
|
|
68
|
+
} .select__emptyPlaceholder_5e7h2 {
|
|
74
69
|
padding: var(--gap-m) var(--gap-s);
|
|
75
70
|
color: var(--select-options-list-empty-placeholder-color);
|
|
76
|
-
}
|
|
77
|
-
.
|
|
78
|
-
.select__xl_1rykd .select__emptyPlaceholder_1rykd {
|
|
71
|
+
} .select__l_5e7h2 .select__emptyPlaceholder_5e7h2,
|
|
72
|
+
.select__xl_5e7h2 .select__emptyPlaceholder_5e7h2 {
|
|
79
73
|
padding: var(--gap-xl) var(--gap-m);
|
|
80
74
|
}
|
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-45681199.js';
|
|
4
|
+
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-ff31e94c.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';
|
|
@@ -11,7 +11,7 @@ export { BaseOption } from './components/base-option/Component.js';
|
|
|
11
11
|
export { useSelectWithLoading } from './presets/useSelectWithLoading/hook.js';
|
|
12
12
|
export { useLazyLoading } from './presets/useLazyLoading/hook.js';
|
|
13
13
|
export { isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from './utils.js';
|
|
14
|
-
import './tslib.es6-
|
|
14
|
+
import './tslib.es6-60ccbcec.js';
|
|
15
15
|
import 'react';
|
|
16
16
|
import 'classnames';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -33,7 +33,7 @@ import '@alfalab/core-components-bottom-sheet/esm';
|
|
|
33
33
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
34
34
|
import 'react-virtual';
|
|
35
35
|
import '@alfalab/core-components-skeleton/esm';
|
|
36
|
-
import './intersection-observer-
|
|
36
|
+
import './intersection-observer-ce0b7183.js';
|
|
37
37
|
import '@alfalab/core-components-button/esm';
|
|
38
38
|
import './components/base-checkmark/Component.js';
|
|
39
39
|
import './components/base-select-mobile/options-list/Component.js';
|
|
File without changes
|
|
File without changes
|
package/esm/presets/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import '../tslib.es6-
|
|
3
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-ff31e94c.js';
|
|
4
|
+
import '../tslib.es6-60ccbcec.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@alfalab/core-components-skeleton/esm';
|
|
7
7
|
import '../components/option/Component.js';
|
|
@@ -12,7 +12,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
|
12
12
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
13
13
|
import '../components/checkmark/Component.js';
|
|
14
14
|
import '@alfalab/core-components-checkbox/esm';
|
|
15
|
-
import '../intersection-observer-
|
|
15
|
+
import '../intersection-observer-ce0b7183.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-45681199.js';
|
|
24
24
|
import '@juggle/resize-observer';
|
|
25
25
|
import '@alfalab/core-components-popover/esm';
|
|
26
26
|
import '@alfalab/hooks';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as __spreadArray, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { b as __spreadArray, a as __assign } from '../../tslib.es6-60ccbcec.js';
|
|
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-ce0b7183.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../../components/base-select-mobile/checkmark/Component.js';
|
|
8
8
|
import '@alfalab/core-components-badge/esm';
|
|
@@ -11,7 +11,7 @@ import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
|
11
11
|
import '../../components/checkmark/Component.js';
|
|
12
12
|
import '@alfalab/core-components-checkbox/esm';
|
|
13
13
|
|
|
14
|
-
var styles = {"skeleton":"
|
|
14
|
+
var styles = {"skeleton":"select__skeleton_5291c"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var DEBOUNCE_TIMEOUT = 300;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-60ccbcec.js';
|
|
2
2
|
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-45681199.js';
|
|
7
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-ff31e94c.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-ce0b7183.js';
|
|
20
20
|
import '../../components/arrow/Component.js';
|
|
21
21
|
import '../../components/field/Component.js';
|
|
22
22
|
import '../../components/optgroup/Component.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import '../../../tslib.es6-
|
|
1
|
+
import '../../../tslib.es6-60ccbcec.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-button/esm';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
-
import '../../../Component-
|
|
7
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
6
|
+
import '../../../Component-45681199.js';
|
|
7
|
+
export { O as OptionsListWithApply } from '../../../Component-ff31e94c.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
10
|
import '@alfalab/core-components-badge/esm';
|
|
@@ -32,6 +32,6 @@ 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-ce0b7183.js';
|
|
36
36
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|