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