UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.19 kB
var d=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var f=(n,e)=>{for(var t in e)d(n,t,{get:e[t],enumerable:!0})},h=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of x(e))!g.call(n,i)&&i!==t&&d(n,i,{get:()=>e[i],enumerable:!(r=m(e,i))||r.enumerable});return n};var k=n=>h(d({},"__esModule",{value:!0}),n);var v={};f(v,{CalendarView:()=>l,default:()=>y});module.exports=k(v);var a=(...n)=>n.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?a(...e):typeof e=="object"?Object.keys(e).map((t,r)=>e[r]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");var c=require("react/jsx-runtime"),s="k-calendar-view",o={orientation:"horizontal",calendarView:"month"},l=n=>{let{orientation:e=o.orientation,calendarView:t=o.calendarView,gridRole:r,ariaLabelledBy:i,...u}=n;return(0,c.jsx)("div",{...u,className:a(n.className,s,`k-calendar-${t}view`,"k-align-items-start","k-justify-content-center",{"k-hstack":e==="horizontal","k-vstack":e==="vertical"}),...r?{role:"grid","aria-labelledby":i,tabIndex:0}:{},children:n.children})};l.className=s;l.defaultOptions=o;var y=l;