@alfalab/core-components-select 10.6.4 → 10.6.5
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/dist/Component-9404bb50.d.ts +33 -0
- package/dist/Component-9404bb50.js +359 -0
- package/dist/Component-b963ee30.d.ts +5 -0
- package/dist/Component-b963ee30.js +247 -0
- package/dist/Component.d.ts +1 -1
- package/dist/Component.js +2 -2
- package/dist/components/arrow/Component.js +1 -1
- package/dist/components/arrow/index.css +3 -3
- package/dist/components/base-select/Component.d.ts +0 -5
- package/dist/components/base-select/Component.js +11 -241
- package/dist/components/base-select/index.css +7 -7
- package/dist/components/base-select/index.d.ts +1 -1
- package/dist/components/base-select/index.js +2 -2
- package/dist/components/checkmark/Component.js +1 -1
- package/dist/components/checkmark/index.css +7 -7
- package/dist/components/field/Component.js +2 -2
- package/dist/components/field/index.css +9 -9
- package/dist/components/field/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +12 -2
- package/dist/components/native-select/Component.js +1 -1
- package/dist/components/native-select/index.js +1 -1
- package/dist/components/optgroup/Component.d.ts +1 -1
- package/dist/components/optgroup/Component.js +3 -3
- package/dist/components/optgroup/index.css +6 -6
- package/dist/components/option/Component.js +2 -2
- package/dist/components/option/index.css +20 -20
- package/dist/components/option/index.js +1 -1
- package/dist/components/options-list/Component.js +4 -4
- package/dist/components/options-list/index.css +6 -6
- package/dist/components/options-list/index.js +1 -1
- package/dist/components/select-mobile/Component.d.ts +0 -0
- package/dist/components/select-mobile/Component.js +38 -0
- package/dist/components/select-mobile/checkmark/Component.d.ts +4 -0
- package/dist/components/select-mobile/checkmark/Component.js +24 -0
- package/dist/components/select-mobile/checkmark/index.css +37 -0
- package/dist/components/select-mobile/checkmark/index.d.ts +1 -0
- package/dist/components/select-mobile/checkmark/index.js +11 -0
- package/dist/components/select-mobile/index.css +68 -0
- package/dist/components/select-mobile/index.d.ts +1 -0
- package/dist/components/select-mobile/index.js +38 -0
- package/dist/components/select-mobile/options-list/Component.d.ts +4 -0
- package/dist/components/select-mobile/options-list/Component.js +51 -0
- package/dist/components/select-mobile/options-list/index.css +65 -0
- package/dist/components/select-mobile/options-list/index.d.ts +1 -0
- package/dist/components/select-mobile/options-list/index.js +16 -0
- package/dist/components/virtual-options-list/Component.js +2 -2
- package/dist/components/virtual-options-list/index.css +12 -12
- package/dist/components/virtual-options-list/index.js +1 -1
- package/dist/cssm/Component-9bc41b6c.d.ts +5 -0
- package/dist/cssm/Component-9bc41b6c.js +246 -0
- package/dist/cssm/Component-d45c0e41.d.ts +33 -0
- package/dist/cssm/Component-d45c0e41.js +365 -0
- package/dist/cssm/Component.d.ts +1 -1
- package/dist/cssm/Component.js +1 -1
- package/dist/cssm/components/base-select/Component.d.ts +0 -5
- package/dist/cssm/components/base-select/Component.js +12 -240
- package/dist/cssm/components/base-select/index.d.ts +1 -1
- package/dist/cssm/components/base-select/index.js +1 -1
- package/dist/cssm/components/index.d.ts +1 -0
- package/dist/cssm/components/index.js +17 -1
- package/dist/cssm/components/optgroup/Component.d.ts +1 -1
- package/dist/cssm/components/optgroup/Component.js +2 -2
- package/dist/cssm/components/options-list/Component.js +2 -2
- package/dist/cssm/components/select-mobile/Component.d.ts +0 -0
- package/dist/cssm/components/select-mobile/Component.js +52 -0
- package/dist/cssm/components/select-mobile/checkmark/Component.d.ts +4 -0
- package/dist/cssm/components/select-mobile/checkmark/Component.js +23 -0
- package/dist/cssm/components/select-mobile/checkmark/index.d.ts +1 -0
- package/dist/cssm/components/select-mobile/checkmark/index.js +12 -0
- package/dist/cssm/components/select-mobile/checkmark/index.module.css +36 -0
- package/dist/cssm/components/select-mobile/index.d.ts +1 -0
- package/dist/cssm/components/select-mobile/index.js +52 -0
- package/dist/cssm/components/select-mobile/index.module.css +67 -0
- package/dist/cssm/components/select-mobile/options-list/Component.d.ts +4 -0
- package/dist/cssm/components/select-mobile/options-list/Component.js +51 -0
- package/dist/cssm/components/select-mobile/options-list/index.d.ts +1 -0
- package/dist/cssm/components/select-mobile/options-list/index.js +18 -0
- package/dist/cssm/components/select-mobile/options-list/index.module.css +64 -0
- package/dist/cssm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/dist/cssm/hook-f5b8fe4f.d.ts +3 -3
- package/dist/cssm/index.js +14 -6
- package/dist/cssm/presets/index.js +13 -6
- package/dist/cssm/presets/useSelectWithApply/hook.js +13 -6
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +12 -5
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +12 -5
- package/dist/cssm/typings.d.ts +29 -0
- package/dist/esm/Component-25510e34.d.ts +33 -0
- package/dist/esm/Component-25510e34.js +348 -0
- package/dist/esm/Component-385efde8.d.ts +5 -0
- package/dist/esm/Component-385efde8.js +238 -0
- package/dist/esm/Component.d.ts +1 -1
- package/dist/esm/Component.js +2 -2
- package/dist/esm/components/arrow/Component.js +1 -1
- package/dist/esm/components/arrow/index.css +3 -3
- package/dist/esm/components/base-select/Component.d.ts +0 -5
- package/dist/esm/components/base-select/Component.js +10 -238
- package/dist/esm/components/base-select/index.css +7 -7
- package/dist/esm/components/base-select/index.d.ts +1 -1
- package/dist/esm/components/base-select/index.js +2 -2
- package/dist/esm/components/checkmark/Component.js +1 -1
- package/dist/esm/components/checkmark/index.css +7 -7
- package/dist/esm/components/field/Component.js +2 -2
- package/dist/esm/components/field/index.css +9 -9
- package/dist/esm/components/field/index.js +1 -1
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.js +11 -2
- package/dist/esm/components/native-select/Component.js +1 -1
- package/dist/esm/components/native-select/index.js +1 -1
- package/dist/esm/components/optgroup/Component.d.ts +1 -1
- package/dist/esm/components/optgroup/Component.js +3 -3
- package/dist/esm/components/optgroup/index.css +6 -6
- package/dist/esm/components/option/Component.js +2 -2
- package/dist/esm/components/option/index.css +20 -20
- package/dist/esm/components/option/index.js +1 -1
- package/dist/esm/components/options-list/Component.js +4 -4
- package/dist/esm/components/options-list/index.css +6 -6
- package/dist/esm/components/options-list/index.js +1 -1
- package/dist/esm/components/select-mobile/Component.d.ts +0 -0
- package/dist/esm/components/select-mobile/Component.js +30 -0
- package/dist/esm/components/select-mobile/checkmark/Component.d.ts +4 -0
- package/dist/esm/components/select-mobile/checkmark/Component.js +15 -0
- package/dist/esm/components/select-mobile/checkmark/index.css +37 -0
- package/dist/esm/components/select-mobile/checkmark/index.d.ts +1 -0
- package/dist/esm/components/select-mobile/checkmark/index.js +3 -0
- package/dist/esm/components/select-mobile/index.css +68 -0
- package/dist/esm/components/select-mobile/index.d.ts +1 -0
- package/dist/esm/components/select-mobile/index.js +30 -0
- package/dist/esm/components/select-mobile/options-list/Component.d.ts +4 -0
- package/dist/esm/components/select-mobile/options-list/Component.js +42 -0
- package/dist/esm/components/select-mobile/options-list/index.css +65 -0
- package/dist/esm/components/select-mobile/options-list/index.d.ts +1 -0
- package/dist/esm/components/select-mobile/options-list/index.js +8 -0
- package/dist/esm/components/virtual-options-list/Component.js +2 -2
- package/dist/esm/components/virtual-options-list/index.css +12 -12
- package/dist/esm/components/virtual-options-list/index.js +1 -1
- package/dist/esm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/dist/esm/hook-f5b8fe4f.d.ts +3 -3
- package/dist/esm/index.js +9 -5
- package/dist/esm/{intersection-observer-812c9e4f.d.ts → intersection-observer-0bdc3704.d.ts} +0 -0
- package/dist/esm/{intersection-observer-812c9e4f.js → intersection-observer-0bdc3704.js} +0 -0
- package/dist/esm/presets/index.js +9 -5
- package/dist/esm/presets/useLazyLoading/hook.js +3 -3
- package/dist/esm/presets/useLazyLoading/index.css +2 -2
- package/dist/esm/presets/useSelectWithApply/hook.js +9 -5
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +9 -5
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.js +9 -5
- package/dist/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/dist/esm/presets/useSelectWithLoading/index.css +2 -2
- package/dist/esm/{tslib.es6-de132685.d.ts → tslib.es6-a9457d88.d.ts} +0 -0
- package/dist/esm/{tslib.es6-de132685.js → tslib.es6-a9457d88.js} +0 -0
- package/dist/esm/typings.d.ts +29 -0
- package/dist/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/dist/hook-f5b8fe4f.d.ts +3 -3
- package/dist/index.js +12 -7
- package/dist/{intersection-observer-25b5554f.d.ts → intersection-observer-0fef5c01.d.ts} +0 -0
- package/dist/{intersection-observer-25b5554f.js → intersection-observer-0fef5c01.js} +0 -0
- package/dist/modern/Component-17dae8dc.d.ts +33 -0
- package/dist/modern/Component-17dae8dc.js +363 -0
- package/dist/modern/Component-e21aa51b.d.ts +5 -0
- package/dist/modern/Component-e21aa51b.js +247 -0
- package/dist/modern/Component.d.ts +1 -1
- package/dist/modern/Component.js +1 -1
- package/dist/modern/components/arrow/Component.js +1 -1
- package/dist/modern/components/arrow/index.css +3 -3
- package/dist/modern/components/base-select/Component.d.ts +0 -5
- package/dist/modern/components/base-select/Component.js +9 -247
- package/dist/modern/components/base-select/index.css +7 -7
- package/dist/modern/components/base-select/index.d.ts +1 -1
- package/dist/modern/components/base-select/index.js +1 -1
- package/dist/modern/components/checkmark/Component.js +1 -1
- package/dist/modern/components/checkmark/index.css +7 -7
- package/dist/modern/components/field/Component.js +1 -1
- package/dist/modern/components/field/index.css +9 -9
- package/dist/modern/components/index.d.ts +1 -0
- package/dist/modern/components/index.js +10 -1
- package/dist/modern/components/optgroup/Component.d.ts +1 -1
- package/dist/modern/components/optgroup/Component.js +3 -3
- package/dist/modern/components/optgroup/index.css +6 -6
- package/dist/modern/components/option/Component.js +1 -1
- package/dist/modern/components/option/index.css +20 -20
- package/dist/modern/components/options-list/Component.js +3 -3
- package/dist/modern/components/options-list/index.css +6 -6
- package/dist/modern/components/select-mobile/Component.d.ts +0 -0
- package/dist/modern/components/select-mobile/Component.js +29 -0
- package/dist/modern/components/select-mobile/checkmark/Component.d.ts +4 -0
- package/dist/modern/components/select-mobile/checkmark/Component.js +11 -0
- package/dist/modern/components/select-mobile/checkmark/index.css +37 -0
- package/dist/modern/components/select-mobile/checkmark/index.d.ts +1 -0
- package/dist/modern/components/select-mobile/checkmark/index.js +3 -0
- package/dist/modern/components/select-mobile/index.css +68 -0
- package/dist/modern/components/select-mobile/index.d.ts +1 -0
- package/dist/modern/components/select-mobile/index.js +29 -0
- package/dist/modern/components/select-mobile/options-list/Component.d.ts +4 -0
- package/dist/modern/components/select-mobile/options-list/Component.js +37 -0
- package/dist/modern/components/select-mobile/options-list/index.css +65 -0
- package/dist/modern/components/select-mobile/options-list/index.d.ts +1 -0
- package/dist/modern/components/select-mobile/options-list/index.js +7 -0
- package/dist/modern/components/virtual-options-list/Component.js +1 -1
- package/dist/modern/components/virtual-options-list/index.css +12 -12
- package/dist/modern/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/dist/modern/hook-f5b8fe4f.d.ts +3 -3
- package/dist/modern/index.js +8 -4
- package/dist/modern/{intersection-observer-812c9e4f.d.ts → intersection-observer-0bdc3704.d.ts} +0 -0
- package/dist/modern/{intersection-observer-812c9e4f.js → intersection-observer-0bdc3704.js} +0 -0
- package/dist/modern/presets/index.js +8 -4
- package/dist/modern/presets/useLazyLoading/hook.js +2 -2
- package/dist/modern/presets/useLazyLoading/index.css +2 -2
- package/dist/modern/presets/useSelectWithApply/hook.js +8 -4
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +8 -4
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.js +8 -4
- package/dist/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/dist/modern/presets/useSelectWithLoading/index.css +2 -2
- package/dist/modern/typings.d.ts +29 -0
- package/dist/presets/index.js +11 -7
- package/dist/presets/useLazyLoading/hook.js +3 -3
- package/dist/presets/useLazyLoading/index.css +2 -2
- package/dist/presets/useSelectWithApply/hook.js +11 -7
- package/dist/presets/useSelectWithApply/options-list-with-apply/Component.js +10 -6
- package/dist/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/dist/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/dist/presets/useSelectWithApply/options-list-with-apply/index.js +10 -6
- package/dist/presets/useSelectWithLoading/hook.js +2 -2
- package/dist/presets/useSelectWithLoading/index.css +2 -2
- package/dist/{tslib.es6-2027080d.d.ts → tslib.es6-b9d0d522.d.ts} +0 -0
- package/dist/{tslib.es6-2027080d.js → tslib.es6-b9d0d522.js} +0 -0
- package/dist/typings.d.ts +29 -0
- package/package.json +14 -12
- package/dist/cssm/hook-3b9bd559.d.ts +0 -12
- package/dist/cssm/hook-3b9bd559.js +0 -147
- package/dist/esm/hook-73d6fe0f.d.ts +0 -12
- package/dist/esm/hook-73d6fe0f.js +0 -131
- package/dist/hook-81a989b0.d.ts +0 -12
- package/dist/hook-81a989b0.js +0 -140
- package/dist/modern/hook-42b89ed1.d.ts +0 -12
- package/dist/modern/hook-42b89ed1.js +0 -132
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qn2g */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-bg-secondary: #f3f4f5;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
|
|
54
54
|
/* optgroup */
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.select__option_1d3iv {
|
|
57
57
|
font-size: 16px;
|
|
58
58
|
line-height: 20px;
|
|
59
59
|
font-weight: 400;
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
position: relative;
|
|
70
70
|
cursor: pointer
|
|
71
71
|
}
|
|
72
|
-
.
|
|
72
|
+
.select__option_1d3iv:not(.select__disabled_1d3iv):active {
|
|
73
73
|
background: var(--select-option-active-background);
|
|
74
74
|
color: var(--select-option-active-color);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.select__option_1d3iv:before {
|
|
77
77
|
content: '';
|
|
78
78
|
position: absolute;
|
|
79
79
|
left: var(--select-option-left-padding);
|
|
@@ -84,60 +84,60 @@
|
|
|
84
84
|
display: var(--select-option-divider-display);
|
|
85
85
|
transition: opacity 0.2s ease;
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
.select__option_1d3iv:first-child:before {
|
|
88
88
|
display: none;
|
|
89
89
|
}
|
|
90
|
-
.
|
|
90
|
+
.select__s_1d3iv {
|
|
91
91
|
min-height: var(--size-s-height);
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.select__m_1d3iv {
|
|
94
94
|
min-height: var(--size-m-height);
|
|
95
95
|
}
|
|
96
|
-
.
|
|
96
|
+
.select__l_1d3iv {
|
|
97
97
|
min-height: var(--size-l-height);
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
.select__xl_1d3iv {
|
|
100
100
|
min-height: var(--size-xl-height);
|
|
101
101
|
}
|
|
102
|
-
.
|
|
103
|
-
.
|
|
102
|
+
.select__l_1d3iv,
|
|
103
|
+
.select__xl_1d3iv {
|
|
104
104
|
padding-left: var(--select-option-l-left-padding);
|
|
105
105
|
padding-right: var(--select-option-l-right-padding)
|
|
106
106
|
}
|
|
107
|
-
.
|
|
107
|
+
.select__l_1d3iv:before, .select__xl_1d3iv:before {
|
|
108
108
|
left: var(--select-option-l-left-padding);
|
|
109
109
|
right: var(--select-option-l-right-padding);
|
|
110
110
|
}
|
|
111
|
-
.
|
|
111
|
+
.select__selected_1d3iv {
|
|
112
112
|
background: var(--select-option-selected-background);
|
|
113
113
|
color: var(--select-option-selected-color);
|
|
114
114
|
cursor: default;
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.select__highlighted_1d3iv {
|
|
117
117
|
background: var(--select-option-hover-background);
|
|
118
118
|
color: var(--select-option-hover-color)
|
|
119
119
|
}
|
|
120
|
-
.
|
|
121
|
-
.
|
|
120
|
+
.select__highlighted_1d3iv:before,
|
|
121
|
+
.select__highlighted_1d3iv + .select__option_1d3iv:before {
|
|
122
122
|
opacity: 0;
|
|
123
123
|
}
|
|
124
|
-
.
|
|
124
|
+
.select__disabled_1d3iv {
|
|
125
125
|
cursor: var(--disabled-cursor);
|
|
126
126
|
background: var(--select-option-disabled-background);
|
|
127
127
|
color: var(--select-option-disabled-color);
|
|
128
128
|
}
|
|
129
|
-
.
|
|
129
|
+
.select__content_1d3iv {
|
|
130
130
|
overflow: hidden;
|
|
131
131
|
flex: 1;
|
|
132
132
|
text-overflow: ellipsis;
|
|
133
133
|
}
|
|
134
|
-
.
|
|
134
|
+
.select__textContent_1d3iv {
|
|
135
135
|
padding-top: var(--gap-s);
|
|
136
136
|
padding-bottom: var(--gap-s);
|
|
137
137
|
}
|
|
138
138
|
/* IE min-height fix */
|
|
139
139
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
140
|
-
.
|
|
140
|
+
.select__option_1d3iv:after {
|
|
141
141
|
min-height: inherit;
|
|
142
142
|
font-size: 0;
|
|
143
143
|
content: '';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-a9457d88.js';
|
|
2
2
|
import React, { forwardRef, useCallback, useRef } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
5
5
|
import mergeRefs from 'react-merge-refs';
|
|
6
6
|
import { Optgroup } from '../optgroup/Component.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"optionsList":"
|
|
8
|
+
var styles = {"optionsList":"select__optionsList_lcurb","scrollable":"select__scrollable_lcurb","emptyPlaceholder":"select__emptyPlaceholder_lcurb","l":"select__l_lcurb","xl":"select__xl_lcurb"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var createCounter = function () {
|
|
@@ -14,11 +14,11 @@ var createCounter = function () {
|
|
|
14
14
|
return function () { return count++; };
|
|
15
15
|
};
|
|
16
16
|
var OptionsList = forwardRef(function (_a, ref) {
|
|
17
|
-
var _b = _a.size, size = _b === void 0 ? 's' : _b, className = _a.className, Option = _a.Option, getOptionProps = _a.getOptionProps, _c = _a.options, options = _c === void 0 ? [] : _c, _d = _a.Optgroup, Optgroup$1 = _d === void 0 ? Optgroup : _d, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _e = _a.visibleOptions, visibleOptions = _e === void 0 ? 5 : _e, onScroll = _a.onScroll, open = _a.open, header = _a.header, footer = _a.footer;
|
|
17
|
+
var _b = _a.size, size = _b === void 0 ? 's' : _b, className = _a.className, optionGroupClassName = _a.optionGroupClassName, Option = _a.Option, getOptionProps = _a.getOptionProps, _c = _a.options, options = _c === void 0 ? [] : _c, _d = _a.Optgroup, Optgroup$1 = _d === void 0 ? Optgroup : _d, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _e = _a.visibleOptions, visibleOptions = _e === void 0 ? 5 : _e, onScroll = _a.onScroll, open = _a.open, header = _a.header, footer = _a.footer;
|
|
18
18
|
var renderOption = useCallback(function (option, index) { return (React.createElement(Option, __assign({ key: option.key }, getOptionProps(option, index)))); }, [getOptionProps]);
|
|
19
19
|
var listRef = useRef(null);
|
|
20
20
|
var counter = createCounter();
|
|
21
|
-
var renderGroup = useCallback(function (group) { return (React.createElement(Optgroup$1, { label: group.label, key: group.label, size: size }, group.options.map(function (option) { return renderOption(option, counter()); }))); }, [counter, renderOption, size]);
|
|
21
|
+
var renderGroup = useCallback(function (group) { return (React.createElement(Optgroup$1, { className: optionGroupClassName, label: group.label, key: group.label, size: size }, group.options.map(function (option) { return renderOption(option, counter()); }))); }, [optionGroupClassName, counter, renderOption, size]);
|
|
22
22
|
useVisibleOptions({
|
|
23
23
|
visibleOptions: visibleOptions,
|
|
24
24
|
listRef: listRef,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1cp4a */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: #546272;
|
|
4
4
|
}
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.select__optionsList_lcurb {
|
|
30
30
|
overflow: auto;
|
|
31
31
|
width: 100%;
|
|
32
32
|
outline: none;
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__scrollable_lcurb {
|
|
36
36
|
overflow: auto;
|
|
37
37
|
width: 100%;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.select__emptyPlaceholder_lcurb {
|
|
40
40
|
padding: var(--gap-m) var(--gap-s);
|
|
41
41
|
color: var(--select-options-list-empty-placeholder-color);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
44
|
-
.
|
|
43
|
+
.select__l_lcurb .select__emptyPlaceholder_lcurb,
|
|
44
|
+
.select__xl_lcurb .select__emptyPlaceholder_lcurb {
|
|
45
45
|
padding: var(--gap-xl) var(--gap-m);
|
|
46
46
|
}
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import '../../tslib.es6-a9457d88.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/hooks';
|
|
5
|
+
import '@alfalab/core-components-form-control/dist/esm';
|
|
6
|
+
import '../../utils.js';
|
|
7
|
+
import '../field/Component.js';
|
|
8
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
|
+
import '../arrow/Component.js';
|
|
10
|
+
import 'react-merge-refs';
|
|
11
|
+
import '../optgroup/Component.js';
|
|
12
|
+
import '../options-list/Component.js';
|
|
13
|
+
import '@alfalab/core-components-checkbox/dist/esm';
|
|
14
|
+
import '../checkmark/Component.js';
|
|
15
|
+
import '../option/Component.js';
|
|
16
|
+
import 'resize-observer';
|
|
17
|
+
import '@alfalab/core-components-popover/dist/esm';
|
|
18
|
+
import 'downshift';
|
|
19
|
+
import '../native-select/Component.js';
|
|
20
|
+
import '../../Component-385efde8.js';
|
|
21
|
+
import '../../Component.js';
|
|
22
|
+
import '@alfalab/core-components-bottom-sheet/dist/esm';
|
|
23
|
+
import '@alfalab/core-components-button/dist/esm';
|
|
24
|
+
import '@alfalab/core-components-base-modal/dist/esm';
|
|
25
|
+
import './options-list/Component.js';
|
|
26
|
+
import './checkmark/Component.js';
|
|
27
|
+
export { S as SelectMobile } from '../../Component-25510e34.js';
|
|
28
|
+
import 'react-virtual';
|
|
29
|
+
import '@alfalab/core-components-skeleton/dist/esm';
|
|
30
|
+
import '../../intersection-observer-0bdc3704.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
|
|
4
|
+
var styles = {"checkmark":"select__checkmark_rglhd","selected":"select__selected_rglhd"};
|
|
5
|
+
require('./index.css')
|
|
6
|
+
|
|
7
|
+
var Checkmark = function (_a) {
|
|
8
|
+
var _b;
|
|
9
|
+
var selected = _a.selected, className = _a.className;
|
|
10
|
+
return (React.createElement("span", { className: cn(styles.checkmark, className, (_b = {},
|
|
11
|
+
_b[styles.selected] = selected,
|
|
12
|
+
_b)) }));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { Checkmark };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* hash: ze7dr */
|
|
2
|
+
:root {
|
|
3
|
+
|
|
4
|
+
/* Hard */
|
|
5
|
+
|
|
6
|
+
/* Up */
|
|
7
|
+
|
|
8
|
+
/* Hard up */
|
|
9
|
+
}
|
|
10
|
+
:root {
|
|
11
|
+
|
|
12
|
+
/* options list */
|
|
13
|
+
|
|
14
|
+
/* option */
|
|
15
|
+
|
|
16
|
+
/* checkmark */
|
|
17
|
+
--select-mobile-checkmark-background: url('https://alfabank.gcdn.co/icons/glyph_checkmark_m.svg');
|
|
18
|
+
|
|
19
|
+
/* optgroup */
|
|
20
|
+
}
|
|
21
|
+
.select__checkmark_rglhd {
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
background: var(--select-mobile-checkmark-background);
|
|
27
|
+
background-size: cover;
|
|
28
|
+
width: 24px;
|
|
29
|
+
height: 24px;
|
|
30
|
+
opacity: 0
|
|
31
|
+
}
|
|
32
|
+
.select__checkmark_rglhd:first-child {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
.select__checkmark_rglhd.select__selected_rglhd {
|
|
36
|
+
opacity: 1;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Component";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* hash: kvx79 */
|
|
2
|
+
:root {
|
|
3
|
+
|
|
4
|
+
/* Hard */
|
|
5
|
+
|
|
6
|
+
/* Up */
|
|
7
|
+
|
|
8
|
+
/* Hard up */
|
|
9
|
+
}
|
|
10
|
+
:root {
|
|
11
|
+
--gap-2xs: 4px;
|
|
12
|
+
--gap-xs: 8px;
|
|
13
|
+
--gap-m: 16px;
|
|
14
|
+
--gap-l: 20px;
|
|
15
|
+
}
|
|
16
|
+
:root {
|
|
17
|
+
|
|
18
|
+
/* options list */
|
|
19
|
+
--select-options-list-offset: 0;
|
|
20
|
+
|
|
21
|
+
/* option */
|
|
22
|
+
|
|
23
|
+
/* checkmark */
|
|
24
|
+
|
|
25
|
+
/* optgroup */
|
|
26
|
+
}
|
|
27
|
+
.select__component_10sq7 {
|
|
28
|
+
width: max-content;
|
|
29
|
+
position: relative;
|
|
30
|
+
outline: 0;
|
|
31
|
+
}
|
|
32
|
+
.select__popoverInner_10sq7 {
|
|
33
|
+
padding-top: var(--select-options-list-offset);
|
|
34
|
+
padding-bottom: var(--select-options-list-offset);
|
|
35
|
+
box-shadow: none;
|
|
36
|
+
border: none;
|
|
37
|
+
background: transparent;
|
|
38
|
+
border-radius: 0;
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
.select__sheet_10sq7 {
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
}
|
|
44
|
+
.select__sheetContent_10sq7 {
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
.select__sheetContainer_10sq7 {
|
|
48
|
+
padding: 0;
|
|
49
|
+
}
|
|
50
|
+
.select__block_10sq7 {
|
|
51
|
+
width: 100%;
|
|
52
|
+
}
|
|
53
|
+
/* width: max-content; fix for IE */
|
|
54
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
55
|
+
.select__component_10sq7 {
|
|
56
|
+
float: left;
|
|
57
|
+
clear: left;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.select__option_10sq7 {
|
|
61
|
+
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
62
|
+
}
|
|
63
|
+
.select__option_10sq7:before {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
.select__optionGroup_10sq7 {
|
|
67
|
+
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../Component-25510e34";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import '../../tslib.es6-a9457d88.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/hooks';
|
|
5
|
+
import '@alfalab/core-components-form-control/dist/esm';
|
|
6
|
+
import '../../utils.js';
|
|
7
|
+
import '../field/Component.js';
|
|
8
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
|
+
import '../arrow/Component.js';
|
|
10
|
+
import 'react-merge-refs';
|
|
11
|
+
import '../optgroup/Component.js';
|
|
12
|
+
import '../options-list/Component.js';
|
|
13
|
+
import '@alfalab/core-components-checkbox/dist/esm';
|
|
14
|
+
import '../checkmark/Component.js';
|
|
15
|
+
import '../option/Component.js';
|
|
16
|
+
import 'resize-observer';
|
|
17
|
+
import '@alfalab/core-components-popover/dist/esm';
|
|
18
|
+
import 'downshift';
|
|
19
|
+
import '../native-select/Component.js';
|
|
20
|
+
import '../../Component-385efde8.js';
|
|
21
|
+
import '../../Component.js';
|
|
22
|
+
import '@alfalab/core-components-bottom-sheet/dist/esm';
|
|
23
|
+
import '@alfalab/core-components-button/dist/esm';
|
|
24
|
+
import '@alfalab/core-components-base-modal/dist/esm';
|
|
25
|
+
import './options-list/Component.js';
|
|
26
|
+
import './checkmark/Component.js';
|
|
27
|
+
export { S as SelectMobile } from '../../Component-25510e34.js';
|
|
28
|
+
import 'react-virtual';
|
|
29
|
+
import '@alfalab/core-components-skeleton/dist/esm';
|
|
30
|
+
import '../../intersection-observer-0bdc3704.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OptionsListProps } from "../../../typings";
|
|
3
|
+
declare const OptionsList: ({ size, className, optionGroupClassName, Option, getOptionProps, options, Optgroup, dataTestId, emptyPlaceholder, showFooter, onApply, onClear, }: OptionsListProps) => JSX.Element | null;
|
|
4
|
+
export { OptionsList };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { a as __assign } from '../../../tslib.es6-a9457d88.js';
|
|
2
|
+
import React, { useContext, useEffect, useCallback } from 'react';
|
|
3
|
+
import cn from 'classnames';
|
|
4
|
+
import { isGroup } from '../../../utils.js';
|
|
5
|
+
import { Optgroup } from '../../optgroup/Component.js';
|
|
6
|
+
import { Button } from '@alfalab/core-components-button/dist/esm';
|
|
7
|
+
import { BaseModalContext } from '@alfalab/core-components-base-modal/dist/esm';
|
|
8
|
+
|
|
9
|
+
var styles = {"optionsList":"select__optionsList_ruojk","emptyPlaceholder":"select__emptyPlaceholder_ruojk","l":"select__l_ruojk","xl":"select__xl_ruojk","footer":"select__footer_ruojk","footerButton":"select__footerButton_ruojk","highlighted":"select__highlighted_ruojk"};
|
|
10
|
+
require('./index.css')
|
|
11
|
+
|
|
12
|
+
var createCounter = function () {
|
|
13
|
+
var count = 0;
|
|
14
|
+
// eslint-disable-next-line no-plusplus
|
|
15
|
+
return function () { return count++; };
|
|
16
|
+
};
|
|
17
|
+
var OptionsList = function (_a) {
|
|
18
|
+
var _b;
|
|
19
|
+
var _c = _a.size, size = _c === void 0 ? 's' : _c, className = _a.className, optionGroupClassName = _a.optionGroupClassName, Option = _a.Option, getOptionProps = _a.getOptionProps, _d = _a.options, options = _d === void 0 ? [] : _d, _e = _a.Optgroup, Optgroup$1 = _e === void 0 ? Optgroup : _e, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, showFooter = _a.showFooter, _f = _a.onApply, onApply = _f === void 0 ? function () { return null; } : _f, _g = _a.onClear, onClear = _g === void 0 ? function () { return null; } : _g;
|
|
20
|
+
var _h = useContext(BaseModalContext), footerHighlighted = _h.footerHighlighted, setHasFooter = _h.setHasFooter;
|
|
21
|
+
useEffect(function () {
|
|
22
|
+
setHasFooter(true);
|
|
23
|
+
}, [setHasFooter]);
|
|
24
|
+
var renderOption = useCallback(function (option, index) { return (React.createElement(Option, __assign({ key: option.key }, getOptionProps(option, index)))); }, [getOptionProps]);
|
|
25
|
+
var counter = createCounter();
|
|
26
|
+
var renderGroup = useCallback(function (group) { return (React.createElement(Optgroup$1, { className: optionGroupClassName, label: group.label, key: group.label, size: size }, group.options.map(function (option) { return renderOption(option, counter()); }))); }, [optionGroupClassName, counter, renderOption, size]);
|
|
27
|
+
if (options.length === 0 && !emptyPlaceholder) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return (React.createElement("div", { className: cn(styles.optionsList, styles[size], className), "data-test-id": dataTestId },
|
|
31
|
+
options.map(function (option) {
|
|
32
|
+
return isGroup(option) ? renderGroup(option) : renderOption(option, counter());
|
|
33
|
+
}),
|
|
34
|
+
emptyPlaceholder && options.length === 0 && (React.createElement("div", { className: styles.emptyPlaceholder }, emptyPlaceholder)),
|
|
35
|
+
showFooter && (React.createElement("div", { className: cn(styles.footer, className, (_b = {},
|
|
36
|
+
_b[styles.highlighted] = footerHighlighted,
|
|
37
|
+
_b)) },
|
|
38
|
+
React.createElement(Button, { size: 's', view: 'primary', onClick: onApply, className: styles.footerButton }, "\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C"),
|
|
39
|
+
React.createElement(Button, { size: 's', view: 'secondary', onClick: onClear, className: styles.footerButton }, "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C")))));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export { OptionsList };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* hash: 1g06x */
|
|
2
|
+
:root {
|
|
3
|
+
--color-light-bg-primary: #fff;
|
|
4
|
+
--color-light-border-primary: #dbdee1;
|
|
5
|
+
--color-light-text-secondary: #546272;
|
|
6
|
+
}
|
|
7
|
+
:root {
|
|
8
|
+
|
|
9
|
+
/* Hard */
|
|
10
|
+
|
|
11
|
+
/* Up */
|
|
12
|
+
|
|
13
|
+
/* Hard up */
|
|
14
|
+
}
|
|
15
|
+
:root {
|
|
16
|
+
--gap-s: 12px;
|
|
17
|
+
--gap-m: 16px;
|
|
18
|
+
--gap-xl: 24px;
|
|
19
|
+
}
|
|
20
|
+
:root {
|
|
21
|
+
|
|
22
|
+
/* options list */
|
|
23
|
+
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
24
|
+
|
|
25
|
+
/* option */
|
|
26
|
+
|
|
27
|
+
/* checkmark */
|
|
28
|
+
|
|
29
|
+
/* optgroup */
|
|
30
|
+
}
|
|
31
|
+
:root {
|
|
32
|
+
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
33
|
+
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
34
|
+
}
|
|
35
|
+
.select__optionsList_ruojk {
|
|
36
|
+
width: 100%;
|
|
37
|
+
outline: none;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
}
|
|
40
|
+
.select__emptyPlaceholder_ruojk {
|
|
41
|
+
padding: var(--gap-m) var(--gap-s);
|
|
42
|
+
color: var(--select-options-list-empty-placeholder-color);
|
|
43
|
+
}
|
|
44
|
+
.select__l_ruojk .select__emptyPlaceholder_ruojk,
|
|
45
|
+
.select__xl_ruojk .select__emptyPlaceholder_ruojk {
|
|
46
|
+
padding: var(--gap-xl) var(--gap-m);
|
|
47
|
+
}
|
|
48
|
+
.select__footer_ruojk {
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
position: sticky;
|
|
52
|
+
padding: var(--gap-m) var(--gap-m);
|
|
53
|
+
background-color: var(--color-light-bg-primary);
|
|
54
|
+
bottom: 0
|
|
55
|
+
}
|
|
56
|
+
.select__footer_ruojk .select__footerButton_ruojk:first-of-type {
|
|
57
|
+
margin-right: var(--gap-m);
|
|
58
|
+
}
|
|
59
|
+
.select__footerButton_ruojk {
|
|
60
|
+
width: 50%;
|
|
61
|
+
}
|
|
62
|
+
.select__highlighted_ruojk {
|
|
63
|
+
border-top: var(--select-mobile-footer-border-top);
|
|
64
|
+
background-color: var(--select-mobile-footer-background-color);
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Component";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '../../../tslib.es6-a9457d88.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '../../../utils.js';
|
|
5
|
+
import '../../optgroup/Component.js';
|
|
6
|
+
import '@alfalab/core-components-button/dist/esm';
|
|
7
|
+
import '@alfalab/core-components-base-modal/dist/esm';
|
|
8
|
+
export { OptionsList } from './Component.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-a9457d88.js';
|
|
2
2
|
import React, { useRef, useState, useEffect, useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../utils.js';
|
|
5
5
|
import { Optgroup } from '../optgroup/Component.js';
|
|
6
6
|
import { useVirtual } from 'react-virtual';
|
|
7
7
|
|
|
8
|
-
var styles = {"virtualOptionsList":"
|
|
8
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_pjid4","scrollable":"select__scrollable_pjid4","inner":"select__inner_pjid4","virtualRow":"select__virtualRow_pjid4","highlighted":"select__highlighted_pjid4","emptyPlaceholder":"select__emptyPlaceholder_pjid4","l":"select__l_pjid4","xl":"select__xl_pjid4"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 10nve */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-text-secondary: #546272;
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
|
|
33
33
|
/* optgroup */
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__virtualOptionsList_pjid4 {
|
|
36
36
|
width: 100%;
|
|
37
37
|
outline: none;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
position: relative;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.select__scrollable_pjid4 {
|
|
42
42
|
overflow: auto;
|
|
43
43
|
width: 100%;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.select__inner_pjid4 {
|
|
46
46
|
position: relative;
|
|
47
47
|
width: 100%;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.select__virtualRow_pjid4 {
|
|
50
50
|
position: absolute;
|
|
51
51
|
top: 0;
|
|
52
52
|
left: 0;
|
|
53
53
|
width: 100%
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.select__virtualRow_pjid4:before {
|
|
56
56
|
content: '';
|
|
57
57
|
position: absolute;
|
|
58
58
|
z-index: 1;
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
background: var(--select-option-divider-background);
|
|
64
64
|
display: var(--select-option-divider-display);
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.select__virtualRow_pjid4:first-child:before {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
.
|
|
70
|
-
.
|
|
69
|
+
.select__highlighted_pjid4:before,
|
|
70
|
+
.select__highlighted_pjid4 + .select__virtualRow_pjid4:before {
|
|
71
71
|
display: none;
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.select__emptyPlaceholder_pjid4 {
|
|
74
74
|
padding: var(--gap-m) var(--gap-s);
|
|
75
75
|
color: var(--select-options-list-empty-placeholder-color);
|
|
76
76
|
}
|
|
77
|
-
.
|
|
78
|
-
.
|
|
77
|
+
.select__l_pjid4 .select__emptyPlaceholder_pjid4,
|
|
78
|
+
.select__xl_pjid4 .select__emptyPlaceholder_pjid4 {
|
|
79
79
|
padding: var(--gap-xl) var(--gap-m);
|
|
80
80
|
}
|
|
@@ -30,11 +30,11 @@ declare const SELECT_ALL_KEY = "select_all";
|
|
|
30
30
|
declare function useSelectWithApply({ options, selected, onChange, OptionsList, showClear, showSelectAll, }: useSelectWithApplyProps): {
|
|
31
31
|
OptionsList: import("react").ForwardRefExoticComponent<import("./index").OptionsListProps & {
|
|
32
32
|
showClear?: boolean | undefined;
|
|
33
|
-
onApply?: (() => void) | undefined;
|
|
34
|
-
onClear?: (() => void) | undefined;
|
|
35
33
|
onClose?: (() => void) | undefined;
|
|
36
34
|
selectedDraft?: OptionShape[] | undefined;
|
|
37
|
-
OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<unknown>> | undefined;
|
|
35
|
+
OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<unknown>> | undefined; /**
|
|
36
|
+
* Показывать кнопку очистки
|
|
37
|
+
*/
|
|
38
38
|
} & import("react").RefAttributes<unknown>>;
|
|
39
39
|
optionsListProps: {
|
|
40
40
|
OptionsList: import("react").FC<import("./index").OptionsListProps> | undefined;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-a9457d88.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
@@ -17,13 +17,17 @@ import 'resize-observer';
|
|
|
17
17
|
import '@alfalab/core-components-popover/dist/esm';
|
|
18
18
|
import 'downshift';
|
|
19
19
|
import './components/native-select/Component.js';
|
|
20
|
-
export { BaseSelect } from './
|
|
20
|
+
export { B as BaseSelect } from './Component-385efde8.js';
|
|
21
21
|
export { Select } from './Component.js';
|
|
22
|
+
import '@alfalab/core-components-bottom-sheet/dist/esm';
|
|
23
|
+
import '@alfalab/core-components-button/dist/esm';
|
|
24
|
+
import '@alfalab/core-components-base-modal/dist/esm';
|
|
25
|
+
import './components/select-mobile/options-list/Component.js';
|
|
26
|
+
import './components/select-mobile/checkmark/Component.js';
|
|
27
|
+
export { a as SELECT_ALL_KEY, S as SelectMobile, u as useSelectWithApply } from './Component-25510e34.js';
|
|
22
28
|
import 'react-virtual';
|
|
23
29
|
export { VirtualOptionsList } from './components/virtual-options-list/Component.js';
|
|
24
30
|
import '@alfalab/core-components-skeleton/dist/esm';
|
|
25
31
|
export { useSelectWithLoading } from './presets/useSelectWithLoading/hook.js';
|
|
26
|
-
import './intersection-observer-
|
|
32
|
+
import './intersection-observer-0bdc3704.js';
|
|
27
33
|
export { useLazyLoading } from './presets/useLazyLoading/hook.js';
|
|
28
|
-
import '@alfalab/core-components-button/dist/esm';
|
|
29
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from './hook-73d6fe0f.js';
|
package/dist/esm/{intersection-observer-812c9e4f.d.ts → intersection-observer-0bdc3704.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|