@commercetools-uikit/accessible-button
Advanced tools
Comparing version 10.16.1-canary.7 to 10.16.1-canary.8
@@ -12,2 +12,3 @@ 'use strict'; | ||
var commonTags = require('common-tags'); | ||
var utils = require('@commercetools-uikit/utils'); | ||
var designSystem = require('@commercetools-uikit/design-system'); | ||
@@ -46,2 +47,10 @@ var core = require('@emotion/core'); | ||
var _ref = { | ||
name: "mg0co4", | ||
styles: "display:inline-block;box-sizing:border-box;padding:0;margin:0;border:none;cursor:pointer;background:none;color:inherit;white-space:nowrap;font:inherit;font-size:inherit;font-family:inherit;letter-spacing:inherit;word-spacing:inherit;text-decoration:none;text-rendering:inherit;text-align:inherit;text-transform:inherit;text-indent:inherit;text-shadow:inherit;" | ||
}; | ||
var getNormalizedButtonStyles = function getNormalizedButtonStyles() { | ||
return _ref; | ||
}; | ||
function _templateObject() { | ||
@@ -57,5 +66,5 @@ var data = _taggedTemplateLiteral(["\n ", ": \"", "\" does not have any effect when\n \"as\" is set.\n "]); | ||
target: "e1hlacz70" | ||
})("text-decoration:none;border:none;background:none;box-sizing:border-box;display:inline-flex;outline:0;padding:0;margin:0;white-space:nowrap;cursor:", function (props) { | ||
})(getNormalizedButtonStyles, " display:inline-flex;outline:0;font-size:", designSystem.customProperties.fontSizeDefault, ";cursor:", function (props) { | ||
return props.disabled ? 'not-allowed' : 'pointer'; | ||
}, ";color:inherit;font:inherit;font-size:", designSystem.customProperties.fontSizeDefault, ";font-family:inherit;&:disabled{cursor:not-allowed;}"); | ||
}, ";&:disabled{cursor:not-allowed;}"); | ||
var AccessibleButton = React.forwardRef(function (props, ref) { | ||
@@ -87,3 +96,3 @@ var onClick = props.onClick; | ||
'aria-pressed': props.isToggled | ||
} : {}, omit(props.buttonAttributes, propsToOmit), isButton ? buttonProps : {}), props.children); | ||
} : {}, omit(props.buttonAttributes, propsToOmit), isButton ? buttonProps : {}, utils.filterAriaAttributes(props)), props.children); | ||
}); | ||
@@ -129,5 +138,6 @@ AccessibleButton.displayName = 'AccessibleButton'; | ||
var version = '10.16.1-canary.7+3e84589e'; | ||
var version = '10.16.1-canary.8+8b4b5d50'; | ||
exports.default = AccessibleButton; | ||
exports.getNormalizedButtonStyles = getNormalizedButtonStyles; | ||
exports.version = version; |
@@ -6,2 +6,3 @@ import _styled from '@emotion/styled-base'; | ||
import { oneLine } from 'common-tags'; | ||
import { filterAriaAttributes } from '@commercetools-uikit/utils'; | ||
import { customProperties } from '@commercetools-uikit/design-system'; | ||
@@ -40,2 +41,10 @@ import { jsx } from '@emotion/core'; | ||
var _ref = { | ||
name: "mg0co4", | ||
styles: "display:inline-block;box-sizing:border-box;padding:0;margin:0;border:none;cursor:pointer;background:none;color:inherit;white-space:nowrap;font:inherit;font-size:inherit;font-family:inherit;letter-spacing:inherit;word-spacing:inherit;text-decoration:none;text-rendering:inherit;text-align:inherit;text-transform:inherit;text-indent:inherit;text-shadow:inherit;" | ||
}; | ||
var getNormalizedButtonStyles = function getNormalizedButtonStyles() { | ||
return _ref; | ||
}; | ||
function _templateObject() { | ||
@@ -51,5 +60,5 @@ var data = _taggedTemplateLiteral(["\n ", ": \"", "\" does not have any effect when\n \"as\" is set.\n "]); | ||
target: "e1hlacz70" | ||
})("text-decoration:none;border:none;background:none;box-sizing:border-box;display:inline-flex;outline:0;padding:0;margin:0;white-space:nowrap;cursor:", function (props) { | ||
})(getNormalizedButtonStyles, " display:inline-flex;outline:0;font-size:", customProperties.fontSizeDefault, ";cursor:", function (props) { | ||
return props.disabled ? 'not-allowed' : 'pointer'; | ||
}, ";color:inherit;font:inherit;font-size:", customProperties.fontSizeDefault, ";font-family:inherit;&:disabled{cursor:not-allowed;}"); | ||
}, ";&:disabled{cursor:not-allowed;}"); | ||
var AccessibleButton = React.forwardRef(function (props, ref) { | ||
@@ -81,3 +90,3 @@ var onClick = props.onClick; | ||
'aria-pressed': props.isToggled | ||
} : {}, omit(props.buttonAttributes, propsToOmit), isButton ? buttonProps : {}), props.children); | ||
} : {}, omit(props.buttonAttributes, propsToOmit), isButton ? buttonProps : {}, filterAriaAttributes(props)), props.children); | ||
}); | ||
@@ -123,5 +132,5 @@ AccessibleButton.displayName = 'AccessibleButton'; | ||
var version = '10.16.1-canary.7+3e84589e'; | ||
var version = '10.16.1-canary.8+8b4b5d50'; | ||
export default AccessibleButton; | ||
export { version }; | ||
export { getNormalizedButtonStyles, version }; |
{ | ||
"name": "@commercetools-uikit/accessible-button", | ||
"version": "10.16.1-canary.7+3e84589e", | ||
"version": "10.16.1-canary.8+8b4b5d50", | ||
"description": "", | ||
@@ -22,4 +22,5 @@ "main": "dist/accessible-button.cjs.js", | ||
"dependencies": { | ||
"@commercetools-uikit/design-system": "10.16.1-canary.7+3e84589e", | ||
"@emotion/core": "10.0.28", | ||
"@commercetools-uikit/design-system": "10.16.1-canary.8+8b4b5d50", | ||
"@commercetools-uikit/utils": "10.16.1-canary.8+8b4b5d50", | ||
"@emotion/core": "10.0.27", | ||
"@emotion/styled": "10.0.27", | ||
@@ -33,3 +34,3 @@ "common-tags": "1.8.0", | ||
}, | ||
"gitHead": "3e84589e0ffe9751bfee3ac4316996af47dfaecf" | ||
"gitHead": "8b4b5d50971cdcec9bbef7373a35559ef3d60750" | ||
} |
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
16876
248
8
+ Added@emotion/core@10.0.2710.3.1(transitive)
- Removed@emotion/core@10.0.28(transitive)
Updated@commercetools-uikit/design-system@10.16.1-canary.8+8b4b5d50
Updated@emotion/core@10.0.27