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

@radix-ui/react-dialog

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-dialog - npm Package Compare versions

Comparing version

to
1.1.8-rc.1744259191780

@@ -31,3 +31,3 @@ "use strict";

// packages/react/dialog/src/index.ts
// src/index.ts
var index_exports = {};

@@ -56,3 +56,3 @@ __export(index_exports, {

// packages/react/dialog/src/dialog.tsx
// src/dialog.tsx
var React = __toESM(require("react"));

@@ -88,6 +88,7 @@ var import_primitive = require("@radix-ui/primitive");

const contentRef = React.useRef(null);
const [open = false, setOpen] = (0, import_react_use_controllable_state.useControllableState)({
const [open, setOpen] = (0, import_react_use_controllable_state.useControllableState)({
prop: openProp,
defaultProp: defaultOpen,
onChange: onOpenChange
defaultProp: defaultOpen ?? false,
onChange: onOpenChange,
caller: DIALOG_NAME
});

@@ -94,0 +95,0 @@ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(

{
"name": "@radix-ui/react-dialog",
"version": "1.1.7",
"version": "1.1.8-rc.1744259191780",
"license": "MIT",

@@ -8,19 +8,2 @@ "source": "./src/index.ts",

"module": "./dist/index.mjs",
"publishConfig": {
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
}
},
"files": [

@@ -31,26 +14,19 @@ "dist",

"sideEffects": false,
"scripts": {
"lint": "eslint --max-warnings 0 src",
"clean": "rm -rf dist",
"version": "yarn version"
},
"dependencies": {
"@radix-ui/primitive": "1.1.2",
"aria-hidden": "^1.2.4",
"react-remove-scroll": "^2.6.3",
"@radix-ui/react-compose-refs": "1.1.2",
"@radix-ui/react-context": "1.1.2",
"@radix-ui/react-dismissable-layer": "1.1.6",
"@radix-ui/primitive": "1.1.2",
"@radix-ui/react-focus-scope": "1.1.3",
"@radix-ui/react-focus-guards": "1.1.2",
"@radix-ui/react-focus-scope": "1.1.3",
"@radix-ui/react-id": "1.1.1",
"@radix-ui/react-portal": "1.1.5",
"@radix-ui/react-presence": "1.1.3",
"@radix-ui/react-id": "1.1.1",
"@radix-ui/react-slot": "1.2.0",
"@radix-ui/react-primitive": "2.0.3",
"@radix-ui/react-slot": "1.2.0",
"@radix-ui/react-use-controllable-state": "1.1.1",
"aria-hidden": "^1.2.4",
"react-remove-scroll": "^2.6.3"
"@radix-ui/react-use-controllable-state": "1.2.0-rc.1744259191780"
},
"devDependencies": {
"@repo/eslint-config": "0.0.0",
"@repo/typescript-config": "0.0.0",
"@types/react": "^19.0.7",

@@ -61,3 +37,6 @@ "@types/react-dom": "^19.0.3",

"react-dom": "^19.0.0",
"typescript": "^5.7.3"
"typescript": "^5.7.3",
"@repo/builder": "0.0.0",
"@repo/eslint-config": "0.0.0",
"@repo/typescript-config": "0.0.0"
},

@@ -86,2 +65,9 @@ "peerDependencies": {

},
"scripts": {
"lint": "eslint --max-warnings 0 src",
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit",
"build": "radix-build"
},
"types": "./dist/index.d.ts",
"exports": {

@@ -98,4 +84,3 @@ ".": {

}
},
"types": "./dist/index.d.ts"
}
}
# `react-dialog`
## Installation
```sh
$ yarn add @radix-ui/react-dialog
# or
$ npm install @radix-ui/react-dialog
```
## Usage
View docs [here](https://radix-ui.com/primitives/docs/components/dialog).

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