@dxos/react-ui-masonry 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6
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 +101 -69
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +101 -69
- 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 +30 -7
- package/dist/types/src/Masonry.d.ts.map +1 -1
- package/dist/types/src/Masonry.stories.d.ts +5 -0
- package/dist/types/src/Masonry.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -22
- package/src/Masonry.stories.tsx +40 -15
- package/src/Masonry.tsx +172 -115
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.bcb3aa67d6",
|
|
4
4
|
"description": "A masonry component.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -27,38 +27,40 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@radix-ui/react-compose-refs": "1.1.1",
|
|
30
|
-
"
|
|
30
|
+
"@radix-ui/react-context": "1.1.1",
|
|
31
|
+
"@virtuoso.dev/masonry": "^1.4.2",
|
|
31
32
|
"react-resize-detector": "^11.0.1",
|
|
32
|
-
"@dxos/react-
|
|
33
|
-
"@dxos/react-
|
|
34
|
-
"@dxos/types": "0.8.4-main.
|
|
33
|
+
"@dxos/react-hooks": "0.8.4-main.bcb3aa67d6",
|
|
34
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.bcb3aa67d6",
|
|
35
|
+
"@dxos/types": "0.8.4-main.bcb3aa67d6",
|
|
36
|
+
"@dxos/ui-types": "0.8.4-main.bcb3aa67d6"
|
|
35
37
|
},
|
|
36
38
|
"devDependencies": {
|
|
37
39
|
"@types/react": "~19.2.7",
|
|
38
40
|
"@types/react-dom": "~19.2.3",
|
|
39
|
-
"effect": "3.
|
|
41
|
+
"effect": "3.20.0",
|
|
40
42
|
"react": "~19.2.3",
|
|
41
43
|
"react-dom": "~19.2.3",
|
|
42
|
-
"vite": "7.1.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/echo": "0.8.4-main.
|
|
46
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
47
|
-
"@dxos/react-ui-
|
|
48
|
-
"@dxos/react-client": "0.8.4-main.
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
51
|
-
"@dxos/test-utils": "0.8.4-main.
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/ui-
|
|
44
|
+
"vite": "^7.1.11",
|
|
45
|
+
"@dxos/random": "0.8.4-main.bcb3aa67d6",
|
|
46
|
+
"@dxos/client": "0.8.4-main.bcb3aa67d6",
|
|
47
|
+
"@dxos/echo": "0.8.4-main.bcb3aa67d6",
|
|
48
|
+
"@dxos/react-ui": "0.8.4-main.bcb3aa67d6",
|
|
49
|
+
"@dxos/react-ui-stack": "0.8.4-main.bcb3aa67d6",
|
|
50
|
+
"@dxos/react-client": "0.8.4-main.bcb3aa67d6",
|
|
51
|
+
"@dxos/schema": "0.8.4-main.bcb3aa67d6",
|
|
52
|
+
"@dxos/storybook-utils": "0.8.4-main.bcb3aa67d6",
|
|
53
|
+
"@dxos/test-utils": "0.8.4-main.bcb3aa67d6",
|
|
54
|
+
"@dxos/ui-theme": "0.8.4-main.bcb3aa67d6",
|
|
55
|
+
"@dxos/react-ui-form": "0.8.4-main.bcb3aa67d6"
|
|
54
56
|
},
|
|
55
57
|
"peerDependencies": {
|
|
56
|
-
"effect": "3.
|
|
58
|
+
"effect": "3.20.0",
|
|
57
59
|
"react": "~19.2.3",
|
|
58
60
|
"react-dom": "~19.2.3",
|
|
59
|
-
"@dxos/random": "0.8.4-main.
|
|
60
|
-
"@dxos/ui
|
|
61
|
-
"@dxos/
|
|
61
|
+
"@dxos/random": "0.8.4-main.bcb3aa67d6",
|
|
62
|
+
"@dxos/react-ui": "0.8.4-main.bcb3aa67d6",
|
|
63
|
+
"@dxos/ui-theme": "0.8.4-main.bcb3aa67d6"
|
|
62
64
|
},
|
|
63
65
|
"publishConfig": {
|
|
64
66
|
"access": "public"
|
package/src/Masonry.stories.tsx
CHANGED
|
@@ -9,40 +9,49 @@ import { Filter } from '@dxos/client/echo';
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
10
|
import { useQuery } from '@dxos/react-client/echo';
|
|
11
11
|
import { useClientStory, withClientProvider } from '@dxos/react-client/testing';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { Card, ScrollArea } from '@dxos/react-ui';
|
|
13
|
+
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
14
14
|
import { createObjectFactory } from '@dxos/schema/testing';
|
|
15
15
|
import { Organization } from '@dxos/types';
|
|
16
16
|
|
|
17
|
-
import { Masonry } from './Masonry';
|
|
17
|
+
import { Masonry, MasonryRootProps } from './Masonry';
|
|
18
18
|
|
|
19
19
|
const StoryItem = ({ data: { image, name, description } }: { data: Organization.Organization }) => {
|
|
20
20
|
return (
|
|
21
21
|
<Card.Root>
|
|
22
|
+
<Card.Toolbar>
|
|
23
|
+
<Card.Icon icon='ph--building-office--regular' />
|
|
24
|
+
<Card.Title>{name}</Card.Title>
|
|
25
|
+
</Card.Toolbar>
|
|
22
26
|
<Card.Poster alt={name!} {...(image ? { image } : { icon: 'ph--building-office--regular' })} />
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
{description && (
|
|
28
|
+
<Card.Section classNames='px-2 pb-2'>
|
|
29
|
+
<Card.Text variant='description'>{description}</Card.Text>
|
|
30
|
+
</Card.Section>
|
|
31
|
+
)}
|
|
25
32
|
</Card.Root>
|
|
26
33
|
);
|
|
27
34
|
};
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
type DefaultStoryProps = MasonryRootProps;
|
|
37
|
+
|
|
38
|
+
const DefaultStory = (props: DefaultStoryProps) => {
|
|
30
39
|
const { space } = useClientStory();
|
|
31
40
|
const organizations = useQuery(space?.db, Filter.type(Organization.Organization));
|
|
32
41
|
|
|
33
42
|
return (
|
|
34
|
-
<Masonry.Root
|
|
35
|
-
items={organizations}
|
|
36
|
-
|
|
37
|
-
classNames='is-full max-is-full bs-full max-bs-full overflow-y-auto p-4'
|
|
38
|
-
/>
|
|
43
|
+
<Masonry.Root {...props} Tile={StoryItem}>
|
|
44
|
+
<Masonry.Content items={organizations} />
|
|
45
|
+
</Masonry.Root>
|
|
39
46
|
);
|
|
40
47
|
};
|
|
41
48
|
|
|
42
49
|
const meta = {
|
|
43
50
|
title: 'ui/react-ui-masonry/Masonry',
|
|
51
|
+
render: DefaultStory,
|
|
44
52
|
decorators: [
|
|
45
|
-
withTheme,
|
|
53
|
+
withTheme(),
|
|
54
|
+
withLayout({ layout: 'fullscreen' }),
|
|
46
55
|
withClientProvider({
|
|
47
56
|
types: [Organization.Organization],
|
|
48
57
|
createIdentity: true,
|
|
@@ -56,12 +65,28 @@ const meta = {
|
|
|
56
65
|
parameters: {
|
|
57
66
|
layout: 'fullscreen',
|
|
58
67
|
},
|
|
59
|
-
} satisfies Meta
|
|
68
|
+
} satisfies Meta;
|
|
60
69
|
|
|
61
70
|
export default meta;
|
|
62
71
|
|
|
63
72
|
type Story = StoryObj<typeof meta>;
|
|
64
73
|
|
|
65
|
-
export const Default: Story = {
|
|
66
|
-
|
|
74
|
+
export const Default: Story = {};
|
|
75
|
+
|
|
76
|
+
// TODO(burdon): Masonry currently doesn't support an external scroller.
|
|
77
|
+
export const Single: Story = {
|
|
78
|
+
render: (props) => {
|
|
79
|
+
return (
|
|
80
|
+
<div className='dx-container flex justify-center'>
|
|
81
|
+
<ScrollArea.Root className='dx-card-max-width' thin padding>
|
|
82
|
+
<ScrollArea.Viewport>
|
|
83
|
+
<DefaultStory {...props} />
|
|
84
|
+
</ScrollArea.Viewport>
|
|
85
|
+
</ScrollArea.Root>
|
|
86
|
+
</div>
|
|
87
|
+
);
|
|
88
|
+
},
|
|
89
|
+
args: {
|
|
90
|
+
columns: 1,
|
|
91
|
+
},
|
|
67
92
|
};
|
package/src/Masonry.tsx
CHANGED
|
@@ -3,132 +3,189 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { useComposedRefs } from '@radix-ui/react-compose-refs';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
useMasonry,
|
|
10
|
-
usePositioner,
|
|
11
|
-
useResizeObserver,
|
|
12
|
-
} from 'masonic';
|
|
13
|
-
import React, {
|
|
14
|
-
type ComponentPropsWithRef,
|
|
15
|
-
type ForwardedRef,
|
|
16
|
-
type JSX,
|
|
17
|
-
type Ref,
|
|
18
|
-
forwardRef,
|
|
19
|
-
useMemo,
|
|
20
|
-
useRef,
|
|
21
|
-
} from 'react';
|
|
6
|
+
import { createContext } from '@radix-ui/react-context';
|
|
7
|
+
import { VirtuosoMasonry, type VirtuosoMasonryProps } from '@virtuoso.dev/masonry';
|
|
8
|
+
import React, { type ComponentType, type JSX, type PropsWithChildren, type Ref, useMemo, useRef } from 'react';
|
|
22
9
|
import { useResizeDetector } from 'react-resize-detector';
|
|
23
10
|
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
| 'role'
|
|
45
|
-
| 'tabIndex'
|
|
46
|
-
| 'containerRef'
|
|
47
|
-
> & { intrinsicHeight?: boolean };
|
|
48
|
-
|
|
49
|
-
const usePxProps = (remProps: Omit<UsePositionerOptions, 'width' | 'columnCount' | 'maxColumnCount'>) => {
|
|
50
|
-
const remInPx = usePx(1);
|
|
51
|
-
return useMemo(() => {
|
|
52
|
-
return Object.fromEntries(
|
|
53
|
-
Object.entries(remProps)
|
|
54
|
-
.filter(([_, value]) => Number.isFinite(value))
|
|
55
|
-
.map(([key, value]) => {
|
|
56
|
-
return [key, value * remInPx];
|
|
57
|
-
}),
|
|
58
|
-
);
|
|
59
|
-
}, [remProps, remInPx]);
|
|
11
|
+
import { ScrollArea, usePx } from '@dxos/react-ui';
|
|
12
|
+
import { cardMaxInlineSize, cardMinInlineSize, composable, composableProps, scrollbar } from '@dxos/ui-theme';
|
|
13
|
+
|
|
14
|
+
//
|
|
15
|
+
// Context
|
|
16
|
+
//
|
|
17
|
+
|
|
18
|
+
type MasonryContextValue = {
|
|
19
|
+
/** Render component for each masonry item. */
|
|
20
|
+
Tile: ComponentType<{ data: any; index: number }>;
|
|
21
|
+
/** Override auto-calculated column count. */
|
|
22
|
+
columns: number | undefined;
|
|
23
|
+
/** Upper bound on number of columns. */
|
|
24
|
+
maxColumns: number | undefined;
|
|
25
|
+
/** Minimum column width in rem. */
|
|
26
|
+
minColumnWidth: number;
|
|
27
|
+
/** Maximum column width in rem. */
|
|
28
|
+
maxColumnWidth: number;
|
|
29
|
+
/** Space between columns and rows in rem. */
|
|
30
|
+
gutter: number;
|
|
60
31
|
};
|
|
61
32
|
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
height: intrinsicHeight ? Infinity : height,
|
|
105
|
-
scrollTop,
|
|
106
|
-
isScrolling,
|
|
107
|
-
resizeObserver,
|
|
108
|
-
positioner,
|
|
109
|
-
items,
|
|
110
|
-
itemHeightEstimate,
|
|
111
|
-
itemKey,
|
|
112
|
-
overscanBy,
|
|
113
|
-
render,
|
|
114
|
-
onRender,
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
return (
|
|
118
|
-
<div className={mx(classNames)} {...props} ref={ref}>
|
|
119
|
-
{children}
|
|
120
|
-
</div>
|
|
121
|
-
);
|
|
33
|
+
const MASONRY_NAME = 'Masonry';
|
|
34
|
+
|
|
35
|
+
const [MasonryProvider, useMasonryContext] = createContext<MasonryContextValue>(MASONRY_NAME);
|
|
36
|
+
|
|
37
|
+
//
|
|
38
|
+
// Root
|
|
39
|
+
//
|
|
40
|
+
|
|
41
|
+
type MasonryRootProps = PropsWithChildren<Partial<MasonryContextValue>>;
|
|
42
|
+
|
|
43
|
+
const MasonryRoot = ({
|
|
44
|
+
children,
|
|
45
|
+
Tile,
|
|
46
|
+
columns = undefined,
|
|
47
|
+
maxColumns = undefined,
|
|
48
|
+
minColumnWidth = cardMinInlineSize,
|
|
49
|
+
maxColumnWidth = cardMaxInlineSize,
|
|
50
|
+
gutter = 0.75,
|
|
51
|
+
}: MasonryRootProps) => (
|
|
52
|
+
<MasonryProvider
|
|
53
|
+
Tile={Tile!}
|
|
54
|
+
columns={columns}
|
|
55
|
+
maxColumns={maxColumns}
|
|
56
|
+
minColumnWidth={minColumnWidth}
|
|
57
|
+
maxColumnWidth={maxColumnWidth}
|
|
58
|
+
gutter={gutter}
|
|
59
|
+
>
|
|
60
|
+
{children}
|
|
61
|
+
</MasonryProvider>
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
MasonryRoot.displayName = 'Masonry.Root';
|
|
65
|
+
|
|
66
|
+
//
|
|
67
|
+
// Content
|
|
68
|
+
//
|
|
69
|
+
|
|
70
|
+
type MasonryContentProps<Item> = {
|
|
71
|
+
/** Items to render in the masonry grid. */
|
|
72
|
+
items: Item[];
|
|
73
|
+
/** Extract a stable key from an item, aligned with react-ui-mosaic's getId. */
|
|
74
|
+
getId?: (data: Item) => string;
|
|
122
75
|
};
|
|
123
76
|
|
|
124
|
-
const
|
|
125
|
-
props
|
|
77
|
+
const MasonryContentInner = composable<HTMLDivElement, MasonryContentProps<any>>(
|
|
78
|
+
({ items, getId, ...props }, forwardedRef) => {
|
|
79
|
+
const rootRef = useRef<HTMLDivElement | null>(null);
|
|
80
|
+
const composedRef = useComposedRefs(rootRef, forwardedRef);
|
|
81
|
+
const { width = 0 } = useResizeDetector({ targetRef: rootRef });
|
|
82
|
+
|
|
83
|
+
const { Tile, columns, maxColumns, minColumnWidth, maxColumnWidth, gutter } = useMasonryContext('Masonry.Content');
|
|
84
|
+
const columnCount = useColumnCount(
|
|
85
|
+
width - (scrollbar.thin.size + scrollbar.thin.padding),
|
|
86
|
+
columns,
|
|
87
|
+
maxColumns,
|
|
88
|
+
minColumnWidth,
|
|
89
|
+
maxColumnWidth,
|
|
90
|
+
gutter,
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
const TileAdapter = useMemo(() => {
|
|
94
|
+
const Adapter = ({ data, index }: { data: any; index: number }) => {
|
|
95
|
+
return (
|
|
96
|
+
<div role='listitem' style={{ paddingBottom: `${gutter}rem` }}>
|
|
97
|
+
<Tile index={index} data={data} />
|
|
98
|
+
</div>
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
Adapter.displayName = 'Masonry.TileAdapter';
|
|
102
|
+
return Adapter;
|
|
103
|
+
}, [Tile, gutter]);
|
|
104
|
+
|
|
105
|
+
// TODO(burdon): Masonry currently doesn't support an external scroller.
|
|
106
|
+
// https://github.com/petyosi/react-virtuoso/issues/1305
|
|
107
|
+
if (columns === 1) {
|
|
108
|
+
return <VirtuosoMasonry data={items} columnCount={1} ItemContent={TileAdapter} useWindowScroll />;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return (
|
|
112
|
+
<ScrollArea.Root {...composableProps(props, { classNames: 'w-' })} thin padding ref={composedRef}>
|
|
113
|
+
<ScrollArea.Viewport asChild>
|
|
114
|
+
{width > 0 && (
|
|
115
|
+
<ComposableVirtuosoMasonry
|
|
116
|
+
style={{ gap: `${gutter}rem` }}
|
|
117
|
+
data={items}
|
|
118
|
+
columnCount={columnCount}
|
|
119
|
+
ItemContent={TileAdapter}
|
|
120
|
+
/>
|
|
121
|
+
)}
|
|
122
|
+
</ScrollArea.Viewport>
|
|
123
|
+
</ScrollArea.Root>
|
|
124
|
+
);
|
|
125
|
+
},
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
const ComposableVirtuosoMasonry = composable<HTMLDivElement, VirtuosoMasonryProps<any, any>>(({ ...props }) => {
|
|
129
|
+
return <VirtuosoMasonry {...props} />;
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
MasonryContentInner.displayName = 'Masonry.Content';
|
|
133
|
+
|
|
134
|
+
const MasonryContent = MasonryContentInner as <Item>(
|
|
135
|
+
props: MasonryContentProps<Item> & {
|
|
126
136
|
ref?: Ref<HTMLDivElement | null>;
|
|
127
137
|
},
|
|
128
138
|
) => JSX.Element;
|
|
129
139
|
|
|
140
|
+
/** Compute column count from container width and column constraints. */
|
|
141
|
+
const useColumnCount = (
|
|
142
|
+
width: number,
|
|
143
|
+
columns: number | undefined,
|
|
144
|
+
maxColumns: number | undefined,
|
|
145
|
+
minColumnWidth: number,
|
|
146
|
+
maxColumnWidth: number,
|
|
147
|
+
gutter: number,
|
|
148
|
+
) => {
|
|
149
|
+
const remInPx = usePx(1);
|
|
150
|
+
return useMemo(() => {
|
|
151
|
+
if (columns != null) {
|
|
152
|
+
return columns;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const minColumnWidthPx = minColumnWidth * remInPx;
|
|
156
|
+
const maxColumnWidthPx = maxColumnWidth * remInPx;
|
|
157
|
+
const gutterPx = gutter * remInPx;
|
|
158
|
+
|
|
159
|
+
if (width <= 0 || minColumnWidthPx <= 0) {
|
|
160
|
+
return 1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Each tile has paddingRight: gutter, so every slot (including the last) occupies
|
|
164
|
+
// (colWidth + gutterPx). The container therefore fits floor(containerWidth / (colWidth + gutterPx)) columns.
|
|
165
|
+
let cols = Math.floor(width / (minColumnWidthPx + gutterPx));
|
|
166
|
+
if (maxColumnWidthPx > 0) {
|
|
167
|
+
const effectiveColWidth = width / cols - gutterPx;
|
|
168
|
+
if (effectiveColWidth > maxColumnWidthPx) {
|
|
169
|
+
// Try to add columns to keep cards below maxColumnWidth, but never violate minColumnWidth.
|
|
170
|
+
const maxCols = Math.ceil(width / (maxColumnWidthPx + gutterPx));
|
|
171
|
+
if (width / maxCols - gutterPx >= minColumnWidthPx) {
|
|
172
|
+
cols = maxCols;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const clamped = maxColumns != null ? Math.min(cols, maxColumns) : cols;
|
|
178
|
+
return Math.max(1, clamped);
|
|
179
|
+
}, [remInPx, width, columns, maxColumns, minColumnWidth, maxColumnWidth, gutter]);
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
//
|
|
183
|
+
// Masonry
|
|
184
|
+
//
|
|
185
|
+
|
|
130
186
|
export const Masonry = {
|
|
131
187
|
Root: MasonryRoot,
|
|
188
|
+
Content: MasonryContent,
|
|
132
189
|
};
|
|
133
190
|
|
|
134
|
-
export type { MasonryRootProps };
|
|
191
|
+
export type { MasonryRootProps, MasonryContentProps };
|