UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 27.7 kB
var lo=Object.create;var Ee=Object.defineProperty;var co=Object.getOwnPropertyDescriptor;var po=Object.getOwnPropertyNames;var mo=Object.getPrototypeOf,uo=Object.prototype.hasOwnProperty;var fo=(e,t)=>{for(var o in t)Ee(e,o,{get:t[o],enumerable:!0})},xt=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of po(t))!uo.call(e,n)&&n!==o&&Ee(e,n,{get:()=>t[n],enumerable:!(a=co(t,n))||a.enumerable});return e};var xo=(e,t,o)=>(o=e!=null?lo(mo(e)):{},xt(t||!e||!e.__esModule?Ee(o,"default",{value:e,enumerable:!0}):o,e)),ho=e=>xt(Ee({},"__esModule",{value:!0}),e);var Xn={};fo(Xn,{ActionSheetNormal:()=>Fe});module.exports=ho(Xn);var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var g=(e,t)=>i({[`${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"}),X=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:r,checked:p,active:c,selected:u,disabled:f,indeterminate:b,loading:v,empty:A,readonly:U,highlighted:$,...L}=t;return i({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":r,"k-checked":p,"k-active":c,"k-selected":u,"k-disabled":f,"k-indeterminate":b&&!p,"k-loading":v,"k-empty":A,"k-readonly":U,"k-highlighted":$},Object.keys(L).reduce((T,_)=>(_.startsWith("k-")?T[_]=L[_]:T[`k-${_}`]=L[_],T),{}))};function ht(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},h={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},K={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},d={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},s={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 qe="popup",bt=qe;var Ge=require("react/jsx-runtime"),Nt="k-animation-container",bo=[],No={},Je={positionMode:"absolute",shown:!0},q=e=>{let{positionMode:t=Je.positionMode,shown:o=Je.shown,animationStyle:a,offset:n,...r}=e;return(0,Ge.jsx)("div",{...r,style:{...n,...e.style},className:i(e.className,Nt,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,Ge.jsx)("div",{className:"k-child-animation-container",style:a,children:e.children})})};q.states=bo;q.options=No;q.className=Nt;q.defaultOptions=Je;q.moduleName=qe;q.folderName=bt;var Ye="action-buttons",vt=Ye;var St=require("react/jsx-runtime"),Me="k-actions",vo=[],So={},We={alignment:"start",orientation:"horizontal"},J=e=>{let{alignment:t=We.alignment,orientation:o=We.orientation,...a}=e;return(0,St.jsx)("div",{...a,className:i(Me,{[`${Me}-${t}`]:t,[`${Me}-${o}`]:o},e.className),children:e.children})};J.states=vo;J.options=So;J.className=Me;J.defaultOptions=We;J.moduleName=Ye;J.folderName=vt;var It=require("react/jsx-runtime"),Ao="k-actionsheet-footer",At={alignment:"stretched",orientation:"horizontal"},te=e=>{let{alignment:t=At.alignment,orientation:o=At.orientation,template:a,as:n=a?"div":J,...r}=e;return(0,It.jsx)(n,{...r,...!a&&{alignment:t,orientation:o},className:i(e.className,Ao),children:e.children})};var me="input",Oe=me;var gt=require("react/jsx-runtime"),ke="k-input",Io=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],go={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},To={},y=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:p,readonly:c,size:u,rounded:f,fillMode:b,...v}=e;return(0,gt.jsx)("span",{...v,className:i(e.className,ke,g(ke,{size:u,rounded:f,fillMode:b}),X(ke,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:p,readonly:c}))})};y.states=Io;y.options=go;y.className=ke;y.defaultOptions=To;y.moduleName=me;y.folderName=Oe;var Tt=require("react/jsx-runtime"),Ce="k-picker",yo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Eo={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Mo={},oe=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:p,readonly:c,size:u,rounded:f,fillMode:b,...v}=e;return(0,Tt.jsx)("span",{...v,className:i(e.className,Ce,g(Ce,{size:u,rounded:f,fillMode:b}),X(Ce,{hover:t,focus:o,disabled:a,invalid:n,valid:r,loading:p,readonly:c})),children:e.children})};oe.states=yo;oe.options=Eo;oe.className=Ce;oe.defaultOptions=Mo;oe.moduleName=me;oe.folderName=Oe;var ue=require("react/jsx-runtime"),Qe="k-font-icon",Oo=[],ko={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[d.undefined,d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info]},Co={},fe=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:r,...p}=e;return a?(0,ue.jsx)("span",{...p,className:i(e.className,Qe,g(Qe,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):(0,ue.jsx)(ue.Fragment,{})};fe.states=Oo;fe.options=ko;fe.className=Qe;fe.defaultOptions=Co;var yt=fe;var Z=require("react/jsx-runtime"),Ze="k-svg-icon",Lo=[],_o={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[d.undefined,d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info],variant:[K.outline,K.solid,K.duotone]},je={viewBox:"0 0 24 24",variant:K.outline},xe=e=>{var v,A;let{size:t,themeColor:o,rotate:a,flip:n,viewBox:r=je.viewBox,variant:p=je.variant,icon:c,...u}=e;if(!c)return(0,Z.jsx)(Z.Fragment,{});if(c==="none")return(0,Z.jsx)("span",{...u,className:i(e.className,Ze,g("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let f=typeof c=="object"&&c.name&&c.name,b=typeof c=="object"?p&&((v=c.variants)==null?void 0:v[p])||((A=c.variants)==null?void 0:A.outline)||c.content:void 0;return(0,Z.jsx)("span",{...u,className:i(e.className,Ze,g("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:(0,Z.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:r,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:c?void 0:e.children})})};xe.states=Lo;xe.options=_o;xe.className=Ze;xe.defaultOptions=je;var et=xe;var tt=xo(require("@progress/kendo-svg-icons"));var Et="icon",Mt="icons";var Ct=require("react");var Ot=require("react"),kt=(0,Ot.createContext)({iconsType:"svg"});var z=require("react/jsx-runtime"),Le="k-icon",Ro=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ho=[],wo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[d.undefined,d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info],variant:[K.outline,K.solid,K.duotone]},_e={viewBox:"0 0 24 24",type:"svg",variant:K.outline},N=e=>{let{iconsType:t}=(0,Ct.useContext)(kt),{size:o,themeColor:a,icon:n,type:r=t||_e.type,rotate:p,flip:c,viewBox:u=_e.viewBox,variant:f=_e.variant,...b}=e;if(!n)return(0,z.jsx)(z.Fragment,{});if((t||r)==="svg"){if(n==="none")return(0,z.jsx)(et,{...b,className:i(e.className,Le),icon:n,size:o,variant:f});let A=tt[n]?n:Ro(`${n}-icon`);return tt[A]?(0,z.jsx)(et,{...b,className:i(e.className,Le),icon:tt[A],size:o,themeColor:a,rotate:p,flip:c,viewBox:u,variant:f}):(0,z.jsx)(z.Fragment,{})}return(0,z.jsx)(yt,{...b,className:i(e.className,Le),icon:n,size:o,themeColor:a,rotate:p,flip:c})};N.states=Ho;N.options=wo;N.defaultOptions=_e;N.className=Le;N.moduleName=Et;N.folderName=Mt;N.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=require("react/jsx-runtime"),Lt="k-clear-value",Ko=[s.disabled,s.loading,s.readonly],Po={},D=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?(0,ne.jsx)(ne.Fragment,{}):(0,ne.jsx)("span",{className:i(e.className,Lt),children:(0,ne.jsx)(N,{icon:"x"})})};D.states=Ko;D.options=Po;D.className=Lt;var _t=require("react/jsx-runtime"),ot="k-input-inner",Bo=[],zo={},Re={type:"text",autocomplete:"off",value:"",placeholder:""},F=e=>{let{value:t=Re.value,type:o=Re.type,placeholder:a=Re.placeholder,autocomplete:n=Re.autocomplete,disabled:r,readOnly:p,...c}=e;return(0,_t.jsx)("input",{...c,type:o,className:i(e.className,ot,g(ot,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:r||void 0,readOnly:p||void 0})};F.states=Bo;F.options=zo;F.className=ot;var he=require("react/jsx-runtime"),nt="k-input-inner",Do=[],Fo={},at=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:r,...p}=e;return(0,he.jsxs)("span",{...p,className:i(e.className,nt,g(nt,e)),children:[n,!n&&r&&(0,he.jsx)(N,{className:"k-input-value-icon",icon:r}),a&&!t&&o,a&&t&&(0,he.jsx)("span",{className:"k-input-value-text",children:t})]})};at.states=Do;at.options=Fo;at.className=nt;var Ht=require("react/jsx-runtime"),it="k-input-inner",Vo=[],Uo={},Rt={value:"",placeholder:""},st=e=>{let{value:t=Rt.value,placeholder:o=Rt.placeholder,rows:a,disabled:n,...r}=e;return(0,Ht.jsx)("textarea",{...r,className:i(e.className,it,g(it,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};st.states=Vo;st.options=Uo;st.className=it;var be=require("react/jsx-runtime"),wt="k-input-loading-icon",$o=[s.disabled,s.loading],G=e=>{let{disabled:t,loading:o}=e;return t||!o?(0,be.jsx)(be.Fragment,{}):(0,be.jsx)("span",{className:i(e.className,wt,"k-icon k-i-loading")})};G.states=$o;G.className=wt;var Ne=require("react/jsx-runtime"),Kt="k-input-validation-icon",Xo=[s.valid,s.invalid,s.disabled,s.loading],qo={},V=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,r=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?(0,Ne.jsx)(Ne.Fragment,{}):(0,Ne.jsx)(N,{className:i(Kt),icon:r})};V.states=Xo;V.options=qo;V.className=Kt;var ve=require("react/jsx-runtime"),Jo="k-input-prefix",Go={direction:"horizontal"},He=e=>{let{direction:t=Go.direction,...o}=e;return e.children?(0,ve.jsx)("span",{...o,className:i(Jo,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):(0,ve.jsx)(ve.Fragment,{})};var Se=require("react/jsx-runtime"),Yo="k-input-suffix",Wo={direction:"horizontal"},we=e=>{let{direction:t=Wo.direction,...o}=e;return e.children?(0,Se.jsx)("span",{...o,className:i(Yo,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):(0,Se.jsx)(Se.Fragment,{})};var Qo=require("react/jsx-runtime");var Zo=require("react/jsx-runtime");var Bt=require("react/jsx-runtime"),Pt="k-input-separator",jo={direction:"vertical"},ae=e=>{let{direction:t=jo.direction,...o}=e;return(0,Bt.jsx)("span",{...o,className:i(Pt,e.className,{[`${Pt}-${t}`]:t})})};var rt="button",zt=rt;var k=require("react/jsx-runtime"),Ae="k-button",en=["icon-button"],tn=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],on={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[d.undefined,d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.inverse]},lt={showArrow:!1,arrowIconName:"chevron-down"},x=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:r,showArrow:p=lt.showArrow,arrowIconName:c=lt.arrowIconName,variant:u,hover:f,focus:b,active:v,selected:A,disabled:U,togglable:$,ariaDisabled:L,icon:T,iconSize:_,text:w,iconClassName:ye,className:Ve,...Ue}=e,$e=T!=null,Xe=e.children!==void 0;return(0,k.jsxs)(t,{className:i(Ve,Ae,ht(Ae,u),g(Ae,{size:o,rounded:a,fillMode:n,themeColor:r}),X(Ae,{hover:f,focus:b,active:v,disabled:U||L,selected:A}),{"k-icon-button":!w&&!Xe&&$e}),"aria-pressed":$?A?"true":"false":void 0,...Ue,"aria-disabled":L?"true":void 0,disabled:U||void 0,children:[typeof T=="string"&&T&&(0,k.jsx)(N,{className:i(ye,"k-button-icon"),icon:T,size:_}),T&&typeof T!="string"&&(0,k.jsx)(k.Fragment,{children:T}),w?(0,k.jsxs)(k.Fragment,{children:[w&&(0,k.jsx)("span",{className:"k-button-text",children:w}),e.children]}):e.children&&(0,k.jsx)("span",{className:"k-button-text",children:e.children}),p&&(0,k.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,k.jsx)(N,{icon:c})})]})};x.states=tn;x.options=on;x.variants=en;x.className=Ae;x.defaultOptions=lt;x.moduleName=rt;x.folderName=zt;x.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 Dt=require("react/jsx-runtime"),j=e=>(0,Dt.jsx)(x,{children:"Button",...e});var I=require("react/jsx-runtime"),nn=y.states,an=y.defaultOptions,sn=y.options,rn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],ln=[],ie=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:r,readonly:p,...c}=e,u=t==null?void 0:t.prefix,f=t==null?void 0:t.suffix,b=t==null?void 0:t["clear-button"],v=t==null?void 0:t["validation-icon"],A=t==null?void 0:t.separators;return(0,I.jsxs)(y,{...c,valid:o,invalid:a,loading:n,disabled:r,readonly:p,style:{width:300},children:[u&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(He,{children:(0,I.jsx)(N,{icon:"lock"})}),A&&(0,I.jsx)(ae,{})]}),(0,I.jsx)(F,{placeholder:"Placeholder",value:"Value"}),v&&(0,I.jsx)(V,{valid:o,invalid:a,loading:n,disabled:r}),(0,I.jsx)(G,{loading:n,disabled:r}),b&&(0,I.jsx)(D,{loading:n,disabled:r,readonly:p,value:"Value"}),f&&(0,I.jsxs)(I.Fragment,{children:[A&&(0,I.jsx)(ae,{}),(0,I.jsx)(we,{children:(0,I.jsx)(j,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};ie.options=sn;ie.states=nn;ie.variants=ln;ie.defaultOptions=an;ie.modifiers=rn;ie.className=y.className;var ct="searchbox",Ft=ct;var Y=require("react/jsx-runtime"),Vt="k-searchbox",cn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],dn={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},dt={showIcon:!0,icon:"search"},W=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:r,hover:p,focus:c,valid:u,invalid:f,required:b,loading:v,disabled:A,showIcon:U=dt.showIcon,icon:$=dt.icon,"aria-label":L,...T}=e;return(0,Y.jsxs)(y,{...T,size:a,rounded:n,fillMode:r,hover:p,focus:c,valid:u,invalid:f,required:b,loading:v,disabled:A,className:i(e.className,Vt),children:[U&&(0,Y.jsx)(N,{className:"k-input-icon",icon:$}),(0,Y.jsx)(F,{placeholder:o,value:t,"aria-label":L}),(0,Y.jsx)(G,{...e}),(0,Y.jsx)(V,{...e}),(0,Y.jsx)(D,{...e})]})};W.states=cn;W.options=dn;W.className=Vt;W.defaultOptions=dt;W.moduleName=ct;W.folderName=Ft;var pn=require("react/jsx-runtime");var pt="textbox",Ut=pt;var E=require("react/jsx-runtime"),$t="k-textbox",mn=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],un={size:[l.undefined,l.small,l.medium,l.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Ke={showClearButton:!0,showValidationIcon:!0,separators:!0},O=e=>{let{size:t,rounded:o,fillMode:a,separators:n=Ke.separators,showClearButton:r=Ke.showClearButton,showValidationIcon:p=Ke.showValidationIcon,prefix:c,suffix:u,type:f,value:b,placeholder:v,hover:A,focus:U,valid:$,invalid:L,required:T,loading:_,disabled:w,readonly:ye,id:Ve,"aria-label":Ue,"aria-describedby":$e,...Xe}=e;return(0,E.jsxs)(y,{...Xe,size:t,rounded:o,fillMode:a,hover:A,focus:U,valid:$,invalid:L,required:T,loading:_,disabled:w,readonly:ye,className:i(e.className,$t),children:[c&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(He,{children:c}),n&&(0,E.jsx)(ae,{})]}),(0,E.jsx)(F,{id:Ve,placeholder:v,value:b,type:f,disabled:w,"aria-label":Ue,"aria-describedby":$e,"aria-invalid":L?"true":void 0}),p&&(0,E.jsx)(V,{valid:$,invalid:L,loading:_,disabled:w}),(0,E.jsx)(G,{loading:_,disabled:w}),r&&(0,E.jsx)(D,{loading:_,disabled:w,readonly:ye,value:b}),u&&(0,E.jsxs)(E.Fragment,{children:[n&&(0,E.jsx)(ae,{}),(0,E.jsx)(we,{children:u})]})]})};O.states=mn;O.options=un;O.className=$t;O.defaultOptions=Ke;O.moduleName=pt;O.folderName=Ut;O.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var Ie=O;var qt=require("react/jsx-runtime"),Xt=e=>(0,qt.jsx)(Ie,{...e});var Jt=require("react/jsx-runtime");var Yt=require("react/jsx-runtime"),Gt=e=>(0,Yt.jsx)(x,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Qt=require("react/jsx-runtime"),Wt=e=>(0,Qt.jsx)(x,{icon:"folder",children:"Button",...e});var Pe=require("react/jsx-runtime"),fn=x.options,xn=x.states,hn={...x.defaultOptions,variant:"text"},bn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Nn=[],se=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,Pe.jsx)(Gt,{...o,icon:"star"});case"icon-and-text":return(0,Pe.jsx)(Wt,{...o,icon:"star",children:"Button"});default:return(0,Pe.jsx)(j,{...o,children:"Button"})}};se.options=fn;se.states=xn;se.variants=bn;se.defaultOptions=hn;se.modifiers=Nn;se.className=x.className;var Zt=require("react/jsx-runtime");var vn=require("react/jsx-runtime");var Be=require("react/jsx-runtime"),Sn=O.states,An=O.defaultOptions,In=O.options,gn=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Tn=[],re=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t!=null&&t[n]?(0,Be.jsx)(N,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t!=null&&t[n]?(0,Be.jsx)(j,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t==null?void 0:t[n];break;default:break}}),(0,Be.jsx)(Xt,{value:"Value",style:{width:300},...o,...a})};re.options=In;re.states=Sn;re.variants=Tn;re.defaultOptions=An;re.modifiers=gn;re.className=O.className;var C=require("react/jsx-runtime"),jt="k-actionsheet-titlebar",yn={},P=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:r,input:p,inputValue:c,inputPlaceholder:u,adaptive:f,titleId:b,children:v,...A}=e;return(0,C.jsxs)("div",{...A,className:i(e.className,jt),children:[(0,C.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,C.jsx)("div",{className:"k-actionsheet-actions",children:a}),!v&&(0,C.jsxs)("div",{className:"k-actionsheet-title",id:b,children:[t&&(0,C.jsx)("div",{className:"k-text-center",children:t}),o&&(0,C.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),v&&(0,C.jsx)("div",{className:"k-actionsheet-title",id:b,children:v}),n&&(0,C.jsx)("div",{className:"k-actionsheet-actions",children:n})]}),(p||r)&&(0,C.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?(0,C.jsx)(O,{value:c,placeholder:u,size:f?"large":"medium","aria-label":t||u||"Input"}):(0,C.jsx)(W,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};P.className=jt;P.defaultOptions=yn;var le=require("react/jsx-runtime"),mt="k-actionsheet-view",En=[],Mn={},On={},ce=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:r,titleId:p,...c}=e,u=(n==null?void 0:n.type)===P&&(0,le.jsx)(P,{adaptive:t,titleId:p,...n==null?void 0:n.props}),f=(r==null?void 0:r.type)===te&&(0,le.jsx)(te,{...r==null?void 0:r.props});return(0,le.jsxs)("div",{...c,className:i(e.className,mt,{[`${mt}-animated`]:o}),children:[u,(0,le.jsx)("div",{className:"k-actionsheet-content",children:a}),f]})};ce.states=En;ce.options=Mn;ce.className=mt;ce.defaultOptions=On;var ge="action-sheet",ze=ge;var ut="overlay",eo=ut;var oo=require("react/jsx-runtime"),to="k-overlay",kn=[],Cn={},Ln={},Q=e=>{let{...t}=e;return(0,oo.jsx)("div",{...t,className:i(e.className,to),children:e.children})};Q.states=kn;Q.options=Cn;Q.className=to;Q.defaultOptions=Ln;Q.moduleName=ut;Q.folderName=eo;var ee=require("react/jsx-runtime"),no="k-actionsheet",_n=[],Rn={},Te={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},M=e=>{let{side:t=Te.side,fullscreen:o=Te.fullscreen,adaptive:a=Te.adaptive,overlay:n=Te.overlay,template:r,children:p,header:c,footer:u,id:f,...b}=e,v=f&&!r&&c?`${f}-title`:void 0;return(0,ee.jsxs)("div",{className:"k-actionsheet-container",children:[n&&(0,ee.jsx)(Q,{}),(0,ee.jsx)(q,{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",{...b,id:f,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":v,className:i(e.className,no,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:r||(0,ee.jsx)(ce,{header:c,footer:u,adaptive:a,titleId:v,...e,children:p})})})]})};M.states=_n;M.options=Rn;M.className=no;M.defaultOptions=Te;M.moduleName=ge;M.folderName=ze;M.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};var io=require("react/jsx-runtime"),ao="k-actionsheet-container",Hn=[],wn={},Kn={},de=e=>{let{children:t,...o}=e;return(0,io.jsx)("div",{...o,className:ao,children:t})};de.states=Hn;de.options=wn;de.className=ao;de.defaultOptions=Kn;de.moduleName=ge;de.folderName=ze;var so=require("react/jsx-runtime"),De=e=>{let{...t}=e;return(0,so.jsx)("div",{...t,className:i(e.className,"k-list-ul"),children:e.children})};var R=require("react/jsx-runtime"),ft="k-actionsheet-item",Pn=[s.hover,s.focus,s.selected,s.disabled],H=e=>{let{iconName:t,text:o,description:a,hover:n,focus:r,selected:p,disabled:c,...u}=e;return(0,R.jsxs)("span",{...u,className:i(e.className,ft,X(ft,{hover:n,focus:r,selected:p,disabled:c})),children:[!e.children&&(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("span",{className:"k-actionsheet-action",children:[t&&(0,R.jsx)("span",{className:"k-icon-wrap",children:(0,R.jsx)(N,{className:"k-actionsheet-item-icon",icon:t})}),(0,R.jsxs)("span",{className:"k-actionsheet-item-text",children:[o&&(0,R.jsx)("span",{className:"k-actionsheet-item-title",children:o}),a&&(0,R.jsx)("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};H.states=Pn;H.className=ft;var Bn=require("react/jsx-runtime");var zn=require("react/jsx-runtime");var Dn=require("react/jsx-runtime");var S=require("react/jsx-runtime"),Fn=M.options,Vn=M.states,ro={...M.defaultOptions,variant:"normal"},Un=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],$n=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],pe=e=>{let{variant:t,modifiers:o,...a}={...ro,...e},n={},r=(0,S.jsxs)(De,{children:[(0,S.jsx)(H,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,S.jsx)(H,{text:"Add to Favorites",iconName:"heart"}),(0,S.jsx)(H,{text:"Upload New",iconName:"upload",disabled:!0}),(0,S.jsx)("hr",{className:"k-hr"}),(0,S.jsx)(H,{text:"Cancel",iconName:"cancel"})]}),p="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":n.actionsStart=!!(o!=null&&o[u]),n.actionsEnd=!!(o!=null&&o[u]);break;case"subtitle":n.subtitle=o!=null&&o[u]?p:void 0;break;case"footer":n.footer=!!(o!=null&&o[u]);break;default:break}}),t==="adaptive"?(0,S.jsx)(M,{...a,adaptive:!0,fullscreen:n.fullScreen,header:(0,S.jsx)(P,{actionsStart:n.actionsStart?(0,S.jsx)(x,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,S.jsx)(x,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?(0,S.jsxs)(te,{alignment:"stretched",children:[(0,S.jsx)(x,{text:"Cancel",size:"large",themeColor:"base"}),(0,S.jsx)(x,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):(0,S.jsx)(M,{...a,fullscreen:n.fullScreen,header:(0,S.jsx)(P,{actionsStart:n.actionsStart?(0,S.jsx)(x,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?(0,S.jsx)(x,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?(0,S.jsxs)(te,{alignment:"stretched",children:[(0,S.jsx)(x,{text:"Apply",themeColor:"primary"}),(0,S.jsx)(x,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};pe.options=Fn;pe.states=Vn;pe.variants=Un;pe.defaultOptions=ro;pe.modifiers=$n;pe.className=M.className;var B=require("react/jsx-runtime"),Fe=({title:e="Select item",id:t="actionsheet-1",...o})=>(0,B.jsx)(M,{id:t,header:(0,B.jsx)(P,{title:e}),children:[(0,B.jsxs)(De,{children:[(0,B.jsx)(H,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,B.jsx)(H,{text:"Add to Favorites",iconName:"heart"}),(0,B.jsx)(H,{text:"Upload New",iconName:"upload"}),(0,B.jsx)("hr",{className:"k-hr"}),(0,B.jsx)(H,{text:"Action",iconName:"cancel"})]},"action-sheet-items")],...o});