UNPKG

monday-ui-react-core

Version:

Official monday.com UI resources for application development in React.js

3 lines (2 loc) 803 B
import{typeof as e,defineProperty as t}from"../../../../_virtual/_rollupPluginBabelHelpers.js";import r,{forwardRef as s}from"react";import o from"../../Text/Text.js";import l from"./TableCell.module.scss.js";import a from"classnames";import{getTestId as i}from"../../../tests/testIds.js";import{ComponentDefaultTestId as m}from"../../../tests/constants.js";var c=s((function(s,c){var n=s.sticky,d=s.id,p=s.className,f=s["data-testid"],u=s.children,y=1===r.Children.count(u),T=e(r.Children.toArray(u)[0]),j="string"===T||"number"===T;return r.createElement("div",{ref:c,id:d,className:a(l.tableCell,t({},l.sticky,n),p),"data-testid":f||i(m.TABLE_CELL,d),role:"cell"},y&&j?r.createElement(o,{type:o.types.TEXT2,color:o.colors.PRIMARY},u):u)}));export{c as default}; //# sourceMappingURL=TableCell.js.map