noph-ui 0.16.13 → 0.16.14
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.
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
children,
|
|
25
25
|
onfocus,
|
|
26
26
|
onblur,
|
|
27
|
-
inputClass,
|
|
28
27
|
...attributes
|
|
29
28
|
}: TextFieldProps = $props()
|
|
30
29
|
|
|
@@ -184,7 +183,7 @@
|
|
|
184
183
|
}}
|
|
185
184
|
bind:value
|
|
186
185
|
bind:this={inputElement}
|
|
187
|
-
class=
|
|
186
|
+
class="input"
|
|
188
187
|
rows={attributes.rows || 2}
|
|
189
188
|
></textarea>
|
|
190
189
|
{:else}
|
|
@@ -208,7 +207,7 @@
|
|
|
208
207
|
focused = false
|
|
209
208
|
;(onblur as FocusEventHandler<HTMLInputElement>)?.(event)
|
|
210
209
|
}}
|
|
211
|
-
class=
|
|
210
|
+
class="input"
|
|
212
211
|
aria-invalid={errorRaw}
|
|
213
212
|
/>
|
|
214
213
|
{#if suffixText}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
-
import type {
|
|
2
|
+
import type { HTMLInputAttributes, HTMLTextareaAttributes } from 'svelte/elements';
|
|
3
3
|
interface FieldProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
supportingText?: string;
|
|
@@ -14,7 +14,6 @@ interface FieldProps {
|
|
|
14
14
|
element?: HTMLSpanElement;
|
|
15
15
|
inputElement?: HTMLInputElement | HTMLTextAreaElement;
|
|
16
16
|
populated?: boolean;
|
|
17
|
-
inputClass?: ClassValue;
|
|
18
17
|
reportValidity?: () => boolean;
|
|
19
18
|
checkValidity?: () => boolean;
|
|
20
19
|
}
|