Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
slider.mjs1.55 kB
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs'; import { createRecipe } from './create-recipe.mjs'; const sliderDefaultVariants = { "size": "md" } const sliderCompoundVariants = [] const sliderSlotNames = [ [ "root", "slider__root" ], [ "label", "slider__label" ], [ "thumb", "slider__thumb" ], [ "valueText", "slider__valueText" ], [ "track", "slider__track" ], [ "range", "slider__range" ], [ "control", "slider__control" ], [ "markerGroup", "slider__markerGroup" ], [ "marker", "slider__marker" ], [ "draggingIndicator", "slider__draggingIndicator" ] ] const sliderSlotFns = /* @__PURE__ */ sliderSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sliderDefaultVariants, getSlotCompoundVariant(sliderCompoundVariants, slotName))]) const sliderFn = memo((props = {}) => { return Object.fromEntries(sliderSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)])) }) const sliderVariantKeys = [ "size" ] const getVariantProps = (variants) => ({ ...sliderDefaultVariants, ...compact(variants) }) export const slider = /* @__PURE__ */ Object.assign(sliderFn, { __recipe__: false, __name__: 'slider', raw: (props) => props, classNameMap: {}, variantKeys: sliderVariantKeys, variantMap: { "size": [ "sm", "md", "lg" ] }, splitVariantProps(props) { return splitProps(props, sliderVariantKeys) }, 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