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 mo=Object.create;var ge=Object.defineProperty;var To=Object.getOwnPropertyDescriptor;var uo=Object.getOwnPropertyNames;var bo=Object.getPrototypeOf,xo=Object.prototype.hasOwnProperty;var fo=(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 uo(t))!xo.call(e,i)&&i!==o&&ge(e,i,{get:()=>t[i],enumerable:!(s=To(t,i))||s.enumerable});return e};var ho=(e,t,o)=>(o=e!=null?mo(bo(e)):{},ct(t||!e||!e.__esModule?ge(o,"default",{value:e,enumerable:!0}):o,e)),No=e=>ct(ge({},"__esModule",{value:!0}),e);var tl={};fo(tl,{DropdownGridSuffix:()=>el});module.exports=No(tl);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 pe=require("react/jsx-runtime"),Ge="k-icon k-font-icon",yo=[],Lo={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]},So={},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=yo;me.options=Lo;me.className=Ge;me.defaultOptions=So;var pt=me;var W=require("react/jsx-runtime"),Ve="k-icon k-svg-icon",vo=[],wo={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]},mt={viewBox:"0 0 24 24"},Te=e=>{let{size:t,themeColor:o,rotate:s,flip:i,viewBox:d=mt.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=vo;Te.options=wo;Te.className=Ve;Te.defaultOptions=mt;var $e=Te;var Tt=ho(require("@progress/kendo-svg-icons")),O=require("react/jsx-runtime"),go=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Mo=[],Io={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"},y=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=go(`${s}-icon`);return Tt[h]?(0,O.jsx)($e,{...u,icon:Tt[h],size:t,themeColor:o,rotate:d,flip:p,viewBox:b}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(pt,{...u,icon:s,size:t,themeColor:o,rotate:d,flip:p})};y.states=Mo;y.options=Io;y.defaultOptions=Fe;var R=require("react/jsx-runtime"),Me="k-button",Ao=[l.hover,l.focus,l.active,l.selected,l.disabled],Ro={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"},k=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:L,disabled:v,icon:D,text:E,iconClassName:I,...A}=e,ee=D!==void 0,B=e.children!==void 0;return(0,R.jsxs)("button",{...A,className:a(e.className,Me,x(Me,{size:t,rounded:o,fillMode:s,themeColor:i}),g(Me,{hover:b,focus:u,active:h,disabled:v,selected:L}),{"k-icon-button":!E&&!B&&ee}),children:[D&&(0,R.jsx)(y,{className:a(I,"k-button-icon"),icon:D}),E?(0,R.jsxs)(R.Fragment,{children:[E&&(0,R.jsx)("span",{className:"k-button-text",children:E}),e.children]}):e.children&&(0,R.jsx)("span",{className:"k-button-text",children:e.children}),d&&(0,R.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,R.jsx)(y,{icon:p})})]})};k.states=Ao;k.options=Ro;k.className=Me;k.defaultOptions=Q;var bt=require("react/jsx-runtime"),ut=e=>(0,bt.jsx)(k,{icon:"folder",...e,children:void 0});var ko=require("react/jsx-runtime");var Ho=require("react/jsx-runtime");var xt=require("react/jsx-runtime"),Ie="k-input",Do=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Eo={size:[r.small,r.medium,r.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[T.solid,T.flat,T.outline]},Ae={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=Ae.size,rounded:h=Ae.rounded,fillMode:L=Ae.fillMode,...v}=e;return(0,xt.jsx)("span",{...v,className:a(e.className,Ie,x(Ie,{size:u,rounded:h,fillMode:L}),g(Ie,{hover:t,focus:o,disabled:s,invalid:i,valid:d,loading:p,readonly:b}))})};N.states=Do;N.options=Eo;N.className=Ie;N.defaultOptions=Ae;var ft=require("react/jsx-runtime"),Re="k-picker",Oo=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],Co={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},He=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:L=ke.fillMode,...v}=e;return(0,ft.jsx)("span",{...v,className:a(e.className,Re,x(Re,{size:u,rounded:h,fillMode:L}),g(Re,{hover:t,focus:o,disabled:s,invalid:i,valid:d,loading:p,readonly:b})),children:e.children})};He.states=Oo;He.options=Co;He.className=Re;He.defaultOptions=ke;var te=require("react/jsx-runtime"),ht="k-clear-value",zo=[l.disabled,l.loading,l.readonly],Po={},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,ht),children:(0,te.jsx)(y,{icon:"x"})})};C.states=zo;C.options=Po;C.className=ht;var Nt=require("react/jsx-runtime"),_e="k-input-inner",Ko=[],Bo={},De={type:"text",autocomplete:"off",value:"",placeholder:""},z=e=>{let{value:t=De.value,type:o=De.type,placeholder:s=De.placeholder,autocomplete:i=De.autocomplete,...d}=e;return(0,Nt.jsx)("input",{...d,type:o,className:a(e.className,_e,x(_e,e)),placeholder:s,autoComplete:i,defaultValue:t})};z.states=Ko;z.options=Bo;z.className=_e;var ue=require("react/jsx-runtime"),Je="k-input-inner",Go=[],Vo={},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)(y,{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=Go;Xe.options=Vo;Xe.className=Je;var Lt=require("react/jsx-runtime"),qe="k-input-inner",$o=[],Fo={},yt={value:"",placeholder:""},Ue=e=>{let{value:t=yt.value,placeholder:o=yt.placeholder,rows:s,...i}=e;return(0,Lt.jsx)("textarea",{...i,className:a(e.className,qe,x(qe,e)),placeholder:o,rows:s,defaultValue:t})};Ue.states=$o;Ue.options=Fo;Ue.className=qe;var be=require("react/jsx-runtime"),St="k-input-loading-icon",_o=[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,St,"k-icon k-i-loading")})};G.states=_o;G.className=St;var xe=require("react/jsx-runtime"),vt="k-input-validation-icon",Jo=[l.valid,l.invalid,l.disabled,l.loading],Xo={},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)(y,{className:a(vt),icon:d})};P.states=Jo;P.options=Xo;P.className=vt;var fe=require("react/jsx-runtime"),qo="k-input-prefix",Uo={direction:"horizontal"},Ee=e=>{let{direction:t=Uo.direction,...o}=e;return e.children?(0,fe.jsx)("span",{...o,className:a(qo,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,fe.jsx)(fe.Fragment,{})};var he=require("react/jsx-runtime"),Wo="k-input-suffix",Qo={direction:"horizontal"},Oe=e=>{let{direction:t=Qo.direction,...o}=e;return e.children?(0,he.jsx)("span",{...o,className:a(Wo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,he.jsx)(he.Fragment,{})};var Yo=require("react/jsx-runtime");var Zo=require("react/jsx-runtime");var gt=require("react/jsx-runtime"),wt="k-input-separator",jo={direction:"vertical"},oe=e=>{let{direction:t=jo.direction,...o}=e;return(0,gt.jsx)("span",{...o,className:a(wt,e.className,{[`${wt}-${t}`]:t})})};var We=require("react/jsx-runtime"),Mt="k-animation-container",ea=[],ta={},It={positionMode:"absolute"},V=e=>{let{positionMode:t=It.positionMode,animationStyle:o,offset:s,...i}=e;return(0,We.jsx)("div",{...i,style:{...s,...e.style},className:a(e.className,Mt,"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=ea;V.options=ta;V.className=Mt;V.defaultOptions=It;var Qe=require("react/jsx-runtime"),At="k-popup",oa=[],aa={},Rt={positionMode:"absolute"},ae=e=>{let{offset:t,positionMode:o=Rt.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,At),children:e.children})})};ae.states=oa;ae.options=aa;ae.className=At;ae.defaultOptions=Rt;var kt=require("react/jsx-runtime"),Ce="k-actions",la=[],sa={},Ye={alignment:"start",orientation:"horizontal"},le=e=>{let{alignment:t=Ye.alignment,orientation:o=Ye.orientation,...s}=e;return(0,kt.jsx)("div",{...s,className:a(Ce,{[`${Ce}-${t}`]:t,[`${Ce}-${o}`]:o},e.className),children:e.children})};le.states=la;le.options=sa;le.className=Ce;le.defaultOptions=Ye;var Dt=require("react/jsx-runtime"),na="k-actionsheet-footer",Ht={alignment:"stretched",orientation:"horizontal"},Ze=e=>{let{alignment:t=Ht.alignment,orientation:o=Ht.orientation,template:s,as:i=s?"div":le,...d}=e;return(0,Dt.jsx)(i,{...d,...!s&&{alignment:t,orientation:o},className:a(e.className,na),children:e.children})};var $=require("react/jsx-runtime"),Et="k-searchbox",ia=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading],ra={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:L,loading:v,disabled:D,showIcon:E=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:L,loading:v,disabled:D,className:a(e.className,Et),children:[E&&(0,$.jsx)(y,{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=ia;se.options=ra;se.className=Et;se.defaultOptions=je;var da=require("react/jsx-runtime");var S=require("react/jsx-runtime"),Ot="k-textbox",ca=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],pa={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:L,placeholder:v,hover:D,focus:E,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:D,focus:E,valid:I,invalid:A,required:ee,loading:B,disabled:U,readonly:we,className:a(e.className,Ot),children:[b&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Ee,{children:b}),i&&(0,S.jsx)(oe,{})]}),(0,S.jsx)(z,{placeholder:v,value:L,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:L}),u&&(0,S.jsxs)(S.Fragment,{children:[i&&(0,S.jsx)(oe,{}),(0,S.jsx)(Oe,{children:u})]})]})};ne.states=ca;ne.options=pa;ne.className=Ot;ne.defaultOptions=Y;var ma=require("react/jsx-runtime");var zt=require("react/jsx-runtime");var Pt=require("react/jsx-runtime");var w=require("react/jsx-runtime"),Kt="k-actionsheet-titlebar",Ta={},F=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:i,filter:d,input:p,inputValue:b,inputPlaceholder:u,adaptive:h,children:L,...v}=e;return(0,w.jsxs)("div",{...v,className:a(e.className,Kt),children:[(0,w.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[s&&(0,w.jsx)("div",{className:"k-actionsheet-actions",children:s}),!L&&(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})]}),L&&(0,w.jsx)("div",{className:"k-actionsheet-title",children:L}),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=Kt;F.defaultOptions=Ta;var ie=require("react/jsx-runtime"),et="k-actionsheet-view",ua=[],ba={},xa={},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=ua;re.options=ba;re.className=et;re.defaultOptions=xa;var Z=require("react/jsx-runtime"),Bt="k-actionsheet",fa=[],ha={},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,Bt,{[`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=fa;j.options=ha;j.className=Bt;j.defaultOptions=Ne;var Na=require("react/jsx-runtime");var M=require("react/jsx-runtime"),tt="k-actionsheet-item",ya=[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)(y,{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=ya;ot.className=tt;var Gt=require("react/jsx-runtime");var La=require("react/jsx-runtime");var Sa=require("react/jsx-runtime");var va=require("react/jsx-runtime");var _t=require("react/jsx-runtime"),$t="k-data-table",wa=[],ga={size:[r.small,r.medium,r.large]},Ft={size:r.medium},K=e=>{let{size:t=Ft.size,...o}=e;return(0,_t.jsx)("div",{...o,className:a(e.className,$t,x("k-table",{size:t})),children:e.children})};K.states=wa;K.options=ga;K.className=$t;K.defaultOptions=Ft;var ze=require("react/jsx-runtime"),Ma="k-table-header",ye=e=>(0,ze.jsx)("div",{className:a(e.className,Ma),children:(0,ze.jsx)("div",{className:"k-table-header-wrap",children:(0,ze.jsx)(_,{children:e.children})})});var Jt=require("react/jsx-runtime"),Ia="k-table-body",Le=e=>(0,Jt.jsx)("div",{className:a(e.className,Ia,"k-table-scroller"),children:e.children});var Xt=require("react/jsx-runtime"),Aa="k-table-footer",Pe=e=>(0,Xt.jsx)("div",{className:a(e.className,Aa),children:e.children});var qt=require("react/jsx-runtime"),at="k-table",Ra=[],ka={size:[r.small,r.medium,r.large]},Ha={},_=e=>{let{size:t,...o}=e;return(0,qt.jsx)("table",{...o,className:a(e.className,at,x(at,{size:t})),children:e.children})};_.states=Ra;_.options=ka;_.className=at;_.defaultOptions=Ha;var Ut=require("react/jsx-runtime"),lt="k-table-list",Da=[],Ea={size:[r.small,r.medium,r.large]},Oa={},J=e=>{let{size:t,virtualization:o,...s}=e;return(0,Ut.jsx)("ul",{...s,className:a(e.className,"k-table",lt,x(lt,{size:t}),{"k-virtual-table":o}),children:e.children})};J.states=Da;J.options=Ea;J.className=lt;J.defaultOptions=Oa;var Wt=require("react/jsx-runtime"),Ca="k-table-thead",de=e=>(0,Wt.jsx)("thead",{className:a(e.className,Ca),children:e.children});var za=require("react/jsx-runtime");var Pa=require("react/jsx-runtime");var Qt=require("react/jsx-runtime"),st="k-table-row",Ka=[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,Qt.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=Ka;X.className=st;var Yt=require("react/jsx-runtime"),nt="k-table-row",Ba=[l.hover,l.focus,l.selected,l.disabled],H=e=>{let{hover:t,focus:o,selected:s,disabled:i,alt:d,...p}=e;return(0,Yt.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})};H.states=Ba;H.className=nt;var Zt=require("react/jsx-runtime"),Ga="k-table-th",q=e=>{let{text:t,colspan:o,rowspan:s,...i}=e,d=t||e.children;return(0,Zt.jsx)("th",{colSpan:o,rowSpan:s,...i,className:a(e.className,Ga),children:d})};var jt=require("react/jsx-runtime"),Va="k-table-th",Ke=e=>{let{text:t,...o}=e,s=t||e.children;return(0,jt.jsx)("span",{...o,className:a(e.className,Va),children:s})};var $a=require("react/jsx-runtime");var eo=require("react/jsx-runtime"),Fa="k-table-td",f=e=>{let{text:t,...o}=e,s=t||e.children;return(0,eo.jsx)("span",{...o,className:a(e.className,Fa),children:s})};var _a=require("react/jsx-runtime");var to=require("react/jsx-runtime"),Ja="k-table-group-sticky-header",it=e=>(0,to.jsx)("div",{className:a(e.className,Ja),children:e.children});var Xa=require("react/jsx-runtime");var oo=require("react/jsx-runtime"),qa="k-table-group-row",rt=e=>(0,oo.jsx)("li",{className:a(e.className,qa),children:e.children});var ao=require("react/jsx-runtime");var lo=require("react/jsx-runtime");var so=require("react/jsx-runtime");var dt=require("react/jsx-runtime");var n=require("react/jsx-runtime"),no="k-dropdowngrid",Za=[l.hover,l.focus,l.valid,l.invalid,l.required,l.disabled,l.loading,l.readonly],ja={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:L,valid:v,invalid:D,required:E,loading:I,disabled:A,popup:ee,opened:B,readonly:U,adaptive:we,adaptiveSettings:Be,adaptiveTitle:ro,adaptiveSubtitle:co,...po}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(N,{...po,size:t,rounded:o,fillMode:s,hover:h,focus:L,valid:v,invalid:D,required:E,loading:I,disabled:A,readonly:U,className:a(e.className,no,"k-combobox"),children:[d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ee,{children:d}),i&&(0,n.jsx)(oe,{})]}),(0,n.jsx)(z,{placeholder:u,value:b}),(0,n.jsx)(P,{valid:v,invalid:D,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)(Oe,{children:p})]}),(0,n.jsx)(k,{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)(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:b,inputPlaceholder:u,title:ro,subtitle:co}),children:(0,n.jsx)("div",{className:"k-list-container",children:(0,n.jsxs)(K,{size:"large",children:[(0,n.jsxs)(ye,{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)(Le,{children:(0,n.jsxs)(J,{children:[(0,n.jsxs)(H,{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)(H,{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)(H,{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)(H,{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)(H,{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)(H,{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=Za;ve.options=ja;ve.className=no;ve.defaultOptions=Se;var io=ve;var ce=require("react/jsx-runtime"),el=e=>(0,ce.jsx)(io,{suffix:(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsx)(ut,{icon:"copy",fillMode:"clear"})}),...e});