@azrico/reactgrid 1.2.25 → 1.2.26

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.2.26](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.25...v1.2.26) (2023-04-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
11
+
5
12
  ### [1.2.25](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.24...v1.2.25) (2023-04-03)
6
13
 
7
14
  ### [1.2.24](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.23...v1.2.24) (2023-04-03)
@@ -27,4 +27,5 @@
27
27
  .azgrid-delayedresize {
28
28
  transition-property: width, height;
29
29
  transition-delay: 200ms;
30
+ transition-duration: 0;
30
31
  }
@@ -239,8 +239,9 @@ function DataGridDelayedSizeWrapper(props) {
239
239
  } = (0, _reactUseSize.useComponentSize)();
240
240
  return _react.default.createElement("div", {
241
241
  ref: ref,
242
- className: (0, _clsx.default)(props.className, 'azgrid-nooverflow', 'azgrid-filler')
242
+ className: (0, _clsx.default)('azgrid-nooverflow', 'azgrid-filler')
243
243
  }, _react.default.createElement("div", {
244
+ className: (0, _clsx.default)('azgrid-delayedresize'),
244
245
  style: {
245
246
  height: height,
246
247
  width: width
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/reactgrid",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "main": "dist/index.js",
5
5
  "description": "React Datagrid",
6
6
  "author": "Azrideus <MehrdadTavangar@gmail.com>",
@@ -27,4 +27,5 @@
27
27
  .azgrid-delayedresize {
28
28
  transition-property: width, height;
29
29
  transition-delay: 200ms;
30
+ transition-duration: 0;
30
31
  }
@@ -403,11 +403,11 @@ function DataGridSizeWrapper(props: DataGridWrapperProps) {
403
403
  function DataGridDelayedSizeWrapper(props: DataGridWrapperProps) {
404
404
  const { ref, height, width } = useComponentSize();
405
405
  return (
406
- <div
407
- ref={ref}
408
- className={clsx(props.className, 'azgrid-nooverflow', 'azgrid-filler')}
409
- >
410
- <div style={{ height: height, width: width }}>
406
+ <div ref={ref} className={clsx('azgrid-nooverflow', 'azgrid-filler')}>
407
+ <div
408
+ className={clsx('azgrid-delayedresize')}
409
+ style={{ height: height, width: width }}
410
+ >
411
411
  <DataGridCore {...props} />
412
412
  </div>
413
413
  </div>