@dxos/react-ui-list 0.6.13-main.ed424a1 → 0.6.14-main.7bd9c89
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.
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import
|
|
2
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
3
3
|
import { type ListRootProps } from './List';
|
|
4
4
|
import { type TestItemType } from '../../testing';
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
export declare const Default: any;
|
|
12
|
-
export declare const Simple: any;
|
|
5
|
+
export declare const Default: StoryObj<ListRootProps<TestItemType>>;
|
|
6
|
+
export declare const Simple: StoryObj<ListRootProps<TestItemType>>;
|
|
7
|
+
declare const meta: Meta;
|
|
8
|
+
export default meta;
|
|
13
9
|
//# sourceMappingURL=List.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/List.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"List.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/List.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAO5D,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAA8B,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AA0E9E,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAMzD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAMxD,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-list",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.14-main.7bd9c89",
|
|
4
4
|
"description": "A list component.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -27,14 +27,12 @@
|
|
|
27
27
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.3",
|
|
28
28
|
"@radix-ui/react-context": "^1.0.0",
|
|
29
29
|
"effect": "^3.9.1",
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/
|
|
32
|
-
"@dxos/invariant": "0.6.
|
|
33
|
-
"@dxos/react-ui-
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/util": "0.6.13-main.ed424a1",
|
|
37
|
-
"@dxos/debug": "0.6.13-main.ed424a1"
|
|
30
|
+
"@dxos/debug": "0.6.14-main.7bd9c89",
|
|
31
|
+
"@dxos/echo-schema": "0.6.14-main.7bd9c89",
|
|
32
|
+
"@dxos/invariant": "0.6.14-main.7bd9c89",
|
|
33
|
+
"@dxos/react-ui-types": "0.6.14-main.7bd9c89",
|
|
34
|
+
"@dxos/log": "0.6.14-main.7bd9c89",
|
|
35
|
+
"@dxos/util": "0.6.14-main.7bd9c89"
|
|
38
36
|
},
|
|
39
37
|
"devDependencies": {
|
|
40
38
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -43,15 +41,18 @@
|
|
|
43
41
|
"react": "~18.2.0",
|
|
44
42
|
"react-dom": "~18.2.0",
|
|
45
43
|
"vite": "5.4.7",
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
44
|
+
"@dxos/random": "0.6.14-main.7bd9c89",
|
|
45
|
+
"@dxos/react-ui": "0.6.14-main.7bd9c89",
|
|
46
|
+
"@dxos/react-ui-theme": "0.6.14-main.7bd9c89",
|
|
47
|
+
"@dxos/storybook-utils": "0.6.14-main.7bd9c89"
|
|
49
48
|
},
|
|
50
49
|
"peerDependencies": {
|
|
51
50
|
"@phosphor-icons/react": "^2.1.5",
|
|
52
51
|
"effect": "^3.9.1",
|
|
53
52
|
"react": "~18.2.0",
|
|
54
|
-
"react-dom": "~18.2.0"
|
|
53
|
+
"react-dom": "~18.2.0",
|
|
54
|
+
"@dxos/react-ui": "0.6.14-main.7bd9c89",
|
|
55
|
+
"@dxos/react-ui-theme": "0.6.14-main.7bd9c89"
|
|
55
56
|
},
|
|
56
57
|
"publishConfig": {
|
|
57
58
|
"access": "public"
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
|
|
9
10
|
import { create, S } from '@dxos/echo-schema';
|
|
@@ -16,7 +17,7 @@ import { createList, TestItemSchema, type TestItemType } from '../../testing';
|
|
|
16
17
|
// TODO(burdon): var-icon-size.
|
|
17
18
|
const grid = 'grid grid-cols-[32px_1fr_32px] min-bs-[2rem] rounded';
|
|
18
19
|
|
|
19
|
-
const
|
|
20
|
+
const DefaultStory = ({ items = [], ...props }: ListRootProps<TestItemType>) => {
|
|
20
21
|
const handleSelect = (item: TestItemType) => {
|
|
21
22
|
console.log('select', item);
|
|
22
23
|
};
|
|
@@ -83,26 +84,27 @@ const SimpleStory = ({ items = [], ...props }: ListRootProps<TestItemType>) => {
|
|
|
83
84
|
);
|
|
84
85
|
};
|
|
85
86
|
|
|
86
|
-
export default {
|
|
87
|
-
// TODO(burdon): Storybook collides with react-ui/List.
|
|
88
|
-
title: 'react-ui-list/List',
|
|
89
|
-
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
90
|
-
render: Story,
|
|
91
|
-
};
|
|
92
|
-
|
|
93
87
|
const list = create(createList(100));
|
|
94
88
|
|
|
95
|
-
export const Default = {
|
|
89
|
+
export const Default: StoryObj<ListRootProps<TestItemType>> = {
|
|
90
|
+
render: DefaultStory,
|
|
96
91
|
args: {
|
|
97
92
|
items: list.items,
|
|
98
93
|
isItem: S.is(TestItemSchema),
|
|
99
|
-
}
|
|
100
|
-
}
|
|
94
|
+
},
|
|
95
|
+
};
|
|
101
96
|
|
|
102
|
-
export const Simple = {
|
|
97
|
+
export const Simple: StoryObj<ListRootProps<TestItemType>> = {
|
|
103
98
|
render: SimpleStory,
|
|
104
99
|
args: {
|
|
105
100
|
items: list.items,
|
|
106
101
|
isItem: S.is(TestItemSchema),
|
|
107
|
-
}
|
|
108
|
-
}
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const meta: Meta = {
|
|
106
|
+
title: 'ui/react-ui-list/List',
|
|
107
|
+
decorators: [withTheme, withLayout({ fullscreen: true })],
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export default meta;
|