{"version":3,"file":"Tabs.js","names":[],"sources":["esm/ui/Tabs.js"],"sourcesContent":["import { isValidElement } from \"react\";\nimport { Slot } from \"./Slot\";\nimport { useTabsWithChildren } from \"./Tabs.shared\";\nexport * from \"./TabContext\";\nexport * from \"./TabList\";\nexport * from \"./TabSlot\";\nexport * from \"./TabTrigger\";\nexport * from \"./Tabs.shared\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction Tabs(props) {\n  const { children, asChild, options, ...rest } = props;\n  const Comp = asChild ? Slot : \"div\";\n  const { NavigationContent } = useTabsWithChildren({\n    children: asChild && isValidElement(children) && children.props && typeof children.props === \"object\" && \"children\" in children.props ? children.props.children : children,\n    ...options\n  });\n  return /* @__PURE__ */ jsx(Comp, { ...rest, children: /* @__PURE__ */ jsx(NavigationContent, { children }) });\n}\nexport {\n  Tabs\n};\n//# sourceMappingURL=Tabs.js.map\n"],"mappings":";;;;;;;;;;;;;;;;AASA,SAAS,KAAK,OAAO;CACnB,MAAM,EAAE,UAAU,SAAS,SAAS,GAAG,SAAS;CAChD,MAAM,OAAO,UAAU,OAAO;CAC9B,MAAM,EAAE,sBAAsB,oBAAoB;EAChD,UAAU,WAAW,eAAe,QAAQ,KAAK,SAAS,SAAS,OAAO,SAAS,UAAU,YAAY,cAAc,SAAS,QAAQ,SAAS,MAAM,WAAW;EAClK,GAAG;CACL,CAAC;CACD,OAAuB,oBAAI,MAAM;EAAE,GAAG;EAAM,UAA0B,oBAAI,mBAAmB,EAAE,SAAS,CAAC;CAAE,CAAC;AAC9G"}