{
  "format": "ui-contract-component-draft",
  "id": "shadcn:AlertDialog",
  "version": "0.4.1",
  "status": "complete",
  "domains": {
    "interface": "interface.json",
    "visual": {
      "tokens": "../../tokens.json",
      "css": "layout.css"
    },
    "behavior": "behavior.scxml",
    "accessibility": {
      "html": "accessibility.html",
      "rules": "accessibility.rules.json"
    }
  },
  "anatomy": {
    "root": "Owns open/modal state without a DOM root.",
    "trigger": "Actual primitive native trigger.",
    "content": "Actual focus-managed popup surface.",
    "overlay": "Actual modal backdrop; Sheet owns its unexported internal wrapper through Content.",
    "header": "Intrinsic heading stack.",
    "footer": "Actions, kept in caller order.",
    "title": "Actual heading named by primitive relation.",
    "description": "Actual descriptive paragraph.",
    "portal": "Portal ownership, not a styled anatomy element.",
    "media": "Optional native media tile.",
    "cancel": "Primitive Close rendered through Button.",
    "action": "Button action; the caller owns confirmation and closing."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "composition": {
    "button": {
      "component": "../button/component.json"
    }
  },
  "convention": "semantic-component/1",
  "partBindings": {
    "root": {
      "kind": "controller",
      "declaration": "AlertDialog",
      "description": "Owns open/modal state without a DOM root.",
      "ownership": "React context/portal control, no promised DOM element"
    },
    "trigger": {
      "kind": "element",
      "declaration": "AlertDialogTrigger",
      "selector": "[data-slot=\"alert-dialog-trigger\"]",
      "description": "Actual primitive native trigger.",
      "ownership": "actual pinned wrapper"
    },
    "content": {
      "kind": "element",
      "declaration": "AlertDialogContent",
      "selector": "[data-slot=\"alert-dialog-content\"]",
      "description": "Actual focus-managed popup surface.",
      "ownership": "actual pinned wrapper"
    },
    "overlay": {
      "kind": "element",
      "declaration": "AlertDialogOverlay",
      "selector": "[data-slot=\"alert-dialog-overlay\"]",
      "description": "Actual modal backdrop; Sheet owns its unexported internal wrapper through Content.",
      "ownership": "actual pinned wrapper"
    },
    "header": {
      "kind": "element",
      "declaration": "AlertDialogHeader",
      "selector": "[data-slot=\"alert-dialog-header\"]",
      "description": "Intrinsic heading stack.",
      "ownership": "actual pinned wrapper"
    },
    "footer": {
      "kind": "element",
      "declaration": "AlertDialogFooter",
      "selector": "[data-slot=\"alert-dialog-footer\"]",
      "description": "Actions, kept in caller order.",
      "ownership": "actual pinned wrapper"
    },
    "title": {
      "kind": "element",
      "declaration": "AlertDialogTitle",
      "selector": "[data-slot=\"alert-dialog-title\"]",
      "description": "Actual heading named by primitive relation.",
      "ownership": "actual pinned wrapper"
    },
    "description": {
      "kind": "element",
      "declaration": "AlertDialogDescription",
      "selector": "[data-slot=\"alert-dialog-description\"]",
      "description": "Actual descriptive paragraph.",
      "ownership": "actual pinned wrapper"
    },
    "portal": {
      "kind": "controller",
      "declaration": "AlertDialogPortal",
      "description": "Portal ownership, not a styled anatomy element.",
      "ownership": "React context/portal control, no promised DOM element"
    },
    "media": {
      "kind": "element",
      "declaration": "AlertDialogMedia",
      "selector": "[data-slot=\"alert-dialog-media\"]",
      "description": "Optional native media tile.",
      "ownership": "actual pinned wrapper"
    },
    "cancel": {
      "kind": "element",
      "declaration": "AlertDialogCancel",
      "selector": "[data-slot=\"alert-dialog-cancel\"]",
      "description": "Primitive Close rendered through Button.",
      "ownership": "actual pinned wrapper"
    },
    "action": {
      "kind": "element",
      "declaration": "AlertDialogAction",
      "selector": "[data-slot=\"alert-dialog-action\"]",
      "description": "Button action; the caller owns confirmation and closing.",
      "ownership": "actual pinned wrapper"
    }
  },
  "visualContract": {
    "tokens": {
      "alert-dialog-backdrop-opacity": "components.alert-dialog.backdropOpacity",
      "alert-dialog-gap": "components.alert-dialog.gap",
      "alert-dialog-header-gap": "components.alert-dialog.headerGap",
      "alert-dialog-max-width": "components.alert-dialog.maxWidth",
      "alert-dialog-padding": "components.alert-dialog.padding",
      "alert-dialog-radius": "components.alert-dialog.radius",
      "alert-dialog-title-line-height": "components.alert-dialog.titleLineHeight",
      "alert-dialog-title-size": "components.alert-dialog.titleSize",
      "alert-dialog-title-weight": "components.alert-dialog.titleWeight",
      "border-width": "semantic.border.width",
      "color-background": "semantic.color.background",
      "color-border": "semantic.color.border",
      "color-foreground": "semantic.color.foreground",
      "color-muted": "semantic.color.muted",
      "color-muted-foreground": "semantic.color.mutedForeground",
      "font-fallback": "semantic.typography.fallbackFamily",
      "font-family": "semantic.typography.fontFamily",
      "font-size-body": "semantic.typography.bodySize",
      "line-height-body": "semantic.typography.bodyLineHeight"
    },
    "runtimeProperties": {},
    "layoutPolicy": "The pinned AlertDialog wrapper owns the actual parts and primitive lifecycle; Root/Portal are controllers rather than invented DOM identities. Content is centered with a native 14px corner and 16px inset/gap; 448px (Dialog) or 424px (AlertDialog) is a selected maximum, shrinking to viewport minus 32px. AlertDialog sm uses the native 320px compact surface and actual 40px media tile. Native title 16/24 (Medium, or Semi Bold for AlertDialog) and body 14/20 are intrinsic text roles, never fixed frame heights. Footer order remains DOM order and wraps. Button actions explicitly depend on Button tokens/CVA, while primitive triggers remain bare unless the caller composes Button. Backdrop 50% and viewport clearance are explicit reference decisions; static examples do not measure live dimming. Action is not a primitive Close: the caller performs/accepts confirmation and explicitly closes; Cancel is the real primitive Close.",
    "variants": {
      "placement": "Actual public size"
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
