@corva/ui 0.32.0-16 → 0.32.0-17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/slicedToArray";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{Table as l,TableHead as o,TableRow as c,TableCell as u,TableBody as p}from"@material-ui/core";import{useState as d}from"react";import a from"@babel/runtime/helpers/objectWithoutProperties";import s from"prop-types";import{withSize as m}from"react-sizeme";import h from"./ResizableTableHeaderCell.js";import f from"./ResizableTableCell.js";function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function v(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){e(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}var y=function(s){var m,b,y,O,j,w=s.children,P=s.size,g=a(s,["children","size"]),z=t(w,2),R=z[0],W=z[1],k=null==W||null===(m=W.props)||void 0===m?void 0:m.children,A=null==R||null===(b=R.props)||void 0===b||null===(y=b.children)||void 0===y||null===(O=y.props)||void 0===O||null===(j=O.children)||void 0===j?void 0:j.reduce((function(e,t){return Array.isArray(t)?e.push.apply(e,r(t)):e.push(t),e}),[]),C=1/((null==A?void 0:A.length)||1),D=null==A?void 0:A.map((function(e,r){return"cell".concat(r)})),T=d((function(){return null==D?void 0:D.reduce((function(r,t){return v(v({},r),{},e({},t,C))}),{})})),q=t(T,2),x=q[0],E=q[1],N=function(e){return E(e)};return n(l,v(v({},g),{},{children:[i(o,{children:i(c,{children:null==A?void 0:A.map((function(e,r){var t;return e?r===A.length-1?i(u,{children:null===(t=e.props)||void 0===t?void 0:t.children},e.key):i(h,{totalWidth:P.width,columnWidths:x,updateWidth:N,cellName:"cell".concat(r),nextCellName:"cell".concat(r+1),children:e},e.key):null}))})}),i(p,{children:null==k?void 0:k.map((function(e){var r,t;return i(c,{children:null==e||null===(r=e.props)||void 0===r||null===(t=r.children)||void 0===t?void 0:t.map((function(e,r){return e&&i(f,{totalWidth:P.width,widthRatio:x["cell".concat(r)],children:e},r)}))},e.key)}))})]}))};y.propTypes={children:s.node.isRequired,size:s.shape({width:s.number.isRequired}).isRequired};var O=m()(y);export default O;
1
+ import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/slicedToArray";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{Table as l,TableHead as o,TableRow as c,TableCell as u,TableBody as p}from"@material-ui/core";import{useState as d}from"react";import a from"@babel/runtime/helpers/objectWithoutProperties";import s from"prop-types";import{withSize as m}from"react-sizeme";import h from"./ResizableTableHeaderCell.js";import f from"./ResizableTableCell.js";function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function v(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){e(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}var y=function(s){var m,b,y,O,j,w=s.children,P=s.size,g=a(s,["children","size"]),z=t(w,2),R=z[0],k=z[1],W=null==k||null===(m=k.props)||void 0===m?void 0:m.children,A=null==R||null===(b=R.props)||void 0===b||null===(y=b.children)||void 0===y||null===(O=y.props)||void 0===O||null===(j=O.children)||void 0===j?void 0:j.reduce((function(e,t){return Array.isArray(t)?e.push.apply(e,r(t)):e.push(t),e}),[]),C=1/((null==A?void 0:A.length)||1),D=null==A?void 0:A.map((function(e,r){return"cell".concat(r)})),T=d((function(){return null==D?void 0:D.reduce((function(r,t){return v(v({},r),{},e({},t,C))}),{})})),q=t(T,2),x=q[0],E=q[1],N=function(e){return E(e)};return n(l,v(v({},g),{},{children:[i(o,{children:i(c,{children:null==A?void 0:A.map((function(e,r){var t;return e?r===A.length-1?i(u,{children:null===(t=e.props)||void 0===t?void 0:t.children},e.key||r):i(h,{totalWidth:P.width,columnWidths:x,updateWidth:N,cellName:"cell".concat(r),nextCellName:"cell".concat(r+1),children:e},e.key||r):null}))})}),i(p,{children:null==W?void 0:W.map((function(e){var r,t;return i(c,{children:null==e||null===(r=e.props)||void 0===r||null===(t=r.children)||void 0===t?void 0:t.map((function(e,r){return e&&i(f,{totalWidth:P.width,widthRatio:x["cell".concat(r)],children:e},e.key||r)}))},e.key)}))})]}))};y.propTypes={children:s.node.isRequired,size:s.shape({width:s.number.isRequired}).isRequired};var O=m()(y);export default O;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.32.0-16",
3
+ "version": "0.32.0-17",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"