@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 5.99 kB
JavaScript
var a=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?a(...e):typeof e=="object"?Object.keys(e).map((s,T)=>e[T]||e[s]&&s||null).filter(s=>s!==null).join(" "):e).filter(e=>!!e).join(" ");var h=(t,e)=>a({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${e.fillMode}-${e.themeColor}`]:e.fillMode&&e.themeColor},{[`${t}-${e.themeColor}`]:e.themeColor&&e.fillMode===void 0},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full"}),y=(t,e)=>a({"k-valid":e.valid,"k-invalid":e.invalid,"k-hover":e.hover,"k-focus":e.focus,"k-checked":e.checked,"k-active":e.active,"k-selected":e.selected,"k-disabled":e.disabled,"k-indeterminate":e.indeterminate&&!e.checked,"k-loading":e.loading,"k-empty":e.empty,"k-readonly":e.readonly});var i={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"};var b={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly"};import{jsx as C}from"react/jsx-runtime";var S="k-data-table",G=[],O={size:[i.small,i.medium,i.large]},z={size:i.medium},n=t=>{let{size:e=z.size,...s}=t;return C("div",{...s,className:a(t.className,S,h("k-table",{size:e})),children:t.children})};n.states=G;n.options=O;n.className=S;n.defaultOptions=z;import{jsx as D}from"react/jsx-runtime";var B="k-table-header",f=t=>D("div",{className:a(t.className,B),children:D("div",{className:"k-table-header-wrap",children:D(c,{children:t.children})})});import{jsx as $}from"react/jsx-runtime";var P="k-table-body",N=t=>$("div",{className:a(t.className,P,"k-table-scroller"),children:t.children});import{jsx as F}from"react/jsx-runtime";var I="k-table-footer",k=t=>F("div",{className:a(t.className,I),children:t.children});import{jsx as W}from"react/jsx-runtime";var M="k-table",_=[],J={size:[i.small,i.medium,i.large]},q={},c=t=>{let{size:e,...s}=t;return W("table",{...s,className:a(t.className,M,h(M,{size:e})),children:t.children})};c.states=_;c.options=J;c.className=M;c.defaultOptions=q;import{jsx as X}from"react/jsx-runtime";var H="k-table-list",U=[],V={size:[i.small,i.medium,i.large]},Q={},x=t=>{let{size:e,virtualization:s,...T}=t;return X("ul",{...T,className:a(t.className,"k-table",H,h(H,{size:e}),{"k-virtual-table":s}),children:t.children})};x.states=U;x.options=V;x.className=H;x.defaultOptions=Q;import{jsx as Z}from"react/jsx-runtime";var Y="k-table-thead",u=t=>Z("thead",{className:a(t.className,Y),children:t.children});import{jsx as Qe}from"react/jsx-runtime";import{jsx as je}from"react/jsx-runtime";import{jsx as ee}from"react/jsx-runtime";var v="k-table-row",j=[b.hover,b.focus,b.selected,b.disabled],m=t=>{let{hover:e,focus:s,selected:T,disabled:p,alt:w,...R}=t;return ee("tr",{...R,className:a(t.className,v,{"k-table-alt-row":w},y(v,{hover:e,focus:s,disabled:p,selected:T})),children:t.children})};m.states=j;m.className=v;import{jsx as ae}from"react/jsx-runtime";var g="k-table-row",te=[b.hover,b.focus,b.selected,b.disabled],r=t=>{let{hover:e,focus:s,selected:T,disabled:p,alt:w,...R}=t;return ae("li",{...R,className:a(t.className,g,{"k-table-alt-row":w},y(g,{hover:e,focus:s,disabled:p,selected:T})),children:t.children})};r.states=te;r.className=g;import{jsx as oe}from"react/jsx-runtime";var le="k-table-th",L=t=>{let{text:e,colspan:s,rowspan:T,...p}=t,w=e||t.children;return oe("th",{colSpan:s,rowSpan:T,...p,className:a(t.className,le),children:w})};import{jsx as Te}from"react/jsx-runtime";var se="k-table-th",A=t=>{let{text:e,...s}=t,T=e||t.children;return Te("span",{...s,className:a(t.className,se),children:T})};import{jsx as Lt}from"react/jsx-runtime";import{jsx as de}from"react/jsx-runtime";var ie="k-table-td",o=t=>{let{text:e,...s}=t,T=e||t.children;return de("span",{...s,className:a(t.className,ie),children:T})};import{jsx as Nt}from"react/jsx-runtime";import{jsx as re}from"react/jsx-runtime";var be="k-table-group-sticky-header",E=t=>re("div",{className:a(t.className,be),children:t.children});import{jsx as gt}from"react/jsx-runtime";import{jsx as ce}from"react/jsx-runtime";var ne="k-table-group-row",K=t=>ce("li",{className:a(t.className,ne),children:t.children});import{jsx as Ot,jsxs as Ct}from"react/jsx-runtime";import{jsx as It,jsxs as Ft}from"react/jsx-runtime";import{Fragment as Vt,jsx as Wt,jsxs as Ut}from"react/jsx-runtime";import{jsx as l,jsxs as d}from"react/jsx-runtime";var fa=t=>d(n,{...t,children:[d(f,{children:[d("colgroup",{children:[l("col",{style:{width:"50px"}}),l("col",{style:{width:"160px"}}),l("col",{})]}),l(u,{children:d(m,{children:[l(L,{text:"ID"}),l(L,{text:"Name"}),l(L,{text:"Job Title"})]})})]}),l(E,{children:l(A,{text:"Initial group"})}),l(N,{children:d(x,{children:[d(r,{children:[l(o,{text:"1",style:{width:"50px"}}),l(o,{text:"Data 1.2",style:{width:"160px"}}),l(o,{text:"Data 1.3"})]}),d(r,{alt:!0,children:[l(o,{text:"2",style:{width:"50px"}}),l(o,{text:"Data 2.2 (alt)",style:{width:"160px"}}),l(o,{text:"Data 2.3"})]}),d(r,{children:[l(o,{text:"3",style:{width:"50px"}}),l(o,{text:"Data 3.2",style:{width:"160px"}}),l(o,{text:"Data 3.3"})]}),l(K,{children:l(A,{text:"Group"})}),d(r,{children:[l(o,{text:"4",style:{width:"50px"}}),l(o,{text:"Data 4.2",style:{width:"160px"}}),l(o,{text:"Data 4.3"})]}),d(r,{alt:!0,children:[l(o,{text:"5",style:{width:"50px"}}),l(o,{text:"Data 5.2 (alt)",style:{width:"160px"}}),l(o,{text:"Data 5.3"})]}),d(r,{children:[l(o,{text:"6",style:{width:"50px"}}),l(o,{text:"Data 6.2",style:{width:"160px"}}),l(o,{text:"Data 6.3"})]})]})}),l(k,{children:l(o,{text:"30 records in total"})})]});export{fa as DataTableList};