import { Box } from "@mui/material"; import { toRem } from "./typography"; export default function CheckboxIndeterminateIcon() { return ( theme.transitions.create(["background-color", "border-color"], { easing: theme.transitions.easing.easeIn, duration: theme.transitions.duration.shortest, delay: theme.transitions.duration.shortest, }), "& svg": { position: "absolute", width: toRem(18), height: toRem(18), top: -1, left: -1, color: "inherit", }, "& .tick": { stroke: (theme) => theme.palette.primary.contrastText, strokeDasharray: 12, strokeDashoffset: 12, transition: (theme) => theme.transitions.create(["stroke-dashoffset"], { easing: theme.transitions.easing.easeIn, duration: theme.transitions.duration.shortest, }), boxShadow: 1, }, ".Mui-checked &, [aria-selected='true'] &": { backgroundColor: "currentColor", borderColor: "currentColor", transition: (theme) => theme.transitions.create(["background-color", "border-color"], { easing: theme.transitions.easing.easeOut, duration: theme.transitions.duration.shortest, }), "& .tick": { strokeDashoffset: 0, transition: (theme) => theme.transitions.create(["stroke-dashoffset"], { easing: theme.transitions.easing.easeOut, duration: theme.transitions.duration.shortest, delay: theme.transitions.duration.shortest, }), }, }, }} className="checkbox-indeterminate-icon" > ); }