@neovici/cosmoz-autocomplete 10.2.2 → 10.3.0
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.
|
@@ -17,7 +17,9 @@ export default css `
|
|
|
17
17
|
}
|
|
18
18
|
.content {
|
|
19
19
|
color: var(--cosmoz-autocomplete-chip-color, #424242);
|
|
20
|
+
font-family: var(--cosmoz-autocomplete-chip-text-font-family, 'Inter', sans-serif);
|
|
20
21
|
font-size: var(--cosmoz-autocomplete-chip-text-font-size, 12px);
|
|
22
|
+
font-weight: var(--cosmoz-autocomplete-chip-text-font-weight, 400);
|
|
21
23
|
line-height: var(--cosmoz-autocomplete-chip-text-line-height, 22px);
|
|
22
24
|
overflow: hidden;
|
|
23
25
|
text-overflow: ellipsis;
|
|
@@ -2,7 +2,7 @@ import { useEffect } from '@pionjs/pion';
|
|
|
2
2
|
import { array } from '@neovici/cosmoz-utils/array';
|
|
3
3
|
import { useMeta } from '@neovici/cosmoz-utils/hooks/use-meta';
|
|
4
4
|
export const useKeys = ({ focused, empty, ...rest }) => {
|
|
5
|
-
const enabled = focused && empty, meta = useMeta(rest);
|
|
5
|
+
const enabled = focused && empty && rest.limit !== 1, meta = useMeta(rest);
|
|
6
6
|
useEffect(() => {
|
|
7
7
|
if (!enabled) {
|
|
8
8
|
return;
|
|
@@ -11,7 +11,7 @@ const style = css `
|
|
|
11
11
|
font-family: var(--paper-font-subhead_-_font-family, inherit);
|
|
12
12
|
background: var(
|
|
13
13
|
--cosmoz-autocomplete-listbox-bg,
|
|
14
|
-
rgba(255, 255, 255, 0.
|
|
14
|
+
rgba(255, 255, 255, 0.2)
|
|
15
15
|
);
|
|
16
16
|
min-width: 50px;
|
|
17
17
|
backdrop-filter: blur(16px) saturate(180%);
|
|
@@ -36,10 +36,10 @@ const style = css `
|
|
|
36
36
|
position: relative;
|
|
37
37
|
overflow-y: auto;
|
|
38
38
|
contain: layout paint !important;
|
|
39
|
-
padding-bottom: var(--cosmoz-autocomplete-listbox-padding-bottom, 8px);
|
|
40
39
|
}
|
|
41
40
|
.item {
|
|
42
41
|
font-size: var(--cosmoz-autocomplete-listbox-font-size, 13px);
|
|
42
|
+
font-weight: var(--cosmoz-autocomplete-listbox-font-weight, 400);
|
|
43
43
|
padding: 0 22px;
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
width: 100%;
|
|
@@ -97,7 +97,6 @@ const style = css `
|
|
|
97
97
|
box-sizing: border-box;
|
|
98
98
|
vertical-align: middle;
|
|
99
99
|
border-radius: 50%;
|
|
100
|
-
border: 2px solid #eee;
|
|
101
100
|
}
|
|
102
101
|
[virtualizer-sizer]:not(.sizer) {
|
|
103
102
|
line-height: 1;
|