🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@radix-ui/react-visually-hidden

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-visually-hidden - npm Package Compare versions

Comparing version

to
1.2.0-rc.1744661316162

import * as React from 'react';
import { Primitive } from '@radix-ui/react-primitive';
declare const VISUALLY_HIDDEN_STYLES: Readonly<{
position: "absolute";
border: 0;
width: 1;
height: 1;
padding: 0;
margin: -1;
overflow: "hidden";
clip: "rect(0, 0, 0, 0)";
whiteSpace: "nowrap";
wordWrap: "normal";
}>;
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;

@@ -10,2 +22,2 @@ interface VisuallyHiddenProps extends PrimitiveSpanProps {

export { Root, VisuallyHidden, type VisuallyHiddenProps };
export { Root, VISUALLY_HIDDEN_STYLES, VisuallyHidden, type VisuallyHiddenProps };

@@ -34,2 +34,3 @@ "use strict";

Root: () => Root,
VISUALLY_HIDDEN_STYLES: () => VISUALLY_HIDDEN_STYLES,
VisuallyHidden: () => VisuallyHidden

@@ -43,2 +44,15 @@ });

var import_jsx_runtime = require("react/jsx-runtime");
var VISUALLY_HIDDEN_STYLES = Object.freeze({
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
position: "absolute",
border: 0,
width: 1,
height: 1,
padding: 0,
margin: -1,
overflow: "hidden",
clip: "rect(0, 0, 0, 0)",
whiteSpace: "nowrap",
wordWrap: "normal"
});
var NAME = "VisuallyHidden";

@@ -52,16 +66,3 @@ var VisuallyHidden = React.forwardRef(

ref: forwardedRef,
style: {
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
position: "absolute",
border: 0,
width: 1,
height: 1,
padding: 0,
margin: -1,
overflow: "hidden",
clip: "rect(0, 0, 0, 0)",
whiteSpace: "nowrap",
wordWrap: "normal",
...props.style
}
style: { ...VISUALLY_HIDDEN_STYLES, ...props.style }
}

@@ -68,0 +69,0 @@ );

{
"name": "@radix-ui/react-visually-hidden",
"version": "1.2.0-rc.1744660991666",
"version": "1.2.0-rc.1744661316162",
"license": "MIT",

@@ -14,3 +14,3 @@ "source": "./src/index.ts",

"dependencies": {
"@radix-ui/react-primitive": "2.1.0-rc.1744660991666"
"@radix-ui/react-primitive": "2.1.0-rc.1744661316162"
},

@@ -39,4 +39,4 @@ "peerDependencies": {

"@repo/builder": "0.0.0",
"@repo/eslint-config": "0.0.0",
"@repo/typescript-config": "0.0.0"
"@repo/typescript-config": "0.0.0",
"@repo/eslint-config": "0.0.0"
},

@@ -43,0 +43,0 @@ "homepage": "https://radix-ui.com/primitives",

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