@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 1.84 kB
JavaScript
var l=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var g=(t,e)=>{for(var o in e)l(t,o,{get:e[o],enumerable:!0})},k=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of x(e))!f.call(t,r)&&r!==o&&l(t,r,{get:()=>e[r],enumerable:!(i=h(e,r))||i.enumerable});return t};var y=t=>k(l({},"__esModule",{value:!0}),t);var A={};g(A,{RADIOGROUP_CLASSNAME:()=>s,RadioGroup:()=>n,default:()=>p});module.exports=y(A);var a=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?a(...e):typeof e=="object"?Object.keys(e).map((o,i)=>e[i]||e[o]&&o||null).filter(o=>o!==null).join(" "):e).filter(e=>!!e).join(" ");var d="radio",u=d;var m=require("react/jsx-runtime"),s="k-radio-list",b=[],v={},c={layout:"vertical"},n=t=>{let{layout:e=c.layout,...o}=t;return(0,m.jsx)("ul",{...o,className:a(t.className,s,{[`k-list-${e}`]:e}),role:"radiogroup",children:t.children})};n.states=b;n.options=v;n.className=s;n.defaultOptions=c;n.moduleName=d;n.folderName=u;n.ariaSpec={selector:".k-radio-list",rules:[{selector:".k-radio-list",attribute:"role=radiogroup",usage:"Announces the radiogroup role of the element."},{selector:".k-radio-list-item",attribute:"role=none",usage:"Due to issues with nested items, forces a no-role state."},{selector:".k-radio",attribute:"readonly or aria-readonly (when readonly)",usage:"The attribute is rendered only when the radio button is read-only."},{selector:".k-radio",attribute:"aria-invalid=true (when invalid)",usage:"The attribute is rendered only when the radio button is in a form and announces the invalid state of the component."},{selector:".k-radio-list-item.k-disabled .k-radio",attribute:"disabled or aria-disabled (when disabled)",usage:"The attribute is rendered only when the radio button is disabled."}]};var p=n;