UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

14 lines 1.51 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TableCellStandAlone = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = __importDefault(require("react")); const tableCell_styled_1 = require("./tableCell.styled"); const TableCellStandAloneComponent = ({ dataTestId = 'table-cell', children, styles, id, scope, th, colSpan, rowSpan, height, width, minWidth, maxWidth, textAlign, top, left, right, bottom, sticky, hidden, component, onClick, onMouseEnter, onMouseLeave, ...props }, ref) => { return ((0, jsx_runtime_1.jsx)(tableCell_styled_1.TDStyled, { ref: ref, "$bottom": bottom, "$height": height, "$left": left, "$maxWidth": maxWidth, "$minWidth": minWidth, "$right": right, "$styles": styles, "$textAlign": textAlign, "$top": top, "$width": width, "aria-label": props['aria-label'], "aria-labelledby": props['aria-labelledby'], as: component ? component : th ? 'th' : 'td', colSpan: colSpan, "data-hidden": hidden, "data-sticky": sticky, "data-testid": dataTestId, id: id, rowSpan: rowSpan, scope: scope, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: hidden ? (0, jsx_runtime_1.jsx)("div", { children: children }) : children })); }; exports.TableCellStandAlone = react_1.default.forwardRef(TableCellStandAloneComponent); //# sourceMappingURL=tableCellStandAlone.js.map