@interop-ui/react-alert-dialog
Advanced tools
Comparing version 0.0.1-13 to 0.0.1-14
{ | ||
"name": "@interop-ui/react-alert-dialog", | ||
"version": "0.0.1-13", | ||
"version": "0.0.1-14", | ||
"license": "MIT", | ||
@@ -20,6 +20,6 @@ "source": "src/index.ts", | ||
"dependencies": { | ||
"@interop-ui/react-dialog": "0.0.1-15", | ||
"@interop-ui/react-polymorphic": "0.0.1-1", | ||
"@interop-ui/react-utils": "0.0.1-14", | ||
"@interop-ui/utils": "0.0.1-6" | ||
"@interop-ui/react-dialog": "0.0.1-16", | ||
"@interop-ui/react-polymorphic": "0.0.1-2", | ||
"@interop-ui/react-utils": "0.0.1-15", | ||
"@interop-ui/utils": "0.0.1-7" | ||
}, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
@@ -13,31 +13,2 @@ # `react-alert-dialog` | ||
```js | ||
import * as React from 'react'; | ||
import { | ||
AlertDialog, | ||
AlertDialogTrigger, | ||
AlertDialogOverlay, | ||
AlertDialogContent, | ||
AlertDialogTitle, | ||
AlertDialogDescription, | ||
AlertDialogAction, | ||
AlertDialogCancel, | ||
} from '@interop-ui/react-alert-dialog'; | ||
function MyComponent() { | ||
return ( | ||
<AlertDialog> | ||
<AlertDialogTrigger>Delete everything</AlertDialogTrigger> | ||
<AlertDialogOverlay /> | ||
<AlertDialogContent> | ||
<AlertDialogTitle>Are you sure?</AlertDialogTitle> | ||
<AlertDialogDescription> | ||
This will do a very dangerous thing. Thar be dragons! | ||
</AlertDialogDescription> | ||
<AlertDialogAction onClick={deleteFiles}>Delete them</AlertDialogAction> | ||
<AlertDialogCancel>Never mind</AlertDialogCancel> | ||
</AlertDialogContent> | ||
</AlertDialog> | ||
); | ||
} | ||
``` | ||
View docs [here](https://radix-ui.com/primitives/docs/components/alert-dialog). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60582
14
+ Added@interop-ui/react-dialog@0.0.1-16(transitive)
+ Added@interop-ui/react-dismissable-layer@0.0.1-6(transitive)
+ Added@interop-ui/react-focus-guards@0.0.1-3(transitive)
+ Added@interop-ui/react-focus-scope@0.0.1-6(transitive)
+ Added@interop-ui/react-polymorphic@0.0.1-2(transitive)
+ Added@interop-ui/react-portal@0.0.1-15(transitive)
+ Added@interop-ui/react-presence@0.0.1-1(transitive)
+ Added@interop-ui/react-utils@0.0.1-15(transitive)
+ Added@interop-ui/utils@0.0.1-7(transitive)
- Removed@interop-ui/react-dialog@0.0.1-15(transitive)
- Removed@interop-ui/react-dismissable-layer@0.0.1-5(transitive)
- Removed@interop-ui/react-focus-guards@0.0.1-2(transitive)
- Removed@interop-ui/react-focus-scope@0.0.1-5(transitive)
- Removed@interop-ui/react-polymorphic@0.0.1-1(transitive)
- Removed@interop-ui/react-portal@0.0.1-14(transitive)
- Removed@interop-ui/react-presence@0.0.1-0(transitive)
- Removed@interop-ui/react-utils@0.0.1-14(transitive)
- Removed@interop-ui/utils@0.0.1-6(transitive)
Updated@interop-ui/utils@0.0.1-7