@alfalab/core-components-select 19.1.6 → 19.1.7-alfasans
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/components/arrow/index.css +4 -4
- package/components/arrow/index.module.css.js +1 -1
- package/components/base-checkmark/index.css +12 -12
- package/components/base-checkmark/index.module.css.js +1 -1
- package/components/base-option/index.css +19 -17
- package/components/base-option/index.module.css.js +1 -1
- package/components/base-select/index.css +11 -11
- package/components/base-select/index.module.css.js +1 -1
- package/components/base-select/mobile.css +11 -11
- package/components/base-select/mobile.module.css.js +1 -1
- package/components/checkmark/index.css +11 -11
- package/components/checkmark/index.module.css.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/checkmark-mobile/index.module.css.js +1 -1
- package/components/clear-button/index.css +4 -4
- package/components/clear-button/index.module.css.js +1 -1
- package/components/field/index.css +22 -18
- package/components/field/index.module.css.js +1 -1
- package/components/footer/index.css +4 -4
- package/components/footer/index.module.css.js +1 -1
- package/components/optgroup/index.css +8 -7
- package/components/optgroup/index.module.css.js +1 -1
- package/components/option/desktop/index.css +24 -22
- package/components/option/desktop/index.module.css.js +1 -1
- package/components/option/mobile/index.css +21 -19
- package/components/option/mobile/index.module.css.js +1 -1
- package/components/options-list/index.css +13 -13
- package/components/options-list/index.module.css.js +1 -1
- package/components/search/index.css +1 -1
- package/components/search/index.module.css.js +1 -1
- package/components/virtual-options-list/index.css +13 -13
- package/components/virtual-options-list/index.module.css.js +1 -1
- package/cssm/components/base-option/index.module.css +5 -3
- package/cssm/components/field/index.module.css +9 -5
- package/cssm/components/optgroup/index.module.css +4 -3
- package/cssm/components/option/desktop/index.module.css +5 -3
- package/cssm/components/option/mobile/index.module.css +5 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js.map +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/header/Component.js.map +1 -1
- package/esm/components/arrow/index.css +4 -4
- package/esm/components/arrow/index.module.css.js +1 -1
- package/esm/components/base-checkmark/index.css +12 -12
- package/esm/components/base-checkmark/index.module.css.js +1 -1
- package/esm/components/base-option/index.css +19 -17
- package/esm/components/base-option/index.module.css.js +1 -1
- package/esm/components/base-select/index.css +11 -11
- package/esm/components/base-select/index.module.css.js +1 -1
- package/esm/components/base-select/mobile.css +11 -11
- package/esm/components/base-select/mobile.module.css.js +1 -1
- package/esm/components/checkmark/index.css +11 -11
- package/esm/components/checkmark/index.module.css.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/checkmark-mobile/index.module.css.js +1 -1
- package/esm/components/clear-button/index.css +4 -4
- package/esm/components/clear-button/index.module.css.js +1 -1
- package/esm/components/field/index.css +22 -18
- package/esm/components/field/index.module.css.js +1 -1
- package/esm/components/footer/index.css +4 -4
- package/esm/components/footer/index.module.css.js +1 -1
- package/esm/components/optgroup/index.css +8 -7
- package/esm/components/optgroup/index.module.css.js +1 -1
- package/esm/components/option/desktop/index.css +24 -22
- package/esm/components/option/desktop/index.module.css.js +1 -1
- package/esm/components/option/mobile/index.css +21 -19
- package/esm/components/option/mobile/index.module.css.js +1 -1
- package/esm/components/options-list/index.css +13 -13
- package/esm/components/options-list/index.module.css.js +1 -1
- package/esm/components/search/index.css +1 -1
- package/esm/components/search/index.module.css.js +1 -1
- package/esm/components/virtual-options-list/index.css +13 -13
- package/esm/components/virtual-options-list/index.module.css.js +1 -1
- package/esm/mobile/modal.mobile.css +1 -1
- package/esm/mobile/modal.mobile.module.css.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js.map +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js.map +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +1 -1
- package/esm/presets/useSelectWithLoading/index.module.css.js +1 -1
- package/mobile/modal.mobile.css +1 -1
- package/mobile/modal.mobile.module.css.js +1 -1
- package/modern/components/arrow/index.css +4 -4
- package/modern/components/arrow/index.module.css.js +1 -1
- package/modern/components/base-checkmark/index.css +12 -12
- package/modern/components/base-checkmark/index.module.css.js +1 -1
- package/modern/components/base-option/index.css +19 -17
- package/modern/components/base-option/index.module.css.js +1 -1
- package/modern/components/base-select/index.css +11 -11
- package/modern/components/base-select/index.module.css.js +1 -1
- package/modern/components/base-select/mobile.css +11 -11
- package/modern/components/base-select/mobile.module.css.js +1 -1
- package/modern/components/checkmark/index.css +11 -11
- package/modern/components/checkmark/index.module.css.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/checkmark-mobile/index.module.css.js +1 -1
- package/modern/components/clear-button/index.css +4 -4
- package/modern/components/clear-button/index.module.css.js +1 -1
- package/modern/components/field/index.css +22 -18
- package/modern/components/field/index.module.css.js +1 -1
- package/modern/components/footer/index.css +4 -4
- package/modern/components/footer/index.module.css.js +1 -1
- package/modern/components/optgroup/index.css +8 -7
- package/modern/components/optgroup/index.module.css.js +1 -1
- package/modern/components/option/desktop/index.css +24 -22
- package/modern/components/option/desktop/index.module.css.js +1 -1
- package/modern/components/option/mobile/index.css +21 -19
- package/modern/components/option/mobile/index.module.css.js +1 -1
- package/modern/components/options-list/index.css +13 -13
- package/modern/components/options-list/index.module.css.js +1 -1
- package/modern/components/search/index.css +1 -1
- package/modern/components/search/index.module.css.js +1 -1
- package/modern/components/virtual-options-list/index.css +13 -13
- package/modern/components/virtual-options-list/index.module.css.js +1 -1
- package/modern/mobile/modal.mobile.css +1 -1
- package/modern/mobile/modal.mobile.module.css.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js.map +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js.map +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +1 -1
- package/modern/presets/useSelectWithLoading/index.module.css.js +1 -1
- package/moderncssm/components/base-option/index.module.css +2 -1
- package/moderncssm/components/field/index.module.css +6 -3
- package/moderncssm/components/optgroup/index.module.css +1 -1
- package/moderncssm/components/option/desktop/index.module.css +2 -1
- package/moderncssm/components/option/mobile/index.module.css +2 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js.map +1 -1
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/Component.js.map +1 -1
- package/package.json +15 -15
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
- package/presets/useSelectWithLoading/index.css +1 -1
- package/presets/useSelectWithLoading/index.module.css.js +1 -1
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
--gap-16: var(--gap-m);
|
|
12
12
|
}
|
|
13
13
|
:root {
|
|
14
|
-
--font-family-
|
|
15
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
14
|
+
--font-family-alfasans:
|
|
15
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
16
|
+
Helvetica, sans-serif;
|
|
16
17
|
}
|
|
17
18
|
:root {
|
|
18
19
|
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
--select-optgroup-l-left-padding: var(--gap-16);
|
|
24
25
|
--select-optgroup-l-right-padding: var(--gap-16);
|
|
25
26
|
}
|
|
26
|
-
.
|
|
27
|
+
.select__optgroup_zyfdu {
|
|
27
28
|
position: relative;
|
|
28
29
|
display: flex;
|
|
29
30
|
align-items: center;
|
|
@@ -33,21 +34,21 @@
|
|
|
33
34
|
background: var(--select-optgroup-background);
|
|
34
35
|
min-height: 40px;
|
|
35
36
|
}
|
|
36
|
-
.
|
|
37
|
+
.select__optgroup_zyfdu + *[role='option']:before {
|
|
37
38
|
display: none;
|
|
38
39
|
}
|
|
39
|
-
.
|
|
40
|
+
.select__label_zyfdu {
|
|
40
41
|
font-size: 12px;
|
|
41
42
|
line-height: 16px;
|
|
42
43
|
font-weight: 400;
|
|
43
44
|
letter-spacing: 1.25px;
|
|
44
45
|
text-transform: uppercase;
|
|
45
|
-
font-family: var(--font-family-
|
|
46
|
+
font-family: var(--font-family-alfasans);
|
|
46
47
|
|
|
47
48
|
display: block;
|
|
48
49
|
color: var(--select-optgroup-color);
|
|
49
50
|
}
|
|
50
|
-
.select__size-
|
|
51
|
+
.select__size-72_zyfdu {
|
|
51
52
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
52
53
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
53
54
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"optgroup":"
|
|
5
|
+
var styles = {"optgroup":"select__optgroup_zyfdu","label":"select__label_zyfdu","size-72":"select__size-72_zyfdu"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
--gap-16: var(--gap-m);
|
|
15
15
|
}
|
|
16
16
|
:root {
|
|
17
|
-
--font-family-
|
|
18
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
17
|
+
--font-family-alfasans:
|
|
18
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
19
|
+
Helvetica, sans-serif;
|
|
19
20
|
}
|
|
20
21
|
:root {
|
|
21
22
|
--disabled-cursor: not-allowed;
|
|
@@ -43,11 +44,12 @@
|
|
|
43
44
|
--select-option-active-color: var(--color-light-text-primary);
|
|
44
45
|
--select-option-disabled-color: var(--color-light-text-secondary);
|
|
45
46
|
}
|
|
46
|
-
.
|
|
47
|
+
.select__option_sbpt0 {
|
|
47
48
|
font-size: 16px;
|
|
48
49
|
line-height: 20px;
|
|
49
50
|
font-weight: 400;
|
|
50
|
-
|
|
51
|
+
letter-spacing: -0.24px;
|
|
52
|
+
font-family: var(--font-family-alfasans);
|
|
51
53
|
|
|
52
54
|
display: flex;
|
|
53
55
|
align-items: center;
|
|
@@ -60,11 +62,11 @@
|
|
|
60
62
|
position: relative;
|
|
61
63
|
cursor: pointer;
|
|
62
64
|
}
|
|
63
|
-
.
|
|
65
|
+
.select__option_sbpt0:not(.select__disabled_sbpt0):active {
|
|
64
66
|
background: var(--select-option-active-background);
|
|
65
67
|
color: var(--select-option-active-color);
|
|
66
68
|
}
|
|
67
|
-
.
|
|
69
|
+
.select__option_sbpt0:before {
|
|
68
70
|
content: '';
|
|
69
71
|
position: absolute;
|
|
70
72
|
left: var(--select-option-left-padding);
|
|
@@ -75,59 +77,59 @@
|
|
|
75
77
|
display: var(--select-option-divider-display);
|
|
76
78
|
transition: opacity 0.2s ease;
|
|
77
79
|
}
|
|
78
|
-
.
|
|
80
|
+
.select__option_sbpt0:first-child:before {
|
|
79
81
|
display: none;
|
|
80
82
|
}
|
|
81
|
-
.select__size-
|
|
83
|
+
.select__size-48_sbpt0 {
|
|
82
84
|
min-height: var(--size-s-height);
|
|
83
85
|
}
|
|
84
|
-
.select__size-
|
|
86
|
+
.select__size-56_sbpt0 {
|
|
85
87
|
min-height: var(--size-m-height);
|
|
86
88
|
}
|
|
87
|
-
.select__size-
|
|
89
|
+
.select__size-64_sbpt0 {
|
|
88
90
|
min-height: var(--size-l-height);
|
|
89
91
|
}
|
|
90
|
-
.select__size-
|
|
92
|
+
.select__size-72_sbpt0 {
|
|
91
93
|
min-height: var(--size-xl-height);
|
|
92
94
|
padding-left: var(--select-option-l-left-padding);
|
|
93
95
|
padding-right: var(--select-option-l-right-padding);
|
|
94
96
|
}
|
|
95
|
-
.select__size-
|
|
97
|
+
.select__size-72_sbpt0:before {
|
|
96
98
|
left: var(--select-option-l-left-padding);
|
|
97
99
|
right: var(--select-option-l-right-padding);
|
|
98
100
|
}
|
|
99
|
-
.
|
|
101
|
+
.select__selected_sbpt0 {
|
|
100
102
|
background: var(--select-option-selected-background);
|
|
101
103
|
color: var(--select-option-selected-color);
|
|
102
104
|
cursor: default;
|
|
103
105
|
}
|
|
104
|
-
.
|
|
106
|
+
.select__highlighted_sbpt0 {
|
|
105
107
|
background: var(--select-option-hover-background);
|
|
106
108
|
color: var(--select-option-hover-color);
|
|
107
109
|
}
|
|
108
|
-
.
|
|
109
|
-
.
|
|
110
|
+
.select__highlighted_sbpt0:before,
|
|
111
|
+
.select__highlighted_sbpt0 + .select__option_sbpt0:before {
|
|
110
112
|
opacity: 0;
|
|
111
113
|
}
|
|
112
|
-
.
|
|
114
|
+
.select__disabled_sbpt0 {
|
|
113
115
|
cursor: var(--disabled-cursor);
|
|
114
116
|
background: var(--select-option-disabled-background);
|
|
115
117
|
color: var(--select-option-disabled-color);
|
|
116
118
|
}
|
|
117
|
-
.
|
|
119
|
+
.select__content_sbpt0 {
|
|
118
120
|
overflow: hidden;
|
|
119
121
|
flex: 1;
|
|
120
122
|
text-overflow: ellipsis;
|
|
121
123
|
}
|
|
122
|
-
.
|
|
124
|
+
.select__textContent_sbpt0 {
|
|
123
125
|
padding-top: var(--gap-12);
|
|
124
126
|
padding-bottom: var(--gap-12);
|
|
125
127
|
}
|
|
126
|
-
.
|
|
128
|
+
.select__highlighted_sbpt0 {
|
|
127
129
|
background: var(--select-option-hover-background);
|
|
128
130
|
color: var(--select-option-hover-color);
|
|
129
131
|
}
|
|
130
|
-
.
|
|
131
|
-
.
|
|
132
|
+
.select__highlighted_sbpt0:before,
|
|
133
|
+
.select__highlighted_sbpt0 + .select__option_sbpt0:before {
|
|
132
134
|
opacity: 0;
|
|
133
135
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"option":"
|
|
5
|
+
var styles = {"option":"select__option_sbpt0","disabled":"select__disabled_sbpt0","size-48":"select__size-48_sbpt0","size-56":"select__size-56_sbpt0","size-64":"select__size-64_sbpt0","size-72":"select__size-72_sbpt0","selected":"select__selected_sbpt0","highlighted":"select__highlighted_sbpt0","content":"select__content_sbpt0","textContent":"select__textContent_sbpt0"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
--gap-16: var(--gap-m);
|
|
15
15
|
}
|
|
16
16
|
:root {
|
|
17
|
-
--font-family-
|
|
18
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
17
|
+
--font-family-alfasans:
|
|
18
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
19
|
+
Helvetica, sans-serif;
|
|
19
20
|
}
|
|
20
21
|
:root {
|
|
21
22
|
--disabled-cursor: not-allowed;
|
|
@@ -43,11 +44,12 @@
|
|
|
43
44
|
--select-option-active-color: var(--color-light-text-primary);
|
|
44
45
|
--select-option-disabled-color: var(--color-light-text-secondary);
|
|
45
46
|
}
|
|
46
|
-
.
|
|
47
|
+
.select__option_1o11n {
|
|
47
48
|
font-size: 16px;
|
|
48
49
|
line-height: 20px;
|
|
49
50
|
font-weight: 400;
|
|
50
|
-
|
|
51
|
+
letter-spacing: -0.24px;
|
|
52
|
+
font-family: var(--font-family-alfasans);
|
|
51
53
|
|
|
52
54
|
display: flex;
|
|
53
55
|
align-items: center;
|
|
@@ -60,11 +62,11 @@
|
|
|
60
62
|
position: relative;
|
|
61
63
|
cursor: pointer;
|
|
62
64
|
}
|
|
63
|
-
.
|
|
65
|
+
.select__option_1o11n:not(.select__disabled_1o11n):active {
|
|
64
66
|
background: var(--select-option-active-background);
|
|
65
67
|
color: var(--select-option-active-color);
|
|
66
68
|
}
|
|
67
|
-
.
|
|
69
|
+
.select__option_1o11n:before {
|
|
68
70
|
content: '';
|
|
69
71
|
position: absolute;
|
|
70
72
|
left: var(--select-option-left-padding);
|
|
@@ -75,51 +77,51 @@
|
|
|
75
77
|
display: var(--select-option-divider-display);
|
|
76
78
|
transition: opacity 0.2s ease;
|
|
77
79
|
}
|
|
78
|
-
.
|
|
80
|
+
.select__option_1o11n:first-child:before {
|
|
79
81
|
display: none;
|
|
80
82
|
}
|
|
81
|
-
.select__size-
|
|
83
|
+
.select__size-48_1o11n {
|
|
82
84
|
min-height: var(--size-s-height);
|
|
83
85
|
}
|
|
84
|
-
.select__size-
|
|
86
|
+
.select__size-56_1o11n {
|
|
85
87
|
min-height: var(--size-m-height);
|
|
86
88
|
}
|
|
87
|
-
.select__size-
|
|
89
|
+
.select__size-64_1o11n {
|
|
88
90
|
min-height: var(--size-l-height);
|
|
89
91
|
}
|
|
90
|
-
.select__size-
|
|
92
|
+
.select__size-72_1o11n {
|
|
91
93
|
min-height: var(--size-xl-height);
|
|
92
94
|
padding-left: var(--select-option-l-left-padding);
|
|
93
95
|
padding-right: var(--select-option-l-right-padding);
|
|
94
96
|
}
|
|
95
|
-
.select__size-
|
|
97
|
+
.select__size-72_1o11n:before {
|
|
96
98
|
left: var(--select-option-l-left-padding);
|
|
97
99
|
right: var(--select-option-l-right-padding);
|
|
98
100
|
}
|
|
99
|
-
.
|
|
101
|
+
.select__selected_1o11n {
|
|
100
102
|
background: var(--select-option-selected-background);
|
|
101
103
|
color: var(--select-option-selected-color);
|
|
102
104
|
cursor: default;
|
|
103
105
|
}
|
|
104
|
-
.
|
|
106
|
+
.select__highlighted_1o11n {
|
|
105
107
|
background: var(--select-option-hover-background);
|
|
106
108
|
color: var(--select-option-hover-color);
|
|
107
109
|
}
|
|
108
|
-
.
|
|
109
|
-
.
|
|
110
|
+
.select__highlighted_1o11n:before,
|
|
111
|
+
.select__highlighted_1o11n + .select__option_1o11n:before {
|
|
110
112
|
opacity: 0;
|
|
111
113
|
}
|
|
112
|
-
.
|
|
114
|
+
.select__disabled_1o11n {
|
|
113
115
|
cursor: var(--disabled-cursor);
|
|
114
116
|
background: var(--select-option-disabled-background);
|
|
115
117
|
color: var(--select-option-disabled-color);
|
|
116
118
|
}
|
|
117
|
-
.
|
|
119
|
+
.select__content_1o11n {
|
|
118
120
|
overflow: hidden;
|
|
119
121
|
flex: 1;
|
|
120
122
|
text-overflow: ellipsis;
|
|
121
123
|
}
|
|
122
|
-
.
|
|
124
|
+
.select__textContent_1o11n {
|
|
123
125
|
padding-top: var(--gap-12);
|
|
124
126
|
padding-bottom: var(--gap-12);
|
|
125
127
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"option":"
|
|
5
|
+
var styles = {"option":"select__option_1o11n","disabled":"select__disabled_1o11n","size-48":"select__size-48_1o11n","size-56":"select__size-56_1o11n","size-64":"select__size-64_1o11n","size-72":"select__size-72_1o11n","selected":"select__selected_1o11n","highlighted":"select__highlighted_1o11n","content":"select__content_1o11n","textContent":"select__textContent_1o11n"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -15,57 +15,57 @@
|
|
|
15
15
|
--select-options-list-scrollbar-gap: var(--gap-12);
|
|
16
16
|
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.select__optionsList_16rvb {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
position: relative;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.select__optionsList_16rvb .select__scrollable_16rvb {
|
|
25
25
|
overflow: auto;
|
|
26
26
|
width: 100%;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.select__optionsList_16rvb .select__scrollable_16rvb .select__verticalBar_16rvb.select__verticalBar_16rvb {
|
|
29
29
|
top: var(--select-options-list-scrollbar-gap);
|
|
30
30
|
height: calc(100% - 2 * var(--select-options-list-scrollbar-gap));
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.select__optionsList_16rvb .select__scrollable_16rvb .select__verticalBar_16rvb.select__verticalBar_16rvb.select__verticalBarWithHeader_16rvb {
|
|
33
33
|
top: 0;
|
|
34
34
|
height: calc(100% - var(--select-options-list-scrollbar-gap));
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.select__optionsList_16rvb .select__scrollable_16rvb .select__verticalBar_16rvb.select__verticalBar_16rvb.select__verticalBarWithFooter_16rvb {
|
|
37
37
|
top: var(--select-options-list-scrollbar-gap);
|
|
38
38
|
height: calc(100% - var(--select-options-list-scrollbar-gap));
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.select__optionsList_16rvb .select__scrollable_16rvb .select__verticalBar_16rvb.select__verticalBar_16rvb.select__verticalBarWithHeader_16rvb.select__verticalBarWithFooter_16rvb {
|
|
41
41
|
top: 0;
|
|
42
42
|
height: 100%;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.select__optionsListHeader_16rvb {
|
|
45
45
|
box-sizing: border-box;
|
|
46
46
|
border-bottom: 1px solid transparent;
|
|
47
47
|
transition: border-color 0.2s ease;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.select__optionsListHeader_16rvb.select__headerHighlighted_16rvb {
|
|
50
50
|
border-bottom-color: var(--color-light-neutral-300);
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.select__optionsListFooter_16rvb {
|
|
53
53
|
position: sticky;
|
|
54
54
|
bottom: var(--gap-0);
|
|
55
55
|
box-sizing: border-box;
|
|
56
56
|
border-top: 1px solid transparent;
|
|
57
57
|
transition: border-color 0.2s ease;
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.select__optionsListFooter_16rvb.select__withBorder_16rvb {
|
|
60
60
|
border-top-color: var(--color-light-neutral-300);
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.select__mask_16rvb {
|
|
63
63
|
min-width: 4000px;
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.select__emptyPlaceholder_16rvb {
|
|
66
66
|
padding: var(--gap-16) var(--gap-12);
|
|
67
67
|
color: var(--select-options-list-empty-placeholder-color);
|
|
68
68
|
}
|
|
69
|
-
.select__size-
|
|
69
|
+
.select__size-72_16rvb .select__emptyPlaceholder_16rvb {
|
|
70
70
|
padding: var(--gap-24) var(--gap-16);
|
|
71
71
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"optionsList":"
|
|
5
|
+
var styles = {"optionsList":"select__optionsList_16rvb","scrollable":"select__scrollable_16rvb","verticalBar":"select__verticalBar_16rvb","verticalBarWithHeader":"select__verticalBarWithHeader_16rvb","verticalBarWithFooter":"select__verticalBarWithFooter_16rvb","optionsListHeader":"select__optionsListHeader_16rvb","headerHighlighted":"select__headerHighlighted_16rvb","optionsListFooter":"select__optionsListFooter_16rvb","withBorder":"select__withBorder_16rvb","mask":"select__mask_16rvb","emptyPlaceholder":"select__emptyPlaceholder_16rvb","size-72":"select__size-72_16rvb"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -20,42 +20,42 @@
|
|
|
20
20
|
--select-option-left-padding: var(--gap-12);
|
|
21
21
|
--select-option-right-padding: var(--gap-12);
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.select__virtualOptionsList_149c3 {
|
|
24
24
|
width: 100%;
|
|
25
25
|
outline: none;
|
|
26
26
|
box-sizing: border-box;
|
|
27
27
|
position: sticky;
|
|
28
28
|
justify-content: space-between;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.select__virtualOptionsListHeader_149c3 {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
border-bottom: 1px solid var(--color-light-neutral-300);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.select__virtualOptionsListFooter_149c3 {
|
|
35
35
|
position: sticky;
|
|
36
36
|
bottom: var(--gap-0);
|
|
37
37
|
box-sizing: border-box;
|
|
38
38
|
border-top: 1px solid transparent;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.select__virtualOptionsListFooter_149c3.select__withBorder_149c3 {
|
|
41
41
|
border-top: 1px solid var(--color-light-neutral-300);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.select__scrollable_149c3 {
|
|
44
44
|
position: relative;
|
|
45
45
|
overflow: auto;
|
|
46
46
|
width: 100%;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.select__inner_149c3 {
|
|
49
49
|
position: relative;
|
|
50
50
|
width: 100%;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.select__virtualRow_149c3 {
|
|
53
53
|
position: absolute;
|
|
54
54
|
top: var(--gap-0);
|
|
55
55
|
left: var(--gap-0);
|
|
56
56
|
width: 100%;
|
|
57
57
|
}
|
|
58
|
-
.
|
|
58
|
+
.select__virtualRow_149c3:before {
|
|
59
59
|
content: '';
|
|
60
60
|
position: absolute;
|
|
61
61
|
z-index: 1;
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
background: var(--select-option-divider-background);
|
|
67
67
|
display: var(--select-option-divider-display);
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.select__virtualRow_149c3:first-child:before {
|
|
70
70
|
display: none;
|
|
71
71
|
}
|
|
72
|
-
.
|
|
73
|
-
.
|
|
72
|
+
.select__highlighted_149c3:before,
|
|
73
|
+
.select__highlighted_149c3 + .select__virtualRow_149c3:before {
|
|
74
74
|
display: none;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.select__emptyPlaceholder_149c3 {
|
|
77
77
|
padding: var(--gap-16) var(--gap-12);
|
|
78
78
|
color: var(--select-options-list-empty-placeholder-color);
|
|
79
79
|
flex: 1;
|
|
80
80
|
}
|
|
81
|
-
.select__size-
|
|
81
|
+
.select__size-72_149c3 .select__emptyPlaceholder_149c3 {
|
|
82
82
|
padding: var(--gap-24) var(--gap-16);
|
|
83
83
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"virtualOptionsList":"
|
|
5
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_149c3","virtualOptionsListHeader":"select__virtualOptionsListHeader_149c3","virtualOptionsListFooter":"select__virtualOptionsListFooter_149c3","withBorder":"select__withBorder_149c3","scrollable":"select__scrollable_149c3","inner":"select__inner_149c3","virtualRow":"select__virtualRow_149c3","highlighted":"select__highlighted_149c3","emptyPlaceholder":"select__emptyPlaceholder_149c3","size-72":"select__size-72_149c3"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
--gap-20: var(--gap-l);
|
|
16
16
|
}
|
|
17
17
|
:root {
|
|
18
|
-
--font-family-
|
|
19
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
18
|
+
--font-family-alfasans:
|
|
19
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
20
|
+
Helvetica, sans-serif;
|
|
20
21
|
}
|
|
21
22
|
:root {
|
|
22
23
|
--disabled-cursor: not-allowed;
|
|
@@ -38,7 +39,8 @@
|
|
|
38
39
|
font-size: 16px;
|
|
39
40
|
line-height: 20px;
|
|
40
41
|
font-weight: 400;
|
|
41
|
-
|
|
42
|
+
letter-spacing: -0.24px;
|
|
43
|
+
font-family: var(--font-family-alfasans);
|
|
42
44
|
|
|
43
45
|
display: flex;
|
|
44
46
|
align-items: center;
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
--color-light-text-tertiary: rgba(5, 8, 29, 0.38);
|
|
5
5
|
}
|
|
6
6
|
:root {
|
|
7
|
-
--font-family-
|
|
8
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
7
|
+
--font-family-alfasans:
|
|
8
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
9
|
+
Helvetica, sans-serif;
|
|
9
10
|
}
|
|
10
11
|
:root {
|
|
11
12
|
--focus-color: var(--color-light-status-info);
|
|
@@ -43,7 +44,8 @@
|
|
|
43
44
|
font-size: 16px;
|
|
44
45
|
line-height: 20px;
|
|
45
46
|
font-weight: 400;
|
|
46
|
-
|
|
47
|
+
letter-spacing: -0.24px;
|
|
48
|
+
font-family: var(--font-family-alfasans);
|
|
47
49
|
|
|
48
50
|
white-space: nowrap;
|
|
49
51
|
text-overflow: ellipsis;
|
|
@@ -54,7 +56,8 @@
|
|
|
54
56
|
font-size: 14px;
|
|
55
57
|
line-height: 18px;
|
|
56
58
|
font-weight: 400;
|
|
57
|
-
|
|
59
|
+
letter-spacing: -0.08px;
|
|
60
|
+
font-family: var(--font-family-alfasans);
|
|
58
61
|
}
|
|
59
62
|
.value {
|
|
60
63
|
overflow: hidden;
|
|
@@ -65,7 +68,8 @@
|
|
|
65
68
|
font-size: 14px;
|
|
66
69
|
line-height: 18px;
|
|
67
70
|
font-weight: 400;
|
|
68
|
-
|
|
71
|
+
letter-spacing: -0.08px;
|
|
72
|
+
font-family: var(--font-family-alfasans);
|
|
69
73
|
}
|
|
70
74
|
.focusVisible {
|
|
71
75
|
outline: 2px solid var(--focus-color);
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
--gap-16: var(--gap-m);
|
|
12
12
|
}
|
|
13
13
|
:root {
|
|
14
|
-
--font-family-
|
|
15
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
14
|
+
--font-family-alfasans:
|
|
15
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
16
|
+
Helvetica, sans-serif;
|
|
16
17
|
}
|
|
17
18
|
:root {
|
|
18
19
|
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
font-weight: 400;
|
|
43
44
|
letter-spacing: 1.25px;
|
|
44
45
|
text-transform: uppercase;
|
|
45
|
-
font-family: var(--font-family-
|
|
46
|
+
font-family: var(--font-family-alfasans);
|
|
46
47
|
|
|
47
48
|
display: block;
|
|
48
49
|
color: var(--select-optgroup-color);
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
--gap-16: var(--gap-m);
|
|
15
15
|
}
|
|
16
16
|
:root {
|
|
17
|
-
--font-family-
|
|
18
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
17
|
+
--font-family-alfasans:
|
|
18
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
19
|
+
Helvetica, sans-serif;
|
|
19
20
|
}
|
|
20
21
|
:root {
|
|
21
22
|
--disabled-cursor: not-allowed;
|
|
@@ -47,7 +48,8 @@
|
|
|
47
48
|
font-size: 16px;
|
|
48
49
|
line-height: 20px;
|
|
49
50
|
font-weight: 400;
|
|
50
|
-
|
|
51
|
+
letter-spacing: -0.24px;
|
|
52
|
+
font-family: var(--font-family-alfasans);
|
|
51
53
|
|
|
52
54
|
display: flex;
|
|
53
55
|
align-items: center;
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
--gap-16: var(--gap-m);
|
|
15
15
|
}
|
|
16
16
|
:root {
|
|
17
|
-
--font-family-
|
|
18
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
17
|
+
--font-family-alfasans:
|
|
18
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
19
|
+
Helvetica, sans-serif;
|
|
19
20
|
}
|
|
20
21
|
:root {
|
|
21
22
|
--disabled-cursor: not-allowed;
|
|
@@ -47,7 +48,8 @@
|
|
|
47
48
|
font-size: 16px;
|
|
48
49
|
line-height: 20px;
|
|
49
50
|
font-weight: 400;
|
|
50
|
-
|
|
51
|
+
letter-spacing: -0.24px;
|
|
52
|
+
font-family: var(--font-family-alfasans);
|
|
51
53
|
|
|
52
54
|
display: flex;
|
|
53
55
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.js","sources":["
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../../../src/presets/useSelectWithApply/options-list-with-apply/footer/Component.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { ButtonDesktop } from '@alfalab/core-components-button/desktop';\nimport { getDataTestId } from '@alfalab/core-components-shared';\n\nimport { type OptionShape, type OptionsListProps } from '../../../../typings';\n\nimport styles from './index.module.css';\n\nexport type FooterProps = {\n handleClear?: () => void;\n handleApply?: () => void;\n showClear?: boolean;\n selectedDraft?: OptionShape[];\n dataTestId?: string;\n size?: OptionsListProps['size'];\n};\n\nexport const Footer = ({\n handleApply,\n handleClear,\n showClear,\n selectedDraft = [],\n dataTestId,\n size,\n}: FooterProps) => (\n <div\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n className={cn(styles.footer, size && styles[`size-${size}`])}\n >\n <ButtonDesktop\n size={32}\n view='primary'\n onClick={handleApply}\n dataTestId={getDataTestId(dataTestId, 'apply')}\n className={styles.button}\n >\n Применить\n </ButtonDesktop>\n\n {showClear && selectedDraft.length > 0 && (\n <ButtonDesktop\n size={32}\n view='secondary'\n onClick={handleClear}\n dataTestId={getDataTestId(dataTestId, 'clear')}\n className={styles.button}\n >\n Сбросить\n </ButtonDesktop>\n )}\n </div>\n);\n"],"names":["React","cn","styles","ButtonDesktop","getDataTestId"],"mappings":";;;;;;;;;;;;;;;;AAmBO,IAAM,MAAM,GAAG,UAAC,EAOT,EAAA;AANV,IAAA,IAAA,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,EAAA,GAAA,EAAA,CAAA,aAAkB,EAAlB,aAAa,GAAA,EAAA,KAAA,MAAA,GAAG,EAAE,GAAA,EAAA,EAClB,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,IAAI,GAAA,EAAA,CAAA,IAAA;AACW,IAAA,QACfA,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA;;AAEI,QAAA,QAAQ,EAAE,CAAC,EACX,SAAS,EAAEC,mBAAE,CAACC,uBAAM,CAAC,MAAM,EAAE,IAAI,IAAIA,uBAAM,CAAC,eAAQ,IAAI,CAAE,CAAC,CAAC,EAAA;AAE5D,QAAAF,sBAAA,CAAA,aAAA,CAACG,qBAAa,EAAA,EACV,IAAI,EAAE,EAAE,EACR,IAAI,EAAC,SAAS,EACd,OAAO,EAAE,WAAW,EACpB,UAAU,EAAEC,kBAAa,CAAC,UAAU,EAAE,OAAO,CAAC,EAC9C,SAAS,EAAEF,uBAAM,CAAC,MAAM,EAGZ,EAAA,wDAAA,CAAA;AAEf,QAAA,SAAS,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,KAClCF,sBAAA,CAAA,aAAA,CAACG,qBAAa,EAAA,EACV,IAAI,EAAE,EAAE,EACR,IAAI,EAAC,WAAW,EAChB,OAAO,EAAE,WAAW,EACpB,UAAU,EAAEC,kBAAa,CAAC,UAAU,EAAE,OAAO,CAAC,EAC9C,SAAS,EAAEF,uBAAM,CAAC,MAAM,EAGZ,EAAA,kDAAA,CAAA,CACnB,CACC;AA3BS;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.js","sources":["
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../../../src/presets/useSelectWithApply/options-list-with-apply/header/Component.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { Checkbox, type CheckboxProps } from '@alfalab/core-components-checkbox';\n\nimport { type OptionsListProps } from '../../../../typings';\n\nimport styles from './index.module.css';\n\nexport type HeaderProps = {\n checked?: boolean;\n indeterminate?: boolean;\n onChange?: CheckboxProps['onChange'];\n mobile?: boolean;\n dataTestId?: string;\n checkmarkPosition?: 'before' | 'after';\n size?: OptionsListProps['size'];\n};\n\nexport const Header: React.FC<HeaderProps> = ({\n onChange,\n checked,\n indeterminate,\n mobile,\n dataTestId,\n size,\n checkmarkPosition = 'before',\n}) => (\n <div\n className={cn(size && styles[`size-${size}`], {\n [styles.desktop]: !mobile,\n [styles.mobile]: mobile,\n })}\n >\n <Checkbox\n block={true}\n indeterminate={indeterminate}\n size={24}\n onChange={onChange}\n checked={checked}\n label='Выбрать все'\n dataTestId={dataTestId}\n position={checkmarkPosition}\n contentClassName={cn({ [styles.positionAfter]: checkmarkPosition === 'after' })}\n />\n </div>\n);\n"],"names":["React","cn","styles","Checkbox"],"mappings":";;;;;;;;;;;;;;;AAmBO,IAAM,MAAM,GAA0B,UAAC,EAQ7C,EAAA;;QAPG,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,OAAO,GAAA,EAAA,CAAA,OAAA,EACP,aAAa,GAAA,EAAA,CAAA,aAAA,EACb,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,yBAA4B,EAA5B,iBAAiB,GAAG,EAAA,KAAA,MAAA,GAAA,QAAQ,GAAA,EAAA;AAC1B,IAAA,QACFA,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAEC,mBAAE,CAAC,IAAI,IAAIC,uBAAM,CAAC,OAAQ,CAAA,MAAA,CAAA,IAAI,CAAE,CAAC,GAAA,EAAA,GAAA,EAAA;AACxC,YAAA,EAAA,CAACA,uBAAM,CAAC,OAAO,CAAA,GAAG,CAAC,MAAM;AACzB,YAAA,EAAA,CAACA,uBAAM,CAAC,MAAM,CAAA,GAAG,MAAM;AACzB,YAAA,EAAA,EAAA,EAAA;QAEFF,sBAAC,CAAA,aAAA,CAAAG,aAAQ,IACL,KAAK,EAAE,IAAI,EACX,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,EAAE,EACR,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAC,+DAAa,EACnB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,iBAAiB,EAC3B,gBAAgB,EAAEF,mBAAE,WAAG,EAAC,CAAAC,uBAAM,CAAC,aAAa,CAAG,GAAA,iBAAiB,KAAK,OAAO,EAAA,EAAA,EAAG,EACjF,CAAA,CACA;AAlBJ;;;;"}
|