Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
menu.mjs1.74 kB
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs'; import { createRecipe } from './create-recipe.mjs'; const menuDefaultVariants = { "size": "xs" } const menuCompoundVariants = [] const menuSlotNames = [ [ "arrow", "menu__arrow" ], [ "arrowTip", "menu__arrowTip" ], [ "content", "menu__content" ], [ "contextTrigger", "menu__contextTrigger" ], [ "indicator", "menu__indicator" ], [ "item", "menu__item" ], [ "itemGroup", "menu__itemGroup" ], [ "itemGroupLabel", "menu__itemGroupLabel" ], [ "itemIndicator", "menu__itemIndicator" ], [ "itemText", "menu__itemText" ], [ "positioner", "menu__positioner" ], [ "separator", "menu__separator" ], [ "trigger", "menu__trigger" ], [ "triggerItem", "menu__triggerItem" ] ] const menuSlotFns = /* @__PURE__ */ menuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, menuDefaultVariants, getSlotCompoundVariant(menuCompoundVariants, slotName))]) const menuFn = memo((props = {}) => { return Object.fromEntries(menuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)])) }) const menuVariantKeys = [ "size" ] const getVariantProps = (variants) => ({ ...menuDefaultVariants, ...compact(variants) }) export const menu = /* @__PURE__ */ Object.assign(menuFn, { __recipe__: false, __name__: 'menu', raw: (props) => props, classNameMap: {}, variantKeys: menuVariantKeys, variantMap: { "size": [ "xs", "sm", "md", "lg" ] }, splitVariantProps(props) { return splitProps(props, menuVariantKeys) }, getVariantProps })

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server