{"version":3,"file":"Checkbox.js","names":["CheckboxBehavior"],"sources":["jsx/components/Checkbox.js"],"sourcesContent":["import { Checkbox as CheckboxBehavior } from \"@tamagui/checkbox\";\nimport {\n  resolveSizing,\n  styled,\n  withStaticProperties\n} from \"@tamagui/core\";\nconst getCheckboxSize = styled.dynamic((val, env) => {\n  const sizing = resolveSizing(val, env);\n  if (!sizing) return;\n  return {\n    width: sizing.square,\n    height: sizing.square,\n    borderRadius: sizing.radius\n  };\n});\nconst CheckboxFrame = styled(CheckboxBehavior, {\n  displayName: \"Checkbox\",\n  // checked swaps the whole frame onto the brand theme, so the fill, the border\n  // and the check glyph (icons read theme.color, they do not inherit CSS color)\n  // all move together. the same convention drives Switch and ToggleGroup.Item.\n  activeTheme: \"brand\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  backgroundColor: \"background press:background-press\",\n  borderColor: \"border-color hover:border-color-hover press:border-color-press\",\n  borderWidth: 1,\n  outlineColor: \"focus-visible:outline-color\",\n  outlineStyle: \"focus-visible:solid\",\n  outlineWidth: \"focus-visible:2px\",\n  variants: {\n    size: getCheckboxSize,\n    disabled: {\n      true: {\n        cursor: \"not-allowed\",\n        opacity: 0.45\n      }\n    }\n  },\n  defaultVariants: {\n    size: \"md\"\n  }\n});\nconst CheckboxIndicator = styled(CheckboxBehavior.Indicator, {\n  displayName: \"CheckboxIndicator\",\n  alignItems: \"center\",\n  justifyContent: \"center\"\n});\nconst Checkbox = withStaticProperties(CheckboxFrame, {\n  Indicator: CheckboxIndicator\n});\nexport {\n  Checkbox,\n  CheckboxFrame,\n  CheckboxIndicator\n};\n//# sourceMappingURL=Checkbox.js.map\n"],"mappings":";;;;AAMA,MAAM,kBAAkB,OAAO,SAAS,KAAK,QAAQ;CACnD,MAAM,SAAS,cAAc,KAAK,GAAG;CACrC,IAAI,CAAC,QAAQ;CACb,OAAO;EACL,OAAO,OAAO;EACd,QAAQ,OAAO;EACf,cAAc,OAAO;CACvB;AACF,CAAC;AACD,MAAM,gBAAgB,OAAOA,YAAkB;CAC7C,aAAa;CAIb,aAAa;CACb,YAAY;CACZ,gBAAgB;CAChB,iBAAiB;CACjB,aAAa;CACb,aAAa;CACb,cAAc;CACd,cAAc;CACd,cAAc;CACd,UAAU;EACR,MAAM;EACN,UAAU,EACR,MAAM;GACJ,QAAQ;GACR,SAAS;EACX,EACF;CACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC;AACD,MAAM,oBAAoB,OAAOA,WAAiB,WAAW;CAC3D,aAAa;CACb,YAAY;CACZ,gBAAgB;AAClB,CAAC;AACD,MAAM,WAAW,qBAAqB,eAAe,EACnD,WAAW,kBACb,CAAC"}