jeawin-astro 3.0.63 → 3.0.65
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/package.json
CHANGED
|
@@ -13,24 +13,24 @@ const searchLang = render_lang(all_langs, "Search");
|
|
|
13
13
|
|
|
14
14
|
<div>
|
|
15
15
|
<div x-data={`{
|
|
16
|
-
showSearchForm
|
|
16
|
+
showSearchForm:false,
|
|
17
17
|
openSearchForm(){
|
|
18
|
-
this.showSearchForm =
|
|
18
|
+
this.showSearchForm = true;
|
|
19
19
|
if(document.querySelector('#navbar-header')){
|
|
20
20
|
const navbarHeight = document.querySelector('#navbar-header').getBoundingClientRect().height;
|
|
21
21
|
this.$refs.searchFormWrapper.style.minHeight = Math.ceil(navbarHeight)+'px';
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
closeSearchForm(){
|
|
25
|
-
this.showSearchForm =
|
|
25
|
+
this.showSearchForm = false;
|
|
26
26
|
}
|
|
27
27
|
}`} class="w-full" :class={`{'w-full':showSearchForm}`}>
|
|
28
|
-
<div class="size-5">
|
|
28
|
+
<div class:list={["size-5",{"md:hidden":show_search_box}]} x-show="!showSearchForm">
|
|
29
29
|
<Icon
|
|
30
30
|
name="fa6-solid:magnifying-glass"
|
|
31
31
|
class:list={["search-input-icon","size-5 cursor-pointer", {"md:hidden":show_search_box}, search_icon_style]}
|
|
32
32
|
x-on:click="openSearchForm"
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
/>
|
|
35
35
|
</div>
|
|
36
36
|
|
|
@@ -49,7 +49,7 @@ const searchLang = render_lang(all_langs, "Search");
|
|
|
49
49
|
<input
|
|
50
50
|
type="text"
|
|
51
51
|
name="q"
|
|
52
|
-
class="block bg-white w-full border border-slate-300 rounded-md py-2 pr-3 shadow-xs placeholder:italic placeholder:text-slate-400 focus:outline-hidden focus:border-sky-500 focus:ring-sky-500 focus:ring-1 sm:text-sm"
|
|
52
|
+
class="block bg-white text-black w-full border border-slate-300 rounded-md py-2 pr-3 shadow-xs placeholder:italic placeholder:text-slate-400 focus:outline-hidden focus:border-sky-500 focus:ring-sky-500 focus:ring-1 sm:text-sm"
|
|
53
53
|
placeholder={searchInputLang}
|
|
54
54
|
autocomplete="off" required="required"
|
|
55
55
|
/>
|
|
@@ -59,7 +59,7 @@ const searchLang = render_lang(all_langs, "Search");
|
|
|
59
59
|
</label>
|
|
60
60
|
<Icon
|
|
61
61
|
name="fa6-solid:xmark"
|
|
62
|
-
class="search-input-clear-icon size-5 text-red-500 cursor-pointer"
|
|
62
|
+
class:list={["search-input-clear-icon size-5 text-red-500 cursor-pointer",{'hidden':show_search_box}]}
|
|
63
63
|
x-on:click="closeSearchForm"
|
|
64
64
|
/>
|
|
65
65
|
</div>
|