diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index 9d84524911..de5fb434ee 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -1,4 +1,4 @@
-
+
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 75ff0f9086..a5c0a07ee3 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,7 +1,7 @@
# Contributing
-We'd love for you to contribute to our source code and to make Collab UI even better than it is today! Below are the guidelines to follow.
+We'd love for you to contribute to our source code and to make Momentum UI even better than it is today! Below are the guidelines to follow.
## Table of Contents
@@ -18,7 +18,7 @@ We'd love for you to contribute to our source code and to make Collab UI even be
## Got a Question, Issue or Idea?
-If you have questions about how to use a component or element in Collab-UI, please look through the documentation first. If you still need help, please direct your questions to the Toolkit Q&A Webex Teams space. [Request an Invite to the Teams space](mailto:toolkit-info@cisco.com?subject=CollabUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20CollabUI%20Q%26A%20Webex%20Teams%20space)
+If you have questions about how to use a component or element in Momentum-UI, please look through the documentation first. If you still need help, please direct your questions to the Toolkit Q&A Webex Teams space. [Request an Invite to the Teams space](mailto:toolkit-info@cisco.com?subject=MomentumUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20MomentumUI%20Q%26A%20Webex%20Teams%20space)
### Found an Issue?
@@ -32,7 +32,7 @@ Help us to maximize the effort we can spend fixing issues and adding new feature
* **Overview of the Issue** - Explain what issue you are seeing and attach a screenshot if possible.
* **Motivation for or Use Case** - Explain why this is a bug
-* **Collab-UI Version(s)** - What library(ies) and version(s) are you using?
+* **Momentum-UI Version(s)** - What library(ies) and version(s) are you using?
* **Browsers and Operating System** - Which browsers did you find the problem on?
* **Reproduce the Error** - Provide a live example (using [CodeSandbox](https://codesandbox.io/) or [StackBlitz](https://stackblitz.com/)) or a unambiguous set of steps.
* **Related Issues** - Has a similar issue been reported before?
@@ -41,9 +41,9 @@ Help us to maximize the effort we can spend fixing issues and adding new feature
### Want a Feature?
-You can request a new feature by requesting it in our [Toolkit Q&A Webex Teams space](mailto:toolkit-info@cisco.com?subject=CollabUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20CollabUI%20Q%26A%20Webex%20Teams%20space). If you would like to implement a new feature then consider what kind of change it is:
+You can request a new feature by requesting it in our [Toolkit Q&A Webex Teams space](mailto:toolkit-info@cisco.com?subject=MomentumUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20MomentumUI%20Q%26A%20Webex%20Teams%20space). If you would like to implement a new feature then consider what kind of change it is:
-* **Major Changes** that you wish to contribute to the project should be discussed first in our [Toolkit Q&A Webex Teams space](mailto:toolkit-info@cisco.com?subject=CollabUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20CollabUI%20Q%26A%20Webex%20Teams%20space) so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
+* **Major Changes** that you wish to contribute to the project should be discussed first in our [Toolkit Q&A Webex Teams space](mailto:toolkit-info@cisco.com?subject=MomentumUI%20Q%26A%20Webex%20Teams%20space&body=Please%20add%20me%20to%20the%20MomentumUI%20Q%26A%20Webex%20Teams%20space) so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
* **Small Changes** can be crafted and submitted to our [GitHub Repository](https://github.com/momentum-design/momentum-ui-angular/pulls) as a Pull Request.
## Requirements
diff --git a/README.md b/README.md
index d2c3451058..1a043e850b 100644
--- a/README.md
+++ b/README.md
@@ -6,9 +6,9 @@
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)
-> Collab UI
+> Momentum UI
-Collab UI is a collection of UI libraries for implementing [Momentum Design](https://momentum.design) into web applications and websites.
+Momentum UI is a collection of UI libraries for implementing [Momentum Design](https://momentum.design) into web applications and websites.
## Table of Contents
diff --git a/angular/CONTRIBUTING.md b/angular/CONTRIBUTING.md
index e63e763fa9..b95780cec5 100644
--- a/angular/CONTRIBUTING.md
+++ b/angular/CONTRIBUTING.md
@@ -1,7 +1,7 @@
# Contributing
-##### We'd love for you to contribute to our source code and to make Collab UI Angular even better than it is today! Below are the guidelines to follow.
+##### We'd love for you to contribute to our source code and to make Momentum UI Angular even better than it is today! Below are the guidelines to follow.
## Table of Contents
diff --git a/angular/README.md b/angular/README.md
index 1c79369371..a5caf534e4 100644
--- a/angular/README.md
+++ b/angular/README.md
@@ -1,4 +1,4 @@
-# Collab UI Angular
+# Momentum UI Angular
[![CircleCI](https://img.shields.io/circleci/project/github/momentum-ui/momentum-ui/master.svg)](https://circleci.com/gh/momentum-ui/momentum-ui/)
![npm (scoped)](https://img.shields.io/npm/v/@momentum-ui/angular.svg)
@@ -6,7 +6,7 @@
> @momentum-ui/angular
-Collab UI Angular is a UI framework for implementing Cisco Collaboration Design into web apps and sites.
+Momentum UI Angular is a UI framework for implementing Cisco Momentum Design into web apps and sites.
## Table of Contents
@@ -17,7 +17,7 @@ Collab UI Angular is a UI framework for implementing Cisco Collaboration Design
## Install
-Install and manage the Collab UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/.
+Install and manage the Momentum UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/.
`npm install @momentum-ui/angular --save`
diff --git a/angular/src/docs/app/app.component.ts b/angular/src/docs/app/app.component.ts
index 5c77499f70..a49258f73e 100644
--- a/angular/src/docs/app/app.component.ts
+++ b/angular/src/docs/app/app.component.ts
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
selector: 'docs-root',
template: `
-
Welcome to the Collab UI Toolkit for Angular
+
Welcome to the Momentum UI Toolkit for Angular
`,
diff --git a/angular/src/docs/index.html b/angular/src/docs/index.html
index 383d6dcb0c..8e0d076908 100644
--- a/angular/src/docs/index.html
+++ b/angular/src/docs/index.html
@@ -2,7 +2,7 @@
- CollabUiAngularDocs
+ Momentum UI Angular
diff --git a/angular/src/lib/README.md b/angular/src/lib/README.md
index 1c79369371..a5caf534e4 100644
--- a/angular/src/lib/README.md
+++ b/angular/src/lib/README.md
@@ -1,4 +1,4 @@
-# Collab UI Angular
+# Momentum UI Angular
[![CircleCI](https://img.shields.io/circleci/project/github/momentum-ui/momentum-ui/master.svg)](https://circleci.com/gh/momentum-ui/momentum-ui/)
![npm (scoped)](https://img.shields.io/npm/v/@momentum-ui/angular.svg)
@@ -6,7 +6,7 @@
> @momentum-ui/angular
-Collab UI Angular is a UI framework for implementing Cisco Collaboration Design into web apps and sites.
+Momentum UI Angular is a UI framework for implementing Cisco Momentum Design into web apps and sites.
## Table of Contents
@@ -17,7 +17,7 @@ Collab UI Angular is a UI framework for implementing Cisco Collaboration Design
## Install
-Install and manage the Collab UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/.
+Install and manage the Momentum UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/.
`npm install @momentum-ui/angular --save`
diff --git a/angular/src/lib/icon/icon.component.ts b/angular/src/lib/icon/icon.component.ts
index 67f3f0bbc2..c99ef3f6b3 100644
--- a/angular/src/lib/icon/icon.component.ts
+++ b/angular/src/lib/icon/icon.component.ts
@@ -106,7 +106,7 @@ export class IconComponent implements OnInit {
const lookupIconName = nameWithSize.replace(/^(icon-)/, '');
const iconNameClass = `icon-${lookupIconName}`;
- // validate Icon name with Collab Toolkit
+ // validate Icon name with Momentum Design
if ((iconNames).indexOf(lookupIconName) < 0) {
this.consoleHandler('name-error', nameWithSize);
}
diff --git a/angular/src/lib/package.json b/angular/src/lib/package.json
index 5131af59c6..2f8ab593b8 100644
--- a/angular/src/lib/package.json
+++ b/angular/src/lib/package.json
@@ -1,7 +1,7 @@
{
"name": "@momentum-ui/angular",
"version": "5.2.1",
- "description": "The Cisco Collab UI Icons library allows developers to easily incorporate Webex Icons and CSS into any application.",
+ "description": "The Cisco Momentum UI Icons library allows developers to easily incorporate Webex Icons and CSS into any application.",
"homepage": "http://momentum.design/components",
"keywords": [
"Angular",
@@ -10,7 +10,7 @@
"Webex",
"Cisco Spark",
"Spark UI",
- "Collab UI"
+ "Momentum UI"
],
"schematics": "./schematics/collection.json",
"dependencies": {
diff --git a/angular/src/lib/topbar/examples/blue.component.ts b/angular/src/lib/topbar/examples/blue.component.ts
index 1bd989ea44..b4a9eb6fc2 100644
--- a/angular/src/lib/topbar/examples/blue.component.ts
+++ b/angular/src/lib/topbar/examples/blue.component.ts
@@ -33,7 +33,7 @@ import { Component } from '@angular/core';
diff --git a/angular/src/lib/topbar/examples/dark.component.ts b/angular/src/lib/topbar/examples/dark.component.ts
index 1d1450595a..b09ffd5b25 100644
--- a/angular/src/lib/topbar/examples/dark.component.ts
+++ b/angular/src/lib/topbar/examples/dark.component.ts
@@ -33,7 +33,7 @@ import { Component } from '@angular/core';
diff --git a/angular/src/lib/topbar/examples/light.component.ts b/angular/src/lib/topbar/examples/light.component.ts
index 0ef01a3da7..40e1695fd6 100644
--- a/angular/src/lib/topbar/examples/light.component.ts
+++ b/angular/src/lib/topbar/examples/light.component.ts
@@ -33,7 +33,7 @@ import { Component } from '@angular/core';
diff --git a/angular/src/lib/topbar/tests/topbar-brand.component.spec.ts b/angular/src/lib/topbar/tests/topbar-brand.component.spec.ts
index 80cf4d65d5..662d0dc82b 100644
--- a/angular/src/lib/topbar/tests/topbar-brand.component.spec.ts
+++ b/angular/src/lib/topbar/tests/topbar-brand.component.spec.ts
@@ -48,9 +48,9 @@ describe('TopbarBrandComponent', () => {
});
it('should handle title', () => {
- testComponent.title = 'Collab UI';
+ testComponent.title = 'Momentum UI';
fixture.detectChanges();
const title = fixture.nativeElement.querySelector('.md-brand__title');
- expect(title.textContent).toEqual('Collab UI');
+ expect(title.textContent).toEqual('Momentum UI');
});
});
diff --git a/angular/src/schematics/README.md b/angular/src/schematics/README.md
index e46696cbf0..5fa54a6b01 100644
--- a/angular/src/schematics/README.md
+++ b/angular/src/schematics/README.md
@@ -1,10 +1,10 @@
-# Collab UI Schematics
+# Momentum UI Schematics
-These schematics provide built in integrations with the Angular CLI features in order to make it easier for users to install and update Collab UI.
+These schematics provide built in integrations with the Angular CLI features in order to make it easier for users to install and update Momentum UI.
## `ng add @momentum-ui/angular`
-This schematic wires up with the Angular CLI to support automatically adding Collab UI to an Angular CLI project.
+This schematic wires up with the Angular CLI to support automatically adding Momentum UI to an Angular CLI project.
##### How it works
diff --git a/angular/src/schematics/src/add/index.ts b/angular/src/schematics/src/add/index.ts
index e6dd3dde71..84884c9d70 100644
--- a/angular/src/schematics/src/add/index.ts
+++ b/angular/src/schematics/src/add/index.ts
@@ -28,13 +28,13 @@ if (existsSync(join(__dirname, '../../package.json'))) {
export default function(options: any): Rule {
return chain([
- addCollabUIDependencies(options),
+ addMomentumUIDependencies(options),
addModuleImport(options),
- addCollabUIAppStyles(options),
+ addMomentumUIAppStyles(options),
]);
}
-function addCollabUIDependencies(options: Schema) {
+function addMomentumUIDependencies(options: Schema) {
return (tree: Tree, context: SchematicContext) => {
addPackageToPackageJson(
tree,
@@ -72,7 +72,7 @@ function addModuleImport(options: Schema) {
};
}
-function addCollabUIAppStyles(options: Schema) {
+function addMomentumUIAppStyles(options: Schema) {
return (host: Tree) => {
const workspace = getWorkspace(host);
const project = getProjectFromWorkspace(workspace, options.project);
diff --git a/angular/src/schematics/src/add/schema.json b/angular/src/schematics/src/add/schema.json
index a962ad85b1..2b0bf6bf7f 100644
--- a/angular/src/schematics/src/add/schema.json
+++ b/angular/src/schematics/src/add/schema.json
@@ -1,19 +1,19 @@
{
"$schema": "http://json-schema.org/schema",
- "id": "SchematicsCollabUIAdd",
- "title": "CollabUI Add Options Schema",
+ "id": "SchematicsMomentumUIAdd",
+ "title": "MomentumUI Add Options Schema",
"type": "object",
"properties": {
"project": {
"type": "string",
- "description": "The project to add Collab UI to.",
+ "description": "The project to add Momentum UI to.",
"$default": {
"$source": "projectName"
}
},
"module": {
"type": "string",
- "description": "The module file to add Collab UI to, should be relative to project source directory.",
+ "description": "The module file to add Momentum UI to, should be relative to project source directory.",
"alias": "m",
"default": "src/app/app.module.ts"
},
diff --git a/angular/src/schematics/src/collection.json b/angular/src/schematics/src/collection.json
index 9c12afba63..2f338a4a22 100644
--- a/angular/src/schematics/src/collection.json
+++ b/angular/src/schematics/src/collection.json
@@ -2,12 +2,12 @@
"$schema": "node_modules/@angular-devkit/schematics/collection-schema.json",
"schematics": {
"ng-add": {
- "description": "Add Collab UI to your project",
+ "description": "Add Momentum UI to your project",
"factory": "./add",
"schema": "./add/schema.json"
},
"nav": {
- "description": "Create Collab UI navigation",
+ "description": "Create Momentum UI navigation",
"factory": "./generate/nav",
"schema": "./generate/nav/schema.json",
"aliases": ["momentum-nav", "momentumNav"]
diff --git a/angular/src/schematics/src/generate/nav/schema.json b/angular/src/schematics/src/generate/nav/schema.json
index 068e70b203..154357eb83 100644
--- a/angular/src/schematics/src/generate/nav/schema.json
+++ b/angular/src/schematics/src/generate/nav/schema.json
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/schema",
- "id": "SchematicsCollabUINav",
- "title": "Collab UI Nav Options Schema",
+ "id": "SchematicsMomentumUINav",
+ "title": "Momentum UI Nav Options Schema",
"type": "object",
"properties": {
"path": {
diff --git a/angularjs/CONTRIBUTING.md b/angularjs/CONTRIBUTING.md
index 17dc861b04..8d7d65fcb9 100644
--- a/angularjs/CONTRIBUTING.md
+++ b/angularjs/CONTRIBUTING.md
@@ -1,7 +1,7 @@
# Contributing
-##### We'd love for you to contribute to our source code and to make Collab UI Angularjs even better than it is today! Below are the guidelines to follow.
+##### We'd love for you to contribute to our source code and to make Momentum UI Angularjs even better than it is today! Below are the guidelines to follow.
## Table of Contents
diff --git a/angularjs/README.md b/angularjs/README.md
index b6bddfae60..8e57d19e82 100644
--- a/angularjs/README.md
+++ b/angularjs/README.md
@@ -1,10 +1,10 @@
-# [Collab UI AngularJS](https://momentum.design/)
+# [Momentum UI AngularJS](https://momentum.design/)
-Collab UI AngularJS is a UI framework for implementing Cisco Collaboration Design into web apps and sites.
+Momentum UI AngularJS is a UI framework for implementing Cisco Momentum Design into web apps and sites.
-> @collabui/momentum-ui-ng
+> @momentum-ui/angularjs
-Collab UI Angular is a UI framework for implementing Cisco Collaboration Design into web apps and sites.
+Momentum UI Angular is a UI framework for implementing Cisco Momentum Design into web apps and sites.
## Table of Contents
@@ -15,23 +15,23 @@ Collab UI Angular is a UI framework for implementing Cisco Collaboration Design
## Install
-Install and manage the Collab UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/.
+Install and manage the Momentum UI Angular using NPM. You may use `yarn` or `npm`. By default, yarn/npm installs packages to node_modules/.
-`npm install @collabui/momentum-ui-ng --save`
+`npm install @momentum-ui/angularjs --save`
or
-`yarn add @collabui/momentum-ui-ng`
+`yarn add @momentum-ui/angularjs`
## Usage
### NgModule
-Import the @collabui/momentum-ui-ng into your apps main module to make the components/directives available throughout your app.
+Import the @momentum-ui/angularjs into your apps main module to make the components/directives available throughout your app.
``` ts
export default angular
.module('app', [
- require('@collabui/momentum-ui-ng').default,
+ require('@momentum-ui/angularjs').default,
])
.component('app', new AppComponent())
.name;
diff --git a/angularjs/package.json b/angularjs/package.json
index 2f9f9561b7..75ef8aa45c 100644
--- a/angularjs/package.json
+++ b/angularjs/package.json
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@momentum-ui/angularjs",
- "description": "Cisco Collab UI AngularJS 1.X components",
+ "description": "Cisco Momentum UI AngularJS 1.X components",
"version": "10.0.7",
"main": "bundles/momentum-ui-angularjs.umd.min.js",
"typings": "types/momentum-ui-angularjs.d.ts",
@@ -17,7 +17,7 @@
"Webex",
"Cisco Spark",
"Spark UI",
- "Collab UI",
+ "Momentum UI",
"AngularJS",
"ng"
],
diff --git a/angularjs/src/lib/components/accordion/accordion.directive.ts b/angularjs/src/lib/components/accordion/accordion.directive.ts
index 6fbe24b92c..8b719c6b62 100644
--- a/angularjs/src/lib/components/accordion/accordion.directive.ts
+++ b/angularjs/src/lib/components/accordion/accordion.directive.ts
@@ -2,8 +2,8 @@ import * as angular from 'angular';
// The accordion directive simply sets up the directive controller
// and adds an accordion CSS class to itself element.
-CsAccordionController.$inject = ['$scope', '$attrs', 'csAccordionConfig'];
-export function CsAccordionController($scope, $attrs, csAccordionConfig) {
+MdAccordionController.$inject = ['$scope', '$attrs', 'mdAccordionConfig'];
+export function MdAccordionController($scope, $attrs, mdAccordionConfig) {
let vm = this;
// This array keeps track of the accordion groups
vm.groups = [];
@@ -11,7 +11,7 @@ export function CsAccordionController($scope, $attrs, csAccordionConfig) {
// Ensure that all the groups in this accordion are closed, unless close-others explicitly says not to
vm.closeOthers = function (openGroup) {
let closeOthers = angular.isDefined($attrs.closeOthers) ?
- $scope.$eval($attrs.closeOthers) : csAccordionConfig.closeOthers;
+ $scope.$eval($attrs.closeOthers) : mdAccordionConfig.closeOthers;
if (closeOthers) {
angular.forEach(vm.groups, function (group) {
if (group !== openGroup) {
@@ -40,14 +40,14 @@ export function CsAccordionController($scope, $attrs, csAccordionConfig) {
}
-export function csAccordion() {
- let csAccordionDirective = {
+export function mdAccordion() {
+ let mdAccordionDirective = {
restrict: 'EA',
- controller: CsAccordionController,
- controllerAs: 'csAccordion',
+ controller: MdAccordionController,
+ controllerAs: 'mdAccordion',
transclude: true,
template: ``,
};
- return csAccordionDirective;
+ return mdAccordionDirective;
}
diff --git a/angularjs/src/lib/components/accordion/accordionGroup.directive.ts b/angularjs/src/lib/components/accordion/accordionGroup.directive.ts
index 23064c1024..1fc3fb0397 100644
--- a/angularjs/src/lib/components/accordion/accordionGroup.directive.ts
+++ b/angularjs/src/lib/components/accordion/accordionGroup.directive.ts
@@ -1,7 +1,7 @@
-// The cs-accordion-group directive indicates a block of html that will expand and collapse in an accordion
-export function csAccordionGroup() {
- let csAccordionGroupDirective = {
- require: '^csAccordion', // We need this directive to be inside an accordion
+// The md-accordion-group directive indicates a block of html that will expand and collapse in an accordion
+export function mdAccordionGroup() {
+ let mdAccordionGroupDirective = {
+ require: '^mdAccordion', // We need this directive to be inside an accordion
restrict: 'EA',
transclude: true, // It transcludes the contents of the directive into the template
replace: true, // The element containing the directive will be replaced with the template
@@ -14,7 +14,7 @@ export function csAccordionGroup() {
ng-click="toggleOpen()">
+ md-accordion-transclude="heading">
@@ -31,19 +31,19 @@ export function csAccordionGroup() {
displayStatus: '@?',
showCaret: '=?',
},
- controller: csAccordionGroupCtrl,
- controllerAs: 'csAccordionGrp',
+ controller: mdAccordionGroupCtrl,
+ controllerAs: 'mdAccordionGrp',
link: link,
};
- function link(scope, element, attrs, csAccordionCtrl) {
+ function link(scope, element, attrs, mdAccordionCtrl) {
scope.toggleOpen = toggleOpen;
- csAccordionCtrl.addGroup(scope);
+ mdAccordionCtrl.addGroup(scope);
scope.$watch('isOpen', function (value) {
if (value) {
- csAccordionCtrl.closeOthers(scope);
+ mdAccordionCtrl.closeOthers(scope);
}
});
@@ -54,7 +54,7 @@ export function csAccordionGroup() {
}
}
- function csAccordionGroupCtrl() {
+ function mdAccordionGroupCtrl() {
let vm = this;
vm.setHeading = setHeading;
@@ -63,5 +63,5 @@ export function csAccordionGroup() {
}
}
- return csAccordionGroupDirective;
+ return mdAccordionGroupDirective;
}
diff --git a/angularjs/src/lib/components/accordion/accordionHeading.directive.ts b/angularjs/src/lib/components/accordion/accordionHeading.directive.ts
index 434aba0a70..8cdc28b4d7 100644
--- a/angularjs/src/lib/components/accordion/accordionHeading.directive.ts
+++ b/angularjs/src/lib/components/accordion/accordionHeading.directive.ts
@@ -1,23 +1,23 @@
-// Use cs-accordion-heading below a cs-accordion-group to provide a heading containing HTML
-//
-// Heading containing HTML -
-//
-export function csAccordionHeading() {
- let csAccordionHeadingDirective = {
+// Use md-accordion-heading below a md-accordion-group to provide a heading containing HTML
+//
+// Heading containing HTML -
+//
+export function mdAccordionHeading() {
+ let mdAccordionHeadingDirective = {
restrict: 'EA',
transclude: true, // Grab the contents to be used as the heading
template: '', // In effect remove this element!
replace: true,
- require: '^csAccordionGroup',
+ require: '^mdAccordionGroup',
link: link,
};
- function link(scope, element, attr, csAccordionGroupCtrl, transclude) {
- // Pass the heading to the cs-accordion-group controller
+ function link(scope, element, attr, mdAccordionGroupCtrl, transclude) {
+ // Pass the heading to the md-accordion-group controller
// so that it can be transcluded into the right place in the template
// [The second parameter to transclude causes the elements to be cloned so that they work in ng-repeat]
- csAccordionGroupCtrl.setHeading(transclude(scope, function () { }));
+ mdAccordionGroupCtrl.setHeading(transclude(scope, function () { }));
}
- return csAccordionHeadingDirective;
+ return mdAccordionHeadingDirective;
}
diff --git a/angularjs/src/lib/components/accordion/accordionTransclude.directive.ts b/angularjs/src/lib/components/accordion/accordionTransclude.directive.ts
index 412d07ff53..40e808e1e5 100755
--- a/angularjs/src/lib/components/accordion/accordionTransclude.directive.ts
+++ b/angularjs/src/lib/components/accordion/accordionTransclude.directive.ts
@@ -1,19 +1,19 @@
-// Use in the cs-accordion-group template to indicate where you want the heading to be transcluded
-// You must provide the property on the cs-accordion-group controller that will hold the transcluded element
+// Use in the md-accordion-group template to indicate where you want the heading to be transcluded
+// You must provide the property on the md-accordion-group controller that will hold the transcluded element
//
-export function csAccordionTransclude() {
- let csAccordionTranscludeDirective = {
- require: '^csAccordionGroup',
+export function mdAccordionTransclude() {
+ let mdAccordionTranscludeDirective = {
+ require: '^mdAccordionGroup',
link: link,
};
function link(scope, element, attr, controller) {
scope.$watch(function () {
- return controller[attr.csAccordionTransclude];
+ return controller[attr.mdAccordionTransclude];
}, function (heading) {
if (heading) {
element.html('');
@@ -22,5 +22,5 @@ export function csAccordionTransclude() {
});
}
- return csAccordionTranscludeDirective;
+ return mdAccordionTranscludeDirective;
}
diff --git a/angularjs/src/lib/components/accordion/index.ts b/angularjs/src/lib/components/accordion/index.ts
index 50bc18eab8..3000171172 100644
--- a/angularjs/src/lib/components/accordion/index.ts
+++ b/angularjs/src/lib/components/accordion/index.ts
@@ -1,19 +1,19 @@
import * as angular from 'angular';
-import { csAccordion } from './accordion.directive';
-import { csAccordionGroup } from './accordionGroup.directive';
-import { csAccordionHeading } from './accordionHeading.directive';
-import { csAccordionTransclude } from './accordionTransclude.directive';
-import csCollapse from '../../directives/collapse';
+import { mdAccordion } from './accordion.directive';
+import { mdAccordionGroup } from './accordionGroup.directive';
+import { mdAccordionHeading } from './accordionHeading.directive';
+import { mdAccordionTransclude } from './accordionTransclude.directive';
+import mdCollapse from '../../directives/collapse';
export default angular
- .module('collab.ui.accordion', [
- csCollapse,
+ .module('momentum.ui.accordion', [
+ mdCollapse,
])
- .constant('csAccordionConfig', {
+ .constant('mdAccordionConfig', {
closeOthers: true,
})
- .directive('csAccordion', csAccordion)
- .directive('csAccordionGroup', csAccordionGroup)
- .directive('csAccordionHeading', csAccordionHeading)
- .directive('csAccordionTransclude', csAccordionTransclude)
+ .directive('mdAccordion', mdAccordion)
+ .directive('mdAccordionGroup', mdAccordionGroup)
+ .directive('mdAccordionHeading', mdAccordionHeading)
+ .directive('mdAccordionTransclude', mdAccordionTransclude)
.name;
diff --git a/angularjs/src/lib/components/alertbanner/alertbanner.component.spec.ts b/angularjs/src/lib/components/alertbanner/alertbanner.component.spec.ts
index b769bf61c0..3f019c1cd9 100644
--- a/angularjs/src/lib/components/alertbanner/alertbanner.component.spec.ts
+++ b/angularjs/src/lib/components/alertbanner/alertbanner.component.spec.ts
@@ -1,10 +1,10 @@
-import csAlertbanner from './index';
+import mdAlertbanner from './index';
-describe('Component: csAlertbanner', () => {
+describe('Component: mdAlertbanner', () => {
let element, $scope, $compile;
beforeEach(() => {
- angular.mock.module(csAlertbanner);
+ angular.mock.module(mdAlertbanner);
inject(function ($injector) {
$scope = $injector.get('$rootScope').$new();
$compile = $injector.get('$compile');
@@ -19,33 +19,33 @@ describe('Component: csAlertbanner', () => {
}
it('should default on type "info"', function () {
- element = getCompiledElement('');
+ element = getCompiledElement('');
const alertBanner = element.find('.md-alert-banner');
expect(alertBanner.hasClass('md-alert-banner--info')).toBe(true);
});
it('should reflect the "type" in the class', function () {
const type = 'danger';
- element = getCompiledElement('');
+ element = getCompiledElement('');
const alertBanner = element.find('.md-alert-banner');
expect(alertBanner.hasClass(`md-alert-banner--${type}`)).toBe(true);
});
it('should not display a close button by default', function () {
- element = getCompiledElement('');
+ element = getCompiledElement('');
const closeButton = element.find('.md-alert-banner-close');
expect(closeButton.context).not.toBeDefined();
});
it('should display a close button if "closeable" is true', function () {
- element = getCompiledElement('');
+ element = getCompiledElement('');
const closeButton = element.find('.md-alert-banner-close');
expect(closeButton).toBeDefined();
});
it('should transclude', function () {
let text = 'dog';
- element = getCompiledElement('' + text + '');
+ element = getCompiledElement('' + text + '');
const alertBanner = element.find('.md-alert-banner');
expect(alertBanner.text()).toContain(text);
});
diff --git a/angularjs/src/lib/components/alertbanner/alertbanner.component.ts b/angularjs/src/lib/components/alertbanner/alertbanner.component.ts
index 84320df371..3353f02311 100644
--- a/angularjs/src/lib/components/alertbanner/alertbanner.component.ts
+++ b/angularjs/src/lib/components/alertbanner/alertbanner.component.ts
@@ -56,7 +56,7 @@ export class AlertBannerComponent implements ng.IComponentOptions {
* @param type - info
* @param closable - boolean (false)
* @html
-* Special announcement with a call to action
+* Special announcement with a call to action
*/
/**
@@ -66,7 +66,7 @@ export class AlertBannerComponent implements ng.IComponentOptions {
* @param type - warning
*
* @html
-* You are in Read-Only mode, learn more
+* You are in Read-Only mode, learn more
*/
/**
@@ -76,5 +76,5 @@ export class AlertBannerComponent implements ng.IComponentOptions {
* @param type - danger
*
* @html
-* This critical announcement that has a lot of copy that breaks onto a new line which is centered and has a max width and a call to action
+* This critical announcement that has a lot of copy that breaks onto a new line which is centered and has a max width and a call to action
*/
diff --git a/angularjs/src/lib/components/alertbanner/index.ts b/angularjs/src/lib/components/alertbanner/index.ts
index 393efd9204..6c8ce869fc 100644
--- a/angularjs/src/lib/components/alertbanner/index.ts
+++ b/angularjs/src/lib/components/alertbanner/index.ts
@@ -2,6 +2,6 @@ import * as angular from 'angular';
import { AlertBannerComponent } from './alertbanner.component';
export default angular
- .module('collab.ui.alertBanner', [])
- .component('csAlertBanner', new AlertBannerComponent())
+ .module('momentum.ui.alertBanner', [])
+ .component('mdAlertBanner', new AlertBannerComponent())
.name;
diff --git a/angularjs/src/lib/components/badge/badge.component.ts b/angularjs/src/lib/components/badge/badge.component.ts
index 9fdd669fb3..f69d8d9a88 100644
--- a/angularjs/src/lib/components/badge/badge.component.ts
+++ b/angularjs/src/lib/components/badge/badge.component.ts
@@ -25,18 +25,18 @@ export class BadgeComponent implements ng.IComponentOptions {
Colors
- Badge
- Blue
- Red
- Yellow
- Green
- Mint
- Mint
- Mint
- Mint
- Mint
- Mint
- Mint
+ Badge
+ Blue
+ Red
+ Yellow
+ Green
+ Mint
+ Mint
+ Mint
+ Mint
+ Mint
+ Mint
+ Mint
@@ -44,18 +44,18 @@ export class BadgeComponent implements ng.IComponentOptions {
Round
- badge
- blue
- red
- yellow
- green
- mint
- pastel
- blue-pastel
- red-pastel
- yellow-pastel
- green-pastel
- mint-pastel
+ badge
+ blue
+ red
+ yellow
+ green
+ mint
+ pastel
+ blue-pastel
+ red-pastel
+ yellow-pastel
+ green-pastel
+ mint-pastel
@@ -63,36 +63,36 @@ export class BadgeComponent implements ng.IComponentOptions {
@@ -24,8 +24,8 @@ export class CardNumberComponent implements ng.IComponentOptions {
`;
public bindings = {
- csId: '<',
- csTitle: '<',
+ mdId: '<',
+ mdTitle: '<',
onRemoveFn: '&',
deleteAriaLabel: '@?',
};
diff --git a/angularjs/src/lib/components/cardnumber/index.ts b/angularjs/src/lib/components/cardnumber/index.ts
index be7d8da234..367be34e5e 100644
--- a/angularjs/src/lib/components/cardnumber/index.ts
+++ b/angularjs/src/lib/components/cardnumber/index.ts
@@ -2,6 +2,6 @@ import * as angular from 'angular';
import { CardNumberComponent } from './cardnumber.component';
export default angular
- .module('collab.ui.card-number', [])
- .component('csCardNumber', new CardNumberComponent())
+ .module('momentum.ui.card-number', [])
+ .component('mdCardNumber', new CardNumberComponent())
.name;
diff --git a/angularjs/src/lib/components/cards/card.component.ts b/angularjs/src/lib/components/cards/card.component.ts
index 540c2dfc75..1e752f05bc 100644
--- a/angularjs/src/lib/components/cards/card.component.ts
+++ b/angularjs/src/lib/components/cards/card.component.ts
@@ -5,7 +5,7 @@ import * as imagesLoaded from 'imagesloaded';
export class CardLayout implements ng.IDirective {
/**
- * Usage:
+ * Usage:
*/
private blockView: boolean;
constructor(
@@ -77,7 +77,7 @@ export class CardCtrl implements ng.IComponentController {
export class Card implements ng.IDirective {
/**
- * Usage:
+ * Usage:
*/
public restrict: string = 'EA';
public template: string = ``;
@@ -97,7 +97,7 @@ export class Card implements ng.IDirective {
export class CardMenuCtrl implements ng.IComponentController {
private menuOpen: boolean;
- public csCardCtrl: any;
+ public mdCardCtrl: any;
constructor (
private $scope: ng.IScope
@@ -106,25 +106,25 @@ export class CardMenuCtrl implements ng.IComponentController {
}
public $onInit(): void {
- this.$scope.$watch('cm.csCardCtrl.menuOpen', () => {
- this.menuOpen = this.csCardCtrl.getMenuStatus();
+ this.$scope.$watch('cm.mdCardCtrl.menuOpen', () => {
+ this.menuOpen = this.mdCardCtrl.getMenuStatus();
});
}
public toggleSettings(): void {
- this.csCardCtrl.toggleSettings();
- this.menuOpen = this.csCardCtrl.getMenuStatus();
+ this.mdCardCtrl.toggleSettings();
+ this.menuOpen = this.mdCardCtrl.getMenuStatus();
}
}
export class CardMenu implements ng.IDirective {
//
- // Usage:
+ // Usage:
// @param cardMenuTitle - The title dispayed in the menu header
//
public restrict: string = 'EA';
public require: { [controller: string]: string } = {
- csCardCtrl: '^csCard',
+ mdCardCtrl: '^mdCard',
};
public scope = {
menutitle: '=',
@@ -154,24 +154,24 @@ export class CardMenu implements ng.IDirective {
export class CardMenuFooterCtrl implements ng.IComponentController {
private menuOpen: boolean;
- public csCardCtrl: any;
+ public mdCardCtrl: any;
constructor() {
this.menuOpen = false;
}
public toggleSettings(): void {
- this.csCardCtrl.toggleSettings();
- this.menuOpen = this.csCardCtrl.getMenuStatus();
+ this.mdCardCtrl.toggleSettings();
+ this.menuOpen = this.mdCardCtrl.getMenuStatus();
}
}
export class CardMenuFooter implements ng.IDirective {
//
- // Usage:
+ // Usage:
//
public restrict: string = 'EA';
public require: { [controller: string]: string } = {
- csCardCtrl: '^csCard',
+ mdCardCtrl: '^mdCard',
};
public scope = {
icon: '=',
@@ -203,13 +203,13 @@ export class CardMenuFooter implements ng.IDirective {
* @section default
*
* @html
-
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
@@ -303,8 +303,8 @@ export class CardMenuFooter implements ng.IDirective {
bacon incididunt nulla ham hock tenderloin. Esse culpa et sunt. Spare ribs swine cillum do commodo.
-
-
+
+
Header
@@ -313,8 +313,8 @@ export class CardMenuFooter implements ng.IDirective {
CARD 6 Does your lorem ipsum text long for something a little meatier? Give our generator a try… it’s tasty!
-
-
+
+
Header
@@ -339,8 +339,8 @@ export class CardMenuFooter implements ng.IDirective {
est laboris meatball pork belly beef ribs.
-
-
+
+
Header
@@ -354,8 +354,8 @@ export class CardMenuFooter implements ng.IDirective {
meatier? Give our generator a try… it’s tasty!
-
-
+
+
@@ -648,8 +648,8 @@ export class CardMenuFooter implements ng.IDirective {
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
-
-
+
+
Medium Card 3 across
@@ -657,8 +657,8 @@ export class CardMenuFooter implements ng.IDirective {
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
-
-
+
+
Large Card 2 across
@@ -666,8 +666,8 @@ export class CardMenuFooter implements ng.IDirective {
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
-
-
+
+
Full Card 1 across
@@ -675,8 +675,8 @@ export class CardMenuFooter implements ng.IDirective {
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
Section Description. Curabitur lobortis id lorem id bibendum. Ut id consectetur magna. Quisque volutpat augue enim, pulvinar lobortis nibh lacinia at. Vestibulum nec erat ut mi sollicitudin porttitor id sit amet risus. Nam tempus vel odio vitae aliquam. In imperdiet eros id lacus vestibulum vestibulum. Suspendisse fermentum sem sagittis ante venenatis egestas quis vel justo. Maecenas semper suscipit nunc, sed aliquam sapien convallis eu. Nulla ut turpis in diam dapibus consequat.
@@ -19,7 +19,7 @@
*/
/* @ngInject */
-export function csSticky() {
+export function mdSticky() {
return {
restrict: 'A',
link: function (scope, el, att, ngModel) {
diff --git a/angularjs/src/lib/directives/timepicker/index.ts b/angularjs/src/lib/directives/timepicker/index.ts
index 5be34e2e77..4eb56b7850 100644
--- a/angularjs/src/lib/directives/timepicker/index.ts
+++ b/angularjs/src/lib/directives/timepicker/index.ts
@@ -1,10 +1,10 @@
import * as angular from 'angular';
import * as ngMessages from 'angular-messages';
-import { csTimepicker } from './timepicker.directive';
+import { mdTimepicker } from './timepicker.directive';
export default angular
- .module('collab.ui.timepicker', [
+ .module('momentum.ui.timepicker', [
ngMessages || 'ngMessages',
])
- .directive('csTimepicker', csTimepicker)
+ .directive('mdTimepicker', mdTimepicker)
.name;
diff --git a/angularjs/src/lib/directives/timepicker/timepicker.directive.ts b/angularjs/src/lib/directives/timepicker/timepicker.directive.ts
index 477d89e167..c89b61ef17 100644
--- a/angularjs/src/lib/directives/timepicker/timepicker.directive.ts
+++ b/angularjs/src/lib/directives/timepicker/timepicker.directive.ts
@@ -3,8 +3,8 @@ import { KeyCodes } from '../dropdown/keyCodes';
const moment = require('moment');
-csTimepicker.$inject = ['$document', '$window', '$timeout', '$compile', '$exceptionHandler', '$templateRequest'];
-export function csTimepicker($document, $window, $timeout, $compile, $exceptionHandler, $templateRequest) {
+mdTimepicker.$inject = ['$document', '$window', '$timeout', '$compile', '$exceptionHandler', '$templateRequest'];
+export function mdTimepicker($document, $window, $timeout, $compile, $exceptionHandler, $templateRequest) {
let directive = {
restrict: 'AC',
require: 'ngModel',
@@ -19,15 +19,15 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
minutes: '@',
meridian: '@',
twentyfourhour: '@',
- messages: '=?csTimepickerMessages', // Object containing validation key/value pairs,
- label: '@?csTimepickerLabel',
- groupSize: '@?csTimepickerGroupSize', // Size class for outer cs-timepicker-group container
- helpText: '@?csTimepickerHelpText', // Text for help text
- secondaryLabel: '@?csTimepickerSecondaryLabel', // Secondary label text
- size: '@?csTimepickerSize', // Size class for input element
- nested: '@?csTimepickerNested', // Indent the input
- warning: '=?csTimepickerWarning', // Expression or Boolean to show warning message
- warningMessage: '@?csTimepickerWarningMessage', // Warning message
+ messages: '=?mdTimepickerMessages', // Object containing validation key/value pairs,
+ label: '@?mdTimepickerLabel',
+ groupSize: '@?mdTimepickerGroupSize', // Size class for outer md-timepicker-group container
+ helpText: '@?mdTimepickerHelpText', // Text for help text
+ secondaryLabel: '@?mdTimepickerSecondaryLabel', // Secondary label text
+ size: '@?mdTimepickerSize', // Size class for input element
+ nested: '@?mdTimepickerNested', // Indent the input
+ warning: '=?mdTimepickerWarning', // Expression or Boolean to show warning message
+ warningMessage: '@?mdTimepickerWarningMessage', // Warning message
},
compile: compile,
};
@@ -62,7 +62,7 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
let type = scope.type;
let show = scope.ngShow;
let inputGroup = '';
- if (scope.csToggle && scope.type === 'checkbox') {
+ if (scope.mdToggle && scope.type === 'checkbox') {
iElement.addClass('md-toggle__input');
inputGroup = '';
} else {
@@ -100,7 +100,7 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
-
+
@@ -110,7 +110,7 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
-
+
@@ -119,7 +119,7 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
-
+
@@ -135,7 +135,7 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
// Convert the html to an actual DOM node
let template = angular.element(html);
// Add the custom timepicker attribute to the directive element
- iElement.attr('cs-tp-name', 'time');
+ iElement.attr('md-tp-name', 'time');
// Append it to the directive element
iElement.after(template);
// And let Angular $compile it
@@ -218,7 +218,7 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
scope.selectedTime = moment([scope.hours, ':', scope.minutes, ' ', scope.meridian].join(''), scope.format).format(scope.format);
}
//Trigger ng-change for validation
- iElement.parent().find('[cs-tp-name="time"]').val(scope.selectedTime);
+ iElement.parent().find('[md-tp-name="time"]').val(scope.selectedTime);
iElement.trigger('change');
}
};
@@ -347,13 +347,13 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
keydown: function (event) {
if ((event.keyCode || event.which) === KeyCodes.TAB) {
let tabindex = event.shiftKey ? '-1' : '0';
- iElement.parent().find('[cs-tp-name="time"]').attr('tabIndex', tabindex);
+ iElement.parent().find('[md-tp-name="time"]').attr('tabIndex', tabindex);
}
},
mousedown: function (event) {
if (iElement !== event.target && !iElement.parent()[0].contains(event.target)) {
scope.opened = false;
- iElement.parent().find('[cs-tp-name="time"]').attr('tabIndex', '0');
+ iElement.parent().find('[md-tp-name="time"]').attr('tabIndex', '0');
}
},
};
@@ -384,7 +384,7 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
time: function (event) {
scope.showTimepicker();
$timeout(function () {
- iElement.parent().find('[cs-tp-name="hh"]').focus();
+ iElement.parent().find('[md-tp-name="hh"]').focus();
});
},
hh: function (event) {
@@ -471,7 +471,7 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
let bindEvents = function (obj, el) {
el = el || iElement;
el.on(Object.keys(obj).join(eventNs + ' ') + eventNs, function (event) {
- let name = $(event.target).attr('cs-tp-name');
+ let name = $(event.target).attr('md-tp-name');
if (obj[event.type] && typeof obj[event.type][name] === 'function') {
scope.$apply(function (scope) {
obj[event.type][name](event);
@@ -487,9 +487,9 @@ export function csTimepicker($document, $window, $timeout, $compile, $exceptionH
};
$timeout(function () {
- bindEvents(keyActions, iElement.parent().find('[cs-tp-name]'));
- bindEvents(mouseActions, iElement.parent().find('[cs-tp-name]'));
- bindEvents(focusActions, iElement.parent().find('[cs-tp-name]'));
+ bindEvents(keyActions, iElement.parent().find('[md-tp-name]'));
+ bindEvents(mouseActions, iElement.parent().find('[md-tp-name]'));
+ bindEvents(focusActions, iElement.parent().find('[md-tp-name]'));
});
}
}
diff --git a/angularjs/src/lib/directives/tooltip/index.ts b/angularjs/src/lib/directives/tooltip/index.ts
index 3674e7717a..21f4684877 100644
--- a/angularjs/src/lib/directives/tooltip/index.ts
+++ b/angularjs/src/lib/directives/tooltip/index.ts
@@ -15,7 +15,7 @@ import {
export * from './tooltip.directive';
-export default angular.module('collab.ui.tooltip', [])
+export default angular.module('momentum.ui.tooltip', [])
.directive('tooltip', tooltip)
.directive('tooltipHtmlUnsafe', tooltipHtmlUnsafe)
.directive('tooltipClasses', tooltipClasses)
diff --git a/angularjs/src/lib/directives/tooltip/tooltip.directive.ts b/angularjs/src/lib/directives/tooltip/tooltip.directive.ts
index 042b4f7c50..b801334c33 100644
--- a/angularjs/src/lib/directives/tooltip/tooltip.directive.ts
+++ b/angularjs/src/lib/directives/tooltip/tooltip.directive.ts
@@ -154,14 +154,14 @@ export class $tooltip implements ng.IServiceProvider {
if (!positionTimeout) {
positionTimeout = $timeout(() => {
// Reset the positioning.
- tooltip.css({
+ tooltip.foobar({
top: 0,
left: 0,
});
// Now set the calculated positioning.
let ttPosition = $position.positionElements(element, tooltip, ttScope.placement, appendToBody);
- tooltip.css({
+ tooltip.foobar({
top: ttPosition.top + 'px',
left: ttPosition.left + 'px',
visibility: 'visible',
@@ -767,7 +767,7 @@ export function tooltipClasses($position) {
* @description A lightweight, extensible directive for fancy tooltip creation. The tooltipdirective supports multiple placements, optional transition animation, and more.
*
* @html
-
diff --git a/icons/README.md b/icons/README.md
index de5c32c6bf..e8711d60ab 100644
--- a/icons/README.md
+++ b/icons/README.md
@@ -4,9 +4,9 @@
![npm (scoped)](https://img.shields.io/npm/v/@momentum-ui/icons.svg)
[![license](https://img.shields.io/github/license/momentum-ui/momentum-ui.svg?color=blueviolet)](https://github.com/momentum-design/momentum-ui/blob/master/icons/LICENSE)
-> Collab UI Icons
+> Momentum UI Icons
-Collab UI Icons is a full suite of the pictographic font and svg icons.
+Momentum UI Icons is a full suite of the pictographic font and svg icons.
## Table of Contents
@@ -22,7 +22,7 @@ Collab UI Icons is a full suite of the pictographic font and svg icons.
## Background
-Collab UI Icons is a full suite of the pictographic icons for easy scalable vector graphics on websites and web applications, created and maintained by the Spark UI Design Language team. It contains the Scss, CSS, fonts and SVG files needed for implenting the icons indepented of any other framework. It is also consumed and published as part of the Collab UI Toolkit.
+Momentum UI Icons is a full suite of the pictographic icons for easy scalable vector graphics on websites and web applications, created and maintained by the Spark UI Design Language team. It contains the Scss, CSS, fonts and SVG files needed for implenting the icons indepented of any other framework. It is also consumed and published as part of the Momentum UI Toolkit.
## Install
@@ -63,13 +63,13 @@ or
### Basic Icons
-You can place Collab UI Icons just about anywhere using the CSS Prefix `icon-` and the icon's name. Collab UI Icons is designed to be used with inline elements (we like the `` tag for brevity, but using a `` is more semantically correct).
+You can place Momentum UI Icons just about anywhere using the CSS Prefix `icon-` and the icon's name. Momentum UI Icons is designed to be used with inline elements (we like the `` tag for brevity, but using a `` is more semantically correct).
``
### Icon Sizes
-All of the Collab UI Icons are suffixed with their size. i.e. `icon-camera_16` The CSS will automatically size the icons according to this size.
+All of the Momentum UI Icons are suffixed with their size. i.e. `icon-camera_16` The CSS will automatically size the icons according to this size.
### Fixed Width Icons
diff --git a/icons/package.json b/icons/package.json
index e31b09e67c..b7c56bfd53 100644
--- a/icons/package.json
+++ b/icons/package.json
@@ -1,7 +1,7 @@
{
"name": "@momentum-ui/icons",
"version": "4.20.0",
- "description": "The Cisco Collab UI Icons library allows developers to easily incorporate Webex Icons and CSS into any application.",
+ "description": "The Cisco Momentum UI Icons library allows developers to easily incorporate Webex Icons and CSS into any application.",
"homepage": "http://momentum.design/styles/icons",
"keywords": [
"font",
@@ -10,7 +10,7 @@
"Webex",
"Cisco Spark",
"Spark UI",
- "Collab UI"
+ "Momentum UI"
],
"style": "css/momentum-ui-icons.css",
"main": "scss/momentum-ui-icons.scss",
diff --git a/icons/templates/CollabIconType.swift.hbs b/icons/templates/CollabIconType.swift.hbs
index 5008d81ab1..d75cad5e2b 100644
--- a/icons/templates/CollabIconType.swift.hbs
+++ b/icons/templates/CollabIconType.swift.hbs
@@ -1,6 +1,6 @@
import Foundation
-@objc public enum CollabIconType: Int {
+@objc public enum MomentumIconType: Int {
// swiftlint:disable:next identifier_name
case _invalid
{{#each glyphsData}}
diff --git a/react/CONTRIBUTING.md b/react/CONTRIBUTING.md
index 69eb93bb65..36895378df 100644
--- a/react/CONTRIBUTING.md
+++ b/react/CONTRIBUTING.md
@@ -1,6 +1,6 @@
# Contributing
-##### We'd love for you to contribute to our source code and to make Collab UI React even better than it is today! Below are the guidelines to follow.
+##### We'd love for you to contribute to our source code and to make Momentum UI React even better than it is today! Below are the guidelines to follow.
## Table of Contents
@@ -73,7 +73,7 @@ All UI components of `momentum-ui-react` are unit-tested using two approaches:
### Components
- * `Collab UI React` follows **components and their compositions** based architecture with focus on simplicity, flexibility and performance.
+ * `Momentum UI React` follows **components and their compositions** based architecture with focus on simplicity, flexibility and performance.
* Only statefull components are implemented as subclass of `React.Component`. Others are simple stateless functions or PureComponents.
@@ -106,7 +106,7 @@ let concatenatedvalue_wrong = 'Hello ' + name + ' everyone'; // ✕
* Avoid var to declare variables.
* Use lowercase names for folder names and PascalCase for component folder names.
-Please follow the coding style of the current code base. Collab UI React uses [eslint](http://eslint.org/) for ES6/JS and [stylelint](https://stylelint.io/) for scss/css, so if possible, enable linting in your editor to get realtime feedback. The linting rules can be run manually as below
+Please follow the coding style of the current code base. Momentum UI React uses [eslint](http://eslint.org/) for ES6/JS and [stylelint](https://stylelint.io/) for scss/css, so if possible, enable linting in your editor to get realtime feedback. The linting rules can be run manually as below
```js
npm run lint
diff --git a/react/README.md b/react/README.md
index 56aab81542..5d49fe8b1a 100644
--- a/react/README.md
+++ b/react/README.md
@@ -1,10 +1,10 @@
-# Collab UI React
+# Momentum UI React
[![CircleCI](https://img.shields.io/circleci/project/github/momentum-ui/momentum-ui/master.svg)](https://circleci.com/gh/momentum-ui/momentum-ui/)
![npm (scoped)](https://img.shields.io/npm/v/@momentum-ui/react.svg)
[![license](https://img.shields.io/github/license/momentum-ui/momentum-ui.svg?color=blueviolet)](https://github.com/momentum-design/momentum-ui/blob/master/react/LICENSE)
-**`Collab UI React`** is a resuable, component based, flexible React library available as
+**`Momentum UI React`** is a resuable, component based, flexible React library available as
npm module. It provides set of UI components and utilities based on [Momentum Design](https://momentum.design).
The git repo can be cloned from [momentum-ui-react](https://github.com/momentum-design/momentum-ui-react) at [https://github.com/momentum-design/momentum-ui-react](https://github.com/momentum-design/momentum-ui-react).
@@ -37,7 +37,7 @@ npm i -S @momentum-ui/react
yarn install -S @momentum-ui/react
```
-### Step 2. Import Collab UI React components in your app
+### Step 2. Import Momentum UI React components in your app
Use ES6 import statement to import the component that you want to use:
@@ -49,7 +49,7 @@ import Button from from '@momentum-ui/react/button';
...
- Welcome to Collab UI React !
+ Welcome to Momentum UI React !
```
@@ -65,7 +65,7 @@ import Button from from '@momentum-ui/react/button';
* [react-dom](https://github.com/facebook/react) - MIT
-### Collaboration Design System Look & Feel
+### Momentum Design System Look & Feel
* [@momentum-ui/core](https://github.com/momentum-design/momentum-ui-core) - MIT
* [@momentum-ui/icons](https://github.com/momentum-design/momentum-ui-icons) - MIT
diff --git a/react/package.json b/react/package.json
index 2da8bf879b..037ec6ddf4 100644
--- a/react/package.json
+++ b/react/package.json
@@ -1,7 +1,7 @@
{
"name": "@momentum-ui/react",
"version": "15.1.1",
- "description": "Cisco Collab UI framework for ReactJs applications",
+ "description": "Cisco Momentum UI framework for ReactJs applications",
"author": "Cisco Systems, Inc.",
"contributors": [
"Paul Jeter ",
@@ -18,7 +18,7 @@
"keywords": [
"Cisco",
"Cisco Spark",
- "Collab UI",
+ "Momentum UI",
"ReactJS",
"Spark UI",
"Webex",
diff --git a/react/src/app/index.ejs b/react/src/app/index.ejs
index 642f82d1a8..73013333ab 100755
--- a/react/src/app/index.ejs
+++ b/react/src/app/index.ejs
@@ -17,7 +17,7 @@
- Collab UI React
+ Momentum UI React
diff --git a/react/src/lib/Icon/tests/index.spec.js b/react/src/lib/Icon/tests/index.spec.js
index 40c24547b4..5529fc331d 100644
--- a/react/src/lib/Icon/tests/index.spec.js
+++ b/react/src/lib/Icon/tests/index.spec.js
@@ -330,7 +330,7 @@ describe('Tests for ', () => {
});
});
- it('should log a warning if the icon does not exist in Collab UI Icons', () => {
+ it('should log a warning if the icon does not exist in Momentum UI Icons', () => {
global.console = { warn: jest.fn() };
const props = {
name: 'not-an-icon_16',
diff --git a/react/src/lib/Tab/index.js b/react/src/lib/Tab/index.js
index 75e3237f1b..f2a155bd5c 100644
--- a/react/src/lib/Tab/index.js
+++ b/react/src/lib/Tab/index.js
@@ -21,7 +21,7 @@ class Tab extends React.PureComponent {
disabled
} = this.props;
- // Due to Collab UI must keep anchor element instead of button eventhough accessibility would like the anchor element to be switched to a button.
+ // Due to Momentum UI must keep anchor element instead of button eventhough accessibility would like the anchor element to be switched to a button.
/* eslint-disable */
return (
{
const { heading, subHeading } = props;
return (
- //Element type requires by UI-Collab Style
+ //Element type required by Momentum UI Style
{heading}
{subHeading &&
{subHeading}
}
diff --git a/react/tools/nodeVersionCheck.js b/react/tools/nodeVersionCheck.js
index 2d82e2ce98..e596ebc3a6 100644
--- a/react/tools/nodeVersionCheck.js
+++ b/react/tools/nodeVersionCheck.js
@@ -5,6 +5,6 @@ exec('node -v', function(err, stdout) {
if (err) throw err;
if (parseFloat(stdout.slice(1)) < 4) {
- throw new Error('Collab-UI-React requires node 4.0 or greater.');
+ throw new Error('@momentum-ui/react requires node 8.0 or greater.');
}
});
diff --git a/utils/package.json b/utils/package.json
index 7a9e0d762c..dd0b7dd67d 100644
--- a/utils/package.json
+++ b/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@momentum-ui/utils",
"version": "5.1.0",
- "description": "Collab UI Utility functions.",
+ "description": "Momentum UI Utility functions.",
"license": "MIT",
"main": "index.js",
"module": "index.js",
diff --git a/www/README.md b/www/README.md
index ecde65d5b2..35ea7f34e2 100644
--- a/www/README.md
+++ b/www/README.md
@@ -1 +1 @@
-# Collab Design Docs Site
+# Momentum Design Docs Site
diff --git a/www/tools/nodeVersionCheck.js b/www/tools/nodeVersionCheck.js
index 95980c911b..117ffb2edd 100644
--- a/www/tools/nodeVersionCheck.js
+++ b/www/tools/nodeVersionCheck.js
@@ -5,6 +5,6 @@ exec('node -v', function (err, stdout) {
if (err) throw err;
if (parseFloat(stdout.slice(1)) < 6) {
- throw new Error('Collab UI Starter React requires node 6.0 or greater.');
+ throw new Error('Momentum UI Starter React requires node 6.0 or greater.');
}
});