{
  "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:1979"
  },
  "stories": [
    {
      "id": "figma-2162-787",
      "name": "MenubarItem / State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2162:787",
        "part": "2162:786"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2162-794",
      "name": "MenubarItem / State=Hover, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2162:794",
        "part": "2162:786"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2162-801",
      "name": "MenubarItem / State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2162:801",
        "part": "2162:786"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2162-808",
      "name": "MenubarItem / State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2162:808",
        "part": "2162:786"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2162-815",
      "name": "MenubarItem / State=Hover, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2162:815",
        "part": "2162:786"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2162-822",
      "name": "MenubarItem / State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2162:822",
        "part": "2162:786"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2162-830",
      "name": "MenubarGroup / Type=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2162:830",
        "part": "2162:829"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractCases": [
    {
      "id": "source-command-versus-setting",
      "expected": "All exported wrappers retain exact source types. Menu Item uses div role=menuitem, CheckboxItem role=menuitemcheckbox with boolean checked/defaultChecked and cancellable onCheckedChange, RadioGroup uses role=group with any value/defaultValue and cancellable onValueChange; RadioItem uses menuitemradio. Item closeOnClick defaults true, but CheckboxItem and RadioItem closeOnClick default false in Base UI1.9. Command onClick is the native React/Base UI synthetic handler, not an onValueChange. Its event.preventBaseUIHandler() can prevent remaining internal primitive handling such as default closing; this is distinct from callback eventDetails.cancel() on Root or setting changes. Source useButton makes disabled items focusable in the composite while blocking activation; do not promise they are skipped by arrows. Labels/Groups/Separators supply native primitive relations, and Shortcut is only displayed text: it registers no shortcut. SubmenuRoot/Trigger/Content form an independently owned child menu; Root closeParentOnEsc=false normally limits Escape to the child, while context-menu nested Escape follows its specialized source policy. Canceled callbacks preserve the relevant open/checked/radio state; controlled props remain authoritative. onItemHighlighted reports actual element|undefined and reason/label details. Root open transitions, onOpenChangeComplete and externally deferred unmount are distinct. Positioning, pointer safe zones, typeahead, focus management and automatic sibling closing belong to the primitive."
    },
    {
      "id": "menu-ownership-keyboard-and-submenu",
      "expected": "Native trigger Enter/Space or supported opening arrows enter the menu. Within a vertical menu Up/Down, Home/End and label typeahead highlight items; disabled entries may be focused but cannot activate. Enter/Space activate an enabled command or setting. Focus/highlight is not a command commit. Right opens an appropriate submenu and Left returns according to source direction/orientation. Escape dismisses the applicable menu level unless the source change callback is canceled, normally returning to its owning trigger; an outside press/focus transition follows the actual modality and finalFocus policy rather than a universal focus jump. Tab follows the primitive dismissal/focus-manager policy and never becomes a Dialog-style fabricated trap. Menubar parent keyboard navigation is separate from child vertical navigation. Essential instructions and command alternatives stay visible outside hover/long-press alone."
    },
    {
      "id": "source-root-specific-entry",
      "expected": "Menubar is a native div role=menubar from MenubarPrimitive, default horizontal/modal=true/loopFocus=true, with whole-bar disabled. Each MenubarMenu composes a separate DropdownMenu Root; it owns its own open/onOpenChange lifecycle, not a fabricated Menubar selected-menu prop. Top-level triggers have role=menuitem inside the bar and native activation. Left/Right and Home/End move between top-level triggers according to actual bar orientation; opening a sibling closes the prior menu with sibling-open reason. The observed sibling switch may initially focus the menu surface; Down then highlights its first command. Content composes DropdownMenu with align=start, alignOffset=-4 and sideOffset8. Menubar orientation is actually forwarded, unlike the separate Tabs/ToggleGroup wrapper quirks."
    },
    {
      "id": "concrete-owned-menu-semantics",
      "html": "accessibility.html"
    }
  ]
}
