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 +67
-23
lines changed
packages/svelte-materialify/@types Expand file tree Collapse file tree 4 files changed +67
-23
lines changed Original file line number Diff line number Diff line change 11import { SvelteComponent } from 'svelte-materialify/@types/shared' ;
22
33interface ColProps {
4- /** cols adds class cols-true */
5- cols ?: boolean ;
6- /** sm adds class sm-true */
7- sm ?: boolean ;
8- /** md adds class md-true */
9- md ?: boolean ;
10- /** lg adds class lg-true */
11- lg ?: boolean ;
12- /** xl adds class xl-true */
13- xl ?: boolean ;
14- /** offset adds class offset-true */
15- offset ?: boolean ;
16- /** offset_sm adds class offset_sm-true */
17- offset_sm ?: boolean ;
18- /** offset_md adds class offset_md-true */
19- offset_md ?: boolean ;
20- /** offset_lg adds class offset_lg-true */
21- offset_lg ?: boolean ;
22- /** offset_xl adds class offset_xl-true */
23- offset_xl ?: boolean ;
4+ /** cols adds class cols-<number> */
5+ cols ?: number ;
6+ /** sm adds class sm-<number> */
7+ sm ?: number ;
8+ /** md adds class md-<number> */
9+ md ?: number ;
10+ /** lg adds class lg-<number> */
11+ lg ?: number ;
12+ /** xl adds class xl-<number> */
13+ xl ?: number ;
14+ /** offset adds class offset-<number> */
15+ offset ?: number ;
16+ /** offset_sm adds class offset-sm-<number> */
17+ offset_sm ?: number ;
18+ /** offset_md adds class offset-md-<number> */
19+ offset_md ?: number ;
20+ /** offset_lg adds class offset-lg-<number> */
21+ offset_lg ?: number ;
22+ /** offset_xl adds class offset-xl-<number> */
23+ offset_xl ?: number ;
2424 /** classes added to the col */
2525 class ?: string ;
2626 /** styles added to the col */
Original file line number Diff line number Diff line change 1+ import { SvelteComponent } from 'svelte-materialify/@types/shared' ;
2+ import { TransitionConfig } from 'svelte/transition' ;
3+
4+ interface SnackbarProps {
5+ /** absolute sets the snackbar with position absolute otherwise it is fixed */
6+ absolute ?: boolean ,
7+ /** active shows or hides the snackbar */
8+ active ?: boolean ,
9+ /** top shows the snackbar on the top side of the page */
10+ top ?: boolean ,
11+ /** top shows the snackbar on the left side of the page */
12+ left ?: boolean ,
13+ /** top shows the snackbar on the bottom side of the page */
14+ bottom ?: boolean ,
15+ /** top shows the snackbar on the right side of the page */
16+ right ?: boolean ,
17+ /** top shows the snackbar on the centered of the page */
18+ center ?: boolean ,
19+ /** offsetY defines the offset from the left or right side of the page */
20+ offsetX ?: string ,
21+ /** offsetY defines the offset from the top or bottom side of the page */
22+ offsetY ?: string ,
23+ /** outlined gives the snackbar a outlined style */
24+ outlined ?: boolean ,
25+ /** text gives the snackbar a text style */
26+ text ?: boolean ,
27+ /** rounded gives the snackbar a rounded style */
28+ rounded ?: boolean ,
29+ /** tile gives the snackbar a tile style */
30+ tile ?: boolean ,
31+ /** timout is the delay before the snackar hides away */
32+ timeout ?: number ,
33+ /** transiton function for the snackbar */
34+ transition ?: ( node : Element , options : any ) => TransitionConfig ;
35+ /** classes added to the snackbar */
36+ class ?: string ;
37+ /** styles added to the snackbar */
38+ style ?: string ;
39+ }
40+
41+ declare class Snackbar extends SvelteComponent < SnackbarProps > { }
42+
43+ export default Snackbar ;
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ interface TextFieldProps {
3030 // Creates counter for input length.
3131 counter ?: number ;
3232 // An array of functions which take input value as arguement and return error message.
33- rules : ( ( value ) => string | false ) [ ] ;
33+ rules ? : ( ( value ) => string | true ) [ ] ;
3434 // Delays validation till blur.
35- validateOnBlur : boolean ;
35+ validateOnBlur ? : boolean ;
3636 // Error state of the input.
37- error : boolean ;
37+ error ? : boolean ;
3838 // Id of the text input.
3939 id ?: string ;
4040}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export { default as NavigationDrawer } from './NavigationDrawer';
3030export { default as Dialog } from './Dialog' ;
3131export { default as Overlay } from './Overlay' ;
3232export { default as Row } from './Row' ;
33+ export { default as Snackbar } from './Snackbar' ;
3334export { default as TextField } from './TextField' ;
3435export { default as ProgressLinear } from './ProgressLinear' ;
3536export { default as ProgressCircular } from './ProgressCircular' ;
You can’t perform that action at this time.
0 commit comments