import{_ as __rest,a as __assign}from"./tslib.es6-bjGg6Bxl.js";import React__default,{forwardRef}from"react";import{u as useDataGridContext}from"./DataGrid.component-BBT0bs34.js";var cellBaseStyles=function(a,b){return"\n\t\t".concat(a?"jn-whitespace-nowrap":"","\n\t\t").concat("center"===b?"\n\t\t\t\tjn-justify-center\n\t\t\t\tjn-flex\n\t\t\t\tjn-flex-col\t\t\n\t\t\t":"","\n\t\tjn-px-5\n\t\tjn-py-3\n\t\tjn-border-b\n\t\tjn-border-theme-background-lvl-2\n\t\tjn-h-full\n\t")},cellCustomStyles=function(a){var b;return a&&(b={gridColumn:"span ".concat(a," / span ").concat(a)}),b},DataGridCell=forwardRef(function(a,b){var c=a.colSpan,d=a.nowrap,e=a.className,f=void 0===e?"":e,g=a.children,h=void 0===g?null:g,i=__rest(a,["colSpan","nowrap","className","children"]),j=useDataGridContext()||{},k=j.cellVerticalAlignment;return React__default.createElement("div",__assign({className:"juno-datagrid-cell ".concat(cellBaseStyles(void 0!==d&&d,k)," ").concat(f),style:cellCustomStyles(c),role:"gridcell",ref:b},i),h)});DataGridCell.displayName="DataGridCell";export{DataGridCell as D};