UNPKG

siegel

Version:

Web application development ecosystem

1 lines 804 B
let e;import t from"react";import r from"../_internals/resolve_tag_attributes.js";import n from"../_internals/component.js";import l from"../_internals/ref_apply.js";let o="-ui-table";function a(e,r){let{children:n,attributes:l={}}=e;return l.key||=r,t.createElement("tr",{...l,children:n.map(i)})}function i(r,n){let{value:l,attributes:o={}}=r;return o.key||=n,t.createElement(e,{...o,children:l})}function m(r,n){return e="thead"==n?"th":"td",t.createElement(n,{children:r.map(a)})}let c=n(o,{},e=>{let{className:n,head:o,body:a,foot:i,rootTagAttributes:c,caption:p}=e,f={className:n};return l(f,e),f=r(f,c),t.createElement("table",{...f},p&&t.createElement("caption",{children:p}),!o?.length||m(o,"thead"),!a?.length||m(a,"tbody"),!i?.length||m(i,"tfoot"))});export default c;export{o as componentID};