noph-ui 0.34.2 → 0.34.4
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { TextFieldProps } from './types.ts'
|
|
3
3
|
|
|
4
4
|
let {
|
|
5
|
+
defaultValue,
|
|
5
6
|
value = $bindable(),
|
|
6
7
|
issues,
|
|
7
8
|
prefixText = '',
|
|
@@ -103,6 +104,7 @@
|
|
|
103
104
|
: undefined}
|
|
104
105
|
{...attributes}
|
|
105
106
|
{placeholder}
|
|
107
|
+
{defaultValue}
|
|
106
108
|
bind:focused
|
|
107
109
|
bind:value
|
|
108
110
|
bind:this={inputElement}
|
|
@@ -122,6 +124,7 @@
|
|
|
122
124
|
: undefined}
|
|
123
125
|
{...attributes}
|
|
124
126
|
{placeholder}
|
|
127
|
+
{defaultValue}
|
|
125
128
|
bind:value
|
|
126
129
|
bind:this={inputElement}
|
|
127
130
|
class="input"
|
|
@@ -29,6 +29,7 @@ export interface TextAreaFieldProps extends HTMLTextareaAttributes, FieldProps {
|
|
|
29
29
|
}
|
|
30
30
|
export interface TextFieldProps extends HTMLAttributes<TextFieldElement>, Omit<HTMLInputAttributes, keyof HTMLAttributes<HTMLInputElement> | 'type' | 'value' | 'defaultValue' | 'defaultvalue'>, Omit<HTMLTextareaAttributes, keyof HTMLAttributes<HTMLTextAreaElement> | 'value' | 'defaultValue' | 'defaultvalue'>, FieldProps {
|
|
31
31
|
type?: TextFieldType | 'textarea';
|
|
32
|
-
value?: string | number |
|
|
32
|
+
value?: string | number | null;
|
|
33
|
+
defaultValue?: string | number | null;
|
|
33
34
|
}
|
|
34
35
|
export {};
|