{
  "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": "73:228"
  },
  "stories": [
    {
      "id": "figma-2138-1343",
      "name": "DrawerHeader / Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2138:1343",
        "part": "2138:1342"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2138-1349",
      "name": "DrawerHeader / Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2138:1349",
        "part": "2138:1342"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2138-1928",
      "name": "DrawerHeader / Dir=None",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2138:1928",
        "part": "2138:1342"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractProtocol": "SCXML consumes source-normalized interaction/callback transactions. eventDetails is the source callback object. onOpenChange/onValueChange sends project those observed callbacks, never dispatch a second DOM event. _effect.* entries are internal source focus/application effects, not public component events. Controlled SET_OPEN/SET_VALUE synchronizes props without fabricating a callback.",
  "contractCases": [
    {
      "id": "source-default-and-accepted-change",
      "event": "TRIGGER_PRESS",
      "expected": "The source callback and documented state policy apply; controlled props remain authoritative."
    },
    {
      "id": "callback-cancellation",
      "expected": "The proposed callback can be observed while the public state remains unchanged."
    },
    {
      "id": "keyboard-and-dismissal",
      "expected": "The default modal drawer contains focus, supports Escape/Close and restores the trigger focus. Pointer swipes use the configured direction and primitive gesture logic; keyboard access remains available through explicit controls."
    },
    {
      "id": "instance-semantic-relations",
      "html": "accessibility.html",
      "state": "open"
    }
  ]
}
