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

@entur/a11y

Package Overview
Dependencies
Maintainers
13
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@entur/a11y - npm Package Compare versions

Comparing version 0.2.69 to 0.2.70

8

dist/a11y.cjs.development.js

@@ -8,6 +8,2 @@ 'use strict';

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
var SkipToContent = function SkipToContent(_ref) {

@@ -17,3 +13,3 @@ var children = _ref.children,

mainId = _ref$mainId === void 0 ? 'main-content' : _ref$mainId;
return React__default["default"].createElement("a", {
return React.createElement("a", {
className: "eds-skip-to-content",

@@ -57,3 +53,3 @@ href: "#" + mainId

rest = _objectWithoutPropertiesLoose(_ref, _excluded);
return React__default["default"].createElement(Element, _extends({
return React.createElement(Element, _extends({
className: "eds-visually-hidden"

@@ -60,0 +56,0 @@ }, rest), children);

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@entur/utils");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(require("react"));function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var a=["as","children"];e.warnAboutMissingStyles("a11y"),exports.SkipToContent=function(e){var t=e.mainId;return n.default.createElement("a",{className:"eds-skip-to-content",href:"#"+(void 0===t?"main-content":t)},e.children)},exports.VisuallyHidden=function(e){var t=e.as,i=void 0===t?"span":t,s=e.children,u=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}(e,a);return n.default.createElement(i,r({className:"eds-visually-hidden"},u),s)};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@entur/utils"),n=require("react");function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},r.apply(this,arguments)}var t=["as","children"];e.warnAboutMissingStyles("a11y"),exports.SkipToContent=function(e){var r=e.mainId;return n.createElement("a",{className:"eds-skip-to-content",href:"#"+(void 0===r?"main-content":r)},e.children)},exports.VisuallyHidden=function(e){var i=e.as,a=void 0===i?"span":i,s=e.children,o=function(e,n){if(null==e)return{};var r,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)n.indexOf(r=a[t])>=0||(i[r]=e[r]);return i}(e,t);return n.createElement(a,r({className:"eds-visually-hidden"},o),s)};
//# sourceMappingURL=a11y.cjs.production.min.js.map
import './index.scss';
export * from './SkipToContent';
export * from './VisuallyHidden';

@@ -0,0 +0,0 @@ import React from 'react';

@@ -0,0 +0,0 @@ import React from 'react';

{
"name": "@entur/a11y",
"version": "0.2.69",
"version": "0.2.70",
"license": "EUPL-1.2",

@@ -30,5 +30,5 @@ "main": "dist/index.js",

"@entur/tokens": "^3.10.0",
"@entur/utils": "^0.9.4"
"@entur/utils": "^0.9.5"
},
"gitHead": "0da1a9e2532f60cc1a456a79ad3aa689514ca2c7"
"gitHead": "9b8d4e5d2e6f7a74256371e30ebef43e046c9338"
}

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

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