UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.26 kB
var o=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?o(...e):typeof e=="object"?Object.keys(e).map((l,s)=>e[s]||e[l]&&l||null).filter(l=>l!==null).join(" "):e).filter(e=>!!e).join(" ");import{jsx as x,jsxs as I}from"react/jsx-runtime";var f="k-listgroup-item",L=[],v={},h={dir:"ltr"},i=t=>{let{text:e,arrowIconName:l,dir:s=h.dir,children:a,href:r,pseudo:d,...y}=t,u=l;return u||(u=s==="rtl"?"chevron-left":"chevron-right"),I("li",{...y,className:o(t.className,f),children:[!r&&!d&&e,r&&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=h;var c=i;import{jsx as b}from"react/jsx-runtime";import{createElement as M}from"react";var g="k-listgroup",p=[],G={},k={dir:"ltr"},n=t=>{let{children:e,dir:l=k.dir,...s}=t,a=[];return e&&Array.isArray(e)&&e.map((r,d)=>{r.type===c?a.push(M(c,{...r.props,dir:l,key:d})):a.push(r)}),b("ul",{...s,className:o(t.className,g),children:a})};n.states=p;n.options=G;n.className=g;n.defaultOptions=k;import{jsx as m}from"react/jsx-runtime";var F=t=>m(n,{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};