@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 1.63 kB
JavaScript
var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var f=(t,e)=>{for(var n in e)l(t,n,{get:e[n],enumerable:!0})},g=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of k(e))!x.call(t,o)&&o!==n&&l(t,o,{get:()=>e[o],enumerable:!(i=m(e,o))||i.enumerable});return t};var p=t=>g(l({},"__esModule",{value:!0}),t);var E={};f(E,{Stepper:()=>r,default:()=>y});module.exports=p(E);var s=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?s(...e):typeof e=="object"?Object.keys(e).map((n,i)=>e[i]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var a="stepper",d=a;var c=require("react/jsx-runtime"),u="k-stepper",h=[],b={},v={},r=t=>{let{style:e,...n}=t;return(0,c.jsx)("nav",{...n,style:e,className:s(t.className,u),"aria-label":"Stepper",children:t.children})};r.options=b;r.states=h;r.className=u;r.defaultOptions=v;r.moduleName=a;r.folderName=d;r.ariaSpec={selector:".k-stepper",rules:[{selector:".k-stepper",attribute:"role=navigation or nodeName=nav",usage:"The landmark role navigation must be assigned to the component."},{selector:".k-step.k-disabled>.k-step-link",attribute:"aria-disabled=true",usage:"A disabled (inactive) link."},{selector:".k-step-current>.k-step-link",attribute:"aria-current=step",usage:"The currently selected link."},{selector:".k-step.k-focus .k-step-link",attribute:"tabindex=0",usage:"Focused step link is in the tab order."},{selector:".k-step:not(.k-focus) .k-step-link",attribute:"tabindex=-1",usage:"Non-focused step links are removed from tab order."}]};var y=r;