{
  "format": "ui-contract-stories/1",
  "componentId": "shadcn:Sheet",
  "purpose": "Source-independent reusable semantic fixtures. Static HTML specifies expected anatomy/state; actual pinned React adapter and protocol cases separately establish behavior.",
  "stories": [
    {
      "id": "open",
      "name": "Open",
      "inputs": {
        "open": true
      },
      "visualState": "default",
      "fixture": {
        "html": "<button type=\"button\" data-slot=\"sheet-trigger\" aria-haspopup=\"dialog\" aria-expanded=\"true\" aria-controls=\"overlay-popup\">Open sheet</button><div data-slot=\"sheet-overlay\" aria-hidden=\"true\"></div><div data-slot=\"sheet-content\" role=\"dialog\" id=\"overlay-popup\" aria-labelledby=\"overlay-title\" aria-describedby=\"overlay-description\" tabindex=\"-1\" data-side=\"right\"><div data-slot=\"sheet-header\"><h2 data-slot=\"sheet-title\" id=\"overlay-title\">Project sheet</h2><p data-slot=\"sheet-description\" id=\"overlay-description\">Review the project details before saving.</p></div><div data-slot=\"sheet-footer\"><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-button cn-button-variant-outline cn-button-size-default\">Close sheet</button></div><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-sheet-close cn-button cn-button-variant-ghost cn-button-size-icon-sm\" aria-label=\"Close\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"m6 6 12 12M18 6 6 18\"/></svg><span class=\"sr-only\">Close</span></button></div>"
      },
      "steps": [],
      "expectation": "Actual source parts and caller-owned content match the semantic adapter. Static visibility is a fixture; primitive lifecycle, event cancellation and focus are checked in the real target."
    },
    {
      "id": "closed",
      "name": "Closed",
      "inputs": {
        "open": false
      },
      "visualState": "default",
      "fixture": {
        "html": "<button type=\"button\" data-slot=\"sheet-trigger\" aria-haspopup=\"dialog\" aria-expanded=\"false\">Open sheet</button>"
      },
      "steps": [],
      "expectation": "Actual source parts and caller-owned content match the semantic adapter. Static visibility is a fixture; primitive lifecycle, event cancellation and focus are checked in the real target."
    },
    {
      "id": "rtl",
      "name": "Rtl",
      "inputs": {},
      "visualState": "default",
      "fixture": {
        "html": "<button type=\"button\" data-slot=\"sheet-trigger\" aria-haspopup=\"dialog\" aria-expanded=\"true\" aria-controls=\"overlay-popup\">Open sheet</button><div data-slot=\"sheet-overlay\" aria-hidden=\"true\"></div><div data-slot=\"sheet-content\" role=\"dialog\" id=\"overlay-popup\" aria-labelledby=\"overlay-title\" aria-describedby=\"overlay-description\" tabindex=\"-1\" data-side=\"right\" dir=\"rtl\"><div data-slot=\"sheet-header\"><h2 data-slot=\"sheet-title\" id=\"overlay-title\">Project sheet</h2><p data-slot=\"sheet-description\" id=\"overlay-description\">Review the project details before saving.</p></div><div data-slot=\"sheet-footer\"><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-button cn-button-variant-outline cn-button-size-default\">Close sheet</button></div><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-sheet-close cn-button cn-button-variant-ghost cn-button-size-icon-sm\" aria-label=\"Close\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"m6 6 12 12M18 6 6 18\"/></svg><span class=\"sr-only\">Close</span></button></div>"
      },
      "steps": [],
      "expectation": "Actual source parts and caller-owned content match the semantic adapter. Static visibility is a fixture; primitive lifecycle, event cancellation and focus are checked in the real target."
    },
    {
      "id": "disabled-trigger",
      "name": "Disabled trigger",
      "inputs": {
        "disabled": true
      },
      "visualState": "default",
      "fixture": {
        "html": "<button type=\"button\" disabled=\"\" data-slot=\"sheet-trigger\" aria-haspopup=\"dialog\" aria-expanded=\"false\">Open sheet</button>"
      },
      "steps": [],
      "expectation": "Actual source parts and caller-owned content match the semantic adapter. Static visibility is a fixture; primitive lifecycle, event cancellation and focus are checked in the real target."
    },
    {
      "id": "side-top",
      "name": "Side top",
      "inputs": {
        "side": "top"
      },
      "visualState": "default",
      "fixture": {
        "html": "<button type=\"button\" data-slot=\"sheet-trigger\" aria-haspopup=\"dialog\" aria-expanded=\"true\" aria-controls=\"overlay-popup\">Open sheet</button><div data-slot=\"sheet-overlay\" aria-hidden=\"true\"></div><div data-slot=\"sheet-content\" role=\"dialog\" id=\"overlay-popup\" aria-labelledby=\"overlay-title\" aria-describedby=\"overlay-description\" tabindex=\"-1\" data-side=\"top\"><div data-slot=\"sheet-header\"><h2 data-slot=\"sheet-title\" id=\"overlay-title\">Project sheet</h2><p data-slot=\"sheet-description\" id=\"overlay-description\">Review the project details before saving.</p></div><div data-slot=\"sheet-footer\"><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-button cn-button-variant-outline cn-button-size-default\">Close sheet</button></div><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-sheet-close cn-button cn-button-variant-ghost cn-button-size-icon-sm\" aria-label=\"Close\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"m6 6 12 12M18 6 6 18\"/></svg><span class=\"sr-only\">Close</span></button></div>"
      },
      "steps": [],
      "expectation": "Actual source parts and caller-owned content match the semantic adapter. Static visibility is a fixture; primitive lifecycle, event cancellation and focus are checked in the real target."
    },
    {
      "id": "side-right",
      "name": "Side right",
      "inputs": {
        "side": "right"
      },
      "visualState": "default",
      "fixture": {
        "html": "<button type=\"button\" data-slot=\"sheet-trigger\" aria-haspopup=\"dialog\" aria-expanded=\"true\" aria-controls=\"overlay-popup\">Open sheet</button><div data-slot=\"sheet-overlay\" aria-hidden=\"true\"></div><div data-slot=\"sheet-content\" role=\"dialog\" id=\"overlay-popup\" aria-labelledby=\"overlay-title\" aria-describedby=\"overlay-description\" tabindex=\"-1\" data-side=\"right\"><div data-slot=\"sheet-header\"><h2 data-slot=\"sheet-title\" id=\"overlay-title\">Project sheet</h2><p data-slot=\"sheet-description\" id=\"overlay-description\">Review the project details before saving.</p></div><div data-slot=\"sheet-footer\"><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-button cn-button-variant-outline cn-button-size-default\">Close sheet</button></div><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-sheet-close cn-button cn-button-variant-ghost cn-button-size-icon-sm\" aria-label=\"Close\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"m6 6 12 12M18 6 6 18\"/></svg><span class=\"sr-only\">Close</span></button></div>"
      },
      "steps": [],
      "expectation": "Actual source parts and caller-owned content match the semantic adapter. Static visibility is a fixture; primitive lifecycle, event cancellation and focus are checked in the real target."
    },
    {
      "id": "side-bottom",
      "name": "Side bottom",
      "inputs": {
        "side": "bottom"
      },
      "visualState": "default",
      "fixture": {
        "html": "<button type=\"button\" data-slot=\"sheet-trigger\" aria-haspopup=\"dialog\" aria-expanded=\"true\" aria-controls=\"overlay-popup\">Open sheet</button><div data-slot=\"sheet-overlay\" aria-hidden=\"true\"></div><div data-slot=\"sheet-content\" role=\"dialog\" id=\"overlay-popup\" aria-labelledby=\"overlay-title\" aria-describedby=\"overlay-description\" tabindex=\"-1\" data-side=\"bottom\"><div data-slot=\"sheet-header\"><h2 data-slot=\"sheet-title\" id=\"overlay-title\">Project sheet</h2><p data-slot=\"sheet-description\" id=\"overlay-description\">Review the project details before saving.</p></div><div data-slot=\"sheet-footer\"><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-button cn-button-variant-outline cn-button-size-default\">Close sheet</button></div><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-sheet-close cn-button cn-button-variant-ghost cn-button-size-icon-sm\" aria-label=\"Close\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"m6 6 12 12M18 6 6 18\"/></svg><span class=\"sr-only\">Close</span></button></div>"
      },
      "steps": [],
      "expectation": "Actual source parts and caller-owned content match the semantic adapter. Static visibility is a fixture; primitive lifecycle, event cancellation and focus are checked in the real target."
    },
    {
      "id": "side-left",
      "name": "Side left",
      "inputs": {
        "side": "left"
      },
      "visualState": "default",
      "fixture": {
        "html": "<button type=\"button\" data-slot=\"sheet-trigger\" aria-haspopup=\"dialog\" aria-expanded=\"true\" aria-controls=\"overlay-popup\">Open sheet</button><div data-slot=\"sheet-overlay\" aria-hidden=\"true\"></div><div data-slot=\"sheet-content\" role=\"dialog\" id=\"overlay-popup\" aria-labelledby=\"overlay-title\" aria-describedby=\"overlay-description\" tabindex=\"-1\" data-side=\"left\"><div data-slot=\"sheet-header\"><h2 data-slot=\"sheet-title\" id=\"overlay-title\">Project sheet</h2><p data-slot=\"sheet-description\" id=\"overlay-description\">Review the project details before saving.</p></div><div data-slot=\"sheet-footer\"><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-button cn-button-variant-outline cn-button-size-default\">Close sheet</button></div><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-sheet-close cn-button cn-button-variant-ghost cn-button-size-icon-sm\" aria-label=\"Close\"><svg aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"m6 6 12 12M18 6 6 18\"/></svg><span class=\"sr-only\">Close</span></button></div>"
      },
      "steps": [],
      "expectation": "Actual source parts and caller-owned content match the semantic adapter. Static visibility is a fixture; primitive lifecycle, event cancellation and focus are checked in the real target."
    },
    {
      "id": "without-icon-close",
      "name": "Without icon close",
      "inputs": {
        "showCloseButton": false
      },
      "visualState": "default",
      "fixture": {
        "html": "<button type=\"button\" data-slot=\"sheet-trigger\" aria-haspopup=\"dialog\" aria-expanded=\"true\" aria-controls=\"overlay-popup\">Open sheet</button><div data-slot=\"sheet-overlay\" aria-hidden=\"true\"></div><div data-slot=\"sheet-content\" role=\"dialog\" id=\"overlay-popup\" aria-labelledby=\"overlay-title\" aria-describedby=\"overlay-description\" tabindex=\"-1\" data-side=\"right\"><div data-slot=\"sheet-header\"><h2 data-slot=\"sheet-title\" id=\"overlay-title\">Project sheet</h2><p data-slot=\"sheet-description\" id=\"overlay-description\">Review the project details before saving.</p></div><div data-slot=\"sheet-footer\"><button type=\"button\" data-slot=\"sheet-close\" class=\"cn-button cn-button-variant-outline cn-button-size-default\">Close sheet</button></div></div>"
      },
      "steps": [],
      "expectation": "Actual source parts and caller-owned content match the semantic adapter. Static visibility is a fixture; primitive lifecycle, event cancellation and focus are checked in the real target."
    }
  ]
}
