This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added missing typescript definitions for container, row and col * added typescript definition file for dividers * corrections in typescript definition of TextField * corrections in typescript definition of Col * typescript definition for SnackBar added * wrong commits corrected
- Loading branch information
1 parent
328f231
commit 3be086f
Showing
4 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { SvelteComponent } from 'svelte-materialify/@types/shared'; | ||
import { TransitionConfig } from 'svelte/transition'; | ||
|
||
interface SnackbarProps { | ||
/** absolute sets the snackbar with position absolute otherwise it is fixed */ | ||
absolute?: boolean, | ||
/** active shows or hides the snackbar */ | ||
active?: boolean, | ||
/** top shows the snackbar on the top side of the page */ | ||
top?: boolean, | ||
/** top shows the snackbar on the left side of the page */ | ||
left?: boolean, | ||
/** top shows the snackbar on the bottom side of the page */ | ||
bottom?: boolean, | ||
/** top shows the snackbar on the right side of the page */ | ||
right?: boolean, | ||
/** top shows the snackbar on the centered of the page */ | ||
center?: boolean, | ||
/** offsetY defines the offset from the left or right side of the page */ | ||
offsetX?: string, | ||
/** offsetY defines the offset from the top or bottom side of the page */ | ||
offsetY?: string, | ||
/** outlined gives the snackbar a outlined style */ | ||
outlined?: boolean, | ||
/** text gives the snackbar a text style */ | ||
text?: boolean, | ||
/** rounded gives the snackbar a rounded style */ | ||
rounded?: boolean, | ||
/** tile gives the snackbar a tile style */ | ||
tile?: boolean, | ||
/** timout is the delay before the snackar hides away */ | ||
timeout?: number, | ||
/** transiton function for the snackbar */ | ||
transition?: (node: Element, options: any) => TransitionConfig; | ||
/** classes added to the snackbar */ | ||
class?: string; | ||
/** styles added to the snackbar */ | ||
style?: string; | ||
} | ||
|
||
declare class Snackbar extends SvelteComponent<SnackbarProps> {} | ||
|
||
export default Snackbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3be086f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: