This repository was archived by the owner on Sep 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +53
-5
lines changed
packages/svelte-materialify/@types Expand file tree Collapse file tree 4 files changed +53
-5
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ interface BreadcrumbsProps {
19
19
style ?: string ;
20
20
}
21
21
22
- declare class Breadcrumbs extends SvelteComponent < BreadcrumbsProps > { }
22
+ declare class Breadcrumbs extends SvelteComponent < BreadcrumbsProps > {
23
+ $$slot_def : {
24
+ item ?: BreadcrumbItem ,
25
+ } ;
26
+ }
23
27
24
28
export default Breadcrumbs ;
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ interface ExpansionPanelProps {
18
18
19
19
}
20
20
21
- declare class ExpansionPanel extends SvelteComponent < ExpansionPanelProps > { }
21
+ declare class ExpansionPanel extends SvelteComponent < ExpansionPanelProps > {
22
+ $$slot_def : {
23
+ active ?: boolean ,
24
+ } ;
25
+ }
22
26
23
27
export default ExpansionPanel ;
Original file line number Diff line number Diff line change 1
1
import { SvelteComponent } from './shared' ;
2
2
3
+ interface SelectItem { name : string | number , value : string | number }
4
+
3
5
interface SelectProps {
4
6
/** Classes to add to select wrapper. */
5
7
class ?: string ;
6
8
/** Whether select is opened. */
7
9
active ?: boolean ;
8
10
/**
9
- * Value of the select.
11
+ * Value of the select.
10
12
* If multiple is true, this will be an array; otherwise a single value.
11
13
*/
12
14
value ?: number [ ] | string [ ] | number | string | null ;
13
15
/** List of items to select from. */
14
- items ?: { name : string | number , value : string | number } [ ] ;
16
+ items ?: SelectItem [ ] ;
15
17
/** Whether select is the `filled` material design variant. */
16
18
filled ?: boolean ;
17
19
/** Whether select is the `outlined` material design variant. */
@@ -43,6 +45,10 @@ interface SelectProps {
43
45
format ?: ( value : string | number | string [ ] | number [ ] ) => string | number ;
44
46
}
45
47
46
- declare class Select extends SvelteComponent < SelectProps > { }
48
+ declare class Select extends SvelteComponent < SelectProps > {
49
+ $$slot_def : {
50
+ item ?: SelectItem ,
51
+ } ;
52
+ }
47
53
48
54
export default Select ;
Original file line number Diff line number Diff line change
1
+ import { SvelteComponent } from './shared' ;
2
+
3
+ interface VirtualListItem { text : string , subtitle ?: string , items ?: VirtualListItem [ ] }
4
+
5
+ interface VirtualListProps {
6
+ /** Classes added to the footer. */
7
+ class ?: string ;
8
+
9
+ /** Whether the list group is opened */
10
+ active ?: boolean ;
11
+
12
+ /** List items */
13
+ items ?: VirtualListItem [ ] ;
14
+
15
+ /** Classes to apply to the list items */
16
+ iteClasses ?: string ;
17
+
18
+ /** Depth of the list */
19
+ depth ?: number ;
20
+
21
+ /** Styles to add to the footer. */
22
+ style ?: string ;
23
+
24
+ /** Sets an offset on the element, takes the depth props as parameter */
25
+ offsetFunction ?: Function ;
26
+ }
27
+
28
+ declare class VirtualList extends SvelteComponent < VirtualListProps > {
29
+ $$slot_def : {
30
+ item ?: VirtualListItem ,
31
+ } ;
32
+ }
33
+
34
+ export default VirtualList ;
You can’t perform that action at this time.
0 commit comments