@dxos/react-ui-masonry 0.8.4-main.7ace549 → 0.8.4-main.8360d9e660

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,12 +1,16 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-masonry",
3
- "version": "0.8.4-main.7ace549",
3
+ "version": "0.8.4-main.8360d9e660",
4
4
  "description": "A masonry component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
7
11
  "license": "MIT",
8
12
  "author": "DXOS.org",
9
- "sideEffects": true,
13
+ "sideEffects": false,
10
14
  "type": "module",
11
15
  "exports": {
12
16
  ".": {
@@ -25,35 +29,36 @@
25
29
  "@radix-ui/react-compose-refs": "1.1.1",
26
30
  "masonic": "^4.1.0",
27
31
  "react-resize-detector": "^11.0.1",
28
- "@dxos/react-hooks": "0.8.4-main.7ace549",
29
- "@dxos/types": "0.8.4-main.7ace549"
32
+ "@dxos/react-hooks": "0.8.4-main.8360d9e660",
33
+ "@dxos/types": "0.8.4-main.8360d9e660",
34
+ "@dxos/react-ui-mosaic": "0.8.4-main.8360d9e660"
30
35
  },
31
36
  "devDependencies": {
32
- "@types/react": "~19.2.2",
33
- "@types/react-dom": "~19.2.2",
34
- "effect": "3.18.3",
35
- "react": "~19.2.0",
36
- "react-dom": "~19.2.0",
37
- "vite": "7.1.9",
38
- "@dxos/random": "0.8.4-main.7ace549",
39
- "@dxos/echo": "0.8.4-main.7ace549",
40
- "@dxos/client": "0.8.4-main.7ace549",
41
- "@dxos/react-client": "0.8.4-main.7ace549",
42
- "@dxos/react-ui": "0.8.4-main.7ace549",
43
- "@dxos/react-ui-stack": "0.8.4-main.7ace549",
44
- "@dxos/react-ui-form": "0.8.4-main.7ace549",
45
- "@dxos/react-ui-theme": "0.8.4-main.7ace549",
46
- "@dxos/schema": "0.8.4-main.7ace549",
47
- "@dxos/storybook-utils": "0.8.4-main.7ace549",
48
- "@dxos/test-utils": "0.8.4-main.7ace549"
37
+ "@types/react": "~19.2.7",
38
+ "@types/react-dom": "~19.2.3",
39
+ "effect": "3.19.16",
40
+ "react": "~19.2.3",
41
+ "react-dom": "~19.2.3",
42
+ "vite": "^7.1.11",
43
+ "@dxos/client": "0.8.4-main.8360d9e660",
44
+ "@dxos/echo": "0.8.4-main.8360d9e660",
45
+ "@dxos/react-client": "0.8.4-main.8360d9e660",
46
+ "@dxos/react-ui": "0.8.4-main.8360d9e660",
47
+ "@dxos/random": "0.8.4-main.8360d9e660",
48
+ "@dxos/react-ui-form": "0.8.4-main.8360d9e660",
49
+ "@dxos/react-ui-stack": "0.8.4-main.8360d9e660",
50
+ "@dxos/storybook-utils": "0.8.4-main.8360d9e660",
51
+ "@dxos/test-utils": "0.8.4-main.8360d9e660",
52
+ "@dxos/schema": "0.8.4-main.8360d9e660",
53
+ "@dxos/ui-theme": "0.8.4-main.8360d9e660"
49
54
  },
50
55
  "peerDependencies": {
51
- "effect": "^3.13.3",
52
- "react": "^19.0.0",
53
- "react-dom": "^19.0.0",
54
- "@dxos/random": "0.8.4-main.7ace549",
55
- "@dxos/react-ui": "0.8.4-main.7ace549",
56
- "@dxos/react-ui-theme": "0.8.4-main.7ace549"
56
+ "effect": "3.19.16",
57
+ "react": "~19.2.3",
58
+ "react-dom": "~19.2.3",
59
+ "@dxos/ui-theme": "0.8.4-main.8360d9e660",
60
+ "@dxos/random": "0.8.4-main.8360d9e660",
61
+ "@dxos/react-ui": "0.8.4-main.8360d9e660"
57
62
  },
58
63
  "publishConfig": {
59
64
  "access": "public"
@@ -8,10 +8,9 @@ import React from 'react';
8
8
  import { Filter } from '@dxos/client/echo';
9
9
  import { faker } from '@dxos/random';
10
10
  import { useQuery } from '@dxos/react-client/echo';
11
- import { useClientProvider, withClientProvider } from '@dxos/react-client/testing';
12
- import { withTheme } from '@dxos/react-ui/testing';
13
- import { Card, cardNoSpacing, cardSpacing } from '@dxos/react-ui-stack';
14
- import { mx } from '@dxos/react-ui-theme';
11
+ import { useClientStory, withClientProvider } from '@dxos/react-client/testing';
12
+ import { Card } from '@dxos/react-ui';
13
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
15
14
  import { createObjectFactory } from '@dxos/schema/testing';
16
15
  import { Organization } from '@dxos/types';
17
16
 
@@ -19,25 +18,23 @@ import { Masonry } from './Masonry';
19
18
 
20
19
  const StoryItem = ({ data: { image, name, description } }: { data: Organization.Organization }) => {
21
20
  return (
22
- <Card.StaticRoot>
21
+ <Card.Root>
23
22
  <Card.Poster alt={name!} {...(image ? { image } : { icon: 'ph--building-office--regular' })} />
24
- <div role='none' className={mx('flex items-center gap-2', cardSpacing)}>
25
- <Card.Heading classNames={cardNoSpacing}>{name}</Card.Heading>
26
- </div>
27
- {description && <Card.Text classNames='line-clamp-2'>{description}</Card.Text>}
28
- </Card.StaticRoot>
23
+ <Card.Heading>{name}</Card.Heading>
24
+ {description && <Card.Text variant='description'>{description}</Card.Text>}
25
+ </Card.Root>
29
26
  );
30
27
  };
31
28
 
32
29
  const DefaultStory = () => {
33
- const { space } = useClientProvider();
34
- const organizations = useQuery(space, Filter.type(Organization.Organization));
30
+ const { space } = useClientStory();
31
+ const organizations = useQuery(space?.db, Filter.type(Organization.Organization));
35
32
 
36
33
  return (
37
34
  <Masonry.Root<Organization.Organization>
38
35
  items={organizations}
39
36
  render={StoryItem}
40
- classNames='is-full max-is-full bs-full max-bs-full overflow-y-auto p-4'
37
+ classNames='w-full max-w-full h-full max-h-full overflow-y-auto p-4'
41
38
  />
42
39
  );
43
40
  };
@@ -45,7 +42,8 @@ const DefaultStory = () => {
45
42
  const meta = {
46
43
  title: 'ui/react-ui-masonry/Masonry',
47
44
  decorators: [
48
- withTheme,
45
+ withTheme(),
46
+ withLayout({ layout: 'fullscreen' }),
49
47
  withClientProvider({
50
48
  types: [Organization.Organization],
51
49
  createIdentity: true,
package/src/Masonry.tsx CHANGED
@@ -23,8 +23,8 @@ import { useResizeDetector } from 'react-resize-detector';
23
23
 
24
24
  import { useScroller } from '@dxos/react-hooks';
25
25
  import { type ThemedClassName, usePx } from '@dxos/react-ui';
26
- import { cardMaxInlineSize, cardMinInlineSize } from '@dxos/react-ui-theme';
27
- import { mx } from '@dxos/react-ui-theme';
26
+ import { cardMaxInlineSize, cardMinInlineSize } from '@dxos/ui-theme';
27
+ import { mx } from '@dxos/ui-theme';
28
28
 
29
29
  type MasonryRootProps<Item> = ThemedClassName<ComponentPropsWithRef<'div'>> &
30
30
  Omit<UsePositionerOptions, 'width'> &