@entur/a11y
Advanced tools
Comparing version 0.2.51 to 0.2.52
@@ -14,4 +14,4 @@ 'use strict'; | ||
var children = _ref.children, | ||
_ref$mainId = _ref.mainId, | ||
mainId = _ref$mainId === void 0 ? 'main-content' : _ref$mainId; | ||
_ref$mainId = _ref.mainId, | ||
mainId = _ref$mainId === void 0 ? 'main-content' : _ref$mainId; | ||
return React__default["default"].createElement("a", { | ||
@@ -27,2 +27,3 @@ className: "eds-skip-to-content", | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
@@ -34,6 +35,9 @@ if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
@@ -44,2 +48,3 @@ if (source == null) return {}; | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
@@ -50,2 +55,3 @@ key = sourceKeys[i]; | ||
} | ||
return target; | ||
@@ -57,5 +63,6 @@ } | ||
var _ref$as = _ref.as, | ||
Element = _ref$as === void 0 ? 'span' : _ref$as, | ||
children = _ref.children, | ||
rest = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
Element = _ref$as === void 0 ? 'span' : _ref$as, | ||
children = _ref.children, | ||
rest = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
return React__default["default"].createElement(Element, _extends({ | ||
@@ -62,0 +69,0 @@ className: "eds-visually-hidden" |
@@ -6,4 +6,4 @@ import { warnAboutMissingStyles } from '@entur/utils'; | ||
var children = _ref.children, | ||
_ref$mainId = _ref.mainId, | ||
mainId = _ref$mainId === void 0 ? 'main-content' : _ref$mainId; | ||
_ref$mainId = _ref.mainId, | ||
mainId = _ref$mainId === void 0 ? 'main-content' : _ref$mainId; | ||
return React.createElement("a", { | ||
@@ -19,2 +19,3 @@ className: "eds-skip-to-content", | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
@@ -26,6 +27,9 @@ if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
@@ -36,2 +40,3 @@ if (source == null) return {}; | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
@@ -42,2 +47,3 @@ key = sourceKeys[i]; | ||
} | ||
return target; | ||
@@ -49,5 +55,6 @@ } | ||
var _ref$as = _ref.as, | ||
Element = _ref$as === void 0 ? 'span' : _ref$as, | ||
children = _ref.children, | ||
rest = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
Element = _ref$as === void 0 ? 'span' : _ref$as, | ||
children = _ref.children, | ||
rest = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
return React.createElement(Element, _extends({ | ||
@@ -54,0 +61,0 @@ className: "eds-visually-hidden" |
{ | ||
"name": "@entur/a11y", | ||
"version": "0.2.51", | ||
"version": "0.2.52", | ||
"license": "EUPL-1.2", | ||
@@ -20,5 +20,5 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"start": "yarn run dts watch --noClean", | ||
"build": "yarn run dts build", | ||
"lint": "yarn run dts lint" | ||
"start": "dts watch --noClean", | ||
"build": "dts build", | ||
"lint": "dts lint" | ||
}, | ||
@@ -30,10 +30,7 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@entur/tokens": "^3.4.2", | ||
"@entur/typography": "^1.7.2", | ||
"@entur/utils": "^0.4.7" | ||
"@entur/tokens": "^3.4.3", | ||
"@entur/typography": "^1.7.3", | ||
"@entur/utils": "^0.4.8" | ||
}, | ||
"devDependencies": { | ||
"dts-cli": "^1.1.6" | ||
}, | ||
"gitHead": "8915b1630bd936740ba9a4a88883f3432948a80e" | ||
"gitHead": "103844c30bdc32296f3998a360cf6066492173e9" | ||
} |
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
43025
0
15
Updated@entur/tokens@^3.4.3
Updated@entur/typography@^1.7.3
Updated@entur/utils@^0.4.8