y200subcontrols 0.0.351 → 0.0.353
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.
|
@@ -14,7 +14,7 @@ const menuButtonStyle = `space-x-1 px-2 text-slate-600 hover:bg-slate-500/20
|
|
|
14
14
|
disabled:text-slate-300 disabled:hover:bg-transparent
|
|
15
15
|
`;
|
|
16
16
|
export let menuWidth = 200;
|
|
17
|
-
function openMenu() {
|
|
17
|
+
function openMenu(event) {
|
|
18
18
|
menuOpen = true;
|
|
19
19
|
}
|
|
20
20
|
function closeMenu() {
|
|
@@ -43,13 +43,13 @@ onMount(() => {
|
|
|
43
43
|
<div class="relative">
|
|
44
44
|
<button
|
|
45
45
|
type="button"
|
|
46
|
-
class="px-3 py-1 rounded bg-emerald-500 text-emerald-50
|
|
46
|
+
class="px-3 py-1 rounded bg-emerald-500 text-emerald-50
|
|
47
47
|
disabled:bg-slate-100 disabled:text-slate-300"
|
|
48
48
|
disabled={isDisabled}
|
|
49
49
|
on:click={openMenu}
|
|
50
50
|
>
|
|
51
51
|
<svg
|
|
52
|
-
class="w-6 h-6 text-white"
|
|
52
|
+
class="w-6 h-6 text-white pointer-events-none"
|
|
53
53
|
aria-hidden="true"
|
|
54
54
|
xmlns="http://www.w3.org/2000/svg"
|
|
55
55
|
width="24"
|
|
@@ -83,6 +83,8 @@ onMount(() => {
|
|
|
83
83
|
? 'border-pink-600 dark:border-pink-500 focus:ring-pink-600/20 dark:focus:ring-pink-600/40'
|
|
84
84
|
: 'dark:border-slate-600 border-slate-300'}
|
|
85
85
|
{isValid && theme === 'teal' ? ' focus:ring-teal-600/20 dark:focus:ring-teal-600/30' : ''}
|
|
86
|
+
|
|
87
|
+
disabled:bg-slate-100 disabled:text-slate-500
|
|
86
88
|
"
|
|
87
89
|
>
|
|
88
90
|
<slot />
|
|
@@ -91,6 +93,7 @@ onMount(() => {
|
|
|
91
93
|
class="absolute right-0 inset-y-0 w-8 flex text-slate-500 pointer-events-none
|
|
92
94
|
{theme === 'teal' ? 'peer-hover:text-teal-600 peer-focus:text-teal-600' : ''}
|
|
93
95
|
{theme === 'blue' ? 'peer-hover:text-blue-500 peer-focus:text-blue-500' : ''}
|
|
96
|
+
peer-disabled:text-slate-500
|
|
94
97
|
"
|
|
95
98
|
>
|
|
96
99
|
<svg
|