UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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