@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 21.2 kB
JavaScript
var Bt=Object.create;var me=Object.defineProperty;var Rt=Object.getOwnPropertyDescriptor;var wt=Object.getOwnPropertyNames;var Pt=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty;var Ht=(t,e)=>{for(var o in e)me(t,o,{get:e[o],enumerable:!0})},We=(t,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of wt(e))!_t.call(t,n)&&n!==o&&me(t,n,{get:()=>e[n],enumerable:!(a=Rt(e,n))||a.enumerable});return t};var zt=(t,e,o)=>(o=t!=null?Bt(Pt(t)):{},We(e||!t||!t.__esModule?me(o,"default",{value:t,enumerable:!0}):o,t)),Kt=t=>We(me({},"__esModule",{value:!0}),t);var Yo={};Ht(Yo,{ACTIONSHEETVIEW_CLASSNAME:()=>Oe,ActionSheetView:()=>j,default:()=>Qo});module.exports=Kt(Yo);var r=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?r(...e):typeof e=="object"?Object.keys(e).map((o,a)=>e[a]||e[o]&&o||null).filter(o=>o!==null).join(" "):e).filter(e=>!!e).join(" ");var S=(t,e)=>r({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${e.themeColor}`]:e.themeColor},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full","k-rounded-none":e.rounded==="none"}),X=(t,e)=>{let{valid:o,invalid:a,hover:n,focus:l,checked:u,active:c,selected:f,disabled:x,indeterminate:b,loading:N,empty:v,readonly:H,highlighted:z,...E}=e;return r({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":l,"k-checked":u,"k-active":c,"k-selected":f,"k-disabled":x,"k-indeterminate":b&&!u,"k-loading":N,"k-empty":v,"k-readonly":H,"k-highlighted":z},Object.keys(E).reduce((T,C)=>(C.startsWith("k-")?T[C]=E[C]:T[`k-${C}`]=E[C],T),{}))};function Qe(t,e){if(!e)return{};let o=Array.isArray(e)?e:[e];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var s={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},p={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},m={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},B={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"},i={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 Le="action-buttons",Ye=Le;var Ze=require("react/jsx-runtime"),fe="k-actions",Vt=[],Dt={},Be={alignment:"start",orientation:"horizontal"},K=t=>{let{alignment:e=Be.alignment,orientation:o=Be.orientation,...a}=t;return(0,Ze.jsx)("div",{...a,className:r(fe,{[`${fe}-${e}`]:e,[`${fe}-${o}`]:o},t.className),children:t.children})};K.states=Vt;K.options=Dt;K.className=fe;K.defaultOptions=Be;K.moduleName=Le;K.folderName=Ye;var et=require("react/jsx-runtime"),Ft="k-actionsheet-footer",je={alignment:"stretched",orientation:"horizontal"},Re=t=>{let{alignment:e=je.alignment,orientation:o=je.orientation,template:a,as:n=a?"div":K,...l}=t;return(0,et.jsx)(n,{...l,...!a&&{alignment:e,orientation:o},className:r(t.className,Ft),children:t.children})};var ee="input",xe=ee;var tt=require("react/jsx-runtime"),be="k-input",Ut=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],$t={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[m.undefined,m.solid,m.flat,m.outline]},Xt={},y=t=>{let{hover:e,focus:o,disabled:a,invalid:n,valid:l,loading:u,readonly:c,size:f,rounded:x,fillMode:b,...N}=t;return(0,tt.jsx)("span",{...N,className:r(t.className,be,S(be,{size:f,rounded:x,fillMode:b}),X(be,{hover:e,focus:o,disabled:a,invalid:n,valid:l,loading:u,readonly:c}))})};y.states=Ut;y.options=$t;y.className=be;y.defaultOptions=Xt;y.moduleName=ee;y.folderName=xe;var ot=require("react/jsx-runtime"),he="k-picker",qt=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Jt={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[m.undefined,m.solid,m.flat,m.outline]},Gt={},q=t=>{let{hover:e,focus:o,disabled:a,invalid:n,valid:l,loading:u,readonly:c,size:f,rounded:x,fillMode:b,...N}=t;return(0,ot.jsx)("span",{...N,className:r(t.className,he,S(he,{size:f,rounded:x,fillMode:b}),X(he,{hover:e,focus:o,disabled:a,invalid:n,valid:l,loading:u,readonly:c})),children:t.children})};q.states=qt;q.options=Jt;q.className=he;q.defaultOptions=Gt;q.moduleName=ee;q.folderName=xe;var te=require("react/jsx-runtime"),we="k-font-icon",Wt=[],Qt={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[d.undefined,d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info]},Yt={},oe=t=>{let{size:e,themeColor:o,icon:a,rotate:n,flip:l,...u}=t;return a?(0,te.jsx)("span",{...u,className:r(t.className,we,S(we,{size:e}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):(0,te.jsx)(te.Fragment,{})};oe.states=Wt;oe.options=Qt;oe.className=we;oe.defaultOptions=Yt;var nt=oe;var U=require("react/jsx-runtime"),Pe="k-svg-icon",Zt=[],jt={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[d.undefined,d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info],variant:[B.outline,B.solid,B.duotone]},_e={viewBox:"0 0 24 24",variant:B.outline},ne=t=>{var N,v;let{size:e,themeColor:o,rotate:a,flip:n,viewBox:l=_e.viewBox,variant:u=_e.variant,icon:c,...f}=t;if(!c)return(0,U.jsx)(U.Fragment,{});if(c==="none")return(0,U.jsx)("span",{...f,className:r(t.className,Pe,S("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,b=typeof c=="object"?u&&((N=c.variants)==null?void 0:N[u])||((v=c.variants)==null?void 0:v.outline)||c.content:void 0;return(0,U.jsx)("span",{...f,className:r(t.className,Pe,S("k-icon",{size:e}),{[`k-svg-i-${x}`]:x,[`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,U.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:c?void 0:t.children})})};ne.states=Zt;ne.options=jt;ne.className=Pe;ne.defaultOptions=_e;var He=ne;var ze=zt(require("@progress/kendo-svg-icons"));var at="icon",it="icons";var lt=require("react");var st=require("react"),rt=(0,st.createContext)({iconsType:"svg"});var R=require("react/jsx-runtime"),Ne="k-icon",eo=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),to=[],oo={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[d.undefined,d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info],variant:[B.outline,B.solid,B.duotone]},ve={viewBox:"0 0 24 24",type:"svg",variant:B.outline},h=t=>{let{iconsType:e}=(0,lt.useContext)(rt),{size:o,themeColor:a,icon:n,type:l=e||ve.type,rotate:u,flip:c,viewBox:f=ve.viewBox,variant:x=ve.variant,...b}=t;if(!n)return(0,R.jsx)(R.Fragment,{});if((e||l)==="svg"){if(n==="none")return(0,R.jsx)(He,{...b,className:r(t.className,Ne),icon:n,size:o,variant:x});let v=ze[n]?n:eo(`${n}-icon`);return ze[v]?(0,R.jsx)(He,{...b,className:r(t.className,Ne),icon:ze[v],size:o,themeColor:a,rotate:u,flip:c,viewBox:f,variant:x}):(0,R.jsx)(R.Fragment,{})}return(0,R.jsx)(nt,{...b,className:r(t.className,Ne),icon:n,size:o,themeColor:a,rotate:u,flip:c})};h.states=to;h.options=oo;h.defaultOptions=ve;h.className=Ne;h.moduleName=at;h.folderName=it;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 J=require("react/jsx-runtime"),dt="k-clear-value",no=[i.disabled,i.loading,i.readonly],ao={},w=t=>{let{disabled:e,loading:o,readonly:a,value:n}=t;return e||a||o||!n?(0,J.jsx)(J.Fragment,{}):(0,J.jsx)("span",{className:r(t.className,dt),children:(0,J.jsx)(h,{icon:"x"})})};w.states=no;w.options=ao;w.className=dt;var ct=require("react/jsx-runtime"),Ke="k-input-inner",io=[],so={},ge={type:"text",autocomplete:"off",value:"",placeholder:""},P=t=>{let{value:e=ge.value,type:o=ge.type,placeholder:a=ge.placeholder,autocomplete:n=ge.autocomplete,disabled:l,readOnly:u,...c}=t;return(0,ct.jsx)("input",{...c,type:o,className:r(t.className,Ke,S(Ke,t)),placeholder:a,autoComplete:n,defaultValue:e,disabled:l||void 0,readOnly:u||void 0})};P.states=io;P.options=so;P.className=Ke;var ae=require("react/jsx-runtime"),Ve="k-input-inner",ro=[],lo={},De=t=>{let{value:e,placeholder:o,showValue:a,valueIcon:n,valueIconName:l,...u}=t;return(0,ae.jsxs)("span",{...u,className:r(t.className,Ve,S(Ve,t)),children:[n,!n&&l&&(0,ae.jsx)(h,{className:"k-input-value-icon",icon:l}),a&&!e&&o,a&&e&&(0,ae.jsx)("span",{className:"k-input-value-text",children:e})]})};De.states=ro;De.options=lo;De.className=Ve;var ut=require("react/jsx-runtime"),Fe="k-input-inner",co=[],po={},pt={value:"",placeholder:""},Ue=t=>{let{value:e=pt.value,placeholder:o=pt.placeholder,rows:a,disabled:n,...l}=t;return(0,ut.jsx)("textarea",{...l,className:r(t.className,Fe,S(Fe,t)),placeholder:o,rows:a,defaultValue:e,disabled:n||void 0})};Ue.states=co;Ue.options=po;Ue.className=Fe;var ie=require("react/jsx-runtime"),mt="k-input-loading-icon",uo=[i.disabled,i.loading],V=t=>{let{disabled:e,loading:o}=t;return e||!o?(0,ie.jsx)(ie.Fragment,{}):(0,ie.jsx)("span",{className:r(t.className,mt,"k-icon k-i-loading")})};V.states=uo;V.className=mt;var se=require("react/jsx-runtime"),ft="k-input-validation-icon",mo=[i.valid,i.invalid,i.disabled,i.loading],fo={},_=t=>{let{valid:e,invalid:o,disabled:a,loading:n}=t,l=o?"warning-circle":"check-circle";return a||n||!!!(e||o)?(0,se.jsx)(se.Fragment,{}):(0,se.jsx)(h,{className:r(ft),icon:l})};_.states=mo;_.options=fo;_.className=ft;var re=require("react/jsx-runtime"),xo="k-input-prefix",bo={direction:"horizontal"},Ie=t=>{let{direction:e=bo.direction,...o}=t;return t.children?(0,re.jsx)("span",{...o,className:r(xo,t.className,{[`k-input-prefix-${e}`]:e}),children:t.children}):(0,re.jsx)(re.Fragment,{})};var le=require("react/jsx-runtime"),ho="k-input-suffix",No={direction:"horizontal"},Se=t=>{let{direction:e=No.direction,...o}=t;return t.children?(0,le.jsx)("span",{...o,className:r(ho,t.className,{[`k-input-suffix-${e}`]:e}),children:t.children}):(0,le.jsx)(le.Fragment,{})};var vo=require("react/jsx-runtime");var go=require("react/jsx-runtime");var bt=require("react/jsx-runtime"),xt="k-input-separator",Io={direction:"vertical"},G=t=>{let{direction:e=Io.direction,...o}=t;return(0,bt.jsx)("span",{...o,className:r(xt,t.className,{[`${xt}-${e}`]:e})})};var $e="button",ht=$e;var k=require("react/jsx-runtime"),de="k-button",So=["icon-button"],To=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],yo={size:[s.undefined,s.xsmall,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[m.undefined,m.solid,m.flat,m.outline,m.clear,m.link],themeColor:[d.undefined,d.base,d.primary,d.secondary,d.tertiary,d.success,d.warning,d.error,d.info,d.inverse]},Xe={showArrow:!1,arrowIconName:"chevron-down"},g=t=>{let{as:e="button",size:o,rounded:a,fillMode:n,themeColor:l,showArrow:u=Xe.showArrow,arrowIconName:c=Xe.arrowIconName,variant:f,hover:x,focus:b,active:N,selected:v,disabled:H,togglable:z,ariaDisabled:E,icon:T,iconSize:C,text:L,iconClassName:ue,className:ke,...Ae}=t,Ee=T!=null,Ce=t.children!==void 0;return(0,k.jsxs)(e,{className:r(ke,de,Qe(de,f),S(de,{size:o,rounded:a,fillMode:n,themeColor:l}),X(de,{hover:x,focus:b,active:N,disabled:H||E,selected:v}),{"k-icon-button":!L&&!Ce&&Ee}),"aria-pressed":z?v?"true":"false":void 0,...Ae,"aria-disabled":E?"true":void 0,disabled:H||void 0,children:[typeof T=="string"&&T&&(0,k.jsx)(h,{className:r(ue,"k-button-icon"),icon:T,size:C}),T&&typeof T!="string"&&(0,k.jsx)(k.Fragment,{children:T}),L?(0,k.jsxs)(k.Fragment,{children:[L&&(0,k.jsx)("span",{className:"k-button-text",children:L}),t.children]}):t.children&&(0,k.jsx)("span",{className:"k-button-text",children:t.children}),u&&(0,k.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,k.jsx)(h,{icon:c})})]})};g.states=To;g.options=yo;g.variants=So;g.className=de;g.defaultOptions=Xe;g.moduleName=$e;g.folderName=ht;g.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 Nt=require("react/jsx-runtime"),$=t=>(0,Nt.jsx)(g,{children:"Button",...t});var I=require("react/jsx-runtime"),Mo=y.states,Oo=y.defaultOptions,ko=y.options,Ao=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Eo=[],W=t=>{let{modifiers:e,valid:o,invalid:a,loading:n,disabled:l,readonly:u,...c}=t,f=e==null?void 0:e.prefix,x=e==null?void 0:e.suffix,b=e==null?void 0:e["clear-button"],N=e==null?void 0:e["validation-icon"],v=e==null?void 0:e.separators;return(0,I.jsxs)(y,{...c,valid:o,invalid:a,loading:n,disabled:l,readonly:u,style:{width:300},children:[f&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ie,{children:(0,I.jsx)(h,{icon:"lock"})}),v&&(0,I.jsx)(G,{})]}),(0,I.jsx)(P,{placeholder:"Placeholder",value:"Value"}),N&&(0,I.jsx)(_,{valid:o,invalid:a,loading:n,disabled:l}),(0,I.jsx)(V,{loading:n,disabled:l}),b&&(0,I.jsx)(w,{loading:n,disabled:l,readonly:u,value:"Value"}),x&&(0,I.jsxs)(I.Fragment,{children:[v&&(0,I.jsx)(G,{}),(0,I.jsx)(Se,{children:(0,I.jsx)($,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};W.options=ko;W.states=Mo;W.variants=Eo;W.defaultOptions=Oo;W.modifiers=Ao;W.className=y.className;var qe="searchbox",vt=qe;var D=require("react/jsx-runtime"),gt="k-searchbox",Co=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Lo={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[m.undefined,m.solid,m.flat,m.outline]},Je={showIcon:!0,icon:"search"},F=t=>{let{value:e,placeholder:o,size:a,rounded:n,fillMode:l,hover:u,focus:c,valid:f,invalid:x,required:b,loading:N,disabled:v,showIcon:H=Je.showIcon,icon:z=Je.icon,"aria-label":E,...T}=t;return(0,D.jsxs)(y,{...T,size:a,rounded:n,fillMode:l,hover:u,focus:c,valid:f,invalid:x,required:b,loading:N,disabled:v,className:r(t.className,gt),children:[H&&(0,D.jsx)(h,{className:"k-input-icon",icon:z}),(0,D.jsx)(P,{placeholder:o,value:e,"aria-label":E}),(0,D.jsx)(V,{...t}),(0,D.jsx)(_,{...t}),(0,D.jsx)(w,{...t})]})};F.states=Co;F.options=Lo;F.className=gt;F.defaultOptions=Je;F.moduleName=qe;F.folderName=vt;var Bo=require("react/jsx-runtime");var Ge="textbox",It=Ge;var M=require("react/jsx-runtime"),St="k-textbox",Ro=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],wo={size:[s.undefined,s.small,s.medium,s.large],rounded:[p.undefined,p.none,p.small,p.medium,p.large,p.full],fillMode:[m.undefined,m.solid,m.flat,m.outline]},Te={showClearButton:!0,showValidationIcon:!0,separators:!0},O=t=>{let{size:e,rounded:o,fillMode:a,separators:n=Te.separators,showClearButton:l=Te.showClearButton,showValidationIcon:u=Te.showValidationIcon,prefix:c,suffix:f,type:x,value:b,placeholder:N,hover:v,focus:H,valid:z,invalid:E,required:T,loading:C,disabled:L,readonly:ue,id:ke,"aria-label":Ae,"aria-describedby":Ee,...Ce}=t;return(0,M.jsxs)(y,{...Ce,size:e,rounded:o,fillMode:a,hover:v,focus:H,valid:z,invalid:E,required:T,loading:C,disabled:L,readonly:ue,className:r(t.className,St),children:[c&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(Ie,{children:c}),n&&(0,M.jsx)(G,{})]}),(0,M.jsx)(P,{id:ke,placeholder:N,value:b,type:x,disabled:L,"aria-label":Ae,"aria-describedby":Ee,"aria-invalid":E?"true":void 0}),u&&(0,M.jsx)(_,{valid:z,invalid:E,loading:C,disabled:L}),(0,M.jsx)(V,{loading:C,disabled:L}),l&&(0,M.jsx)(w,{loading:C,disabled:L,readonly:ue,value:b}),f&&(0,M.jsxs)(M.Fragment,{children:[n&&(0,M.jsx)(G,{}),(0,M.jsx)(Se,{children:f})]})]})};O.states=Ro;O.options=wo;O.className=St;O.defaultOptions=Te;O.moduleName=Ge;O.folderName=It;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 ce=O;var yt=require("react/jsx-runtime"),Tt=t=>(0,yt.jsx)(ce,{...t});var Mt=require("react/jsx-runtime");var kt=require("react/jsx-runtime"),Ot=t=>(0,kt.jsx)(g,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});var Et=require("react/jsx-runtime"),At=t=>(0,Et.jsx)(g,{icon:"folder",children:"Button",...t});var ye=require("react/jsx-runtime"),Po=g.options,_o=g.states,Ho={...g.defaultOptions,variant:"text"},zo=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ko=[],Q=t=>{let{variant:e,...o}=t;switch(e){case"icon-only":return(0,ye.jsx)(Ot,{...o,icon:"star"});case"icon-and-text":return(0,ye.jsx)(At,{...o,icon:"star",children:"Button"});default:return(0,ye.jsx)($,{...o,children:"Button"})}};Q.options=Po;Q.states=_o;Q.variants=zo;Q.defaultOptions=Ho;Q.modifiers=Ko;Q.className=g.className;var Ct=require("react/jsx-runtime");var Vo=require("react/jsx-runtime");var Me=require("react/jsx-runtime"),Do=O.states,Fo=O.defaultOptions,Uo=O.options,$o=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Xo=[],Y=t=>{let{modifiers:e,...o}=t,a={};return Object.keys(e||{}).forEach(n=>{switch(n){case"prefix":a.prefix=e!=null&&e[n]?(0,Me.jsx)(h,{icon:"lock"}):void 0;break;case"suffix":a.suffix=e!=null&&e[n]?(0,Me.jsx)($,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=e==null?void 0:e[n];break;default:break}}),(0,Me.jsx)(Tt,{value:"Value",style:{width:300},...o,...a})};Y.options=Uo;Y.states=Do;Y.variants=Xo;Y.defaultOptions=Fo;Y.modifiers=$o;Y.className=O.className;var A=require("react/jsx-runtime"),Lt="k-actionsheet-titlebar",qo={},pe=t=>{let{title:e,subtitle:o,actionsStart:a,actionsEnd:n,filter:l,input:u,inputValue:c,inputPlaceholder:f,adaptive:x,titleId:b,children:N,...v}=t;return(0,A.jsxs)("div",{...v,className:r(t.className,Lt),children:[(0,A.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[a&&(0,A.jsx)("div",{className:"k-actionsheet-actions",children:a}),!N&&(0,A.jsxs)("div",{className:"k-actionsheet-title",id:b,children:[e&&(0,A.jsx)("div",{className:"k-text-center",children:e}),o&&(0,A.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&(0,A.jsx)("div",{className:"k-actionsheet-title",id:b,children:N}),n&&(0,A.jsx)("div",{className:"k-actionsheet-actions",children:n})]}),(u||l)&&(0,A.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:u?(0,A.jsx)(O,{value:c,placeholder:f,size:x?"large":"medium","aria-label":e||f||"Input"}):(0,A.jsx)(F,{placeholder:"Filter",size:x?"large":"medium","aria-label":"Filter options"})})]})};pe.className=Lt;pe.defaultOptions=qo;var Z=require("react/jsx-runtime"),Oe="k-actionsheet-view",Jo=[],Go={},Wo={},j=t=>{let{adaptive:e,animated:o,children:a,header:n,footer:l,titleId:u,...c}=t,f=(n==null?void 0:n.type)===pe&&(0,Z.jsx)(pe,{adaptive:e,titleId:u,...n==null?void 0:n.props}),x=(l==null?void 0:l.type)===Re&&(0,Z.jsx)(Re,{...l==null?void 0:l.props});return(0,Z.jsxs)("div",{...c,className:r(t.className,Oe,{[`${Oe}-animated`]:o}),children:[f,(0,Z.jsx)("div",{className:"k-actionsheet-content",children:a}),x]})};j.states=Jo;j.options=Go;j.className=Oe;j.defaultOptions=Wo;var Qo=j;