Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyun committed Apr 26, 2017
2 parents 7a144ab + 65cba2f commit 2d8919d
Show file tree
Hide file tree
Showing 130 changed files with 1,802 additions and 789 deletions.
2 changes: 1 addition & 1 deletion build/npm/clarity-angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Angular 2 components for Clarity",
"homepage": "https://vmware.github.io/clarity/",
"main": "clarity-angular.umd.js",
"jsnext:main": "index.js",
"module": "index.js",
"repository" : {
"type" : "git",
"url" : "git@github.com:vmware/clarity.git"
Expand Down
Binary file modified gemini/screens/alert/app-level-angular/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/app-level-static/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/cards/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/close-events/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/close-events/setting-hovered/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/content-area/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/modals/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/not-closable/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/sizes/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/small/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/styles/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/alert/success/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/button-group/types-flat/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/checkboxes/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/color/color-contrast/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/dropdown/dropdown-header/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/forms/form-compact/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/forms/form-grid/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gemini/screens/forms/form-test/default/chrome.png
Binary file modified gemini/screens/forms/form-validation/default/chrome.png
Binary file modified gemini/screens/images/default/chrome.png
Binary file modified gemini/screens/landing-page/default/chrome.png
Binary file modified gemini/screens/landing-page/setting-clicked/chrome.png
Binary file modified gemini/screens/landing-page/setting-hovered/chrome.png
Binary file modified gemini/screens/landing-page/sidenav-clicked/chrome.png
Binary file modified gemini/screens/landing-page/sidenav-hovered/chrome.png
Binary file modified gemini/screens/layout/layout-all/default/chrome.png
Binary file modified gemini/screens/login/default/chrome.png
Binary file modified gemini/screens/modal/dynamic-show/default/chrome.png
Binary file modified gemini/screens/modal/dynamic-sizing/default/chrome.png
Binary file modified gemini/screens/modal/not-closable/default/chrome.png
Binary file modified gemini/screens/modal/static-backdrop/default/chrome.png
Binary file modified gemini/screens/radios/default/chrome.png
Binary file modified gemini/screens/selects/default/chrome.png
Binary file modified gemini/screens/stack-view/angular-modal-edit/default/chrome.png
Binary file modified gemini/screens/tree-view/Tree View - Basic/default/chrome.png
Binary file modified gemini/screens/typography/typography-headers/default/chrome.png
Binary file modified gemini/screens/typography/typography-text/default/chrome.png
Binary file modified gemini/screens/wizard/angular/default/chrome.png
Binary file modified gemini/screens/wizard/static/default/chrome.png
24 changes: 2 additions & 22 deletions gemini/tests/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,8 @@ var WAIT_LOAD_TIME = 1000;

gemini.suite('color', (child) => {

gemini.suite('color-palette-base', (child) => {
child.setUrl('/color/color-palette-base')
.before((actions, find) => {
actions.waitForElementToShow('.card-swatch', WAIT_TIME);
actions.wait(WAIT_LOAD_TIME);
})
.setCaptureElements('.row')
.capture('default');
});

gemini.suite('color-palette-stoplight', (child) => {
child.setUrl('/color/color-palette-stoplight')
.before((actions, find) => {
actions.waitForElementToShow('.card-swatch', WAIT_TIME);
actions.wait(WAIT_LOAD_TIME);
})
.setCaptureElements('.row')
.capture('default');
});

gemini.suite('color-palette-highlight', (child) => {
child.setUrl('/color/color-palette-highlight')
gemini.suite('color-palette', (child) => {
child.setUrl('/color/color-palette')
.before((actions, find) => {
actions.waitForElementToShow('.card-swatch', WAIT_TIME);
actions.wait(WAIT_LOAD_TIME);
Expand Down
17 changes: 17 additions & 0 deletions src/app/buttons/button-loading.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

<!--
~ Copyright (c) 2017 VMware, Inc. All Rights Reserved.
~ This software is released under MIT license.
~ The full license information can be found in LICENSE in the root directory of this project.
-->

<h4>Loading Buttons</h4>
<button [clrLoading]="validateLoading" class="btn btn-info-outline" (click)="validateDemo()">Validate</button>
<button [clrLoading]="submitLoading" type="submit" class="btn btn-success-outline" (click)="submitDemo()">Submit</button>

<pre>
<code clr-code-highlight="language-html">
&lt;button [clrLoading]=&quot;validateLoading&quot; class=&quot;btn btn-info-outline&quot;&gt;Validate&lt;/button&gt;
&lt;button [clrLoading]=&quot;submitLoading&quot; type=&quot;submit&quot; class=&quot;btn btn-success-outline&quot;&gt;Success&lt;/button&gt;
</code>
</pre>
27 changes: 27 additions & 0 deletions src/app/buttons/button-loading.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2017 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import {Component} from "@angular/core";

@Component({
moduleId: module.id,
selector: "clr-buttons-demo-button-loading",
templateUrl: "./button-loading.html",
styleUrls: ["./buttons.demo.css"]
})
export class ButtonLoadingDemo {
private validateLoading: boolean = false;
private submitLoading: boolean = false;

validateDemo() {
this.validateLoading = true;
setTimeout(() => this.validateLoading = false, 1500);
}

submitDemo() {
this.submitLoading = true;
setTimeout(() => this.submitLoading = false, 1500);
}
}
3 changes: 3 additions & 0 deletions src/app/buttons/buttons.demo.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {SecondaryButtonDemo} from "./secondary-button";
import {TertiaryButtonDemo} from "./tertiary-button";
import {InverseButtonDemo} from "./inverse-button";
import {ButtonStatesDemo} from "./button-states";
import {ButtonLoadingDemo} from "./button-loading";
import {ButtonSizesDemo} from "./button-sizes";
import {ToggleDemo} from "./toggles";
import {ButtonsTestDemo} from "./buttons-test";
Expand All @@ -33,6 +34,7 @@ import {ButtonsIconsDemo} from "./buttons-icons";
TertiaryButtonDemo,
InverseButtonDemo,
ButtonStatesDemo,
ButtonLoadingDemo,
ButtonSizesDemo,
ToggleDemo,
ButtonsTestDemo,
Expand All @@ -46,6 +48,7 @@ import {ButtonsIconsDemo} from "./buttons-icons";
TertiaryButtonDemo,
InverseButtonDemo,
ButtonStatesDemo,
ButtonLoadingDemo,
ButtonSizesDemo,
ToggleDemo,
ButtonsTestDemo,
Expand Down
2 changes: 2 additions & 0 deletions src/app/buttons/buttons.demo.routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {SecondaryButtonDemo} from "./secondary-button";
import {TertiaryButtonDemo} from "./tertiary-button";
import {InverseButtonDemo} from "./inverse-button";
import {ButtonStatesDemo} from "./button-states";
import {ButtonLoadingDemo} from "./button-loading";
import {ButtonSizesDemo} from "./button-sizes";
import {ToggleDemo} from "./toggles";
import {ButtonsTestDemo} from "./buttons-test";
Expand All @@ -29,6 +30,7 @@ const ROUTES: Routes = [
{ path: "tertiary-button", component: TertiaryButtonDemo },
{ path: "inverse-button", component: InverseButtonDemo },
{ path: "button-states", component: ButtonStatesDemo },
{ path: "button-loading", component: ButtonLoadingDemo },
{ path: "button-sizes", component: ButtonSizesDemo },
{ path: "toggles", component: ToggleDemo },
{ path: "buttons-test", component: ButtonsTestDemo },
Expand Down
1 change: 1 addition & 0 deletions src/app/buttons/buttons.demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {Component} from "@angular/core";
<li><a [routerLink]="['./tertiary-button']">Tertiary Buttons</a></li>
<li><a [routerLink]="['./inverse-button']">Inverse Buttons</a></li>
<li><a [routerLink]="['./button-states']">Button States</a></li>
<li><a [routerLink]="['./button-loading']">Loading Buttons</a></li>
<li><a [routerLink]="['./button-sizes']">Button Sizes</a></li>
<li><a [routerLink]="['./toggles']">Toggles</a></li>
<li><a [routerLink]="['./icons']">Icons in Buttons</a></li>
Expand Down
47 changes: 0 additions & 47 deletions src/app/color/color-palette-base.demo.html

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/color/color-palette-base.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/app/color/color-palette-highlight.demo.html

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/color/color-palette-highlight.ts

This file was deleted.

39 changes: 0 additions & 39 deletions src/app/color/color-palette-stoplight.demo.html

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/color/color-palette-stoplight.ts

This file was deleted.

26 changes: 26 additions & 0 deletions src/app/color/color-palette.demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
~ Copyright (c) 2016 - 2017 VMware, Inc. All Rights Reserved.
~ This software is released under MIT license.
~ The full license information can be found in LICENSE in the root directory of this project.
-->

<p>Colors that are twice as tall are part of the base color palette.</p>

<div class="row">
<div class="col-sm-6 col-md-4 col-xs-12" *ngFor="let palette of palettes">
<div class="card card-block card-swatch-block">
<ng-container *ngFor="let color of palette.colors">
<div class="card-swatch-divider" *ngIf="color.value === 'divider'"></div>
<ng-container *ngIf="color.value !== 'divider'">
<p class="card-swatch"
[style.background-color]="color.value"
[class.dark-text]="color.text === 'dark'"
[class.upsize]="!!color.corePalette">
<span class="hex-contrast">A<span *ngIf="color.text === 'mid'">A</span></span>
<span class="rgb-value">{{color.value | uppercase}}</span>
</p>
</ng-container>
</ng-container>
</div>
</div>
</div>
Loading

0 comments on commit 2d8919d

Please sign in to comment.