UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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