@dxos/react-ui-grid 0.8.4-main.c85a9c8dae → 0.8.4-main.cb12b3f963

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-grid",
3
- "version": "0.8.4-main.c85a9c8dae",
3
+ "version": "0.8.4-main.cb12b3f963",
4
4
  "description": "React component which manages a `dx-grid` Lit web component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -20,9 +20,6 @@
20
20
  }
21
21
  },
22
22
  "types": "dist/types/src/index.d.ts",
23
- "typesVersions": {
24
- "*": {}
25
- },
26
23
  "files": [
27
24
  "dist",
28
25
  "src"
@@ -35,28 +32,29 @@
35
32
  "@radix-ui/react-context": "1.1.1",
36
33
  "@radix-ui/react-popper": "1.2.2",
37
34
  "@radix-ui/react-use-controllable-state": "1.1.0",
38
- "@dxos/lit-grid": "0.8.4-main.c85a9c8dae",
39
- "@dxos/react-ui-editor": "0.8.4-main.c85a9c8dae",
40
- "@dxos/ui-editor": "0.8.4-main.c85a9c8dae",
41
- "@dxos/util": "0.8.4-main.c85a9c8dae"
35
+ "@dxos/lit-grid": "0.8.4-main.cb12b3f963",
36
+ "@dxos/react-ui-editor": "0.8.4-main.cb12b3f963",
37
+ "@dxos/ui-editor": "0.8.4-main.cb12b3f963",
38
+ "@dxos/util": "0.8.4-main.cb12b3f963"
42
39
  },
43
40
  "devDependencies": {
44
41
  "@types/react": "~19.2.7",
45
42
  "@types/react-dom": "~19.2.3",
46
43
  "react": "~19.2.3",
47
44
  "react-dom": "~19.2.3",
48
- "vite": "^7.1.11",
49
- "@dxos/random": "0.8.4-main.c85a9c8dae",
50
- "@dxos/react-ui-searchlist": "0.8.4-main.c85a9c8dae",
51
- "@dxos/storybook-utils": "0.8.4-main.c85a9c8dae",
52
- "@dxos/ui-theme": "0.8.4-main.c85a9c8dae",
53
- "@dxos/react-ui": "0.8.4-main.c85a9c8dae"
45
+ "vite": "^8.0.10",
46
+ "@dxos/random": "0.8.4-main.cb12b3f963",
47
+ "@dxos/react-ui": "0.8.4-main.cb12b3f963",
48
+ "@dxos/react-ui-list": "0.8.4-main.cb12b3f963",
49
+ "@dxos/storybook-utils": "0.8.4-main.cb12b3f963",
50
+ "@dxos/ui-theme": "0.8.4-main.cb12b3f963",
51
+ "@dxos/react-ui-search": "0.8.4-main.cb12b3f963"
54
52
  },
55
53
  "peerDependencies": {
56
54
  "react": "~19.2.3",
57
55
  "react-dom": "~19.2.3",
58
- "@dxos/react-ui": "0.8.4-main.c85a9c8dae",
59
- "@dxos/ui-theme": "0.8.4-main.c85a9c8dae"
56
+ "@dxos/react-ui": "0.8.4-main.cb12b3f963",
57
+ "@dxos/ui-theme": "0.8.4-main.cb12b3f963"
60
58
  },
61
59
  "publishConfig": {
62
60
  "access": "public"
@@ -148,10 +148,10 @@ export const CellEditor = ({ value, extensions, box, gridId, autoFocus, slots, o
148
148
  slots?.editor?.className,
149
149
  ),
150
150
  },
151
- scroll: {
151
+ scroller: {
152
152
  className: mx(
153
153
  'overflow-x-hidden! !py-[max(0,calc(var(--dx-grid-cell-editor-padding-block)-1px))] pe-0! !pl-(--dx-grid-cell-editor-padding-inline)',
154
- slots?.scroll?.className,
154
+ slots?.scroller?.className,
155
155
  ),
156
156
  },
157
157
  content: {
@@ -5,7 +5,6 @@
5
5
  import React, { useCallback } from 'react';
6
6
 
7
7
  import { type DxGridCellIndex, type GridScopedProps, useGridContext } from '../Grid';
8
-
9
8
  import { CellEditor, type CellEditorProps } from './CellEditor';
10
9
 
11
10
  export type GridCellEditorProps = GridScopedProps<
@@ -7,15 +7,16 @@ import React, { type MouseEvent, type MutableRefObject, useCallback, useRef, use
7
7
 
8
8
  import { defaultRowSize } from '@dxos/lit-grid';
9
9
  import { type DxGridPlaneCells } from '@dxos/lit-grid';
10
- import { faker } from '@dxos/random';
10
+ import { random } from '@dxos/random';
11
11
  import { DropdownMenu } from '@dxos/react-ui';
12
- import { withLayout, withTheme } from '@dxos/react-ui/testing';
13
12
  import { toPlaneCellIndex } from '@dxos/react-ui-grid';
14
- import { Combobox, type ComboboxRootProps, useSearchListResults } from '@dxos/react-ui-searchlist';
13
+ import { Combobox, type ComboboxRootProps } from '@dxos/react-ui-list';
14
+ import { useSearchListResults } from '@dxos/react-ui-search';
15
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
15
16
 
16
17
  import { Grid, type GridContentProps, type GridEditing, type GridRootProps } from './Grid';
17
18
 
18
- const storybookItems = faker.helpers.uniqueArray(faker.commerce.productName, 16);
19
+ const storybookItems = random.helpers.uniqueArray(random.commerce.productName, 16);
19
20
 
20
21
  type GridStoryProps = GridContentProps & Pick<GridRootProps, 'onEditingChange'>;
21
22
 
@@ -94,13 +95,13 @@ const GridStory = ({ initialCells, ...props }: GridStoryProps) => {
94
95
  };
95
96
 
96
97
  const ComboboxContentWithFiltering = () => {
97
- const { results, handleSearch } = useSearchListResults({
98
+ const { results, query, handleSearch } = useSearchListResults({
98
99
  items: storybookItems,
99
100
  });
100
101
 
101
102
  return (
102
- <Combobox.Content onSearch={handleSearch}>
103
- <Combobox.Input placeholder='Search...' />
103
+ <Combobox.Content>
104
+ <Combobox.Input placeholder='Search...' value={query} onValueChange={handleSearch} />
104
105
  <Combobox.List>
105
106
  {results.map((value) => (
106
107
  <Combobox.Item key={value} value={value} label={value} />
package/src/Grid/Grid.tsx CHANGED
@@ -2,8 +2,6 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import '@dxos/lit-grid/dx-grid.pcss';
6
-
7
5
  import { type EventName, createComponent } from '@lit/react';
8
6
  import { type Scope, createContextScope } from '@radix-ui/react-context';
9
7
  import { useControllableState } from '@radix-ui/react-use-controllable-state';
@@ -16,6 +14,7 @@ import React, {
16
14
  useState,
17
15
  } from 'react';
18
16
 
17
+ import '@dxos/lit-grid/dx-grid.pcss';
19
18
  import { type DxAxisResize, type DxEditRequest, type DxGridCellsSelect, DxGrid as NaturalDxGrid } from '@dxos/lit-grid';
20
19
 
21
20
  type DxGridElement = NaturalDxGrid;