noph-ui 0.30.7 → 0.30.8

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.
@@ -121,6 +121,16 @@
121
121
  }}
122
122
  variant="button"
123
123
  >{option.label}
124
+ {#snippet start()}
125
+ {#if option.start}
126
+ {@render option.start()}
127
+ {/if}
128
+ {/snippet}
129
+ {#snippet end()}
130
+ {#if option.end}
131
+ {@render option.end()}
132
+ {/if}
133
+ {/snippet}
124
134
  </Item>
125
135
  {/snippet}
126
136
 
@@ -1,7 +1,10 @@
1
1
  import type { InputFieldProps } from '../types.ts';
2
+ import type { Snippet } from 'svelte';
2
3
  export interface AutoCompleteOption {
3
4
  value?: string | number;
4
5
  label: string;
6
+ start?: Snippet;
7
+ end?: Snippet;
5
8
  }
6
9
  export interface AutoCompleteProps extends Omit<InputFieldProps, 'clientWidth' | 'clientHeight'> {
7
10
  options: AutoCompleteOption[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.30.7",
3
+ "version": "0.30.8",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {