@alfalab/core-components-select 13.2.13 → 13.2.14
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-088caba2.d.ts → Component-56295912.d.ts} +2 -2
- package/{Component-088caba2.js → Component-56295912.js} +4 -4
- package/{Component-ca307b80.js → Component-5eb2f57b.js} +1 -1
- package/Component.js +1 -1
- package/Component.responsive.js +3 -3
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +13 -13
- package/components/base-select/Component.js +1 -1
- package/components/base-select/index.css +7 -7
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +1 -1
- package/components/base-select-mobile/Component.js +3 -3
- package/components/base-select-mobile/checkmark/Component.js +1 -1
- package/components/base-select-mobile/checkmark/index.css +6 -6
- package/components/base-select-mobile/index.css +11 -11
- package/components/base-select-mobile/index.d.ts +1 -1
- package/components/base-select-mobile/index.js +3 -3
- package/components/base-select-mobile/options-list/Component.js +1 -1
- package/components/base-select-mobile/options-list/index.css +9 -9
- package/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/components/base-select-mobile/virtual-options-list/index.css +15 -15
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/field/Component.js +1 -1
- package/components/field/index.css +9 -9
- package/components/index.js +3 -3
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +1 -1
- package/components/option/index.css +20 -20
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +6 -6
- package/components/select-mobile/Component.js +3 -3
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +3 -3
- package/components/select-modal-mobile/Component.js +3 -3
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +3 -3
- package/components/virtual-options-list/Component.js +1 -1
- package/components/virtual-options-list/index.css +12 -12
- package/cssm/Component-8f0723b4.d.ts +2 -2
- package/esm/{Component-82c9c6a4.js → Component-105eafca.js} +1 -1
- package/esm/{Component-23df669b.d.ts → Component-3d9b84ce.d.ts} +2 -2
- package/esm/{Component-23df669b.js → Component-3d9b84ce.js} +4 -4
- 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 +3 -3
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +13 -13
- package/esm/components/base-select/Component.js +1 -1
- package/esm/components/base-select/index.css +7 -7
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +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 +9 -9
- package/esm/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/esm/components/base-select-mobile/virtual-options-list/index.css +15 -15
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +9 -9
- package/esm/components/index.js +3 -3
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +1 -1
- package/esm/components/option/index.css +20 -20
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +6 -6
- 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 +12 -12
- package/esm/index.js +3 -3
- 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 +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +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/index.js +3 -3
- package/modern/{Component-629f202b.d.ts → Component-20680737.d.ts} +2 -2
- package/modern/{Component-629f202b.js → Component-20680737.js} +4 -4
- package/modern/{Component-c2743e76.js → Component-a6757057.js} +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 +3 -3
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +4 -4
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +13 -13
- package/modern/components/base-select/Component.js +1 -1
- package/modern/components/base-select/index.css +7 -7
- package/modern/components/base-select/index.d.ts +1 -1
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.js +3 -3
- package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
- package/modern/components/base-select-mobile/checkmark/index.css +6 -6
- package/modern/components/base-select-mobile/index.css +11 -11
- package/modern/components/base-select-mobile/index.d.ts +1 -1
- package/modern/components/base-select-mobile/index.js +3 -3
- package/modern/components/base-select-mobile/options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/options-list/index.css +9 -9
- package/modern/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/virtual-options-list/index.css +15 -15
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +3 -3
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +20 -20
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +6 -6
- package/modern/components/select-mobile/Component.js +3 -3
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +3 -3
- package/modern/components/select-modal-mobile/Component.js +3 -3
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +3 -3
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +12 -12
- package/modern/index.js +3 -3
- package/modern/presets/index.js +3 -3
- package/modern/presets/useLazyLoading/hook.js +2 -2
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +3 -3
- package/package.json +6 -6
- package/presets/index.js +3 -3
- package/presets/useLazyLoading/hook.js +2 -2
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +3 -3
- /package/{Component-ca307b80.d.ts → Component-5eb2f57b.d.ts} +0 -0
- /package/esm/{Component-82c9c6a4.d.ts → Component-105eafca.d.ts} +0 -0
- /package/esm/{intersection-observer-12c920c6.d.ts → intersection-observer-9c4df9c1.d.ts} +0 -0
- /package/esm/{intersection-observer-12c920c6.js → intersection-observer-9c4df9c1.js} +0 -0
- /package/{intersection-observer-31caed5c.d.ts → intersection-observer-562b226a.d.ts} +0 -0
- /package/{intersection-observer-31caed5c.js → intersection-observer-562b226a.js} +0 -0
- /package/modern/{Component-c2743e76.d.ts → Component-a6757057.d.ts} +0 -0
- /package/modern/{intersection-observer-12c920c6.d.ts → intersection-observer-9c4df9c1.d.ts} +0 -0
- /package/modern/{intersection-observer-12c920c6.js → intersection-observer-9c4df9c1.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
const styles = {"optgroup":"
|
|
4
|
+
const styles = {"optgroup":"select__optgroup_11m5j","label":"select__label_11m5j","l":"select__l_11m5j","xl":"select__xl_11m5j"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Optgroup = ({ children, className, label, size = 's' }) => (React.createElement(React.Fragment, null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: rnir9 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--select-optgroup-right-padding: var(--gap-s);
|
|
36
36
|
--select-optgroup-l-left-padding: var(--gap-m);
|
|
37
37
|
--select-optgroup-l-right-padding: var(--gap-m);
|
|
38
|
-
} .
|
|
38
|
+
} .select__optgroup_11m5j {
|
|
39
39
|
position: relative;
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
background: var(--select-optgroup-background);
|
|
46
46
|
min-height: 40px
|
|
47
|
-
} .
|
|
47
|
+
} .select__optgroup_11m5j + *[role='option']:before {
|
|
48
48
|
display: none;
|
|
49
|
-
} .
|
|
49
|
+
} .select__label_11m5j {
|
|
50
50
|
font-size: 12px;
|
|
51
51
|
line-height: 16px;
|
|
52
52
|
font-weight: 500;
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
|
|
56
56
|
display: block;
|
|
57
57
|
color: var(--select-optgroup-color);
|
|
58
|
-
} .
|
|
59
|
-
.
|
|
58
|
+
} .select__l_11m5j,
|
|
59
|
+
.select__xl_11m5j {
|
|
60
60
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
61
61
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
62
62
|
}
|
|
@@ -7,7 +7,7 @@ import '@alfalab/core-components-badge/modern';
|
|
|
7
7
|
import '@alfalab/core-components-checkbox/modern';
|
|
8
8
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
9
|
|
|
10
|
-
const styles = {"option":"
|
|
10
|
+
const styles = {"option":"select__option_sy4uu","disabled":"select__disabled_sy4uu","s":"select__s_sy4uu","m":"select__m_sy4uu","l":"select__l_sy4uu","xl":"select__xl_sy4uu","selected":"select__selected_sy4uu","highlighted":"select__highlighted_sy4uu","content":"select__content_sy4uu","textContent":"select__textContent_sy4uu"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const Option = ({ size = 's', className, option, children, selected, highlighted, disabled, multiple, mobile, Checkmark: Checkmark$2 = mobile ? Checkmark : Checkmark$1, innerProps, dataTestId, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: oe5s1 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/* checkmark */
|
|
54
54
|
|
|
55
55
|
/* optgroup */
|
|
56
|
-
} .
|
|
56
|
+
} .select__option_sy4uu {
|
|
57
57
|
font-size: 16px;
|
|
58
58
|
line-height: 20px;
|
|
59
59
|
font-weight: 400;
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
box-sizing: border-box;
|
|
69
69
|
position: relative;
|
|
70
70
|
cursor: pointer
|
|
71
|
-
} .
|
|
71
|
+
} .select__option_sy4uu:not(.select__disabled_sy4uu):active {
|
|
72
72
|
background: var(--select-option-active-background);
|
|
73
73
|
color: var(--select-option-active-color);
|
|
74
|
-
} .
|
|
74
|
+
} .select__option_sy4uu:before {
|
|
75
75
|
content: '';
|
|
76
76
|
position: absolute;
|
|
77
77
|
left: var(--select-option-left-padding);
|
|
@@ -81,46 +81,46 @@
|
|
|
81
81
|
background: var(--select-option-divider-background);
|
|
82
82
|
display: var(--select-option-divider-display);
|
|
83
83
|
transition: opacity 0.2s ease;
|
|
84
|
-
} .
|
|
84
|
+
} .select__option_sy4uu:first-child:before {
|
|
85
85
|
display: none;
|
|
86
|
-
} .
|
|
86
|
+
} .select__s_sy4uu {
|
|
87
87
|
min-height: var(--size-s-height);
|
|
88
|
-
} .
|
|
88
|
+
} .select__m_sy4uu {
|
|
89
89
|
min-height: var(--size-m-height);
|
|
90
|
-
} .
|
|
90
|
+
} .select__l_sy4uu {
|
|
91
91
|
min-height: var(--size-l-height);
|
|
92
|
-
} .
|
|
92
|
+
} .select__xl_sy4uu {
|
|
93
93
|
min-height: var(--size-xl-height);
|
|
94
|
-
} .
|
|
95
|
-
.
|
|
94
|
+
} .select__l_sy4uu,
|
|
95
|
+
.select__xl_sy4uu {
|
|
96
96
|
padding-left: var(--select-option-l-left-padding);
|
|
97
97
|
padding-right: var(--select-option-l-right-padding)
|
|
98
|
-
} .
|
|
98
|
+
} .select__l_sy4uu:before, .select__xl_sy4uu:before {
|
|
99
99
|
left: var(--select-option-l-left-padding);
|
|
100
100
|
right: var(--select-option-l-right-padding);
|
|
101
|
-
} .
|
|
101
|
+
} .select__selected_sy4uu {
|
|
102
102
|
background: var(--select-option-selected-background);
|
|
103
103
|
color: var(--select-option-selected-color);
|
|
104
104
|
cursor: default;
|
|
105
|
-
} .
|
|
105
|
+
} .select__highlighted_sy4uu {
|
|
106
106
|
background: var(--select-option-hover-background);
|
|
107
107
|
color: var(--select-option-hover-color)
|
|
108
|
-
} .
|
|
109
|
-
.
|
|
108
|
+
} .select__highlighted_sy4uu:before,
|
|
109
|
+
.select__highlighted_sy4uu + .select__option_sy4uu:before {
|
|
110
110
|
opacity: 0;
|
|
111
|
-
} .
|
|
111
|
+
} .select__disabled_sy4uu {
|
|
112
112
|
cursor: var(--disabled-cursor);
|
|
113
113
|
background: var(--select-option-disabled-background);
|
|
114
114
|
color: var(--select-option-disabled-color);
|
|
115
|
-
} .
|
|
115
|
+
} .select__content_sy4uu {
|
|
116
116
|
overflow: hidden;
|
|
117
117
|
flex: 1;
|
|
118
118
|
text-overflow: ellipsis;
|
|
119
|
-
} .
|
|
119
|
+
} .select__textContent_sy4uu {
|
|
120
120
|
padding-top: var(--gap-s);
|
|
121
121
|
padding-bottom: var(--gap-s);
|
|
122
122
|
} /* IE min-height fix */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
123
|
-
.
|
|
123
|
+
.select__option_sy4uu:after {
|
|
124
124
|
min-height: inherit;
|
|
125
125
|
font-size: 0;
|
|
126
126
|
content: '';
|
|
@@ -6,7 +6,7 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
6
6
|
import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
7
7
|
import { Optgroup } from '../optgroup/Component.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"optionsList":"
|
|
9
|
+
const styles = {"optionsList":"select__optionsList_1pemo","scrollable":"select__scrollable_1pemo","emptyPlaceholder":"select__emptyPlaceholder_1pemo","l":"select__l_1pemo","xl":"select__xl_1pemo"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const createCounter = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: j1m0p */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
/* checkmark */
|
|
29
29
|
|
|
30
30
|
/* optgroup */
|
|
31
|
-
} .
|
|
31
|
+
} .select__optionsList_1pemo {
|
|
32
32
|
overflow: auto;
|
|
33
33
|
width: 100%;
|
|
34
34
|
outline: none;
|
|
35
35
|
box-sizing: border-box;
|
|
36
|
-
} .
|
|
36
|
+
} .select__scrollable_1pemo {
|
|
37
37
|
overflow: auto;
|
|
38
38
|
width: 100%;
|
|
39
|
-
} .
|
|
39
|
+
} .select__emptyPlaceholder_1pemo {
|
|
40
40
|
padding: var(--gap-m) var(--gap-s);
|
|
41
41
|
color: var(--select-options-list-empty-placeholder-color);
|
|
42
|
-
} .
|
|
43
|
-
.
|
|
42
|
+
} .select__l_1pemo .select__emptyPlaceholder_1pemo,
|
|
43
|
+
.select__xl_1pemo .select__emptyPlaceholder_1pemo {
|
|
44
44
|
padding: var(--gap-xl) var(--gap-m);
|
|
45
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../arrow/Component.js';
|
|
3
|
-
export { S as SelectMobile } from '../../Component-
|
|
3
|
+
export { S as SelectMobile } from '../../Component-20680737.js';
|
|
4
4
|
import '../field/Component.js';
|
|
5
5
|
import '../optgroup/Component.js';
|
|
6
6
|
import '../option/Component.js';
|
|
@@ -11,7 +11,7 @@ import 'downshift';
|
|
|
11
11
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
12
12
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
13
13
|
import '../../Component.js';
|
|
14
|
-
import '../../Component-
|
|
14
|
+
import '../../Component-a6757057.js';
|
|
15
15
|
import '@juggle/resize-observer';
|
|
16
16
|
import '@alfalab/core-components-popover/modern';
|
|
17
17
|
import '@alfalab/hooks';
|
|
@@ -30,7 +30,7 @@ import 'react-virtual';
|
|
|
30
30
|
import '../base-option/Component.js';
|
|
31
31
|
import '../base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-skeleton/modern';
|
|
33
|
-
import '../../intersection-observer-
|
|
33
|
+
import '../../intersection-observer-9c4df9c1.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import '../base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-20680737";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SelectMobile } from '../../Component-
|
|
1
|
+
export { S as SelectMobile } from '../../Component-20680737.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../arrow/Component.js';
|
|
4
4
|
import 'classnames';
|
|
@@ -8,7 +8,7 @@ import 'downshift';
|
|
|
8
8
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
9
9
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
10
10
|
import '../../Component.js';
|
|
11
|
-
import '../../Component-
|
|
11
|
+
import '../../Component-a6757057.js';
|
|
12
12
|
import '@juggle/resize-observer';
|
|
13
13
|
import '@alfalab/core-components-popover/modern';
|
|
14
14
|
import '@alfalab/hooks';
|
|
@@ -30,7 +30,7 @@ import 'react-virtual';
|
|
|
30
30
|
import '../base-option/Component.js';
|
|
31
31
|
import '../base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-skeleton/modern';
|
|
33
|
-
import '../../intersection-observer-
|
|
33
|
+
import '../../intersection-observer-9c4df9c1.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import '../base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../arrow/Component.js';
|
|
3
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
3
|
+
export { a as SelectModalMobile } from '../../Component-20680737.js';
|
|
4
4
|
import '../field/Component.js';
|
|
5
5
|
import '../optgroup/Component.js';
|
|
6
6
|
import '../option/Component.js';
|
|
@@ -11,7 +11,7 @@ import 'downshift';
|
|
|
11
11
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
12
12
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
13
13
|
import '../../Component.js';
|
|
14
|
-
import '../../Component-
|
|
14
|
+
import '../../Component-a6757057.js';
|
|
15
15
|
import '@juggle/resize-observer';
|
|
16
16
|
import '@alfalab/core-components-popover/modern';
|
|
17
17
|
import '@alfalab/hooks';
|
|
@@ -30,7 +30,7 @@ import 'react-virtual';
|
|
|
30
30
|
import '../base-option/Component.js';
|
|
31
31
|
import '../base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-skeleton/modern';
|
|
33
|
-
import '../../intersection-observer-
|
|
33
|
+
import '../../intersection-observer-9c4df9c1.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import '../base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-20680737";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
1
|
+
export { a as SelectModalMobile } from '../../Component-20680737.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../arrow/Component.js';
|
|
4
4
|
import 'classnames';
|
|
@@ -8,7 +8,7 @@ import 'downshift';
|
|
|
8
8
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
9
9
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
10
10
|
import '../../Component.js';
|
|
11
|
-
import '../../Component-
|
|
11
|
+
import '../../Component-a6757057.js';
|
|
12
12
|
import '@juggle/resize-observer';
|
|
13
13
|
import '@alfalab/core-components-popover/modern';
|
|
14
14
|
import '@alfalab/hooks';
|
|
@@ -30,7 +30,7 @@ import 'react-virtual';
|
|
|
30
30
|
import '../base-option/Component.js';
|
|
31
31
|
import '../base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-skeleton/modern';
|
|
33
|
-
import '../../intersection-observer-
|
|
33
|
+
import '../../intersection-observer-9c4df9c1.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import '../base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -6,7 +6,7 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
6
6
|
import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../utils.js';
|
|
7
7
|
import { Optgroup } from '../optgroup/Component.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"virtualOptionsList":"
|
|
9
|
+
const styles = {"virtualOptionsList":"select__virtualOptionsList_fwirq","scrollable":"select__scrollable_fwirq","inner":"select__inner_fwirq","virtualRow":"select__virtualRow_fwirq","highlighted":"select__highlighted_fwirq","emptyPlaceholder":"select__emptyPlaceholder_fwirq","l":"select__l_fwirq","xl":"select__xl_fwirq"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1cs8z */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
/* checkmark */
|
|
35
35
|
|
|
36
36
|
/* optgroup */
|
|
37
|
-
} .
|
|
37
|
+
} .select__virtualOptionsList_fwirq {
|
|
38
38
|
width: 100%;
|
|
39
39
|
outline: none;
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
position: relative;
|
|
42
|
-
} .
|
|
42
|
+
} .select__scrollable_fwirq {
|
|
43
43
|
overflow: auto;
|
|
44
44
|
width: 100%;
|
|
45
|
-
} .
|
|
45
|
+
} .select__inner_fwirq {
|
|
46
46
|
position: relative;
|
|
47
47
|
width: 100%;
|
|
48
|
-
} .
|
|
48
|
+
} .select__virtualRow_fwirq {
|
|
49
49
|
position: absolute;
|
|
50
50
|
top: 0;
|
|
51
51
|
left: 0;
|
|
52
52
|
width: 100%
|
|
53
|
-
} .
|
|
53
|
+
} .select__virtualRow_fwirq:before {
|
|
54
54
|
content: '';
|
|
55
55
|
position: absolute;
|
|
56
56
|
z-index: 1;
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
height: 1px;
|
|
61
61
|
background: var(--select-option-divider-background);
|
|
62
62
|
display: var(--select-option-divider-display);
|
|
63
|
-
} .
|
|
63
|
+
} .select__virtualRow_fwirq:first-child:before {
|
|
64
64
|
display: none;
|
|
65
|
-
} .
|
|
66
|
-
.
|
|
65
|
+
} .select__highlighted_fwirq:before,
|
|
66
|
+
.select__highlighted_fwirq + .select__virtualRow_fwirq:before {
|
|
67
67
|
display: none;
|
|
68
|
-
} .
|
|
68
|
+
} .select__emptyPlaceholder_fwirq {
|
|
69
69
|
padding: var(--gap-m) var(--gap-s);
|
|
70
70
|
color: var(--select-options-list-empty-placeholder-color);
|
|
71
|
-
} .
|
|
72
|
-
.
|
|
71
|
+
} .select__l_fwirq .select__emptyPlaceholder_fwirq,
|
|
72
|
+
.select__xl_fwirq .select__emptyPlaceholder_fwirq {
|
|
73
73
|
padding: var(--gap-xl) var(--gap-m);
|
|
74
74
|
}
|
package/modern/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-a6757057.js';
|
|
4
|
+
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-20680737.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';
|
|
@@ -32,7 +32,7 @@ import '@alfalab/core-components-bottom-sheet/modern';
|
|
|
32
32
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
33
33
|
import 'react-virtual';
|
|
34
34
|
import '@alfalab/core-components-skeleton/modern';
|
|
35
|
-
import './intersection-observer-
|
|
35
|
+
import './intersection-observer-9c4df9c1.js';
|
|
36
36
|
import '@alfalab/core-components-button/modern';
|
|
37
37
|
import './components/base-checkmark/Component.js';
|
|
38
38
|
import './components/base-select-mobile/options-list/Component.js';
|
package/modern/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-20680737.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@alfalab/core-components-skeleton/modern';
|
|
6
6
|
import '../components/option/Component.js';
|
|
@@ -11,7 +11,7 @@ import '../components/checkmark/Component.js';
|
|
|
11
11
|
import '@alfalab/core-components-badge/modern';
|
|
12
12
|
import '@alfalab/core-components-checkbox/modern';
|
|
13
13
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
14
|
-
import '../intersection-observer-
|
|
14
|
+
import '../intersection-observer-9c4df9c1.js';
|
|
15
15
|
import '../components/arrow/Component.js';
|
|
16
16
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
17
17
|
import 'react-merge-refs';
|
|
@@ -19,7 +19,7 @@ import 'downshift';
|
|
|
19
19
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
20
20
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
21
21
|
import '../Component.js';
|
|
22
|
-
import '../Component-
|
|
22
|
+
import '../Component-a6757057.js';
|
|
23
23
|
import '@juggle/resize-observer';
|
|
24
24
|
import '@alfalab/core-components-popover/modern';
|
|
25
25
|
import '@alfalab/hooks';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
2
2
|
import { Skeleton } from '@alfalab/core-components-skeleton/modern';
|
|
3
3
|
import { Option } from '../../components/option/Component.js';
|
|
4
|
-
import '../../intersection-observer-
|
|
4
|
+
import '../../intersection-observer-9c4df9c1.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../../components/base-select-mobile/checkmark/Component.js';
|
|
7
7
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
@@ -10,7 +10,7 @@ import '@alfalab/core-components-badge/modern';
|
|
|
10
10
|
import '@alfalab/core-components-checkbox/modern';
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
12
12
|
|
|
13
|
-
const styles = {"skeleton":"
|
|
13
|
+
const styles = {"skeleton":"select__skeleton_9e2ee"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
const DEBOUNCE_TIMEOUT = 300;
|
|
@@ -2,8 +2,8 @@ import 'react';
|
|
|
2
2
|
import '../../Component.js';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
5
|
-
import '../../Component-
|
|
6
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-
|
|
5
|
+
import '../../Component-a6757057.js';
|
|
6
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-20680737.js';
|
|
7
7
|
import '@alfalab/core-components-form-control/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
9
|
import '../../utils.js';
|
|
@@ -15,7 +15,7 @@ import '../../components/options-list/Component.js';
|
|
|
15
15
|
import 'react-virtual';
|
|
16
16
|
import '@alfalab/core-components-scrollbar/modern';
|
|
17
17
|
import '@alfalab/core-components-skeleton/modern';
|
|
18
|
-
import '../../intersection-observer-
|
|
18
|
+
import '../../intersection-observer-9c4df9c1.js';
|
|
19
19
|
import '../../components/arrow/Component.js';
|
|
20
20
|
import '../../components/field/Component.js';
|
|
21
21
|
import '../../components/optgroup/Component.js';
|
|
@@ -2,8 +2,8 @@ import 'react';
|
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import '@alfalab/core-components-button/modern';
|
|
4
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
5
|
-
import '../../../Component-
|
|
6
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
5
|
+
import '../../../Component-a6757057.js';
|
|
6
|
+
export { O as OptionsListWithApply } from '../../../Component-20680737.js';
|
|
7
7
|
import '@alfalab/core-components-form-control/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
9
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
@@ -31,7 +31,7 @@ import '../../../components/checkmark/Component.js';
|
|
|
31
31
|
import '../../../components/base-option/Component.js';
|
|
32
32
|
import '../../../components/base-checkmark/Component.js';
|
|
33
33
|
import '@alfalab/core-components-skeleton/modern';
|
|
34
|
-
import '../../../intersection-observer-
|
|
34
|
+
import '../../../intersection-observer-9c4df9c1.js';
|
|
35
35
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
37
37
|
import '../../../components/base-select-mobile/virtual-options-list/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1q0rw */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
/* checkmark */
|
|
28
28
|
|
|
29
29
|
/* optgroup */
|
|
30
|
-
} .
|
|
30
|
+
} .select__footer_m2bj3 {
|
|
31
31
|
background: var(--color-light-bg-primary);
|
|
32
32
|
padding: var(--gap-s);
|
|
33
33
|
outline: none
|
|
34
|
-
} .
|
|
34
|
+
} .select__footer_m2bj3 > * + * {
|
|
35
35
|
margin-left: var(--gap-xs);
|
|
36
|
-
} .
|
|
36
|
+
} .select__withBorder_m2bj3 {
|
|
37
37
|
box-shadow: inset 0 1px 0 var(--color-light-border-secondary);
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../Component-
|
|
1
|
+
export * from "../../../Component-20680737";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
1
|
+
export { O as OptionsListWithApply } from '../../../Component-20680737.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../../components/arrow/Component.js';
|
|
4
4
|
import 'classnames';
|
|
@@ -8,7 +8,7 @@ import 'downshift';
|
|
|
8
8
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
9
9
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
10
10
|
import '../../../Component.js';
|
|
11
|
-
import '../../../Component-
|
|
11
|
+
import '../../../Component-a6757057.js';
|
|
12
12
|
import '@juggle/resize-observer';
|
|
13
13
|
import '@alfalab/core-components-popover/modern';
|
|
14
14
|
import '@alfalab/hooks';
|
|
@@ -30,7 +30,7 @@ import 'react-virtual';
|
|
|
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-9c4df9c1.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';
|
|
@@ -9,7 +9,7 @@ import '@alfalab/core-components-badge/modern';
|
|
|
9
9
|
import '@alfalab/core-components-checkbox/modern';
|
|
10
10
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
11
11
|
|
|
12
|
-
const styles = {"skeleton":"
|
|
12
|
+
const styles = {"skeleton":"select__skeleton_1kvqo"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
function useSelectWithLoading({ loading = false, visibleOptions = 6, Option: Option$1 = Option, }) {
|
package/modern/responsive.js
CHANGED
|
@@ -5,7 +5,7 @@ import './Component.js';
|
|
|
5
5
|
import './components/arrow/Component.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
8
|
-
import './Component-
|
|
8
|
+
import './Component-a6757057.js';
|
|
9
9
|
import 'react-merge-refs';
|
|
10
10
|
import '@juggle/resize-observer';
|
|
11
11
|
import 'downshift';
|
|
@@ -24,14 +24,14 @@ import '@alfalab/core-components-checkbox/modern';
|
|
|
24
24
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
25
25
|
import './components/options-list/Component.js';
|
|
26
26
|
import '@alfalab/core-components-scrollbar/modern';
|
|
27
|
-
import './Component-
|
|
27
|
+
import './Component-20680737.js';
|
|
28
28
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
29
29
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
30
30
|
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/modern';
|
|
34
|
-
import './intersection-observer-
|
|
34
|
+
import './intersection-observer-9c4df9c1.js';
|
|
35
35
|
import '@alfalab/core-components-button/modern';
|
|
36
36
|
import './components/base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/modern';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-select",
|
|
3
|
-
"version": "13.2.
|
|
3
|
+
"version": "13.2.14",
|
|
4
4
|
"description": "Select component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@alfalab/core-components-badge": "^5.0.1",
|
|
22
|
-
"@alfalab/core-components-base-modal": "^5.1.
|
|
23
|
-
"@alfalab/core-components-bottom-sheet": "^6.0.
|
|
24
|
-
"@alfalab/core-components-button": "^7.1.
|
|
22
|
+
"@alfalab/core-components-base-modal": "^5.1.1",
|
|
23
|
+
"@alfalab/core-components-bottom-sheet": "^6.0.1",
|
|
24
|
+
"@alfalab/core-components-button": "^7.1.1",
|
|
25
25
|
"@alfalab/core-components-checkbox": "^3.1.1",
|
|
26
26
|
"@alfalab/core-components-form-control": "^9.0.3",
|
|
27
|
-
"@alfalab/core-components-input": "^11.1.
|
|
28
|
-
"@alfalab/core-components-modal": "^7.0.
|
|
27
|
+
"@alfalab/core-components-input": "^11.1.8",
|
|
28
|
+
"@alfalab/core-components-modal": "^7.0.1",
|
|
29
29
|
"@alfalab/core-components-popover": "^6.0.7",
|
|
30
30
|
"@alfalab/core-components-scrollbar": "^2.1.3",
|
|
31
31
|
"@alfalab/core-components-skeleton": "^4.0.4",
|
package/presets/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
|
|
4
4
|
var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
|
|
5
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../Component-
|
|
5
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../Component-56295912.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-skeleton');
|
|
@@ -14,7 +14,7 @@ require('../components/checkmark/Component.js');
|
|
|
14
14
|
require('@alfalab/core-components-badge');
|
|
15
15
|
require('@alfalab/core-components-checkbox');
|
|
16
16
|
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
17
|
-
require('../intersection-observer-
|
|
17
|
+
require('../intersection-observer-562b226a.js');
|
|
18
18
|
require('../components/arrow/Component.js');
|
|
19
19
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
20
20
|
require('react-merge-refs');
|
|
@@ -22,7 +22,7 @@ require('downshift');
|
|
|
22
22
|
require('@alfalab/core-components-bottom-sheet');
|
|
23
23
|
require('@alfalab/core-components-modal/mobile');
|
|
24
24
|
require('../Component.js');
|
|
25
|
-
require('../Component-
|
|
25
|
+
require('../Component-5eb2f57b.js');
|
|
26
26
|
require('@juggle/resize-observer');
|
|
27
27
|
require('@alfalab/core-components-popover');
|
|
28
28
|
require('@alfalab/hooks');
|