UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 1.4 kB
var r=(...n)=>n.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?r(...e):typeof e=="object"?Object.keys(e).map((o,s)=>e[s]||e[o]&&o||null).filter(o=>o!==null).join(" "):e).filter(e=>!!e).join(" ");var i="radio",a=i;import{jsx as m}from"react/jsx-runtime";var l="k-radio-list",u=[],c={},d={layout:"vertical"},t=n=>{let{layout:e=d.layout,...o}=n;return m("ul",{...o,className:r(n.className,l,{[`k-list-${e}`]:e}),role:"radiogroup",children:n.children})};t.states=u;t.options=c;t.className=l;t.defaultOptions=d;t.moduleName=i;t.folderName=a;t.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 O=t;export{l as RADIOGROUP_CLASSNAME,t as RadioGroup,O as default};