noph-ui 0.34.0 → 0.34.2

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.
@@ -27,7 +27,7 @@
27
27
  }: AutoCompleteProps = $props()
28
28
 
29
29
  const uid = $props.id()
30
- const query = $derived(value ? value.toLocaleLowerCase() : '')
30
+ const query = $derived(value ? `${value}`.toLocaleLowerCase() : '')
31
31
  const filterFn = $derived(
32
32
  optionsFilter ||
33
33
  ((option: AutoCompleteOption) => !query || option.label.toLocaleLowerCase().includes(query)),
@@ -0,0 +1 @@
1
+ export { default as Badge } from './Badge.svelte';
@@ -0,0 +1 @@
1
+ export { default as Badge } from './Badge.svelte';
@@ -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;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './autocomplete/index.js';
2
+ export * from './badge/index.js';
2
3
  export * from './button/index.js';
3
4
  export * from './card/index.js';
4
5
  export * from './checkbox/index.js';
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './autocomplete/index.js';
2
+ export * from './badge/index.js';
2
3
  export * from './button/index.js';
3
4
  export * from './card/index.js';
4
5
  export * from './checkbox/index.js';
@@ -149,7 +149,7 @@
149
149
  {errorText ?? supportingText}
150
150
  </span>
151
151
  {#if attributes.maxlength}
152
- <span>{value?.length || 0}/{attributes.maxlength}</span>
152
+ <span>{`${value ?? ''}`.length}/{attributes.maxlength}</span>
153
153
  {/if}
154
154
  </div>
155
155
  {/if}
@@ -29,6 +29,6 @@ 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;
32
+ value?: string | number | boolean | null;
33
33
  }
34
34
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.34.0",
3
+ "version": "0.34.2",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {