{
  "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": "269:32"
  },
  "stories": [
    {
      "id": "figma-2018-364",
      "name": "SidebarHeader / Collapsed=True, State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2018:364",
        "part": "2018:365"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2018-363",
      "name": "SidebarHeader / Collapsed=False, State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2018:363",
        "part": "2018:365"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2019-366",
      "name": "SidebarHeader / Collapsed=False, State=Hover",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2019:366",
        "part": "2018:365"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2022-204",
      "name": "LeadingVisual / Type=Icon",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2022:204",
        "part": "2022:205"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2022-203",
      "name": "LeadingVisual / Type=Avatar",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2022:203",
        "part": "2022:205"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2023-270",
      "name": "MenuButton / Menu button=True, State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2023:270",
        "part": "2023:271"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2023-268",
      "name": "MenuButton / Menu button=False, State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2023:268",
        "part": "2023:271"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2023-263",
      "name": "MenuButton / Menu button=True, State=Hover",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2023:263",
        "part": "2023:271"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2023-265",
      "name": "MenuButton / Menu button=False, State=Hover",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2023:265",
        "part": "2023:271"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2023-267",
      "name": "MenuButton / Menu button=True, State=Focus",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2023:267",
        "part": "2023:271"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2023-264",
      "name": "MenuButton / Menu button=False, State=Focus",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2023:264",
        "part": "2023:271"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2023-266",
      "name": "MenuButton / Menu button=True, State=Disabled",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2023:266",
        "part": "2023:271"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2023-269",
      "name": "MenuButton / Menu button=False, State=Disabled",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2023:269",
        "part": "2023:271"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2026-282",
      "name": "SidebarGroupLabel / State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2026:282",
        "part": "2026:283"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2026-281",
      "name": "SidebarGroupLabel / State=Focus",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2026:281",
        "part": "2026:283"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2026-299",
      "name": "SidebarMenuSubButton / State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2026:299",
        "part": "2026:300"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2026-298",
      "name": "SidebarMenuSubButton / State=Hover",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2026:298",
        "part": "2026:300"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2026-297",
      "name": "SidebarMenuSubButton / State=Focus",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2026:297",
        "part": "2026:300"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2026-296",
      "name": "SidebarMenuSubButton / State=Disabled",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2026:296",
        "part": "2026:300"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractCases": [
    {
      "id": "actual-owner-and-source-lifecycle",
      "expected": "All exported Sidebar parts are preserved. SidebarProvider defaults defaultOpen=true and supplies desktop open/state, openMobile, isMobile, setOpen/setOpenMobile and toggleSidebar through useSidebar; Sidebar itself accepts side left|right, variant sidebar|floating|inset and collapsible offcanvas|icon|none. Desktop widths are16rem, icon3rem, mobile18rem. The pinned use-mobile hook is false during SSR/initial render and tracks window.innerWidth<768 using matchMedia afterward. Desktop openProp and onOpenChange should be supplied as a pair: setOpen calls the handler instead of internal state whenever a handler exists, even without an openProp. The callback is boolean-only, not cancellable eventDetails. Every desktop setOpen request writes sidebar_state=true|false, path=/, max-age604800; the provider does not read that cookie automatically, and a rejected/ignored controlled request can still write its candidate. Mobile toggle only changes openMobile, with no desktop onOpenChange or cookie write. The two states are not synchronized/reset on breakpoint changes. collapsible=none bypasses responsive Sheet/collapse rendering even though provider state can still change. Trigger calls caller onClick then always toggles (defaultPrevented is not a veto); Rail is native button tabindex=-1 and needs explicit type=button in a form-safe reference. Provider always registers lowercase Ctrl/Meta+b globally while mounted, including editable targets; there is no disable-shortcut prop, so this reference uses one provider and documents that application constraint. SidebarInset is main; avoid nested main landmarks. Header/Footer/Group/Content are containers, Menu/Sub are native lists, and MenuButton defaults button via useRender: actual navigation deliberately renders anchors. isActive only supplies appearance/data-active, not aria-current; caller supplies current-page semantics. GroupLabel requires caller heading choice. Skeleton has random50–89% width and no loading announcement; use the completed Skeleton usage policy. Optional tooltip is visual-only and shown collapsed desktop, so native names remain complete. Mobile Sidebar composes Sheet with fixed title Sidebar/description Displays the mobile sidebar and hides its direct default Close button in source CSS; this reference supplies an explicit nested Close navigation control. Desktop icon collapse is chosen to keep intended navigation available; offcanvas CSS alone does not supply an inert/focus-removal guarantee."
    },
    {
      "id": "keyboard-focus-and-source-constraints",
      "expected": "Native Trigger Enter/Space and registered Ctrl/Meta+b toggle the appropriate viewport state. Desktop collapse does not become a dialog or trap focus. Mobile uses the real Sheet/Dialog focus, Escape and restoration policy; its trigger aria-expanded uses openMobile, not the desktop state. Navigation links retain native Tab/Enter and readable names when icon-collapsed. Rail is an optional pointer duplicate, not the sole keyboard access. Names, landmark label, heading and active-page relation are explicit caller composition."
    },
    {
      "id": "native-semantic-instance",
      "html": "accessibility.html"
    }
  ]
}
