{"version":3,"file":"ToggleGroup.js","names":["UiToggleGroup","ToggleGroup"],"sources":["esm/components/ToggleGroup.js"],"sourcesContent":["import {\n  createRefComponent,\n  styled,\n  withStaticProperties\n} from \"@tamagui/core\";\nimport { ToggleGroup as UiToggleGroup } from \"@tamagui/toggle-group\";\nimport { jsx } from \"react/jsx-runtime\";\nconst toggleGroupItemSize = {\n  xs: { width: 26, height: 26, borderRadius: \"sm\" },\n  sm: { width: 34, height: 34, borderRadius: \"md\" },\n  md: { width: 38, height: 38, borderRadius: \"md\" },\n  lg: { width: 42, height: 42, borderRadius: \"md\" },\n  xl: { width: 50, height: 50, borderRadius: \"lg\" }\n};\nconst ToggleGroupItem = styled(UiToggleGroup.Item, {\n  displayName: \"ToggleGroupItem\",\n  // \"on\" swaps the item onto the brand theme rather than recoloring its\n  // background, so the fill, the border and the icon (icons read theme.color,\n  // they do not inherit CSS color) move together. Checkbox and Switch do the same.\n  activeTheme: \"brand\",\n  backgroundColor: \"background hover:background-hover 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  outlineWidth: \"focus-visible:2px\",\n  outlineStyle: \"focus-visible:solid\",\n  zIndex: \"focus-visible:10\",\n  variants: {\n    size: {\n      ...toggleGroupItemSize,\n      true: toggleGroupItemSize.md\n    }\n  },\n  defaultVariants: {\n    size: \"md\"\n  }\n});\nconst ToggleGroupRoot = createRefComponent(function ToggleGroup(props, ref) {\n  return /* @__PURE__ */ jsx(UiToggleGroup, { ...props, ref });\n});\nconst ToggleGroup2 = withStaticProperties(ToggleGroupRoot, {\n  Item: ToggleGroupItem\n});\nexport {\n  ToggleGroup2 as ToggleGroup,\n  ToggleGroupItem\n};\n//# sourceMappingURL=ToggleGroup.js.map\n"],"mappings":";;;;;AAOA,MAAM,sBAAsB;CAC1B,IAAI;EAAE,OAAO;EAAI,QAAQ;EAAI,cAAc;CAAK;CAChD,IAAI;EAAE,OAAO;EAAI,QAAQ;EAAI,cAAc;CAAK;CAChD,IAAI;EAAE,OAAO;EAAI,QAAQ;EAAI,cAAc;CAAK;CAChD,IAAI;EAAE,OAAO;EAAI,QAAQ;EAAI,cAAc;CAAK;CAChD,IAAI;EAAE,OAAO;EAAI,QAAQ;EAAI,cAAc;CAAK;AAClD;AACA,MAAM,kBAAkB,OAAOA,YAAc,MAAM;CACjD,aAAa;CAIb,aAAa;CACb,iBAAiB;CACjB,aAAa;CACb,aAAa;CACb,cAAc;CACd,cAAc;CACd,cAAc;CACd,QAAQ;CACR,UAAU,EACR,MAAM;EACJ,GAAG;EACH,MAAM,oBAAoB;CAC5B,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC;AACD,MAAM,kBAAkB,mBAAmB,SAASC,cAAY,OAAO,KAAK;CAC1E,OAAuB,oBAAID,aAAe;EAAE,GAAG;EAAO;CAAI,CAAC;AAC7D,CAAC;AACD,MAAM,eAAe,qBAAqB,iBAAiB,EACzD,MAAM,gBACR,CAAC"}