noph-ui 0.34.1 → 0.34.3

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.
@@ -3,7 +3,7 @@ import type { HTMLAnchorAttributes, HTMLAttributes, HTMLButtonAttributes } from
3
3
  export type ButtonElement = HTMLButtonElement | HTMLAnchorElement;
4
4
  interface BaseButtonProps extends HTMLAttributes<ButtonElement>, Omit<HTMLButtonAttributes, keyof HTMLAttributes<HTMLButtonElement> | 'type'>, Omit<HTMLAnchorAttributes, keyof HTMLAttributes<HTMLAnchorElement> | 'type'> {
5
5
  element?: HTMLElement;
6
- disabled?: boolean;
6
+ disabled?: boolean | null;
7
7
  loading?: boolean;
8
8
  loadingAriaLabel?: string;
9
9
  toggle?: boolean;
@@ -2,7 +2,8 @@
2
2
  import type { TextFieldProps } from './types.ts'
3
3
 
4
4
  let {
5
- value = $bindable(),
5
+ defaultValue,
6
+ value = $bindable(defaultValue),
6
7
  issues,
7
8
  prefixText = '',
8
9
  suffixText = '',
@@ -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"
@@ -30,5 +30,6 @@ export interface TextAreaFieldProps extends HTMLTextareaAttributes, FieldProps {
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
32
  value?: string | number | null;
33
+ defaultValue?: string | number | null;
33
34
  }
34
35
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.34.1",
3
+ "version": "0.34.3",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {