meticulous-ui 1.8.3 → 1.8.4
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/Dropdown/styles.js +26 -21
- package/package.json +1 -1
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import o, { css as e, keyframes as
|
|
1
|
+
import o, { css as e, keyframes as t } from "../../node_modules/styled-components/dist/styled-components.browser.esm.js";
|
|
2
2
|
import n from "../../colors/grey.js";
|
|
3
3
|
import m from "../Typography/P/P.js";
|
|
4
|
-
import
|
|
5
|
-
import { DEFAULT_BORDER as
|
|
6
|
-
import
|
|
7
|
-
const d =
|
|
4
|
+
import a from "../Icons/ChevronDown/ChevronDown.js";
|
|
5
|
+
import { DEFAULT_BORDER as s } from "./constants.js";
|
|
6
|
+
import p from "../../colors/white.js";
|
|
7
|
+
const d = t`
|
|
8
8
|
from {
|
|
9
9
|
transform: rotate(0deg);
|
|
10
10
|
}
|
|
11
11
|
to {
|
|
12
12
|
transform: rotate(180deg);
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`, f = t`
|
|
15
|
+
from {
|
|
16
|
+
transform: rotate(180deg);
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
transform: rotate(0deg);
|
|
20
|
+
}
|
|
21
|
+
`, g = o.div`
|
|
15
22
|
max-width: ${({ $width: r }) => r};
|
|
16
23
|
position: relative;
|
|
17
24
|
|
|
@@ -27,31 +34,29 @@ const d = i`
|
|
|
27
34
|
height: 2rem;
|
|
28
35
|
width: ${({ $width: r }) => r};
|
|
29
36
|
border-radius: 0.6rem;
|
|
30
|
-
border: ${({ $isOpen: r, $border:
|
|
37
|
+
border: ${({ $isOpen: r, $border: i }) => r ? `2px solid ${i}` : `1px solid ${s}`};
|
|
31
38
|
padding: 0.4rem 0.6rem 0.4rem;
|
|
32
39
|
display: flex;
|
|
33
40
|
align-items: center;
|
|
34
41
|
justify-content: space-between;
|
|
35
42
|
cursor: pointer;
|
|
36
|
-
`,
|
|
43
|
+
`, u = o(m)`
|
|
37
44
|
overflow: hidden;
|
|
38
45
|
white-space: nowrap;
|
|
39
46
|
text-overflow: ellipsis;
|
|
40
47
|
max-width: calc(${({ $width: r }) => r} - 2rem);
|
|
41
48
|
pointer-events: none;
|
|
42
|
-
`,
|
|
43
|
-
${({ $isOpen: r }) => r
|
|
44
|
-
animation: ${d} 0.2s linear;
|
|
45
|
-
`};
|
|
49
|
+
`, x = o(a)`
|
|
50
|
+
animation: ${({ $isOpen: r }) => r ? d : f} 0.15s linear;
|
|
46
51
|
transform: rotate(${({ $isOpen: r }) => r ? 180 : 0}deg);
|
|
47
|
-
`,
|
|
48
|
-
border: 1px solid ${n.
|
|
52
|
+
`, y = o.div`
|
|
53
|
+
border: 1px solid ${n.m700};
|
|
49
54
|
width: calc(${({ $width: r }) => r} + 1rem);
|
|
50
55
|
max-height: ${({ $height: r }) => r};
|
|
51
56
|
overflow: auto;
|
|
52
57
|
position: absolute;
|
|
53
58
|
z-index: 1000;
|
|
54
|
-
background-color: ${
|
|
59
|
+
background-color: ${p};
|
|
55
60
|
left: 0.15rem;
|
|
56
61
|
|
|
57
62
|
${({ $top: r }) => r ? e`
|
|
@@ -65,16 +70,16 @@ const d = i`
|
|
|
65
70
|
border-bottom-left-radius: 0.6rem;
|
|
66
71
|
border-top-width: 0;
|
|
67
72
|
`}
|
|
68
|
-
`,
|
|
73
|
+
`, D = o.div`
|
|
69
74
|
position: absolute;
|
|
70
75
|
top: 0.7rem;
|
|
71
76
|
right: 1rem;
|
|
72
77
|
`;
|
|
73
78
|
export {
|
|
74
79
|
v as Box,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
x as ChevronDownWrapper,
|
|
81
|
+
g as DropdownWrapper,
|
|
82
|
+
y as OptionWrapper,
|
|
83
|
+
u as PWrapper,
|
|
84
|
+
D as SpinnerWrapper
|
|
80
85
|
};
|