@commercetools-uikit/flat-button
Advanced tools
Comparing version 10.18.7-canary.4 to 10.18.7-canary.5
@@ -107,5 +107,5 @@ 'use strict'; | ||
var FlatButton = function FlatButton(props) { | ||
var dataProps = _objectSpread2({ | ||
var dataProps = _objectSpread2(_objectSpread2({ | ||
'data-track-component': 'FlatButton' | ||
}, utils.filterInvalidAttributes(omit(props, propsToOmit)), { | ||
}, utils.filterInvalidAttributes(omit(props, propsToOmit))), {}, { | ||
disabled: props.isDisabled | ||
@@ -120,3 +120,3 @@ }); | ||
css: function css(theme) { | ||
var overwrittenVars = _objectSpread2({}, designSystem.customProperties, {}, theme); | ||
var overwrittenVars = _objectSpread2(_objectSpread2({}, designSystem.customProperties), theme); | ||
return core.css("min-height:initial;align-items:center;", props.as && props.as !== 'button' ? "white-space: normal;\n display: inline-block;" : '', ";span{color:", props.isDisabled ? overwrittenVars.colorNeutral : getTextColor(props.tone, false, overwrittenVars), ";}svg *{fill:", props.isDisabled ? overwrittenVars.colorNeutral : getTextColor(props.tone, false, overwrittenVars), ";}* + span,* + svg{margin-left:", designSystem.customProperties.spacingXs, ";}", !props.isDisabled ? "\n &:hover,\n &:focus {\n span {\n color: ".concat(getTextColor(props.tone, true, overwrittenVars), ";\n }\n svg * {\n fill: ").concat(getTextColor(props.tone, true, overwrittenVars), ";\n }\n }") : ''); | ||
@@ -149,5 +149,5 @@ }, | ||
var version = '10.18.7-canary.4+635c2bdf'; | ||
var version = '10.18.7-canary.5+37850586'; | ||
exports.default = FlatButton; | ||
exports.version = version; |
@@ -101,5 +101,5 @@ import React from 'react'; | ||
var FlatButton = function FlatButton(props) { | ||
var dataProps = _objectSpread2({ | ||
var dataProps = _objectSpread2(_objectSpread2({ | ||
'data-track-component': 'FlatButton' | ||
}, filterInvalidAttributes(omit(props, propsToOmit)), { | ||
}, filterInvalidAttributes(omit(props, propsToOmit))), {}, { | ||
disabled: props.isDisabled | ||
@@ -114,3 +114,3 @@ }); | ||
css: function css$1(theme) { | ||
var overwrittenVars = _objectSpread2({}, customProperties, {}, theme); | ||
var overwrittenVars = _objectSpread2(_objectSpread2({}, customProperties), theme); | ||
return css("min-height:initial;align-items:center;", props.as && props.as !== 'button' ? "white-space: normal;\n display: inline-block;" : '', ";span{color:", props.isDisabled ? overwrittenVars.colorNeutral : getTextColor(props.tone, false, overwrittenVars), ";}svg *{fill:", props.isDisabled ? overwrittenVars.colorNeutral : getTextColor(props.tone, false, overwrittenVars), ";}* + span,* + svg{margin-left:", customProperties.spacingXs, ";}", !props.isDisabled ? "\n &:hover,\n &:focus {\n span {\n color: ".concat(getTextColor(props.tone, true, overwrittenVars), ";\n }\n svg * {\n fill: ").concat(getTextColor(props.tone, true, overwrittenVars), ";\n }\n }") : ''); | ||
@@ -143,5 +143,5 @@ }, | ||
var version = '10.18.7-canary.4+635c2bdf'; | ||
var version = '10.18.7-canary.5+37850586'; | ||
export default FlatButton; | ||
export { version }; |
{ | ||
"name": "@commercetools-uikit/flat-button", | ||
"version": "10.18.7-canary.4+635c2bdf", | ||
"version": "10.18.7-canary.5+37850586", | ||
"description": "", | ||
@@ -22,7 +22,7 @@ "main": "dist/flat-button.cjs.js", | ||
"dependencies": { | ||
"@commercetools-uikit/accessible-button": "10.18.7-canary.4+635c2bdf", | ||
"@commercetools-uikit/design-system": "10.18.7-canary.4+635c2bdf", | ||
"@commercetools-uikit/spacings-inline": "10.18.7-canary.4+635c2bdf", | ||
"@commercetools-uikit/text": "10.18.7-canary.4+635c2bdf", | ||
"@commercetools-uikit/utils": "10.18.7-canary.4+635c2bdf", | ||
"@commercetools-uikit/accessible-button": "10.18.7-canary.5+37850586", | ||
"@commercetools-uikit/design-system": "10.18.7-canary.5+37850586", | ||
"@commercetools-uikit/spacings-inline": "10.18.7-canary.5+37850586", | ||
"@commercetools-uikit/text": "10.18.7-canary.5+37850586", | ||
"@commercetools-uikit/utils": "10.18.7-canary.5+37850586", | ||
"@emotion/core": "10.0.28", | ||
@@ -38,3 +38,3 @@ "@emotion/styled": "10.0.27", | ||
}, | ||
"gitHead": "635c2bdf3baf85f99a493ca78a75216ef4383f40" | ||
"gitHead": "37850586b5473b8ece407856e358f56b284bd60c" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
16493