@dxos/react-ui-masonry 0.8.4-main.d05539e30a → 0.8.4-main.d9fc60f731
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/dist/lib/browser/index.mjs +3 -2
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +3 -2
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/Masonry.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +22 -22
- package/src/Masonry.stories.tsx +4 -4
- package/src/Masonry.tsx +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-masonry",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.d9fc60f731",
|
|
4
4
|
"description": "A masonry component.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -31,37 +31,37 @@
|
|
|
31
31
|
"@radix-ui/react-context": "1.1.1",
|
|
32
32
|
"@virtuoso.dev/masonry": "^1.4.2",
|
|
33
33
|
"react-resize-detector": "^11.0.1",
|
|
34
|
-
"@dxos/react-hooks": "0.8.4-main.
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/ui-types": "0.8.4-main.
|
|
34
|
+
"@dxos/react-hooks": "0.8.4-main.d9fc60f731",
|
|
35
|
+
"@dxos/types": "0.8.4-main.d9fc60f731",
|
|
36
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.d9fc60f731",
|
|
37
|
+
"@dxos/ui-types": "0.8.4-main.d9fc60f731"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/react": "~19.2.7",
|
|
41
41
|
"@types/react-dom": "~19.2.3",
|
|
42
|
-
"effect": "3.
|
|
42
|
+
"effect": "3.21.2",
|
|
43
43
|
"react": "~19.2.3",
|
|
44
44
|
"react-dom": "~19.2.3",
|
|
45
|
-
"vite": "^8.0.
|
|
46
|
-
"@dxos/echo": "0.8.4-main.
|
|
47
|
-
"@dxos/client": "0.8.4-main.
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/react-
|
|
51
|
-
"@dxos/react-ui-form": "0.8.4-main.
|
|
52
|
-
"@dxos/react-ui-stack": "0.8.4-main.
|
|
53
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/test-utils": "0.8.4-main.
|
|
56
|
-
"@dxos/
|
|
45
|
+
"vite": "^8.0.14",
|
|
46
|
+
"@dxos/echo": "0.8.4-main.d9fc60f731",
|
|
47
|
+
"@dxos/client": "0.8.4-main.d9fc60f731",
|
|
48
|
+
"@dxos/react-ui": "0.8.4-main.d9fc60f731",
|
|
49
|
+
"@dxos/random": "0.8.4-main.d9fc60f731",
|
|
50
|
+
"@dxos/react-client": "0.8.4-main.d9fc60f731",
|
|
51
|
+
"@dxos/react-ui-form": "0.8.4-main.d9fc60f731",
|
|
52
|
+
"@dxos/react-ui-stack": "0.8.4-main.d9fc60f731",
|
|
53
|
+
"@dxos/storybook-utils": "0.8.4-main.d9fc60f731",
|
|
54
|
+
"@dxos/schema": "0.8.4-main.d9fc60f731",
|
|
55
|
+
"@dxos/test-utils": "0.8.4-main.d9fc60f731",
|
|
56
|
+
"@dxos/ui-theme": "0.8.4-main.d9fc60f731"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"effect": "3.
|
|
59
|
+
"effect": "3.21.2",
|
|
60
60
|
"react": "~19.2.3",
|
|
61
61
|
"react-dom": "~19.2.3",
|
|
62
|
-
"@dxos/ui
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
62
|
+
"@dxos/react-ui": "0.8.4-main.d9fc60f731",
|
|
63
|
+
"@dxos/random": "0.8.4-main.d9fc60f731",
|
|
64
|
+
"@dxos/ui-theme": "0.8.4-main.d9fc60f731"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
package/src/Masonry.stories.tsx
CHANGED
|
@@ -19,15 +19,15 @@ import { Masonry, MasonryRootProps } from './Masonry';
|
|
|
19
19
|
const StoryItem = ({ data: { image, name, description } }: { data: Organization.Organization }) => {
|
|
20
20
|
return (
|
|
21
21
|
<Card.Root>
|
|
22
|
-
<Card.
|
|
22
|
+
<Card.Header>
|
|
23
23
|
<Card.Icon icon='ph--building-office--regular' />
|
|
24
24
|
<Card.Title>{name}</Card.Title>
|
|
25
|
-
</Card.
|
|
25
|
+
</Card.Header>
|
|
26
26
|
<Card.Poster alt={name!} {...(image ? { image } : { icon: 'ph--building-office--regular' })} />
|
|
27
27
|
{description && (
|
|
28
|
-
<Card.
|
|
28
|
+
<Card.Row fullWidth classNames='px-2 pb-2'>
|
|
29
29
|
<Card.Text variant='description'>{description}</Card.Text>
|
|
30
|
-
</Card.
|
|
30
|
+
</Card.Row>
|
|
31
31
|
)}
|
|
32
32
|
</Card.Root>
|
|
33
33
|
);
|
package/src/Masonry.tsx
CHANGED
|
@@ -10,7 +10,8 @@ import React, { type ComponentType, type JSX, type PropsWithChildren, type Ref,
|
|
|
10
10
|
import { useResizeDetector } from 'react-resize-detector';
|
|
11
11
|
|
|
12
12
|
import { ScrollArea, ScrollAreaRootProps, ThemedClassName, usePx } from '@dxos/react-ui';
|
|
13
|
-
import {
|
|
13
|
+
import { composable, composableProps, scrollbar } from '@dxos/react-ui';
|
|
14
|
+
import { cardMaxInlineSize, cardMinInlineSize } from '@dxos/ui-theme';
|
|
14
15
|
|
|
15
16
|
//
|
|
16
17
|
// Context
|
|
@@ -127,7 +128,7 @@ const MasonryViewportInner = composable<HTMLDivElement, MasonryViewportProps<any
|
|
|
127
128
|
const { Tile, columns, maxColumns, minColumnWidth, maxColumnWidth, gutter } = useMasonryContext('Masonry.Viewport');
|
|
128
129
|
const { width } = useMasonryContentContext('Masonry.Viewport');
|
|
129
130
|
const columnCount = useColumnCount(
|
|
130
|
-
width - (scrollbar.
|
|
131
|
+
width - (scrollbar.md.size + scrollbar.md.padding),
|
|
131
132
|
columns,
|
|
132
133
|
maxColumns,
|
|
133
134
|
minColumnWidth,
|