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.
feat(types): add Container, Row, Col, Dividers
* added missing typescript definitions for container, row and col * added typescript definition file for dividers
- Loading branch information
1 parent
4a6caf4
commit 328f231
Showing
5 changed files
with
82 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { SvelteComponent } from 'svelte-materialify/@types/shared'; | ||
|
||
interface ColProps { | ||
/** cols adds class cols-true */ | ||
cols?: boolean; | ||
/** sm adds class sm-true */ | ||
sm?: boolean; | ||
/** md adds class md-true */ | ||
md?: boolean; | ||
/** lg adds class lg-true */ | ||
lg?: boolean; | ||
/** xl adds class xl-true */ | ||
xl?: boolean; | ||
/** offset adds class offset-true */ | ||
offset?: boolean; | ||
/** offset_sm adds class offset_sm-true */ | ||
offset_sm?: boolean; | ||
/** offset_md adds class offset_md-true */ | ||
offset_md?: boolean; | ||
/** offset_lg adds class offset_lg-true */ | ||
offset_lg?: boolean; | ||
/** offset_xl adds class offset_xl-true */ | ||
offset_xl?: boolean; | ||
/** classes added to the col */ | ||
class?: string; | ||
/** styles added to the col */ | ||
style?: string; | ||
} | ||
|
||
declare class Col extends SvelteComponent<ColProps> {} | ||
|
||
export default Col; |
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,14 @@ | ||
import { SvelteComponent } from 'svelte-materialify/@types/shared'; | ||
|
||
interface ContainerProps { | ||
/** classes added to the container */ | ||
class?: string; | ||
/** styles added to the container */ | ||
style?: string; | ||
/** fluid extends the container across all viewports and device sizes*/ | ||
fluid?: boolean; | ||
} | ||
|
||
declare class Container extends SvelteComponent<ContainerProps> {} | ||
|
||
export default Container; |
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,16 @@ | ||
import { SvelteComponent } from 'svelte-materialify/@types/shared'; | ||
|
||
interface DividerProps { | ||
/** inset moves divider 72px to the right */ | ||
inset?: boolean; | ||
/** vertical makes divider to a vertical divider */ | ||
vertical?: boolean; | ||
/** classes added to the divider */ | ||
class?: string; | ||
/** styles added to the divider */ | ||
style?: string; | ||
} | ||
|
||
declare class Divider extends SvelteComponent<DividerProps> {} | ||
|
||
export default Divider; |
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,16 @@ | ||
import { SvelteComponent } from 'svelte-materialify/@types/shared'; | ||
|
||
interface RowProps { | ||
/** dense reduces standard gutter */ | ||
dense?: boolean; | ||
/** noGutters removes gutter completely */ | ||
noGutters?: boolean; | ||
/** classes added to the row */ | ||
class?: string; | ||
/** styles added to the row */ | ||
style?: string; | ||
} | ||
|
||
declare class Row extends SvelteComponent<RowProps> {} | ||
|
||
export default Row; |
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
328f231
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: