@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 25.4 kB
JavaScript
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var S=(e,t)=>n({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),g=(e,t)=>n({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={small:"small",medium:"medium",large:"large",full:"full"},x={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},c={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",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"};import{jsx as ao}from"react/jsx-runtime";var io="k-no-data",re=e=>ao("span",{className:n(io,e.className),children:e.children});import{jsx as W,jsxs as pt}from"react/jsx-runtime";var He="k-list",ro=[],lo={size:[a.small,a.medium,a.large]},ct={size:a.medium},z=e=>{let{size:t=ct.size,virtualization:o,children:i,optionLabel:r,customValue:l,screenReaders:p,...f}=e,d,u,b,L,N=[];return i?i.map((v,E)=>{v.type===C?(v.props.root===!0?(d=v.props.label,v.props.children.map((T,A)=>{N.push(W(h,{...T.props},`optChild-${A}-${new Date().getTime()}`))})):v.props.children.forEach((T,A)=>{let M="";A===0&&(M=v.props.label),N.push(W(h,{className:A===0?"k-first":"",...T.props,groupLabel:M},`groupLabel-${A}-${new Date().getTime()}`))}),u=W(C,{label:d,virtualization:o,children:N})):v.type===h&&(N.push(W(h,{...v.props},`${v.type}-${E}`)),b=W(Q,{virtualization:o,children:N}),p&&(L=pt(re,{className:"k-sr-only",children:[N.length," items found."]})))}):L=W(re,{children:"No data found."}),pt("div",{...f,className:n(e.className,He,S(He,{size:t}),{"k-virtual-list":o}),children:[r,l,u,b,L]})};z.states=ro;z.options=lo;z.className=He;z.defaultOptions=ct;import{jsx as $,jsxs as mo}from"react/jsx-runtime";var Ke="k-list",po=[],co={size:[a.small,a.medium,a.large]},dt={size:a.medium},D=e=>{let{size:t=dt.size,virtualization:o,children:i,...r}=e,l,p,f,d=[];return i?i.map((u,b)=>{u.type===C?(u.props.root===!0?(l=u.props.label,u.props.children.map((L,N)=>{d.push($(h,{...L.props},`optChild-${N}-${new Date().getTime()}`))})):(d.push($(mt,{...u.props,children:u.props.label},`listChild-${b}`)),u.props.children.map((L,N)=>{d.push($(h,{...L.props},`fwOptChild-${N}-${new Date().getTime()}`))})),p=$(C,{label:l,virtualization:o,children:d})):u.type===h&&(d.push($(h,{...u.props},`${u.type}-${b}`)),f=$(Q,{virtualization:o,children:d}))}):f=$(re,{children:"No data found."}),mo("div",{...r,className:n(e.className,Ke,S(Ke,{size:t}),{"k-virtual-list":o}),children:[p,f]})};D.states=po;D.options=co;D.className=Ke;D.defaultOptions=dt;import{jsx as ut}from"react/jsx-runtime";var be="k-checkbox",uo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],fo={size:[a.small,a.medium,a.large],rounded:[m.small,m.medium,m.large,m.full]},Re={size:a.medium,rounded:m.medium},K=e=>{let{id:t,checked:o,indeterminate:i,hover:r,focus:l,disabled:p,invalid:f,valid:d,required:u,size:b=Re.size,rounded:L=Re.rounded,...N}=e;return ut("span",{className:"k-checkbox-wrap",children:ut("input",{...N,id:t,type:"checkbox",defaultChecked:o,required:u,className:n(e.className,be,S(be,{size:b,rounded:L}),g(be,{hover:r,focus:l,disabled:p,invalid:f,valid:d,indeterminate:i,checked:o}))})})};K.states=uo;K.options=fo;K.className=be;K.defaultOptions=Re;import{jsx as bo}from"react/jsx-runtime";var ft="k-checkbox-list",ho=[],xo={},ht={layout:"vertical"},Y=e=>{let{layout:t=ht.layout,...o}=e;return bo("ul",{...o,className:n(e.className,ft,{[`k-list-${t}`]:t}),children:e.children})};Y.states=ho;Y.options=xo;Y.className=ft;Y.defaultOptions=ht;import{jsx as So}from"react/jsx-runtime";var xt="k-checkbox-list-item",Lo=[],No={},vo={},Z=e=>{let{...t}=e;return So("li",{...t,className:n(e.className,xt),children:e.children})};Z.states=Lo;Z.options=No;Z.className=xt;Z.defaultOptions=vo;import{Fragment as Vn,jsx as Gn,jsxs as Bn}from"react/jsx-runtime";import{Fragment as Fn,jsx as Xn,jsxs as Jn}from"react/jsx-runtime";import{Fragment as Yn,jsx as Qn,jsxs as Zn}from"react/jsx-runtime";import{Fragment as si,jsx as oi,jsxs as ni}from"react/jsx-runtime";import{jsx as li}from"react/jsx-runtime";import{jsx as mi}from"react/jsx-runtime";import{Fragment as yo,jsx as bt}from"react/jsx-runtime";var Pe="k-icon k-font-icon",Io=[],go={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},ko={},le=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:l,...p}=e;return i?bt("span",{...p,className:n(e.className,Pe,S(Pe,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):bt(yo,{})};le.states=Io;le.options=go;le.className=Pe;le.defaultOptions=ko;var Lt=le;import{Fragment as Co,jsx as Le}from"react/jsx-runtime";var Ge="k-icon k-svg-icon",Ao=[],Mo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Nt={viewBox:"0 0 24 24"},pe=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=Nt.viewBox,icon:p,...f}=e;if(!p)return Le(Co,{});p==="none"&&{...f,className:n(e.className,Ge,"k-none")};let d=typeof p=="object"&&p.name&&p.name;return Le("span",{...f,className:n(e.className,Ge,S("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Le("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:l,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};pe.states=Ao;pe.options=Mo;pe.className=Ge;pe.defaultOptions=Nt;var Ve=pe;import*as vt from"@progress/kendo-svg-icons";import{Fragment as St,jsx as ce}from"react/jsx-runtime";var To=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),zo=[],Eo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark]},Be={viewBox:"0 0 24 24",type:"svg"},I=e=>{let{size:t,themeColor:o,icon:i,type:r=Be.type,rotate:l,flip:p,viewBox:f=Be.viewBox,...d}=e;if(!i)return ce(St,{});if(r==="svg"){if(i==="none")return ce(Ve,{...d,icon:i,size:t});let u=To(`${i}-icon`);return vt[u]?ce(Ve,{...d,icon:vt[u],size:t,themeColor:o,rotate:l,flip:p,viewBox:f}):ce(St,{})}return ce(Lt,{...d,icon:i,size:t,themeColor:o,rotate:l,flip:p})};I.states=zo;I.options=Eo;I.defaultOptions=Be;import{jsx as Ne,jsxs as Ro}from"react/jsx-runtime";var $e="k-list-item",Oo=[s.hover,s.focus,s.selected,s.disabled],Ho={},Ko={},h=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:l,showCheckbox:p,checked:f,hover:d,focus:u,selected:b,disabled:L,...N}=e,v=t||e.children;return Ro("li",{...N,className:n(e.className,i?"k-list-group-item":$e,g($e,{hover:d,focus:u,disabled:L,selected:b})),children:[p&&Ne(K,{checked:f}),r&&Ne(I,{icon:l}),Ne("span",{className:"k-list-item-text",children:v}),o&&o!==""&&Ne("div",{className:"k-list-item-group-label",children:o})]})};h.states=Oo;h.options=Ho;h.className=$e;h.defaultOptions=Ko;import{jsx as De,jsxs as Po}from"react/jsx-runtime";var wo="k-list-content",Q=e=>{let{virtualization:t,...o}=e;return Po("div",{...o,className:n(wo,e.className),children:[De("ul",{className:n("k-list-ul"),children:e.children}),t&&De("div",{className:"k-height-container",children:De("div",{})})]})};import{jsx as It}from"react/jsx-runtime";var Go="k-list-group-sticky-header",gt=e=>It("div",{className:n(Go,e.className),children:It("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Vo,jsx as kt,jsxs as Bo}from"react/jsx-runtime";var C=e=>{let{virtualization:t,label:o}=e;return Bo(Vo,{children:[o&&kt(gt,{children:o}),e.children&&kt(Q,{virtualization:t,children:e.children})]})};import{jsx as yt}from"react/jsx-runtime";var $o="k-list-group-item",mt=e=>yt("li",{className:n($o,e.className),children:yt("span",{className:"k-list-item-text",children:e.children})});import{jsx as Fo}from"react/jsx-runtime";var _e="k-list-optionlabel",Do=[s.hover,s.focus,s.selected,s.disabled],_o={},Xo={},ve=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return Fo("div",{...p,className:n(_e,g(_e,{hover:o,focus:i,selected:r,disabled:l})),children:t})};ve.states=Do;ve.options=_o;ve.className=_e;ve.defaultOptions=Xo;import{jsx as Wo}from"react/jsx-runtime";var Xe="k-list-custom-value",Jo=[s.hover,s.focus,s.selected,s.disabled],qo={},Uo={},Se=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return Wo("div",{...p,className:n(Xe,g(Xe,{hover:o,focus:i,selected:r,disabled:l})),children:t})};Se.states=Jo;Se.options=qo;Se.className=Xe;Se.defaultOptions=Uo;import{jsx as ca}from"react/jsx-runtime";import{jsx as fa}from"react/jsx-runtime";import{jsx as La,jsxs as Na}from"react/jsx-runtime";import{jsx as ga,jsxs as ka}from"react/jsx-runtime";import{jsx as Ca}from"react/jsx-runtime";import{jsx as Oa,jsxs as Ha}from"react/jsx-runtime";import{jsx as Pa,jsxs as Ga}from"react/jsx-runtime";import{Fragment as Zo,jsx as de,jsxs as At}from"react/jsx-runtime";var Ie="k-button",Qo=[s.hover,s.focus,s.active,s.selected,s.disabled],Yo={size:[a.small,a.medium,a.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[c.base,c.primary,c.secondary,c.tertiary,c.success,c.warning,c.error,c.info,c.light,c.dark,c.inverse]},_={size:a.medium,rounded:m.medium,fillMode:x.solid,themeColor:c.base,showArrow:!1,arrowIconName:"caret-alt-down"},O=e=>{let{size:t=_.size,rounded:o=_.rounded,fillMode:i=_.fillMode,themeColor:r=_.themeColor,showArrow:l=_.showArrow,arrowIconName:p=_.arrowIconName,hover:f,focus:d,active:u,selected:b,disabled:L,icon:N,text:v,iconClassName:E,...T}=e,A=N!==void 0,M=e.children!==void 0;return At("button",{...T,className:n(e.className,Ie,S(Ie,{size:t,rounded:o,fillMode:i,themeColor:r}),g(Ie,{hover:f,focus:d,active:u,disabled:L,selected:b}),{"k-icon-button":!v&&!M&&A}),children:[N&&de(I,{className:n(E,"k-button-icon"),icon:N}),v?At(Zo,{children:[v&&de("span",{className:"k-button-text",children:v}),e.children]}):e.children&&de("span",{className:"k-button-text",children:e.children}),l&&de("span",{className:"k-menu-button-arrow k-button-arrow",children:de(I,{icon:p})})]})};O.states=Qo;O.options=Yo;O.className=Ie;O.defaultOptions=_;import{jsx as pr}from"react/jsx-runtime";import{jsx as ur}from"react/jsx-runtime";import{jsx as br}from"react/jsx-runtime";import{jsx as ts}from"react/jsx-runtime";var ge="k-input",jo=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],es={size:[a.small,a.medium,a.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[x.solid,x.flat,x.outline]},ke={size:a.medium,rounded:a.medium,fillMode:x.solid},k=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f,size:d=ke.size,rounded:u=ke.rounded,fillMode:b=ke.fillMode,...L}=e;return ts("span",{...L,className:n(e.className,ge,S(ge,{size:d,rounded:u,fillMode:b}),g(ge,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f}))})};k.states=jo;k.options=es;k.className=ge;k.defaultOptions=ke;import{jsx as ns}from"react/jsx-runtime";var ye="k-picker",os=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],ss={size:[a.small,a.medium,a.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[x.solid,x.flat,x.outline]},Ae={size:a.medium,rounded:m.medium,fillMode:x.solid},j=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f,size:d=Ae.size,rounded:u=Ae.rounded,fillMode:b=Ae.fillMode,...L}=e;return ns("span",{...L,className:n(e.className,ye,S(ye,{size:d,rounded:u,fillMode:b}),g(ye,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f})),children:e.children})};j.states=os;j.options=ss;j.className=ye;j.defaultOptions=Ae;import{Fragment as rs,jsx as Fe}from"react/jsx-runtime";var Mt="k-clear-value",is=[s.disabled,s.loading,s.readonly],as={},X=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?Fe(rs,{}):Fe("span",{className:n(e.className,Mt),children:Fe(I,{icon:"x"})})};X.states=is;X.options=as;X.className=Mt;import{jsx as cs}from"react/jsx-runtime";var Je="k-input-inner",ls=[],ps={},Me={type:"text",autocomplete:"off",value:"",placeholder:""},F=e=>{let{value:t=Me.value,type:o=Me.type,placeholder:i=Me.placeholder,autocomplete:r=Me.autocomplete,...l}=e;return cs("input",{...l,type:o,className:n(e.className,Je,S(Je,e)),placeholder:i,autoComplete:r,defaultValue:t})};F.states=ls;F.options=ps;F.className=Je;import{jsx as Ct,jsxs as us}from"react/jsx-runtime";var qe="k-input-inner",ds=[],ms={},me=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...p}=e;return us("span",{...p,className:n(e.className,qe,S(qe,e)),children:[r,!r&&l&&Ct(I,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&Ct("span",{className:"k-input-value-text",children:t})]})};me.states=ds;me.options=ms;me.className=qe;import{jsx as xs}from"react/jsx-runtime";var Ue="k-input-inner",fs=[],hs={},Tt={value:"",placeholder:""},We=e=>{let{value:t=Tt.value,placeholder:o=Tt.placeholder,rows:i,...r}=e;return xs("textarea",{...r,className:n(e.className,Ue,S(Ue,e)),placeholder:o,rows:i,defaultValue:t})};We.states=fs;We.options=hs;We.className=Ue;import{Fragment as Ls,jsx as zt}from"react/jsx-runtime";var Et="k-input-loading-icon",bs=[s.disabled,s.loading],R=e=>{let{disabled:t,loading:o}=e;return t||!o?zt(Ls,{}):zt("span",{className:n(e.className,Et,"k-icon k-i-loading")})};R.states=bs;R.className=Et;import{Fragment as Ss,jsx as Ot}from"react/jsx-runtime";var Ht="k-input-validation-icon",Ns=[s.valid,s.invalid,s.disabled,s.loading],vs={},H=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?Ot(Ss,{}):Ot(I,{className:n(Ht),icon:l})};H.states=Ns;H.options=vs;H.className=Ht;import{Fragment as ks,jsx as Kt}from"react/jsx-runtime";var Is="k-input-prefix",gs={direction:"horizontal"},Ce=e=>{let{direction:t=gs.direction,...o}=e;return e.children?Kt("span",{...o,className:n(Is,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Kt(ks,{})};import{Fragment as Ms,jsx as Rt}from"react/jsx-runtime";var ys="k-input-suffix",As={direction:"horizontal"},Te=e=>{let{direction:t=As.direction,...o}=e;return e.children?Rt("span",{...o,className:n(ys,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Rt(Ms,{})};import{jsx as il}from"react/jsx-runtime";import{jsx as pl}from"react/jsx-runtime";import{jsx as Ts}from"react/jsx-runtime";var wt="k-input-separator",Cs={direction:"vertical"},Qe=e=>{let{direction:t=Cs.direction,...o}=e;return Ts("span",{...o,className:n(wt,e.className,{[`${wt}-${t}`]:t})})};import{jsx as Pt}from"react/jsx-runtime";var Gt="k-animation-container",zs=[],Es={},Vt={positionMode:"absolute"},w=e=>{let{positionMode:t=Vt.positionMode,animationStyle:o,offset:i,...r}=e;return Pt("div",{...r,style:{...i,...e.style},className:n(e.className,Gt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Pt("div",{className:"k-child-animation-container",style:o,children:e.children})})};w.states=zs;w.options=Es;w.className=Gt;w.defaultOptions=Vt;import{jsx as Bt}from"react/jsx-runtime";var $t="k-popup",Os=[],Hs={},Dt={positionMode:"absolute"},ee=e=>{let{offset:t,positionMode:o=Dt.positionMode,animationStyle:i,...r}=e;return Bt(w,{positionMode:o,offset:t,animationStyle:i,children:Bt("div",{...r,className:n(e.className,$t),children:e.children})})};ee.states=Os;ee.options=Hs;ee.className=$t;ee.defaultOptions=Dt;import{jsx as ws}from"react/jsx-runtime";var ze="k-actions",Ks=[],Rs={},Ye={alignment:"start",orientation:"horizontal"},te=e=>{let{alignment:t=Ye.alignment,orientation:o=Ye.orientation,...i}=e;return ws("div",{...i,className:n(ze,{[`${ze}-${t}`]:t,[`${ze}-${o}`]:o},e.className),children:e.children})};te.states=Ks;te.options=Rs;te.className=ze;te.defaultOptions=Ye;import{jsx as Gs}from"react/jsx-runtime";var Ps="k-actionsheet-footer",_t={alignment:"stretched",orientation:"horizontal"},Ze=e=>{let{alignment:t=_t.alignment,orientation:o=_t.orientation,template:i,as:r=i?"div":te,...l}=e;return Gs(r,{...l,...!i&&{alignment:t,orientation:o},className:n(e.className,Ps),children:e.children})};import{jsx as ue,jsxs as $s}from"react/jsx-runtime";var Xt="k-searchbox",Vs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Bs={size:[a.small,a.medium,a.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[x.solid,x.flat,x.outline]},je={showIcon:!0,icon:"search",size:k.defaultOptions.size,rounded:k.defaultOptions.rounded,fillMode:k.defaultOptions.fillMode},oe=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:l,hover:p,focus:f,valid:d,invalid:u,required:b,loading:L,disabled:N,showIcon:v=je.showIcon,icon:E=je.icon,...T}=e;return $s(k,{...T,size:i,rounded:r,fillMode:l,hover:p,focus:f,valid:d,invalid:u,required:b,loading:L,disabled:N,className:n(e.className,Xt),children:[v&&ue(I,{className:"k-input-icon",icon:E}),ue(F,{placeholder:o,value:t}),ue(R,{...e}),ue(H,{...e}),ue(X,{...e})]})};oe.states=Vs;oe.options=Bs;oe.className=Xt;oe.defaultOptions=je;import{jsx as op}from"react/jsx-runtime";import{Fragment as Ft,jsx as P,jsxs as et}from"react/jsx-runtime";var Jt="k-textbox",Ds=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],_s={size:[a.small,a.medium,a.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[x.solid,x.flat,x.outline]},J={showClearButton:!0,showValidationIcon:!0,size:k.defaultOptions.size,rounded:k.defaultOptions.rounded,fillMode:k.defaultOptions.fillMode,separators:!0},se=e=>{let{size:t=J.size,rounded:o=J.rounded,fillMode:i=J.fillMode,separators:r=J.separators,showClearButton:l=J.showClearButton,showValidationIcon:p=J.showValidationIcon,prefix:f,suffix:d,type:u,value:b,placeholder:L,hover:N,focus:v,valid:E,invalid:T,required:A,loading:M,disabled:U,readonly:ae,...Oe}=e;return et(k,{...Oe,size:t,rounded:o,fillMode:i,hover:N,focus:v,valid:E,invalid:T,required:A,loading:M,disabled:U,readonly:ae,className:n(e.className,Jt),children:[f&&et(Ft,{children:[P(Ce,{children:f}),r&&P(Qe,{})]}),P(F,{placeholder:L,value:b,type:u}),p&&P(H,{valid:E,invalid:T,loading:M,disabled:U}),P(R,{loading:M,disabled:U}),l&&P(X,{loading:M,disabled:U,readonly:ae,value:b}),d&&et(Ft,{children:[r&&P(Qe,{}),P(Te,{children:d})]})]})};se.states=Ds;se.options=_s;se.className=Jt;se.defaultOptions=J;import{jsx as up}from"react/jsx-runtime";import{Fragment as Np,jsx as Lp}from"react/jsx-runtime";import{Fragment as Ap,jsx as yp}from"react/jsx-runtime";import{jsx as G,jsxs as tt}from"react/jsx-runtime";var Ut="k-actionsheet-titlebar",Xs={},V=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:l,input:p,inputValue:f,inputPlaceholder:d,adaptive:u,children:b,...L}=e;return tt("div",{...L,className:n(e.className,Ut),children:[tt("div",{className:"k-actionsheet-titlebar-group",children:[i&&G("div",{className:"k-actionsheet-actions",children:i}),!b&&tt("div",{className:"k-actionsheet-title",children:[t&&G("div",{className:"k-text-center",children:t}),o&&G("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),b&&G("div",{className:"k-actionsheet-title",children:b}),r&&G("div",{className:"k-actionsheet-actions",children:r})]}),(p||l)&&G("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?G(se,{value:f,placeholder:d,size:u?"large":"medium"}):G(oe,{placeholder:"Filter",size:u?"large":"medium"})})]})};V.className=Ut;V.defaultOptions=Xs;import{jsx as ot,jsxs as Us}from"react/jsx-runtime";var st="k-actionsheet-view",Fs=[],Js={},qs={},ne=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:l,...p}=e,f=r?.type===V&&ot(V,{adaptive:t,...r?.props}),d=l?.type===Ze&&ot(Ze,{...l?.props});return Us("div",{...p,className:n(e.className,st,{[`${st}-animated`]:o}),children:[f,ot("div",{className:"k-actionsheet-content",children:i}),d]})};ne.states=Fs;ne.options=Js;ne.className=st;ne.defaultOptions=qs;import{jsx as Ee,jsxs as Ys}from"react/jsx-runtime";var Wt="k-actionsheet",Ws=[],Qs={},fe={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},q=e=>{let{side:t=fe.side,fullscreen:o=fe.fullscreen,adaptive:i=fe.adaptive,overlay:r=fe.overlay,template:l,children:p,header:f,footer:d,...u}=e;return Ys("div",{className:"k-actionsheet-container",children:[r&&Ee("div",{className:"k-overlay"}),Ee(w,{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:Ee("div",{...u,className:n(e.className,Wt,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:l||Ee(ne,{header:f,footer:d,adaptive:i,...e,children:p})})})]})};q.states=Ws;q.options=Qs;q.className=Wt;q.defaultOptions=fe;import{jsx as Qp}from"react/jsx-runtime";import{Fragment as js,jsx as he,jsxs as nt}from"react/jsx-runtime";var it="k-actionsheet-item",Zs=[s.hover,s.focus,s.selected,s.disabled],at=e=>{let{iconName:t,text:o,description:i,hover:r,focus:l,selected:p,disabled:f,...d}=e;return nt("span",{...d,className:n(e.className,it,g(it,{hover:r,focus:l,selected:p,disabled:f})),children:[!e.children&&he(js,{children:nt("span",{className:"k-actionsheet-action",children:[t&&he("span",{className:"k-icon-wrap",children:he(I,{className:"k-actionsheet-item-icon",icon:t})}),nt("span",{className:"k-actionsheet-item-text",children:[o&&he("span",{className:"k-actionsheet-item-title",children:o}),i&&he("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};at.states=Zs;at.className=it;import{jsx as ic,jsxs as ac}from"react/jsx-runtime";import{jsx as cc}from"react/jsx-runtime";import{jsx as fc}from"react/jsx-runtime";import{jsx as Lc}from"react/jsx-runtime";import{Fragment as on,jsx as y,jsxs as rt}from"react/jsx-runtime";var Yt="k-dropdownlist",en=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],tn={size:[a.small,a.medium,a.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[x.solid,x.flat,x.outline]},ie={showValue:!0,arrowIconName:"caret-alt-down",size:a.medium,rounded:m.medium,fillMode:x.solid},xe=e=>{let{size:t=ie.size,rounded:o=ie.rounded,fillMode:i=ie.fillMode,arrowIconName:r=ie.arrowIconName,showValue:l=ie.showValue,valueIconName:p,prefix:f,suffix:d,value:u,placeholder:b,hover:L,focus:N,valid:v,invalid:E,required:T,loading:A,disabled:M,readonly:U,popup:ae,opened:Oe,adaptive:jt,adaptiveSettings:eo,adaptiveTitle:to,adaptiveSubtitle:oo,adaptiveFilter:so,...no}=e;return rt(on,{children:[rt(j,{...no,size:t,rounded:o,fillMode:i,hover:L,focus:N,valid:v,invalid:E,required:T,loading:A,disabled:M,readonly:U,className:n(e.className,Yt,{"k-icon-picker":!l&&p}),children:[y(Ce,{children:f}),y(me,{placeholder:b,value:u,showValue:l,valueIconName:p}),y(H,{valid:v,invalid:E,loading:A,disabled:M}),y(R,{loading:A,disabled:M}),y(Te,{children:d}),y(O,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),Oe&&ae&&y(ee,{className:"k-list-container k-dropdownlist-popup",children:ae}),jt&&y(q,{adaptive:!0,...eo,header:y(V,{actionsEnd:y(O,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:so,inputValue:u,inputPlaceholder:b,title:to,subtitle:oo}),children:y("div",{className:"k-list-container",children:rt(z,{size:"large",children:[y(h,{text:"List item"}),y(h,{text:"List item"}),y(h,{text:"List item"})]})})})]})};xe.states=en;xe.options=tn;xe.className=Yt;xe.defaultOptions=ie;var Zt=xe;import{jsx as B,jsxs as lt}from"react/jsx-runtime";var Dc=e=>B(Zt,{opened:!0,popup:lt(z,{children:[lt(C,{label:"Group 1",root:!0,children:[B(h,{children:"List group 1 item 1"}),B(h,{children:"List group 1 item 2"}),B(h,{children:"List group 1 item 3"})]}),lt(C,{children:[B(h,{group:!0,children:"Group 2"}),B(h,{children:"List group 1 item 1"}),B(h,{children:"List group 1 item 2"}),B(h,{children:"List group 1 item 3"})]})]}),...e});export{Dc as DropdownListGroupingModern};