"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",o="NiceModal",a="Modal",t="1.0.0",n="stable",s="overlays",i="dialog",l="Dialog overlay with focus trapping, customizable header/footer, and fullscreen support.",r="1.0.0",c=["web","mobile","desktop"],d=["modal","dialog","popup","overlay"],p=[{name:"open",type:"boolean",required:!0,description:"Controls visibility."},{name:"title",type:"string",required:!1,description:"Modal title."},{name:"size",type:"NiceSize",required:!1,default:"'md'",description:"Modal size."},{name:"children",type:"ReactNode",required:!0,description:"Modal content."},{name:"footer",type:"ReactNode",required:!1,description:"Footer content (buttons)."},{name:"closeOnOverlay",type:"boolean",required:!1,default:"true",description:"Close on backdrop click."},{name:"closeOnEscape",type:"boolean",required:!1,default:"true",description:"Close on Escape key."},{name:"fullscreenable",type:"boolean",required:!1,description:"Show fullscreen toggle."},{name:"zIndex",type:"number",required:!1,description:"Custom z-index."}],u=[{name:"onClose",parameters:[],description:"Called when modal should close."}],m=[{name:"--nice-modal-bg",default:"var(--nice-surface-bg)",description:"Modal background"},{name:"--nice-modal-overlay-bg",default:"rgba(0,0,0,0.5)",description:"Backdrop color"}],y={aria:['role="dialog"','aria-modal="true"',"aria-labelledby"],keyboard:[{key:"Escape",action:"Close modal"},{key:"Tab",action:"Focus trap"}]},b=[{title:"Basic Modal",code:`<NiceModal
  open={isOpen}
  title="Edit Profile"
  onClose={() => setIsOpen(false)}
  footer={
    <>
      <NiceButton onClick={() => setIsOpen(false)}>Cancel</NiceButton>
      <NiceButton variant="primary" onClick={handleSave}>Save</NiceButton>
    </>
  }
>
  <ProfileForm />
</NiceModal>`,language:"tsx"}],f=[{name:"NiceDrawer",relationship:"alternative"},{name:"NiceConfirmDialog",relationship:"specialized"}],g={$schema:e,name:o,displayName:a,version:t,status:n,category:s,subcategory:i,package:"@nicetoDev/ui",description:l,since:r,platforms:c,keywords:d,props:p,events:u,cssVariables:m,accessibility:y,examples:b,related:f};exports.$schema=e;exports.accessibility=y;exports.category=s;exports.cssVariables=m;exports.default=g;exports.description=l;exports.displayName=a;exports.events=u;exports.examples=b;exports.keywords=d;exports.name=o;exports.platforms=c;exports.props=p;exports.related=f;exports.since=r;exports.status=n;exports.subcategory=i;exports.version=t;
