y200subcontrols 0.0.384 → 0.0.386
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.
|
@@ -25,7 +25,7 @@ function closeMenu() {
|
|
|
25
25
|
<button
|
|
26
26
|
type="button"
|
|
27
27
|
on:click={openMenu}
|
|
28
|
-
class="text-2xl py-
|
|
28
|
+
class="text-2xl py-2 px-3 my-aut
|
|
29
29
|
bg-white rounded-md transition-all ease-in-out duration-300
|
|
30
30
|
{theme === 'blue' ? 'text-blue-500 hover:bg-blue-500 hover:text-blue-50 ' : ''}
|
|
31
31
|
{theme === 'red' ? 'text-red-500 hover:bg-red-500 hover:text-red-50' : ''}
|
|
@@ -39,7 +39,7 @@ function closeMenu() {
|
|
|
39
39
|
{theme === 'sky' ? 'text-sky-600 hover:bg-sky-500 hover:text-sky-50 ' : ''}"
|
|
40
40
|
>
|
|
41
41
|
<svg
|
|
42
|
-
class="w-
|
|
42
|
+
class="w-6 h-6"
|
|
43
43
|
aria-hidden="true"
|
|
44
44
|
xmlns="http://www.w3.org/2000/svg"
|
|
45
45
|
width="24"
|
|
@@ -65,26 +65,14 @@ function closeMenu() {
|
|
|
65
65
|
bind:this={menu}
|
|
66
66
|
style="width: 0px;"
|
|
67
67
|
class="fixed
|
|
68
|
-
{direction==='ltr' ? 'left-0' : ''}
|
|
69
|
-
{direction==='rtl' ? 'right-0' : ''}
|
|
68
|
+
{direction === 'ltr' ? 'left-0' : ''}
|
|
69
|
+
{direction === 'rtl' ? 'right-0' : ''}
|
|
70
70
|
inset-y-0 bg-neutral-100 border-r border-r-neutral-400
|
|
71
71
|
shadow-lg
|
|
72
72
|
{isMenuOpen ? 'visible z-[1001] ' : 'invisible'}
|
|
73
73
|
transition-all ease-in-out duration-300"
|
|
74
74
|
>
|
|
75
|
-
<div class="p-2 {isTransitionning || !isMenuOpen ? 'hidden' : 'block'} ">
|
|
76
|
-
<div class="flex py-2 mb-2 border-b border-b-neutral-300">
|
|
77
|
-
<h1 class="text-2xl space-x-1">
|
|
78
|
-
<slot name="title" />
|
|
79
|
-
</h1>
|
|
80
|
-
<button
|
|
81
|
-
type="button"
|
|
82
|
-
class="ml-auto my-auto p-2 text-red-600 hover:text-red-700 text-lg outline-none focus:outline-none"
|
|
83
|
-
on:click={closeMenu}
|
|
84
|
-
>
|
|
85
|
-
<i class="bi bi-x-circle-fill" />
|
|
86
|
-
</button>
|
|
87
|
-
</div>
|
|
75
|
+
<div class="p-2 {isTransitionning || !isMenuOpen ? 'hidden' : 'block'} ">
|
|
88
76
|
<slot />
|
|
89
77
|
</div>
|
|
90
78
|
</div>
|