UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.96 kB
var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var g=(t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})},h=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of x(e))!f.call(t,a)&&a!==n&&i(t,a,{get:()=>e[a],enumerable:!(o=m(e,a))||o.enumerable});return t};var k=t=>h(i({},"__esModule",{value:!0}),t);var y={};g(y,{PANELBAR_CLASSNAME:()=>d,PanelBar:()=>r,default:()=>v});module.exports=k(y);var l=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((n,o)=>e[o]||e[n]&&n||null).filter(n=>n!==null).join(" "):e).filter(e=>!!e).join(" ");var s="panelbar",u=s;var c=require("react/jsx-runtime"),d="k-panelbar",b=[],p={},A={},r=t=>{let{activeDescendant:e,...n}=t;return(0,c.jsx)("ul",{...n,className:l(t.className,d),role:"tree","aria-activedescendant":e,children:t.children})};r.states=b;r.options=p;r.className=d;r.defaultOptions=A;r.moduleName=s;r.folderName=u;r.ariaSpec={selector:".k-panelbar",rules:[{selector:".k-panelbar",attribute:"role=tree",usage:"The root element of the PanelBar has role tree."},{selector:".k-panelbar",attribute:"aria-activedescendant (when present)",usage:"Points to the currently focused item in the PanelBar."},{selector:".k-panelbar-group",attribute:"role=group",usage:"The ul element that wraps child nodes."},{selector:".k-panelbar-item:not(.k-expanded) > .k-panelbar-group",attribute:"aria-hidden=true",usage:"Hides the group element from assistive technologies when its parent is not expanded."},{selector:".k-panelbar-item",attribute:"role=treeitem",usage:"The li element rendered for a PanelBar item."},{selector:".k-panelbar-item",attribute:"aria-expanded=true/false",usage:"Announces the expanded state of the item (if expandable)."},{selector:".k-panelbar-item",attribute:"aria-selected=true/false",usage:"Announces the selected state of the item."}]};var v=r;