@alfalab/core-components-select 19.1.7 → 19.1.8-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/Component.js +5 -12
- package/components/base-checkmark/Component.js.map +1 -1
- package/components/base-checkmark/index.css +13 -26
- package/components/base-checkmark/index.module.css.js +1 -1
- package/components/base-checkmark/index.module.css.js.map +1 -1
- package/components/base-option/Component.js +7 -1
- package/components/base-option/Component.js.map +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-checkmark/Component.js +5 -12
- package/cssm/components/base-checkmark/Component.js.map +1 -1
- package/cssm/components/base-checkmark/index.module.css +6 -19
- package/cssm/components/base-option/Component.js +7 -1
- package/cssm/components/base-option/Component.js.map +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/esm/components/arrow/index.css +4 -4
- package/esm/components/arrow/index.module.css.js +1 -1
- package/esm/components/base-checkmark/Component.js +5 -12
- package/esm/components/base-checkmark/Component.js.map +1 -1
- package/esm/components/base-checkmark/index.css +13 -26
- package/esm/components/base-checkmark/index.module.css.js +1 -1
- package/esm/components/base-checkmark/index.module.css.js.map +1 -1
- package/esm/components/base-option/Component.js +7 -1
- package/esm/components/base-option/Component.js.map +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/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/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/Component.js +5 -11
- package/modern/components/base-checkmark/Component.js.map +1 -1
- package/modern/components/base-checkmark/index.css +13 -26
- package/modern/components/base-checkmark/index.module.css.js +1 -1
- package/modern/components/base-checkmark/index.module.css.js.map +1 -1
- package/modern/components/base-option/Component.js +5 -1
- package/modern/components/base-option/Component.js.map +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/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/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-checkmark/Component.js +5 -11
- package/moderncssm/components/base-checkmark/Component.js.map +1 -1
- package/moderncssm/components/base-checkmark/index.module.css +8 -24
- package/moderncssm/components/base-option/Component.js +5 -1
- package/moderncssm/components/base-option/Component.js.map +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/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
- package/src/components/base-checkmark/Component.tsx +8 -24
- package/src/components/base-checkmark/index.module.css +6 -21
- package/src/components/base-option/Component.tsx +16 -12
|
@@ -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_13pp8 {
|
|
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_13pp8:not(.select__disabled_13pp8):active {
|
|
64
66
|
background: var(--select-option-active-background);
|
|
65
67
|
color: var(--select-option-active-color);
|
|
66
68
|
}
|
|
67
|
-
.
|
|
69
|
+
.select__option_13pp8: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_13pp8:first-child:before {
|
|
79
81
|
display: none;
|
|
80
82
|
}
|
|
81
|
-
.select__size-
|
|
83
|
+
.select__size-48_13pp8 {
|
|
82
84
|
min-height: var(--size-s-height);
|
|
83
85
|
}
|
|
84
|
-
.select__size-
|
|
86
|
+
.select__size-56_13pp8 {
|
|
85
87
|
min-height: var(--size-m-height);
|
|
86
88
|
}
|
|
87
|
-
.select__size-
|
|
89
|
+
.select__size-64_13pp8 {
|
|
88
90
|
min-height: var(--size-l-height);
|
|
89
91
|
}
|
|
90
|
-
.select__size-
|
|
92
|
+
.select__size-72_13pp8 {
|
|
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_13pp8: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_13pp8 {
|
|
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_13pp8 {
|
|
105
107
|
background: var(--select-option-hover-background);
|
|
106
108
|
color: var(--select-option-hover-color);
|
|
107
109
|
}
|
|
108
|
-
.
|
|
109
|
-
.
|
|
110
|
+
.select__highlighted_13pp8:before,
|
|
111
|
+
.select__highlighted_13pp8 + .select__option_13pp8:before {
|
|
110
112
|
opacity: 0;
|
|
111
113
|
}
|
|
112
|
-
.
|
|
114
|
+
.select__disabled_13pp8 {
|
|
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_13pp8 {
|
|
118
120
|
overflow: hidden;
|
|
119
121
|
flex: 1;
|
|
120
122
|
text-overflow: ellipsis;
|
|
121
123
|
}
|
|
122
|
-
.
|
|
124
|
+
.select__textContent_13pp8 {
|
|
123
125
|
padding-top: var(--gap-12);
|
|
124
126
|
padding-bottom: var(--gap-12);
|
|
125
127
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"option":"
|
|
3
|
+
const styles = {"option":"select__option_13pp8","disabled":"select__disabled_13pp8","size-48":"select__size-48_13pp8","size-56":"select__size-56_13pp8","size-64":"select__size-64_13pp8","size-72":"select__size-72_13pp8","selected":"select__selected_13pp8","highlighted":"select__highlighted_13pp8","content":"select__content_13pp8","textContent":"select__textContent_13pp8"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# 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_dz7dv {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
position: relative;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.select__optionsList_dz7dv .select__scrollable_dz7dv {
|
|
25
25
|
overflow: auto;
|
|
26
26
|
width: 100%;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.select__optionsList_dz7dv .select__scrollable_dz7dv .select__verticalBar_dz7dv.select__verticalBar_dz7dv {
|
|
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_dz7dv .select__scrollable_dz7dv .select__verticalBar_dz7dv.select__verticalBar_dz7dv.select__verticalBarWithHeader_dz7dv {
|
|
33
33
|
top: 0;
|
|
34
34
|
height: calc(100% - var(--select-options-list-scrollbar-gap));
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.select__optionsList_dz7dv .select__scrollable_dz7dv .select__verticalBar_dz7dv.select__verticalBar_dz7dv.select__verticalBarWithFooter_dz7dv {
|
|
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_dz7dv .select__scrollable_dz7dv .select__verticalBar_dz7dv.select__verticalBar_dz7dv.select__verticalBarWithHeader_dz7dv.select__verticalBarWithFooter_dz7dv {
|
|
41
41
|
top: 0;
|
|
42
42
|
height: 100%;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.select__optionsListHeader_dz7dv {
|
|
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_dz7dv.select__headerHighlighted_dz7dv {
|
|
50
50
|
border-bottom-color: var(--color-light-neutral-300);
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.select__optionsListFooter_dz7dv {
|
|
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_dz7dv.select__withBorder_dz7dv {
|
|
60
60
|
border-top-color: var(--color-light-neutral-300);
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.select__mask_dz7dv {
|
|
63
63
|
min-width: 4000px;
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.select__emptyPlaceholder_dz7dv {
|
|
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_dz7dv .select__emptyPlaceholder_dz7dv {
|
|
70
70
|
padding: var(--gap-24) var(--gap-16);
|
|
71
71
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"optionsList":"
|
|
3
|
+
const styles = {"optionsList":"select__optionsList_dz7dv","scrollable":"select__scrollable_dz7dv","verticalBar":"select__verticalBar_dz7dv","verticalBarWithHeader":"select__verticalBarWithHeader_dz7dv","verticalBarWithFooter":"select__verticalBarWithFooter_dz7dv","optionsListHeader":"select__optionsListHeader_dz7dv","headerHighlighted":"select__headerHighlighted_dz7dv","optionsListFooter":"select__optionsListFooter_dz7dv","withBorder":"select__withBorder_dz7dv","mask":"select__mask_dz7dv","emptyPlaceholder":"select__emptyPlaceholder_dz7dv","size-72":"select__size-72_dz7dv"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# 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_b587l {
|
|
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_b587l {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
border-bottom: 1px solid var(--color-light-neutral-300);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.select__virtualOptionsListFooter_b587l {
|
|
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_b587l.select__withBorder_b587l {
|
|
41
41
|
border-top: 1px solid var(--color-light-neutral-300);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.select__scrollable_b587l {
|
|
44
44
|
position: relative;
|
|
45
45
|
overflow: auto;
|
|
46
46
|
width: 100%;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.select__inner_b587l {
|
|
49
49
|
position: relative;
|
|
50
50
|
width: 100%;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.select__virtualRow_b587l {
|
|
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_b587l: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_b587l:first-child:before {
|
|
70
70
|
display: none;
|
|
71
71
|
}
|
|
72
|
-
.
|
|
73
|
-
.
|
|
72
|
+
.select__highlighted_b587l:before,
|
|
73
|
+
.select__highlighted_b587l + .select__virtualRow_b587l:before {
|
|
74
74
|
display: none;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.select__emptyPlaceholder_b587l {
|
|
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_b587l .select__emptyPlaceholder_b587l {
|
|
82
82
|
padding: var(--gap-24) var(--gap-16);
|
|
83
83
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"virtualOptionsList":"
|
|
3
|
+
const styles = {"virtualOptionsList":"select__virtualOptionsList_b587l","virtualOptionsListHeader":"select__virtualOptionsListHeader_b587l","virtualOptionsListFooter":"select__virtualOptionsListFooter_b587l","withBorder":"select__withBorder_b587l","scrollable":"select__scrollable_b587l","inner":"select__inner_b587l","virtualRow":"select__virtualRow_b587l","highlighted":"select__highlighted_b587l","emptyPlaceholder":"select__emptyPlaceholder_b587l","size-72":"select__size-72_b587l"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
:root {
|
|
13
13
|
--select-option-list-footer-button-gap: var(--gap-8);
|
|
14
14
|
}
|
|
15
|
-
.
|
|
15
|
+
.select__footer_1btsd {
|
|
16
16
|
background-color: var(--color-light-base-bg-primary);
|
|
17
17
|
padding: var(--gap-12);
|
|
18
18
|
outline: none;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.select__footer_1btsd.select__size-72_1btsd {
|
|
21
21
|
padding: var(--gap-12) var(--gap-16);
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.select__footer_1btsd > .select__button_1btsd + .select__button_1btsd {
|
|
24
24
|
margin-left: var(--select-option-list-footer-button-gap);
|
|
25
25
|
}
|
package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"footer":"
|
|
3
|
+
const styles = {"footer":"select__footer_1btsd","size-72":"select__size-72_1btsd","button":"select__button_1btsd"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
--gap-12: var(--gap-s);
|
|
7
7
|
--gap-16: var(--gap-m);
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
.select__desktop_11llj {
|
|
10
10
|
padding: var(--gap-12);
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
.select__desktop_11llj.select__size-72_11llj {
|
|
13
13
|
padding-left: var(--gap-16);
|
|
14
14
|
}
|
|
15
|
-
.
|
|
15
|
+
.select__mobile_11llj {
|
|
16
16
|
padding: var(--gap-12) var(--gap-12) var(--gap-12) var(--gap-8);
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.select__positionAfter_11llj {
|
|
19
19
|
margin-left: 0;
|
|
20
20
|
margin-left: initial;
|
|
21
21
|
}
|
package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"desktop":"
|
|
3
|
+
const styles = {"desktop":"select__desktop_11llj","size-72":"select__size-72_11llj","mobile":"select__mobile_11llj","positionAfter":"select__positionAfter_11llj"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -4,17 +4,11 @@ import { Checkbox } from '@alfalab/core-components-checkbox/moderncssm';
|
|
|
4
4
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
5
5
|
import styles from './index.module.css';
|
|
6
6
|
|
|
7
|
-
const BaseCheckmark = ({ selected, disabled = false, className, multiple, align = 'center', position = 'before',
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
[styles.selected]: selected,
|
|
13
|
-
}), size: 24, position: position, label: content, hiddenInput: true })) : (React.createElement("div", { className: cn(styles.container, styles[align], className) },
|
|
14
|
-
position === 'before' && renderCheckmarkIcon(),
|
|
15
|
-
React.createElement("div", { className: styles.content }, content),
|
|
16
|
-
position === 'after' && renderCheckmarkIcon()));
|
|
17
|
-
};
|
|
7
|
+
const BaseCheckmark = ({ selected, disabled = false, className, multiple, align = 'center', position = 'before', }) => multiple ? (React.createElement(Checkbox, { checked: selected, disabled: disabled, className: cn(styles.checkmark, styles[position], styles[align], className, {
|
|
8
|
+
[styles.selected]: selected,
|
|
9
|
+
}), size: 24, hiddenInput: true })) : (React.createElement(CheckmarkMIcon, { className: cn(styles.singleIcon, styles[position], styles[align], className, {
|
|
10
|
+
[styles.selected]: selected,
|
|
11
|
+
}) }));
|
|
18
12
|
|
|
19
13
|
export { BaseCheckmark };
|
|
20
14
|
//# sourceMappingURL=Component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.js","sources":["../../../src/components/base-checkmark/Component.tsx"],"sourcesContent":["import React, { type FC } from 'react';\nimport cn from 'classnames';\n\nimport { Checkbox } from '@alfalab/core-components-checkbox';\nimport { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';\n\nimport { type CheckmarkProps } from '../../typings';\n\nimport styles from './index.module.css';\n\nexport const BaseCheckmark: FC<CheckmarkProps> = ({\n selected,\n disabled = false,\n className,\n multiple,\n align = 'center',\n position = 'before',\n
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../../src/components/base-checkmark/Component.tsx"],"sourcesContent":["import React, { type FC } from 'react';\nimport cn from 'classnames';\n\nimport { Checkbox } from '@alfalab/core-components-checkbox';\nimport { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';\n\nimport { type CheckmarkProps } from '../../typings';\n\nimport styles from './index.module.css';\n\nexport const BaseCheckmark: FC<CheckmarkProps> = ({\n selected,\n disabled = false,\n className,\n multiple,\n align = 'center',\n position = 'before',\n}) =>\n multiple ? (\n <Checkbox\n checked={selected}\n disabled={disabled}\n className={cn(styles.checkmark, styles[position], styles[align], className, {\n [styles.selected]: selected,\n })}\n size={24}\n hiddenInput={true}\n />\n ) : (\n <CheckmarkMIcon\n className={cn(styles.singleIcon, styles[position], styles[align], className, {\n [styles.selected]: selected,\n })}\n />\n );\n"],"names":[],"mappings":";;;;;;AAUO,MAAM,aAAa,GAAuB,CAAC,EAC9C,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,QAAQ,EACR,KAAK,GAAG,QAAQ,EAChB,QAAQ,GAAG,QAAQ,GACtB,KACG,QAAQ,IACJ,KAAA,CAAA,aAAA,CAAC,QAAQ,EAAA,EACL,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE;AACxE,QAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;AAC9B,KAAA,CAAC,EACF,IAAI,EAAE,EAAE,EACR,WAAW,EAAE,IAAI,EACnB,CAAA,KAEF,KAAA,CAAA,aAAA,CAAC,cAAc,EACX,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE;AACzE,QAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;KAC9B,CAAC,EAAA,CACJ;;;;"}
|
|
@@ -3,32 +3,20 @@
|
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.checkmark.
|
|
7
|
-
|
|
6
|
+
.checkmark.before {
|
|
7
|
+
margin-right: var(--gap-12);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.checkmark.
|
|
11
|
-
|
|
10
|
+
.checkmark.after {
|
|
11
|
+
margin-left: var(--gap-12);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.
|
|
15
|
-
|
|
16
|
-
margin-left: initial;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.container {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.container.start {
|
|
27
|
-
align-items: flex-start;
|
|
14
|
+
.checkmark.start {
|
|
15
|
+
align-self: start;
|
|
28
16
|
}
|
|
29
17
|
|
|
30
|
-
.
|
|
31
|
-
align-
|
|
18
|
+
.checkmark.center {
|
|
19
|
+
align-self: center;
|
|
32
20
|
}
|
|
33
21
|
|
|
34
22
|
.singleIcon {
|
|
@@ -47,7 +35,3 @@
|
|
|
47
35
|
.singleIcon.selected {
|
|
48
36
|
opacity: 1;
|
|
49
37
|
}
|
|
50
|
-
|
|
51
|
-
.content {
|
|
52
|
-
flex: 1;
|
|
53
|
-
}
|
|
@@ -8,6 +8,7 @@ const BaseOption = ({ className, option, children, selected, highlighted, disabl
|
|
|
8
8
|
const { showCheckMark = true } = option;
|
|
9
9
|
const isTextContent = !isValidElement(content);
|
|
10
10
|
const showCheckmark = Checkmark && showCheckMark;
|
|
11
|
+
const renderCheckmark = (position) => showCheckmark && (React.createElement(Checkmark, { disabled: disabled, selected: selected, multiple: multiple, align: align, position: position }));
|
|
11
12
|
return (React.createElement("div", { ...innerProps, className: cn(styles.option, size && styles[`size-${size}`], className, {
|
|
12
13
|
[styles.highlighted]: !mobile && highlighted,
|
|
13
14
|
[styles.selected]: selected,
|
|
@@ -16,7 +17,10 @@ const BaseOption = ({ className, option, children, selected, highlighted, disabl
|
|
|
16
17
|
[styles.mobile]: mobile,
|
|
17
18
|
[styles.checkmarkAfter]: showCheckmark && !isTextContent && checkmarkPosition === 'after',
|
|
18
19
|
[styles.checkmarkBefore]: showCheckmark && !isTextContent && checkmarkPosition === 'before',
|
|
19
|
-
}), "data-test-id": dataTestId, "aria-label": option?.value?.name },
|
|
20
|
+
}), "data-test-id": dataTestId, "aria-label": option?.value?.name },
|
|
21
|
+
checkmarkPosition === 'before' && renderCheckmark('before'),
|
|
22
|
+
React.createElement("div", { className: cn(styles.content) }, content),
|
|
23
|
+
checkmarkPosition === 'after' && renderCheckmark('after')));
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
export { BaseOption };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.js","sources":["../../../src/components/base-option/Component.tsx"],"sourcesContent":["import React, { type FC, isValidElement } from 'react';\nimport cn from 'classnames';\n\nimport { type OptionProps } from '../../typings';\nimport { BaseCheckmark } from '../base-checkmark';\n\nimport styles from './index.module.css';\n\nexport const BaseOption: FC<OptionProps> = ({\n className,\n option,\n children,\n selected,\n highlighted,\n disabled,\n multiple,\n Checkmark = BaseCheckmark,\n checkmarkPosition = multiple ? 'before' : 'after',\n align = 'center',\n innerProps,\n dataTestId,\n mobile = false,\n size,\n}) => {\n const content = children || option.content || option.key;\n const { showCheckMark = true } = option;\n const isTextContent = !isValidElement(content);\n const showCheckmark = Checkmark && showCheckMark;\n\n return (\n <div\n {...innerProps}\n className={cn(styles.option, size && styles[`size-${size}`], className, {\n [styles.highlighted]: !mobile && highlighted,\n [styles.selected]: selected,\n [styles.disabled]: disabled,\n [styles.textContent]: isTextContent,\n [styles.mobile]: mobile,\n [styles.checkmarkAfter]:\n showCheckmark && !isTextContent && checkmarkPosition === 'after',\n [styles.checkmarkBefore]:\n showCheckmark && !isTextContent && checkmarkPosition === 'before',\n })}\n data-test-id={dataTestId}\n aria-label={option?.value?.name}\n >\n {
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../../src/components/base-option/Component.tsx"],"sourcesContent":["import React, { type FC, isValidElement } from 'react';\nimport cn from 'classnames';\n\nimport { type OptionProps } from '../../typings';\nimport { BaseCheckmark } from '../base-checkmark';\n\nimport styles from './index.module.css';\n\nexport const BaseOption: FC<OptionProps> = ({\n className,\n option,\n children,\n selected,\n highlighted,\n disabled,\n multiple,\n Checkmark = BaseCheckmark,\n checkmarkPosition = multiple ? 'before' : 'after',\n align = 'center',\n innerProps,\n dataTestId,\n mobile = false,\n size,\n}) => {\n const content = children || option.content || option.key;\n const { showCheckMark = true } = option;\n const isTextContent = !isValidElement(content);\n const showCheckmark = Checkmark && showCheckMark;\n\n const renderCheckmark = (position: 'before' | 'after') =>\n showCheckmark && (\n <Checkmark\n disabled={disabled}\n selected={selected}\n multiple={multiple}\n align={align}\n position={position}\n />\n );\n\n return (\n <div\n {...innerProps}\n className={cn(styles.option, size && styles[`size-${size}`], className, {\n [styles.highlighted]: !mobile && highlighted,\n [styles.selected]: selected,\n [styles.disabled]: disabled,\n [styles.textContent]: isTextContent,\n [styles.mobile]: mobile,\n [styles.checkmarkAfter]:\n showCheckmark && !isTextContent && checkmarkPosition === 'after',\n [styles.checkmarkBefore]:\n showCheckmark && !isTextContent && checkmarkPosition === 'before',\n })}\n data-test-id={dataTestId}\n aria-label={option?.value?.name}\n >\n {checkmarkPosition === 'before' && renderCheckmark('before')}\n\n <div className={cn(styles.content)}>{content}</div>\n\n {checkmarkPosition === 'after' && renderCheckmark('after')}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;MAQa,UAAU,GAAoB,CAAC,EACxC,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,SAAS,GAAG,aAAa,EACzB,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,EACjD,KAAK,GAAG,QAAQ,EAChB,UAAU,EACV,UAAU,EACV,MAAM,GAAG,KAAK,EACd,IAAI,GACP,KAAI;IACD,MAAM,OAAO,GAAG,QAAQ,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG;AACxD,IAAA,MAAM,EAAE,aAAa,GAAG,IAAI,EAAE,GAAG,MAAM;AACvC,IAAA,MAAM,aAAa,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC;AAC9C,IAAA,MAAM,aAAa,GAAG,SAAS,IAAI,aAAa;AAEhD,IAAA,MAAM,eAAe,GAAG,CAAC,QAA4B,KACjD,aAAa,KACT,KAAC,CAAA,aAAA,CAAA,SAAS,EACN,EAAA,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAAA,CACpB,CACL;IAEL,QACI,gCACQ,UAAU,EACd,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,IAAI,MAAM,CAAC,CAAA,KAAA,EAAQ,IAAI,CAAE,CAAA,CAAC,EAAE,SAAS,EAAE;YACpE,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,MAAM,IAAI,WAAW;AAC5C,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;AAC3B,YAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ;AAC3B,YAAA,CAAC,MAAM,CAAC,WAAW,GAAG,aAAa;AACnC,YAAA,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM;AACvB,YAAA,CAAC,MAAM,CAAC,cAAc,GAClB,aAAa,IAAI,CAAC,aAAa,IAAI,iBAAiB,KAAK,OAAO;AACpE,YAAA,CAAC,MAAM,CAAC,eAAe,GACnB,aAAa,IAAI,CAAC,aAAa,IAAI,iBAAiB,KAAK,QAAQ;AACxE,SAAA,CAAC,kBACY,UAAU,EAAA,YAAA,EACZ,MAAM,EAAE,KAAK,EAAE,IAAI,EAAA;AAE9B,QAAA,iBAAiB,KAAK,QAAQ,IAAI,eAAe,CAAC,QAAQ,CAAC;QAE5D,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAG,EAAA,OAAO,CAAO;QAElD,iBAAiB,KAAK,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CACxD;AAEd;;;;"}
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
font-size: 16px;
|
|
41
41
|
line-height: 20px;
|
|
42
42
|
font-weight: 400;
|
|
43
|
-
|
|
43
|
+
letter-spacing: -0.24px;
|
|
44
|
+
font-family: var(--font-family-alfasans);
|
|
44
45
|
|
|
45
46
|
white-space: nowrap;
|
|
46
47
|
text-overflow: ellipsis;
|
|
@@ -52,7 +53,8 @@
|
|
|
52
53
|
font-size: 14px;
|
|
53
54
|
line-height: 18px;
|
|
54
55
|
font-weight: 400;
|
|
55
|
-
|
|
56
|
+
letter-spacing: -0.08px;
|
|
57
|
+
font-family: var(--font-family-alfasans);
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
.value {
|
|
@@ -65,7 +67,8 @@
|
|
|
65
67
|
font-size: 14px;
|
|
66
68
|
line-height: 18px;
|
|
67
69
|
font-weight: 400;
|
|
68
|
-
|
|
70
|
+
letter-spacing: -0.08px;
|
|
71
|
+
font-family: var(--font-family-alfasans);
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
.focusVisible {
|