@@ -2,7 +2,7 @@ import type { fade, fly, scale, slide } from "svelte/transition";
2
2
import type { Coords , Middleware , Placement , Strategy } from "@floating-ui/dom" ;
3
3
import type { ClassValue } from "clsx" ;
4
4
import type { Component , Snippet } from "svelte" ;
5
- import type { HTMLAnchorAttributes , HTMLAttributes , HTMLBlockquoteAttributes , HTMLButtonAttributes , HTMLDialogAttributes , HTMLImgAttributes , HTMLInputAttributes , HTMLLabelAttributes , HTMLLiAttributes , HTMLOlAttributes , HTMLProgressAttributes , HTMLSelectAttributes , HTMLSourceAttributes , HTMLTableAttributes , HTMLTdAttributes , HTMLTextareaAttributes , HTMLThAttributes , HTMLTrackAttributes , HTMLVideoAttributes , SVGAttributes } from "svelte/elements" ;
5
+ import type { HTMLAnchorAttributes , HTMLAttributes , HTMLBlockquoteAttributes , HTMLButtonAttributes , HTMLDialogAttributes , HTMLImgAttributes , HTMLInputAttributes , HTMLLabelAttributes , HTMLLiAttributes , HTMLOlAttributes , HTMLProgressAttributes , HTMLSelectAttributes , HTMLSourceAttributes , HTMLTableAttributes , HTMLTdAttributes , HTMLTextareaAttributes , HTMLThAttributes , HTMLTrackAttributes , HTMLVideoAttributes , SVGAttributes , FullAutoFill } from "svelte/elements" ;
6
6
import { type Writable } from "svelte/store" ;
7
7
import type { BlurParams , EasingFunction , FadeParams , FlyParams , ScaleParams , SlideParams , TransitionConfig } from "svelte/transition" ;
8
8
import { tv , type VariantProps } from "tailwind-variants" ;
@@ -854,13 +854,28 @@ export interface SelectProps<T> extends SelectVariants, Omit<HTMLSelectAttribute
854
854
disabled ?: boolean ;
855
855
}
856
856
857
- export interface MultiSelectProps < T > extends MultiSelectVariants , Omit < HTMLSelectAttributes , "size" | "children" > {
857
+ // export interface MultiSelectProps<T> extends MultiSelectVariants, Omit<HTMLSelectAttributes, "size" | "children"> {
858
+ // children?: Snippet<[{ item: SelectOptionType<T>; clear: () => void }]>;
859
+ // items: SelectOptionType<T>[];
860
+ // value: T[];
861
+ // dropdownClass?: ClassValue;
862
+ // placeholder?: string;
863
+ // disabled?: boolean;
864
+ // }
865
+ export interface MultiSelectProps < T > extends
866
+ MultiSelectVariants , Omit < HTMLAttributes < HTMLDivElement > , "size" | "children" > {
858
867
children ?: Snippet < [ { item : SelectOptionType < T > ; clear : ( ) => void } ] > ;
859
868
items : SelectOptionType < T > [ ] ;
860
869
value : T [ ] ;
861
870
dropdownClass ?: ClassValue ;
862
871
placeholder ?: string ;
863
- disabled ?: boolean ;
872
+ disabled ?: boolean | undefined ;
873
+ size ?: "sm" | "md" | "lg" ;
874
+ // Select-specific attributes for the hidden select element
875
+ name ?: string | undefined | null ;
876
+ form ?: string | undefined | null ;
877
+ required ?: boolean | undefined | null ;
878
+ autocomplete ?: FullAutoFill | undefined | null ;
864
879
}
865
880
866
881
// Tags
0 commit comments