@dxos/react-ui-list 0.8.4-main.21d9917 → 0.8.4-main.2244d791bb
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.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/List/ListRoot.d.ts +2 -2
- package/dist/types/src/components/List/ListRoot.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -17
- package/src/components/Accordion/Accordion.stories.tsx +1 -1
- package/src/components/List/List.stories.tsx +1 -1
- package/src/components/List/ListRoot.tsx +2 -2
- package/src/components/Tree/Tree.stories.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-list",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.2244d791bb",
|
|
4
4
|
"description": "A list component.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -30,35 +30,35 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/pragmatic-drag-and-drop": "1.7.7",
|
|
32
32
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "1.1.0",
|
|
33
|
-
"@effect-atom/atom-react": "^0.
|
|
33
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
34
34
|
"@radix-ui/react-accordion": "1.2.3",
|
|
35
35
|
"@radix-ui/react-context": "1.1.1",
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
40
|
-
"@dxos/ui-
|
|
41
|
-
"@dxos/ui
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
36
|
+
"@dxos/debug": "0.8.4-main.2244d791bb",
|
|
37
|
+
"@dxos/echo": "0.8.4-main.2244d791bb",
|
|
38
|
+
"@dxos/log": "0.8.4-main.2244d791bb",
|
|
39
|
+
"@dxos/react-ui-text-tooltip": "0.8.4-main.2244d791bb",
|
|
40
|
+
"@dxos/ui-types": "0.8.4-main.2244d791bb",
|
|
41
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb",
|
|
42
|
+
"@dxos/invariant": "0.8.4-main.2244d791bb",
|
|
43
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb",
|
|
44
|
+
"@dxos/util": "0.8.4-main.2244d791bb"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/react": "~19.2.7",
|
|
48
48
|
"@types/react-dom": "~19.2.3",
|
|
49
|
-
"effect": "3.19.
|
|
49
|
+
"effect": "3.19.16",
|
|
50
50
|
"react": "~19.2.3",
|
|
51
51
|
"react-dom": "~19.2.3",
|
|
52
52
|
"vite": "7.1.9",
|
|
53
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
54
|
-
"@dxos/random": "0.8.4-main.
|
|
53
|
+
"@dxos/storybook-utils": "0.8.4-main.2244d791bb",
|
|
54
|
+
"@dxos/random": "0.8.4-main.2244d791bb"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"effect": "3.19.
|
|
57
|
+
"effect": "3.19.16",
|
|
58
58
|
"react": "~19.2.3",
|
|
59
59
|
"react-dom": "~19.2.3",
|
|
60
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
61
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
60
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb",
|
|
61
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
@@ -42,7 +42,7 @@ const DefaultStory = () => {
|
|
|
42
42
|
const meta = {
|
|
43
43
|
title: 'ui/react-ui-list/Accordion',
|
|
44
44
|
render: DefaultStory,
|
|
45
|
-
decorators: [withTheme, withLayout({ layout: 'column' })],
|
|
45
|
+
decorators: [withTheme(), withLayout({ layout: 'column' })],
|
|
46
46
|
} satisfies Meta<typeof Accordion>;
|
|
47
47
|
|
|
48
48
|
export default meta;
|
|
@@ -106,7 +106,7 @@ const SimpleStory = (props: Omit<ListRootProps<TestItemType>, 'items'>) => {
|
|
|
106
106
|
const meta = {
|
|
107
107
|
title: 'ui/react-ui-list/List',
|
|
108
108
|
component: List.Root,
|
|
109
|
-
decorators: [withTheme, withRegistry],
|
|
109
|
+
decorators: [withTheme(), withRegistry],
|
|
110
110
|
parameters: {
|
|
111
111
|
layout: 'fullscreen',
|
|
112
112
|
},
|
|
@@ -26,14 +26,14 @@ export const [ListProvider, useListContext] = createContext<ListContext<any>>(LI
|
|
|
26
26
|
|
|
27
27
|
export type ListRendererProps<T extends ListItemRecord> = {
|
|
28
28
|
state: ListContext<T>['state'];
|
|
29
|
-
items: T[];
|
|
29
|
+
items: readonly T[];
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const defaultGetId = <T extends ListItemRecord>(item: T) => (item as any)?.id;
|
|
33
33
|
|
|
34
34
|
export type ListRootProps<T extends ListItemRecord> = {
|
|
35
35
|
children?: (props: ListRendererProps<T>) => ReactNode;
|
|
36
|
-
items?: T[];
|
|
36
|
+
items?: readonly T[];
|
|
37
37
|
onMove?: (fromIndex: number, toIndex: number) => void;
|
|
38
38
|
} & Pick<ListContext<T>, 'isItem' | 'getId' | 'readonly' | 'dragPreview'>;
|
|
39
39
|
|
|
@@ -116,7 +116,7 @@ const DefaultStory = ({ draggable }: { draggable?: boolean }) => {
|
|
|
116
116
|
const meta = {
|
|
117
117
|
title: 'ui/react-ui-list/Tree',
|
|
118
118
|
|
|
119
|
-
decorators: [withTheme, withRegistry],
|
|
119
|
+
decorators: [withTheme(), withRegistry],
|
|
120
120
|
component: Tree,
|
|
121
121
|
render: DefaultStory,
|
|
122
122
|
} satisfies Meta<typeof Tree<TestItem>>;
|