UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.19 kB
var l=(...r)=>r.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((t,s)=>e[s]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");var d="listgroup",c=d;import{jsx as x,jsxs as E}from"react/jsx-runtime";var h="k-listgroup-item",y=[],M={},p={dir:"ltr"},o=r=>{let{text:e,arrowIconName:t,dir:s=p.dir,children:a,href:n,pseudo:m,...k}=r,f=t;return f||(f=s==="rtl"?"chevron-left":"chevron-right"),E("li",{...k,className:l(r.className,h),children:[!n&&!m&&e,n&&x("a",{href:"#",className:"k-link",children:e}),m&&x("span",{className:"k-link",children:e}),a]})};o.states=y;o.options=M;o.className=h;o.defaultOptions=p;o.moduleName=d;o.folderName=c;var u=o;import{jsx as b}from"react/jsx-runtime";import{createElement as N}from"react";var g="k-listgroup",O=[],A={},L={dir:"ltr"},i=r=>{let{children:e,dir:t=L.dir,...s}=r,a=[];return e&&Array.isArray(e)&&e.map((n,m)=>{n.type===u?a.push(N(u,{...n.props,dir:t,key:m})):a.push(n)}),b("ul",{...s,className:l(r.className,g),children:a})};i.states=O;i.options=A;i.className=g;i.defaultOptions=L;i.moduleName=d;i.folderName=c;var j=i;export{g as LISTGROUP_CLASSNAME,i as ListGroup,j as default};