@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
22 lines • 1.04 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TableCell = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = __importDefault(require("react"));
const stylesName_1 = require("../../constants/stylesName/stylesName");
const useStylesV2_1 = require("../../hooks/useStyles/useStylesV2");
const tableCellStandAlone_1 = require("./tableCellStandAlone");
const TableCellComponent = ({ variant, ctv, ...props }, ref) => {
const styles = (0, useStylesV2_1.useStylesV2)({
styleName: stylesName_1.STYLES_NAME.TABLE_CELL,
variantName: variant,
customTokens: ctv,
isOptional: true,
});
return (0, jsx_runtime_1.jsx)(tableCellStandAlone_1.TableCellStandAlone, { ref: ref, styles: styles, ...props });
};
exports.TableCell = react_1.default.forwardRef(TableCellComponent);
//# sourceMappingURL=tableCell.js.map