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

@warp-ds/uno

Package Overview
Dependencies
Maintainers
6
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@warp-ds/uno - npm Package Compare versions

Comparing version 1.0.0-alpha.30 to 1.0.0-alpha.31

2

package.json
{
"name": "@warp-ds/uno",
"repository": "git@github.com:warp-ds/drive.git",
"version": "1.0.0-alpha.30",
"version": "1.0.0-alpha.31",
"type": "module",

@@ -6,0 +6,0 @@ "exports": {

@@ -0,7 +1,13 @@

import { entriesToCss } from '@unocss/core';
// TODO: use actual variables and values when those has been defined
const focusRingStyle = {
'outline': '2px solid var(--w-color-focused)',
const focusRingStyle = entriesToCss(Object.entries({
outline: '2px solid var(--w-color-focused)',
'outline-offset': 'var(--w-outline-offset, 1px)',
};
}));
const outlineNone = entriesToCss(Object.entries({
outline: 'none',
}));
const focusRingInsetStyle = {

@@ -12,6 +18,8 @@ '--w-outline-offset': '-3px',

export const focusRing = [
["focusable:focus", focusRingStyle],
["focusable:focus:not(:focus-visible)", { 'outline': 'none' }],
["focusable:focus-visible", focusRingStyle],
[/^focusable$/, ([selector]) => {
const focus = `.${selector}:focus,.${selector}:focus-visible{${focusRingStyle}}`;
const notFocusVisible = `.${selector}:not(:focus-visible){${outlineNone}}`;
return focus + notFocusVisible;
}],
["focusable-inset", { ... focusRingInsetStyle }],
];

Sorry, the diff of this file is too big to display

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