UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 23.7 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 _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:[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 _t("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=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:[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 qt("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=Jt;Ne.options=Xt;Ne.className=fe;Ne.defaultOptions=he;import{Fragment as Yt,jsx as nt}from"react/jsx-runtime";var He="k-icon k-font-icon",Ut=[],Wt={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]},Qt={},ae=e=>{let{size:t,themeColor:a,icon:s,rotate:i,flip:r,...d}=e;return s?nt("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"})}):nt(Yt,{})};ae.states=Ut;ae.options=Wt;ae.className=He;ae.defaultOptions=Qt;var it=ae;import{Fragment as eo,jsx as ye}from"react/jsx-runtime";var Ee="k-icon k-svg-icon",Zt=[],jt={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]},rt={viewBox:"0 0 24 24"},le=e=>{let{size:t,themeColor:a,rotate:s,flip:i,viewBox:r=rt.viewBox,icon:d,...T}=e;if(!d)return ye(eo,{});d==="none"&&{...T,className:o(e.className,Ee,"k-none")};let u=typeof d=="object"&&d.name&&d.name;return ye("span",{...T,className:o(e.className,Ee,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=Zt;le.options=jt;le.className=Ee;le.defaultOptions=rt;var De=le;import*as dt from"@progress/kendo-svg-icons";import{Fragment as ct,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:[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(ct,{});if(i==="svg"){if(s==="none")return se(De,{...u,icon:s,size:t});let h=to(`${s}-icon`);return dt[h]?se(De,{...u,icon:dt[h],size:t,themeColor:a,rotate:r,flip:d,viewBox:T}):se(ct,{})}return se(it,{...u,icon:s,size:t,themeColor:a,rotate:r,flip:d})};y.states=oo;y.options=ao;y.defaultOptions=Ce;import{Fragment as no,jsx as Oe}from"react/jsx-runtime";var pt="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,pt),children:Oe(y,{icon:"x"})})};H.states=lo;H.options=so;H.className=pt;import{jsx as co}from"react/jsx-runtime";var ze="k-input-inner",io=[],ro={},Le={type:"text",autocomplete:"off",value:"",placeholder:""},E=e=>{let{value:t=Le.value,type:a=Le.type,placeholder:s=Le.placeholder,autocomplete:i=Le.autocomplete,...r}=e;return co("input",{...r,type:a,className:o(e.className,ze,x(ze,e)),placeholder:s,autoComplete:i,defaultValue:t})};E.states=io;E.options=ro;E.className=ze;import{jsx as mt,jsxs as To}from"react/jsx-runtime";var Ke="k-input-inner",po=[],mo={},Pe=e=>{let{value:t,placeholder:a,showValue:s,valueIcon:i,valueIconName:r,...d}=e;return To("span",{...d,className:o(e.className,Ke,x(Ke,e)),children:[i,!i&&r&&mt(y,{className:"k-input-value-icon",icon:r}),s&&!t&&a,s&&t&&mt("span",{className:"k-input-value-text",children:t})]})};Pe.states=po;Pe.options=mo;Pe.className=Ke;import{jsx as xo}from"react/jsx-runtime";var Be="k-input-inner",uo=[],bo={},Tt={value:"",placeholder:""},Ve=e=>{let{value:t=Tt.value,placeholder:a=Tt.placeholder,rows:s,...i}=e;return xo("textarea",{...i,className:o(e.className,Be,x(Be,e)),placeholder:a,rows:s,defaultValue:t})};Ve.states=uo;Ve.options=bo;Ve.className=Be;import{Fragment as ho,jsx as ut}from"react/jsx-runtime";var bt="k-input-loading-icon",fo=[l.disabled,l.loading],z=e=>{let{disabled:t,loading:a}=e;return t||!a?ut(ho,{}):ut("span",{className:o(e.className,bt,"k-icon k-i-loading")})};z.states=fo;z.className=bt;import{Fragment as Lo,jsx as xt}from"react/jsx-runtime";var ft="k-input-validation-icon",No=[l.valid,l.invalid,l.disabled,l.loading],yo={},D=e=>{let{valid:t,invalid:a,disabled:s,loading:i}=e,r=a?"warning-circle":"check-circle";return s||i||!!!(t||a)?xt(Lo,{}):xt(y,{className:o(ft),icon:r})};D.states=No;D.options=yo;D.className=ft;import{Fragment as wo,jsx as ht}from"react/jsx-runtime";var So="k-input-prefix",vo={direction:"horizontal"},Se=e=>{let{direction:t=vo.direction,...a}=e;return e.children?ht("span",{...a,className:o(So,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ht(wo,{})};import{Fragment as Io,jsx as Nt}from"react/jsx-runtime";var go="k-input-suffix",Mo={direction:"horizontal"},ve=e=>{let{direction:t=Mo.direction,...a}=e;return e.children?Nt("span",{...a,className:o(go,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Nt(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 yt="k-input-separator",Ao={direction:"vertical"},Q=e=>{let{direction:t=Ao.direction,...a}=e;return ko("span",{...a,className:o(yt,e.className,{[`${yt}-${t}`]:t})})};import{Fragment as Eo,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:[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 Lt("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?Lt(Eo,{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=Ro;R.options=Ho;R.className=we;R.defaultOptions=X;import{jsx as Ls}from"react/jsx-runtime";import{jsx as gs}from"react/jsx-runtime";import{jsx as ks}from"react/jsx-runtime";import{jsx as St}from"react/jsx-runtime";var vt="k-animation-container",Do=[],Co={},wt={positionMode:"absolute"},K=e=>{let{positionMode:t=wt.positionMode,animationStyle:a,offset:s,...i}=e;return St("div",{...i,style:{...s,...e.style},className:o(e.className,vt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:St("div",{className:"k-child-animation-container",style:a,children:e.children})})};K.states=Do;K.options=Co;K.className=vt;K.defaultOptions=wt;import{jsx as gt}from"react/jsx-runtime";var Mt="k-popup",Oo=[],zo={},It={positionMode:"absolute"},Y=e=>{let{offset:t,positionMode:a=It.positionMode,animationStyle:s,...i}=e;return gt(K,{positionMode:a,offset:t,animationStyle:s,children:gt("div",{...i,className:o(e.className,Mt),children:e.children})})};Y.states=Oo;Y.options=zo;Y.className=Mt;Y.defaultOptions=It;import{jsx as Bo}from"react/jsx-runtime";var ge="k-actions",Ko=[],Po={},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=Ko;Z.options=Po;Z.className=ge;Z.defaultOptions=Ge;import{jsx as Go}from"react/jsx-runtime";var Vo="k-actionsheet-footer",At={alignment:"stretched",orientation:"horizontal"},$e=e=>{let{alignment:t=At.alignment,orientation:a=At.orientation,template:s,as:i=s?"div":Z,...r}=e;return Go(i,{...r,...!s&&{alignment:t,orientation:a},className:o(e.className,Vo),children:e.children})};import{jsx as ie,jsxs as _o}from"react/jsx-runtime";var kt="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:[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 _o(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,kt),children:[k&&ie(y,{className:"k-input-icon",icon:g}),ie(E,{placeholder:a,value:t}),ie(z,{...e}),ie(D,{...e}),ie(H,{...e})]})};j.states=$o;j.options=Fo;j.className=kt;j.defaultOptions=Fe;import{jsx as pn}from"react/jsx-runtime";import{Fragment as Rt,jsx as P,jsxs as _e}from"react/jsx-runtime";var Ht="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:[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,Ht),children:[T&&_e(Rt,{children:[P(Se,{children:T}),i&&P(Q,{})]}),P(E,{placeholder:v,value:L,type:h}),d&&P(D,{valid:g,invalid:M,loading:O,disabled:J}),P(z,{loading:O,disabled:J}),r&&P(H,{loading:O,disabled:J,readonly:ue,value:L}),u&&_e(Rt,{children:[i&&P(Q,{}),P(ve,{children:u})]})]})};ee.states=Jo;ee.options=Xo;ee.className=Ht;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 On,jsx as Cn}from"react/jsx-runtime";import{jsx as B,jsxs as Je}from"react/jsx-runtime";var Dt="k-actionsheet-titlebar",qo={},V=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,Dt),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"})})]})};V.className=Dt;V.defaultOptions=qo;import{jsx as Xe,jsxs as Yo}from"react/jsx-runtime";var qe="k-actionsheet-view",Uo=[],Wo={},Qo={},te=e=>{let{adaptive:t,animated:a,children:s,header:i,footer:r,...d}=e,T=i?.type===V&&Xe(V,{adaptive:t,...i?.props}),u=r?.type===$e&&Xe($e,{...r?.props});return Yo("div",{...d,className:o(e.className,qe,{[`${qe}-animated`]:a}),children:[T,Xe("div",{className:"k-actionsheet-content",children:s}),u]})};te.states=Uo;te.options=Wo;te.className=qe;te.defaultOptions=Qo;import{jsx as Me,jsxs as ea}from"react/jsx-runtime";var Ct="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:d,header:T,footer:u,...h}=e;return ea("div",{className:"k-actionsheet-container",children:[i&&Me("div",{className:"k-overlay"}),Me(K,{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,Ct,{[`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=Zo;U.options=jo;U.className=Ct;U.defaultOptions=re;import{jsx as si}from"react/jsx-runtime";import{Fragment as oa,jsx as de,jsxs as Ue}from"react/jsx-runtime";var We="k-actionsheet-item",ta=[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(oa,{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=ta;Qe.className=We;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 zt="k-data-table",aa=[],la={size:[n.small,n.medium,n.large]},Kt={size:n.medium},C=e=>{let{size:t=Kt.size,...a}=e;return sa("div",{...a,className:o(e.className,zt,x("k-table",{size:t})),children:e.children})};C.states=aa;C.options=la;C.className=zt;C.defaultOptions=Kt;import{jsx as Ye}from"react/jsx-runtime";var na="k-table-header",ce=e=>Ye("div",{className:o(e.className,na),children:Ye("div",{className:"k-table-header-wrap",children:Ye(G,{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 Ze="k-table",pa=[],ma={size:[n.small,n.medium,n.large]},Ta={},G=e=>{let{size:t,...a}=e;return ua("table",{...a,className:o(e.className,Ze,x(Ze,{size:t})),children:e.children})};G.states=pa;G.options=ma;G.className=Ze;G.defaultOptions=Ta;import{jsx as ha}from"react/jsx-runtime";var je="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",je,x(je,{size:t}),{"k-virtual-table":a}),children:e.children})};$.states=ba;$.options=xa;$.className=je;$.defaultOptions=fa;import{jsx as ya}from"react/jsx-runtime";var Na="k-table-thead",oe=e=>ya("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 et="k-table-row",La=[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 Sa("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=La;F.className=et;import{jsx as wa}from"react/jsx-runtime";var tt="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,...d}=e;return wa("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=va;I.className=tt;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 Ra}from"react/jsx-runtime";var ot="k-table-td",ka=[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 Ra("td",{colSpan:r,rowSpan:d,...T,className:o(e.className,ot,w(ot,{focus:t,selected:a,highlighted:s})),children:u})};ke.states=ka;ke.className=ot;import{jsx as Ea}from"react/jsx-runtime";var Ha="k-table-td",f=e=>{let{text:t,...a}=e,s=t||e.children;return Ea("span",{...a,className:o(e.className,Ha),children:s})};import{jsx as zr}from"react/jsx-runtime";import{jsx as Ca}from"react/jsx-runtime";var Da="k-table-group-sticky-header",at=e=>Ca("div",{className:o(e.className,Da),children:e.children});import{jsx as Fr}from"react/jsx-runtime";import{jsx as za}from"react/jsx-runtime";var Oa="k-table-group-row",lt=e=>za("li",{className:o(e.className,Oa),children:e.children});import{jsx as Qr,jsxs as Yr}from"react/jsx-runtime";import{jsx as td,jsxs as od}from"react/jsx-runtime";import{jsx as nd,jsxs as id}from"react/jsx-runtime";import{Fragment as Td,jsx as pd,jsxs as md}from"react/jsx-runtime";import{Fragment as st,jsx as p,jsxs as S}from"react/jsx-runtime";var Pt="k-dropdowngrid",Va=[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:[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:Bt,adaptiveSubtitle:Vt,...Gt}=e;return S(st,{children:[S(N,{...Gt,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,Pt,"k-combobox"),children:[r&&S(st,{children:[p(Se,{children:r}),i&&p(Q,{})]}),p(E,{placeholder:u,value:T}),p(D,{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(V,{actionsEnd:p(R,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:T,inputPlaceholder:u,title:Bt,subtitle:Vt}),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=Va;Te.options=Ga;Te.className=Pt;Te.defaultOptions=me;var Xd=Te;export{Pt as DROPDOWNGRID_CLASSNAME,Te as DropdownGrid,Xd as default};