y200subcontrols 0.0.3545 → 0.0.3547
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.
|
@@ -30,6 +30,7 @@ let inputCss = `
|
|
|
30
30
|
placeholder:text-sm placeholder:font-thin
|
|
31
31
|
dark:bg-slate-900 dark:text-neutral-100 {numeric ? 'hide-browser-appearance' : ''}
|
|
32
32
|
${!isValid ? "border-pink-600 dark:border-pink-500 focus:ring-pink-600/20 dark:focus:ring-pink-600/40" : "dark:border-slate-600 border-slate-300 focus:ring-teal-500/20 dark:focus:ring-teal-500/30"}
|
|
33
|
+
disabled:text-slate-400
|
|
33
34
|
${customCss}`;
|
|
34
35
|
let inputContainer;
|
|
35
36
|
function validateElement(event) {
|
|
@@ -95,7 +96,7 @@ onMount(() => {
|
|
|
95
96
|
type="text"
|
|
96
97
|
{required}
|
|
97
98
|
{autocomplete}
|
|
98
|
-
class="border peer block w-full rounded shadow-sm bg-white text-neutral-900
|
|
99
|
+
class="border peer block w-full rounded shadow-sm bg-white text-neutral-900
|
|
99
100
|
{size === 'sm' ? 'py-1 px-2 text-sm' : ''}
|
|
100
101
|
{size === 'md' ? 'py-1.5 px-2 text-base' : ''}
|
|
101
102
|
{size === 'lg' ? 'py-2 px-2 text-lg' : ''}
|
|
@@ -107,7 +108,7 @@ onMount(() => {
|
|
|
107
108
|
{!isValid
|
|
108
109
|
? 'border-pink-600 dark:border-pink-500 focus:ring-pink-600/20 dark:focus:ring-pink-600/40'
|
|
109
110
|
: 'dark:border-slate-600 border-slate-300 focus:ring-teal-500/20 dark:focus:ring-teal-500/30'}
|
|
110
|
-
disabled:text-slate-
|
|
111
|
+
disabled:text-slate-400
|
|
111
112
|
{customCss}"
|
|
112
113
|
bind:value
|
|
113
114
|
{placeholder}
|