@@ -22,7 +22,7 @@ interface SelectRootContextService {
22
22
setListBoxRef$ : QRL < ( ref : Signal < HTMLElement | undefined > ) => void > ;
23
23
}
24
24
25
- const selectContext = createContext < SelectRootContextService > ( 'select-root' ) ;
25
+ export const selectContext = createContext < SelectRootContextService > ( 'select-root' ) ;
26
26
27
27
interface StyleProps {
28
28
class ?: string ;
@@ -166,19 +166,15 @@ const Value = component$(({ placeholder, ...props }: ValueProps) => {
166
166
return < span { ...props } > { value ? value : placeholder } </ span > ;
167
167
} ) ;
168
168
169
- interface MarkerProps extends StyleProps { }
170
-
171
- const Marker = component$ ( ( { ...props } : MarkerProps ) => {
169
+ const Marker = component$ ( ( { ...props } : StyleProps ) => {
172
170
return (
173
171
< span aria-hidden = "true" { ...props } >
174
172
< Slot />
175
173
</ span >
176
174
) ;
177
175
} ) ;
178
176
179
- interface ListBoxProps extends StyleProps { }
180
-
181
- const ListBox = component$ ( ( { ...props } : ListBoxProps ) => {
177
+ const ListBox = component$ ( ( { ...props } : StyleProps ) => {
182
178
const ref = useSignal < HTMLElement > ( ) ;
183
179
const contextService = useContext ( selectContext ) ;
184
180
@@ -243,9 +239,7 @@ const Group = component$(({ disabled, ...props }: GroupProps) => {
243
239
) ;
244
240
} ) ;
245
241
246
- interface LabelProps extends StyleProps { }
247
-
248
- const Label = component$ ( ( { ...props } : LabelProps ) => {
242
+ const Label = component$ ( ( { ...props } : StyleProps ) => {
249
243
return (
250
244
< label { ...props } >
251
245
< Slot />
@@ -305,7 +299,6 @@ const Option = component$(({ disabled, value, ...props }: OptionProps) => {
305
299
} ) ;
306
300
307
301
export {
308
- selectContext ,
309
302
Root ,
310
303
Trigger ,
311
304
Value ,
0 commit comments