@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 29.7 kB
JavaScript
var ro=Object.create;var Mt=Object.defineProperty;var ao=Object.getOwnPropertyDescriptor;var so=Object.getOwnPropertyNames;var io=Object.getPrototypeOf,lo=Object.prototype.hasOwnProperty;var mo=(t,e)=>{for(var o in e)Mt(t,o,{get:e[o],enumerable:!0})},ne=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of so(e))!lo.call(t,r)&&r!==o&&Mt(t,r,{get:()=>e[r],enumerable:!(n=ao(e,r))||n.enumerable});return t};var po=(t,e,o)=>(o=t!=null?ro(io(t)):{},ne(e||!t||!t.__esModule?Mt(o,"default",{value:t,enumerable:!0}):o,t)),uo=t=>ne(Mt({},"__esModule",{value:!0}),t);var En={};mo(En,{TabStripBottom:()=>oe});module.exports=uo(En);var a=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?a(...e):typeof e=="object"?Object.keys(e).map((o,n)=>e[n]||e[o]&&o||null).filter(o=>o!==null).join(" "):e).filter(e=>!!e).join(" ");var L=(t,e)=>a({[`${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"}),$=(t,e)=>{let{valid:o,invalid:n,hover:r,focus:m,checked:i,active:p,selected:f,disabled:b,indeterminate:d,loading:h,empty:M,readonly:v,highlighted:O,...w}=e;return a({"k-valid":o,"k-invalid":n,"k-hover":r,"k-focus":m,"k-checked":i,"k-active":p,"k-selected":f,"k-disabled":b,"k-indeterminate":d&&!i,"k-loading":h,"k-empty":M,"k-readonly":v,"k-highlighted":O},Object.keys(w).reduce((g,_)=>(_.startsWith("k-")?g[_]=w[_]:g[`k-${_}`]=w[_],g),{}))};function re(t,e){if(!e)return{};let o=Array.isArray(e)?e:[e];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},N={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},W={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},s={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},c={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 mt=require("react/jsx-runtime"),gt="k-font-icon",co=[],fo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[s.undefined,s.base,s.primary,s.secondary,s.tertiary,s.success,s.warning,s.error,s.info]},bo={},pt=t=>{let{size:e,themeColor:o,icon:n,rotate:r,flip:m,...i}=t;return n?(0,mt.jsx)("span",{...i,className:a(t.className,gt,L(gt,{size:e}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":m==="h"||m==="both","k-flip-v":m==="v"||m==="both"}),"aria-hidden":"true"}):(0,mt.jsx)(mt.Fragment,{})};pt.states=co;pt.options=fo;pt.className=gt;pt.defaultOptions=bo;var ae=pt;var et=require("react/jsx-runtime"),At="k-svg-icon",ho=[],Mo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[s.undefined,s.base,s.primary,s.secondary,s.tertiary,s.success,s.warning,s.error,s.info],variant:[W.outline,W.solid,W.duotone]},Et={viewBox:"0 0 24 24",variant:W.outline},ut=t=>{var h,M;let{size:e,themeColor:o,rotate:n,flip:r,viewBox:m=Et.viewBox,variant:i=Et.variant,icon:p,...f}=t;if(!p)return(0,et.jsx)(et.Fragment,{});if(p==="none")return(0,et.jsx)("span",{...f,className:a(t.className,At,L("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let b=typeof p=="object"&&p.name&&p.name,d=typeof p=="object"?i&&((h=p.variants)==null?void 0:h[i])||((M=p.variants)==null?void 0:M.outline)||p.content:void 0;return(0,et.jsx)("span",{...f,className:a(t.className,At,L("k-icon",{size:e}),{[`k-svg-i-${b}`]:b,[`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",children:(0,et.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:m,dangerouslySetInnerHTML:d!==void 0?{__html:d}:void 0,children:p?void 0:t.children})})};ut.states=ho;ut.options=Mo;ut.className=At;ut.defaultOptions=Et;var Lt=ut;var yt=po(require("@progress/kendo-svg-icons"));var se="icon",ie="icons";var pe=require("react");var le=require("react"),me=(0,le.createContext)({iconsType:"svg"});var X=require("react/jsx-runtime"),xt="k-icon",xo=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),No=[],vo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[s.undefined,s.base,s.primary,s.secondary,s.tertiary,s.success,s.warning,s.error,s.info],variant:[W.outline,W.solid,W.duotone]},Nt={viewBox:"0 0 24 24",type:"svg",variant:W.outline},x=t=>{let{iconsType:e}=(0,pe.useContext)(me),{size:o,themeColor:n,icon:r,type:m=e||Nt.type,rotate:i,flip:p,viewBox:f=Nt.viewBox,variant:b=Nt.variant,...d}=t;if(!r)return(0,X.jsx)(X.Fragment,{});if((e||m)==="svg"){if(r==="none")return(0,X.jsx)(Lt,{...d,className:a(t.className,xt),icon:r,size:o,variant:b});let M=yt[r]?r:xo(`${r}-icon`);return yt[M]?(0,X.jsx)(Lt,{...d,className:a(t.className,xt),icon:yt[M],size:o,themeColor:n,rotate:i,flip:p,viewBox:f,variant:b}):(0,X.jsx)(X.Fragment,{})}return(0,X.jsx)(ae,{...d,className:a(t.className,xt),icon:r,size:o,themeColor:n,rotate:i,flip:p})};x.states=No;x.options=vo;x.defaultOptions=Nt;x.className=xt;x.moduleName=se;x.folderName=ie;x.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 Ot="button",ue=Ot;var R=require("react/jsx-runtime"),ct="k-button",To=["icon-button"],Io=[c.hover,c.focus,c.active,c.selected,c.disabled,c.generating],So={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[s.undefined,s.base,s.primary,s.secondary,s.tertiary,s.success,s.warning,s.error,s.info,s.inverse]},wt={showArrow:!1,arrowIconName:"chevron-down"},u=t=>{let{as:e="button",size:o,rounded:n,fillMode:r,themeColor:m,showArrow:i=wt.showArrow,arrowIconName:p=wt.arrowIconName,variant:f,hover:b,focus:d,active:h,selected:M,disabled:v,togglable:O,ariaDisabled:w,icon:g,iconSize:_,text:Z,iconClassName:je,className:to,...eo}=t,oo=g!=null,no=t.children!==void 0;return(0,R.jsxs)(e,{className:a(to,ct,re(ct,f),L(ct,{size:o,rounded:n,fillMode:r,themeColor:m}),$(ct,{hover:b,focus:d,active:h,disabled:v||w,selected:M}),{"k-icon-button":!Z&&!no&&oo}),"aria-pressed":O?M?"true":"false":void 0,...eo,"aria-disabled":w?"true":void 0,disabled:v||void 0,children:[typeof g=="string"&&g&&(0,R.jsx)(x,{className:a(je,"k-button-icon"),icon:g,size:_}),g&&typeof g!="string"&&(0,R.jsx)(R.Fragment,{children:g}),Z?(0,R.jsxs)(R.Fragment,{children:[Z&&(0,R.jsx)("span",{className:"k-button-text",children:Z}),t.children]}):t.children&&(0,R.jsx)("span",{className:"k-button-text",children:t.children}),i&&(0,R.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,R.jsx)(x,{icon:p})})]})};u.states=Io;u.options=So;u.variants=To;u.className=ct;u.defaultOptions=wt;u.moduleName=Ot;u.folderName=ue;u.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 de=require("react/jsx-runtime"),ce=t=>(0,de.jsx)(u,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});var be=require("react/jsx-runtime"),fe=t=>(0,be.jsx)(u,{icon:"folder",children:"Button",...t});var Me=require("react/jsx-runtime"),he=t=>(0,Me.jsx)(u,{children:"Button",...t});var vt=require("react/jsx-runtime"),ko=u.options,go=u.states,Ao={...u.defaultOptions,variant:"text"},Eo=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Lo=[],nt=t=>{let{variant:e,...o}=t;switch(e){case"icon-only":return(0,vt.jsx)(ce,{...o,icon:"star"});case"icon-and-text":return(0,vt.jsx)(fe,{...o,icon:"star",children:"Button"});default:return(0,vt.jsx)(he,{...o,children:"Button"})}};nt.options=ko;nt.states=go;nt.variants=Eo;nt.defaultOptions=Ao;nt.modifiers=Lo;nt.className=u.className;var Ct="menu-button",xe=Ct;var ve=require("react/jsx-runtime"),Ne="k-menu-button",yo=[c.hover,c.focus,c.active,c.selected,c.disabled],Oo={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[N.undefined,N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[s.undefined,s.base,s.primary,s.secondary,s.tertiary,s.success,s.warning,s.error,s.info,s.inverse]},Pt={showArrow:!0,arrowIconName:"chevron-down"},P=t=>{let{size:e,rounded:o,fillMode:n,themeColor:r,hover:m,focus:i,active:p,selected:f,disabled:b,icon:d,text:h,showArrow:M=Pt.showArrow,arrowIconName:v=Pt.arrowIconName,expanded:O,...w}=t;return(0,ve.jsx)(u,{...w,className:a(t.className,Ne),text:h,size:e,rounded:o,fillMode:n,themeColor:r,hover:m,focus:i,active:p,selected:f,disabled:b,ariaDisabled:b||void 0,icon:d,showArrow:M,arrowIconName:v,"aria-expanded":O?"true":"false",...!h&&d&&!t["aria-label"]&&{"aria-label":"Menu"}})};P.states=yo;P.options=Oo;P.className=Ne;P.defaultOptions=Pt;P.moduleName=Ct;P.folderName=xe;P.ariaSpec={selector:".k-menu-button",rules:[{selector:".k-menu-button",attribute:"role=button or nodeName=button",usage:"Omitted if the button DOM element is used."},{selector:".k-menu-button",attribute:"aria-label (when icon-only)",usage:"Required when no text is visible in the button."},{selector:".k-menu-button",attribute:"aria-expanded=true/false",usage:"Announces the state of the popup visibility."},{selector:".k-menu-button",attribute:"aria-controls=.k-menu-group id (when open)",usage:"Points to the popup element. Builds a relationship between the button and the popup."},{selector:".k-menu-button.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the button is disabled."},{selector:".k-menu-group",attribute:"role=list",usage:"Announces the list role of the popup."},{selector:".k-menu-item",attribute:"role=listitem",usage:"Announces the listitem role of the popup items."}]};var wo=require("react/jsx-runtime");var Co=require("react/jsx-runtime");var Po=require("react/jsx-runtime");var K="menu",D=K;var G=require("react/jsx-runtime"),Bt="k-menu-item",Bo=[c.hover,c.focus,c.active,c.selected,c.disabled],_o={},Te={iconPosition:"before"},A=t=>{let{hover:e,focus:o,active:n,selected:r,disabled:m,icon:i,text:p,first:f,last:b,showArrow:d,arrowIconName:h,iconPosition:M=Te.iconPosition,dir:v,children:O,expanded:w,...g}=t,_=h;return _||(_=v==="rtl"?"chevron-left":"chevron-right"),(0,G.jsxs)("li",{...g,className:a(t.className,Bt,"k-item",$(Bt,{focus:o,disabled:m,hover:e,active:n,selected:r}),{"k-first":f,"k-last":b}),role:"menuitem",...d&&{"aria-haspopup":"menu"},...d&&{"aria-expanded":w?"true":"false"},...m&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[(0,G.jsxs)("span",{className:a("k-link k-menu-link"),children:[i&&M==="before"&&(0,G.jsx)(x,{className:"k-menu-link-icon",icon:i}),(0,G.jsx)("span",{className:"k-menu-link-text",children:p}),i&&M==="after"&&(0,G.jsx)(x,{className:"k-menu-link-icon",icon:i}),d&&(0,G.jsx)("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:(0,G.jsx)(x,{icon:_})})]}),O]})};A.states=Bo;A.options=_o;A.className=Bt;A.defaultOptions=Te;A.moduleName=K;A.folderName=D;var q=require("react/jsx-runtime"),_t="k-menu-item",Ro=[c.hover,c.focus,c.active,c.selected,c.disabled],Ko={},Rt={dir:"ltr",iconPosition:"before"},I=t=>{let{hover:e,focus:o,active:n,selected:r,disabled:m,icon:i,text:p,first:f,last:b,showArrow:d,arrowIconName:h,iconPosition:M=Rt.iconPosition,dir:v=Rt.dir,children:O,popup:w,expanded:g,..._}=t,Z=h;return Z||(Z=v==="rtl"?"chevron-left":"chevron-right"),(0,q.jsxs)("li",{role:"menuitem",..._,className:a(t.className,_t,"k-item",$(_t,{focus:o,disabled:m}),{"k-first":f,"k-last":b}),...d&&{"aria-haspopup":"menu"},...d&&{"aria-expanded":g?"true":"false"},...m&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[(0,q.jsxs)("span",{className:a("k-link k-menu-link",$("k-menu-link",{hover:e,active:n,selected:r,disabled:m})),children:[i&&M==="before"&&(0,q.jsx)(x,{className:"k-menu-link-icon",icon:i}),(0,q.jsx)("span",{className:"k-menu-link-text",children:p}),i&&M==="after"&&(0,q.jsx)(x,{className:"k-menu-link-icon",icon:i}),d&&(0,q.jsx)("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:(0,q.jsx)(x,{icon:Z})})]}),O,w]})};I.states=Ro;I.options=Ko;I.className=_t;I.defaultOptions=Rt;I.moduleName=K;I.folderName=D;var ke=require("react/jsx-runtime"),Ie="k-menu-scroll-wrapper",zo=[],Ho={},Uo={},ot=t=>{let{className:e,children:o,orientation:n,...r}=t;return(0,ke.jsx)("div",{...r,className:a(e,Ie,{"k-menu-scroll-wrapper-vertical":n==="vertical"}),children:o})};ot.states=zo;ot.options=Ho;ot.className=Ie;ot.defaultOptions=Uo;ot.moduleName=K;ot.folderName=D;var Se=ot;var S=require("react/jsx-runtime"),Kt="k-menu",Do=[],$o={},It={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},T=t=>{let{children:e,orientation:o=It.orientation,header:n=It.header,scrollable:r,scrollButtonsPosition:m=It.scrollButtonsPosition,wrapperStyles:i,dir:p,popup:f,contextMenu:b,...d}=t,h={horizontal:{prev:p!=="rtl"?"left":"right",next:p!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},M=(0,S.jsx)("ul",{dir:p,...d,className:a(t.className,"k-reset",Kt,{[`${Kt}-${o}`]:o,"k-header":n}),role:b?"menu":"menubar",...o==="vertical"&&{"aria-orientation":"vertical"},children:e});return(0,S.jsxs)(S.Fragment,{children:[r?(0,S.jsxs)(Se,{orientation:o,style:i,dir:t.dir,children:[m==="start"&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(u,{fillMode:"flat",icon:`chevron-${h[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),(0,S.jsx)(u,{fillMode:"flat",icon:`chevron-${h[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),m==="around"&&(0,S.jsx)(u,{fillMode:"flat",icon:`chevron-${h[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),M,m==="end"&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(u,{fillMode:"flat",icon:`chevron-${h[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),(0,S.jsx)(u,{fillMode:"flat",icon:`chevron-${h[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),m==="around"&&(0,S.jsx)(u,{fillMode:"flat",icon:`chevron-${h[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}):M,f]})};T.states=Do;T.options=$o;T.className=Kt;T.defaultOptions=It;T.moduleName=K;T.folderName=D;T.ariaSpec={selector:".k-menu",rules:[{selector:".k-menu:not(.k-context-menu)",attribute:"role=menubar",usage:"Announces the Menu menubar role."},{selector:".k-menu.k-menu-vertical",attribute:"aria-orientation=vertical",usage:"Announces the Menu orientation when vertical."},{selector:".k-menu-item",attribute:"role=menuitem",usage:"Announces the Menu item role."},{selector:".k-menu-item",attribute:"aria-haspopup=menu (when present)",usage:"Indicates a popup menu is associated with the item."},{selector:".k-menu-item",attribute:"aria-expanded=true/false (when present)",usage:"Indicates whether the submenu is expanded."},{selector:".k-menu-item.k-disabled",attribute:"aria-disabled=true",usage:"Informs assistive technologies that a Menu item is disabled."},{selector:".k-menu-expand-arrow",attribute:"aria-hidden=true",usage:"Expand arrow elements are hidden from assistive technologies."},{selector:".k-menu-popup .k-menu-group",attribute:"role=menu",usage:"The role of the nested menu displayed in a popup."},{selector:".k-menu-scroll-button",attribute:"tabindex=-1",usage:"Scroll buttons are removed from the tab sequence."},{selector:".k-menu-scroll-button",attribute:"aria-label",usage:"Scroll buttons have an accessible label."},{selector:".k-menu-item.k-focus",attribute:"tabindex=0",usage:"The focused item has tabindex 0."},{selector:".k-menu-item",attribute:"aria-controls=ul.k-menu-group id (when present)",usage:"Points to the ID of the submenu. Only present when the item controls a submenu element."},{selector:".k-menu-popup .k-menu-group",attribute:"id",usage:"Each nested menu has a deterministic id linked to the parent aria-controls."}]};var Ae=require("react/jsx-runtime"),zt="k-separator",ge={orientation:"horizontal"},rt=t=>{let{orientation:e=ge.orientation,...o}=t;return(0,Ae.jsx)("li",{...o,className:a(t.className,"k-item",zt,{[`${zt}-${e}`]:e}),role:"separator"})};rt.className=zt;rt.defaultOptions=ge;rt.moduleName=K;rt.folderName=D;var Ee=require("react/jsx-runtime");var Le=require("react/jsx-runtime"),Ht="k-menu-group",Fo=[],Wo={size:[l.undefined,l.small,l.medium,l.large]},Vo={},z=t=>{let{children:e,size:o,...n}=t;return(0,Le.jsx)("ul",{role:"menu",...n,className:a(t.className,Ht,L(Ht,{size:o})),children:e})};z.states=Fo;z.options=Wo;z.className=Ht;z.defaultOptions=Vo;z.moduleName=K;z.folderName=D;var F=require("react/jsx-runtime"),Ut=t=>(0,F.jsx)(T,{children:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(A,{first:!0,text:"Item 1"}),(0,F.jsx)(A,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 2"}),(0,F.jsx)(A,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 3"}),(0,F.jsx)(A,{text:"Item 4"}),(0,F.jsx)(A,{last:!0,text:"Item 5"})]}),...t});var Dt="popup",ye=Dt;var Ft=require("react/jsx-runtime"),Oe="k-animation-container",Jo=[],Xo={},$t={positionMode:"absolute",shown:!0},j=t=>{let{positionMode:e=$t.positionMode,shown:o=$t.shown,animationStyle:n,offset:r,...m}=t;return(0,Ft.jsx)("div",{...m,style:{...r,...t.style},className:a(t.className,Oe,{"k-animation-container-shown":o,"k-animation-container-fixed":e==="fixed"}),children:(0,Ft.jsx)("div",{className:"k-child-animation-container",style:n,children:t.children})})};j.states=Jo;j.options=Xo;j.className=Oe;j.defaultOptions=$t;j.moduleName=Dt;j.folderName=ye;var Wt="popup",we=Wt;var Vt=require("react/jsx-runtime"),Ce="k-popup",Go=[],qo={},Pe={positionMode:"absolute"},B=t=>{let{offset:e,positionMode:o=Pe.positionMode,animationStyle:n,containerClassName:r,containerRole:m,containerAriaLabel:i,...p}=t;return(0,Vt.jsx)(j,{positionMode:o,offset:e,animationStyle:n,className:r,role:m,"aria-label":i,children:(0,Vt.jsx)("div",{...p,className:a(t.className,Ce),children:t.children})})};B.states=Go;B.options=qo;B.className=Ce;B.defaultOptions=Pe;B.moduleName=Wt;B.folderName=we;B.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var Jt=require("react/jsx-runtime");var Xt=require("react/jsx-runtime");var Gt=require("react/jsx-runtime");var qt=require("react/jsx-runtime");var V=require("react/jsx-runtime"),Qo={...T.options,scrollable:{type:"boolean"}},Yo=T.states,Be={...T.defaultOptions,variant:"horizontal"},Zo=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],jo=[{name:"opened",title:"Opened"}],at=t=>{let{variant:e,modifiers:o,...n}={...Be,...t},r={},m=e==="vertical"?{left:"200px",top:"30px"}:{left:"90px",top:"auto"};return Object.keys(o||{}).forEach(i=>{i==="opened"&&(r.opened=!!(o!=null&&o[i]),r.popup=o!=null&&o[i]?(0,V.jsx)(B,{className:"k-menu-popup",offset:m,children:(0,V.jsxs)(z,{children:[(0,V.jsx)(I,{text:"Item 1"}),(0,V.jsx)(I,{text:"Item 2"}),(0,V.jsx)(rt,{}),(0,V.jsx)(I,{text:"Item 3"})]})}):null)}),e==="vertical"?(0,V.jsx)(Ut,{...n,...r,orientation:"vertical",style:{width:"200px"}}):(0,V.jsx)(Ut,{...n,...r})};at.options=Qo;at.states=Yo;at.variants=Zo;at.defaultOptions=Be;at.modifiers=jo;at.className=T.className;var Qt=require("react/jsx-runtime");var tn=require("react/jsx-runtime");var E=require("react/jsx-runtime"),en=u.states,_e={...u.defaultOptions,variant:"text"},on=u.options,nn=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],rn=[{name:"opened",title:"Opened"}],st=t=>{let{variant:e,modifiers:o,...n}={..._e,...t},r={},m=(0,E.jsx)(B,{className:"k-menu-popup",children:(0,E.jsxs)(z,{size:n.size,children:[(0,E.jsx)(I,{first:!0,text:"Menu Item"}),(0,E.jsx)(I,{text:"Menu Item"}),(0,E.jsx)(I,{last:!0,text:"Menu Item"})]})}),i;switch(e){case"icon-only":i=(0,E.jsx)("div",{children:(0,E.jsx)(P,{...n,...r,icon:"star"})});break;case"icon-and-text":i=(0,E.jsx)("div",{children:(0,E.jsx)(P,{...n,...r,icon:"star",children:"Dropdown Button"})});break;default:i=(0,E.jsx)("div",{children:(0,E.jsx)(P,{...n,...r,children:"Dropdown Button"})});break}return(0,E.jsxs)(E.Fragment,{children:[i,(o==null?void 0:o.opened)&&m]})};st.options=on;st.states=en;st.variants=nn;st.defaultOptions=_e;st.modifiers=rn;st.className=P.className;var ze=require("react/jsx-runtime"),Re="k-tabstrip-items",an=[],sn={},ln={tabAlignment:"start"},dt=t=>{let{children:e,tabAlignment:o,orientation:n,...r}=t;return(0,ze.jsx)("ul",{...r,className:a(t.className,Re,"k-reset",`k-tabstrip-items-${o}`),role:"tablist",...n==="vertical"&&{"aria-orientation":"vertical"},children:e})};dt.states=an;dt.options=sn;dt.className=Re;dt.defaultOptions=ln;var Ke=dt;var $e=require("react/jsx-runtime"),He="k-tabstrip-items-wrapper",mn=[],pn={},Ue={orientation:"horizontal"},ft=t=>{let{children:e,orientation:o=Ue.orientation,...n}=t;return(0,$e.jsx)("div",{...n,className:a(t.className,He,{"k-hstack":o==="horizontal","k-vstack":o==="vertical"}),children:e})};ft.states=mn;ft.options=pn;ft.className=He;ft.defaultOptions=Ue;var De=ft;var bt="tabstrip",St=bt;var y=require("react/jsx-runtime"),tt="k-tabstrip",un=[],cn={size:[l.undefined,l.small,l.medium,l.large]},kt={position:"top",tabAlignment:"start",scrollButtons:"around"},k=t=>{let{size:e,scrollable:o,children:n,tabStripItems:r,tabStripItemsId:m,position:i=kt.position,tabAlignment:p=kt.tabAlignment,scrollButtons:f=kt.scrollButtons,dir:b,scrollingPosition:d,overflow:h,...M}=t,v={top:{prev:b!=="rtl"?"left":"right",next:b!=="rtl"?"right":"left"},bottom:{prev:b!=="rtl"?"left":"right",next:b!=="rtl"?"right":"left"},right:{prev:"up",next:"down"},left:{prev:"up",next:"down"}},O={top:"horizontal",bottom:"horizontal",left:"vertical",right:"vertical"},w={start:"start",center:"center",end:"end",justify:"justify",stretched:"stretched"};return(0,y.jsxs)("div",{dir:b,...M,className:a(tt,t.className,{[`${tt}-${i}`]:i,[`${tt}-scrollable`]:o,[`${tt}-scrollable-overlay`]:o&&(f==="hidden"||!f),[`${tt}-scrollable-${d}`]:d&&d!=="both",[`${tt}-overflow`]:h},L(tt,{size:e})),children:[i==="bottom"&&n,(0,y.jsxs)(De,{orientation:O[i],children:[o&&(f==="around"||f==="start")&&(0,y.jsx)("span",{className:a("k-tabstrip-prev","k-button",L("k-button",{size:e,fillMode:N.flat}),"k-icon-button"),"aria-hidden":"true",children:(0,y.jsx)(x,{className:"k-button-icon",icon:`chevron-${v[i].prev}`})}),o&&f==="start"&&(0,y.jsx)("span",{className:a("k-tabstrip-next","k-button",L("k-button",{size:e,fillMode:N.flat}),"k-icon-button"),"aria-hidden":"true",children:(0,y.jsx)(x,{className:"k-button-icon",icon:`chevron-${v[i].next}`})}),(0,y.jsx)(Ke,{className:a({"k-tabstrip-items-scroll":o&&f==="hidden"}),tabAlignment:w[p],orientation:O[i],...m&&{id:m},children:r}),o&&f==="end"&&(0,y.jsx)("span",{className:a("k-tabstrip-prev","k-button",L("k-button",{size:e,fillMode:N.flat}),"k-icon-button"),"aria-hidden":"true",children:(0,y.jsx)(x,{className:"k-button-icon",icon:`chevron-${v[i].prev}`})}),o&&(f==="around"||f==="end")&&(0,y.jsx)("span",{className:a("k-tabstrip-next","k-button",L("k-button",{size:e,fillMode:N.flat}),"k-icon-button"),"aria-hidden":"true",children:(0,y.jsx)(x,{className:"k-button-icon",icon:`chevron-${v[i].next}`})}),h&&(0,y.jsx)("div",{className:"k-tabstrip-actions k-hstack",children:(0,y.jsx)(P,{className:"k-tabstrip-overflow-button",icon:"more-vertical",fillMode:"flat",size:e,showArrow:!1})})]}),i!=="bottom"&&n]})};k.states=un;k.options=cn;k.className=tt;k.defaultOptions=kt;k.moduleName=bt;k.folderName=St;k.ariaSpec={selector:".k-tabstrip",rules:[{selector:".k-tabstrip-items",attribute:"role=tablist",usage:"Indicates the tablist role for the ul element."},{selector:".k-tabstrip.k-tabstrip-left .k-tabstrip-items,.k-tabstrip.k-tabstrip-right .k-tabstrip-items",attribute:"aria-orientation=vertical",usage:"Indicates the orientation when vertical."},{selector:".k-tabstrip-item",attribute:"role=tab",usage:"The tab li element."},{selector:".k-tabstrip .k-tabstrip-item.k-active",attribute:"aria-selected=true",usage:"Announces the selected state of the tab."},{selector:".k-tabstrip-content",attribute:"role=tabpanel",usage:"The content div of the tab."},{selector:".k-tabstrip .k-tabstrip-item.k-active",attribute:"aria-controls (when present)",usage:"Announces the relation between the panel and active tab. Only present when tab controls a specific panel."},{selector:".k-tabstrip-content",attribute:"aria-hidden=true (when not active)",usage:"Only if the component implements a feature to control whether the content should be persisted."},{selector:".k-tabstrip-content",attribute:"aria-labelledby (when present)",usage:"Refers to the tab element that controls the panel. Only present when panel has an associated tab."},{selector:".k-tabstrip-scrollable .k-button",attribute:"aria-hidden=true",usage:"Scroll buttons are hidden from assistive technologies."}]};var We=require("react/jsx-runtime"),Fe="k-tabstrip-wrapper",dn=[],fn={},bn={},it=t=>{let{...e}=t;return(0,We.jsx)("div",{...e,className:a(t.className,Fe),children:t.children})};it.states=dn;it.options=fn;it.className=Fe;it.defaultOptions=bn;it.moduleName=bt;it.folderName=St;var Q=require("react/jsx-runtime"),Yt="k-tabstrip-item",hn=[c.active,c.hover,c.disabled,c.focus],Mn={},Ve={iconPosition:"before"},H=t=>{let{dragging:e,active:o,hover:n,focus:r,disabled:m,children:i,first:p,last:f,closable:b,icon:d,iconPosition:h=Ve.iconPosition,value:M,actions:v,...O}=t;return(0,Q.jsxs)("li",{...O,className:a(t.className,Yt,$(Yt,{hover:n,active:o,disabled:m,focus:r}),{"k-tabstrip-dragging":e,"k-first":p,"k-last":f}),role:"tab",...o&&{"aria-selected":"true"},...m&&{"aria-disabled":"true"},children:[(0,Q.jsxs)("span",{className:"k-link",children:[d&&h==="before"&&(0,Q.jsx)(x,{icon:d}),M&&(0,Q.jsx)("span",{className:"k-link-text",children:M}),d&&h==="after"&&(0,Q.jsx)(x,{icon:d})]}),(v||b)&&(0,Q.jsxs)("span",{className:"k-item-actions",children:[v,b&&(0,Q.jsx)(u,{as:"span",className:"k-remove-tab",icon:"x",fillMode:"flat",size:"xsmall",title:"Close","aria-hidden":"true"})]}),i]})};H.states=hn;H.options=Mn;H.className=Yt;H.item=Ve;var Je=require("react/jsx-runtime"),Zt="k-tabstrip-content",xn=[c.active,c.focus],Nn={},vn={},Y=t=>{let{active:e,focus:o,children:n,...r}=t;return(0,Je.jsx)("div",{...r,className:a(t.className,Zt,$(Zt,{active:e,focus:o}),t.className),role:"tabpanel",children:n})};Y.states=xn;Y.options=Nn;Y.className=Zt;Y.defaultOptions=vn;var U=require("react/jsx-runtime"),J=({children:t,...e})=>(0,U.jsx)(k,{tabStripItems:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(H,{first:!0,value:"First"}),(0,U.jsx)(H,{active:!0,value:"Second"}),(0,U.jsx)(H,{value:"Third"}),(0,U.jsx)(H,{value:"Fourth"}),(0,U.jsx)(H,{last:!0,value:"Fifth"})]}),...e,children:t||(0,U.jsx)(Y,{active:!0,children:(0,U.jsx)("div",{children:"TabStrip Content"})})});var Ge=require("react/jsx-runtime"),Xe=t=>(0,Ge.jsx)(J,{position:"right",...t});var Qe=require("react/jsx-runtime"),qe=t=>(0,Qe.jsx)(J,{position:"left",...t});var Tn=require("react/jsx-runtime");var jt=require("react/jsx-runtime");var In=require("react/jsx-runtime");var te=require("react/jsx-runtime");var ee=require("react/jsx-runtime");var ht=require("react/jsx-runtime"),Sn={...k.options,scrollable:{type:"boolean"}},kn=k.states,Ye={...k.defaultOptions,scrollable:!1,variant:"up"},gn=[{name:"up",title:"Position Up"},{name:"bottom",title:"Position Bottom"},{name:"left",title:"Position Left"},{name:"right",title:"Position Right"}],An=[],lt=t=>{let{variant:e,...o}={...Ye,...t},n={};switch(e){case"right":return(0,ht.jsx)(Xe,{style:{height:"230px"},...o,...n,position:"right"});case"left":return(0,ht.jsx)(qe,{style:{height:"230px"},...o,...n,position:"left"});case"bottom":return(0,ht.jsx)(oe,{style:{width:"350px"},...o,...n,position:"bottom"});default:return(0,ht.jsx)(J,{style:{width:"350px"},...o,...n})}};lt.options=Sn;lt.states=kn;lt.variants=gn;lt.defaultOptions=Ye;lt.modifiers=An;lt.className=k.className;var Ze=require("react/jsx-runtime"),oe=t=>(0,Ze.jsx)(J,{position:"bottom",...t});