UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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