UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 674 B
var i=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?i(...e):typeof e=="object"?Object.keys(e).map((l,a)=>e[a]||e[l]&&l||null).filter(l=>l!==null).join(" "):e).filter(e=>!!e).join(" ");import{jsx as r}from"react/jsx-runtime";var o="k-scheduler-cell",k=[],f={},h={},n=t=>{let{cellType:e,allDay:l,text:a,colspan:s,rowspan:c,as:m="div",...u}=t,d=a||t.children;return r(m,{...u,colSpan:s,rowSpan:c,className:i(o,t.className,{"k-scheduler-times-all-day":l},e?.map(x=>({[`k-${x}-cell`]:!0}))),children:!l&&a?r("span",{className:"k-link k-nav-day",children:d}):d})};n.states=k;n.options=f;n.defaultOptions=h;n.className=o;var w=n;export{n as SchedulerCell,w as default};