@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 1.11 kB
JavaScript
var r=(...l)=>l.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?r(...e):typeof e=="object"?Object.keys(e).map((t,o)=>e[o]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");import{jsx as u,jsxs as L}from"react/jsx-runtime";var x="k-listgroup-item",y=[],v={},f={dir:"ltr"},a=l=>{let{text:e,arrowIconName:t,dir:o=f.dir,children:n,href:i,pseudo:d,...g}=l,m=t;return m||(m=o==="rtl"?"chevron-left":"chevron-right"),L("li",{...g,className:r(l.className,x),children:[!i&&!d&&e,i&&u("a",{href:"#",className:"k-link",children:e}),d&&u("span",{className:"k-link",children:e}),n]})};a.states=y;a.options=v;a.className=x;a.defaultOptions=f;var c=a;import{jsx as $}from"react/jsx-runtime";import{createElement as S}from"react";var h="k-listgroup",M=[],b={},k={dir:"ltr"},s=l=>{let{children:e,dir:t=k.dir,...o}=l,n=[];return e&&Array.isArray(e)&&e.map((i,d)=>{i.type===c?n.push(S(c,{...i.props,dir:t,key:d})):n.push(i)}),$("ul",{...o,className:r(l.className,h),children:n})};s.states=M;s.options=b;s.className=h;s.defaultOptions=k;var J=s;export{h as LISTGROUP_CLASSNAME,s as ListGroup,J as default};