{"version":3,"file":"IconButton.cjs","sources":["../../../../src/components/icon-button/IconButton.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport type { IconButtonProps } from \"./types.js\";\n\n/**\n * @deprecated bruk heller {@link Button} med ghost-varianten\n */\nexport const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(\n    (props, ref) => {\n        const { className, children, ...rest } = props;\n        return (\n            <button\n                ref={ref}\n                type=\"button\"\n                className={clsx(\"jkl-icon-button\", className)}\n                data-testid=\"jkl-icon-button\"\n                {...rest}\n            >\n                {children}\n            </button>\n        );\n    },\n);\n\nIconButton.displayName = \"IconButton\";\n"],"names":["IconButton","forwardRef","props","ref","className","children","rest","jsx","type","clsx","displayName"],"mappings":"6JAOaA,mBAAaC,WACtB,CAACC,EAAOC,KACJ,MAAQC,UAAAA,EAAWC,SAAAA,KAAaC,GAASJ,EACzC,OACIK,EAAAA,IAAC,SAAA,CACGJ,IAAAA,EACAK,KAAK,SACLJ,UAAWK,EAAAA,KAAK,kBAAmBL,GACnC,cAAY,qBACRE,EAEHD,SAAAA,MAMjBL,EAAWU,YAAc"}