-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): added navbar and tabs (#UIM-326) (#366)
- Loading branch information
1 parent
39be15c
commit 88d1da7
Showing
29 changed files
with
229 additions
and
52 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
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 |
---|---|---|
|
@@ -91,6 +91,8 @@ | |
|
||
.docs-example-viewer-body { | ||
padding: 16px; | ||
|
||
overflow: auto; | ||
} | ||
|
||
.docs-example-source__switcher_hide { | ||
|
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
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,23 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { McIconModule } from '@ptsecurity/mosaic/icon'; | ||
import { McNavbarModule } from '@ptsecurity/mosaic/navbar'; | ||
|
||
import { NavbarOverviewExample } from './navbar-overview/navbar-overview-example'; | ||
|
||
|
||
const EXAMPLES = [ | ||
NavbarOverviewExample | ||
]; | ||
|
||
@NgModule({ | ||
imports: [ | ||
BrowserModule, | ||
McNavbarModule, | ||
McIconModule | ||
], | ||
declarations: EXAMPLES, | ||
exports: EXAMPLES | ||
}) | ||
export class NavbarExamplesModule { | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/mosaic-examples/mosaic/navbar/navbar-overview/navbar-overview-example.css
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,7 @@ | ||
.logo { | ||
margin-top: 5px; | ||
} | ||
|
||
.demo-container { | ||
margin-bottom: 10px; | ||
} |
50 changes: 50 additions & 0 deletions
50
packages/mosaic-examples/mosaic/navbar/navbar-overview/navbar-overview-example.html
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,50 @@ | ||
<div class="demo-container"> | ||
<mc-navbar> | ||
<mc-navbar-container position="left"> | ||
<mc-navbar-item> | ||
<i mc-icon="mc-hamburger_16"></i> | ||
</mc-navbar-item> | ||
<mc-navbar-brand> | ||
<mc-navbar-logo> | ||
<svg class="logo" height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="m0 32h32v-32h-32z" fill="#c00"/><path d="m11.7013126 2.13713398h3.4056699v5.22500971c.0083884 1.2815534 1.0494758 2.31984466 2.3304078 2.32543689v-1.89825242c-.2370486-.00528156-.4296699-.19231068-.432466-.42718447v-5.22500971h3.4050485v-1.89794175h-8.7086602zm-3.29065629-1.89806602h-5.95976699-.0167767c-1.28062136.00590291-2.3192233 1.04978641-2.32481553 2.33351456h1.89794174c.00590292-.23735922.19262136-.42407767.42687379-.43557281h5.97654369c.24295146 0 .44054369.19821359.44054369.44427184v.97646602c0 .23735923-.19759223.43867961-.44054369.43867961l-5.97654369.00248544c-1.28062136.01118447-2.3192233 1.04667961-2.32481553 2.33071845v3.35782524h1.89794174v-3.35782524c.00590292-.23207767.19262136-.42438835.42687379-.42718447h5.97654369c1.28932039 0 2.34190289-1.05227184 2.34190289-2.34469903v-.97646602c0-1.29242718-1.0525825-2.34221359-2.34190289-2.34221359" fill="#fff" transform="translate(5.592 10.889)"/></g></svg> | ||
</mc-navbar-logo> | ||
<mc-navbar-title>Brand</mc-navbar-title> | ||
</mc-navbar-brand> | ||
<mc-navbar-item class="mc-navbar-item-active"> | ||
<i mc-icon="mc-info_16"></i> | ||
<mc-navbar-title>Left icon</mc-navbar-title> | ||
</mc-navbar-item> | ||
<mc-navbar-item> | ||
<i mc-icon="mc-calendar_16"></i> | ||
<mc-navbar-title>Left icon</mc-navbar-title> | ||
</mc-navbar-item> | ||
<mc-navbar-item class="mc-progress"> | ||
<i mc-icon="mc-download_16"></i> | ||
<mc-navbar-title>In-progress</mc-navbar-title> | ||
</mc-navbar-item> | ||
<mc-navbar-item class="mc-progress" disabled> | ||
<i mc-icon="mc-clock_16"></i> | ||
<mc-navbar-title>Disabled in-progress</mc-navbar-title> | ||
</mc-navbar-item> | ||
<mc-navbar-item disabled> | ||
<mc-navbar-title>Right Icon</mc-navbar-title> | ||
<i mc-icon="mc-search_16"></i> | ||
</mc-navbar-item> | ||
|
||
<mc-navbar-item> | ||
<i mc-icon="mc-gear_16"></i> | ||
</mc-navbar-item> | ||
</mc-navbar-container> | ||
|
||
<mc-navbar-container position="right"> | ||
<mc-navbar-item [collapsedTitle]="'custom title'"> | ||
<mc-navbar-title>Right Icon</mc-navbar-title> | ||
<i mc-icon="mc-search_16"></i> | ||
</mc-navbar-item> | ||
|
||
<mc-navbar-item> | ||
<i mc-icon="mc-gear_16"></i> | ||
</mc-navbar-item> | ||
</mc-navbar-container> | ||
</mc-navbar> | ||
</div> |
12 changes: 12 additions & 0 deletions
12
packages/mosaic-examples/mosaic/navbar/navbar-overview/navbar-overview-example.ts
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
|
||
/** | ||
* @title Navbar | ||
*/ | ||
@Component({ | ||
selector: 'navbar-overview-example', | ||
templateUrl: 'navbar-overview-example.html', | ||
styleUrls: ['navbar-overview-example.css'] | ||
}) | ||
export class NavbarOverviewExample {} |
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 |
---|---|---|
|
@@ -12,7 +12,3 @@ mc-splitter { | |
div[mc-splitter-area] { | ||
background: #c5c0c0 | ||
} | ||
|
||
.flex { | ||
flex: 1; | ||
} |
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 |
---|---|---|
|
@@ -7,7 +7,3 @@ mc-splitter { | |
div[mc-splitter-area] { | ||
background: #c5c0c0 | ||
} | ||
|
||
.flex { | ||
flex: 1; | ||
} |
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 |
---|---|---|
|
@@ -12,7 +12,3 @@ mc-splitter { | |
div[mc-splitter-area] { | ||
background: #c5c0c0 | ||
} | ||
|
||
.flex { | ||
flex: 1; | ||
} |
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,24 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { McTabsModule } from '@ptsecurity/mosaic/tabs'; | ||
|
||
import { TabsLightExample } from './tabs-light-overview/tabs-light-example'; | ||
import { TabsOverviewExample } from './tabs-overview/tabs-overview-example'; | ||
import { TabsStretchExample } from './tabs-stretch-overview/tabs-stretch-example'; | ||
|
||
|
||
const EXAMPLES = [ | ||
TabsOverviewExample, | ||
TabsLightExample, | ||
TabsStretchExample | ||
]; | ||
|
||
@NgModule({ | ||
imports: [ | ||
BrowserModule, | ||
McTabsModule | ||
], | ||
declarations: EXAMPLES, | ||
exports: EXAMPLES | ||
}) | ||
export class TabsExamplesModule {} |
Empty file.
11 changes: 11 additions & 0 deletions
11
packages/mosaic-examples/mosaic/tabs/tabs-light-overview/tabs-light-example.html
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,11 @@ | ||
<mc-tab-group mc-light-tabs> | ||
<mc-tab label="Fact 4"> | ||
Chuck Norris counted to infinity. Twice. | ||
</mc-tab> | ||
<mc-tab label="Fact 5"> | ||
Chuck Norris can speak braille. | ||
</mc-tab> | ||
<mc-tab [disabled]="true" label="Fact 6"> | ||
nothing | ||
</mc-tab> | ||
</mc-tab-group> |
12 changes: 12 additions & 0 deletions
12
packages/mosaic-examples/mosaic/tabs/tabs-light-overview/tabs-light-example.ts
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
|
||
/** | ||
* @title Navbar | ||
*/ | ||
@Component({ | ||
selector: 'tabs-light-example', | ||
templateUrl: 'tabs-light-example.html', | ||
styleUrls: ['tabs-light-example.css'] | ||
}) | ||
export class TabsLightExample {} |
Empty file.
14 changes: 14 additions & 0 deletions
14
packages/mosaic-examples/mosaic/tabs/tabs-overview/tabs-overview-example.html
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 @@ | ||
<mc-tab-group> | ||
<mc-tab> | ||
<ng-template mc-tab-label>Fact 1</ng-template> | ||
Chuck Norris can hear sign language. | ||
</mc-tab> | ||
<mc-tab> | ||
<ng-template mc-tab-label>Fact 2</ng-template> | ||
Chuck Norris makes onions cry. | ||
</mc-tab> | ||
<mc-tab [disabled]="true"> | ||
<ng-template mc-tab-label>Fact 3</ng-template> | ||
nothing | ||
</mc-tab> | ||
</mc-tab-group> |
12 changes: 12 additions & 0 deletions
12
packages/mosaic-examples/mosaic/tabs/tabs-overview/tabs-overview-example.ts
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
|
||
/** | ||
* @title Navbar | ||
*/ | ||
@Component({ | ||
selector: 'tabs-overview-example', | ||
templateUrl: 'tabs-overview-example.html', | ||
styleUrls: ['tabs-overview-example.css'] | ||
}) | ||
export class TabsOverviewExample {} |
Empty file.
11 changes: 11 additions & 0 deletions
11
packages/mosaic-examples/mosaic/tabs/tabs-stretch-overview/tabs-stretch-example.html
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,11 @@ | ||
<mc-tab-group mc-stretch-tabs> | ||
<mc-tab label="Fact 7"> | ||
Chuck Norris knows Victoria's secret. | ||
</mc-tab> | ||
<mc-tab label="Fact 7"> | ||
Chuck Norris can drown a fish. | ||
</mc-tab> | ||
<mc-tab label="Fact 7"> | ||
Chuck Norris narrates Morgan Freeman's life. | ||
</mc-tab> | ||
</mc-tab-group> |
12 changes: 12 additions & 0 deletions
12
packages/mosaic-examples/mosaic/tabs/tabs-stretch-overview/tabs-stretch-example.ts
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
|
||
/** | ||
* @title Navbar | ||
*/ | ||
@Component({ | ||
selector: 'tabs-stretch-example', | ||
templateUrl: 'tabs-stretch-example.html', | ||
styleUrls: ['tabs-stretch-example.css'] | ||
}) | ||
export class TabsStretchExample {} |
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 @@ | ||
<!-- example(navbar-overview) --> |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
| Attribute | Description | | ||
|--------------------|-----------------------------------------------------------------------------| | ||
| `mc-tab-group` | | | ||
| `mc-tab` | | | ||
#### Default tabs | ||
<!-- example(tabs-overview) --> | ||
|
||
### Theming | ||
### Light tabs | ||
<!-- example(tabs-light) --> | ||
|
||
### Accessibility | ||
### Stretch tabs | ||
<!-- example(tabs-stretch) --> |
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 @@ | ||
<!-- example(tags-autocomplete) --> |
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 @@ | ||
<!-- example(tags-input) --> |
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 @@ | ||
<!-- example(tags-list) --> |
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 |
---|---|---|
@@ -1,11 +1,2 @@ | ||
#### Simple Tags | ||
<!-- example(tags-overview) --> | ||
|
||
### Tags list | ||
<!-- example(tags-list) --> | ||
|
||
### Input tags | ||
<!-- example(tags-input) --> | ||
|
||
### Autocomplete tags | ||
<!-- example(tags-autocomplete) --> | ||
<!-- example(tags-overview) --> |