{
  "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:229"
  },
  "stories": [
    {
      "id": "figma-2140-2972",
      "name": "DropdownMenuLabel / Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2140:2972",
        "part": "2140:2971"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2140-2974",
      "name": "DropdownMenuLabel / Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2140:2974",
        "part": "2140:2971"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2140-3027",
      "name": "MenuItem / State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2140:3027",
        "part": "2140:3026"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2140-3030",
      "name": "MenuItem / State=Hover, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2140:3030",
        "part": "2140:3026"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2140-3033",
      "name": "MenuItem / State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2140:3033",
        "part": "2140:3026"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2140-3036",
      "name": "MenuItem / State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2140:3036",
        "part": "2140:3026"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2140-3039",
      "name": "MenuItem / State=Hover, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2140:3039",
        "part": "2140:3026"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2140-3042",
      "name": "MenuItem / State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2140:3042",
        "part": "2140:3026"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2140-3046",
      "name": "Dropdown / Type=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2140:3046",
        "part": "2140:3045"
      },
      "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": "Root defaults modal=true, vertical orientation and loopFocus=true. Trigger defaults native button aria-haspopup=menu and expanded/controls relations. Content defaults side=bottom, align=start, alignOffset0 and sideOffset4; Popup props remain distinct from Positioner props. Root does not render an element. Native command clicks and onOpenChange are different callbacks; no fictitious onSelect or selected-value Root is introduced."
    },
    {
      "id": "concrete-owned-menu-semantics",
      "html": "accessibility.html"
    }
  ]
}
