/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../../../_virtual/_rolldown/runtime.cjs");
const require_components_client_SpringMotionConfig = require("../SpringMotionConfig.cjs");
const require_hooks_useRtl = require("../../../hooks/useRtl.cjs");
const require_components_client_Menu_utils_transformAriakitPlacement = require("./utils/transformAriakitPlacement.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
let _ariakit_react_menu = require("@ariakit/react/menu");
//#region src/components/client/Menu/Menu.Provider.tsx
/**
* **🏗️ A Menu Provider component**
*
* @componentType Server component
*
* @description
* A provider component for the menu, which is used to provide the menu context to the menu items.
*
* @see The {@link https://uds.build/docs/components/menu-provider Menu.Provider Docs} for more info
*
* @example
* ```tsx
* 'use client'; // Next.js client component
*
* import { Menu, Button } from "@yahoo/uds";
* import { Calendar, Clipboard } from "@yahoo/uds-icons";
*
* export function MenuProviderExample() {
*   return (
*     <Menu.Provider>
*       <Menu.Trigger asChild>
*         <Button>Menu Options</Button>
*       </Menu.Trigger>
*       <Menu.Content>
*         <Menu.Item startIcon={Calendar}>Calendar</Menu.Item>
*         <Menu.Item startIcon={Clipboard} endIcon={DiagonalRightUp}>
*           Clipboard
*         </Menu.Item>
*         <Menu.Item active>Active Item</Menu.Item>
*       </Menu.Content>
*     </Menu.Provider>
*   )
* }
* ```
*
* @usage
* Use MenuItem for standard menu options that trigger actions or navigate to other parts of the application.
* The active prop can be used to highlight the currently selected item.
*
* @related [Menu](https://uds.build/docs/components/menu), [Menu.ItemCheckbox](https://uds.build/docs/components/menu-item-checkbox)
**/
const MenuProvider = function MenuProvider({ placement = "bottom", rtl: explicitRtl, ...props }) {
	const isRtl = require_hooks_useRtl.useRtl({ explicit: explicitRtl });
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_client_SpringMotionConfig.SpringMotionConfig, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react_menu.MenuProvider, {
		placement: require_components_client_Menu_utils_transformAriakitPlacement.transformAriakitPlacement(placement, { rtl: isRtl }),
		rtl: isRtl,
		...props
	}) });
};
MenuProvider.displayName = "MenuProvider";
//#endregion
exports.MenuProvider = MenuProvider;
