@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 21.7 kB
JavaScript
var dt=Object.create;var se=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var ut=Object.getPrototypeOf,mt=Object.prototype.hasOwnProperty;var ft=(e,t)=>{for(var o in t)se(e,o,{get:t[o],enumerable:!0})},Oe=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ct(t))!mt.call(e,a)&&a!==o&&se(e,a,{get:()=>t[a],enumerable:!(s=pt(t,a))||s.enumerable});return e};var gt=(e,t,o)=>(o=e!=null?dt(ut(e)):{},Oe(t||!e||!e.__esModule?se(o,"default",{value:e,enumerable:!0}):o,e)),bt=e=>Oe(se({},"__esModule",{value:!0}),e);var to={};ft(to,{UploadValidation:()=>eo});module.exports=bt(to);var r=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?r(...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 K=(e,t)=>r({[`${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.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),U=(e,t)=>{let{valid:o,invalid:s,hover:a,focus:l,checked:p,active:i,selected:f,disabled:x,indeterminate:b,loading:L,empty:M,readonly:oe,highlighted:me,...V}=t;return r({"k-valid":o,"k-invalid":s,"k-hover":a,"k-focus":l,"k-checked":p,"k-active":i,"k-selected":f,"k-disabled":x,"k-indeterminate":b&&!p,"k-loading":L,"k-empty":M,"k-readonly":oe,"k-highlighted":me},Object.keys(V).reduce((A,z)=>(z.startsWith("k-")?A[z]=V[z]:A[`k-${z}`]=V[z],A),{}))};function Ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(s=>[`k-${s}`,!0]))}var d={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},w={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},R={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},S={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},g={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",generating:"generating",expanded:"expanded"};var fe="action-buttons",Pe=fe;var _e=require("react/jsx-runtime"),ne="k-actions",ht=[],vt={},ge={alignment:"start",orientation:"horizontal"},F=e=>{let{alignment:t=ge.alignment,orientation:o=ge.orientation,...s}=e;return(0,_e.jsx)("div",{...s,className:r(ne,{[`${ne}-${t}`]:t,[`${ne}-${o}`]:o},e.className),children:e.children})};F.states=ht;F.options=vt;F.className=ne;F.defaultOptions=ge;F.moduleName=fe;F.folderName=Pe;var Te=F;var J=require("react/jsx-runtime"),be="k-font-icon",xt=[],kt={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Nt={},Q=e=>{let{size:t,themeColor:o,icon:s,rotate:a,flip:l,...p}=e;return s?(0,J.jsx)("span",{...p,className:r(e.className,be,K(be,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):(0,J.jsx)(J.Fragment,{})};Q.states=xt;Q.options=kt;Q.className=be;Q.defaultOptions=Nt;var Ee=Q;var D=require("react/jsx-runtime"),he="k-svg-icon",yt=[],Bt={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info],variant:[S.outline,S.solid,S.duotone]},ve={viewBox:"0 0 24 24",variant:S.outline},X=e=>{var L,M;let{size:t,themeColor:o,rotate:s,flip:a,viewBox:l=ve.viewBox,variant:p=ve.variant,icon:i,...f}=e;if(!i)return(0,D.jsx)(D.Fragment,{});if(i==="none")return(0,D.jsx)("span",{...f,className:r(e.className,he,K("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let x=typeof i=="object"&&i.name&&i.name,b=typeof i=="object"?p&&((L=i.variants)==null?void 0:L[p])||((M=i.variants)==null?void 0:M.outline)||i.content:void 0;return(0,D.jsx)("span",{...f,className:r(e.className,he,K("k-icon",{size:t}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:(0,D.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof i=="object"?i.viewBox:l,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:i?void 0:e.children})})};X.states=yt;X.options=Bt;X.className=he;X.defaultOptions=ve;var xe=X;var ke=gt(require("@progress/kendo-svg-icons"));var ze="icon",Ke="icons";var Fe=require("react");var we=require("react"),Re=(0,we.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),re="k-icon",Mt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),At=[],Ct={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info],variant:[S.outline,S.solid,S.duotone]},ie={viewBox:"0 0 24 24",type:"svg",variant:S.outline},h=e=>{let{iconsType:t}=(0,Fe.useContext)(Re),{size:o,themeColor:s,icon:a,type:l=t||ie.type,rotate:p,flip:i,viewBox:f=ie.viewBox,variant:x=ie.variant,...b}=e;if(!a)return(0,O.jsx)(O.Fragment,{});if((t||l)==="svg"){if(a==="none")return(0,O.jsx)(xe,{...b,className:r(e.className,re),icon:a,size:o,variant:x});let M=ke[a]?a:Mt(`${a}-icon`);return ke[M]?(0,O.jsx)(xe,{...b,className:r(e.className,re),icon:ke[M],size:o,themeColor:s,rotate:p,flip:i,viewBox:f,variant:x}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(Ee,{...b,className:r(e.className,re),icon:a,size:o,themeColor:s,rotate:p,flip:i})};h.states=At;h.options=Ct;h.defaultOptions=ie;h.className=re;h.moduleName=ze;h.folderName=Ke;h.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var Ne="button",De=Ne;var B=require("react/jsx-runtime"),Y="k-button",Ut=["icon-button"],St=[g.hover,g.focus,g.active,g.selected,g.disabled,g.generating],Lt={size:[d.undefined,d.xsmall,d.small,d.medium,d.large],rounded:[w.undefined,w.none,w.small,w.medium,w.large,w.full],fillMode:[R.undefined,R.solid,R.flat,R.outline,R.clear,R.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},ye={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:t="button",size:o,rounded:s,fillMode:a,themeColor:l,showArrow:p=ye.showArrow,arrowIconName:i=ye.arrowIconName,variant:f,hover:x,focus:b,active:L,selected:M,disabled:oe,togglable:me,ariaDisabled:V,icon:A,iconSize:z,text:ae,iconClassName:st,className:nt,...rt}=e,it=A!=null,lt=e.children!==void 0;return(0,B.jsxs)(t,{className:r(nt,Y,Ie(Y,f),K(Y,{size:o,rounded:s,fillMode:a,themeColor:l}),U(Y,{hover:x,focus:b,active:L,disabled:oe||V,selected:M}),{"k-icon-button":!ae&&!lt&&it}),"aria-pressed":me?M?"true":"false":void 0,...rt,"aria-disabled":V?"true":void 0,disabled:oe||void 0,children:[typeof A=="string"&&A&&(0,B.jsx)(h,{className:r(st,"k-button-icon"),icon:A,size:z}),A&&typeof A!="string"&&(0,B.jsx)(B.Fragment,{children:A}),ae?(0,B.jsxs)(B.Fragment,{children:[ae&&(0,B.jsx)("span",{className:"k-button-text",children:ae}),e.children]}):e.children&&(0,B.jsx)("span",{className:"k-button-text",children:e.children}),p&&(0,B.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,B.jsx)(h,{icon:i})})]})};c.states=St;c.options=Lt;c.variants=Ut;c.className=Y;c.defaultOptions=ye;c.moduleName=Ne;c.folderName=De;c.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var $e=require("react/jsx-runtime"),He=e=>(0,$e.jsx)(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Ge=require("react/jsx-runtime"),Ve=e=>(0,Ge.jsx)(c,{icon:"folder",children:"Button",...e});var We=require("react/jsx-runtime"),qe=e=>(0,We.jsx)(c,{children:"Button",...e});var le=require("react/jsx-runtime"),Ot=c.options,It=c.states,Pt={...c.defaultOptions,variant:"text"},Tt=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_t=[],G=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,le.jsx)(He,{...o,icon:"star"});case"icon-and-text":return(0,le.jsx)(Ve,{...o,icon:"star",children:"Button"});default:return(0,le.jsx)(qe,{...o,children:"Button"})}};G.options=Ot;G.states=It;G.variants=Tt;G.defaultOptions=Pt;G.modifiers=_t;G.className=c.className;var u=require("react/jsx-runtime"),Be="k-upload-dropzone",Et=[g.hover],de=e=>{let{hover:t,status:o,disabled:s,hasFiles:a,filesId:l,...p}=e,i;switch(o){case"uploading":i=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(h,{icon:"upload"}),"Uploading..."]});break;case"done":i=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(h,{icon:"check"}),"Done"]});break;case"failed":i=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(h,{icon:"exclamation-circle"}),"Done"]});break;default:i=(0,u.jsx)(u.Fragment,{});break}return(0,u.jsxs)("div",{...p,className:r(e.className,Be,"k-dropzone",U(Be,{hover:t})),children:[(0,u.jsxs)("div",{className:"k-upload-button-wrap",children:[(0,u.jsx)(c,{className:"k-upload-button","aria-disabled":s?"true":"false",...a&&l?{"aria-controls":l}:{},children:"Select files..."}),(0,u.jsx)("input",{id:"upload-input",className:"k-hidden",tabIndex:-1,"aria-hidden":"true"})]}),(0,u.jsx)("span",{className:r("k-dropzone-hint",{"k-hidden":o!=="upload"}),children:"Drop files here to upload"}),o!=="upload"&&(0,u.jsx)("span",{className:"k-upload-status",children:i})]})};de.states=Et;de.className=Be;var Me="upload",Ze=Me;var P=require("react/jsx-runtime"),Ae="k-upload",zt=[g.hover,g.disabled],Kt={},Qe={actionsLayout:"end"},Je="upload-files-list",m=e=>{let{async:t,empty:o,actions:s,actionsLayout:a=Qe.actionsLayout,hover:l,status:p,disabled:i,...f}=e,x=!!e.children;return(0,P.jsxs)("div",{...f,className:r(e.className,Ae,U(Ae,{disabled:i}),{"k-upload-async":t,"k-upload-empty":o}),children:[(0,P.jsx)(de,{status:p,hover:l,disabled:i,hasFiles:x,filesId:Je}),x&&(0,P.jsx)("ul",{className:"k-upload-files",role:"list",id:Je,children:e.children}),s&&x&&(0,P.jsxs)(Te,{alignment:a,orientation:"horizontal",children:[(0,P.jsx)(c,{className:"k-clear-selected",children:"Clear"}),(0,P.jsx)(c,{themeColor:"primary",className:"k-upload-selected",children:"Upload"})]})]})};m.states=zt;m.options=Kt;m.className=Ae;m.defaultOptions=Qe;m.moduleName=Me;m.folderName=Ze;m.ariaSpec={selector:".k-upload",rules:[{selector:".k-upload .k-upload-button",attribute:"aria-disabled",usage:"Announces the disabled state of the upload button."},{selector:".k-upload .k-upload-button",attribute:"aria-controls (when present)",usage:"Creates the relationship between the button and the list of selected files when the list is present."},{selector:".k-upload input",attribute:"tabindex=-1",usage:"Assures that the input element inside the upload is not focusable."},{selector:".k-upload input",attribute:"aria-hidden=true",usage:"The input needs to be hidden from screen readers."},{selector:".k-upload-files",attribute:"role=list",usage:"Explicitly sets the UL role to list."},{selector:".k-upload-files",attribute:"id",usage:"Unique and deterministic id linked to the button aria-controls attribute."},{selector:".k-upload-files .k-file",attribute:"role=listitem",usage:"Explicitly sets the LI role to listitem."},{selector:".k-upload .k-file .k-file-validation-message",attribute:"aria-live=polite",usage:"Announces the change in the upload status of the file."},{selector:".k-upload .k-upload-actions .k-upload-action",attribute:"aria-label",usage:"Provides accessible names for the file action buttons."},{selector:".k-upload .k-upload-actions .k-upload-action",attribute:"tabindex=-1",usage:"The list file action buttons are not focusable elements."}]};var j="progressbar",pe=j;var T=require("react/jsx-runtime"),C="k-progressbar",wt=[g.disabled,g.indeterminate],Rt={orientation:["horizontal","vertical"]},H={indeterminate:!1,label:!0,labelPosition:"start",orientation:"horizontal",reverse:!1,value:"0"},k=e=>{let{disabled:t,height:o,indeterminate:s=H.indeterminate,label:a=H.label,labelPosition:l=H.labelPosition,orientation:p=H.orientation,reverse:i=H.reverse,value:f=H.value,width:x,style:b,ariaLabel:L,...M}=e;return(0,T.jsxs)("div",{...M,className:r(e.className,C,U(C,{disabled:t}),{[`${C}-${p}`]:p,[`${C}-indeterminate`]:s,[`${C}-reverse`]:i}),style:{...b,"--kendo-progressbar-value":f,[p==="horizontal"?"height":"width"]:p==="horizontal"?o:x},role:"progressbar","aria-label":L||"progress","aria-valuenow":s?void 0:Number(f),"aria-valuemin":0,"aria-valuemax":100,children:[(0,T.jsx)("span",{className:r("k-progress-status-wrap",{[`k-progress-${l}`]:l&&!s}),children:a&&(0,T.jsxs)("span",{className:"k-progress-status",children:[f,"%"]})}),!s&&(0,T.jsx)("div",{className:"k-progressbar-value k-selected",children:(0,T.jsx)("span",{className:r("k-progress-status-wrap",{[`k-progress-${l}`]:l}),children:a&&(0,T.jsxs)("span",{className:"k-progress-status",children:[e.value,"%"]})})})]})};k.states=wt;k.options=Rt;k.className=C;k.defaultOptions=H;k.moduleName=j;k.folderName=pe;k.ariaSpec={selector:".k-progressbar",implicitRole:"progressbar",rules:[{selector:".k-progressbar",attribute:"role=progressbar",usage:"Sets the proper role for ProgressBar."},{selector:".k-progressbar",attribute:"aria-label or aria-labelledby",usage:"The ProgressBar needs an accessible name to be assigned to it."},{selector:".k-progressbar:not(.k-progressbar-indeterminate)",attribute:"aria-valuenow",usage:"Required if the value is not indeterminate. Decimal value between aria-valuemin and aria-valuemax."},{selector:".k-progressbar",attribute:"aria-valuemin",usage:"Minimum value. Defaults to 0."},{selector:".k-progressbar",attribute:"aria-valuemax",usage:"Maximum value. Defaults to 100."}]};var Xe=k;var ue=require("react/jsx-runtime"),Ye="k-chunk-progressbar",Ft=(e,t)=>t<=e-1,Dt=[g.disabled,g.indeterminate],Ht={},ce={chunkCount:5,orientation:"horizontal",progress:0},$=e=>{let{disabled:t,chunkCount:o=ce.chunkCount,indeterminate:s,orientation:a=ce.orientation,progress:l=ce.progress,reverse:p,ariaLabel:i,...f}=e;return(0,ue.jsx)("div",{...f,className:r(e.className,C,Ye,U(C,{disabled:t}),{[`${C}-${a}`]:a,[`${C}-indeterminate`]:s,[`${C}-reverse`]:p}),role:"progressbar","aria-label":i||"progress","aria-valuenow":s?void 0:l,"aria-valuemin":0,"aria-valuemax":o,children:(0,ue.jsx)("ul",{className:"k-progressbar-chunks k-reset",children:[...Array(o)].map((x,b)=>(0,ue.jsx)("li",{className:r("k-progressbar-chunk",{"k-first":b===0,"k-last":b===[...Array(o)].length-1,"k-selected":Ft(l,b)})},b))})})};$.states=Dt;$.options=Ht;$.className=Ye;$.defaultOptions=ce;$.moduleName=j;$.folderName=pe;$.ariaSpec={selector:".k-chunk-progressbar",implicitRole:"progressbar",rules:[{selector:".k-chunk-progressbar",attribute:"role=progressbar",usage:"Sets the proper role for ChunkProgressBar."},{selector:".k-chunk-progressbar",attribute:"aria-label or aria-labelledby",usage:"The ChunkProgressBar needs an accessible name to be assigned to it."},{selector:".k-chunk-progressbar:not(.k-progressbar-indeterminate)",attribute:"aria-valuenow",usage:"Required if the value is not indeterminate. Value between aria-valuemin and aria-valuemax."},{selector:".k-chunk-progressbar",attribute:"aria-valuemin",usage:"Minimum value. Defaults to 0."},{selector:".k-chunk-progressbar",attribute:"aria-valuemax",usage:"Maximum value. Defaults to chunk count."}]};var je=require("react/jsx-runtime"),ee=e=>(0,je.jsx)(Xe,{...e});var $t=require("react/jsx-runtime");var I=require("react/jsx-runtime"),Vt=k.options,Gt=k.states,et={...k.defaultOptions,variant:"start"},qt=[{name:"start",title:"Label start"},{name:"center",title:"Label center"},{name:"end",title:"Label end"},{name:"empty",title:"No label"}],Wt=[],q=e=>{let{variant:t,modifiers:o,...s}={...et,...e},a={},l={style:{width:"324px"}};switch(Object.keys(o||{}).forEach(p=>{switch(p){case"reverse":a.reverse=!!(o!=null&&o[p]);break;case"vertical":a.orientation=o!=null&&o[p]?"vertical":void 0,l.style=o!=null&&o[p]?void 0:{width:"324px"};break}}),t){case"end":return(0,I.jsx)("div",{...l,children:(0,I.jsx)(ee,{...s,...a,labelPosition:"end",value:"50"})});case"center":return(0,I.jsx)("div",{...l,children:(0,I.jsx)(ee,{...s,...a,labelPosition:"center",value:"50"})});case"empty":return(0,I.jsx)("div",{...l,children:(0,I.jsx)(ee,{...s,...a,label:!1,value:"50"})});default:return(0,I.jsx)("div",{...l,children:(0,I.jsx)(ee,{...s,...a,labelPosition:"start",value:"50"})})}};q.options=Vt;q.states=Gt;q.variants=qt;q.defaultOptions=et;q.modifiers=Wt;q.className=k.className;var W=require("react/jsx-runtime"),Zt="k-file-info",Ce=e=>{let{name:t,size:o,validationMsg:s,...a}=e;return(0,W.jsxs)("div",{...a,className:r(e.className,Zt),children:[t&&(0,W.jsx)("span",{className:"k-file-name",children:t}),o&&(0,W.jsx)("span",{className:"k-file-size",children:o}),s&&(0,W.jsx)("span",{className:"k-file-validation-message","aria-live":"polite",children:s})]})};var v=require("react/jsx-runtime"),Jt="k-file",N=e=>{let{status:t,progress:o,name:s,icon:a,size:l,state:p,validationMsg:i,...f}=e;return(0,v.jsx)("li",{...f,className:r(e.className,Jt,{[`k-file-${t}`]:t}),role:"listitem",tabIndex:0,children:(0,v.jsxs)("div",{className:"k-file-single",children:[(0,v.jsx)(k,{className:r({"k-hidden":t!=="progress"}),value:o,label:!1}),(0,v.jsxs)("span",{className:"k-file-icon-wrapper",children:[(0,v.jsx)(h,{className:"k-file-icon",icon:a,size:"xxlarge"}),p&&(0,v.jsx)("span",{className:"k-file-state",children:p})]}),(0,v.jsx)(Ce,{name:s,size:l,validationMsg:i}),(0,v.jsx)("div",{className:"k-upload-actions",children:t==="progress"?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("span",{className:"k-upload-pct",children:[o,"%"]}),(0,v.jsx)(c,{icon:"pause-sm",fillMode:"flat",size:"xsmall",className:"k-upload-action","aria-label":"Pause upload",tabIndex:-1}),(0,v.jsx)(c,{icon:"cancel",fillMode:"flat",size:"xsmall",className:"k-upload-action","aria-label":"Cancel upload",tabIndex:-1})]}):(0,v.jsx)(c,{icon:"x",fillMode:"flat",size:"xsmall",className:"k-upload-action","aria-label":"Remove file",tabIndex:-1})})]})})};var Ue=require("react/jsx-runtime");var _=require("react/jsx-runtime"),te=e=>(0,_.jsx)(m,{async:!0,children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(N,{name:"Image_With_Very_Very_Very_Very_Very_Long_Name1.png",icon:"file-image",size:"51.23 KB"}),(0,_.jsx)(N,{name:"Image2.jpg",icon:"file-image",size:"106.43 KB"})]}),...e});var Se=require("react/jsx-runtime");var ot=require("react/jsx-runtime"),tt=e=>(0,ot.jsx)(m,{async:!0,empty:!0,...e});var Le=require("react/jsx-runtime");var y=require("react/jsx-runtime"),Qt=m.options,Xt=m.states,at={...m.defaultOptions,variant:"empty"},Yt=[{name:"empty",title:"Empty"},{name:"upload",title:"Upload"},{name:"uploading",title:"Uploading"},{name:"success",title:"Success"},{name:"failed",title:"Failed"}],jt=[],Z=e=>{let{variant:t,...o}={...at,...e};switch(t){case"success":return(0,y.jsxs)(te,{status:"done",style:{width:"586px"},...o,children:[(0,y.jsx)(N,{status:"success",validationMsg:"File(s) uploaded successfully.",name:"Image1.png",icon:"file-image"}),(0,y.jsx)(N,{status:"success",validationMsg:"File(s) uploaded successfully.",name:"Image2.png",icon:"file-image"})]});case"failed":return(0,y.jsxs)(te,{status:"failed",style:{width:"586px"},...o,children:[(0,y.jsx)(N,{status:"error",validationMsg:"File type not allowed.",name:"Movie1.mkv",icon:"file-image"}),(0,y.jsx)(N,{status:"error",validationMsg:"File type not allowed.",name:"Video2.mkv",icon:"file-image"})]});case"uploading":return(0,y.jsxs)(te,{status:"uploading",style:{width:"586px"},...o,children:[(0,y.jsx)(N,{progress:"50",status:"progress",name:"Document1.txt",icon:"file-pdf",size:"328.92 KB"}),(0,y.jsx)(N,{progress:"70",status:"progress",name:"Document2.txt",icon:"file-pdf",size:"225.68 KB"})]});case"upload":return(0,y.jsxs)(te,{actions:!0,status:"upload",style:{width:"586px"},...o,children:[(0,y.jsx)(N,{name:"Image1.png",icon:"file-image",size:"51.23 KB"}),(0,y.jsx)(N,{name:"Image2.jpg",icon:"file-image",size:"106.43 KB"})]});default:return(0,y.jsx)(tt,{async:!0,status:"upload",style:{width:"586px"},...o})}};Z.options=Qt;Z.states=Xt;Z.variants=Yt;Z.defaultOptions=at;Z.modifiers=jt;Z.className=m.className;var E=require("react/jsx-runtime"),eo=e=>(0,E.jsx)(m,{async:!0,children:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(N,{name:"Invalid_File.exe",icon:"file",size:"51.23 KB",validationMsg:"File type not allowed"}),(0,E.jsx)(N,{name:"Image2.jpg",icon:"file-image",size:"106.43 KB"})]}),...e});