@dxos/react-ui-mosaic 0.3.9-main.3fcc0fa → 0.3.9-main.4584ca9
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/src/stories/Home.stories.d.ts +1 -1
- package/dist/types/src/stories/Home.stories.d.ts.map +1 -1
- package/dist/types/src/views/Demo/Demo.stories.d.ts +1 -1
- package/dist/types/src/views/Demo/Demo.stories.d.ts.map +1 -1
- package/dist/types/src/views/Demo/Echo.stories.d.ts +1 -1
- package/dist/types/src/views/Demo/Echo.stories.d.ts.map +1 -1
- package/dist/types/src/views/Grid/Grid.stories.d.ts +1 -1
- package/dist/types/src/views/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/src/views/Kanban/Echo.stories.d.ts +1 -1
- package/dist/types/src/views/Kanban/Echo.stories.d.ts.map +1 -1
- package/dist/types/src/views/Kanban/Kanban.stories.d.ts +1 -1
- package/dist/types/src/views/Kanban/Kanban.stories.d.ts.map +1 -1
- package/dist/types/src/views/Stack/Columns.stories.d.ts +1 -1
- package/dist/types/src/views/Stack/Columns.stories.d.ts.map +1 -1
- package/dist/types/src/views/Stack/Stack.stories.d.ts +1 -1
- package/dist/types/src/views/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/types/src/views/Tree/Graph.stories.d.ts +1 -1
- package/dist/types/src/views/Tree/Graph.stories.d.ts.map +1 -1
- package/dist/types/src/views/Tree/Tree.stories.d.ts +1 -1
- package/dist/types/src/views/Tree/Tree.stories.d.ts.map +1 -1
- package/package.json +14 -17
- package/src/stories/Home.stories.tsx +3 -1
- package/src/views/Demo/Demo.stories.tsx +3 -1
- package/src/views/Demo/Echo.stories.tsx +2 -0
- package/src/views/Grid/Grid.stories.tsx +3 -1
- package/src/views/Kanban/Echo.stories.tsx +2 -0
- package/src/views/Kanban/Kanban.stories.tsx +3 -1
- package/src/views/Stack/Columns.stories.tsx +3 -1
- package/src/views/Stack/Stack.stories.tsx +3 -1
- package/src/views/Tree/Graph.stories.tsx +3 -1
- package/src/views/Tree/Tree.stories.tsx +3 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@dxosTheme';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
component: () => JSX.Element;
|
|
4
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
4
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Home.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Home.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Home.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Home.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;;;;;;;;AA4EpB,wBAME;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@dxosTheme';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
4
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Demo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Demo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Demo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Demo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;;;;;;;;AAgBpB,wBAME;AAKF,eAAO,MAAM,OAAO,mBAenB,CAAC;AAEF,eAAO,MAAM,IAAI,mBAehB,CAAC;AAEF,eAAO,MAAM,MAAM,mBAelB,CAAC"}
|
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
render: React.FC<{
|
|
6
6
|
spaceKey: PublicKey;
|
|
7
7
|
}>;
|
|
8
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
8
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
11
11
|
export declare const ECHO: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Echo.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Demo/Echo.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;;;;;;;;AAoCpD,wBA4BE;AAIF,eAAO,MAAM,IAAI,IAAK,CAAC"}
|
|
@@ -3,7 +3,7 @@ import '@dxosTheme';
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
component: ({ id, items, layout, options: opts, margin, square, debug, selected: controlledSelected, Component, className, onDrop, onOver, onSelect, onCreate, onAction, }: import("./Grid").GridProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
|
|
5
5
|
render: () => JSX.Element;
|
|
6
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
6
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/Grid.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/Grid.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;;;;;AA6BpB,wBAcE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const _default: {
|
|
|
8
8
|
spaceKey: PublicKey;
|
|
9
9
|
debug: boolean;
|
|
10
10
|
}) => JSX.Element;
|
|
11
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
11
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
12
12
|
parameters: {
|
|
13
13
|
layout: string;
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Echo.stories.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;;;;;
|
|
1
|
+
{"version":3,"file":"Echo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Echo.stories.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;;;;;kBAqBtC,MAAM;kBACN,SAAS;eACZ,OAAO;;;;;;;AAXlB,wBAgDE;AAEF,eAAO,MAAM,IAAI,IAAK,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { type DemoKanbanProps } from './testing';
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
component: ({ id, columns, Component: TileComponent, debug, onDrop, }: import("./Kanban").KanbanProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
|
|
6
6
|
render: (args: DemoKanbanProps) => JSX.Element;
|
|
7
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
7
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kanban.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Kanban.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Kanban.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Kanban/Kanban.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AAQpB,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;;;mBAQ5C,eAAe;;;;;;AAFhC,wBAcE;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC"}
|
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
component: ({ id, Component, onOver, onDrop, items, direction, debug, }: import("./Stack").StackProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
|
|
7
7
|
render: (args: DemoStackProps) => JSX.Element;
|
|
8
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
8
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
9
9
|
parameters: {
|
|
10
10
|
layout: string;
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Columns.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Columns.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Columns.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Columns.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AAQpB,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;;;;mBAS1C,cAAc;;;;;;AAH/B,wBAoBE;AAEF,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC;AAGF,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
|
7
7
|
types: string[];
|
|
8
8
|
count: number;
|
|
9
9
|
}) => JSX.Element;
|
|
10
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
10
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
11
11
|
parameters: {
|
|
12
12
|
layout: string;
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Stack.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Stack.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Stack/Stack.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AAOpB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;;;mBAUvC,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf;;;;;;AANL,wBAmBE;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
|
7
7
|
id: string;
|
|
8
8
|
debug: boolean;
|
|
9
9
|
}) => JSX.Element;
|
|
10
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
10
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
11
11
|
parameters: {
|
|
12
12
|
layout: string;
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Graph.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;
|
|
1
|
+
{"version":3,"file":"Graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Graph.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;YAiBqB,MAAM;eAAS,OAAO;;;;;;;AAH/D,wBAeE;AAEF,eAAO,MAAM,KAAK;;;;CAEjB,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { type DemoTreeProps } from './testing';
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
component: ({ id, Component, onOver, onDrop, items, debug }: import("./Tree").TreeProps<import("./Tree").TreeData>) => JSX.Element;
|
|
6
6
|
render: (args: DemoTreeProps) => JSX.Element;
|
|
7
|
-
decorators: import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-
|
|
7
|
+
decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Tree.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Tree.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Tree/Tree.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;AAQpB,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;;;mBA6DxC,aAAa;;;;;;AAF9B,wBAcE;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAEnB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAEhB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-mosaic",
|
|
3
|
-
"version": "0.3.9-main.
|
|
3
|
+
"version": "0.3.9-main.4584ca9",
|
|
4
4
|
"description": "An intermediate interface for drag-and-drop interactions.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -25,14 +25,15 @@
|
|
|
25
25
|
"lodash.defaultsdeep": "^4.6.1",
|
|
26
26
|
"lodash.pick": "^4.4.0",
|
|
27
27
|
"react-resize-detector": "^7.1.2",
|
|
28
|
-
"@dxos/
|
|
29
|
-
"@dxos/
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/react-ui": "0.3.9-main.
|
|
32
|
-
"@dxos/react-ui-
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
28
|
+
"@dxos/invariant": "0.3.9-main.4584ca9",
|
|
29
|
+
"@dxos/debug": "0.3.9-main.4584ca9",
|
|
30
|
+
"@dxos/react-ui": "0.3.9-main.4584ca9",
|
|
31
|
+
"@dxos/react-ui-card": "0.3.9-main.4584ca9",
|
|
32
|
+
"@dxos/react-ui-theme": "0.3.9-main.4584ca9",
|
|
33
|
+
"@dxos/keys": "0.3.9-main.4584ca9",
|
|
34
|
+
"@dxos/storybook-utils": "0.3.9-main.4584ca9",
|
|
35
|
+
"@dxos/react-ui-types": "0.3.9-main.4584ca9",
|
|
36
|
+
"@dxos/util": "0.3.9-main.4584ca9"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@faker-js/faker": "^8.0.2",
|
|
@@ -42,16 +43,15 @@
|
|
|
42
43
|
"@types/lodash.pick": "^4.4.7",
|
|
43
44
|
"@types/react": "^18.0.21",
|
|
44
45
|
"@types/react-dom": "^18.0.6",
|
|
45
|
-
"chromatic": "^7.5.0",
|
|
46
46
|
"d3": "^7.8.5",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-dom": "^18.2.0",
|
|
49
49
|
"vite": "^4.3.9",
|
|
50
50
|
"vite-plugin-turbosnap": "^1.0.2",
|
|
51
|
-
"@dxos/app-graph": "0.3.9-main.
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/react-client": "0.3.9-main.
|
|
51
|
+
"@dxos/app-graph": "0.3.9-main.4584ca9",
|
|
52
|
+
"@dxos/echo-schema": "0.3.9-main.4584ca9",
|
|
53
|
+
"@dxos/gem-core": "0.3.9-main.4584ca9",
|
|
54
|
+
"@dxos/react-client": "0.3.9-main.4584ca9"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@phosphor-icons/react": "^2.0.5",
|
|
@@ -60,8 +60,5 @@
|
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
|
-
},
|
|
64
|
-
"scripts": {
|
|
65
|
-
"chromatic": "true"
|
|
66
63
|
}
|
|
67
64
|
}
|
|
@@ -6,6 +6,8 @@ import '@dxosTheme';
|
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
10
|
+
|
|
9
11
|
import { FullscreenDecorator } from '../testing';
|
|
10
12
|
|
|
11
13
|
const org = '@dxos-mosaic';
|
|
@@ -78,7 +80,7 @@ const Home = () => {
|
|
|
78
80
|
|
|
79
81
|
export default {
|
|
80
82
|
component: Home,
|
|
81
|
-
decorators: [FullscreenDecorator('flex justify-center bg-[url(/images/bg-mosaic.png)]')],
|
|
83
|
+
decorators: [withTheme, FullscreenDecorator('flex justify-center bg-[url(/images/bg-mosaic.png)]')],
|
|
82
84
|
parameters: {
|
|
83
85
|
layout: 'fullscreen',
|
|
84
86
|
},
|
|
@@ -7,6 +7,8 @@ import '@dxosTheme';
|
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
11
|
+
|
|
10
12
|
import { Mosaic } from '../../mosaic';
|
|
11
13
|
import { ComplexCard, FullscreenDecorator, SimpleCard } from '../../testing';
|
|
12
14
|
import { DemoGrid } from '../Grid/testing';
|
|
@@ -18,7 +20,7 @@ faker.seed(5);
|
|
|
18
20
|
|
|
19
21
|
export default {
|
|
20
22
|
title: 'Views/Demo',
|
|
21
|
-
decorators: [FullscreenDecorator()],
|
|
23
|
+
decorators: [withTheme, FullscreenDecorator()],
|
|
22
24
|
parameters: {
|
|
23
25
|
layout: 'fullscreen',
|
|
24
26
|
},
|
|
@@ -8,6 +8,7 @@ import React, { type FC } from 'react';
|
|
|
8
8
|
import { type PublicKey } from '@dxos/react-client';
|
|
9
9
|
import { Expando } from '@dxos/react-client/echo';
|
|
10
10
|
import { ClientSpaceDecorator } from '@dxos/react-client/testing';
|
|
11
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
11
12
|
|
|
12
13
|
import { Mosaic } from '../../mosaic';
|
|
13
14
|
import { FullscreenDecorator, TestObjectGenerator, range, Status, Priority } from '../../testing';
|
|
@@ -44,6 +45,7 @@ export default {
|
|
|
44
45
|
title: 'Views/Demo',
|
|
45
46
|
render: Story,
|
|
46
47
|
decorators: [
|
|
48
|
+
withTheme,
|
|
47
49
|
FullscreenDecorator(),
|
|
48
50
|
ClientSpaceDecorator({
|
|
49
51
|
onCreateSpace: async (space) => {
|
|
@@ -7,6 +7,8 @@ import '@dxosTheme';
|
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
11
|
+
|
|
10
12
|
import { Grid, type GridLayout } from './Grid';
|
|
11
13
|
import { DemoGrid } from './testing';
|
|
12
14
|
import { Mosaic } from '../../mosaic';
|
|
@@ -39,7 +41,7 @@ export default {
|
|
|
39
41
|
</Mosaic.Root>
|
|
40
42
|
);
|
|
41
43
|
},
|
|
42
|
-
decorators: [FullscreenDecorator()],
|
|
44
|
+
decorators: [withTheme, FullscreenDecorator()],
|
|
43
45
|
parameters: {
|
|
44
46
|
layout: 'fullscreen',
|
|
45
47
|
},
|
|
@@ -7,6 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import { type PublicKey } from '@dxos/react-client';
|
|
8
8
|
import { Expando } from '@dxos/react-client/echo';
|
|
9
9
|
import { ClientSpaceDecorator } from '@dxos/react-client/testing';
|
|
10
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
10
11
|
|
|
11
12
|
import { Kanban } from './Kanban';
|
|
12
13
|
import { EchoKanban, columnValues } from './testing';
|
|
@@ -36,6 +37,7 @@ export default {
|
|
|
36
37
|
);
|
|
37
38
|
},
|
|
38
39
|
decorators: [
|
|
40
|
+
withTheme,
|
|
39
41
|
FullscreenDecorator(),
|
|
40
42
|
ClientSpaceDecorator({
|
|
41
43
|
onCreateSpace: async (space) => {
|
|
@@ -7,6 +7,8 @@ import '@dxosTheme';
|
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
11
|
+
|
|
10
12
|
import { Kanban } from './Kanban';
|
|
11
13
|
import { DemoKanban, type DemoKanbanProps } from './testing';
|
|
12
14
|
import { Mosaic } from '../../mosaic';
|
|
@@ -24,7 +26,7 @@ export default {
|
|
|
24
26
|
</Mosaic.Root>
|
|
25
27
|
);
|
|
26
28
|
},
|
|
27
|
-
decorators: [FullscreenDecorator()],
|
|
29
|
+
decorators: [withTheme, FullscreenDecorator()],
|
|
28
30
|
parameters: {
|
|
29
31
|
layout: 'fullscreen',
|
|
30
32
|
},
|
|
@@ -7,6 +7,8 @@ import '@dxosTheme';
|
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
11
|
+
|
|
10
12
|
import { Stack } from './Stack';
|
|
11
13
|
import { DemoStack, type DemoStackProps } from './testing';
|
|
12
14
|
import { Mosaic } from '../../mosaic';
|
|
@@ -30,7 +32,7 @@ export default {
|
|
|
30
32
|
</Mosaic.Root>
|
|
31
33
|
);
|
|
32
34
|
},
|
|
33
|
-
decorators: [FullscreenDecorator()],
|
|
35
|
+
decorators: [withTheme, FullscreenDecorator()],
|
|
34
36
|
parameters: {
|
|
35
37
|
layout: 'fullscreen',
|
|
36
38
|
},
|
|
@@ -7,6 +7,8 @@ import '@dxosTheme';
|
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
11
|
+
|
|
10
12
|
import { Stack, type StackProps } from './Stack';
|
|
11
13
|
import { DemoStack } from './testing';
|
|
12
14
|
import { Mosaic } from '../../mosaic';
|
|
@@ -29,7 +31,7 @@ export default {
|
|
|
29
31
|
</Mosaic.Root>
|
|
30
32
|
);
|
|
31
33
|
},
|
|
32
|
-
decorators: [FullscreenDecorator()],
|
|
34
|
+
decorators: [withTheme, FullscreenDecorator()],
|
|
33
35
|
parameters: {
|
|
34
36
|
layout: 'fullscreen',
|
|
35
37
|
},
|
|
@@ -7,6 +7,8 @@ import '@dxosTheme';
|
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
11
|
+
|
|
10
12
|
import { Tree } from './Tree';
|
|
11
13
|
import { GraphTree } from './testing';
|
|
12
14
|
import { Mosaic } from '../../mosaic';
|
|
@@ -25,7 +27,7 @@ export default {
|
|
|
25
27
|
</Mosaic.Root>
|
|
26
28
|
);
|
|
27
29
|
},
|
|
28
|
-
decorators: [FullscreenDecorator()],
|
|
30
|
+
decorators: [withTheme, FullscreenDecorator()],
|
|
29
31
|
parameters: {
|
|
30
32
|
layout: 'fullscreen',
|
|
31
33
|
},
|
|
@@ -7,6 +7,8 @@ import '@dxosTheme';
|
|
|
7
7
|
import { faker } from '@faker-js/faker';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
11
|
+
|
|
10
12
|
import { Tree } from './Tree';
|
|
11
13
|
import { DemoTree, type DemoTreeProps } from './testing';
|
|
12
14
|
import { Mosaic } from '../../mosaic';
|
|
@@ -77,7 +79,7 @@ export default {
|
|
|
77
79
|
</Mosaic.Root>
|
|
78
80
|
);
|
|
79
81
|
},
|
|
80
|
-
decorators: [FullscreenDecorator()],
|
|
82
|
+
decorators: [withTheme, FullscreenDecorator()],
|
|
81
83
|
parameters: {
|
|
82
84
|
layout: 'fullscreen',
|
|
83
85
|
},
|