UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

26 lines (25 loc) 781 B
function r(t) { return `--col-${t}-size`; } function s(t) { return `--header-${t}-size`; } function o(t) { const e = t.getIsPinned(), i = e === "left" && t.getIsLastColumn("left"), n = e === "right" && t.getIsFirstColumn("right"); return { background: e ? "inherit" : void 0, boxShadow: i ? "-4px 0 4px -4px gray inset" : n ? "4px 0 4px -4px gray inset" : void 0, left: e === "left" ? `${t.getStart("left")}px` : void 0, right: e === "right" ? `${t.getAfter("right")}px` : void 0, opacity: e ? 0.95 : 1, position: e ? "sticky" : "relative", width: t.getSize(), zIndex: e ? 1 : 0 }; } export { r as getColumnSizeCssVariable, o as getCommonPinningStyles, s as getHeaderSizeCssVariable }; //# sourceMappingURL=TanStackTableUtils.js.map