{
  "format": "shadcn-figma-stories/1",
  "scope": "Static native design variants and documented examples; not executable interaction tests.",
  "source": {
    "path": "provenance://source/.figma-pool%2Fshadcn.fig",
    "sha256": "ccbe95f20f501389a322d0f6de2c90ca79126a33355f1b31e2b1dcc7c8e2b3d5",
    "page": "2360:4588"
  },
  "stories": [
    {
      "id": "figma-2376-1160",
      "name": "Attachment Media / Size=Large, State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1160",
        "part": "2376:1161"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2376-1159",
      "name": "Attachment Media / Size=Medium, State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1159",
        "part": "2376:1161"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2376-1158",
      "name": "Attachment Media / Size=Small, State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1158",
        "part": "2376:1161"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2376-1372",
      "name": "Attachment Media / Size=Large, State=Destructive",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1372",
        "part": "2376:1161"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2376-1374",
      "name": "Attachment Media / Size=Medium, State=Destructive",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1374",
        "part": "2376:1161"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2376-1376",
      "name": "Attachment Media / Size=Small, State=Destructive",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1376",
        "part": "2376:1161"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2376-1339",
      "name": "Attachment / Dir=LTR, Data orientation=Horizontal",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1339",
        "part": "2376:1343"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2376-1340",
      "name": "Attachment / Dir=RTL, Data orientation=Horizontal",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1340",
        "part": "2376:1343"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2376-1342",
      "name": "Attachment / Dir=LTR, Data orientation=Vertical",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1342",
        "part": "2376:1343"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2376-1341",
      "name": "Attachment / Dir=RTL, Data orientation=Vertical",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2376:1341",
        "part": "2376:1343"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "referenceScope": "Pinned native/default content composition; original static Figma variants remain in stories. Source wrapper APIs and optional native render semantics are described in CEM/README.",
  "contractCases": [
    {
      "id": "source-dynamic-state-and-alternative",
      "html": "accessibility.html",
      "expected": "Attachment state is a caller-supplied styling prop, default done; it does not upload, select files, retry, cancel or progress through states. Title/Description are spans, Content/Actions/Group are divs. AttachmentAction composes Button, ghost/icon-xs defaults. AttachmentTrigger uses native button default type=button, or an explicit native render such as anchor. Group supplies horizontal overflow/snap, not selection state. Caller owns async request transitions and focus after removal. Do not nest Trigger buttons/anchors inside other interactive elements or cover secondary actions with an unnamed trigger."
    },
    {
      "id": "caller-versus-source-ownership",
      "expected": "The error wording, status text and Retry Button are explicit caller composition. A real async operation determines state; no synthetic timeout is attached to make the visual upload states look operational."
    },
    {
      "id": "meaningful-text-under-state-change",
      "expected": "Filename, type/size where relevant and upload state/error are text. Decorative media icon is explicitly hidden. Action labels include the actual attachment name; thumbnails need useful alt when conveying content."
    }
  ]
}
