@alfalab/core-components-select 13.2.8 → 13.2.10
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-d0e7b8cf.d.ts → Component-4dccfbd0.d.ts} +0 -0
- package/{Component-d0e7b8cf.js → Component-4dccfbd0.js} +7 -7
- package/{Component-8614ce6b.d.ts → Component-d45b1eb6.d.ts} +0 -0
- package/{Component-8614ce6b.js → Component-d45b1eb6.js} +2 -2
- package/Component.d.ts +1 -1
- package/Component.js +4 -4
- package/Component.responsive.js +6 -6
- 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 +6 -6
- package/components/base-select-mobile/checkmark/Component.js +2 -5
- package/components/base-select-mobile/checkmark/index.css +15 -13
- package/components/base-select-mobile/checkmark/index.js +0 -2
- 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 +6 -6
- 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 +5 -4
- package/components/checkmark/index.css +28 -26
- package/components/checkmark/index.js +1 -0
- 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 +6 -6
- 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 +4 -4
- package/components/option/index.css +30 -47
- package/components/option/index.js +3 -3
- 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 +6 -6
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +6 -6
- package/components/select-modal-mobile/Component.js +6 -6
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +6 -6
- 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-e61bd989.d.ts → Component-29488b22.d.ts} +0 -0
- package/cssm/{Component-e61bd989.js → Component-29488b22.js} +2 -2
- package/cssm/Component.d.ts +1 -1
- package/cssm/Component.js +2 -2
- package/cssm/Component.responsive.js +3 -3
- 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/Component.js +3 -3
- package/cssm/components/base-select-mobile/checkmark/Component.js +1 -4
- package/cssm/components/base-select-mobile/checkmark/index.js +0 -2
- package/cssm/components/base-select-mobile/checkmark/index.module.css +14 -12
- package/cssm/components/base-select-mobile/index.d.ts +1 -1
- package/cssm/components/base-select-mobile/index.js +3 -3
- 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/Component.js +4 -3
- package/cssm/components/checkmark/index.js +1 -0
- package/cssm/components/checkmark/index.module.css +27 -25
- package/cssm/components/field/index.module.css +17 -23
- package/cssm/components/index.js +3 -3
- package/cssm/components/optgroup/index.module.css +13 -14
- package/cssm/components/option/Component.js +2 -2
- package/cssm/components/option/index.js +2 -2
- package/cssm/components/option/index.module.css +26 -43
- package/cssm/components/options-list/index.module.css +13 -14
- package/cssm/components/select-mobile/Component.js +3 -3
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +3 -3
- package/cssm/components/select-modal-mobile/Component.js +3 -3
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +3 -3
- package/cssm/components/virtual-options-list/index.module.css +18 -24
- package/cssm/index.js +3 -3
- package/cssm/presets/index.js +3 -3
- package/cssm/presets/useLazyLoading/hook.js +2 -2
- package/cssm/presets/useSelectWithApply/hook.js +3 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.module.css +12 -12
- package/cssm/presets/useSelectWithLoading/hook.js +2 -2
- package/cssm/responsive.js +3 -3
- package/cssm/typings.d.ts +1 -5
- package/esm/{Component-c09a6820.d.ts → Component-2d2efe5d.d.ts} +0 -0
- package/esm/{Component-c09a6820.js → Component-2d2efe5d.js} +2 -2
- package/esm/{Component-4ef9d6d2.d.ts → Component-909f3a34.d.ts} +0 -0
- package/esm/{Component-4ef9d6d2.js → Component-909f3a34.js} +7 -7
- package/esm/Component.d.ts +1 -1
- package/esm/Component.js +4 -4
- package/esm/Component.responsive.js +6 -6
- 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 +6 -6
- package/esm/components/base-select-mobile/checkmark/Component.js +2 -5
- package/esm/components/base-select-mobile/checkmark/index.css +15 -13
- package/esm/components/base-select-mobile/checkmark/index.js +0 -2
- 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 +6 -6
- 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 +4 -4
- package/esm/components/checkmark/index.css +28 -26
- package/esm/components/checkmark/index.js +1 -0
- 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 +6 -6
- 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 +4 -4
- package/esm/components/option/index.css +30 -47
- package/esm/components/option/index.js +3 -3
- 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 +6 -6
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +6 -6
- package/esm/components/select-modal-mobile/Component.js +6 -6
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +6 -6
- 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 +6 -6
- package/esm/{intersection-observer-c9397884.d.ts → intersection-observer-eebe1d7d.d.ts} +0 -0
- package/esm/{intersection-observer-c9397884.js → intersection-observer-eebe1d7d.js} +0 -0
- package/esm/presets/index.js +6 -6
- package/esm/presets/useLazyLoading/hook.js +5 -5
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +6 -6
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +6 -6
- 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 +6 -6
- package/esm/presets/useSelectWithLoading/hook.js +4 -4
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +6 -6
- package/esm/{tslib.es6-3c9b3142.d.ts → tslib.es6-00fefe9b.d.ts} +0 -0
- package/esm/{tslib.es6-3c9b3142.js → tslib.es6-00fefe9b.js} +0 -0
- package/esm/typings.d.ts +1 -5
- package/index.js +6 -6
- package/{intersection-observer-8ba57140.d.ts → intersection-observer-0845add3.d.ts} +0 -0
- package/{intersection-observer-8ba57140.js → intersection-observer-0845add3.js} +0 -0
- package/modern/{Component-8d6d6d34.d.ts → Component-2a37a356.d.ts} +0 -0
- package/modern/{Component-8d6d6d34.js → Component-2a37a356.js} +1 -1
- package/modern/{Component-c2b10ca0.d.ts → Component-79964ac6.d.ts} +0 -0
- package/modern/{Component-c2b10ca0.js → Component-79964ac6.js} +6 -6
- package/modern/Component.d.ts +1 -1
- package/modern/Component.js +3 -3
- package/modern/Component.responsive.js +5 -5
- 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 +5 -5
- package/modern/components/base-select-mobile/checkmark/Component.js +2 -5
- package/modern/components/base-select-mobile/checkmark/index.css +15 -13
- package/modern/components/base-select-mobile/checkmark/index.js +0 -2
- 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 +5 -5
- 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 +4 -4
- package/modern/components/checkmark/index.css +28 -26
- package/modern/components/checkmark/index.js +1 -0
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +18 -24
- package/modern/components/index.js +5 -5
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +15 -16
- package/modern/components/option/Component.js +3 -3
- package/modern/components/option/index.css +30 -47
- package/modern/components/option/index.js +2 -2
- 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 +5 -5
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +5 -5
- package/modern/components/select-modal-mobile/Component.js +5 -5
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +5 -5
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +21 -27
- package/modern/index.js +5 -5
- package/modern/{intersection-observer-c9397884.d.ts → intersection-observer-eebe1d7d.d.ts} +0 -0
- package/modern/{intersection-observer-c9397884.js → intersection-observer-eebe1d7d.js} +0 -0
- package/modern/presets/index.js +5 -5
- package/modern/presets/useLazyLoading/hook.js +4 -4
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +5 -5
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -5
- 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 +5 -5
- package/modern/presets/useSelectWithLoading/hook.js +3 -3
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +5 -5
- package/modern/typings.d.ts +1 -5
- package/package.json +7 -7
- package/presets/index.js +6 -6
- package/presets/useLazyLoading/hook.js +5 -5
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +6 -6
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +6 -6
- 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 +6 -6
- package/presets/useSelectWithLoading/hook.js +4 -4
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +6 -6
- package/{tslib.es6-765af8e2.d.ts → tslib.es6-ade45ad3.d.ts} +0 -0
- package/{tslib.es6-765af8e2.js → tslib.es6-ade45ad3.js} +0 -0
- package/typings.d.ts +1 -5
|
@@ -1,12 +1,19 @@
|
|
|
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 {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
10
17
|
|
|
11
18
|
/* options list */
|
|
12
19
|
|
|
@@ -15,17 +22,14 @@
|
|
|
15
22
|
/* checkmark */
|
|
16
23
|
|
|
17
24
|
/* optgroup */
|
|
18
|
-
}
|
|
19
|
-
.checkmark {
|
|
25
|
+
} .checkmark {
|
|
20
26
|
flex-shrink: 0;
|
|
21
27
|
box-sizing: border-box;
|
|
22
|
-
}
|
|
23
|
-
.single {
|
|
28
|
+
} .single {
|
|
24
29
|
display: flex;
|
|
25
30
|
align-items: center;
|
|
26
31
|
justify-content: center;
|
|
27
32
|
opacity: 0
|
|
28
|
-
}
|
|
29
|
-
.single.selected {
|
|
33
|
+
} .single.selected {
|
|
30
34
|
opacity: 1;
|
|
31
35
|
}
|
|
@@ -1,28 +1,29 @@
|
|
|
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-text-primary: #0b1f35;
|
|
6
7
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
7
|
-
}
|
|
8
|
-
:root {
|
|
8
|
+
} :root {
|
|
9
|
+
} :root {
|
|
10
|
+
} :root {
|
|
9
11
|
|
|
10
12
|
/* Hard */
|
|
11
13
|
|
|
12
14
|
/* Up */
|
|
13
15
|
|
|
14
16
|
/* Hard up */
|
|
15
|
-
}
|
|
16
|
-
:root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
17
19
|
--gap-s: 12px;
|
|
18
20
|
--gap-m: 16px;
|
|
19
21
|
--gap-l: 20px;
|
|
20
|
-
}
|
|
21
|
-
:root {
|
|
22
|
+
} :root {
|
|
23
|
+
} :root {
|
|
22
24
|
--disabled-cursor: not-allowed;
|
|
23
25
|
--size-s-height: 48px;
|
|
24
|
-
}
|
|
25
|
-
:root {
|
|
26
|
+
} :root {
|
|
26
27
|
|
|
27
28
|
/* options list */
|
|
28
29
|
|
|
@@ -41,8 +42,7 @@
|
|
|
41
42
|
/* checkmark */
|
|
42
43
|
|
|
43
44
|
/* optgroup */
|
|
44
|
-
}
|
|
45
|
-
.option {
|
|
45
|
+
} .option {
|
|
46
46
|
font-size: 16px;
|
|
47
47
|
line-height: 20px;
|
|
48
48
|
font-weight: 400;
|
|
@@ -58,43 +58,32 @@
|
|
|
58
58
|
position: relative;
|
|
59
59
|
cursor: pointer;
|
|
60
60
|
min-height: var(--size-s-height)
|
|
61
|
-
}
|
|
62
|
-
.option:not(.disabled):active {
|
|
61
|
+
} .option:not(.disabled):active {
|
|
63
62
|
background: var(--select-option-active-background);
|
|
64
63
|
color: var(--select-option-active-color);
|
|
65
|
-
}
|
|
66
|
-
.option.checkmarkBefore {
|
|
64
|
+
} .option.checkmarkBefore {
|
|
67
65
|
padding: 0 0 0 var(--gap-s)
|
|
68
|
-
}
|
|
69
|
-
.option.checkmarkBefore.mobile {
|
|
66
|
+
} .option.checkmarkBefore.mobile {
|
|
70
67
|
padding-left: var(--gap-m);
|
|
71
|
-
}
|
|
72
|
-
.option.checkmarkAfter {
|
|
68
|
+
} .option.checkmarkAfter {
|
|
73
69
|
padding: 0 var(--gap-s) 0 0
|
|
74
|
-
}
|
|
75
|
-
.option.checkmarkAfter.mobile {
|
|
70
|
+
} .option.checkmarkAfter.mobile {
|
|
76
71
|
padding-right: var(--gap-l);
|
|
77
|
-
}
|
|
78
|
-
.option.textContent {
|
|
72
|
+
} .option.textContent {
|
|
79
73
|
padding: var(--gap-s)
|
|
80
|
-
}
|
|
81
|
-
.option.textContent.mobile {
|
|
74
|
+
} .option.textContent.mobile {
|
|
82
75
|
padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
|
|
83
|
-
}
|
|
84
|
-
.selected {
|
|
76
|
+
} .selected {
|
|
85
77
|
background: var(--select-option-selected-background);
|
|
86
78
|
color: var(--select-option-selected-color);
|
|
87
79
|
cursor: default;
|
|
88
|
-
}
|
|
89
|
-
.highlighted {
|
|
80
|
+
} .highlighted {
|
|
90
81
|
background: var(--select-option-hover-background);
|
|
91
82
|
color: var(--select-option-hover-color);
|
|
92
|
-
}
|
|
93
|
-
.disabled {
|
|
83
|
+
} .disabled {
|
|
94
84
|
cursor: var(--disabled-cursor);
|
|
95
85
|
background: var(--select-option-disabled-background);
|
|
96
86
|
color: var(--select-option-disabled-color);
|
|
97
|
-
}
|
|
98
|
-
.content {
|
|
87
|
+
} .content {
|
|
99
88
|
flex: 1;
|
|
100
89
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-bg-primary: #fff;
|
|
3
|
-
}
|
|
4
|
-
:root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
5
7
|
--shadow-m: 0 0 16px rgba(11, 31, 53, 0.08), 0 8px 16px rgba(11, 31, 53, 0.16);
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
@@ -9,14 +11,13 @@
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
-
--gap-2xs: 4px;
|
|
15
|
-
}
|
|
16
|
-
:root {
|
|
14
|
+
} :root {
|
|
17
15
|
--border-radius-m: 8px;
|
|
18
|
-
}
|
|
19
|
-
:
|
|
16
|
+
} :root {
|
|
17
|
+
--gap-2xs: 4px;
|
|
18
|
+
} :root {
|
|
19
|
+
} :root {
|
|
20
|
+
} :root {
|
|
20
21
|
|
|
21
22
|
/* options list */
|
|
22
23
|
|
|
@@ -32,13 +33,11 @@
|
|
|
32
33
|
/* checkmark */
|
|
33
34
|
|
|
34
35
|
/* optgroup */
|
|
35
|
-
}
|
|
36
|
-
.component {
|
|
36
|
+
} .component {
|
|
37
37
|
width: max-content;
|
|
38
38
|
position: relative;
|
|
39
39
|
outline: 0;
|
|
40
|
-
}
|
|
41
|
-
.popoverInner {
|
|
40
|
+
} .popoverInner {
|
|
42
41
|
padding-top: var(--select-options-list-offset);
|
|
43
42
|
padding-bottom: var(--select-options-list-offset);
|
|
44
43
|
box-shadow: none;
|
|
@@ -46,8 +45,7 @@
|
|
|
46
45
|
background: transparent;
|
|
47
46
|
border-radius: 0;
|
|
48
47
|
position: relative;
|
|
49
|
-
}
|
|
50
|
-
.optionsList {
|
|
48
|
+
} .optionsList {
|
|
51
49
|
padding-top: var(--select-options-list-top-padding);
|
|
52
50
|
padding-bottom: var(--select-options-list-bottom-padding);
|
|
53
51
|
box-shadow: var(--select-options-list-box-shadow);
|
|
@@ -55,8 +53,7 @@
|
|
|
55
53
|
background: var(--select-option-background);
|
|
56
54
|
overflow: hidden;
|
|
57
55
|
will-change: transform;
|
|
58
|
-
}
|
|
59
|
-
.nativeSelect {
|
|
56
|
+
} .nativeSelect {
|
|
60
57
|
opacity: 0;
|
|
61
58
|
overflow: hidden;
|
|
62
59
|
position: absolute;
|
|
@@ -69,12 +66,9 @@
|
|
|
69
66
|
height: 100%;
|
|
70
67
|
cursor: pointer;
|
|
71
68
|
z-index: 1;
|
|
72
|
-
}
|
|
73
|
-
.block {
|
|
69
|
+
} .block {
|
|
74
70
|
width: 100%;
|
|
75
|
-
}
|
|
76
|
-
/* width: max-content; fix for IE */
|
|
77
|
-
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
71
|
+
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
78
72
|
.component {
|
|
79
73
|
float: left;
|
|
80
74
|
clear: left;
|
|
@@ -10,7 +10,7 @@ require('@alfalab/core-components-modal/cssm/mobile');
|
|
|
10
10
|
require('../../Component.js');
|
|
11
11
|
require('../arrow/Component.js');
|
|
12
12
|
require('../../Component-d0e84442.js');
|
|
13
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../Component-
|
|
13
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../Component-29488b22.js');
|
|
14
14
|
require('../field/Component.js');
|
|
15
15
|
require('../optgroup/Component.js');
|
|
16
16
|
require('../option/Component.js');
|
|
@@ -38,12 +38,12 @@ require('../base-select/index.module.css');
|
|
|
38
38
|
require('@alfalab/core-components-form-control/cssm');
|
|
39
39
|
require('../field/index.module.css');
|
|
40
40
|
require('../optgroup/index.module.css');
|
|
41
|
-
require('@alfalab/core-components-badge/cssm');
|
|
42
|
-
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
43
41
|
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
44
42
|
require('./checkmark/index.module.css');
|
|
45
43
|
require('../checkmark/Component.js');
|
|
44
|
+
require('@alfalab/core-components-badge/cssm');
|
|
46
45
|
require('@alfalab/core-components-checkbox/cssm');
|
|
46
|
+
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
47
47
|
require('../checkmark/index.module.css');
|
|
48
48
|
require('../option/index.module.css');
|
|
49
49
|
require('../options-list/index.module.css');
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var cn = require('classnames');
|
|
5
|
-
var coreComponentsBadge = require('@alfalab/core-components-badge/cssm');
|
|
6
|
-
var CheckmarkCircleMIcon = require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
7
5
|
var CheckmarkMIcon = require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
8
6
|
var styles = require('./index.module.css');
|
|
9
7
|
|
|
@@ -19,8 +17,7 @@ var Checkmark = function (_a) {
|
|
|
19
17
|
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.checkmark, className, (_b = {},
|
|
20
18
|
_b[styles__default.default.selected] = selected,
|
|
21
19
|
_b)) },
|
|
22
|
-
React__default.default.createElement(CheckmarkMIcon.CheckmarkMIcon, { className: styles__default.default.displayIcon })
|
|
23
|
-
React__default.default.createElement(coreComponentsBadge.Badge, { className: styles__default.default.displayBadge, view: 'icon', size: 'm', iconColor: 'positive', content: React__default.default.createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, null) })));
|
|
20
|
+
React__default.default.createElement(CheckmarkMIcon.CheckmarkMIcon, { className: styles__default.default.displayIcon })));
|
|
24
21
|
};
|
|
25
22
|
|
|
26
23
|
exports.Checkmark = Checkmark;
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
var components_baseSelectMobile_checkmark_Component = require('./Component.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
|
-
require('@alfalab/core-components-badge/cssm');
|
|
7
|
-
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
8
6
|
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
9
7
|
require('./index.module.css');
|
|
10
8
|
|
|
@@ -1,12 +1,19 @@
|
|
|
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 {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
10
17
|
|
|
11
18
|
/* options list */
|
|
12
19
|
|
|
@@ -17,8 +24,7 @@
|
|
|
17
24
|
--select-mobile-checkmark-display-badge: none;
|
|
18
25
|
|
|
19
26
|
/* optgroup */
|
|
20
|
-
}
|
|
21
|
-
.checkmark {
|
|
27
|
+
} .checkmark {
|
|
22
28
|
flex-shrink: 0;
|
|
23
29
|
display: flex;
|
|
24
30
|
align-items: center;
|
|
@@ -26,16 +32,12 @@
|
|
|
26
32
|
width: 24px;
|
|
27
33
|
height: 24px;
|
|
28
34
|
opacity: 0
|
|
29
|
-
}
|
|
30
|
-
.checkmark:first-child {
|
|
35
|
+
} .checkmark:first-child {
|
|
31
36
|
display: none;
|
|
32
|
-
}
|
|
33
|
-
.checkmark.selected {
|
|
37
|
+
} .checkmark.selected {
|
|
34
38
|
opacity: 1;
|
|
35
|
-
}
|
|
36
|
-
.displayIcon {
|
|
39
|
+
} .displayIcon {
|
|
37
40
|
display: var(--select-mobile-checkmark-display-icon);
|
|
38
|
-
}
|
|
39
|
-
.displayBadge {
|
|
41
|
+
} .displayBadge {
|
|
40
42
|
display: var(--select-mobile-checkmark-display-badge);
|
|
41
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-29488b22";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../Component-
|
|
3
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../Component-29488b22.js');
|
|
4
4
|
require('../../tslib.es6-0e9bf404.js');
|
|
5
5
|
require('react');
|
|
6
6
|
require('../arrow/Component.js');
|
|
@@ -26,12 +26,12 @@ require('../optgroup/Component.js');
|
|
|
26
26
|
require('../optgroup/index.module.css');
|
|
27
27
|
require('../option/Component.js');
|
|
28
28
|
require('./checkmark/Component.js');
|
|
29
|
-
require('@alfalab/core-components-badge/cssm');
|
|
30
|
-
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
31
29
|
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
32
30
|
require('./checkmark/index.module.css');
|
|
33
31
|
require('../checkmark/Component.js');
|
|
32
|
+
require('@alfalab/core-components-badge/cssm');
|
|
34
33
|
require('@alfalab/core-components-checkbox/cssm');
|
|
34
|
+
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
35
35
|
require('../checkmark/index.module.css');
|
|
36
36
|
require('../option/index.module.css');
|
|
37
37
|
require('../options-list/Component.js');
|
|
@@ -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
|
}
|
|
@@ -5,26 +5,27 @@ var cn = require('classnames');
|
|
|
5
5
|
var coreComponentsBadge = require('@alfalab/core-components-badge/cssm');
|
|
6
6
|
var coreComponentsCheckbox = require('@alfalab/core-components-checkbox/cssm');
|
|
7
7
|
var CheckmarkCircleMIcon = require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
8
|
+
var CheckmarkMIcon = require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
8
9
|
var styles = require('./index.module.css');
|
|
9
10
|
|
|
10
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
12
|
|
|
12
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
|
+
var CheckmarkMIcon__default = /*#__PURE__*/_interopDefaultCompat(CheckmarkMIcon);
|
|
14
16
|
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
15
17
|
|
|
16
18
|
var Checkmark = function (_a) {
|
|
17
19
|
var _b;
|
|
18
20
|
var selected = _a.selected, _c = _a.disabled, disabled = _c === void 0 ? false : _c, className = _a.className, multiple = _a.multiple, _d = _a.position, position = _d === void 0 ? 'before' : _d;
|
|
19
|
-
var single = !multiple
|
|
21
|
+
var single = !multiple;
|
|
20
22
|
var checkmarkClassNames = cn__default.default(styles__default.default.checkmark, className, styles__default.default[position], (_b = {},
|
|
21
23
|
_b[styles__default.default.multiple] = !single,
|
|
22
24
|
_b[styles__default.default.single] = single,
|
|
23
25
|
_b[styles__default.default.selected] = selected,
|
|
24
26
|
_b));
|
|
25
27
|
var handleCheckboxClick = React.useCallback(function (event) { return event.stopPropagation(); }, []);
|
|
26
|
-
return single ? (React__default.default.createElement("div", { className: checkmarkClassNames },
|
|
27
|
-
React__default.default.createElement(coreComponentsBadge.Badge, { className: styles__default.default.after, view: 'icon', size: 'm', iconColor: 'positive', content: React__default.default.createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, { className: styles__default.default.colorIcon }) }))) : (React__default.default.createElement(coreComponentsCheckbox.Checkbox, { checked: selected, disabled: disabled, className: checkmarkClassNames, size: 'm', onClick: handleCheckboxClick }));
|
|
28
|
+
return single ? (React__default.default.createElement("div", { className: checkmarkClassNames }, position === 'before' ? (React__default.default.createElement(coreComponentsBadge.Badge, { className: styles__default.default.after, view: 'icon', size: 'm', iconColor: 'positive', content: React__default.default.createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, { className: styles__default.default.colorIcon }) })) : (React__default.default.createElement(CheckmarkMIcon__default.default, { className: cn__default.default(styles__default.default.displayIcon) })))) : (React__default.default.createElement(coreComponentsCheckbox.Checkbox, { checked: selected, disabled: disabled, className: checkmarkClassNames, size: 'm', onClick: handleCheckboxClick }));
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
exports.Checkmark = Checkmark;
|
|
@@ -6,6 +6,7 @@ require('classnames');
|
|
|
6
6
|
require('@alfalab/core-components-badge/cssm');
|
|
7
7
|
require('@alfalab/core-components-checkbox/cssm');
|
|
8
8
|
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
9
|
+
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
9
10
|
require('./index.module.css');
|
|
10
11
|
|
|
11
12
|
|
|
@@ -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
|
|
|
@@ -26,20 +27,23 @@
|
|
|
26
27
|
/* checkmark */
|
|
27
28
|
|
|
28
29
|
--select-checkmark-margin: 0 var(--gap-xs) 0 0;
|
|
30
|
+
--select-checkmark-margin-after: var(--select-checkmark-margin);
|
|
29
31
|
--select-checkmark-size: 4px;
|
|
30
32
|
--select-checkmark-before-display: 'flex';
|
|
31
33
|
--select-checkmark-after-display: none;
|
|
34
|
+
--select-checkmark-before-display-multiple: block;
|
|
35
|
+
--select-checkmark-after-display-single: none;
|
|
32
36
|
--select-checkmark-unselected-opacity: 0;
|
|
33
37
|
--select-checkmark-background: var(--color-light-graphic-primary);
|
|
34
38
|
--select-checkmark-border-radius: var(--border-radius-circle);
|
|
35
39
|
|
|
36
40
|
/* optgroup */
|
|
37
|
-
}
|
|
38
|
-
.checkmark {
|
|
41
|
+
} .checkmark {
|
|
39
42
|
flex-shrink: 0;
|
|
40
|
-
margin: var(--select-checkmark-margin)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
+
margin: var(--select-checkmark-margin)
|
|
44
|
+
} .checkmark.after {
|
|
45
|
+
margin: var(--select-checkmark-margin-after);
|
|
46
|
+
} .single {
|
|
43
47
|
display: flex;
|
|
44
48
|
align-items: center;
|
|
45
49
|
justify-content: center;
|
|
@@ -49,19 +53,17 @@
|
|
|
49
53
|
border-radius: var(--select-checkmark-border-radius);
|
|
50
54
|
width: var(--select-checkmark-size);
|
|
51
55
|
height: var(--select-checkmark-size)
|
|
52
|
-
}
|
|
53
|
-
.single.selected {
|
|
56
|
+
} .single.selected {
|
|
54
57
|
opacity: 1;
|
|
55
|
-
}
|
|
56
|
-
.before {
|
|
58
|
+
} .before {
|
|
57
59
|
display: var(--select-checkmark-before-display)
|
|
58
|
-
}
|
|
59
|
-
.before.multiple {
|
|
60
|
+
} .before.multiple {
|
|
60
61
|
margin-right: var(--gap-s);
|
|
61
|
-
|
|
62
|
-
.after {
|
|
63
|
-
display: var(--select-checkmark-after-display)
|
|
64
|
-
}
|
|
65
|
-
|
|
62
|
+
display: var(--select-checkmark-before-display-multiple);
|
|
63
|
+
} .after {
|
|
64
|
+
display: var(--select-checkmark-after-display)
|
|
65
|
+
} .after.single {
|
|
66
|
+
display: var(--select-checkmark-after-display-single);
|
|
67
|
+
} .colorIcon {
|
|
66
68
|
color: var(--color-light-graphic-positive);
|
|
67
69
|
}
|