@daeryun/dr_components 1.2.68 → 1.2.69
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.
|
@@ -11,7 +11,7 @@ declare const SearchBar: (props: {
|
|
|
11
11
|
border?: boolean;
|
|
12
12
|
isMarginNotAuto?: boolean;
|
|
13
13
|
marginTop?: [number, number, number];
|
|
14
|
-
marginBottom?: number;
|
|
14
|
+
marginBottom?: number | [number, number, number];
|
|
15
15
|
btnLabel?: string;
|
|
16
16
|
}) => React.JSX.Element;
|
|
17
17
|
export default SearchBar;
|
|
@@ -37,20 +37,20 @@ const SearchBar = (props) => {
|
|
|
37
37
|
{!isIntegrate ? (<style>{`
|
|
38
38
|
.search_box {
|
|
39
39
|
margin-top: ${marginTop ? marginTop[0] : 150}px;
|
|
40
|
-
margin-bottom: ${marginBottom ? marginBottom : 90}px;
|
|
40
|
+
margin-bottom: ${marginBottom ? (Array.isArray(marginBottom) ? marginBottom[0] : marginBottom) : 90}px;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
@media (max-width: 768px) {
|
|
44
44
|
.search_box {
|
|
45
45
|
margin-top: ${marginTop ? marginTop[1] : 80}px;
|
|
46
|
-
margin-bottom:
|
|
46
|
+
margin-bottom: ${marginBottom && Array.isArray(marginBottom) ? marginBottom[1] : 80}px;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
@media (max-width: 640px) {
|
|
51
51
|
.search_box {
|
|
52
52
|
margin-top: ${marginTop ? marginTop[2] : 50}px;
|
|
53
|
-
margin-bottom:
|
|
53
|
+
margin-bottom: ${marginBottom && Array.isArray(marginBottom) ? marginBottom[2] : 50}px;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -19,7 +19,7 @@ const SearchBar = (props: {
|
|
|
19
19
|
border?: boolean;
|
|
20
20
|
isMarginNotAuto?: boolean; //중앙정렬 아닐 시 true
|
|
21
21
|
marginTop?: [number, number, number]; //기본값 존재, 순서대로 all, 768px, 640px
|
|
22
|
-
marginBottom?: number; //기본값
|
|
22
|
+
marginBottom?: number | [number, number, number]; //기본값 존재, number면 pc에만 적용, 배열이면 순서대로 all, 768px, 640px
|
|
23
23
|
btnLabel?: string;
|
|
24
24
|
}) => {
|
|
25
25
|
const {
|
|
@@ -72,20 +72,20 @@ const SearchBar = (props: {
|
|
|
72
72
|
<style>{`
|
|
73
73
|
.search_box {
|
|
74
74
|
margin-top: ${marginTop ? marginTop[0] : 150}px;
|
|
75
|
-
margin-bottom: ${marginBottom ? marginBottom : 90}px;
|
|
75
|
+
margin-bottom: ${marginBottom ? (Array.isArray(marginBottom) ? marginBottom[0] : marginBottom) : 90}px;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
@media (max-width: 768px) {
|
|
79
79
|
.search_box {
|
|
80
80
|
margin-top: ${marginTop ? marginTop[1] : 80}px;
|
|
81
|
-
margin-bottom:
|
|
81
|
+
margin-bottom: ${marginBottom && Array.isArray(marginBottom) ? marginBottom[1] : 80}px;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
|
|
85
85
|
@media (max-width: 640px) {
|
|
86
86
|
.search_box {
|
|
87
87
|
margin-top: ${marginTop ? marginTop[2] : 50}px;
|
|
88
|
-
margin-bottom:
|
|
88
|
+
margin-bottom: ${marginBottom && Array.isArray(marginBottom) ? marginBottom[2] : 50}px;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|