clay-button
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14342
9
7
240
Updatedclay-icon@^1.0.0-alpha.2