@dxos/react-ui-masonry 0.8.4-main.406dc2a → 0.8.4-main.ae835ea

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-masonry",
3
- "version": "0.8.4-main.406dc2a",
3
+ "version": "0.8.4-main.ae835ea",
4
4
  "description": "A masonry component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -24,34 +24,34 @@
24
24
  "dependencies": {
25
25
  "@radix-ui/react-compose-refs": "1.1.1",
26
26
  "masonic": "^4.1.0",
27
- "@dxos/react-hooks": "0.8.4-main.406dc2a"
27
+ "@dxos/react-hooks": "0.8.4-main.ae835ea"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/react": "~19.2.2",
31
- "@types/react-dom": "~19.2.1",
31
+ "@types/react-dom": "~19.2.2",
32
32
  "effect": "3.18.3",
33
33
  "react": "~19.2.0",
34
34
  "react-dom": "~19.2.0",
35
35
  "vite": "7.1.9",
36
- "@dxos/echo": "0.8.4-main.406dc2a",
37
- "@dxos/client": "0.8.4-main.406dc2a",
38
- "@dxos/random": "0.8.4-main.406dc2a",
39
- "@dxos/react-client": "0.8.4-main.406dc2a",
40
- "@dxos/react-ui-form": "0.8.4-main.406dc2a",
41
- "@dxos/react-ui-theme": "0.8.4-main.406dc2a",
42
- "@dxos/react-ui-stack": "0.8.4-main.406dc2a",
43
- "@dxos/storybook-utils": "0.8.4-main.406dc2a",
44
- "@dxos/schema": "0.8.4-main.406dc2a",
45
- "@dxos/react-ui": "0.8.4-main.406dc2a",
46
- "@dxos/test-utils": "0.8.4-main.406dc2a"
36
+ "@dxos/client": "0.8.4-main.ae835ea",
37
+ "@dxos/echo": "0.8.4-main.ae835ea",
38
+ "@dxos/random": "0.8.4-main.ae835ea",
39
+ "@dxos/react-ui": "0.8.4-main.ae835ea",
40
+ "@dxos/react-client": "0.8.4-main.ae835ea",
41
+ "@dxos/react-ui-stack": "0.8.4-main.ae835ea",
42
+ "@dxos/react-ui-theme": "0.8.4-main.ae835ea",
43
+ "@dxos/schema": "0.8.4-main.ae835ea",
44
+ "@dxos/storybook-utils": "0.8.4-main.ae835ea",
45
+ "@dxos/react-ui-form": "0.8.4-main.ae835ea",
46
+ "@dxos/test-utils": "0.8.4-main.ae835ea"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "effect": "^3.13.3",
50
50
  "react": "^19.0.0",
51
51
  "react-dom": "^19.0.0",
52
- "@dxos/random": "0.8.4-main.406dc2a",
53
- "@dxos/react-ui": "0.8.4-main.406dc2a",
54
- "@dxos/react-ui-theme": "0.8.4-main.406dc2a"
52
+ "@dxos/random": "0.8.4-main.ae835ea",
53
+ "@dxos/react-ui-theme": "0.8.4-main.ae835ea",
54
+ "@dxos/react-ui": "0.8.4-main.ae835ea"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public"
package/src/Masonry.tsx CHANGED
@@ -57,12 +57,13 @@ const usePxProps = (remProps: Omit<UsePositionerOptions, 'width' | 'columnCount'
57
57
  }, [remProps, remInPx]);
58
58
  };
59
59
 
60
+ // TODO(burdon): Currently not responsive to width.
60
61
  const MasonryRootImpl = <Item,>(
61
62
  {
62
63
  columnCount,
63
64
  maxColumnCount,
64
- columnWidth = 18,
65
- maxColumnWidth,
65
+ columnWidth = 18, // cardMaxWidth
66
+ maxColumnWidth = 22,
66
67
  columnGutter = 1,
67
68
  rowGutter,
68
69
  items,
@@ -86,7 +87,7 @@ const MasonryRootImpl = <Item,>(
86
87
  [columnWidth, maxColumnWidth, columnGutter, rowGutter],
87
88
  );
88
89
  const pxProps = usePxProps(remProps);
89
- const positionerProps = useMemo(
90
+ const positionerProps = useMemo<UsePositionerOptions>(
90
91
  () => ({
91
92
  width,
92
93
  columnCount,
@@ -110,6 +111,7 @@ const MasonryRootImpl = <Item,>(
110
111
  render,
111
112
  onRender,
112
113
  });
114
+
113
115
  return (
114
116
  <div className={mx(classNames)} {...props} ref={ref}>
115
117
  {children}