UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

6 lines (5 loc) 29.2 kB
var Co=Object.create;var Ke=Object.defineProperty;var bo=Object.getOwnPropertyDescriptor;var Eo=Object.getOwnPropertyNames;var ho=Object.getPrototypeOf,vo=Object.prototype.hasOwnProperty;var xo=(e,t)=>{for(var o in t)Ke(e,o,{get:t[o],enumerable:!0})},mt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Eo(t))!vo.call(e,n)&&n!==o&&Ke(e,n,{get:()=>t[n],enumerable:!(r=bo(t,n))||r.enumerable});return e};var Mo=(e,t,o)=>(o=e!=null?Co(ho(e)):{},mt(t||!e||!e.__esModule?Ke(o,"default",{value:e,enumerable:!0}):o,e)),ko=e=>mt(Ke({},"__esModule",{value:!0}),e);var za={};xo(za,{HorizontalTimelineEvent:()=>w,TIMELINEHORIZONTALEVENT_CLASSNAME:()=>dt,default:()=>Fa});module.exports=ko(za);var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var te=(e,t)=>a({[`${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"}),K=(e,t)=>{let{valid:o,invalid:r,hover:n,focus:p,checked:m,active:s,selected:O,disabled:A,indeterminate:g,loading:j,empty:z,readonly:Oe,highlighted:We,...me}=t;return a({"k-valid":o,"k-invalid":r,"k-hover":n,"k-focus":p,"k-checked":m,"k-active":s,"k-selected":O,"k-disabled":A,"k-indeterminate":g&&!m,"k-loading":j,"k-empty":z,"k-readonly":Oe,"k-highlighted":We},Object.keys(me).reduce((D,ee)=>(ee.startsWith("k-")?D[ee]=me[ee]:D[`k-${ee}`]=me[ee],D),{}))};function ct(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(r=>[`k-${r}`,!0]))}var d={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},oe={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},ae={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},W={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},i={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},u={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"},pt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var Ue={};function U(e){return Ue[e]=(Ue[e]||0)+1,`k-${e}-${Ue[e]}`}var ut=require("react/jsx-runtime"),Lo="k-card-callout",_e=e=>{let{callout:t,...o}=e;return(0,ut.jsx)("span",{...o,className:a(e.className,Lo,{[`k-callout-${pt.calloutMap[t]||t}`]:t})})};var y="card",_=y;var re=require("react/jsx-runtime"),Ve="k-card",Ao=[u.hover,u.focus,u.selected,u.disabled],go={},yo={},b=e=>{let{orientation:t,callout:o,hover:r,focus:n,selected:p,disabled:m,...s}=e;return(0,re.jsxs)("div",{...s,className:a(e.className,Ve,K(Ve,{hover:r,focus:n,disabled:m,selected:p}),{[`k-card-${t}`]:t,"k-card-with-callout":o}),children:[o&&o!=="true"&&(0,re.jsx)(_e,{callout:o}),(0,re.jsx)(re.Fragment,{children:e.children})]})};b.states=Ao;b.options=go;b.className=Ve;b.defaultOptions=yo;b.moduleName=y;b.folderName=_;b.ariaSpec={selector:".k-card",rules:[{selector:".k-card-list .k-card",attribute:"role=listitem",usage:"When the card is located in a list, it should have the listitem role."},{selector:".k-card-list .k-card",attribute:"tabindex=0",usage:"The card component is focusable when navigatable."},{selector:".k-card-list .k-card",attribute:"aria-describedby=.k-card-title id",usage:"Associate the card to the title element."},{selector:".k-card-list .k-card",attribute:"aria-keyshortcuts=Enter",usage:"Announces the bound Enter key that enables navigation inside the card."}]};var xe=require("react/jsx-runtime"),$e="k-card-list",Io=[],So={},Oo={},Y=e=>{let{...t}=e;return(0,xe.jsx)("div",{...t,className:a(e.className,$e,K($e,{})),role:"list",children:(0,xe.jsx)(xe.Fragment,{children:e.children})})};Y.states=Io;Y.options=So;Y.className=$e;Y.defaultOptions=Oo;Y.moduleName=y;Y.folderName=_;Y.ariaSpec={selector:".k-card-list",rules:[{selector:".k-card-list",attribute:"role=list",usage:"The card list container announces its list role."},{selector:".k-card-list .k-card",attribute:"role=listitem",usage:"Each card in the list has the listitem role."},{selector:".k-card-list .k-card",attribute:"tabindex=0",usage:"The card is focusable when navigatable."},{selector:".k-card-list .k-card",attribute:"aria-describedby=.k-card-title id",usage:"Associate the card to its title element."},{selector:".k-card-list .k-card",attribute:"aria-keyshortcuts=Enter",usage:"Announces the Enter key for navigation inside the card."}]};var Tt=require("react/jsx-runtime"),ft="k-card-group",Do=[],Ko={},_o={},ce=e=>{let{...t}=e;return(0,Tt.jsx)("div",{...t,className:a(e.className,ft),children:e.children})};ce.states=Do;ce.options=Ko;ce.className=ft;ce.defaultOptions=_o;ce.moduleName=y;ce.folderName=_;var Nt=require("react/jsx-runtime"),Ge="k-card-wrap",Ro=[u.focus,u.selected],Ho={},Bo={},pe=e=>{let{focus:t,selected:o,...r}=e;return(0,Nt.jsx)("div",{...r,className:a(e.className,Ge,K(Ge,{focus:t,selected:o})),children:e.children})};pe.states=Ro;pe.options=Ho;pe.className=Ge;pe.defaultOptions=Bo;pe.moduleName=y;pe.folderName=_;var Ct=require("react/jsx-runtime"),Je="k-card-title",wo=[u.hover,u.focus],ne=e=>{let{hover:t,focus:o,...r}=e;return(0,Ct.jsx)("div",{...r,className:a(e.className,Je,K(Je,{hover:t,focus:o})),children:e.children})};ne.states=wo;ne.className=Je;var bt=require("react/jsx-runtime"),Po="k-card-subtitle",Z=e=>{let{...t}=e;return(0,bt.jsx)("div",{...t,className:a(e.className,Po),children:e.children})};var Q=require("react/jsx-runtime"),Et="k-card-media",qe=e=>{let{src:t,...o}=e;return(0,Q.jsx)(Q.Fragment,{children:t?(0,Q.jsx)("img",{...o,className:a(e.className,Et),src:t}):(0,Q.jsx)("span",{...o,className:a(e.className,Et),children:(0,Q.jsx)(Q.Fragment,{children:e.children})})})};var Me=require("react/jsx-runtime"),Xe="k-font-icon",Fo=[],zo={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[i.undefined,i.base,i.primary,i.secondary,i.tertiary,i.success,i.warning,i.error,i.info]},Wo={},ke=e=>{let{size:t,themeColor:o,icon:r,rotate:n,flip:p,...m}=e;return r?(0,Me.jsx)("span",{...m,className:a(e.className,Xe,te(Xe,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"}),"aria-hidden":"true"}):(0,Me.jsx)(Me.Fragment,{})};ke.states=Fo;ke.options=zo;ke.className=Xe;ke.defaultOptions=Wo;var ht=ke;var ie=require("react/jsx-runtime"),Ye="k-svg-icon",Uo=[],Vo={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[i.undefined,i.base,i.primary,i.secondary,i.tertiary,i.success,i.warning,i.error,i.info],variant:[W.outline,W.solid,W.duotone]},Ze={viewBox:"0 0 24 24",variant:W.outline},Le=e=>{var j,z;let{size:t,themeColor:o,rotate:r,flip:n,viewBox:p=Ze.viewBox,variant:m=Ze.variant,icon:s,...O}=e;if(!s)return(0,ie.jsx)(ie.Fragment,{});if(s==="none")return(0,ie.jsx)("span",{...O,className:a(e.className,Ye,te("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let A=typeof s=="object"&&s.name&&s.name,g=typeof s=="object"?m&&((j=s.variants)==null?void 0:j[m])||((z=s.variants)==null?void 0:z.outline)||s.content:void 0;return(0,ie.jsx)("span",{...O,className:a(e.className,Ye,te("k-icon",{size:t}),{[`k-svg-i-${A}`]:A,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:(0,ie.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof s=="object"?s.viewBox:p,dangerouslySetInnerHTML:g!==void 0?{__html:g}:void 0,children:s?void 0:e.children})})};Le.states=Uo;Le.options=Vo;Le.className=Ye;Le.defaultOptions=Ze;var Qe=Le;var je=Mo(require("@progress/kendo-svg-icons"));var vt="icon",xt="icons";var Lt=require("react");var Mt=require("react"),kt=(0,Mt.createContext)({iconsType:"svg"});var J=require("react/jsx-runtime"),Re="k-icon",$o=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Go=[],Jo={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[i.undefined,i.base,i.primary,i.secondary,i.tertiary,i.success,i.warning,i.error,i.info],variant:[W.outline,W.solid,W.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:W.outline},R=e=>{let{iconsType:t}=(0,Lt.useContext)(kt),{size:o,themeColor:r,icon:n,type:p=t||He.type,rotate:m,flip:s,viewBox:O=He.viewBox,variant:A=He.variant,...g}=e;if(!n)return(0,J.jsx)(J.Fragment,{});if((t||p)==="svg"){if(n==="none")return(0,J.jsx)(Qe,{...g,className:a(e.className,Re),icon:n,size:o,variant:A});let z=je[n]?n:$o(`${n}-icon`);return je[z]?(0,J.jsx)(Qe,{...g,className:a(e.className,Re),icon:je[z],size:o,themeColor:r,rotate:m,flip:s,viewBox:O,variant:A}):(0,J.jsx)(J.Fragment,{})}return(0,J.jsx)(ht,{...g,className:a(e.className,Re),icon:n,size:o,themeColor:r,rotate:m,flip:s})};R.states=Go;R.options=Jo;R.defaultOptions=He;R.className=Re;R.moduleName=vt;R.folderName=xt;R.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 et="button",At=et;var I=require("react/jsx-runtime"),Ae="k-button",qo=["icon-button"],Xo=[u.hover,u.focus,u.active,u.selected,u.disabled,u.generating],Yo={size:[d.undefined,d.xsmall,d.small,d.medium,d.large],rounded:[oe.undefined,oe.none,oe.small,oe.medium,oe.large,oe.full],fillMode:[ae.undefined,ae.solid,ae.flat,ae.outline,ae.clear,ae.link],themeColor:[i.undefined,i.base,i.primary,i.secondary,i.tertiary,i.success,i.warning,i.error,i.info,i.inverse]},tt={showArrow:!1,arrowIconName:"chevron-down"},l=e=>{let{as:t="button",size:o,rounded:r,fillMode:n,themeColor:p,showArrow:m=tt.showArrow,arrowIconName:s=tt.arrowIconName,variant:O,hover:A,focus:g,active:j,selected:z,disabled:Oe,togglable:We,ariaDisabled:me,icon:D,iconSize:ee,text:De,iconClassName:po,className:uo,...fo}=e,To=D!=null,No=e.children!==void 0;return(0,I.jsxs)(t,{className:a(uo,Ae,ct(Ae,O),te(Ae,{size:o,rounded:r,fillMode:n,themeColor:p}),K(Ae,{hover:A,focus:g,active:j,disabled:Oe||me,selected:z}),{"k-icon-button":!De&&!No&&To}),"aria-pressed":We?z?"true":"false":void 0,...fo,"aria-disabled":me?"true":void 0,disabled:Oe||void 0,children:[typeof D=="string"&&D&&(0,I.jsx)(R,{className:a(po,"k-button-icon"),icon:D,size:ee}),D&&typeof D!="string"&&(0,I.jsx)(I.Fragment,{children:D}),De?(0,I.jsxs)(I.Fragment,{children:[De&&(0,I.jsx)("span",{className:"k-button-text",children:De}),e.children]}):e.children&&(0,I.jsx)("span",{className:"k-button-text",children:e.children}),m&&(0,I.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,I.jsx)(R,{icon:s})})]})};l.states=Xo;l.options=Yo;l.variants=qo;l.className=Ae;l.defaultOptions=tt;l.moduleName=et;l.folderName=At;l.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 yt=require("react/jsx-runtime"),gt=e=>(0,yt.jsx)(l,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var St=require("react/jsx-runtime"),It=e=>(0,St.jsx)(l,{icon:"folder",children:"Button",...e});var Dt=require("react/jsx-runtime"),Ot=e=>(0,Dt.jsx)(l,{children:"Button",...e});var Be=require("react/jsx-runtime"),Zo=l.options,Qo=l.states,jo={...l.defaultOptions,variant:"text"},ea=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ta=[],ue=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,Be.jsx)(gt,{...o,icon:"star"});case"icon-and-text":return(0,Be.jsx)(It,{...o,icon:"star",children:"Button"});default:return(0,Be.jsx)(Ot,{...o,children:"Button"})}};ue.options=Zo;ue.states=Qo;ue.variants=ea;ue.defaultOptions=jo;ue.modifiers=ta;ue.className=l.className;var V=require("react/jsx-runtime"),oa="k-card-header",q=e=>{let{title:t,subtitle:o,details:r,...n}=e;return(0,V.jsxs)("div",{...n,className:a(e.className,oa),children:[t&&(0,V.jsx)(ne,{children:t}),o&&(0,V.jsx)(Z,{children:o}),(0,V.jsx)(V.Fragment,{children:e.children}),r&&(0,V.jsx)("span",{className:"k-card-header-actions",children:(0,V.jsx)(l,{className:"k-card-details",icon:"more-vertical",fillMode:"flat","aria-label":"Card details"})})]})};var Kt=require("react/jsx-runtime"),aa="k-card-footer",ot=e=>{let{...t}=e;return(0,Kt.jsx)("div",{...t,className:a(e.className,aa),children:e.children})};var $=require("react/jsx-runtime"),ra="k-card-body",H=e=>{let{title:t,subtitle:o,details:r,...n}=e;return(0,$.jsxs)("div",{...n,className:a(e.className,ra),children:[t&&(0,$.jsx)(ne,{children:t}),o&&(0,$.jsx)(Z,{children:o}),(0,$.jsx)($.Fragment,{children:e.children}),r&&(0,$.jsx)("span",{className:"k-card-header-actions",children:(0,$.jsx)(l,{className:"k-card-details",icon:"more-vertical",fillMode:"flat","aria-label":"Card details"})})]})};var Rt=require("react/jsx-runtime"),_t="k-card-deck",na=[],ia={},la={},fe=e=>{let{...t}=e;return(0,Rt.jsx)("div",{...t,className:a(e.className,_t),children:e.children})};fe.states=na;fe.options=ia;fe.className=_t;fe.defaultOptions=la;fe.moduleName=y;fe.folderName=_;var Bt=require("react/jsx-runtime"),Ht="k-card-deck-scrollwrap",sa=[],da={},ma={},Te=e=>{let{...t}=e;return(0,Bt.jsx)("div",{...t,className:a(e.className,Ht),children:e.children})};Te.states=sa;Te.options=da;Te.className=Ht;Te.defaultOptions=ma;Te.moduleName=y;Te.folderName=_;var at="action-buttons",wt=at;var Pt=require("react/jsx-runtime"),we="k-actions",ca=[],pa={},rt={alignment:"start",orientation:"horizontal"},x=e=>{let{alignment:t=rt.alignment,orientation:o=rt.orientation,...r}=e;return(0,Pt.jsx)("div",{...r,className:a(we,{[`${we}-${t}`]:t,[`${we}-${o}`]:o},e.className),children:e.children})};x.states=ca;x.options=pa;x.className=we;x.defaultOptions=rt;x.moduleName=at;x.folderName=wt;var B=require("react/jsx-runtime"),Ft=e=>(0,B.jsx)(b,{orientation:"vertical",children:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(q,{children:"Card Header"}),(0,B.jsx)(H,{children:(0,B.jsx)("p",{children:"Some quick example text to build on the card title and make up the bulk of the card's content."})}),(0,B.jsxs)(x,{className:"k-card-actions",children:[(0,B.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Action 1"}),(0,B.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Action 2"})]})]}),...e});var P=require("react/jsx-runtime"),zt=e=>(0,P.jsx)(b,{orientation:"horizontal",children:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(H,{title:"Card Title",children:(0,P.jsx)("p",{children:"Some quick example text to build on the card title and make up the bulk of the card's content."})}),(0,P.jsxs)(x,{orientation:"vertical",className:"k-card-actions",children:[(0,P.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Action 1"}),(0,P.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Action 2"})]})]}),...e});var Wt=require("react/jsx-runtime");var T=require("react/jsx-runtime"),ua=b.options,fa=b.states,Ut={...b.defaultOptions,variant:"vertical"},Ta=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Na=[{name:"media",title:"Card with Media"},{name:"header",title:"Card with Header"},{name:"footer",title:"Card with Footer"}],Ne=e=>{let{variant:t,modifiers:o,...r}={...Ut,...e},n=!1,p=!1,m=!1;return Object.keys(o||{}).forEach(s=>{switch(s){case"media":{n=!!(o!=null&&o[s]);break}case"header":{p=!!(o!=null&&o[s]);break}case"footer":{m=!!(o!=null&&o[s]);break}}}),t==="horizontal"?(0,T.jsxs)(zt,{style:{maxWidth:"420px"},...r,children:[n&&(0,T.jsx)(qe,{src:"https://demos.telerik.com/kendo-ui/content/web/cards/rome.jpg"}),(0,T.jsxs)("div",{children:[p&&(0,T.jsx)(q,{title:"Header Title",subtitle:"Header Subtitle"}),(0,T.jsx)(H,{title:"Title",subtitle:"Subtitle",children:(0,T.jsx)("p",{children:"Some quick example text to build on the card title and make up the bulk of the card's content."})}),m&&(0,T.jsx)(ot,{children:"Card Footer"})]}),(p||m)&&(0,T.jsx)("span",{className:"k-separator k-separator-vertical"}),(0,T.jsxs)(x,{orientation:"vertical",alignment:"stretched",className:"k-card-actions",children:[(0,T.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Button"}),(0,T.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Button"})]})]}):(0,T.jsxs)(Ft,{style:{maxHeight:"450px",width:"300px"},...r,children:[p&&(0,T.jsx)(q,{title:"Header Title",subtitle:"Header Subtitle"}),n&&(0,T.jsx)(qe,{src:"https://demos.telerik.com/kendo-ui/content/web/cards/rome.jpg"}),(0,T.jsx)(H,{title:"Title",subtitle:"Subtitle",children:(0,T.jsx)("p",{children:"Some quick example text to build on the card title and make up the bulk of the card's content."})}),m&&(0,T.jsx)(ot,{children:"Card Footer"}),(0,T.jsxs)(x,{className:"k-card-actions",children:[(0,T.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Button"}),(0,T.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Button"})]})]})};Ne.options=ua;Ne.states=fa;Ne.variants=Ta;Ne.defaultOptions=Ut;Ne.modifiers=Na;Ne.className=b.className;var f="timeline",N=f;var ye=require("react/jsx-runtime"),ge="k-timeline",Ca=[],ba={},Vt={orientation:"vertical"},E=e=>{let{orientation:t=Vt.orientation,collapsibleEvents:o,alternatingMode:r,...n}=e;return(0,ye.jsx)("div",{...n,className:a(e.className,ge,{[`${ge}-${t}`]:t,[`${ge}-alternating`]:r,[`${ge}-collapsible`]:o}),children:(0,ye.jsx)(ye.Fragment,{children:e.children})})};E.states=Ca;E.options=ba;E.className=ge;E.defaultOptions=Vt;E.moduleName=f;E.folderName=N;E.ariaSpec={rules:[{selector:".k-timeline.k-timeline-horizontal .k-timeline-track-wrap .k-timeline-scrollable-wrap",attribute:"role=tablist",usage:"Indicates the tablist role for the scrollable wrap element."},{selector:".k-timeline.k-timeline-horizontal .k-timeline-track-item:not(.k-timeline-flag-wrap)",attribute:"role=tab",usage:"Individual tab element on the track."},{selector:".k-timeline.k-timeline-horizontal .k-timeline-track-item:not(.k-timeline-flag-wrap).k-focus",attribute:"aria-selected=true",usage:"Announces the selected state of the focused tab."},{selector:".k-timeline.k-timeline-horizontal .k-timeline-flag-wrap",attribute:"role=none",usage:"The flag-wrap items have semantics removed."},{selector:".k-timeline.k-timeline-horizontal .k-timeline-flag-wrap",attribute:"aria-hidden=true",usage:"Flag-wrap items are hidden from the accessibility tree."},{selector:".k-timeline.k-timeline-horizontal .k-card:not(:empty)",attribute:"role=tabpanel",usage:"The card serves as the tab panel content."},{selector:".k-timeline.k-timeline-horizontal .k-card:not(:empty)",attribute:"aria-label",usage:"Refers to the tab element that controls the panel."},{selector:".k-timeline-arrow",attribute:"aria-hidden=true",usage:"Arrow buttons are hidden from the accessibility tree."},{selector:".k-timeline.k-timeline-vertical .k-card",attribute:"role=button",usage:"Items in the vertical timeline are buttons."},{selector:".k-timeline.k-timeline-vertical .k-card",attribute:"aria-describedby",usage:"Vertical timeline cards are described by their date elements."},{selector:".k-timeline.k-timeline-vertical .k-card",attribute:"aria-live=polite",usage:"Vertical timeline cards are live regions."},{selector:".k-timeline.k-timeline-vertical .k-card",attribute:"tabindex=0",usage:"Vertical timeline cards are focusable."},{selector:".k-timeline.k-timeline-collapsible .k-collapsed .k-card",attribute:"aria-expanded=false",usage:"Collapsed cards announce their collapsed state."},{selector:".k-timeline.k-timeline-collapsible .k-timeline-card:not(.k-collapsed) .k-card",attribute:"aria-expanded=true",usage:"Expanded cards announce their expanded state."}]};var M=require("react/jsx-runtime"),$t="k-timeline-event",Ea=[],ha={},Ce={collapsed:!1,reverse:!1,title:"Event title",subtitle:"Event subtitle",content:"Event content"},h=e=>{let{date:t,content:o=Ce.content,collapsed:r=Ce.collapsed,reverse:n=Ce.reverse,title:p=Ce.title,subtitle:m=Ce.subtitle,showCollapseButton:s,id:O=U("timeline-event"),...A}=e,g=`${O}-date`;return(0,M.jsxs)("li",{...A,className:a(e.className,$t,{"k-reverse":n}),children:[t&&(0,M.jsx)("div",{className:"k-timeline-date-wrap",children:(0,M.jsx)("span",{className:"k-timeline-date",id:g,children:t})}),(0,M.jsx)(S,{}),o&&(0,M.jsx)("div",{className:a("k-timeline-card",{"k-collapsed":r}),children:(0,M.jsx)(be,{...n?{callout:"right"}:{callout:"left"},ariaRole:"button",ariaDescribedBy:t?g:void 0,ariaLive:"polite",cardTabIndex:0,ariaExpanded:s?!r:void 0,children:(0,M.jsxs)("div",{className:"k-card-inner",children:[(0,M.jsxs)(q,{children:[(0,M.jsx)(le,{collapsible:s,children:p}),(0,M.jsx)(Z,{children:m})]}),(0,M.jsx)(H,{children:(0,M.jsx)("div",{className:"k-card-description",children:o})})]})})}),e.children]})};h.states=Ea;h.options=ha;h.className=$t;h.defaultOptions=Ce;h.moduleName=f;h.folderName=N;var nt=require("react/jsx-runtime"),Gt="k-timeline-events-list",se=e=>{let{...t}=e;return(0,nt.jsx)("div",{...t,className:a(e.className,Gt),children:(0,nt.jsx)("ul",{className:"k-timeline-scrollable-wrap",children:e.children})})};se.className=Gt;se.moduleName=f;se.folderName=N;var Pe=require("react/jsx-runtime"),Jt="k-timeline-flag-wrap",va=[u.focus,u.selected],xa={},qt={year:"2020"},k=e=>{let{year:t=qt.year,...o}=e;return(0,Pe.jsxs)("li",{...o,className:a(e.className,Jt),children:[(0,Pe.jsx)("span",{className:"k-timeline-flag",children:t}),e.children]})};k.states=va;k.options=xa;k.className=Jt;k.defaultOptions=qt;k.moduleName=f;k.folderName=N;var Yt=require("react/jsx-runtime"),Xt="k-timeline-circle",S=e=>{let{...t}=e;return(0,Yt.jsx)("span",{...t,className:a(e.className,Xt)})};S.className=Xt;S.moduleName=f;S.folderName=N;var Qt=require("react/jsx-runtime"),Zt="k-timeline-flag",X=e=>{let{content:t,...o}=e;return(0,Qt.jsx)("span",{...o,className:a(e.className,Zt),children:t})};X.className=Zt;X.moduleName=f;X.folderName=N;var Fe=require("react/jsx-runtime"),Ma=[],ka={},be=e=>{let{callout:t,children:o,ariaRole:r,ariaDescribedBy:n,ariaLive:p,ariaExpanded:m,ariaLabel:s,cardTabIndex:O,...A}=e;return(0,Fe.jsxs)(b,{className:a(e.className),orientation:"vertical",callout:"true",role:r,"aria-describedby":n,"aria-live":p,"aria-expanded":m!==void 0?m?"true":"false":void 0,"aria-label":s,tabIndex:O,...A,children:[t&&(0,Fe.jsx)(Ie,{callout:t}),o]})};be.states=Ma;be.defaultOptions=ka;var Ee=require("react/jsx-runtime"),jt="k-card-title",La=[],Aa={},le=e=>{let{collapsible:t,children:o,...r}=e;return(0,Ee.jsxs)("div",{className:a(e.className,jt),...r,children:[(0,Ee.jsx)("span",{className:"k-event-title",children:o}),t&&(0,Ee.jsx)("span",{className:"k-event-collapse k-button k-button-flat k-button-xs k-icon-button",children:(0,Ee.jsx)(R,{icon:"chevron-right",className:"k-button-icon"})})]})};le.states=La;le.className=jt;le.defaultOptions=Aa;var to=require("react/jsx-runtime"),eo="k-timeline-card-callout",ga=[],ya={},Ie=e=>{let{...t}=e;return(0,to.jsx)(_e,{className:a(e.className,eo),...t})};Ie.states=ga;Ie.className=eo;Ie.defaultOptions=ya;var it=require("react/jsx-runtime"),oo="k-timeline-date-wrap",Ia=[],Sa={},ao={date:"May 25, 2008"},L=e=>{let{date:t=ao.date,...o}=e;return(0,it.jsx)("div",{...o,className:a(e.className,oo),children:(0,it.jsx)("span",{className:"k-timeline-date",children:t})})};L.states=Ia;L.options=Sa;L.className=oo;L.defaultOptions=ao;L.moduleName=f;L.folderName=N;var he=require("react/jsx-runtime"),ro="k-timeline-track-wrap",de=e=>{let{...t}=e;return(0,he.jsxs)("div",{...t,className:a(e.className,ro),children:[(0,he.jsx)(l,{className:"k-timeline-arrow k-timeline-arrow-left",rounded:"full",icon:"chevron-left",disabled:!0,"aria-hidden":"true",tabIndex:-1}),(0,he.jsx)(l,{className:"k-timeline-arrow k-timeline-arrow-right",rounded:"full",icon:"chevron-right","aria-hidden":"true",tabIndex:-1}),(0,he.jsx)(Se,{children:e.children})]})};de.className=ro;de.moduleName=f;de.folderName=N;var lt=require("react/jsx-runtime"),no="k-timeline-track",Se=e=>{let{...t}=e;return(0,lt.jsx)("div",{...t,className:a(e.className,no),children:(0,lt.jsx)("ul",{className:"k-timeline-scrollable-wrap",role:"tablist",children:e.children})})};Se.className=no;Se.moduleName=f;Se.folderName=N;var io=require("react/jsx-runtime"),st="k-timeline-track-item",Oa=[u.focus],v=e=>{var s;let{content:t,focus:o,ariaSelected:r,ariaDescribedBy:n,...p}=e,m=(s=p.className)==null?void 0:s.includes("k-timeline-flag-wrap");return(0,io.jsxs)("li",{...p,className:a(e.className,st,K(st,{focus:o})),role:m?"none":"tab","aria-hidden":m?"true":void 0,"aria-selected":!m&&r?"true":void 0,"aria-describedby":m?void 0:n,children:[t,e.children]})};v.states=Oa;v.className=st;v.moduleName=f;v.folderName=N;var lo=require("react/jsx-runtime");var so=require("react/jsx-runtime");var G=require("react/jsx-runtime"),mo=e=>{let t=U("tl-ev"),o=U("tl-ev"),r=U("tl-ev"),n=U("tl-ev");return(0,G.jsx)(E,{alternatingMode:!0,children:(0,G.jsxs)("ul",{children:[(0,G.jsx)(k,{year:"2010"}),(0,G.jsx)(h,{id:t,date:"Apr 11, 2010",reverse:!0}),(0,G.jsx)(h,{id:o,date:"May 11, 2010"}),(0,G.jsx)(k,{year:"2011"}),(0,G.jsx)(h,{id:r,date:"Oct 11, 2011",reverse:!0}),(0,G.jsx)(h,{id:n,date:"Dec 11, 2011"})]}),...e})};var C=require("react/jsx-runtime"),co=e=>(0,C.jsx)(E,{orientation:"horizontal",children:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(de,{children:[(0,C.jsx)(v,{className:"k-timeline-flag-wrap",children:(0,C.jsx)(X,{content:"2015"})}),(0,C.jsxs)(v,{children:[(0,C.jsx)(L,{date:"Jan 14, 2015"}),(0,C.jsx)(S,{})]}),(0,C.jsxs)(v,{focus:!0,ariaSelected:!0,ariaDescribedBy:"panel-1",children:[(0,C.jsx)(L,{date:"Jun 1, 2015"}),(0,C.jsx)(S,{})]}),(0,C.jsxs)(v,{children:[(0,C.jsx)(L,{date:"Sep 29, 2015"}),(0,C.jsx)(S,{})]}),(0,C.jsx)(v,{className:"k-timeline-flag-wrap",children:(0,C.jsx)(X,{content:"2016"})})]}),(0,C.jsx)(se,{children:(0,C.jsx)(w,{ariaLabel:"Jun 1, 2015",panelTabIndex:0})})]}),...e});var c=require("react/jsx-runtime"),Da=E.options,Ka=E.states,_a={...E.defaultOptions,variant:"vertical"},Ra=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Ha=[],Ba=` .k-timeline-events-list .k-timeline-scrollable-wrap { height: 115px !important; } `,ve=e=>{let{variant:t,...o}=e;return t==="horizontal"?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("style",{children:Ba}),(0,c.jsxs)(co,{...o,children:[(0,c.jsxs)(de,{children:[(0,c.jsx)(v,{className:"k-timeline-flag-wrap",children:(0,c.jsx)(X,{content:"Timeline Flag"})}),(0,c.jsxs)(v,{children:[(0,c.jsx)(L,{date:"Date"}),(0,c.jsx)(S,{})]}),(0,c.jsxs)(v,{className:"k-focus",children:[(0,c.jsx)(L,{date:"Current Date"}),(0,c.jsx)(S,{})]}),(0,c.jsxs)(v,{children:[(0,c.jsx)(L,{date:"Date"}),(0,c.jsx)(S,{})]}),(0,c.jsx)(v,{className:"k-timeline-flag-wrap",children:(0,c.jsx)(X,{content:"Timeline Flag"})})]}),(0,c.jsx)(se,{children:(0,c.jsx)(w,{})})]})]}):(0,c.jsx)(mo,{...o,children:(0,c.jsxs)("ul",{children:[(0,c.jsx)(k,{year:"Timeline Flag"}),(0,c.jsx)(h,{title:"Header",subtitle:"Subheader",showCollapseButton:!0,date:"Timeline Date",reverse:!0}),(0,c.jsx)(k,{year:"Timeline Flag"}),(0,c.jsx)(h,{title:"Header",subtitle:"Subheader",showCollapseButton:!0,date:"Timeline Date"})]})})};ve.options=Da;ve.states=Ka;ve.variants=Ra;ve.defaultOptions=_a;ve.modifiers=Ha;ve.className=E.className;var F=require("react/jsx-runtime"),dt="k-timeline-event",wa=[],Pa={},ze={title:"Event title",subtitle:"Event subtitle",content:"Event content"},w=e=>{let{content:t=ze.content,title:o=ze.title,subtitle:r=ze.subtitle,ariaLabel:n,panelTabIndex:p,...m}=e;return(0,F.jsxs)("li",{...m,className:a(e.className,dt),children:[t&&(0,F.jsx)("div",{className:a("k-timeline-card"),children:(0,F.jsx)(be,{orientation:"vertical",callout:"top",ariaRole:"tabpanel",ariaLabel:n,cardTabIndex:p,children:(0,F.jsxs)("div",{className:"k-card-inner",children:[(0,F.jsxs)(q,{children:[(0,F.jsx)(le,{children:o}),(0,F.jsx)(Z,{children:r})]}),(0,F.jsx)(H,{children:(0,F.jsx)("div",{className:"k-card-description",children:t})})]})})}),e.children]})};w.states=wa;w.options=Pa;w.className=dt;w.defaultOptions=ze;w.moduleName=f;w.folderName=N;var Fa=w;