{"version":3,"file":"Surface.js","names":[],"sources":["jsx/components/Surface.js"],"sourcesContent":["import { styled, Theme } from \"@tamagui/core\";\nimport { YStack } from \"@tamagui/stacks\";\nimport { forwardRef } from \"react\";\nimport { elevated, filled, interactive, outlined, rounded } from \"./facets\";\nimport { jsx } from \"react/jsx-runtime\";\nconst SurfaceFrame = styled(YStack, {\n  displayName: \"Surface\",\n  variants: {\n    filled,\n    outlined,\n    elevated,\n    roundedFacet: rounded,\n    interactive\n  }\n});\nconst Surface = forwardRef(function Surface2({ level, rounded: rounded2, ...props }, ref) {\n  const frame = /* @__PURE__ */ jsx(SurfaceFrame, { ref, roundedFacet: rounded2, ...props });\n  if (!level || level === 1) return frame;\n  return /* @__PURE__ */ jsx(Theme, { name: `level${level}`, children: frame });\n});\nexport {\n  Surface,\n  SurfaceFrame\n};\n//# sourceMappingURL=Surface.js.map\n"],"mappings":";;;;;;;AAKA,MAAM,eAAe,OAAO,QAAQ;CAClC,aAAa;CACb,UAAU;EACR;EACA;EACA;EACA,cAAc;EACd;CACF;AACF,CAAC;AACD,MAAM,UAAU,WAAW,SAAS,SAAS,EAAE,OAAO,SAAS,UAAU,GAAG,SAAS,KAAK;CACxF,MAAM,QAAwB,oBAAI,cAAc;EAAE;EAAK,cAAc;EAAU,GAAG;CAAM,CAAC;CACzF,IAAI,CAAC,SAAS,UAAU,GAAG,OAAO;CAClC,OAAuB,oBAAI,OAAO;EAAE,MAAM,QAAQ;EAAS,UAAU;CAAM,CAAC;AAC9E,CAAC"}