@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 862 B
JavaScript
var l=(...n)=>n.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((t,i)=>e[i]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");import{jsx as a}from"react/jsx-runtime";var r="k-file-box-wrapper",d={layout:"horizontal"},o=n=>{let{layout:e=d.layout,scrollingPosition:t,...i}=n;return a("ul",{role:"list","aria-label":"Attached files",...i,className:l(n.className,r,{"k-files-vertical":e==="vertical","k-files-wrap":e==="wrap",[`${r}-scrollable-start`]:e==="horizontal"&&(t==="start"||t==="both"),[`${r}-scrollable-end`]:e==="horizontal"&&(t==="end"||t==="both")}),children:e==="horizontal"?a("div",{className:"k-files-scroll",role:"presentation",children:n.children}):n.children})};o.className=r;o.defaultOptions=d;var b=o;export{r as FILE_BOX_WRAPPER_CLASSNAME,o as FileBoxWrapper,b as default};