import { _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsx } from 'react/jsx-runtime';
import { styled } from '@mui/material/styles';
import Button from './Button.js';
import 'react';
import '../clsx.m-6243b874.js';
import '@mui/material/Button';
import '../theme/colors.js';

var CardRoot = styled(Button)(function (_a) {
    var _b;
    var $active = _a.$active, theme = _a.theme;
    var activeBoxShadow = " \n    " + theme.boxShadow.md + ", \n    inset 0 0 0 " + theme.borders.size.primary + "px " + theme.palette.primary.main + "\n  ";
    var activeBoxShadowMobile = " \n    " + theme.boxShadow.md + ", \n    inset 0 0 0 " + theme.borders.size.secondary + "px " + theme.palette.primary.main + "\n  ";
    return {
        "&.MuiButton-outlined": (_b = {
                color: theme.palette.text.primary,
                padding: theme.spacing(2, 2.5),
                borderRadius: theme.borders.radius.sm,
                boxShadow: $active ? activeBoxShadow : undefined,
                transition: theme.transitions.create(["box-shadow"]),
                "&:hover, &:focus, &:active": {
                    backgroundColor: "transparent"
                }
            },
            _b[theme.breakpoints.down("sm")] = {
                padding: theme.spacing(1.25, 1.5),
                borderRadius: theme.borders.radius.xs1,
                boxShadow: $active ? activeBoxShadowMobile : "none",
                backgroundColor: $active ? theme.palette.gray.white : theme.palette.gray[100],
                "&:hover, &:focus, &:active": {
                    boxShadow: $active ? activeBoxShadowMobile : "undefined",
                    backgroundColor: $active ? theme.palette.gray.white : theme.palette.gray[100]
                }
            },
            _b)
    };
});
var CardButton = function (_a) {
    var active = _a.active, children = _a.children, buttonProps = _a.buttonProps;
    return (jsx(CardRoot, __assign({ align: "left" }, buttonProps, { variant: "outlined", "$active": active }, { children: children }), void 0));
};

export { CardButton as default };
