@alfalab/core-components-select 13.2.8 → 13.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Component-8614ce6b.d.ts → Component-15130ab3.d.ts} +0 -0
- package/{Component-8614ce6b.js → Component-15130ab3.js} +2 -2
- package/{Component-d0e7b8cf.d.ts → Component-f1158c0d.d.ts} +0 -0
- package/{Component-d0e7b8cf.js → Component-f1158c0d.js} +5 -5
- package/Component.d.ts +1 -1
- package/Component.js +2 -2
- package/Component.responsive.js +4 -4
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +12 -11
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +13 -9
- package/components/base-option/Component.js +2 -2
- package/components/base-option/index.css +22 -33
- package/components/base-option/index.js +1 -1
- package/components/base-select/Component.js +2 -2
- package/components/base-select/index.css +18 -24
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +2 -2
- package/components/base-select-mobile/Component.js +4 -4
- package/components/base-select-mobile/checkmark/Component.js +1 -1
- package/components/base-select-mobile/checkmark/index.css +15 -13
- package/components/base-select-mobile/index.css +21 -27
- package/components/base-select-mobile/index.d.ts +1 -1
- package/components/base-select-mobile/index.js +4 -4
- package/components/base-select-mobile/options-list/Component.js +2 -2
- package/components/base-select-mobile/options-list/index.css +19 -24
- package/components/base-select-mobile/options-list/index.js +1 -1
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +18 -24
- package/components/field/Component.js +2 -2
- package/components/field/index.css +18 -24
- package/components/field/index.js +1 -1
- package/components/index.js +4 -4
- package/components/native-select/Component.js +1 -1
- package/components/native-select/index.js +1 -1
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +15 -16
- package/components/option/Component.js +2 -2
- package/components/option/index.css +30 -47
- package/components/option/index.js +1 -1
- package/components/options-list/Component.js +2 -2
- package/components/options-list/index.css +15 -16
- package/components/options-list/index.js +1 -1
- package/components/select-mobile/Component.js +4 -4
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +4 -4
- package/components/select-modal-mobile/Component.js +4 -4
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +4 -4
- package/components/virtual-options-list/Component.js +2 -2
- package/components/virtual-options-list/index.css +21 -27
- package/components/virtual-options-list/index.js +1 -1
- package/cssm/Component.d.ts +1 -1
- package/cssm/components/arrow/index.module.css +11 -10
- package/cssm/components/base-checkmark/index.module.css +12 -8
- package/cssm/components/base-option/index.module.css +21 -32
- package/cssm/components/base-select/index.module.css +16 -22
- package/cssm/components/base-select-mobile/checkmark/index.module.css +14 -12
- package/cssm/components/base-select-mobile/index.module.css +19 -25
- package/cssm/components/base-select-mobile/options-list/index.module.css +17 -22
- package/cssm/components/checkmark/index.module.css +17 -23
- package/cssm/components/field/index.module.css +17 -23
- package/cssm/components/optgroup/index.module.css +13 -14
- package/cssm/components/option/index.module.css +26 -43
- package/cssm/components/options-list/index.module.css +13 -14
- package/cssm/components/virtual-options-list/index.module.css +18 -24
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.module.css +12 -12
- package/cssm/typings.d.ts +1 -5
- package/esm/{Component-c09a6820.d.ts → Component-45681199.d.ts} +0 -0
- package/esm/{Component-c09a6820.js → Component-45681199.js} +2 -2
- package/esm/{Component-4ef9d6d2.d.ts → Component-ff31e94c.d.ts} +0 -0
- package/esm/{Component-4ef9d6d2.js → Component-ff31e94c.js} +5 -5
- package/esm/Component.d.ts +1 -1
- package/esm/Component.js +2 -2
- package/esm/Component.responsive.js +4 -4
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +12 -11
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +13 -9
- package/esm/components/base-option/Component.js +2 -2
- package/esm/components/base-option/index.css +22 -33
- package/esm/components/base-option/index.js +1 -1
- package/esm/components/base-select/Component.js +2 -2
- package/esm/components/base-select/index.css +18 -24
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +2 -2
- package/esm/components/base-select-mobile/Component.js +4 -4
- package/esm/components/base-select-mobile/checkmark/Component.js +1 -1
- package/esm/components/base-select-mobile/checkmark/index.css +15 -13
- package/esm/components/base-select-mobile/index.css +21 -27
- package/esm/components/base-select-mobile/index.d.ts +1 -1
- package/esm/components/base-select-mobile/index.js +4 -4
- package/esm/components/base-select-mobile/options-list/Component.js +2 -2
- package/esm/components/base-select-mobile/options-list/index.css +19 -24
- package/esm/components/base-select-mobile/options-list/index.js +1 -1
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +18 -24
- package/esm/components/field/Component.js +2 -2
- package/esm/components/field/index.css +18 -24
- package/esm/components/field/index.js +1 -1
- package/esm/components/index.js +4 -4
- package/esm/components/native-select/Component.js +1 -1
- package/esm/components/native-select/index.js +1 -1
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +15 -16
- package/esm/components/option/Component.js +2 -2
- package/esm/components/option/index.css +30 -47
- package/esm/components/option/index.js +1 -1
- package/esm/components/options-list/Component.js +2 -2
- package/esm/components/options-list/index.css +15 -16
- package/esm/components/options-list/index.js +1 -1
- package/esm/components/select-mobile/Component.js +4 -4
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +4 -4
- package/esm/components/select-modal-mobile/Component.js +4 -4
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +4 -4
- package/esm/components/virtual-options-list/Component.js +2 -2
- package/esm/components/virtual-options-list/index.css +21 -27
- package/esm/components/virtual-options-list/index.js +1 -1
- package/esm/index.js +4 -4
- package/esm/{intersection-observer-c9397884.d.ts → intersection-observer-ce0b7183.d.ts} +0 -0
- package/esm/{intersection-observer-c9397884.js → intersection-observer-ce0b7183.js} +0 -0
- package/esm/presets/index.js +4 -4
- package/esm/presets/useLazyLoading/hook.js +3 -3
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +13 -13
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
- package/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +4 -4
- package/esm/{tslib.es6-3c9b3142.d.ts → tslib.es6-60ccbcec.d.ts} +0 -0
- package/esm/{tslib.es6-3c9b3142.js → tslib.es6-60ccbcec.js} +0 -0
- package/esm/typings.d.ts +1 -5
- package/index.js +4 -4
- package/{intersection-observer-8ba57140.d.ts → intersection-observer-4a8b5b51.d.ts} +0 -0
- package/{intersection-observer-8ba57140.js → intersection-observer-4a8b5b51.js} +0 -0
- package/modern/{Component-8d6d6d34.d.ts → Component-0998aafe.d.ts} +0 -0
- package/modern/{Component-8d6d6d34.js → Component-0998aafe.js} +1 -1
- package/modern/{Component-c2b10ca0.d.ts → Component-adf0c0e0.d.ts} +0 -0
- package/modern/{Component-c2b10ca0.js → Component-adf0c0e0.js} +4 -4
- package/modern/Component.d.ts +1 -1
- package/modern/Component.js +1 -1
- package/modern/Component.responsive.js +3 -3
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +12 -11
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +13 -9
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +22 -33
- package/modern/components/base-select/Component.js +1 -1
- package/modern/components/base-select/index.css +18 -24
- package/modern/components/base-select/index.d.ts +1 -1
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.js +3 -3
- package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
- package/modern/components/base-select-mobile/checkmark/index.css +15 -13
- package/modern/components/base-select-mobile/index.css +21 -27
- package/modern/components/base-select-mobile/index.d.ts +1 -1
- package/modern/components/base-select-mobile/index.js +3 -3
- package/modern/components/base-select-mobile/options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/options-list/index.css +19 -24
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +18 -24
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +18 -24
- package/modern/components/index.js +3 -3
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +15 -16
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +30 -47
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +15 -16
- package/modern/components/select-mobile/Component.js +3 -3
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +3 -3
- package/modern/components/select-modal-mobile/Component.js +3 -3
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +3 -3
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +21 -27
- package/modern/index.js +3 -3
- package/modern/{intersection-observer-c9397884.d.ts → intersection-observer-ce0b7183.d.ts} +0 -0
- package/modern/{intersection-observer-c9397884.js → intersection-observer-ce0b7183.js} +0 -0
- package/modern/presets/index.js +3 -3
- package/modern/presets/useLazyLoading/hook.js +2 -2
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +13 -13
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +3 -3
- package/modern/typings.d.ts +1 -5
- package/package.json +5 -5
- package/presets/index.js +4 -4
- package/presets/useLazyLoading/hook.js +3 -3
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.css +13 -13
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +4 -4
- package/presets/useSelectWithLoading/hook.js +2 -2
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +4 -4
- package/{tslib.es6-765af8e2.d.ts → tslib.es6-dde7343f.d.ts} +0 -0
- package/{tslib.es6-765af8e2.js → tslib.es6-dde7343f.js} +0 -0
- package/typings.d.ts +1 -5
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
3
|
+
} :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
2
6
|
|
|
3
7
|
/* Hard */
|
|
4
8
|
|
|
5
9
|
/* Up */
|
|
6
10
|
|
|
7
11
|
/* Hard up */
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
12
|
+
} :root {
|
|
13
|
+
} :root {
|
|
10
14
|
--gap-2xs: 4px;
|
|
11
15
|
--gap-xs: 8px;
|
|
12
16
|
--gap-m: 16px;
|
|
13
17
|
--gap-l: 20px;
|
|
14
|
-
}
|
|
15
|
-
:root {
|
|
18
|
+
} :root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
16
21
|
|
|
17
22
|
/* options list */
|
|
18
23
|
--select-options-list-offset: var(--gap-2xs);
|
|
@@ -22,13 +27,11 @@
|
|
|
22
27
|
/* checkmark */
|
|
23
28
|
|
|
24
29
|
/* optgroup */
|
|
25
|
-
}
|
|
26
|
-
.component {
|
|
30
|
+
} .component {
|
|
27
31
|
width: max-content;
|
|
28
32
|
position: relative;
|
|
29
33
|
outline: 0;
|
|
30
|
-
}
|
|
31
|
-
.popoverInner {
|
|
34
|
+
} .popoverInner {
|
|
32
35
|
padding-top: var(--select-options-list-offset);
|
|
33
36
|
padding-bottom: var(--select-options-list-offset);
|
|
34
37
|
box-shadow: none;
|
|
@@ -36,32 +39,23 @@
|
|
|
36
39
|
background: transparent;
|
|
37
40
|
border-radius: 0;
|
|
38
41
|
position: relative;
|
|
39
|
-
}
|
|
40
|
-
.sheet {
|
|
42
|
+
} .sheet {
|
|
41
43
|
overflow: hidden;
|
|
42
|
-
}
|
|
43
|
-
.sheetContent {
|
|
44
|
+
} .sheetContent {
|
|
44
45
|
padding: 0;
|
|
45
|
-
}
|
|
46
|
-
.sheetContainer {
|
|
46
|
+
} .sheetContainer {
|
|
47
47
|
padding: 0;
|
|
48
|
-
}
|
|
49
|
-
.block {
|
|
48
|
+
} .block {
|
|
50
49
|
width: 100%;
|
|
51
|
-
}
|
|
52
|
-
/* width: max-content; fix for IE */
|
|
53
|
-
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
50
|
+
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
54
51
|
.component {
|
|
55
52
|
float: left;
|
|
56
53
|
clear: left;
|
|
57
54
|
}
|
|
58
|
-
}
|
|
59
|
-
.option {
|
|
55
|
+
} .option {
|
|
60
56
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
61
|
-
}
|
|
62
|
-
.option:before {
|
|
57
|
+
} .option:before {
|
|
63
58
|
display: none;
|
|
64
|
-
}
|
|
65
|
-
.optionGroup {
|
|
59
|
+
} .optionGroup {
|
|
66
60
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
67
61
|
}
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-bg-primary: #fff;
|
|
3
4
|
--color-light-border-primary: #dbdee1;
|
|
4
5
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
5
|
-
}
|
|
6
|
-
:root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
8
|
+
} :root {
|
|
7
9
|
|
|
8
10
|
/* Hard */
|
|
9
11
|
|
|
10
12
|
/* Up */
|
|
11
13
|
|
|
12
14
|
/* Hard up */
|
|
13
|
-
}
|
|
14
|
-
:root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
15
17
|
--gap-s: 12px;
|
|
16
18
|
--gap-m: 16px;
|
|
17
19
|
--gap-xl: 24px;
|
|
18
|
-
}
|
|
19
|
-
:root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
22
|
+
} :root {
|
|
20
23
|
|
|
21
24
|
/* options list */
|
|
22
25
|
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
@@ -26,39 +29,31 @@
|
|
|
26
29
|
/* checkmark */
|
|
27
30
|
|
|
28
31
|
/* optgroup */
|
|
29
|
-
}
|
|
30
|
-
:root {
|
|
32
|
+
} :root {
|
|
31
33
|
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
32
34
|
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
33
|
-
}
|
|
34
|
-
.optionsList {
|
|
35
|
+
} .optionsList {
|
|
35
36
|
width: 100%;
|
|
36
37
|
outline: none;
|
|
37
38
|
box-sizing: border-box;
|
|
38
|
-
}
|
|
39
|
-
.emptyPlaceholder {
|
|
39
|
+
} .emptyPlaceholder {
|
|
40
40
|
padding: var(--gap-m) var(--gap-s);
|
|
41
41
|
color: var(--select-options-list-empty-placeholder-color);
|
|
42
|
-
}
|
|
43
|
-
.l .emptyPlaceholder,
|
|
42
|
+
} .l .emptyPlaceholder,
|
|
44
43
|
.xl .emptyPlaceholder {
|
|
45
44
|
padding: var(--gap-xl) var(--gap-m);
|
|
46
|
-
}
|
|
47
|
-
.footer {
|
|
45
|
+
} .footer {
|
|
48
46
|
display: flex;
|
|
49
47
|
justify-content: space-between;
|
|
50
48
|
position: sticky;
|
|
51
49
|
padding: var(--gap-m) var(--gap-m);
|
|
52
50
|
background-color: var(--color-light-bg-primary);
|
|
53
51
|
bottom: 0
|
|
54
|
-
}
|
|
55
|
-
.footer .footerButton:first-of-type {
|
|
52
|
+
} .footer .footerButton:first-of-type {
|
|
56
53
|
margin-right: var(--gap-m);
|
|
57
|
-
}
|
|
58
|
-
.footerButton {
|
|
54
|
+
} .footerButton {
|
|
59
55
|
width: 50%;
|
|
60
|
-
}
|
|
61
|
-
.highlighted {
|
|
56
|
+
} .highlighted {
|
|
62
57
|
border-top: var(--select-mobile-footer-border-top);
|
|
63
58
|
background-color: var(--select-mobile-footer-background-color);
|
|
64
59
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-graphic-positive: #2fc26e;
|
|
3
4
|
--color-light-graphic-primary: #0b1f35;
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:
|
|
14
|
+
} :root {
|
|
15
|
+
--border-radius-circle: 50%;
|
|
16
|
+
} :root {
|
|
14
17
|
--gap-xs: 8px;
|
|
15
18
|
--gap-s: 12px;
|
|
16
|
-
}
|
|
17
|
-
:root {
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
:root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
21
22
|
|
|
22
23
|
/* options list */
|
|
23
24
|
|
|
@@ -34,12 +35,10 @@
|
|
|
34
35
|
--select-checkmark-border-radius: var(--border-radius-circle);
|
|
35
36
|
|
|
36
37
|
/* optgroup */
|
|
37
|
-
}
|
|
38
|
-
.checkmark {
|
|
38
|
+
} .checkmark {
|
|
39
39
|
flex-shrink: 0;
|
|
40
40
|
margin: var(--select-checkmark-margin);
|
|
41
|
-
}
|
|
42
|
-
.single {
|
|
41
|
+
} .single {
|
|
43
42
|
display: flex;
|
|
44
43
|
align-items: center;
|
|
45
44
|
justify-content: center;
|
|
@@ -49,19 +48,14 @@
|
|
|
49
48
|
border-radius: var(--select-checkmark-border-radius);
|
|
50
49
|
width: var(--select-checkmark-size);
|
|
51
50
|
height: var(--select-checkmark-size)
|
|
52
|
-
}
|
|
53
|
-
.single.selected {
|
|
51
|
+
} .single.selected {
|
|
54
52
|
opacity: 1;
|
|
55
|
-
}
|
|
56
|
-
.before {
|
|
53
|
+
} .before {
|
|
57
54
|
display: var(--select-checkmark-before-display)
|
|
58
|
-
}
|
|
59
|
-
.before.multiple {
|
|
55
|
+
} .before.multiple {
|
|
60
56
|
margin-right: var(--gap-s);
|
|
61
|
-
}
|
|
62
|
-
.after {
|
|
57
|
+
} .after {
|
|
63
58
|
display: var(--select-checkmark-after-display);
|
|
64
|
-
}
|
|
65
|
-
.colorIcon {
|
|
59
|
+
} .colorIcon {
|
|
66
60
|
color: var(--color-light-graphic-positive);
|
|
67
61
|
}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-border-link: #007aff;
|
|
3
4
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
14
18
|
--focus-color: var(--color-light-border-link);
|
|
15
19
|
--disabled-cursor: not-allowed;
|
|
16
|
-
}
|
|
17
|
-
:root {
|
|
20
|
+
} :root {
|
|
18
21
|
--select-arrow-hover-opacity: 0.7;
|
|
19
22
|
|
|
20
23
|
/* options list */
|
|
@@ -24,25 +27,18 @@
|
|
|
24
27
|
/* checkmark */
|
|
25
28
|
|
|
26
29
|
/* optgroup */
|
|
27
|
-
}
|
|
28
|
-
.component {
|
|
30
|
+
} .component {
|
|
29
31
|
width: 100%;
|
|
30
32
|
outline: none;
|
|
31
|
-
}
|
|
32
|
-
.field:not(.disabled) {
|
|
33
|
+
} .field:not(.disabled) {
|
|
33
34
|
cursor: pointer
|
|
34
|
-
}
|
|
35
|
-
.field:not(.disabled):hover .arrow {
|
|
35
|
+
} .field:not(.disabled):hover .arrow {
|
|
36
36
|
opacity: var(--select-arrow-hover-opacity);
|
|
37
|
-
}
|
|
38
|
-
.disabled {
|
|
37
|
+
} .disabled {
|
|
39
38
|
cursor: var(--disabled-cursor);
|
|
40
|
-
}
|
|
41
|
-
/* TODO: Заюзать переменные из инпута */
|
|
42
|
-
.placeholder {
|
|
39
|
+
} /* TODO: Заюзать переменные из инпута */ .placeholder {
|
|
43
40
|
color: var(--color-light-text-secondary);
|
|
44
|
-
}
|
|
45
|
-
.contentWrapper {
|
|
41
|
+
} .contentWrapper {
|
|
46
42
|
font-size: 16px;
|
|
47
43
|
line-height: 20px;
|
|
48
44
|
font-weight: 400;
|
|
@@ -51,13 +47,11 @@
|
|
|
51
47
|
text-overflow: ellipsis;
|
|
52
48
|
overflow: hidden;
|
|
53
49
|
width: 100%;
|
|
54
|
-
}
|
|
55
|
-
.value {
|
|
50
|
+
} .value {
|
|
56
51
|
overflow: hidden;
|
|
57
52
|
text-overflow: ellipsis;
|
|
58
53
|
text-align: left;
|
|
59
|
-
}
|
|
60
|
-
.focusVisible {
|
|
54
|
+
} .focusVisible {
|
|
61
55
|
outline: 2px solid var(--focus-color);
|
|
62
56
|
outline-offset: 2px;
|
|
63
57
|
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-bg-primary: #fff;
|
|
3
4
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
14
16
|
--gap-2xs: 4px;
|
|
15
17
|
--gap-s: 12px;
|
|
16
18
|
--gap-m: 16px;
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
19
22
|
|
|
20
23
|
/* options list */
|
|
21
24
|
|
|
@@ -31,8 +34,7 @@
|
|
|
31
34
|
--select-optgroup-right-padding: var(--gap-s);
|
|
32
35
|
--select-optgroup-l-left-padding: var(--gap-m);
|
|
33
36
|
--select-optgroup-l-right-padding: var(--gap-m);
|
|
34
|
-
}
|
|
35
|
-
.optgroup {
|
|
37
|
+
} .optgroup {
|
|
36
38
|
position: relative;
|
|
37
39
|
display: flex;
|
|
38
40
|
align-items: center;
|
|
@@ -41,11 +43,9 @@
|
|
|
41
43
|
box-sizing: border-box;
|
|
42
44
|
background: var(--select-optgroup-background);
|
|
43
45
|
min-height: 40px
|
|
44
|
-
}
|
|
45
|
-
.optgroup + *[role='option']:before {
|
|
46
|
+
} .optgroup + *[role='option']:before {
|
|
46
47
|
display: none;
|
|
47
|
-
}
|
|
48
|
-
.label {
|
|
48
|
+
} .label {
|
|
49
49
|
font-size: 12px;
|
|
50
50
|
line-height: 16px;
|
|
51
51
|
font-weight: 500;
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
display: block;
|
|
56
56
|
color: var(--select-optgroup-color);
|
|
57
|
-
}
|
|
58
|
-
.l,
|
|
57
|
+
} .l,
|
|
59
58
|
.xl {
|
|
60
59
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
61
60
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-bg-primary: #fff;
|
|
3
4
|
--color-light-bg-secondary: #f3f4f5;
|
|
4
5
|
--color-light-bg-tertiary: #e7e9eb;
|
|
5
6
|
--color-light-border-primary: #dbdee1;
|
|
6
7
|
--color-light-text-primary: #0b1f35;
|
|
7
8
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
9
|
+
} :root {
|
|
10
|
+
} :root {
|
|
11
|
+
} :root {
|
|
10
12
|
|
|
11
13
|
/* Hard */
|
|
12
14
|
|
|
13
15
|
/* Up */
|
|
14
16
|
|
|
15
17
|
/* Hard up */
|
|
16
|
-
}
|
|
17
|
-
:root {
|
|
18
|
+
} :root {
|
|
19
|
+
} :root {
|
|
18
20
|
--gap-s: 12px;
|
|
19
21
|
--gap-m: 16px;
|
|
20
|
-
}
|
|
21
|
-
:root {
|
|
22
|
+
} :root {
|
|
23
|
+
} :root {
|
|
22
24
|
--disabled-cursor: not-allowed;
|
|
23
25
|
--size-s-height: 48px;
|
|
24
26
|
--size-m-height: 56px;
|
|
25
27
|
--size-l-height: 64px;
|
|
26
28
|
--size-xl-height: 72px;
|
|
27
|
-
}
|
|
28
|
-
:root {
|
|
29
|
+
} :root {
|
|
29
30
|
|
|
30
31
|
/* options list */
|
|
31
32
|
--select-option-divider-display: none;
|
|
@@ -51,8 +52,7 @@
|
|
|
51
52
|
/* checkmark */
|
|
52
53
|
|
|
53
54
|
/* optgroup */
|
|
54
|
-
}
|
|
55
|
-
.option {
|
|
55
|
+
} .option {
|
|
56
56
|
font-size: 16px;
|
|
57
57
|
line-height: 20px;
|
|
58
58
|
font-weight: 400;
|
|
@@ -67,12 +67,10 @@
|
|
|
67
67
|
box-sizing: border-box;
|
|
68
68
|
position: relative;
|
|
69
69
|
cursor: pointer
|
|
70
|
-
}
|
|
71
|
-
.option:not(.disabled):active {
|
|
70
|
+
} .option:not(.disabled):active {
|
|
72
71
|
background: var(--select-option-active-background);
|
|
73
72
|
color: var(--select-option-active-color);
|
|
74
|
-
}
|
|
75
|
-
.option:before {
|
|
73
|
+
} .option:before {
|
|
76
74
|
content: '';
|
|
77
75
|
position: absolute;
|
|
78
76
|
left: var(--select-option-left-padding);
|
|
@@ -82,60 +80,45 @@
|
|
|
82
80
|
background: var(--select-option-divider-background);
|
|
83
81
|
display: var(--select-option-divider-display);
|
|
84
82
|
transition: opacity 0.2s ease;
|
|
85
|
-
}
|
|
86
|
-
.option:first-child:before {
|
|
83
|
+
} .option:first-child:before {
|
|
87
84
|
display: none;
|
|
88
|
-
}
|
|
89
|
-
.s {
|
|
85
|
+
} .s {
|
|
90
86
|
min-height: var(--size-s-height);
|
|
91
|
-
}
|
|
92
|
-
.m {
|
|
87
|
+
} .m {
|
|
93
88
|
min-height: var(--size-m-height);
|
|
94
|
-
}
|
|
95
|
-
.l {
|
|
89
|
+
} .l {
|
|
96
90
|
min-height: var(--size-l-height);
|
|
97
|
-
}
|
|
98
|
-
.xl {
|
|
91
|
+
} .xl {
|
|
99
92
|
min-height: var(--size-xl-height);
|
|
100
|
-
}
|
|
101
|
-
.l,
|
|
93
|
+
} .l,
|
|
102
94
|
.xl {
|
|
103
95
|
padding-left: var(--select-option-l-left-padding);
|
|
104
96
|
padding-right: var(--select-option-l-right-padding)
|
|
105
|
-
}
|
|
106
|
-
.l:before, .xl:before {
|
|
97
|
+
} .l:before, .xl:before {
|
|
107
98
|
left: var(--select-option-l-left-padding);
|
|
108
99
|
right: var(--select-option-l-right-padding);
|
|
109
|
-
}
|
|
110
|
-
.selected {
|
|
100
|
+
} .selected {
|
|
111
101
|
background: var(--select-option-selected-background);
|
|
112
102
|
color: var(--select-option-selected-color);
|
|
113
103
|
cursor: default;
|
|
114
|
-
}
|
|
115
|
-
.highlighted {
|
|
104
|
+
} .highlighted {
|
|
116
105
|
background: var(--select-option-hover-background);
|
|
117
106
|
color: var(--select-option-hover-color)
|
|
118
|
-
}
|
|
119
|
-
.highlighted:before,
|
|
107
|
+
} .highlighted:before,
|
|
120
108
|
.highlighted + .option:before {
|
|
121
109
|
opacity: 0;
|
|
122
|
-
}
|
|
123
|
-
.disabled {
|
|
110
|
+
} .disabled {
|
|
124
111
|
cursor: var(--disabled-cursor);
|
|
125
112
|
background: var(--select-option-disabled-background);
|
|
126
113
|
color: var(--select-option-disabled-color);
|
|
127
|
-
}
|
|
128
|
-
.content {
|
|
114
|
+
} .content {
|
|
129
115
|
overflow: hidden;
|
|
130
116
|
flex: 1;
|
|
131
117
|
text-overflow: ellipsis;
|
|
132
|
-
}
|
|
133
|
-
.textContent {
|
|
118
|
+
} .textContent {
|
|
134
119
|
padding-top: var(--gap-s);
|
|
135
120
|
padding-bottom: var(--gap-s);
|
|
136
|
-
}
|
|
137
|
-
/* IE min-height fix */
|
|
138
|
-
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
121
|
+
} /* IE min-height fix */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
139
122
|
.option:after {
|
|
140
123
|
min-height: inherit;
|
|
141
124
|
font-size: 0;
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
3
|
-
}
|
|
4
|
-
:root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
5
7
|
|
|
6
8
|
/* Hard */
|
|
7
9
|
|
|
8
10
|
/* Up */
|
|
9
11
|
|
|
10
12
|
/* Hard up */
|
|
11
|
-
}
|
|
12
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
13
15
|
--gap-s: 12px;
|
|
14
16
|
--gap-m: 16px;
|
|
15
17
|
--gap-xl: 24px;
|
|
16
|
-
}
|
|
17
|
-
:root {
|
|
18
|
+
} :root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
18
21
|
|
|
19
22
|
/* options list */
|
|
20
23
|
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
@@ -24,22 +27,18 @@
|
|
|
24
27
|
/* checkmark */
|
|
25
28
|
|
|
26
29
|
/* optgroup */
|
|
27
|
-
}
|
|
28
|
-
.optionsList {
|
|
30
|
+
} .optionsList {
|
|
29
31
|
overflow: auto;
|
|
30
32
|
width: 100%;
|
|
31
33
|
outline: none;
|
|
32
34
|
box-sizing: border-box;
|
|
33
|
-
}
|
|
34
|
-
.scrollable {
|
|
35
|
+
} .scrollable {
|
|
35
36
|
overflow: auto;
|
|
36
37
|
width: 100%;
|
|
37
|
-
}
|
|
38
|
-
.emptyPlaceholder {
|
|
38
|
+
} .emptyPlaceholder {
|
|
39
39
|
padding: var(--gap-m) var(--gap-s);
|
|
40
40
|
color: var(--select-options-list-empty-placeholder-color);
|
|
41
|
-
}
|
|
42
|
-
.l .emptyPlaceholder,
|
|
41
|
+
} .l .emptyPlaceholder,
|
|
43
42
|
.xl .emptyPlaceholder {
|
|
44
43
|
padding: var(--gap-xl) var(--gap-m);
|
|
45
44
|
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-border-primary: #dbdee1;
|
|
3
4
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
14
16
|
--gap-s: 12px;
|
|
15
17
|
--gap-m: 16px;
|
|
16
18
|
--gap-xl: 24px;
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
19
22
|
|
|
20
23
|
/* options list */
|
|
21
24
|
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
@@ -30,28 +33,23 @@
|
|
|
30
33
|
/* checkmark */
|
|
31
34
|
|
|
32
35
|
/* optgroup */
|
|
33
|
-
}
|
|
34
|
-
.virtualOptionsList {
|
|
36
|
+
} .virtualOptionsList {
|
|
35
37
|
width: 100%;
|
|
36
38
|
outline: none;
|
|
37
39
|
box-sizing: border-box;
|
|
38
40
|
position: relative;
|
|
39
|
-
}
|
|
40
|
-
.scrollable {
|
|
41
|
+
} .scrollable {
|
|
41
42
|
overflow: auto;
|
|
42
43
|
width: 100%;
|
|
43
|
-
}
|
|
44
|
-
.inner {
|
|
44
|
+
} .inner {
|
|
45
45
|
position: relative;
|
|
46
46
|
width: 100%;
|
|
47
|
-
}
|
|
48
|
-
.virtualRow {
|
|
47
|
+
} .virtualRow {
|
|
49
48
|
position: absolute;
|
|
50
49
|
top: 0;
|
|
51
50
|
left: 0;
|
|
52
51
|
width: 100%
|
|
53
|
-
}
|
|
54
|
-
.virtualRow:before {
|
|
52
|
+
} .virtualRow:before {
|
|
55
53
|
content: '';
|
|
56
54
|
position: absolute;
|
|
57
55
|
z-index: 1;
|
|
@@ -61,19 +59,15 @@
|
|
|
61
59
|
height: 1px;
|
|
62
60
|
background: var(--select-option-divider-background);
|
|
63
61
|
display: var(--select-option-divider-display);
|
|
64
|
-
}
|
|
65
|
-
.virtualRow:first-child:before {
|
|
62
|
+
} .virtualRow:first-child:before {
|
|
66
63
|
display: none;
|
|
67
|
-
}
|
|
68
|
-
.highlighted:before,
|
|
64
|
+
} .highlighted:before,
|
|
69
65
|
.highlighted + .virtualRow:before {
|
|
70
66
|
display: none;
|
|
71
|
-
}
|
|
72
|
-
.emptyPlaceholder {
|
|
67
|
+
} .emptyPlaceholder {
|
|
73
68
|
padding: var(--gap-m) var(--gap-s);
|
|
74
69
|
color: var(--select-options-list-empty-placeholder-color);
|
|
75
|
-
}
|
|
76
|
-
.l .emptyPlaceholder,
|
|
70
|
+
} .l .emptyPlaceholder,
|
|
77
71
|
.xl .emptyPlaceholder {
|
|
78
72
|
padding: var(--gap-xl) var(--gap-m);
|
|
79
73
|
}
|