siegel
Version:
Web application development ecosystem
1 lines • 829 B
JavaScript
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=l.key||r,t.createElement("tr",{...l,children:n.map(i)})}function i(r,n){let{value:l,attributes:o={}}=r;return o.key=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,d={className:n};return l(d,e),d=r(d,c),t.createElement("table",{...d},p&&t.createElement("caption",{children:p}),o?.length?m(o,"thead"):void 0,a?.length?m(a,"tbody"):void 0,i?.length?m(i,"tfoot"):void 0)});export default c;export{o as componentID};