UNPKG

opt-table

Version:

A Responsive and Customizable Rich Table

30 lines 1.36 kB
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; import Tooltip, { tooltipClasses } from "@mui/material/Tooltip"; import { styled } from "@mui/material/styles"; import React from "react"; export const BootstrapTooltip = styled((_a) => { var { className } = _a, props = __rest(_a, ["className"]); return (React.createElement(Tooltip, Object.assign({}, props, { arrow: true, classes: { popper: className } }))); })(({ theme }) => ({ [`& .${tooltipClasses.arrow}`]: { color: theme.palette.mode === "light" ? "#000" : "#fff", }, [`& .${tooltipClasses.tooltip}`]: { padding: "16px 8px", backgroundColor: theme.palette.mode === "light" ? "#000" : "#fff", color: theme.palette.mode === "light" ? "#fff" : "#000", fontFamily: "inherit", fontSize: theme.typography.pxToRem(14), }, })); //# sourceMappingURL=error_tooltip.js.map