UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 23.8 kB
var o=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?o(...t):typeof t=="object"?Object.keys(t).map((a,s)=>t[s]||t[a]&&a||null).filter(a=>a!==null).join(" "):t).filter(t=>!!t).join(" ");var x=(e,t)=>o({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),w=(e,t)=>o({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var n={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={small:"small",medium:"medium",large:"large",full:"full"},b={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},c={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},l={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",highlighted:"highlighted"};import{jsx as Xt}from"react/jsx-runtime";var be="k-input",_t=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Jt={size:[n.small,n.medium,n.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[b.solid,b.flat,b.outline]},xe={size:n.medium,rounded:n.medium,fillMode:b.solid},N=e=>{let{hover:t,focus:a,disabled:s,invalid:i,valid:r,loading:d,readonly:T,size:u=xe.size,rounded:h=xe.rounded,fillMode:L=xe.fillMode,...v}=e;return Xt("span",{...v,className:o(e.className,be,x(be,{size:u,rounded:h,fillMode:L}),w(be,{hover:t,focus:a,disabled:s,invalid:i,valid:r,loading:d,readonly:T}))})};N.states=_t;N.options=Jt;N.className=be;N.defaultOptions=xe;import{jsx as Wt}from"react/jsx-runtime";var fe="k-picker",qt=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Ut={size:[n.small,n.medium,n.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[b.solid,b.flat,b.outline]},he={size:n.medium,rounded:m.medium,fillMode:b.solid},Ne=e=>{let{hover:t,focus:a,disabled:s,invalid:i,valid:r,loading:d,readonly:T,size:u=he.size,rounded:h=he.rounded,fillMode:L=he.fillMode,...v}=e;return Wt("span",{...v,className:o(e.className,fe,x(fe,{size:u,rounded:h,fillMode:L}),w(fe,{hover:t,focus:a,disabled:s,invalid:i,valid:r,loading:d,readonly:T})),children:e.children})};Ne.states=qt;Ne.options=Ut;Ne.className=fe;Ne.defaultOptions=he;import{Fragment as jt,jsx as it}from"react/jsx-runtime";var He="k-icon k-font-icon",Qt=[],Yt={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Zt={},ae=e=>{let{size:t,themeColor:a,icon:s,rotate:i,flip:r,...d}=e;return s?it("span",{...d,className:o(e.className,He,x(He,{size:t}),{[`k-i-${s}`]:s,[`k-color-${a}`]:a,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"})}):it(jt,{})};ae.states=Qt;ae.options=Yt;ae.className=He;ae.defaultOptions=Zt;var rt=ae;import{Fragment as oo,jsx as ye}from"react/jsx-runtime";var De="k-icon k-svg-icon",eo=[],to={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},dt={viewBox:"0 0 24 24"},le=e=>{let{size:t,themeColor:a,rotate:s,flip:i,viewBox:r=dt.viewBox,icon:d,...T}=e;if(!d)return ye(oo,{});d==="none"&&{...T,className:o(e.className,De,"k-none")};let u=typeof d=="object"&&d.name&&d.name;return ye("span",{...T,className:o(e.className,De,x("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${a}`]:a,[`k-rotate-${s}`]:s,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),children:ye("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:r,dangerouslySetInnerHTML:typeof d=="object"?{__html:d.content}:void 0,children:d?void 0:e.children})})};le.states=eo;le.options=to;le.className=De;le.defaultOptions=dt;var Ee=le;import*as ct from"@progress/kendo-svg-icons";import{Fragment as pt,jsx as se}from"react/jsx-runtime";var ao=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),lo=[],so={size:[n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Ce={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{size:t,themeColor:a,icon:s,type:i=Ce.type,rotate:r,flip:d,viewBox:T=Ce.viewBox,...u}=e;if(!s)return se(pt,{});if(i==="svg"){if(s==="none")return se(Ee,{...u,icon:s,size:t});let h=ao(`${s}-icon`);return ct[h]?se(Ee,{...u,icon:ct[h],size:t,themeColor:a,rotate:r,flip:d,viewBox:T}):se(pt,{})}return se(rt,{...u,icon:s,size:t,themeColor:a,rotate:r,flip:d})};y.states=lo;y.options=so;y.defaultOptions=Ce;import{Fragment as ro,jsx as Oe}from"react/jsx-runtime";var mt="k-clear-value",no=[l.disabled,l.loading,l.readonly],io={},H=e=>{let{disabled:t,loading:a,readonly:s,value:i}=e;return t||s||a||!i?Oe(ro,{}):Oe("span",{className:o(e.className,mt),children:Oe(y,{icon:"x"})})};H.states=no;H.options=io;H.className=mt;import{jsx as mo}from"react/jsx-runtime";var ze="k-input-inner",co=[],po={},Le={type:"text",autocomplete:"off",value:"",placeholder:""},D=e=>{let{value:t=Le.value,type:a=Le.type,placeholder:s=Le.placeholder,autocomplete:i=Le.autocomplete,...r}=e;return mo("input",{...r,type:a,className:o(e.className,ze,x(ze,e)),placeholder:s,autoComplete:i,defaultValue:t})};D.states=co;D.options=po;D.className=ze;import{jsx as Tt,jsxs as bo}from"react/jsx-runtime";var Pe="k-input-inner",To=[],uo={},Ke=e=>{let{value:t,placeholder:a,showValue:s,valueIcon:i,valueIconName:r,...d}=e;return bo("span",{...d,className:o(e.className,Pe,x(Pe,e)),children:[i,!i&&r&&Tt(y,{className:"k-input-value-icon",icon:r}),s&&!t&&a,s&&t&&Tt("span",{className:"k-input-value-text",children:t})]})};Ke.states=To;Ke.options=uo;Ke.className=Pe;import{jsx as ho}from"react/jsx-runtime";var Be="k-input-inner",xo=[],fo={},ut={value:"",placeholder:""},Ge=e=>{let{value:t=ut.value,placeholder:a=ut.placeholder,rows:s,...i}=e;return ho("textarea",{...i,className:o(e.className,Be,x(Be,e)),placeholder:a,rows:s,defaultValue:t})};Ge.states=xo;Ge.options=fo;Ge.className=Be;import{Fragment as yo,jsx as bt}from"react/jsx-runtime";var xt="k-input-loading-icon",No=[l.disabled,l.loading],z=e=>{let{disabled:t,loading:a}=e;return t||!a?bt(yo,{}):bt("span",{className:o(e.className,xt,"k-icon k-i-loading")})};z.states=No;z.className=xt;import{Fragment as vo,jsx as ft}from"react/jsx-runtime";var ht="k-input-validation-icon",Lo=[l.valid,l.invalid,l.disabled,l.loading],So={},E=e=>{let{valid:t,invalid:a,disabled:s,loading:i}=e,r=a?"warning-circle":"check-circle";return s||i||!!!(t||a)?ft(vo,{}):ft(y,{className:o(ht),icon:r})};E.states=Lo;E.options=So;E.className=ht;import{Fragment as Mo,jsx as Nt}from"react/jsx-runtime";var wo="k-input-prefix",go={direction:"horizontal"},Se=e=>{let{direction:t=go.direction,...a}=e;return e.children?Nt("span",{...a,className:o(wo,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Nt(Mo,{})};import{Fragment as ko,jsx as yt}from"react/jsx-runtime";var Io="k-input-suffix",Ao={direction:"horizontal"},ve=e=>{let{direction:t=Ao.direction,...a}=e;return e.children?yt("span",{...a,className:o(Io,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):yt(ko,{})};import{jsx as Wl}from"react/jsx-runtime";import{jsx as jl}from"react/jsx-runtime";import{jsx as Ho}from"react/jsx-runtime";var Lt="k-input-separator",Ro={direction:"vertical"},Q=e=>{let{direction:t=Ro.direction,...a}=e;return Ho("span",{...a,className:o(Lt,e.className,{[`${Lt}-${t}`]:t})})};import{Fragment as Co,jsx as ne,jsxs as St}from"react/jsx-runtime";var we="k-button",Do=[l.hover,l.focus,l.active,l.selected,l.disabled],Eo={size:[n.small,n.medium,n.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[b.solid,b.flat,b.outline,b.clear,b.link],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark,c.inverse]},X={size:n.medium,rounded:m.medium,fillMode:b.solid,themeColor:c.base,showArrow:!1,arrowIconName:"caret-alt-down"},R=e=>{let{size:t=X.size,rounded:a=X.rounded,fillMode:s=X.fillMode,themeColor:i=X.themeColor,showArrow:r=X.showArrow,arrowIconName:d=X.arrowIconName,hover:T,focus:u,active:h,selected:L,disabled:v,icon:A,text:k,iconClassName:g,...M}=e,W=A!==void 0,O=e.children!==void 0;return St("button",{...M,className:o(e.className,we,x(we,{size:t,rounded:a,fillMode:s,themeColor:i}),w(we,{hover:T,focus:u,active:h,disabled:v,selected:L}),{"k-icon-button":!k&&!O&&W}),children:[A&&ne(y,{className:o(g,"k-button-icon"),icon:A}),k?St(Co,{children:[k&&ne("span",{className:"k-button-text",children:k}),e.children]}):e.children&&ne("span",{className:"k-button-text",children:e.children}),r&&ne("span",{className:"k-menu-button-arrow k-button-arrow",children:ne(y,{icon:d})})]})};R.states=Do;R.options=Eo;R.className=we;R.defaultOptions=X;import{jsx as ws}from"react/jsx-runtime";import{jsx as As}from"react/jsx-runtime";import{jsx as Ds}from"react/jsx-runtime";import{jsx as vt}from"react/jsx-runtime";var wt="k-animation-container",Oo=[],zo={},gt={positionMode:"absolute"},P=e=>{let{positionMode:t=gt.positionMode,animationStyle:a,offset:s,...i}=e;return vt("div",{...i,style:{...s,...e.style},className:o(e.className,wt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:vt("div",{className:"k-child-animation-container",style:a,children:e.children})})};P.states=Oo;P.options=zo;P.className=wt;P.defaultOptions=gt;import{jsx as Mt}from"react/jsx-runtime";var It="k-popup",Po=[],Ko={},At={positionMode:"absolute"},Y=e=>{let{offset:t,positionMode:a=At.positionMode,animationStyle:s,...i}=e;return Mt(P,{positionMode:a,offset:t,animationStyle:s,children:Mt("div",{...i,className:o(e.className,It),children:e.children})})};Y.states=Po;Y.options=Ko;Y.className=It;Y.defaultOptions=At;import{jsx as Vo}from"react/jsx-runtime";var ge="k-actions",Bo=[],Go={},Ve={alignment:"start",orientation:"horizontal"},Z=e=>{let{alignment:t=Ve.alignment,orientation:a=Ve.orientation,...s}=e;return Vo("div",{...s,className:o(ge,{[`${ge}-${t}`]:t,[`${ge}-${a}`]:a},e.className),children:e.children})};Z.states=Bo;Z.options=Go;Z.className=ge;Z.defaultOptions=Ve;import{jsx as Fo}from"react/jsx-runtime";var $o="k-actionsheet-footer",kt={alignment:"stretched",orientation:"horizontal"},$e=e=>{let{alignment:t=kt.alignment,orientation:a=kt.orientation,template:s,as:i=s?"div":Z,...r}=e;return Fo(i,{...r,...!s&&{alignment:t,orientation:a},className:o(e.className,$o),children:e.children})};import{jsx as ie,jsxs as Xo}from"react/jsx-runtime";var Rt="k-searchbox",_o=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],Jo={size:[n.small,n.medium,n.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[b.solid,b.flat,b.outline]},Fe={showIcon:!0,icon:"search",size:N.defaultOptions.size,rounded:N.defaultOptions.rounded,fillMode:N.defaultOptions.fillMode},j=e=>{let{value:t,placeholder:a,size:s,rounded:i,fillMode:r,hover:d,focus:T,valid:u,invalid:h,required:L,loading:v,disabled:A,showIcon:k=Fe.showIcon,icon:g=Fe.icon,...M}=e;return Xo(N,{...M,size:s,rounded:i,fillMode:r,hover:d,focus:T,valid:u,invalid:h,required:L,loading:v,disabled:A,className:o(e.className,Rt),children:[k&&ie(y,{className:"k-input-icon",icon:g}),ie(D,{placeholder:a,value:t}),ie(z,{...e}),ie(E,{...e}),ie(H,{...e})]})};j.states=_o;j.options=Jo;j.className=Rt;j.defaultOptions=Fe;import{jsx as un}from"react/jsx-runtime";import{Fragment as Ht,jsx as K,jsxs as _e}from"react/jsx-runtime";var Dt="k-textbox",qo=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Uo={size:[n.small,n.medium,n.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[b.solid,b.flat,b.outline]},q={showClearButton:!0,showValidationIcon:!0,size:N.defaultOptions.size,rounded:N.defaultOptions.rounded,fillMode:N.defaultOptions.fillMode,separators:!0},ee=e=>{let{size:t=q.size,rounded:a=q.rounded,fillMode:s=q.fillMode,separators:i=q.separators,showClearButton:r=q.showClearButton,showValidationIcon:d=q.showValidationIcon,prefix:T,suffix:u,type:h,value:L,placeholder:v,hover:A,focus:k,valid:g,invalid:M,required:W,loading:O,disabled:J,readonly:ue,...Re}=e;return _e(N,{...Re,size:t,rounded:a,fillMode:s,hover:A,focus:k,valid:g,invalid:M,required:W,loading:O,disabled:J,readonly:ue,className:o(e.className,Dt),children:[T&&_e(Ht,{children:[K(Se,{children:T}),i&&K(Q,{})]}),K(D,{placeholder:v,value:L,type:h}),d&&K(E,{valid:g,invalid:M,loading:O,disabled:J}),K(z,{loading:O,disabled:J}),r&&K(H,{loading:O,disabled:J,readonly:ue,value:L}),u&&_e(Ht,{children:[i&&K(Q,{}),K(ve,{children:u})]})]})};ee.states=qo;ee.options=Uo;ee.className=Dt;ee.defaultOptions=q;import{jsx as gn}from"react/jsx-runtime";import{Fragment as Hn,jsx as Rn}from"react/jsx-runtime";import{Fragment as Kn,jsx as Pn}from"react/jsx-runtime";import{jsx as B,jsxs as Je}from"react/jsx-runtime";var Ct="k-actionsheet-titlebar",Wo={},G=e=>{let{title:t,subtitle:a,actionsStart:s,actionsEnd:i,filter:r,input:d,inputValue:T,inputPlaceholder:u,adaptive:h,children:L,...v}=e;return Je("div",{...v,className:o(e.className,Ct),children:[Je("div",{className:"k-actionsheet-titlebar-group",children:[s&&B("div",{className:"k-actionsheet-actions",children:s}),!L&&Je("div",{className:"k-actionsheet-title",children:[t&&B("div",{className:"k-text-center",children:t}),a&&B("div",{className:"k-actionsheet-subtitle k-text-center",children:a})]}),L&&B("div",{className:"k-actionsheet-title",children:L}),i&&B("div",{className:"k-actionsheet-actions",children:i})]}),(d||r)&&B("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?B(ee,{value:T,placeholder:u,size:h?"large":"medium"}):B(j,{placeholder:"Filter",size:h?"large":"medium"})})]})};G.className=Ct;G.defaultOptions=Wo;import{jsx as Xe,jsxs as jo}from"react/jsx-runtime";var qe="k-actionsheet-view",Qo=[],Yo={},Zo={},te=e=>{let{adaptive:t,animated:a,children:s,header:i,footer:r,...d}=e,T=i?.type===G&&Xe(G,{adaptive:t,...i?.props}),u=r?.type===$e&&Xe($e,{...r?.props});return jo("div",{...d,className:o(e.className,qe,{[`${qe}-animated`]:a}),children:[T,Xe("div",{className:"k-actionsheet-content",children:s}),u]})};te.states=Qo;te.options=Yo;te.className=qe;te.defaultOptions=Zo;import{jsx as Me,jsxs as oa}from"react/jsx-runtime";var Ot="k-actionsheet",ea=[],ta={},re={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},U=e=>{let{side:t=re.side,fullscreen:a=re.fullscreen,adaptive:s=re.adaptive,overlay:i=re.overlay,template:r,children:d,header:T,footer:u,...h}=e;return oa("div",{className:"k-actionsheet-container",children:[i&&Me("div",{className:"k-overlay"}),Me(P,{animationStyle:{[`${a===!0?"top":t}`]:0,[`${a===!0?"width":null}`]:"100%",[`${a===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Me("div",{...h,className:o(e.className,Ot,{[`k-actionsheet-${t}`]:a===!1,"k-actionsheet-fullscreen":a===!0,"k-adaptive-actionsheet":s}),children:r||Me(te,{header:T,footer:u,adaptive:s,...e,children:d})})})]})};U.states=ea;U.options=ta;U.className=Ot;U.defaultOptions=re;import{jsx as ri}from"react/jsx-runtime";import{Fragment as la,jsx as de,jsxs as Ue}from"react/jsx-runtime";var We="k-actionsheet-item",aa=[l.hover,l.focus,l.selected,l.disabled],Qe=e=>{let{iconName:t,text:a,description:s,hover:i,focus:r,selected:d,disabled:T,...u}=e;return Ue("span",{...u,className:o(e.className,We,w(We,{hover:i,focus:r,selected:d,disabled:T})),children:[!e.children&&de(la,{children:Ue("span",{className:"k-actionsheet-action",children:[t&&de("span",{className:"k-icon-wrap",children:de(y,{className:"k-actionsheet-item-icon",icon:t})}),Ue("span",{className:"k-actionsheet-item-text",children:[a&&de("span",{className:"k-actionsheet-item-title",children:a}),s&&de("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};Qe.states=aa;Qe.className=We;import{jsx as fi,jsxs as hi}from"react/jsx-runtime";import{jsx as Si}from"react/jsx-runtime";import{jsx as Mi}from"react/jsx-runtime";import{jsx as Ri}from"react/jsx-runtime";import{jsx as ia}from"react/jsx-runtime";var Pt="k-data-table",sa=[],na={size:[n.small,n.medium,n.large]},Kt={size:n.medium},C=e=>{let{size:t=Kt.size,...a}=e;return ia("div",{...a,className:o(e.className,Pt,x("k-table",{size:t})),children:e.children})};C.states=sa;C.options=na;C.className=Pt;C.defaultOptions=Kt;import{jsx as Ye}from"react/jsx-runtime";var ra="k-table-header",ce=e=>Ye("div",{className:o(e.className,ra),children:Ye("div",{className:"k-table-header-wrap",children:Ye(V,{children:e.children})})});import{jsx as ca}from"react/jsx-runtime";var da="k-table-body",pe=e=>ca("div",{className:o(e.className,da,"k-table-scroller"),children:e.children});import{jsx as ma}from"react/jsx-runtime";var pa="k-table-footer",Ie=e=>ma("div",{className:o(e.className,pa),children:e.children});import{jsx as xa}from"react/jsx-runtime";var Ze="k-table",Ta=[],ua={size:[n.small,n.medium,n.large]},ba={},V=e=>{let{size:t,...a}=e;return xa("table",{...a,className:o(e.className,Ze,x(Ze,{size:t})),children:e.children})};V.states=Ta;V.options=ua;V.className=Ze;V.defaultOptions=ba;import{jsx as ya}from"react/jsx-runtime";var je="k-table-list",fa=[],ha={size:[n.small,n.medium,n.large]},Na={},$=e=>{let{size:t,virtualization:a,...s}=e;return ya("ul",{...s,className:o(e.className,"k-table",je,x(je,{size:t}),{"k-virtual-table":a}),children:e.children})};$.states=fa;$.options=ha;$.className=je;$.defaultOptions=Na;import{jsx as Sa}from"react/jsx-runtime";var La="k-table-thead",oe=e=>Sa("thead",{className:o(e.className,La),children:e.children});import{jsx as Tr}from"react/jsx-runtime";import{jsx as fr}from"react/jsx-runtime";import{jsx as wa}from"react/jsx-runtime";var et="k-table-row",va=[l.hover,l.focus,l.selected,l.disabled,l.highlighted],F=e=>{let{hover:t,focus:a,selected:s,highlighted:i,disabled:r,alt:d,...T}=e;return wa("tr",{...T,className:o(e.className,et,{"k-table-alt-row":d},w(et,{hover:t,focus:a,disabled:r,selected:s,highlighted:i})),children:e.children})};F.states=va;F.className=et;import{jsx as Ma}from"react/jsx-runtime";var tt="k-table-row",ga=[l.hover,l.focus,l.selected,l.disabled],I=e=>{let{hover:t,focus:a,selected:s,disabled:i,alt:r,...d}=e;return Ma("li",{...d,className:o(e.className,tt,{"k-table-alt-row":r},w(tt,{hover:t,focus:a,disabled:i,selected:s})),children:e.children})};I.states=ga;I.className=tt;import{jsx as Aa}from"react/jsx-runtime";var Ia="k-table-th",_=e=>{let{text:t,colspan:a,rowspan:s,...i}=e,r=t||e.children;return Aa("th",{colSpan:a,rowSpan:s,...i,className:o(e.className,Ia),children:r})};import{jsx as Ra}from"react/jsx-runtime";var ka="k-table-th",Ae=e=>{let{text:t,...a}=e,s=t||e.children;return Ra("span",{...a,className:o(e.className,ka),children:s})};import{jsx as Da}from"react/jsx-runtime";var ot="k-table-td",Ha=[l.focus,l.selected,l.highlighted],ke=e=>{let{focus:t,selected:a,highlighted:s,text:i,colspan:r,rowspan:d,...T}=e,u=i||e.children;return Da("td",{colSpan:r,rowSpan:d,...T,className:o(e.className,ot,w(ot,{focus:t,selected:a,highlighted:s})),children:u})};ke.states=Ha;ke.className=ot;import{jsx as Ca}from"react/jsx-runtime";var Ea="k-table-td",f=e=>{let{text:t,...a}=e,s=t||e.children;return Ca("span",{...a,className:o(e.className,Ea),children:s})};import{jsx as Br}from"react/jsx-runtime";import{jsx as za}from"react/jsx-runtime";var Oa="k-table-group-sticky-header",at=e=>za("div",{className:o(e.className,Oa),children:e.children});import{jsx as Xr}from"react/jsx-runtime";import{jsx as Ka}from"react/jsx-runtime";var Pa="k-table-group-row",lt=e=>Ka("li",{className:o(e.className,Pa),children:e.children});import{jsx as jr,jsxs as ed}from"react/jsx-runtime";import{jsx as ld,jsxs as sd}from"react/jsx-runtime";import{jsx as dd,jsxs as cd}from"react/jsx-runtime";import{Fragment as xd,jsx as ud,jsxs as bd}from"react/jsx-runtime";import{Fragment as st,jsx as p,jsxs as S}from"react/jsx-runtime";var Bt="k-dropdowngrid",$a=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Fa={size:[n.small,n.medium,n.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[b.solid,b.flat,b.outline]},me={size:N.defaultOptions.size,rounded:N.defaultOptions.rounded,fillMode:N.defaultOptions.fillMode,separators:!0},Te=e=>{let{size:t=me.size,rounded:a=me.rounded,fillMode:s=me.fillMode,separators:i=me.separators,prefix:r,suffix:d,value:T,placeholder:u,hover:h,focus:L,valid:v,invalid:A,required:k,loading:g,disabled:M,popup:W,opened:O,readonly:J,adaptive:ue,adaptiveSettings:Re,adaptiveTitle:Vt,adaptiveSubtitle:$t,...Ft}=e;return S(st,{children:[S(N,{...Ft,size:t,rounded:a,fillMode:s,hover:h,focus:L,valid:v,invalid:A,required:k,loading:g,disabled:M,readonly:J,className:o(e.className,Bt,"k-combobox"),children:[r&&S(st,{children:[p(Se,{children:r}),i&&p(Q,{})]}),p(D,{placeholder:u,value:T}),p(E,{valid:v,invalid:A,loading:g,disabled:M}),p(z,{loading:g,disabled:M}),p(H,{loading:g,disabled:M,readonly:J,value:T}),d&&S(st,{children:[i&&p(Q,{}),p(ve,{children:d})]}),p(R,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),O&&W&&p(Y,{className:"k-dropdowngrid-popup",children:W}),ue&&p(U,{adaptive:!0,...Re,header:p(G,{actionsEnd:p(R,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:T,inputPlaceholder:u,title:Vt,subtitle:$t}),children:p("div",{className:"k-list-container",children:S(C,{size:"large",children:[S(ce,{children:[S("colgroup",{children:[p("col",{style:{width:"50px"}}),p("col",{style:{width:"160px"}}),p("col",{})]}),p(oe,{children:S(F,{children:[p(_,{text:"ID"}),p(_,{text:"Name"}),p(_,{text:"Job Title"})]})})]}),p(at,{children:p(Ae,{text:"Initial group"})}),p(pe,{children:S($,{children:[S(I,{children:[p(f,{text:"1",style:{width:"50px"}}),p(f,{text:"Data 1.2",style:{width:"160px"}}),p(f,{text:"Data 1.3"})]}),S(I,{alt:!0,children:[p(f,{text:"2",style:{width:"50px"}}),p(f,{text:"Data 2.2 (alt)",style:{width:"160px"}}),p(f,{text:"Data 2.3"})]}),S(I,{children:[p(f,{text:"3",style:{width:"50px"}}),p(f,{text:"Data 3.2",style:{width:"160px"}}),p(f,{text:"Data 3.3"})]}),p(lt,{children:p(Ae,{text:"Group"})}),S(I,{children:[p(f,{text:"4",style:{width:"50px"}}),p(f,{text:"Data 4.2",style:{width:"160px"}}),p(f,{text:"Data 4.3"})]}),S(I,{alt:!0,children:[p(f,{text:"5",style:{width:"50px"}}),p(f,{text:"Data 5.2 (alt)",style:{width:"160px"}}),p(f,{text:"Data 5.3"})]}),S(I,{children:[p(f,{text:"6",style:{width:"50px"}}),p(f,{text:"Data 6.2",style:{width:"160px"}}),p(f,{text:"Data 6.3"})]})]})}),p(Ie,{children:p(f,{text:"30 records in total"})})]})})})]})};Te.states=$a;Te.options=Fa;Te.className=Bt;Te.defaultOptions=me;var Gt=Te;import{Fragment as _a,jsx as nt}from"react/jsx-runtime";var jd=e=>nt(Gt,{prefix:nt(_a,{children:nt(y,{icon:"map-marker-target"})}),...e});export{jd as DropdownGridPrefix};