UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

6 lines (5 loc) 29.1 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})},dt=(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)):{},dt(t||!e||!e.__esModule?Ke(o,"default",{value:e,enumerable:!0}):o,e)),ko=e=>dt(Ke({},"__esModule",{value:!0}),e);var za={};xo(za,{TimelineCard:()=>j,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 oe=(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:ee,empty:F,readonly:Oe,highlighted:We,...ce}=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":ee,"k-empty":F,"k-readonly":Oe,"k-highlighted":We},Object.keys(ce).reduce((D,te)=>(te.startsWith("k-")?D[te]=ce[te]:D[`k-${te}`]=ce[te],D),{}))};function mt(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"},ae={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},re={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},z={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"},ct={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var Ue={};function W(e){return Ue[e]=(Ue[e]||0)+1,`k-${e}-${Ue[e]}`}var pt=require("react/jsx-runtime"),Lo="k-card-callout",_e=e=>{let{callout:t,...o}=e;return(0,pt.jsx)("span",{...o,className:a(e.className,Lo,{[`k-callout-${ct.calloutMap[t]||t}`]:t})})};var y="card",_=y;var ne=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,ne.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,ne.jsx)(_e,{callout:o}),(0,ne.jsx)(ne.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 ft=require("react/jsx-runtime"),ut="k-card-group",Do=[],Ko={},_o={},pe=e=>{let{...t}=e;return(0,ft.jsx)("div",{...t,className:a(e.className,ut),children:e.children})};pe.states=Do;pe.options=Ko;pe.className=ut;pe.defaultOptions=_o;pe.moduleName=y;pe.folderName=_;var Tt=require("react/jsx-runtime"),Ge="k-card-wrap",Ro=[u.focus,u.selected],Ho={},Bo={},ue=e=>{let{focus:t,selected:o,...r}=e;return(0,Tt.jsx)("div",{...r,className:a(e.className,Ge,K(Ge,{focus:t,selected:o})),children:e.children})};ue.states=Ro;ue.options=Ho;ue.className=Ge;ue.defaultOptions=Bo;ue.moduleName=y;ue.folderName=_;var Nt=require("react/jsx-runtime"),Je="k-card-title",wo=[u.hover,u.focus],ie=e=>{let{hover:t,focus:o,...r}=e;return(0,Nt.jsx)("div",{...r,className:a(e.className,Je,K(Je,{hover:t,focus:o})),children:e.children})};ie.states=wo;ie.className=Je;var Ct=require("react/jsx-runtime"),Po="k-card-subtitle",Z=e=>{let{...t}=e;return(0,Ct.jsx)("div",{...t,className:a(e.className,Po),children:e.children})};var Q=require("react/jsx-runtime"),bt="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,bt),src:t}):(0,Q.jsx)("span",{...o,className:a(e.className,bt),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,oe(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 Et=ke;var le=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:[z.outline,z.solid,z.duotone]},Ze={viewBox:"0 0 24 24",variant:z.outline},Le=e=>{var ee,F;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,le.jsx)(le.Fragment,{});if(s==="none")return(0,le.jsx)("span",{...O,className:a(e.className,Ye,oe("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let A=typeof s=="object"&&s.name&&s.name,g=typeof s=="object"?m&&((ee=s.variants)==null?void 0:ee[m])||((F=s.variants)==null?void 0:F.outline)||s.content:void 0;return(0,le.jsx)("span",{...O,className:a(e.className,Ye,oe("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,le.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 ht="icon",vt="icons";var kt=require("react");var xt=require("react"),Mt=(0,xt.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:[z.outline,z.solid,z.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:z.outline},R=e=>{let{iconsType:t}=(0,kt.useContext)(Mt),{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 F=je[n]?n:$o(`${n}-icon`);return je[F]?(0,J.jsx)(Qe,{...g,className:a(e.className,Re),icon:je[F],size:o,themeColor:r,rotate:m,flip:s,viewBox:O,variant:A}):(0,J.jsx)(J.Fragment,{})}return(0,J.jsx)(Et,{...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=ht;R.folderName=vt;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",Lt=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:[ae.undefined,ae.none,ae.small,ae.medium,ae.large,ae.full],fillMode:[re.undefined,re.solid,re.flat,re.outline,re.clear,re.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:ee,selected:F,disabled:Oe,togglable:We,ariaDisabled:ce,icon:D,iconSize:te,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,mt(Ae,O),oe(Ae,{size:o,rounded:r,fillMode:n,themeColor:p}),K(Ae,{hover:A,focus:g,active:ee,disabled:Oe||ce,selected:F}),{"k-icon-button":!De&&!No&&To}),"aria-pressed":We?F?"true":"false":void 0,...fo,"aria-disabled":ce?"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:te}),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=Lt;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 gt=require("react/jsx-runtime"),At=e=>(0,gt.jsx)(l,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var It=require("react/jsx-runtime"),yt=e=>(0,It.jsx)(l,{icon:"folder",children:"Button",...e});var Ot=require("react/jsx-runtime"),St=e=>(0,Ot.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=[],fe=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,Be.jsx)(At,{...o,icon:"star"});case"icon-and-text":return(0,Be.jsx)(yt,{...o,icon:"star",children:"Button"});default:return(0,Be.jsx)(St,{...o,children:"Button"})}};fe.options=Zo;fe.states=Qo;fe.variants=ea;fe.defaultOptions=jo;fe.modifiers=ta;fe.className=l.className;var U=require("react/jsx-runtime"),oa="k-card-header",q=e=>{let{title:t,subtitle:o,details:r,...n}=e;return(0,U.jsxs)("div",{...n,className:a(e.className,oa),children:[t&&(0,U.jsx)(ie,{children:t}),o&&(0,U.jsx)(Z,{children:o}),(0,U.jsx)(U.Fragment,{children:e.children}),r&&(0,U.jsx)("span",{className:"k-card-header-actions",children:(0,U.jsx)(l,{className:"k-card-details",icon:"more-vertical",fillMode:"flat","aria-label":"Card details"})})]})};var Dt=require("react/jsx-runtime"),aa="k-card-footer",ot=e=>{let{...t}=e;return(0,Dt.jsx)("div",{...t,className:a(e.className,aa),children:e.children})};var V=require("react/jsx-runtime"),ra="k-card-body",H=e=>{let{title:t,subtitle:o,details:r,...n}=e;return(0,V.jsxs)("div",{...n,className:a(e.className,ra),children:[t&&(0,V.jsx)(ie,{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 _t=require("react/jsx-runtime"),Kt="k-card-deck",na=[],ia={},la={},Te=e=>{let{...t}=e;return(0,_t.jsx)("div",{...t,className:a(e.className,Kt),children:e.children})};Te.states=na;Te.options=ia;Te.className=Kt;Te.defaultOptions=la;Te.moduleName=y;Te.folderName=_;var Ht=require("react/jsx-runtime"),Rt="k-card-deck-scrollwrap",sa=[],da={},ma={},Ne=e=>{let{...t}=e;return(0,Ht.jsx)("div",{...t,className:a(e.className,Rt),children:e.children})};Ne.states=sa;Ne.options=da;Ne.className=Rt;Ne.defaultOptions=ma;Ne.moduleName=y;Ne.folderName=_;var at="action-buttons",Bt=at;var wt=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,wt.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=Bt;var B=require("react/jsx-runtime"),Pt=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 w=require("react/jsx-runtime"),Ft=e=>(0,w.jsx)(b,{orientation:"horizontal",children:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(H,{title:"Card Title",children:(0,w.jsx)("p",{children:"Some quick example text to build on the card title and make up the bulk of the card's content."})}),(0,w.jsxs)(x,{orientation:"vertical",className:"k-card-actions",children:[(0,w.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Action 1"}),(0,w.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Action 2"})]})]}),...e});var zt=require("react/jsx-runtime");var T=require("react/jsx-runtime"),ua=b.options,fa=b.states,Wt={...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"}],Ce=e=>{let{variant:t,modifiers:o,...r}={...Wt,...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)(Ft,{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)(Pt,{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"})]})]})};Ce.options=ua;Ce.states=fa;Ce.variants=Ta;Ce.defaultOptions=Wt;Ce.modifiers=Na;Ce.className=b.className;var f="timeline",N=f;var ye=require("react/jsx-runtime"),ge="k-timeline",Ca=[],ba={},Ut={orientation:"vertical"},E=e=>{let{orientation:t=Ut.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=Ut;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"),Vt="k-timeline-event",Ea=[],ha={},be={collapsed:!1,reverse:!1,title:"Event title",subtitle:"Event subtitle",content:"Event content"},h=e=>{let{date:t,content:o=be.content,collapsed:r=be.collapsed,reverse:n=be.reverse,title:p=be.title,subtitle:m=be.subtitle,showCollapseButton:s,id:O=W("timeline-event"),...A}=e,g=`${O}-date`;return(0,M.jsxs)("li",{...A,className:a(e.className,Vt,{"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)(j,{...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)(se,{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=Vt;h.defaultOptions=be;h.moduleName=f;h.folderName=N;var P=require("react/jsx-runtime"),$t="k-timeline-event",va=[],xa={},Pe={title:"Event title",subtitle:"Event subtitle",content:"Event content"},$=e=>{let{content:t=Pe.content,title:o=Pe.title,subtitle:r=Pe.subtitle,ariaLabel:n,panelTabIndex:p,...m}=e;return(0,P.jsxs)("li",{...m,className:a(e.className,$t),children:[t&&(0,P.jsx)("div",{className:a("k-timeline-card"),children:(0,P.jsx)(j,{orientation:"vertical",callout:"top",ariaRole:"tabpanel",ariaLabel:n,cardTabIndex:p,children:(0,P.jsxs)("div",{className:"k-card-inner",children:[(0,P.jsxs)(q,{children:[(0,P.jsx)(se,{children:o}),(0,P.jsx)(Z,{children:r})]}),(0,P.jsx)(H,{children:(0,P.jsx)("div",{className:"k-card-description",children:t})})]})})}),e.children]})};$.states=va;$.options=xa;$.className=$t;$.defaultOptions=Pe;$.moduleName=f;$.folderName=N;var nt=require("react/jsx-runtime"),Gt="k-timeline-events-list",de=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})})};de.className=Gt;de.moduleName=f;de.folderName=N;var Fe=require("react/jsx-runtime"),Jt="k-timeline-flag-wrap",Ma=[u.focus,u.selected],ka={},qt={year:"2020"},k=e=>{let{year:t=qt.year,...o}=e;return(0,Fe.jsxs)("li",{...o,className:a(e.className,Jt),children:[(0,Fe.jsx)("span",{className:"k-timeline-flag",children:t}),e.children]})};k.states=Ma;k.options=ka;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 Ee=require("react/jsx-runtime"),jt="k-card-title",La=[],Aa={},se=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"})})]})};se.states=La;se.className=jt;se.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",me=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})]})};me.className=ro;me.moduleName=f;me.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=W("tl-ev"),o=W("tl-ev"),r=W("tl-ev"),n=W("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)(me,{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)(de,{children:(0,C.jsx)($,{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)(me,{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)(de,{children:(0,c.jsx)($,{})})]})]}):(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 ze=require("react/jsx-runtime"),wa=[],Pa={},j=e=>{let{callout:t,children:o,ariaRole:r,ariaDescribedBy:n,ariaLive:p,ariaExpanded:m,ariaLabel:s,cardTabIndex:O,...A}=e;return(0,ze.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,ze.jsx)(Ie,{callout:t}),o]})};j.states=wa;j.defaultOptions=Pa;var Fa=j;