UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 821 B
var i=(...r)=>r.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?i(...e):typeof e=="object"?Object.keys(e).map((t,n)=>e[n]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");import{Fragment as c,jsx as o,jsxs as u}from"react/jsx-runtime";var s="k-form-fieldset",a=r=>{let{legend:e,layout:t,cols:n,gutters:l,colSpan:d}=r;return u("fieldset",{className:i(s,{[`k-col-span-${d}`]:d}),children:[e&&o("legend",{className:"k-form-legend",children:e}),t==="grid"?o("div",{className:i("k-form-layout","k-d-grid",{[`k-grid-cols-${n}`]:n}),style:{...typeof l=="string"&&{gap:l},...typeof l=="object"&&l.rows&&{rowGap:l.rows},...typeof l=="object"&&l.cols&&{columnGap:l.cols}},children:r.children}):o(c,{children:r.children})]})};a.className=s;var $=a;export{s as FIELDSET_CLASSNAME,a as Fieldset,$ as default};