@spectrum-web-components/shared
Advanced tools
Comparing version
{ | ||
"name": "@spectrum-web-components/shared", | ||
"version": "1.6.0-beta.0", | ||
"version": "1.6.0", | ||
"publishConfig": { | ||
@@ -104,3 +104,3 @@ "access": "public" | ||
"@lit-labs/observers": "^2.0.2", | ||
"@spectrum-web-components/base": "1.6.0-beta.0", | ||
"@spectrum-web-components/base": "1.6.0", | ||
"focus-visible": "^5.1.0" | ||
@@ -107,0 +107,0 @@ }, |
"use strict"; | ||
const focusables = [ | ||
"button", | ||
"[focusable]", | ||
"[href]", | ||
"input", | ||
"label", | ||
"select", | ||
"textarea", | ||
"[tabindex]" | ||
"input:not([inert])", | ||
"select:not([inert])", | ||
"textarea:not([inert])", | ||
"a[href]:not([inert])", | ||
"button:not([inert])", | ||
"label:not([inert])", | ||
"[tabindex]:not([inert])", | ||
"audio[controls]:not([inert])", | ||
"video[controls]:not([inert])", | ||
'[contenteditable]:not([contenteditable="false"]):not([inert])', | ||
"details>summary:first-of-type:not([inert])", | ||
"details:not([inert])", | ||
"[focusable]" | ||
// custom dev use-case | ||
]; | ||
@@ -12,0 +18,0 @@ const userFocuable = ':not([tabindex="-1"])'; |
@@ -1,2 +0,2 @@ | ||
"use strict";const e=["button","[focusable]","[href]","input","label","select","textarea","[tabindex]"],o=':not([tabindex="-1"])';export const userFocusableSelector=e.join(`${o}, `)+o,focusableSelector=e.join(", "); | ||
"use strict";const t=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","label:not([inert])","[tabindex]:not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])","[focusable]"],e=':not([tabindex="-1"])';export const userFocusableSelector=t.join(`${e}, `)+e,focusableSelector=t.join(", "); | ||
//# sourceMappingURL=focusable-selectors.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
165375
0.98%973
0.72%0
-100%1
Infinity%+ Added
- Removed