baseui 0.0.0-alpha-0ccfc47 → 0.0.0-alpha-cb60490

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.
@@ -609,7 +609,6 @@ function DataTable(_ref2) {
609
609
  }
610
610
  }, [gridRef]);
611
611
  var handleWidthsChange = React.useCallback(function (nextWidths) {
612
- console.log('next widths', nextWidths);
613
612
  setMeasuredWidths(nextWidths);
614
613
  resetAfterColumnIndex(0);
615
614
  }, [setMeasuredWidths, resetAfterColumnIndex]);
@@ -726,7 +726,6 @@ export function DataTable({
726
726
  );
727
727
  const handleWidthsChange = React.useCallback(
728
728
  nextWidths => {
729
- console.log('next widths', nextWidths);
730
729
  setMeasuredWidths(nextWidths);
731
730
  resetAfterColumnIndex(0);
732
731
  },
@@ -157,9 +157,10 @@ function MeasureColumnWidths(_ref2) {
157
157
  overflow: 'hidden',
158
158
  height: 0
159
159
  }); // Remove the measurement nodes after we are done updating our column width
160
- // if (widthMap.size === columns.length) {
161
- // return null;
162
- // }
160
+
161
+ if (widthMap.size === columns.length) {
162
+ return null;
163
+ }
163
164
 
164
165
  return (
165
166
  /*#__PURE__*/
@@ -167,9 +167,9 @@ export default function MeasureColumnWidths({
167
167
  });
168
168
 
169
169
  // Remove the measurement nodes after we are done updating our column width
170
- // if (widthMap.size === columns.length) {
171
- // return null;
172
- // }
170
+ if (widthMap.size === columns.length) {
171
+ return null;
172
+ }
173
173
 
174
174
  return (
175
175
  // eslint-disable-next-line jsx-a11y/role-supports-aria-props
@@ -490,7 +490,6 @@ export function DataTable({
490
490
  }
491
491
  }, [gridRef]);
492
492
  const handleWidthsChange = React.useCallback(nextWidths => {
493
- console.log('next widths', nextWidths);
494
493
  setMeasuredWidths(nextWidths);
495
494
  resetAfterColumnIndex(0);
496
495
  }, [setMeasuredWidths, resetAfterColumnIndex]);
@@ -125,9 +125,10 @@ export default function MeasureColumnWidths({
125
125
  overflow: 'hidden',
126
126
  height: 0
127
127
  }); // Remove the measurement nodes after we are done updating our column width
128
- // if (widthMap.size === columns.length) {
129
- // return null;
130
- // }
128
+
129
+ if (widthMap.size === columns.length) {
130
+ return null;
131
+ }
131
132
 
132
133
  return (
133
134
  /*#__PURE__*/
@@ -590,7 +590,6 @@ export function DataTable(_ref2) {
590
590
  }
591
591
  }, [gridRef]);
592
592
  var handleWidthsChange = React.useCallback(function (nextWidths) {
593
- console.log('next widths', nextWidths);
594
593
  setMeasuredWidths(nextWidths);
595
594
  resetAfterColumnIndex(0);
596
595
  }, [setMeasuredWidths, resetAfterColumnIndex]);
@@ -146,9 +146,10 @@ export default function MeasureColumnWidths(_ref2) {
146
146
  overflow: 'hidden',
147
147
  height: 0
148
148
  }); // Remove the measurement nodes after we are done updating our column width
149
- // if (widthMap.size === columns.length) {
150
- // return null;
151
- // }
149
+
150
+ if (widthMap.size === columns.length) {
151
+ return null;
152
+ }
152
153
 
153
154
  return (
154
155
  /*#__PURE__*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-alpha-0ccfc47",
3
+ "version": "0.0.0-alpha-cb60490",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",