UNPKG

@rws-aoa/react-library

Version:

RWS AOA Design System

34 lines (33 loc) 888 B
import { jsx as o } from "react/jsx-runtime"; import { FormControlLabel as i, switchClasses as r, typographyClasses as s, Switch as e } from "@mui/material"; import { FontNormalSxProps as p } from "../../../../_constants.js"; function d({ label: t, ...a }) { return /* @__PURE__ */ o(i, { control: /* @__PURE__ */ o(e, { ...a }), label: t, sx: { [`.${s.root}`]: p, [`.${r.root}`]: { color: "var(--color-primary)", width: "64px", ":focus": { outline: "2px dashed var(--color-text)", outlineOffset: "-9px", borderRadius: 0 }, ":disabled": { color: "var(--color-disabled)" }, [`.${r.track}`]: { height: "22px", marginTop: "-4px", marginLeft: "-3px", borderRadius: "11px" } } } }); } export { d as AoaSwitchButton }; //# sourceMappingURL=SwitchButton.js.map