{"version":3,"file":"RadioGroup.js","names":["RadioGroupBehavior"],"sources":["jsx/components/RadioGroup.js"],"sourcesContent":["import {\n  resolveSizing,\n  styled,\n  withStaticProperties\n} from \"@tamagui/core\";\nimport { RadioGroup as RadioGroupBehavior } from \"@tamagui/radio-group\";\nconst getRadioSize = 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  };\n});\nconst RadioGroupFrame = styled(RadioGroupBehavior, {\n  displayName: \"RadioGroup\"\n});\nconst RadioGroupItem = styled(RadioGroupBehavior.Item, {\n  displayName: \"RadioGroupItem\",\n  // selected swaps the whole item onto the brand theme, the same convention\n  // Checkbox, Switch and ToggleGroup.Item use, so the four read as one family\n  activeTheme: \"brand\",\n  alignItems: \"center\",\n  justifyContent: \"center\",\n  backgroundColor: \"background hover:background-hover press:background-press\",\n  borderColor: \"border-color hover:border-color-hover press:border-color-press\",\n  borderRadius: 1e3,\n  borderWidth: 1,\n  outlineColor: \"focus-visible:outline-color\",\n  outlineStyle: \"focus-visible:solid\",\n  outlineWidth: \"focus-visible:2px\",\n  variants: {\n    size: getRadioSize,\n    disabled: {\n      true: {\n        cursor: \"not-allowed\",\n        opacity: 0.45\n      }\n    }\n  },\n  defaultVariants: {\n    size: \"md\"\n  }\n});\nconst RadioGroupIndicator = styled(RadioGroupBehavior.Indicator, {\n  displayName: \"RadioGroupIndicator\",\n  width: \"50%\",\n  height: \"50%\",\n  borderRadius: 1e3,\n  backgroundColor: \"color\"\n});\nconst RadioGroup = withStaticProperties(RadioGroupFrame, {\n  Item: RadioGroupItem,\n  Indicator: RadioGroupIndicator\n});\nexport {\n  RadioGroup,\n  RadioGroupFrame,\n  RadioGroupIndicator,\n  RadioGroupItem\n};\n//# sourceMappingURL=RadioGroup.js.map\n"],"mappings":";;;;AAMA,MAAM,eAAe,OAAO,SAAS,KAAK,QAAQ;CAChD,MAAM,SAAS,cAAc,KAAK,GAAG;CACrC,IAAI,CAAC,QAAQ;CACb,OAAO;EACL,OAAO,OAAO;EACd,QAAQ,OAAO;CACjB;AACF,CAAC;AACD,MAAM,kBAAkB,OAAOA,cAAoB,EACjD,aAAa,aACf,CAAC;AACD,MAAM,iBAAiB,OAAOA,aAAmB,MAAM;CACrD,aAAa;CAGb,aAAa;CACb,YAAY;CACZ,gBAAgB;CAChB,iBAAiB;CACjB,aAAa;CACb,cAAc;CACd,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,sBAAsB,OAAOA,aAAmB,WAAW;CAC/D,aAAa;CACb,OAAO;CACP,QAAQ;CACR,cAAc;CACd,iBAAiB;AACnB,CAAC;AACD,MAAM,aAAa,qBAAqB,iBAAiB;CACvD,MAAM;CACN,WAAW;AACb,CAAC"}