{"version":3,"file":"Template.cjs","names":["reduceWithOut","templateOnly","markComponent","TEMPLATE_COMPONENT"],"sources":["../../src/Slots/Template.tsx"],"sourcesContent":["import { reduceWithOut, templateOnly } from './utils';\nimport { markComponent, TEMPLATE_COMPONENT } from './constants';\n\nimport type { TemplateProps } from './types';\n\n/**\n * Declares slot content for a parent component using `useSlots`.\n *\n * A named template (`name=\"title\"`) fills the matching `<Slot name=\"title\" />`.\n * A template without `name` contributes to the default slot. The component does\n * not render by itself; it is consumed during slot collection.\n *\n * @param _props - Template props consumed by `useSlots`.\n * @returns `null`; templates are markers rather than rendered elements.\n *\n * @example\n * ```tsx\n * <Template name=\"action\">\n *   {({ label }) => <button>{label}</button>}\n * </Template>\n * ```\n */\nexport function Template(_props: TemplateProps) {\n  return null;\n}\n\nTemplate.reduce = reduceWithOut;\nTemplate.only = templateOnly;\nmarkComponent(Template, TEMPLATE_COMPONENT);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAgB,SAAS,QAAuB;CAC9C,OAAO;AACT;AAEA,SAAS,SAASA,kCAAAA;AAClB,SAAS,OAAOC,iCAAAA;AAChBC,wBAAAA,cAAc,UAAUC,wBAAAA,kBAAkB"}