@dxos/react-ui-grid 0.8.4-main.a4bbb77 → 0.8.4-main.ae835ea
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/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/src/Grid/Grid.stories.tsx +12 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-grid",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.ae835ea",
|
|
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",
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
"@radix-ui/react-context": "1.1.1",
|
|
33
33
|
"@radix-ui/react-popper": "1.2.2",
|
|
34
34
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
|
35
|
-
"@dxos/lit-grid": "0.8.4-main.
|
|
36
|
-
"@dxos/react-ui-editor": "0.8.4-main.
|
|
37
|
-
"@dxos/util": "0.8.4-main.
|
|
35
|
+
"@dxos/lit-grid": "0.8.4-main.ae835ea",
|
|
36
|
+
"@dxos/react-ui-editor": "0.8.4-main.ae835ea",
|
|
37
|
+
"@dxos/util": "0.8.4-main.ae835ea"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@types/react": "~19.2.
|
|
41
|
-
"@types/react-dom": "~19.2.
|
|
40
|
+
"@types/react": "~19.2.2",
|
|
41
|
+
"@types/react-dom": "~19.2.2",
|
|
42
42
|
"react": "~19.2.0",
|
|
43
43
|
"react-dom": "~19.2.0",
|
|
44
44
|
"vite": "7.1.9",
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/react-ui-searchlist": "0.8.4-main.
|
|
45
|
+
"@dxos/react-ui-theme": "0.8.4-main.ae835ea",
|
|
46
|
+
"@dxos/random": "0.8.4-main.ae835ea",
|
|
47
|
+
"@dxos/storybook-utils": "0.8.4-main.ae835ea",
|
|
48
|
+
"@dxos/react-ui": "0.8.4-main.ae835ea",
|
|
49
|
+
"@dxos/react-ui-searchlist": "0.8.4-main.ae835ea"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^19.0.0",
|
|
53
53
|
"react-dom": "^19.0.0",
|
|
54
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
55
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
54
|
+
"@dxos/react-ui": "0.8.4-main.ae835ea",
|
|
55
|
+
"@dxos/react-ui-theme": "0.8.4-main.ae835ea"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
@@ -9,7 +9,7 @@ import { defaultRowSize } from '@dxos/lit-grid';
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
10
|
import { DropdownMenu } from '@dxos/react-ui';
|
|
11
11
|
import { withTheme } from '@dxos/react-ui/testing';
|
|
12
|
-
import {
|
|
12
|
+
import { Combobox, type ComboboxRootProps } from '@dxos/react-ui-searchlist';
|
|
13
13
|
|
|
14
14
|
import { Grid, type GridContentProps, type GridEditing, type GridRootProps } from './Grid';
|
|
15
15
|
|
|
@@ -31,7 +31,7 @@ const GridStory = ({ initialCells, ...props }: GridStoryProps) => {
|
|
|
31
31
|
// Multiselect
|
|
32
32
|
const [popoverOpen, setPopoverOpen] = useState(false);
|
|
33
33
|
const [multiSelectValue, setInternalMultiselectValue] = useState('');
|
|
34
|
-
const setMultiselectValue = useCallback<NonNullable<
|
|
34
|
+
const setMultiselectValue = useCallback<NonNullable<ComboboxRootProps['onValueChange']>>((nextValue) => {
|
|
35
35
|
setInternalMultiselectValue(nextValue);
|
|
36
36
|
setCells((cells) => {
|
|
37
37
|
// TODO(burdon): How can we get the cell address to update?
|
|
@@ -78,23 +78,23 @@ const GridStory = ({ initialCells, ...props }: GridStoryProps) => {
|
|
|
78
78
|
</DropdownMenu.Root>
|
|
79
79
|
|
|
80
80
|
{/* Multiselect */}
|
|
81
|
-
<
|
|
81
|
+
<Combobox.Root
|
|
82
82
|
open={popoverOpen}
|
|
83
83
|
onOpenChange={setPopoverOpen}
|
|
84
84
|
value={multiSelectValue}
|
|
85
85
|
onValueChange={setMultiselectValue}
|
|
86
86
|
>
|
|
87
|
-
<
|
|
88
|
-
<
|
|
89
|
-
<
|
|
90
|
-
<
|
|
87
|
+
<Combobox.VirtualTrigger virtualRef={triggerRef} />
|
|
88
|
+
<Combobox.Content filter={(value, search) => (value.includes(search) ? 1 : 0)}>
|
|
89
|
+
<Combobox.Input placeholder='Search...' />
|
|
90
|
+
<Combobox.List>
|
|
91
91
|
{storybookItems.map((value) => (
|
|
92
|
-
<
|
|
92
|
+
<Combobox.Item key={value}>{value}</Combobox.Item>
|
|
93
93
|
))}
|
|
94
|
-
</
|
|
95
|
-
<
|
|
96
|
-
</
|
|
97
|
-
</
|
|
94
|
+
</Combobox.List>
|
|
95
|
+
<Combobox.Arrow />
|
|
96
|
+
</Combobox.Content>
|
|
97
|
+
</Combobox.Root>
|
|
98
98
|
</div>
|
|
99
99
|
);
|
|
100
100
|
};
|