{"version":3,"file":"UnstyledButton.cjs","sources":["../../../src/components/Button/UnstyledButton.tsx"],"sourcesContent":["import { type ComponentProps, type PropsWithChildren, forwardRef, useMemo } from 'react'\nimport { tv } from 'tailwind-variants'\n\nconst classNameGenerator = tv({\n  base: [\n    'shr-box-content shr-inline shr-cursor-pointer shr-select-auto shr-appearance-none shr-items-stretch shr-overflow-visible shr-border-none shr-border-current shr-bg-transparent shr-bg-none shr-bg-origin-padding shr-p-0 shr-text-left shr-font-inherit shr-text-inherit shr-text-color-inherit',\n    'focus-visible:shr-focus-indicator',\n  ],\n})\n\nexport const UnstyledButton = forwardRef<\n  HTMLButtonElement,\n  PropsWithChildren<ComponentProps<'button'>>\n>(({ className, type = 'button', ...rest }, ref) => {\n  const actualClassName = useMemo(() => classNameGenerator({ className }), [className])\n\n  return <button {...rest} type={type} ref={ref} className={actualClassName} />\n})\n"],"names":["tv","forwardRef","useMemo","_jsx"],"mappings":";;;;;;AAGA,MAAM,kBAAkB,GAAGA,QAAE,CAAC;AAC5B,IAAA,IAAI,EAAE;QACJ,iSAAiS;QACjS,mCAAmC;AACpC,KAAA;AACF,CAAA,CAAC;MAEW,cAAc,GAAGC,gBAAU,CAGtC,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,KAAI;AACjD,IAAA,MAAM,eAAe,GAAGC,aAAO,CAAC,MAAM,kBAAkB,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;AAErF,IAAA,OAAOC,cAAA,CAAA,QAAA,EAAA,EAAA,GAAY,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,eAAe,GAAI;AAC/E,CAAC;;;;"}