@radix-ui/react-alert-dialog
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -1,2 +0,2 @@ | ||
function e(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!0})}var t,r=require("@radix-ui/react-slot").Slottable,i=require("@radix-ui/react-id").useId,o=require("@radix-ui/react-dialog"),n=o.Root,l=o.Content,a=o.Close,c=o.Trigger,s=o.Overlay,u=require("@radix-ui/react-primitive"),d=u.Primitive,g=u.extendPrimitive,p=require("@radix-ui/primitive").composeEventHandlers,A=require("@radix-ui/react-compose-refs").useComposedRefs,D=require("@radix-ui/react-context").createContext,f=require("react"),x=f.createElement,y=f.forwardRef,m=f.useRef,v=(f.useEffect,(t=require("@babel/runtime/helpers/extends"))&&t.__esModule?t.default:t),C={};const[b,T]=D("AlertDialog"),q=e=>x(b,{descriptionId:i(),titleId:i()},x(n,e));exports.AlertDialog=q,q.displayName="AlertDialog";const[O,N]=D("AlertDialogContent"),R=y(((e,t)=>{const{"aria-label":i,"aria-labelledby":o,"aria-describedby":n,children:a,...c}=e,{descriptionId:s,titleId:u}=T("AlertDialogContent"),d=m(null);return x(l,v({role:"alertdialog","aria-describedby":n||s,"aria-labelledby":i?void 0:o||u,"aria-label":i||void 0},c,{ref:t,onOpenAutoFocus:p(c.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=d.current)||void 0===t||t.focus({preventScroll:!0})}))}),x(O,{cancelRef:d},!1,x(r,null,a)))}));exports.AlertDialogContent=R,R.displayName="AlertDialogContent";const I="h2",h=y(((e,t)=>{const{as:r=I,...i}=e,{titleId:o}=T("AlertDialogTitle");return x(d,v({id:o},i,{as:r,ref:t}))}));exports.AlertDialogTitle=h,h.displayName="AlertDialogTitle";const E="p",P=y(((e,t)=>{const{as:r=E,...i}=e,{descriptionId:o}=T("AlertDialogDescription");return x(d,v({id:o},i,{as:r,ref:t}))}));exports.AlertDialogDescription=P,P.displayName="AlertDialogDescription";const F=y(((e,t)=>{const{cancelRef:r}=N("AlertDialogCancel"),i=A(t,r);return x(a,v({},e,{ref:i}))}));exports.AlertDialogCancel=F,F.displayName="AlertDialogCancel";const S=g(c,{displayName:"AlertDialogTrigger"});exports.AlertDialogTrigger=S;const _=g(s,{displayName:"AlertDialogOverlay"});exports.AlertDialogOverlay=_;const j=g(a,{displayName:"AlertDialogAction"});exports.AlertDialogAction=j;const w=q;exports.Root=w;const H=h;exports.Title=H;const M=F;exports.Cancel=M;const k=j;exports.Action=k;const z=R;exports.Content=z;const B=P;exports.Description=B;const G=_;exports.Overlay=G;const J=S;exports.Trigger=J,e(C,"Trigger",(function(){return J})),e(C,"Overlay",(function(){return G})),e(C,"Description",(function(){return B})),e(C,"Content",(function(){return z})),e(C,"Action",(function(){return k})),e(C,"Cancel",(function(){return M})),e(C,"Title",(function(){return H})),e(C,"Root",(function(){return w})),e(C,"AlertDialogTrigger",(function(){return S})),e(C,"AlertDialogOverlay",(function(){return _})),e(C,"AlertDialogDescription",(function(){return P})),e(C,"AlertDialogContent",(function(){return R})),e(C,"AlertDialogAction",(function(){return j})),e(C,"AlertDialogCancel",(function(){return F})),e(C,"AlertDialogTitle",(function(){return h})),e(C,"AlertDialog",(function(){return q})); | ||
var e,t=require("@radix-ui/react-slot").Slottable,r=require("@radix-ui/react-id").useId,i=p({},require("@radix-ui/react-dialog")),o=require("@radix-ui/react-primitive"),l=o.Primitive,a=o.extendPrimitive,n=require("@radix-ui/primitive").composeEventHandlers,s=require("@radix-ui/react-compose-refs").useComposedRefs,c=require("@radix-ui/react-context").createContext,d=p({},require("react")),u=(e=require("@babel/runtime/helpers/extends"))&&e.__esModule?e.default:e;function p(e,t){return Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e}const[g,x]=c("AlertDialog"),A=e=>d.createElement(g,{descriptionId:r(),titleId:r()},d.createElement(i.Root,e));exports.AlertDialog=A,A.displayName="AlertDialog";const[D,f]=c("AlertDialogContent"),m=d.forwardRef(((e,r)=>{const{"aria-label":o,"aria-labelledby":l,"aria-describedby":a,children:s,...c}=e,{descriptionId:p,titleId:g}=x("AlertDialogContent"),A=d.useRef(null);return d.createElement(i.Content,u({role:"alertdialog","aria-describedby":a||p,"aria-labelledby":o?void 0:l||g,"aria-label":o||void 0},c,{ref:r,onOpenAutoFocus:n(c.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=A.current)||void 0===t||t.focus({preventScroll:!0})}))}),d.createElement(D,{cancelRef:A},!1,d.createElement(t,null,s)))}));exports.AlertDialogContent=m,m.displayName="AlertDialogContent";const y="h2",b=d.forwardRef(((e,t)=>{const{as:r=y,...i}=e,{titleId:o}=x("AlertDialogTitle");return d.createElement(l,u({id:o},i,{as:r,ref:t}))}));exports.AlertDialogTitle=b,b.displayName="AlertDialogTitle";const v="p",C=d.forwardRef(((e,t)=>{const{as:r=v,...i}=e,{descriptionId:o}=x("AlertDialogDescription");return d.createElement(l,u({id:o},i,{as:r,ref:t}))}));exports.AlertDialogDescription=C,C.displayName="AlertDialogDescription";const E=d.forwardRef(((e,t)=>{const{cancelRef:r}=f("AlertDialogCancel"),o=s(t,r);return d.createElement(i.Close,u({},e,{ref:o}))}));exports.AlertDialogCancel=E,E.displayName="AlertDialogCancel";const R=a(i.Trigger,{displayName:"AlertDialogTrigger"});exports.AlertDialogTrigger=R;const q=a(i.Overlay,{displayName:"AlertDialogOverlay"});exports.AlertDialogOverlay=q;const N=a(i.Close,{displayName:"AlertDialogAction"});exports.AlertDialogAction=N;const O=A;exports.Root=O;const T=b;exports.Title=T;const I=E;exports.Cancel=I;const h=N;exports.Action=h;const w=m;exports.Content=w;const _=C;exports.Description=_;const P=q;exports.Overlay=P;const j=R;exports.Trigger=j; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
function t(t,e,r){Object.defineProperty(t,e,{get:r,enumerable:!0})}import{Slottable as e}from"@radix-ui/react-slot";import{useId as r}from"@radix-ui/react-id";import{Root as o,Content as i,Close as l,Trigger as n,Overlay as a}from"@radix-ui/react-dialog";import{Primitive as c,extendPrimitive as g}from"@radix-ui/react-primitive";import{composeEventHandlers as s}from"@radix-ui/primitive";import{useComposedRefs as D}from"@radix-ui/react-compose-refs";import{createContext as A}from"@radix-ui/react-context";import{createElement as p,forwardRef as u,useRef as d,useEffect as f}from"react";import m from"@babel/runtime/helpers/esm/extends";var x={};const[y,C]=A("AlertDialog");export const AlertDialog=t=>p(y,{descriptionId:r(),titleId:r()},p(o,t));AlertDialog.displayName="AlertDialog";const[T,v]=A("AlertDialogContent");export const AlertDialogContent=u(((t,r)=>{const{"aria-label":o,"aria-labelledby":l,"aria-describedby":n,children:a,...c}=t,{descriptionId:g,titleId:D}=C("AlertDialogContent"),A=d(null);return p(i,m({role:"alertdialog","aria-describedby":n||g,"aria-labelledby":o?void 0:l||D,"aria-label":o||void 0},c,{ref:r,onOpenAutoFocus:s(c.onOpenAutoFocus,(t=>{var e;t.preventDefault(),null===(e=A.current)||void 0===e||e.focus({preventScroll:!0})}))}),p(T,{cancelRef:A},!1,p(e,null,a)))}));AlertDialogContent.displayName="AlertDialogContent";const b="h2";export const AlertDialogTitle=u(((t,e)=>{const{as:r=b,...o}=t,{titleId:i}=C("AlertDialogTitle");return p(c,m({id:i},o,{as:r,ref:e}))}));AlertDialogTitle.displayName="AlertDialogTitle";const O="p";export const AlertDialogDescription=u(((t,e)=>{const{as:r=O,...o}=t,{descriptionId:i}=C("AlertDialogDescription");return p(c,m({id:i},o,{as:r,ref:e}))}));AlertDialogDescription.displayName="AlertDialogDescription";export const AlertDialogCancel=u(((t,e)=>{const{cancelRef:r}=v("AlertDialogCancel"),o=D(e,r);return p(l,m({},t,{ref:o}))}));AlertDialogCancel.displayName="AlertDialogCancel";export const AlertDialogTrigger=g(n,{displayName:"AlertDialogTrigger"});export const AlertDialogOverlay=g(a,{displayName:"AlertDialogOverlay"});export const AlertDialogAction=g(l,{displayName:"AlertDialogAction"});export const Root=AlertDialog;export const Title=AlertDialogTitle;export const Cancel=AlertDialogCancel;export const Action=AlertDialogAction;export const Content=AlertDialogContent;export const Description=AlertDialogDescription;export const Overlay=AlertDialogOverlay;export const Trigger=AlertDialogTrigger;t(x,"Trigger",(function(){return Trigger})),t(x,"Overlay",(function(){return Overlay})),t(x,"Description",(function(){return Description})),t(x,"Content",(function(){return Content})),t(x,"Action",(function(){return Action})),t(x,"Cancel",(function(){return Cancel})),t(x,"Title",(function(){return Title})),t(x,"Root",(function(){return Root})),t(x,"AlertDialogTrigger",(function(){return AlertDialogTrigger})),t(x,"AlertDialogOverlay",(function(){return AlertDialogOverlay})),t(x,"AlertDialogDescription",(function(){return AlertDialogDescription})),t(x,"AlertDialogContent",(function(){return AlertDialogContent})),t(x,"AlertDialogAction",(function(){return AlertDialogAction})),t(x,"AlertDialogCancel",(function(){return AlertDialogCancel})),t(x,"AlertDialogTitle",(function(){return AlertDialogTitle})),t(x,"AlertDialog",(function(){return AlertDialog})); | ||
import{Slottable as e}from"@radix-ui/react-slot";import{useId as t}from"@radix-ui/react-id";import*as r from"@radix-ui/react-dialog";import{Primitive as o,extendPrimitive as l}from"@radix-ui/react-primitive";import{composeEventHandlers as i}from"@radix-ui/primitive";import{useComposedRefs as a}from"@radix-ui/react-compose-refs";import{createContext as n}from"@radix-ui/react-context";import*as c from"react";import s from"@babel/runtime/helpers/esm/extends";const[p,g]=n("AlertDialog");export const AlertDialog=e=>c.createElement(p,{descriptionId:t(),titleId:t()},c.createElement(r.Root,e));AlertDialog.displayName="AlertDialog";const[d,D]=n("AlertDialogContent");export const AlertDialogContent=c.forwardRef(((t,o)=>{const{"aria-label":l,"aria-labelledby":a,"aria-describedby":n,children:p,...D}=t,{descriptionId:A,titleId:m}=g("AlertDialogContent"),f=c.useRef(null);return c.createElement(r.Content,s({role:"alertdialog","aria-describedby":n||A,"aria-labelledby":l?void 0:a||m,"aria-label":l||void 0},D,{ref:o,onOpenAutoFocus:i(D.onOpenAutoFocus,(e=>{var t;e.preventDefault(),null===(t=f.current)||void 0===t||t.focus({preventScroll:!0})}))}),c.createElement(d,{cancelRef:f},!1,c.createElement(e,null,p)))}));AlertDialogContent.displayName="AlertDialogContent";const A="h2";export const AlertDialogTitle=c.forwardRef(((e,t)=>{const{as:r=A,...l}=e,{titleId:i}=g("AlertDialogTitle");return c.createElement(o,s({id:i},l,{as:r,ref:t}))}));AlertDialogTitle.displayName="AlertDialogTitle";const m="p";export const AlertDialogDescription=c.forwardRef(((e,t)=>{const{as:r=m,...l}=e,{descriptionId:i}=g("AlertDialogDescription");return c.createElement(o,s({id:i},l,{as:r,ref:t}))}));AlertDialogDescription.displayName="AlertDialogDescription";export const AlertDialogCancel=c.forwardRef(((e,t)=>{const{cancelRef:o}=D("AlertDialogCancel"),l=a(t,o);return c.createElement(r.Close,s({},e,{ref:l}))}));AlertDialogCancel.displayName="AlertDialogCancel";export const AlertDialogTrigger=l(r.Trigger,{displayName:"AlertDialogTrigger"});export const AlertDialogOverlay=l(r.Overlay,{displayName:"AlertDialogOverlay"});export const AlertDialogAction=l(r.Close,{displayName:"AlertDialogAction"});export const Root=AlertDialog;export const Title=AlertDialogTitle;export const Cancel=AlertDialogCancel;export const Action=AlertDialogAction;export const Content=AlertDialogContent;export const Description=AlertDialogDescription;export const Overlay=AlertDialogOverlay;export const Trigger=AlertDialogTrigger; | ||
//# sourceMappingURL=index.module.js.map |
{ | ||
"name": "@radix-ui/react-alert-dialog", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"license": "MIT", | ||
@@ -21,10 +21,10 @@ "source": "src/index.ts", | ||
"@babel/runtime": "^7.13.10", | ||
"@radix-ui/primitive": "0.0.3", | ||
"@radix-ui/react-compose-refs": "0.0.3", | ||
"@radix-ui/react-context": "0.0.3", | ||
"@radix-ui/react-dialog": "0.0.12", | ||
"@radix-ui/react-id": "0.0.3", | ||
"@radix-ui/react-polymorphic": "0.0.8", | ||
"@radix-ui/react-primitive": "0.0.9", | ||
"@radix-ui/react-slot": "0.0.7" | ||
"@radix-ui/primitive": "0.0.4", | ||
"@radix-ui/react-compose-refs": "0.0.4", | ||
"@radix-ui/react-context": "0.0.4", | ||
"@radix-ui/react-dialog": "0.0.13", | ||
"@radix-ui/react-id": "0.0.4", | ||
"@radix-ui/react-polymorphic": "0.0.9", | ||
"@radix-ui/react-primitive": "0.0.10", | ||
"@radix-ui/react-slot": "0.0.8" | ||
}, | ||
@@ -31,0 +31,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
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
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
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
61279
552
1
+ Added@radix-ui/primitive@0.0.4(transitive)
+ Added@radix-ui/react-compose-refs@0.0.4(transitive)
+ Added@radix-ui/react-context@0.0.4(transitive)
+ Added@radix-ui/react-dialog@0.0.13(transitive)
+ Added@radix-ui/react-dismissable-layer@0.0.11(transitive)
+ Added@radix-ui/react-focus-guards@0.0.6(transitive)
+ Added@radix-ui/react-focus-scope@0.0.10(transitive)
+ Added@radix-ui/react-id@0.0.4(transitive)
+ Added@radix-ui/react-polymorphic@0.0.9(transitive)
+ Added@radix-ui/react-portal@0.0.10(transitive)
+ Added@radix-ui/react-presence@0.0.12(transitive)
+ Added@radix-ui/react-primitive@0.0.10(transitive)
+ Added@radix-ui/react-slot@0.0.8(transitive)
+ Added@radix-ui/react-use-body-pointer-events@0.0.5(transitive)
+ Added@radix-ui/react-use-callback-ref@0.0.4(transitive)
+ Added@radix-ui/react-use-controllable-state@0.0.5(transitive)
+ Added@radix-ui/react-use-escape-keydown@0.0.5(transitive)
+ Added@radix-ui/react-use-layout-effect@0.0.4(transitive)
- Removed@radix-ui/primitive@0.0.3(transitive)
- Removed@radix-ui/react-compose-refs@0.0.3(transitive)
- Removed@radix-ui/react-context@0.0.3(transitive)
- Removed@radix-ui/react-dialog@0.0.12(transitive)
- Removed@radix-ui/react-dismissable-layer@0.0.10(transitive)
- Removed@radix-ui/react-focus-guards@0.0.5(transitive)
- Removed@radix-ui/react-focus-scope@0.0.9(transitive)
- Removed@radix-ui/react-id@0.0.3(transitive)
- Removed@radix-ui/react-polymorphic@0.0.8(transitive)
- Removed@radix-ui/react-portal@0.0.9(transitive)
- Removed@radix-ui/react-presence@0.0.11(transitive)
- Removed@radix-ui/react-primitive@0.0.9(transitive)
- Removed@radix-ui/react-slot@0.0.7(transitive)
- Removed@radix-ui/react-use-body-pointer-events@0.0.4(transitive)
- Removed@radix-ui/react-use-callback-ref@0.0.3(transitive)
- Removed@radix-ui/react-use-controllable-state@0.0.4(transitive)
- Removed@radix-ui/react-use-escape-keydown@0.0.4(transitive)
- Removed@radix-ui/react-use-layout-effect@0.0.3(transitive)
Updated@radix-ui/primitive@0.0.4
Updated@radix-ui/react-id@0.0.4
Updated@radix-ui/react-slot@0.0.8