Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #7 from Polymer/master
Browse files Browse the repository at this point in the history
8/1 master -> stable
  • Loading branch information
dfreedm committed Aug 1, 2013
2 parents c625aa8 + cbc15f9 commit ca40352
Show file tree
Hide file tree
Showing 53 changed files with 2,479 additions and 311 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/docs

/node_modules
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tools"]
path = tools
url = https://github.com/Polymer/tools.git
Binary file modified assets/action-icons.pdn
Binary file not shown.
Binary file modified assets/action-icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
module.exports = function(grunt) {
grunt.initConfig({
yuidoc: {
compile: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
exclude: 'third_party',
extension: '.js,.html',
paths: '.',
outdir: 'docs',
linkNatives: 'true',
tabtospace: 2,
themedir: 'tools/doc/themes/footstrap'
}
}
},
pkg: grunt.file.readJSON('package.json')
});

// plugins
grunt.loadNpmTasks('grunt-contrib-yuidoc');

// tasks
grunt.registerTask('default', ['yuidoc']);
grunt.registerTask('docs', ['yuidoc']);
};

18 changes: 18 additions & 0 deletions manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<meta>
<polymer-element-meta name="polymer-ui-accordion"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-collapsible"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-field"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-icon"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-icon-button"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-menu"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-menu-item"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-nav-arrow"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-ratings"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-sidebar-menu"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-splitter"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-tabs"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-theme-aware"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-toggle-button"></polymer-element-meta>
<polymer-element-meta name="polymer-ui-toolbar"></polymer-element-meta>
</meta>
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "PolymerUIElements",
"version": "0.0.1",
"devDependencies": {
"grunt": "*",
"grunt-contrib-yuidoc": "*"
}
}
3 changes: 3 additions & 0 deletions polymer-ui-accordion/polymer-ui-accordion.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@
<link rel="stylesheet" href="polymer-ui-accordion.css">
<shadow></shadow>
</template>
<script>
Polymer('polymer-ui-accordion');
</script>
</polymer-element>
15 changes: 12 additions & 3 deletions polymer-ui-collapsible/polymer-ui-collapsible.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,30 @@
-->
<link rel="import" href="../../polymer-elements/polymer-collapse/polymer-collapse.html">

<polymer-element name="polymer-ui-collapsible" attributes="active">
<polymer-element name="polymer-ui-collapsible" attributes="active notap">
<template>
<link rel="stylesheet" href="polymer-ui-collapsible.css">
<div on-tap="toggle">
<div on-tap="headerTap">
<content select=".polymer-ui-collapsible-header"></content>
</div>
<div id="collapsibleBody">
<div id="collapsibleBody" on-tap="bodyTap">
<content></content>
</div>
<polymer-collapse targetId="collapsibleBody" closed="{{!active}}"></polymer-collapse>
</template>
<script>
Polymer('polymer-ui-collapsible', {
notap: false,
toggle: function() {
this.active = !this.active;
},
headerTap: function() {
if (!this.notap) {
this.toggle();
}
},
bodyTap: function(e) {
e.cancelBubble = true;
}
});
</script>
Expand Down
22 changes: 22 additions & 0 deletions polymer-ui-field/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Polymer UI Field</title>
<script src="../../polymer/polymer.js" debug></script>
<link rel="import" href="polymer-ui-field.html" />
<link rel="import" href="../polymer-ui-icon-button/polymer-ui-icon-button.html" />
<style>
html {
font-family: 'Helvetica Neue', 'Roboto', 'Arial', sans-serif;
font-size: 14px;
}
</style>
</head>
<body>
<polymer-ui-field>
<polymer-ui-icon-button icon="add"></polymer-ui-icon-button>
<input value="Field input">
</polymer-ui-field>
</body>
</html>
33 changes: 33 additions & 0 deletions polymer-ui-field/polymer-ui-field.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<polymer-element name="polymer-ui-field">
<template>
<style>
@host {
* {
display: block;
padding: 18px;
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
}
::-webkit-distributed(input) {
font-size: 14px;
height: 40px;
color: #333;
border: 0;
flex: 1 auto;
}
::-webkit-distributed(input::placeholder) {
color: #b3b3b3;
}
div {
display: flex;
flex-direction: row;
}
</style>
<div>
<content select="*"></content>
</div>
</template>
<script>
Polymer('polymer-ui-field');
</script>
</polymer-element>
6 changes: 3 additions & 3 deletions polymer-ui-icon-button/polymer-ui-icon-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ license that can be found in the LICENSE file.
background: url(btn_light.png) top left no-repeat;
background-size: cover;
}

*:hover {
background-position: 0 -44px;
}

*.selected {
background-position: 0 -88px;
}

*:active, *.selected:active {
background-position: 0 -132px;
}
Expand Down
2 changes: 1 addition & 1 deletion polymer-ui-icon-button/polymer-ui-icon-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<polymer-element name="polymer-ui-icon-button" attributes="src index icon active">
<template>
<link rel="stylesheet" href="polymer-ui-icon-button.css">
<polymer-ui-icon src="{{src}}" index="{{index}}" icon="{{icon}}"></polymer-ui-icon>
<polymer-ui-icon src="{{src}}" index="{{index}}" icon="{{icon}}"><content></content></polymer-ui-icon>
</template>
<script>
Polymer('polymer-ui-icon-button', {
Expand Down
Binary file added polymer-ui-icon/action-icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ca40352

Please sign in to comment.