@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
6 lines (5 loc) • 29.1 kB
JavaScript
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,{TimelineDemo:()=>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 f="timeline",T=f;var Me=require("react/jsx-runtime"),xe="k-timeline",Lo=[],Ao={},pt={orientation:"vertical"},E=e=>{let{orientation:t=pt.orientation,collapsibleEvents:o,alternatingMode:r,...n}=e;return(0,Me.jsx)("div",{...n,className:a(e.className,xe,{[`${xe}-${t}`]:t,[`${xe}-alternating`]:r,[`${xe}-collapsible`]:o}),children:(0,Me.jsx)(Me.Fragment,{children:e.children})})};E.states=Lo;E.options=Ao;E.className=xe;E.defaultOptions=pt;E.moduleName=f;E.folderName=T;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 ft=require("react/jsx-runtime"),ut="k-timeline-circle",y=e=>{let{...t}=e;return(0,ft.jsx)("span",{...t,className:a(e.className,ut)})};y.className=ut;y.moduleName=f;y.folderName=T;var Ve=require("react/jsx-runtime"),Tt="k-timeline-date-wrap",go=[],yo={},Nt={date:"May 25, 2008"},x=e=>{let{date:t=Nt.date,...o}=e;return(0,Ve.jsx)("div",{...o,className:a(e.className,Tt),children:(0,Ve.jsx)("span",{className:"k-timeline-date",children:t})})};x.states=go;x.options=yo;x.className=Tt;x.defaultOptions=Nt;x.moduleName=f;x.folderName=T;var bt=require("react/jsx-runtime"),Ct="k-timeline-flag",J=e=>{let{content:t,...o}=e;return(0,bt.jsx)("span",{...o,className:a(e.className,Ct),children:t})};J.className=Ct;J.moduleName=f;J.folderName=T;var Et=require("react/jsx-runtime"),$e="k-timeline-track-item",Io=[u.focus],h=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,Et.jsxs)("li",{...p,className:a(e.className,$e,K($e,{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]})};h.states=Io;h.className=$e;h.moduleName=f;h.folderName=T;var ke=require("react/jsx-runtime"),Ge="k-font-icon",So=[],Oo={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]},Do={},Le=e=>{let{size:t,themeColor:o,icon:r,rotate:n,flip:p,...m}=e;return r?(0,ke.jsx)("span",{...m,className:a(e.className,Ge,oe(Ge,{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,ke.jsx)(ke.Fragment,{})};Le.states=So;Le.options=Oo;Le.className=Ge;Le.defaultOptions=Do;var ht=Le;var ne=require("react/jsx-runtime"),Je="k-svg-icon",Ko=[],_o={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]},qe={viewBox:"0 0 24 24",variant:z.outline},Ae=e=>{var ee,F;let{size:t,themeColor:o,rotate:r,flip:n,viewBox:p=qe.viewBox,variant:m=qe.variant,icon:s,...O}=e;if(!s)return(0,ne.jsx)(ne.Fragment,{});if(s==="none")return(0,ne.jsx)("span",{...O,className:a(e.className,Je,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,ne.jsx)("span",{...O,className:a(e.className,Je,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,ne.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})})};Ae.states=Ko;Ae.options=_o;Ae.className=Je;Ae.defaultOptions=qe;var Xe=Ae;var Ye=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 q=require("react/jsx-runtime"),_e="k-icon",Ro=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ho=[],Bo={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]},Re={viewBox:"0 0 24 24",type:"svg",variant:z.outline},_=e=>{let{iconsType:t}=(0,Lt.useContext)(kt),{size:o,themeColor:r,icon:n,type:p=t||Re.type,rotate:m,flip:s,viewBox:O=Re.viewBox,variant:A=Re.variant,...g}=e;if(!n)return(0,q.jsx)(q.Fragment,{});if((t||p)==="svg"){if(n==="none")return(0,q.jsx)(Xe,{...g,className:a(e.className,_e),icon:n,size:o,variant:A});let F=Ye[n]?n:Ro(`${n}-icon`);return Ye[F]?(0,q.jsx)(Xe,{...g,className:a(e.className,_e),icon:Ye[F],size:o,themeColor:r,rotate:m,flip:s,viewBox:O,variant:A}):(0,q.jsx)(q.Fragment,{})}return(0,q.jsx)(ht,{...g,className:a(e.className,_e),icon:n,size:o,themeColor:r,rotate:m,flip:s})};_.states=Ho;_.options=Bo;_.defaultOptions=Re;_.className=_e;_.moduleName=vt;_.folderName=xt;_.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 Ze="button",At=Ze;var I=require("react/jsx-runtime"),ge="k-button",wo=["icon-button"],Po=[u.hover,u.focus,u.active,u.selected,u.disabled,u.generating],Fo={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]},Qe={showArrow:!1,arrowIconName:"chevron-down"},l=e=>{let{as:t="button",size:o,rounded:r,fillMode:n,themeColor:p,showArrow:m=Qe.showArrow,arrowIconName:s=Qe.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,ge,mt(ge,O),oe(ge,{size:o,rounded:r,fillMode:n,themeColor:p}),K(ge,{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)(_,{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)(_,{icon:s})})]})};l.states=Po;l.options=Fo;l.variants=wo;l.className=ge;l.defaultOptions=Qe;l.moduleName=Ze;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 He=require("react/jsx-runtime"),zo=l.options,Wo=l.states,Uo={...l.defaultOptions,variant:"text"},Vo=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],$o=[],pe=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,He.jsx)(gt,{...o,icon:"star"});case"icon-and-text":return(0,He.jsx)(It,{...o,icon:"star",children:"Button"});default:return(0,He.jsx)(Ot,{...o,children:"Button"})}};pe.options=zo;pe.states=Wo;pe.variants=Vo;pe.defaultOptions=Uo;pe.modifiers=$o;pe.className=l.className;var Kt=require("react/jsx-runtime"),Go="k-card-callout",Be=e=>{let{callout:t,...o}=e;return(0,Kt.jsx)("span",{...o,className:a(e.className,Go,{[`k-callout-${ct.calloutMap[t]||t}`]:t})})};var S="card",R=S;var ie=require("react/jsx-runtime"),je="k-card",Jo=[u.hover,u.focus,u.selected,u.disabled],qo={},Xo={},b=e=>{let{orientation:t,callout:o,hover:r,focus:n,selected:p,disabled:m,...s}=e;return(0,ie.jsxs)("div",{...s,className:a(e.className,je,K(je,{hover:r,focus:n,disabled:m,selected:p}),{[`k-card-${t}`]:t,"k-card-with-callout":o}),children:[o&&o!=="true"&&(0,ie.jsx)(Be,{callout:o}),(0,ie.jsx)(ie.Fragment,{children:e.children})]})};b.states=Jo;b.options=qo;b.className=je;b.defaultOptions=Xo;b.moduleName=S;b.folderName=R;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 ye=require("react/jsx-runtime"),et="k-card-list",Yo=[],Zo={},Qo={},Y=e=>{let{...t}=e;return(0,ye.jsx)("div",{...t,className:a(e.className,et,K(et,{})),role:"list",children:(0,ye.jsx)(ye.Fragment,{children:e.children})})};Y.states=Yo;Y.options=Zo;Y.className=et;Y.defaultOptions=Qo;Y.moduleName=S;Y.folderName=R;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 Rt=require("react/jsx-runtime"),_t="k-card-group",jo=[],ea={},ta={},ue=e=>{let{...t}=e;return(0,Rt.jsx)("div",{...t,className:a(e.className,_t),children:e.children})};ue.states=jo;ue.options=ea;ue.className=_t;ue.defaultOptions=ta;ue.moduleName=S;ue.folderName=R;var Ht=require("react/jsx-runtime"),tt="k-card-wrap",oa=[u.focus,u.selected],aa={},ra={},fe=e=>{let{focus:t,selected:o,...r}=e;return(0,Ht.jsx)("div",{...r,className:a(e.className,tt,K(tt,{focus:t,selected:o})),children:e.children})};fe.states=oa;fe.options=aa;fe.className=tt;fe.defaultOptions=ra;fe.moduleName=S;fe.folderName=R;var Bt=require("react/jsx-runtime"),ot="k-card-title",na=[u.hover,u.focus],le=e=>{let{hover:t,focus:o,...r}=e;return(0,Bt.jsx)("div",{...r,className:a(e.className,ot,K(ot,{hover:t,focus:o})),children:e.children})};le.states=na;le.className=ot;var wt=require("react/jsx-runtime"),ia="k-card-subtitle",Z=e=>{let{...t}=e;return(0,wt.jsx)("div",{...t,className:a(e.className,ia),children:e.children})};var Q=require("react/jsx-runtime"),Pt="k-card-media",at=e=>{let{src:t,...o}=e;return(0,Q.jsx)(Q.Fragment,{children:t?(0,Q.jsx)("img",{...o,className:a(e.className,Pt),src:t}):(0,Q.jsx)("span",{...o,className:a(e.className,Pt),children:(0,Q.jsx)(Q.Fragment,{children:e.children})})})};var U=require("react/jsx-runtime"),la="k-card-header",X=e=>{let{title:t,subtitle:o,details:r,...n}=e;return(0,U.jsxs)("div",{...n,className:a(e.className,la),children:[t&&(0,U.jsx)(le,{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 Ft=require("react/jsx-runtime"),sa="k-card-footer",rt=e=>{let{...t}=e;return(0,Ft.jsx)("div",{...t,className:a(e.className,sa),children:e.children})};var V=require("react/jsx-runtime"),da="k-card-body",H=e=>{let{title:t,subtitle:o,details:r,...n}=e;return(0,V.jsxs)("div",{...n,className:a(e.className,da),children:[t&&(0,V.jsx)(le,{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 Wt=require("react/jsx-runtime"),zt="k-card-deck",ma=[],ca={},pa={},Te=e=>{let{...t}=e;return(0,Wt.jsx)("div",{...t,className:a(e.className,zt),children:e.children})};Te.states=ma;Te.options=ca;Te.className=zt;Te.defaultOptions=pa;Te.moduleName=S;Te.folderName=R;var Vt=require("react/jsx-runtime"),Ut="k-card-deck-scrollwrap",ua=[],fa={},Ta={},Ne=e=>{let{...t}=e;return(0,Vt.jsx)("div",{...t,className:a(e.className,Ut),children:e.children})};Ne.states=ua;Ne.options=fa;Ne.className=Ut;Ne.defaultOptions=Ta;Ne.moduleName=S;Ne.folderName=R;var nt="action-buttons",$t=nt;var Gt=require("react/jsx-runtime"),we="k-actions",Na=[],Ca={},it={alignment:"start",orientation:"horizontal"},M=e=>{let{alignment:t=it.alignment,orientation:o=it.orientation,...r}=e;return(0,Gt.jsx)("div",{...r,className:a(we,{[`${we}-${t}`]:t,[`${we}-${o}`]:o},e.className),children:e.children})};M.states=Na;M.options=Ca;M.className=we;M.defaultOptions=it;M.moduleName=nt;M.folderName=$t;var B=require("react/jsx-runtime"),Jt=e=>(0,B.jsx)(b,{orientation:"vertical",children:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(X,{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)(M,{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"),qt=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)(M,{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 Xt=require("react/jsx-runtime");var N=require("react/jsx-runtime"),ba=b.options,Ea=b.states,Yt={...b.defaultOptions,variant:"vertical"},ha=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],va=[{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}={...Yt,...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,N.jsxs)(qt,{style:{maxWidth:"420px"},...r,children:[n&&(0,N.jsx)(at,{src:"https://demos.telerik.com/kendo-ui/content/web/cards/rome.jpg"}),(0,N.jsxs)("div",{children:[p&&(0,N.jsx)(X,{title:"Header Title",subtitle:"Header Subtitle"}),(0,N.jsx)(H,{title:"Title",subtitle:"Subtitle",children:(0,N.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,N.jsx)(rt,{children:"Card Footer"})]}),(p||m)&&(0,N.jsx)("span",{className:"k-separator k-separator-vertical"}),(0,N.jsxs)(M,{orientation:"vertical",alignment:"stretched",className:"k-card-actions",children:[(0,N.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Button"}),(0,N.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Button"})]})]}):(0,N.jsxs)(Jt,{style:{maxHeight:"450px",width:"300px"},...r,children:[p&&(0,N.jsx)(X,{title:"Header Title",subtitle:"Header Subtitle"}),n&&(0,N.jsx)(at,{src:"https://demos.telerik.com/kendo-ui/content/web/cards/rome.jpg"}),(0,N.jsx)(H,{title:"Title",subtitle:"Subtitle",children:(0,N.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,N.jsx)(rt,{children:"Card Footer"}),(0,N.jsxs)(M,{className:"k-card-actions",children:[(0,N.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Button"}),(0,N.jsx)(l,{fillMode:"flat",themeColor:"primary",children:"Button"})]})]})};Ce.options=ba;Ce.states=Ea;Ce.variants=ha;Ce.defaultOptions=Yt;Ce.modifiers=va;Ce.className=b.className;var k=require("react/jsx-runtime"),Zt="k-timeline-event",xa=[],Ma={},be={collapsed:!1,reverse:!1,title:"Event title",subtitle:"Event subtitle",content:"Event content"},v=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,k.jsxs)("li",{...A,className:a(e.className,Zt,{"k-reverse":n}),children:[t&&(0,k.jsx)("div",{className:"k-timeline-date-wrap",children:(0,k.jsx)("span",{className:"k-timeline-date",id:g,children:t})}),(0,k.jsx)(y,{}),o&&(0,k.jsx)("div",{className:a("k-timeline-card",{"k-collapsed":r}),children:(0,k.jsx)(Ee,{...n?{callout:"right"}:{callout:"left"},ariaRole:"button",ariaDescribedBy:t?g:void 0,ariaLive:"polite",cardTabIndex:0,ariaExpanded:s?!r:void 0,children:(0,k.jsxs)("div",{className:"k-card-inner",children:[(0,k.jsxs)(X,{children:[(0,k.jsx)(se,{collapsible:s,children:p}),(0,k.jsx)(Z,{children:m})]}),(0,k.jsx)(H,{children:(0,k.jsx)("div",{className:"k-card-description",children:o})})]})})}),e.children]})};v.states=xa;v.options=Ma;v.className=Zt;v.defaultOptions=be;v.moduleName=f;v.folderName=T;var P=require("react/jsx-runtime"),Qt="k-timeline-event",ka=[],La={},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,Qt),children:[t&&(0,P.jsx)("div",{className:a("k-timeline-card"),children:(0,P.jsx)(Ee,{orientation:"vertical",callout:"top",ariaRole:"tabpanel",ariaLabel:n,cardTabIndex:p,children:(0,P.jsxs)("div",{className:"k-card-inner",children:[(0,P.jsxs)(X,{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=ka;$.options=La;$.className=Qt;$.defaultOptions=Pe;$.moduleName=f;$.folderName=T;var lt=require("react/jsx-runtime"),jt="k-timeline-events-list",de=e=>{let{...t}=e;return(0,lt.jsx)("div",{...t,className:a(e.className,jt),children:(0,lt.jsx)("ul",{className:"k-timeline-scrollable-wrap",children:e.children})})};de.className=jt;de.moduleName=f;de.folderName=T;var Fe=require("react/jsx-runtime"),eo="k-timeline-flag-wrap",Aa=[u.focus,u.selected],ga={},to={year:"2020"},L=e=>{let{year:t=to.year,...o}=e;return(0,Fe.jsxs)("li",{...o,className:a(e.className,eo),children:[(0,Fe.jsx)("span",{className:"k-timeline-flag",children:t}),e.children]})};L.states=Aa;L.options=ga;L.className=eo;L.defaultOptions=to;L.moduleName=f;L.folderName=T;var ze=require("react/jsx-runtime"),ya=[],Ia={},Ee=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]})};Ee.states=ya;Ee.defaultOptions=Ia;var he=require("react/jsx-runtime"),oo="k-card-title",Sa=[],Oa={},se=e=>{let{collapsible:t,children:o,...r}=e;return(0,he.jsxs)("div",{className:a(e.className,oo),...r,children:[(0,he.jsx)("span",{className:"k-event-title",children:o}),t&&(0,he.jsx)("span",{className:"k-event-collapse k-button k-button-flat k-button-xs k-icon-button",children:(0,he.jsx)(_,{icon:"chevron-right",className:"k-button-icon"})})]})};se.states=Sa;se.className=oo;se.defaultOptions=Oa;var ro=require("react/jsx-runtime"),ao="k-timeline-card-callout",Da=[],Ka={},Ie=e=>{let{...t}=e;return(0,ro.jsx)(Be,{className:a(e.className,ao),...t})};Ie.states=Da;Ie.className=ao;Ie.defaultOptions=Ka;var st=require("react/jsx-runtime"),no="k-timeline-track",Se=e=>{let{...t}=e;return(0,st.jsx)("div",{...t,className:a(e.className,no),children:(0,st.jsx)("ul",{className:"k-timeline-scrollable-wrap",role:"tablist",children:e.children})})};Se.className=no;Se.moduleName=f;Se.folderName=T;var io=require("react/jsx-runtime");var lo=require("react/jsx-runtime");var G=require("react/jsx-runtime"),so=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)(L,{year:"2010"}),(0,G.jsx)(v,{id:t,date:"Apr 11, 2010",reverse:!0}),(0,G.jsx)(v,{id:o,date:"May 11, 2010"}),(0,G.jsx)(L,{year:"2011"}),(0,G.jsx)(v,{id:r,date:"Oct 11, 2011",reverse:!0}),(0,G.jsx)(v,{id:n,date:"Dec 11, 2011"})]}),...e})};var C=require("react/jsx-runtime"),mo=e=>(0,C.jsx)(E,{orientation:"horizontal",children:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(me,{children:[(0,C.jsx)(h,{className:"k-timeline-flag-wrap",children:(0,C.jsx)(J,{content:"2015"})}),(0,C.jsxs)(h,{children:[(0,C.jsx)(x,{date:"Jan 14, 2015"}),(0,C.jsx)(y,{})]}),(0,C.jsxs)(h,{focus:!0,ariaSelected:!0,ariaDescribedBy:"panel-1",children:[(0,C.jsx)(x,{date:"Jun 1, 2015"}),(0,C.jsx)(y,{})]}),(0,C.jsxs)(h,{children:[(0,C.jsx)(x,{date:"Sep 29, 2015"}),(0,C.jsx)(y,{})]}),(0,C.jsx)(h,{className:"k-timeline-flag-wrap",children:(0,C.jsx)(J,{content:"2016"})})]}),(0,C.jsx)(de,{children:(0,C.jsx)($,{ariaLabel:"Jun 1, 2015",panelTabIndex:0})})]}),...e});var ve=require("react/jsx-runtime"),co="k-timeline-track-wrap",me=e=>{let{...t}=e;return(0,ve.jsxs)("div",{...t,className:a(e.className,co),children:[(0,ve.jsx)(l,{className:"k-timeline-arrow k-timeline-arrow-left",rounded:"full",icon:"chevron-left",disabled:!0,"aria-hidden":"true",tabIndex:-1}),(0,ve.jsx)(l,{className:"k-timeline-arrow k-timeline-arrow-right",rounded:"full",icon:"chevron-right","aria-hidden":"true",tabIndex:-1}),(0,ve.jsx)(Se,{children:e.children})]})};me.className=co;me.moduleName=f;me.folderName=T;var c=require("react/jsx-runtime"),_a=E.options,Ra=E.states,Ha={...E.defaultOptions,variant:"vertical"},Ba=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],wa=[],Pa=`
.k-timeline-events-list .k-timeline-scrollable-wrap {
height: 115px !important;
}
`,j=e=>{let{variant:t,...o}=e;return t==="horizontal"?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("style",{children:Pa}),(0,c.jsxs)(mo,{...o,children:[(0,c.jsxs)(me,{children:[(0,c.jsx)(h,{className:"k-timeline-flag-wrap",children:(0,c.jsx)(J,{content:"Timeline Flag"})}),(0,c.jsxs)(h,{children:[(0,c.jsx)(x,{date:"Date"}),(0,c.jsx)(y,{})]}),(0,c.jsxs)(h,{className:"k-focus",children:[(0,c.jsx)(x,{date:"Current Date"}),(0,c.jsx)(y,{})]}),(0,c.jsxs)(h,{children:[(0,c.jsx)(x,{date:"Date"}),(0,c.jsx)(y,{})]}),(0,c.jsx)(h,{className:"k-timeline-flag-wrap",children:(0,c.jsx)(J,{content:"Timeline Flag"})})]}),(0,c.jsx)(de,{children:(0,c.jsx)($,{})})]})]}):(0,c.jsx)(so,{...o,children:(0,c.jsxs)("ul",{children:[(0,c.jsx)(L,{year:"Timeline Flag"}),(0,c.jsx)(v,{title:"Header",subtitle:"Subheader",showCollapseButton:!0,date:"Timeline Date",reverse:!0}),(0,c.jsx)(L,{year:"Timeline Flag"}),(0,c.jsx)(v,{title:"Header",subtitle:"Subheader",showCollapseButton:!0,date:"Timeline Date"})]})})};j.options=_a;j.states=Ra;j.variants=Ba;j.defaultOptions=Ha;j.modifiers=wa;j.className=E.className;var Fa=j;