@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=(...i)=>i.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={},h={dir:"ltr"},a=i=>{let{text:e,arrowIconName:t,dir:o=h.dir,children:n,href:l,pseudo:d,...k}=i,m=t;return m||(m=o==="rtl"?"chevron-left":"chevron-right"),L("li",{...k,className:r(i.className,x),children:[!l&&!d&&e,l&&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=h;var c=a;import{jsx as $}from"react/jsx-runtime";import{createElement as S}from"react";var f="k-listgroup",M=[],b={},g={dir:"ltr"},s=i=>{let{children:e,dir:t=g.dir,...o}=i,n=[];return e&&Array.isArray(e)&&e.map((l,d)=>{l.type===c?n.push(S(c,{...l.props,dir:t,key:d})):n.push(l)}),$("ul",{...o,className:r(i.className,f),children:n})};s.states=M;s.options=b;s.className=f;s.defaultOptions=g;var P=s;export{f as LISTGROUP_CLASSNAME,s as ListGroup,P as default};