{"version":3,"file":"Sheet.js","names":["SheetBehavior"],"sources":["jsx/components/Sheet.js"],"sourcesContent":["import {\n  createRefComponent,\n  styled,\n  withStaticProperties\n} from \"@tamagui/core\";\nimport { Sheet as SheetBehavior, useSheetContext } from \"@tamagui/sheet\";\nimport { jsx } from \"react/jsx-runtime\";\nconst SheetHandleFrame = styled(SheetBehavior.Handle, {\n  displayName: \"SheetHandle\",\n  height: 10,\n  borderRadius: 1e3,\n  backgroundColor: \"color-5\",\n  zIndex: 10,\n  marginHorizontal: \"35%\",\n  marginBottom: \"2\",\n  // Handle opacity aesthetics live in the skin, not the behavior package.\n  opacity: \"0.5 hover:0.7\",\n  variants: {\n    open: {\n      true: {\n        opacity: 1\n      },\n      false: {\n        opacity: 0\n      }\n    }\n  }\n});\nconst SheetHandle = createRefComponent(function SheetHandle2(props, ref) {\n  const context = useSheetContext(props.scope);\n  return /* @__PURE__ */ jsx(SheetHandleFrame, { ref, ...props, open: context.open });\n});\nconst SheetOverlay = styled(SheetBehavior.Overlay, {\n  displayName: \"SheetOverlay\",\n  backgroundColor: \"shadow-color\",\n  opacity: 0.45\n});\nconst SheetContainer = styled(SheetBehavior.Container, {\n  displayName: \"SheetContainer\"\n  // no padding on the Container: the keyboard-avoidance measures this frame, and\n  // in snapPointsMode=\"fit\" any vertical padding here inflates the frame beyond\n  // the preserved fit height, so the keyboard lift is off by exactly the padding\n  // (SheetWebKeyboard geometry). Content inset comes from the ScrollView skin +\n  // the consumer's own content padding, matching the pre-skin baseline.\n});\nconst SheetBackground = styled(SheetBehavior.Background, {\n  displayName: \"SheetBackground\",\n  backgroundColor: \"background\",\n  borderTopLeftRadius: \"6\",\n  borderTopRightRadius: \"6\"\n});\nconst SheetScrollView = styled(SheetBehavior.ScrollView, {\n  displayName: \"SheetScrollView\",\n  // no flex here: the behavior's fitSizingStyle sets flex per mode (undefined for\n  // snapPointsMode=\"fit\" so the content-sized Container doesn't collapse, 1\n  // otherwise), and consumer props apply AFTER that guard — a skin-level flex:1\n  // would override it and collapse the fit-mode scrollview (SheetWebKeyboard).\n  paddingHorizontal: \"2\"\n});\nconst sheetParts = {\n  Container: SheetContainer,\n  Background: SheetBackground,\n  Overlay: SheetOverlay,\n  Handle: SheetHandle,\n  ScrollView: SheetScrollView\n};\nconst SheetRoot = createRefComponent(\n  function SheetRoot2(props, ref) {\n    return /* @__PURE__ */ jsx(SheetBehavior.Root, { ref, ...props });\n  }\n);\nconst SheetControlledRoot = createRefComponent(function SheetControlled(props, ref) {\n  return /* @__PURE__ */ jsx(SheetBehavior.Controlled, { ref, ...props });\n});\nconst SheetControlled2 = withStaticProperties(SheetControlledRoot, sheetParts);\nconst Sheet = withStaticProperties(SheetRoot, {\n  Root: SheetRoot,\n  Controlled: SheetControlled2,\n  useAnimatedPosition: SheetBehavior.useAnimatedPosition,\n  ...sheetParts\n});\nexport {\n  Sheet,\n  SheetBackground,\n  SheetContainer,\n  SheetControlled2 as SheetControlled,\n  SheetHandle,\n  SheetOverlay,\n  SheetRoot,\n  SheetScrollView\n};\n//# sourceMappingURL=Sheet.js.map\n"],"mappings":";;;;;AAOA,MAAM,mBAAmB,OAAOA,QAAc,QAAQ;CACpD,aAAa;CACb,QAAQ;CACR,cAAc;CACd,iBAAiB;CACjB,QAAQ;CACR,kBAAkB;CAClB,cAAc;CAEd,SAAS;CACT,UAAU,EACR,MAAM;EACJ,MAAM,EACJ,SAAS,EACX;EACA,OAAO,EACL,SAAS,EACX;CACF,EACF;AACF,CAAC;AACD,MAAM,cAAc,mBAAmB,SAAS,aAAa,OAAO,KAAK;CACvE,MAAM,UAAU,gBAAgB,MAAM,KAAK;CAC3C,OAAuB,oBAAI,kBAAkB;EAAE;EAAK,GAAG;EAAO,MAAM,QAAQ;CAAK,CAAC;AACpF,CAAC;AACD,MAAM,eAAe,OAAOA,QAAc,SAAS;CACjD,aAAa;CACb,iBAAiB;CACjB,SAAS;AACX,CAAC;AACD,MAAM,iBAAiB,OAAOA,QAAc,WAAW,EACrD,aAAa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