@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-masonry",
3
- "version": "0.8.4-main.d05539e30a",
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.d05539e30a",
35
- "@dxos/react-ui-mosaic": "0.8.4-main.d05539e30a",
36
- "@dxos/types": "0.8.4-main.d05539e30a",
37
- "@dxos/ui-types": "0.8.4-main.d05539e30a"
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.20.0",
42
+ "effect": "3.21.2",
43
43
  "react": "~19.2.3",
44
44
  "react-dom": "~19.2.3",
45
- "vite": "^8.0.13",
46
- "@dxos/echo": "0.8.4-main.d05539e30a",
47
- "@dxos/client": "0.8.4-main.d05539e30a",
48
- "@dxos/random": "0.8.4-main.d05539e30a",
49
- "@dxos/react-client": "0.8.4-main.d05539e30a",
50
- "@dxos/react-ui": "0.8.4-main.d05539e30a",
51
- "@dxos/react-ui-form": "0.8.4-main.d05539e30a",
52
- "@dxos/react-ui-stack": "0.8.4-main.d05539e30a",
53
- "@dxos/storybook-utils": "0.8.4-main.d05539e30a",
54
- "@dxos/ui-theme": "0.8.4-main.d05539e30a",
55
- "@dxos/test-utils": "0.8.4-main.d05539e30a",
56
- "@dxos/schema": "0.8.4-main.d05539e30a"
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.20.0",
59
+ "effect": "3.21.2",
60
60
  "react": "~19.2.3",
61
61
  "react-dom": "~19.2.3",
62
- "@dxos/ui-theme": "0.8.4-main.d05539e30a",
63
- "@dxos/react-ui": "0.8.4-main.d05539e30a",
64
- "@dxos/random": "0.8.4-main.d05539e30a"
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"
@@ -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.Toolbar>
22
+ <Card.Header>
23
23
  <Card.Icon icon='ph--building-office--regular' />
24
24
  <Card.Title>{name}</Card.Title>
25
- </Card.Toolbar>
25
+ </Card.Header>
26
26
  <Card.Poster alt={name!} {...(image ? { image } : { icon: 'ph--building-office--regular' })} />
27
27
  {description && (
28
- <Card.Section classNames='px-2 pb-2'>
28
+ <Card.Row fullWidth classNames='px-2 pb-2'>
29
29
  <Card.Text variant='description'>{description}</Card.Text>
30
- </Card.Section>
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 { cardMaxInlineSize, cardMinInlineSize, composable, composableProps, scrollbar } from '@dxos/ui-theme';
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.thin.size + scrollbar.thin.padding),
131
+ width - (scrollbar.md.size + scrollbar.md.padding),
131
132
  columns,
132
133
  maxColumns,
133
134
  minColumnWidth,