diff --git a/.changeset/menu-context-menu-api-reference.md b/.changeset/menu-context-menu-api-reference.md new file mode 100644 index 00000000..3635ba9a --- /dev/null +++ b/.changeset/menu-context-menu-api-reference.md @@ -0,0 +1,29 @@ +--- +"@makeplane/propel": minor +--- + +Standardize the Menu and ContextMenu APIs and the generated props table. + +Rows in both families (`MenuItem`, `MenuCheckboxItem`, `MenuRadioItem`, `MenuLinkItem`, +`MenuSubmenuTrigger` and their `ContextMenu*` counterparts) rename `tone` to `variant`, following +the button-family rework — one look axis, same value spellings, now defaulting to `neutral` so the +prop is optional. `MenuItemTone` / `ContextMenuItemTone` / `ContextMenuSubmenuTriggerTone` become +`MenuItemVariant` / `ContextMenuItemVariant` / `ContextMenuSubmenuTriggerVariant`. The rows' +`endContent` prop is renamed `trailing`, and the styled part `MenuItemEndContent` is renamed +`MenuItemTrailing`. The `elements` menu row `layout` axis renames its values from `default` / +`with-description` to `single` / `stacked`. + +Fixes `MenuItem` dropping a consumer-supplied `render`: the ready-made hard-coded its own render +target after spreading props, so `} />` silently rendered a `
+ {component} was not found at{" "} + {source}. The export was probably renamed or moved — + update this page's parts list. +
+{doc.description}
+ ) : null}