{"version":3,"file":"index.mjs","sources":["../../src/index.tsx"],"sourcesContent":["import * as React from 'react'\n\nexport const VisuallyHidden = ({children}: VisuallyHiddenProps) =>\n  React.cloneElement(\n    children,\n    Object.assign({}, children.props, {\n      style: Object.assign({}, visuallyHidden, children.props.style),\n    })\n  )\n\nexport const visuallyHidden = {\n  border: 0,\n  clip: 'rect(0 0 0 0)',\n  height: 1,\n  width: 1,\n  margin: -1,\n  padding: 0,\n  overflow: 'hidden',\n  position: 'absolute',\n}\n\nexport interface VisuallyHiddenProps {\n  children: React.ReactElement | JSX.Element\n}\n\nif (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production') {\n  VisuallyHidden.displayName = 'VisuallyHidden'\n}\n"],"names":["VisuallyHidden","children","React","Object","assign","props","style","visuallyHidden","border","clip","height","width","margin","padding","overflow","position"],"mappings":"yCAEaA,UAAkBC,SAACA,YAC9BC,EACED,EACAE,OAAOC,OAAO,GAAIH,EAASI,MAAO,CAChCC,MAAOH,OAAOC,OAAO,GAAIG,EAAgBN,EAASI,MAAMC,WAIjDC,EAAiB,CAC5BC,OAAQ,EACRC,KAAM,gBACNC,OAAQ,EACRC,MAAO,EACPC,QAAS,EACTC,QAAS,EACTC,SAAU,SACVC,SAAU"}