UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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