@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 1.96 kB
JavaScript
var a=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var k=(t,e)=>{for(var i in e)a(t,i,{get:e[i],enumerable:!0})},p=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of f(e))!y.call(t,n)&&n!==i&&a(t,n,{get:()=>e[n],enumerable:!(o=h(e,n))||o.enumerable});return t};var b=t=>p(a({},"__esModule",{value:!0}),t);var E={};k(E,{TILELAYOUT_CLASSNAME:()=>s,TileLayout:()=>l,default:()=>A});module.exports=b(E);var r=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?r(...e):typeof e=="object"?Object.keys(e).map((i,o)=>e[o]||e[i]&&i||null).filter(i=>i!==null).join(" "):e).filter(e=>!!e).join(" ");var d="tile-layout",u="tilelayout";var c=require("react/jsx-runtime"),s="k-tilelayout",L=[],v={},T={},l=t=>{let{gap:e,columns:i,columnWidth:o,rowHeight:n,style:m,children:x}=t,g={gridTemplateColumns:`repeat(${i}, minmax(0px, ${o}))`,gridAutoRows:`minmax(0px, ${n})`,gap:e,...m};return(0,c.jsx)("div",{className:r(t.className,s),style:g,role:"list",children:x})};l.states=L;l.options=v;l.className=s;l.defaultOptions=T;l.moduleName=d;l.folderName=u;l.ariaSpec={selector:".k-tilelayout",rules:[{selector:".k-tilelayout",attribute:"role=list",usage:"Sets list role to the TileLayout wrapper."},{selector:".k-tilelayout-item",attribute:"role=listitem",usage:"Sets listitem role to the TileLayout items."},{selector:".k-tilelayout-item",attribute:"aria-labelledby",usage:"Associates the focusable item wrapper with the respective header text element."},{selector:".k-tilelayout-item",attribute:"tabindex=0",usage:"Makes the item wrapper element focusable."},{selector:".k-tilelayout-item",attribute:"aria-keyshortcuts=Enter",usage:"Announces Enter as an available key shortcut when the item is focused."},{selector:".k-tilelayout-item-header .k-card-title",attribute:"id",usage:"Unique identifier to link the header text element to the focusable wrapper."}]};var A=l;