UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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