{"ast":null,"code":"'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { checkboxPropDefs } from './checkbox.props';\nimport { extractMarginProps, withMarginProps, withBreakpoints } from '../helpers';\nimport { ThickCheckIcon } from '../icons';\nconst Checkbox = React.forwardRef((props, forwardedRef) => {\n  const {\n    rest: marginRest,\n    ...marginProps\n  } = extractMarginProps(props);\n  const {\n    className,\n    style,\n    size = checkboxPropDefs.size.default,\n    variant = checkboxPropDefs.variant.default,\n    color = checkboxPropDefs.color.default,\n    highContrast = checkboxPropDefs.highContrast.default,\n    ...checkboxProps\n  } = marginRest;\n  return React.createElement(\"span\", {\n    className: classNames('rt-CheckboxRoot', className, withBreakpoints(size, 'rt-r-size'), withMarginProps(marginProps)),\n    style: style\n  }, React.createElement(CheckboxPrimitive.Root, {\n    \"data-accent-color\": color,\n    ...checkboxProps,\n    ref: forwardedRef,\n    className: classNames('rt-reset-button', 'rt-CheckboxButton', `rt-variant-${variant}`, {\n      'rt-high-contrast': highContrast\n    })\n  }, React.createElement(CheckboxPrimitive.Indicator, {\n    className: \"rt-CheckboxIndicator\"\n  }, React.createElement(ThickCheckIcon, null))));\n});\nCheckbox.displayName = 'Checkbox';\nexport { Checkbox };","map":{"version":3,"names":["React","classNames","CheckboxPrimitive","checkboxPropDefs","extractMarginProps","withMarginProps","withBreakpoints","ThickCheckIcon","Checkbox","forwardRef","props","forwardedRef","rest","marginRest","marginProps","className","style","size","default","variant","color","highContrast","checkboxProps","createElement","Root","ref","Indicator","displayName"],"sources":["../../../src/components/checkbox.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAY;;AAEZ,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,iBAAiB,MAAM,0BAA0B;AAC7D,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,kBAAkB,EAAEC,eAAe,EAAEC,eAA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