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

clay-button

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-button - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

14

package.json
{
"name": "clay-button",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"description": "Metal Clay Button component.",

@@ -28,3 +28,3 @@ "license": "BSD",

"dependencies": {
"clay-icon": "^1.0.0-alpha.1",
"clay-icon": "^1.0.0-alpha.2",
"metal": "^2.13.2",

@@ -40,7 +40,11 @@ "metal-component": "^2.13.2",

"babel-plugin-transform-node-env-inline": "^0.1.1",
"babel-preset-es2015": "^6.14.0",
"clay": "liferay/clay#develop",
"babel-preset-env": "^1.6.0",
"browserslist-config-clay-components": "^1.0.0-alpha.2",
"clay": "^2.0.0-beta.1",
"metal-tools-soy": "^4.2.1",
"webpack": "^3.0.0"
}
},
"browserslist": [
"extends browserslist-config-clay-components"
]
}

@@ -86,3 +86,2 @@ import ClayButton from '../ClayButton';

icon: {
monospaced: true,
spritemap: 'icons.svg',

@@ -96,6 +95,17 @@ symbol: 'plus',

it('should render a button with icon and monospaced true', function() {
button = new ClayButton({
icon: {
spritemap: 'icons.svg',
symbol: 'plus',
},
monospaced: true,
});
expect(button).toMatchSnapshot();
});
it('should render a button with icon and label', function() {
button = new ClayButton({
icon: {
monospaced: true,
spritemap: 'icons.svg',

@@ -114,3 +124,2 @@ symbol: 'plus',

alignment: 'right',
monospaced: true,
spritemap: 'icons.svg',

@@ -117,0 +126,0 @@ symbol: 'plus',

@@ -55,3 +55,2 @@ import 'clay-icon';

alignment: Config.oneOf(['left', 'right']),
monospaced: Config.bool(),
spritemap: Config.string().required(),

@@ -80,2 +79,11 @@ symbol: Config.string().required(),

/**
* Flag to indicate if button should be monospaced.
* @instance
* @memberof ClayButton
* @type {?bool}
* @default false
*/
monospaced: Config.bool().value(false),
/**
* The name attribute value of the element.

@@ -82,0 +90,0 @@ * @instance

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