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