Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polymer/paper-radio-button

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymer/paper-radio-button - npm Package Compare versions

Comparing version 3.0.0-pre.12 to 3.0.0-pre.13

8

manifest.json
{
"files": {
"paper-radio-button.html": {
"convertedUrl": "paper-radio-button.js",
"exports": {}
},
"index.html": {

@@ -11,6 +15,2 @@ "convertedUrl": "index.html",

},
"paper-radio-button.html": {
"convertedUrl": "paper-radio-button.js",
"exports": {}
},
"test/basic.html": {

@@ -17,0 +17,0 @@ "convertedUrl": "test/basic.html",

@@ -19,12 +19,14 @@ {

"bower": "^1.8.0",
"@polymer/iron-component-page": "3.0.0-pre.12",
"@polymer/iron-demo-helpers": "3.0.0-pre.12",
"@polymer/iron-test-helpers": "3.0.0-pre.12",
"wct-browser-legacy": "0.0.1-pre.11",
"@webcomponents/webcomponentsjs": "^1.0.0"
"webmat": "^0.2.0",
"@polymer/iron-component-page": "^3.0.0-pre.13",
"@polymer/iron-demo-helpers": "^3.0.0-pre.13",
"@polymer/iron-test-helpers": "^3.0.0-pre.13",
"wct-browser-legacy": "^0.0.1-pre.11",
"@webcomponents/webcomponentsjs": "^2.0.0-0"
},
"scripts": {
"update-types": "bower install && gen-typescript-declarations --deleteExisting --outDir ."
"update-types": "bower install && gen-typescript-declarations --deleteExisting --outDir .",
"format": "webmat && npm run update-types"
},
"version": "3.0.0-pre.12",
"version": "3.0.0-pre.13",
"resolutions": {

@@ -39,8 +41,8 @@ "inherits": "2.0.3",

"dependencies": {
"@polymer/iron-checked-element-behavior": "3.0.0-pre.12",
"@polymer/iron-flex-layout": "3.0.0-pre.12",
"@polymer/paper-behaviors": "3.0.0-pre.12",
"@polymer/paper-styles": "3.0.0-pre.12",
"@polymer/polymer": "3.0.0-pre.12"
"@polymer/iron-checked-element-behavior": "^3.0.0-pre.13",
"@polymer/iron-flex-layout": "^3.0.0-pre.13",
"@polymer/paper-behaviors": "^3.0.0-pre.13",
"@polymer/paper-styles": "^3.0.0-pre.13",
"@polymer/polymer": "^3.0.0-pre.13"
}
}

@@ -1,8 +0,65 @@

import '@polymer/polymer/polymer-legacy.js';
import { PaperCheckedElementBehavior } from '@polymer/paper-behaviors/paper-checked-element-behavior.js';
import '@polymer/paper-styles/default-theme.js';
import '@polymer/iron-flex-layout/iron-flex-layout.js';
import { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js';
import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
const $_documentContainer = document.createElement('div');
/**
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/**
Material design: [Radio button](https://www.google.com/design/spec/components/selection-controls.html#selection-controls-radio-button)
`paper-radio-button` is a button that can be either checked or unchecked.
User can tap the radio button to check or uncheck it.
Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons
are inside a radio group, exactly one radio button in the group can be checked
at any time.
Example:
<paper-radio-button></paper-radio-button>
<paper-radio-button>Item label</paper-radio-button>
### Styling
The following custom properties and mixins are available for styling:
Custom property | Description | Default
----------------|-------------|----------
`--paper-radio-button-unchecked-background-color` | Radio button background color when the input is not checked | `transparent`
`--paper-radio-button-unchecked-color` | Radio button color when the input is not checked | `--primary-text-color`
`--paper-radio-button-unchecked-ink-color` | Selected/focus ripple color when the input is not checked | `--primary-text-color`
`--paper-radio-button-checked-color` | Radio button color when the input is checked | `--primary-color`
`--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the input is checked | `--primary-color`
`--paper-radio-button-size` | Size of the radio button | `16px`
`--paper-radio-button-ink-size` | Size of the ripple | `48px`
`--paper-radio-button-label-color` | Label color | `--primary-text-color`
`--paper-radio-button-label-spacing` | Spacing between the label and the button | `10px`
`--paper-radio-button-radio-container` | A mixin applied to the internal radio container | `{}`
`--paper-radio-button-label` | A mixin applied to the internal label | `{}`
`--paper-radio-button-label-checked` | A mixin applied to the internal label when the radio button is checked | `{}`
This element applies the mixin `--paper-font-common-base` but does not import `paper-styles/typography.html`.
In order to apply the `Roboto` font to this element, make sure you've imported `paper-styles/typography.html`.
@group Paper Elements
@element paper-radio-button
@hero hero.svg
@demo demo/index.html
*/
/*
FIXME(polymer-modulizer): the above comments were extracted
from HTML and may be out of place here. Review them and
then delete this comment!
*/
import '../polymer/polymer-legacy.js';
import { PaperCheckedElementBehavior } from '../paper-behaviors/paper-checked-element-behavior.js';
import '../paper-styles/default-theme.js';
import '../iron-flex-layout/iron-flex-layout.js';
import { Polymer } from '../polymer/lib/legacy/polymer-fn.js';
import { afterNextRender } from '../polymer/lib/utils/render-status.js';
const $_documentContainer = document.createElement('template');
$_documentContainer.setAttribute('style', 'display: none;');

@@ -145,66 +202,9 @@

document.head.appendChild($_documentContainer);
/**
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/**
Material design: [Radio button](https://www.google.com/design/spec/components/selection-controls.html#selection-controls-radio-button)
`paper-radio-button` is a button that can be either checked or unchecked.
User can tap the radio button to check or uncheck it.
Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons
are inside a radio group, exactly one radio button in the group can be checked
at any time.
Example:
<paper-radio-button></paper-radio-button>
<paper-radio-button>Item label</paper-radio-button>
### Styling
The following custom properties and mixins are available for styling:
Custom property | Description | Default
----------------|-------------|----------
`--paper-radio-button-unchecked-background-color` | Radio button background color when the input is not checked | `transparent`
`--paper-radio-button-unchecked-color` | Radio button color when the input is not checked | `--primary-text-color`
`--paper-radio-button-unchecked-ink-color` | Selected/focus ripple color when the input is not checked | `--primary-text-color`
`--paper-radio-button-checked-color` | Radio button color when the input is checked | `--primary-color`
`--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the input is checked | `--primary-color`
`--paper-radio-button-size` | Size of the radio button | `16px`
`--paper-radio-button-ink-size` | Size of the ripple | `48px`
`--paper-radio-button-label-color` | Label color | `--primary-text-color`
`--paper-radio-button-label-spacing` | Spacing between the label and the button | `10px`
`--paper-radio-button-radio-container` | A mixin applied to the internal radio container | `{}`
`--paper-radio-button-label` | A mixin applied to the internal label | `{}`
`--paper-radio-button-label-checked` | A mixin applied to the internal label when the radio button is checked | `{}`
This element applies the mixin `--paper-font-common-base` but does not import `paper-styles/typography.html`.
In order to apply the `Roboto` font to this element, make sure you've imported `paper-styles/typography.html`.
@group Paper Elements
@element paper-radio-button
@hero hero.svg
@demo demo/index.html
*/
document.head.appendChild($_documentContainer.content);
Polymer({
is: 'paper-radio-button',
behaviors: [
PaperCheckedElementBehavior
],
behaviors: [PaperCheckedElementBehavior],
hostAttributes: {
role: 'radio',
'aria-checked': false,
tabindex: 0
},
hostAttributes: {role: 'radio', 'aria-checked': false, tabindex: 0},

@@ -224,6 +224,3 @@ properties: {

ariaActiveAttribute: {
type: String,
value: 'aria-checked'
}
ariaActiveAttribute: {type: String, value: 'aria-checked'}
},

@@ -239,6 +236,10 @@

afterNextRender(this, function() {
var inkSize = this.getComputedStyleValue('--calculated-paper-radio-button-ink-size').trim();
var inkSize =
this.getComputedStyleValue('--calculated-paper-radio-button-ink-size')
.trim();
// If unset, compute and set the default `--paper-radio-button-ink-size`.
if (inkSize === '-1px') {
var size = parseFloat(this.getComputedStyleValue('--calculated-paper-radio-button-size').trim());
var size = parseFloat(
this.getComputedStyleValue('--calculated-paper-radio-button-size')
.trim());
var defaultInkSize = Math.floor(3 * size);

@@ -258,2 +259,2 @@

},
});
})

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc