@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 23.9 kB
JavaScript
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{Fragment as Ut,jsx as it}from"react/jsx-runtime";var He="k-icon k-font-icon",Jt=[],Xt={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?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(Ut,{})};ae.states=Jt;ae.options=Xt;ae.className=He;ae.defaultOptions=qt;var rt=ae;import{Fragment as Yt,jsx as be}from"react/jsx-runtime";var De="k-icon k-svg-icon",Wt=[],Qt={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 be(Yt,{});d==="none"&&{...T,className:o(e.className,De,"k-none")};let u=typeof d=="object"&&d.name&&d.name;return be("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:be("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=Wt;le.options=Qt;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 Zt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),jt=[],eo={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=Zt(`${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=jt;y.options=eo;y.defaultOptions=Ce;import{Fragment as ao,jsx as ne,jsxs as mt}from"react/jsx-runtime";var xe="k-button",to=[l.hover,l.focus,l.active,l.selected,l.disabled],oo={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"},I=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:k,text:R,iconClassName:g,...M}=e,W=k!==void 0,O=e.children!==void 0;return mt("button",{...M,className:o(e.className,xe,x(xe,{size:t,rounded:a,fillMode:s,themeColor:i}),w(xe,{hover:T,focus:u,active:h,disabled:v,selected:L}),{"k-icon-button":!R&&!O&&W}),children:[k&&ne(y,{className:o(g,"k-button-icon"),icon:k}),R?mt(ao,{children:[R&&ne("span",{className:"k-button-text",children:R}),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})})]})};I.states=to;I.options=oo;I.className=xe;I.defaultOptions=X;import{jsx as lo}from"react/jsx-runtime";var Tt=e=>lo(I,{icon:"folder",...e,children:void 0});import{jsx as gl}from"react/jsx-runtime";import{jsx as kl}from"react/jsx-runtime";import{jsx as io}from"react/jsx-runtime";var fe="k-input",so=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],no={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:n.medium,fillMode:b.solid},N=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 io("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}))})};N.states=so;N.options=no;N.className=fe;N.defaultOptions=he;import{jsx as po}from"react/jsx-runtime";var Ne="k-picker",ro=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],co={size:[n.small,n.medium,n.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[b.solid,b.flat,b.outline]},ye={size:n.medium,rounded:m.medium,fillMode:b.solid},Le=e=>{let{hover:t,focus:a,disabled:s,invalid:i,valid:r,loading:d,readonly:T,size:u=ye.size,rounded:h=ye.rounded,fillMode:L=ye.fillMode,...v}=e;return po("span",{...v,className:o(e.className,Ne,x(Ne,{size:u,rounded:h,fillMode:L}),w(Ne,{hover:t,focus:a,disabled:s,invalid:i,valid:r,loading:d,readonly:T})),children:e.children})};Le.states=ro;Le.options=co;Le.className=Ne;Le.defaultOptions=ye;import{Fragment as uo,jsx as Oe}from"react/jsx-runtime";var ut="k-clear-value",mo=[l.disabled,l.loading,l.readonly],To={},H=e=>{let{disabled:t,loading:a,readonly:s,value:i}=e;return t||s||a||!i?Oe(uo,{}):Oe("span",{className:o(e.className,ut),children:Oe(y,{icon:"x"})})};H.states=mo;H.options=To;H.className=ut;import{jsx as fo}from"react/jsx-runtime";var ze="k-input-inner",bo=[],xo={},Se={type:"text",autocomplete:"off",value:"",placeholder:""},D=e=>{let{value:t=Se.value,type:a=Se.type,placeholder:s=Se.placeholder,autocomplete:i=Se.autocomplete,...r}=e;return fo("input",{...r,type:a,className:o(e.className,ze,x(ze,e)),placeholder:s,autoComplete:i,defaultValue:t})};D.states=bo;D.options=xo;D.className=ze;import{jsx as bt,jsxs as yo}from"react/jsx-runtime";var Ke="k-input-inner",ho=[],No={},Pe=e=>{let{value:t,placeholder:a,showValue:s,valueIcon:i,valueIconName:r,...d}=e;return yo("span",{...d,className:o(e.className,Ke,x(Ke,e)),children:[i,!i&&r&&bt(y,{className:"k-input-value-icon",icon:r}),s&&!t&&a,s&&t&&bt("span",{className:"k-input-value-text",children:t})]})};Pe.states=ho;Pe.options=No;Pe.className=Ke;import{jsx as vo}from"react/jsx-runtime";var Be="k-input-inner",Lo=[],So={},xt={value:"",placeholder:""},Ge=e=>{let{value:t=xt.value,placeholder:a=xt.placeholder,rows:s,...i}=e;return vo("textarea",{...i,className:o(e.className,Be,x(Be,e)),placeholder:a,rows:s,defaultValue:t})};Ge.states=Lo;Ge.options=So;Ge.className=Be;import{Fragment as go,jsx as ft}from"react/jsx-runtime";var ht="k-input-loading-icon",wo=[l.disabled,l.loading],z=e=>{let{disabled:t,loading:a}=e;return t||!a?ft(go,{}):ft("span",{className:o(e.className,ht,"k-icon k-i-loading")})};z.states=wo;z.className=ht;import{Fragment as Ao,jsx as Nt}from"react/jsx-runtime";var yt="k-input-validation-icon",Mo=[l.valid,l.invalid,l.disabled,l.loading],Io={},E=e=>{let{valid:t,invalid:a,disabled:s,loading:i}=e,r=a?"warning-circle":"check-circle";return s||i||!!!(t||a)?Nt(Ao,{}):Nt(y,{className:o(yt),icon:r})};E.states=Mo;E.options=Io;E.className=yt;import{Fragment as Ho,jsx as Lt}from"react/jsx-runtime";var ko="k-input-prefix",Ro={direction:"horizontal"},ve=e=>{let{direction:t=Ro.direction,...a}=e;return e.children?Lt("span",{...a,className:o(ko,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Lt(Ho,{})};import{Fragment as Co,jsx as St}from"react/jsx-runtime";var Do="k-input-suffix",Eo={direction:"horizontal"},we=e=>{let{direction:t=Eo.direction,...a}=e;return e.children?St("span",{...a,className:o(Do,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):St(Co,{})};import{jsx as fs}from"react/jsx-runtime";import{jsx as Ls}from"react/jsx-runtime";import{jsx as zo}from"react/jsx-runtime";var vt="k-input-separator",Oo={direction:"vertical"},Q=e=>{let{direction:t=Oo.direction,...a}=e;return zo("span",{...a,className:o(vt,e.className,{[`${vt}-${t}`]:t})})};import{jsx as wt}from"react/jsx-runtime";var gt="k-animation-container",Ko=[],Po={},Mt={positionMode:"absolute"},K=e=>{let{positionMode:t=Mt.positionMode,animationStyle:a,offset:s,...i}=e;return wt("div",{...i,style:{...s,...e.style},className:o(e.className,gt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:wt("div",{className:"k-child-animation-container",style:a,children:e.children})})};K.states=Ko;K.options=Po;K.className=gt;K.defaultOptions=Mt;import{jsx as It}from"react/jsx-runtime";var At="k-popup",Bo=[],Go={},kt={positionMode:"absolute"},Y=e=>{let{offset:t,positionMode:a=kt.positionMode,animationStyle:s,...i}=e;return It(K,{positionMode:a,offset:t,animationStyle:s,children:It("div",{...i,className:o(e.className,At),children:e.children})})};Y.states=Bo;Y.options=Go;Y.className=At;Y.defaultOptions=kt;import{jsx as Fo}from"react/jsx-runtime";var ge="k-actions",Vo=[],$o={},Ve={alignment:"start",orientation:"horizontal"},Z=e=>{let{alignment:t=Ve.alignment,orientation:a=Ve.orientation,...s}=e;return Fo("div",{...s,className:o(ge,{[`${ge}-${t}`]:t,[`${ge}-${a}`]:a},e.className),children:e.children})};Z.states=Vo;Z.options=$o;Z.className=ge;Z.defaultOptions=Ve;import{jsx as Jo}from"react/jsx-runtime";var _o="k-actionsheet-footer",Rt={alignment:"stretched",orientation:"horizontal"},$e=e=>{let{alignment:t=Rt.alignment,orientation:a=Rt.orientation,template:s,as:i=s?"div":Z,...r}=e;return Jo(i,{...r,...!s&&{alignment:t,orientation:a},className:o(e.className,_o),children:e.children})};import{jsx as ie,jsxs as Uo}from"react/jsx-runtime";var Ht="k-searchbox",Xo=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],qo={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:k,showIcon:R=Fe.showIcon,icon:g=Fe.icon,...M}=e;return Uo(N,{...M,size:s,rounded:i,fillMode:r,hover:d,focus:T,valid:u,invalid:h,required:L,loading:v,disabled:k,className:o(e.className,Ht),children:[R&&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=Xo;j.options=qo;j.className=Ht;j.defaultOptions=Fe;import{jsx as bn}from"react/jsx-runtime";import{Fragment as Dt,jsx as P,jsxs as _e}from"react/jsx-runtime";var Et="k-textbox",Wo=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Qo={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:k,focus:R,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:k,focus:R,valid:g,invalid:M,required:W,loading:O,disabled:J,readonly:ue,className:o(e.className,Et),children:[T&&_e(Dt,{children:[P(ve,{children:T}),i&&P(Q,{})]}),P(D,{placeholder:v,value:L,type:h}),d&&P(E,{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(Dt,{children:[i&&P(Q,{}),P(we,{children:u})]})]})};ee.states=Wo;ee.options=Qo;ee.className=Et;ee.defaultOptions=q;import{jsx as Mn}from"react/jsx-runtime";import{Fragment as Dn,jsx as Hn}from"react/jsx-runtime";import{Fragment as Bn,jsx as Pn}from"react/jsx-runtime";import{jsx as B,jsxs as Je}from"react/jsx-runtime";var Ot="k-actionsheet-titlebar",Yo={},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,Ot),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=Ot;G.defaultOptions=Yo;import{jsx as Xe,jsxs as ta}from"react/jsx-runtime";var qe="k-actionsheet-view",Zo=[],jo={},ea={},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 ta("div",{...d,className:o(e.className,qe,{[`${qe}-animated`]:a}),children:[T,Xe("div",{className:"k-actionsheet-content",children:s}),u]})};te.states=Zo;te.options=jo;te.className=qe;te.defaultOptions=ea;import{jsx as Me,jsxs as la}from"react/jsx-runtime";var zt="k-actionsheet",oa=[],aa={},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 la("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,zt,{[`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=oa;U.options=aa;U.className=zt;U.defaultOptions=re;import{jsx as di}from"react/jsx-runtime";import{Fragment as na,jsx as de,jsxs as Ue}from"react/jsx-runtime";var We="k-actionsheet-item",sa=[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(na,{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=sa;Qe.className=We;import{jsx as hi,jsxs 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 Hi}from"react/jsx-runtime";import{jsx as da}from"react/jsx-runtime";var Pt="k-data-table",ia=[],ra={size:[n.small,n.medium,n.large]},Bt={size:n.medium},C=e=>{let{size:t=Bt.size,...a}=e;return da("div",{...a,className:o(e.className,Pt,x("k-table",{size:t})),children:e.children})};C.states=ia;C.options=ra;C.className=Pt;C.defaultOptions=Bt;import{jsx as Ye}from"react/jsx-runtime";var ca="k-table-header",ce=e=>Ye("div",{className:o(e.className,ca),children:Ye("div",{className:"k-table-header-wrap",children:Ye(V,{children:e.children})})});import{jsx as ma}from"react/jsx-runtime";var pa="k-table-body",pe=e=>ma("div",{className:o(e.className,pa,"k-table-scroller"),children:e.children});import{jsx as ua}from"react/jsx-runtime";var Ta="k-table-footer",Ie=e=>ua("div",{className:o(e.className,Ta),children:e.children});import{jsx as ha}from"react/jsx-runtime";var Ze="k-table",ba=[],xa={size:[n.small,n.medium,n.large]},fa={},V=e=>{let{size:t,...a}=e;return ha("table",{...a,className:o(e.className,Ze,x(Ze,{size:t})),children:e.children})};V.states=ba;V.options=xa;V.className=Ze;V.defaultOptions=fa;import{jsx as Sa}from"react/jsx-runtime";var je="k-table-list",Na=[],ya={size:[n.small,n.medium,n.large]},La={},$=e=>{let{size:t,virtualization:a,...s}=e;return Sa("ul",{...s,className:o(e.className,"k-table",je,x(je,{size:t}),{"k-virtual-table":a}),children:e.children})};$.states=Na;$.options=ya;$.className=je;$.defaultOptions=La;import{jsx as wa}from"react/jsx-runtime";var va="k-table-thead",oe=e=>wa("thead",{className:o(e.className,va),children:e.children});import{jsx as ur}from"react/jsx-runtime";import{jsx as hr}from"react/jsx-runtime";import{jsx as Ma}from"react/jsx-runtime";var et="k-table-row",ga=[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 Ma("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=ga;F.className=et;import{jsx as Aa}from"react/jsx-runtime";var tt="k-table-row",Ia=[l.hover,l.focus,l.selected,l.disabled],A=e=>{let{hover:t,focus:a,selected:s,disabled:i,alt:r,...d}=e;return Aa("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})};A.states=Ia;A.className=tt;import{jsx as Ra}from"react/jsx-runtime";var ka="k-table-th",_=e=>{let{text:t,colspan:a,rowspan:s,...i}=e,r=t||e.children;return Ra("th",{colSpan:a,rowSpan:s,...i,className:o(e.className,ka),children:r})};import{jsx as Da}from"react/jsx-runtime";var Ha="k-table-th",Ae=e=>{let{text:t,...a}=e,s=t||e.children;return Da("span",{...a,className:o(e.className,Ha),children:s})};import{jsx as Ca}from"react/jsx-runtime";var ot="k-table-td",Ea=[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 Ca("td",{colSpan:r,rowSpan:d,...T,className:o(e.className,ot,w(ot,{focus:t,selected:a,highlighted:s})),children:u})};ke.states=Ea;ke.className=ot;import{jsx as za}from"react/jsx-runtime";var Oa="k-table-td",f=e=>{let{text:t,...a}=e,s=t||e.children;return za("span",{...a,className:o(e.className,Oa),children:s})};import{jsx as Gr}from"react/jsx-runtime";import{jsx as Pa}from"react/jsx-runtime";var Ka="k-table-group-sticky-header",at=e=>Pa("div",{className:o(e.className,Ka),children:e.children});import{jsx as qr}from"react/jsx-runtime";import{jsx as Ga}from"react/jsx-runtime";var Ba="k-table-group-row",lt=e=>Ga("li",{className:o(e.className,Ba),children:e.children});import{jsx as ed,jsxs as td}from"react/jsx-runtime";import{jsx as sd,jsxs as nd}from"react/jsx-runtime";import{jsx as cd,jsxs as pd}from"react/jsx-runtime";import{Fragment as fd,jsx as bd,jsxs as xd}from"react/jsx-runtime";import{Fragment as st,jsx as p,jsxs as S}from"react/jsx-runtime";var Gt="k-dropdowngrid",_a=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Ja={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:k,required:R,loading:g,disabled:M,popup:W,opened:O,readonly:J,adaptive:ue,adaptiveSettings:Re,adaptiveTitle:$t,adaptiveSubtitle:Ft,..._t}=e;return S(st,{children:[S(N,{..._t,size:t,rounded:a,fillMode:s,hover:h,focus:L,valid:v,invalid:k,required:R,loading:g,disabled:M,readonly:J,className:o(e.className,Gt,"k-combobox"),children:[r&&S(st,{children:[p(ve,{children:r}),i&&p(Q,{})]}),p(D,{placeholder:u,value:T}),p(E,{valid:v,invalid:k,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(we,{children:d})]}),p(I,{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(I,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:T,inputPlaceholder:u,title:$t,subtitle:Ft}),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(A,{children:[p(f,{text:"1",style:{width:"50px"}}),p(f,{text:"Data 1.2",style:{width:"160px"}}),p(f,{text:"Data 1.3"})]}),S(A,{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(A,{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(A,{children:[p(f,{text:"4",style:{width:"50px"}}),p(f,{text:"Data 4.2",style:{width:"160px"}}),p(f,{text:"Data 4.3"})]}),S(A,{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(A,{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=Ja;Te.className=Gt;Te.defaultOptions=me;var Vt=Te;import{Fragment as Xa,jsx as nt}from"react/jsx-runtime";var ec=e=>nt(Vt,{suffix:nt(Xa,{children:nt(Tt,{icon:"copy",fillMode:"clear"})}),...e});export{ec as DropdownGridSuffix};