{"version":3,"sources":["../src/forward-ref.tsx"],"sourcesContent":["/**\n * All credit goes to Chance (Reach UI), Haz (Reakit) and (fluentui)\n * for creating the base type definitions upon which we improved on\n */\nimport { forwardRef as forwardReactRef } from \"react\"\nimport { As, ComponentWithAs, PropsOf, RightJoinProps } from \"./system.types\"\n\nexport function forwardRef(\n component: React.ForwardRefRenderFunction<\n any,\n RightJoinProps, Props> & {\n as?: As\n }\n >,\n) {\n return forwardReactRef(component) as unknown as ComponentWithAs<\n Component,\n Props\n >\n}\n"],"mappings":";;;AAIA,SAAS,cAAc,uBAAuB;AAGvC,SAAS,WACd,WAMA;AACA,SAAO,gBAAgB,SAAS;AAIlC;","names":[]}