@dxos/react-ui-mosaic 0.3.10-main.dcfebef → 0.3.10-main.e38869c

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,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import '@dxosTheme';
3
3
  declare const _default: {
4
+ title: string;
4
5
  component: ({ id, items, layout, options: opts, margin, square, debug, selected: controlledSelected, Component, classNames, onDrop, onOver, onSelect, onCreate, onAction, }: import("./Grid").GridProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
5
6
  render: () => JSX.Element;
6
7
  decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"Grid.stories.d.ts","sourceRoot":"","sources":["../../../../../src/views/Grid/Grid.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,YAAY,CAAC;;;;;;;;;;AA6BpB,wBAeE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -2,6 +2,7 @@
2
2
  import '@dxosTheme';
3
3
  import { type DemoKanbanProps } from './testing';
4
4
  declare const _default: {
5
+ title: string;
5
6
  component: ({ id, columns, Component: TileComponent, debug, onDrop, }: import("./Kanban").KanbanProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
6
7
  render: (args: DemoKanbanProps) => JSX.Element;
7
8
  decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
@@ -1 +1 @@
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"}
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;;;;mBAS5C,eAAe;;;;;;AAHhC,wBAeE;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC"}
@@ -2,6 +2,7 @@
2
2
  import '@dxosTheme';
3
3
  import { type StackProps } from './Stack';
4
4
  declare const _default: {
5
+ title: string;
5
6
  component: ({ id, Component, onOver, onDrop, items, direction, debug, }: StackProps<import("../../mosaic").MosaicDataItem>) => JSX.Element;
6
7
  render: (args: StackProps & {
7
8
  types: string[];
@@ -1 +1 @@
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"}
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;;;;mBAWvC,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf;;;;;;AAPL,wBAoBE;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC"}
@@ -2,6 +2,7 @@
2
2
  import '@dxosTheme';
3
3
  import { type DemoTreeProps } from './testing';
4
4
  declare const _default: {
5
+ title: string;
5
6
  component: ({ id, Component, onOver, onDrop, items, debug }: import("./Tree").TreeProps<import("./Tree").TreeData>) => JSX.Element;
6
7
  render: (args: DemoTreeProps) => JSX.Element;
7
8
  decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
@@ -1 +1 @@
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"}
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;;;;mBA8DxC,aAAa;;;;;;AAH9B,wBAeE;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.10-main.dcfebef",
3
+ "version": "0.3.10-main.e38869c",
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,14 @@
25
25
  "lodash.defaultsdeep": "^4.6.1",
26
26
  "lodash.pick": "^4.4.0",
27
27
  "react-resize-detector": "^7.1.2",
28
- "@dxos/debug": "0.3.10-main.dcfebef",
29
- "@dxos/invariant": "0.3.10-main.dcfebef",
30
- "@dxos/keys": "0.3.10-main.dcfebef",
31
- "@dxos/react-ui-card": "0.3.10-main.dcfebef",
32
- "@dxos/react-ui-types": "0.3.10-main.dcfebef",
33
- "@dxos/react-ui": "0.3.10-main.dcfebef",
34
- "@dxos/util": "0.3.10-main.dcfebef",
35
- "@dxos/react-ui-theme": "0.3.10-main.dcfebef"
28
+ "@dxos/debug": "0.3.10-main.e38869c",
29
+ "@dxos/invariant": "0.3.10-main.e38869c",
30
+ "@dxos/react-ui": "0.3.10-main.e38869c",
31
+ "@dxos/react-ui-card": "0.3.10-main.e38869c",
32
+ "@dxos/keys": "0.3.10-main.e38869c",
33
+ "@dxos/react-ui-theme": "0.3.10-main.e38869c",
34
+ "@dxos/react-ui-types": "0.3.10-main.e38869c",
35
+ "@dxos/util": "0.3.10-main.e38869c"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@faker-js/faker": "^8.0.2",
@@ -47,11 +47,11 @@
47
47
  "react-dom": "^18.2.0",
48
48
  "vite": "^4.3.9",
49
49
  "vite-plugin-turbosnap": "^1.0.2",
50
- "@dxos/app-graph": "0.3.10-main.dcfebef",
51
- "@dxos/gem-core": "0.3.10-main.dcfebef",
52
- "@dxos/react-client": "0.3.10-main.dcfebef",
53
- "@dxos/echo-schema": "0.3.10-main.dcfebef",
54
- "@dxos/storybook-utils": "0.3.10-main.dcfebef"
50
+ "@dxos/app-graph": "0.3.10-main.e38869c",
51
+ "@dxos/echo-schema": "0.3.10-main.e38869c",
52
+ "@dxos/gem-core": "0.3.10-main.e38869c",
53
+ "@dxos/storybook-utils": "0.3.10-main.e38869c",
54
+ "@dxos/react-client": "0.3.10-main.e38869c"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@phosphor-icons/react": "^2.0.5",
@@ -19,7 +19,7 @@ import { DemoTree } from '../Tree/testing';
19
19
  faker.seed(5);
20
20
 
21
21
  export default {
22
- title: 'Views/Demo',
22
+ title: 'react-ui-mosaic/Demo',
23
23
  decorators: [withTheme, FullscreenDecorator()],
24
24
  parameters: {
25
25
  layout: 'fullscreen',
@@ -42,7 +42,7 @@ const Story: FC<{ spaceKey: PublicKey }> = ({ spaceKey }) => {
42
42
  };
43
43
 
44
44
  export default {
45
- title: 'Views/Demo',
45
+ title: 'react-ui-mosaic/Demo',
46
46
  render: () => (
47
47
  <ClientRepeater
48
48
  Component={Story}
@@ -32,6 +32,7 @@ const testLayout = testItems.reduce<GridLayout>((map, item) => {
32
32
  }, {});
33
33
 
34
34
  export default {
35
+ title: 'react-ui-mosaic/Grid',
35
36
  component: Grid,
36
37
  render: () => {
37
38
  return (
@@ -35,7 +35,7 @@ const Story = ({
35
35
  };
36
36
 
37
37
  export default {
38
- title: 'Views/Kanban',
38
+ title: 'react-ui-mosaic/Kanban',
39
39
  component: Kanban,
40
40
  render: () => (
41
41
  <ClientRepeater
@@ -17,6 +17,7 @@ import { ComplexCard, FullscreenDecorator, SimpleCard } from '../../testing';
17
17
  faker.seed(3);
18
18
 
19
19
  export default {
20
+ title: 'react-ui-mosaic/Kanban',
20
21
  component: Kanban,
21
22
  render: (args: DemoKanbanProps) => {
22
23
  return (
@@ -17,7 +17,7 @@ import { FullscreenDecorator, SimpleCard } from '../../testing';
17
17
  faker.seed(3);
18
18
 
19
19
  export default {
20
- title: 'Views/Stack/Columns',
20
+ title: 'react-ui-mosaic/Stack',
21
21
  component: Stack,
22
22
  render: (args: DemoStackProps) => {
23
23
  return (
@@ -17,6 +17,7 @@ import { ComplexCard, FullscreenDecorator, SimpleCard } from '../../testing';
17
17
  faker.seed(3);
18
18
 
19
19
  export default {
20
+ title: 'react-ui-mosaic/Stack',
20
21
  component: Stack,
21
22
  render: (
22
23
  args: StackProps & {
@@ -17,7 +17,7 @@ import { FullscreenDecorator } from '../../testing';
17
17
  faker.seed(3);
18
18
 
19
19
  export default {
20
- title: 'Views/Tree',
20
+ title: 'react-ui-mosaic/Tree',
21
21
  component: Tree,
22
22
  render: ({ id = 'tree', debug }: { id: string; debug: boolean }) => {
23
23
  return (
@@ -70,6 +70,7 @@ const testItems2 = [
70
70
  ];
71
71
 
72
72
  export default {
73
+ title: 'react-ui-mosaic/Tree',
73
74
  component: Tree,
74
75
  render: (args: DemoTreeProps) => {
75
76
  return (
@@ -1,11 +0,0 @@
1
- import '@dxosTheme';
2
- declare const _default: {
3
- component: () => JSX.Element;
4
- decorators: (import("@storybook/csf").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R> | import("@storybook/react").Decorator)[];
5
- parameters: {
6
- layout: string;
7
- };
8
- };
9
- export default _default;
10
- export declare const Default: {};
11
- //# sourceMappingURL=Home.stories.d.ts.map
@@ -1 +0,0 @@
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,89 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- import '@dxosTheme';
6
-
7
- import React from 'react';
8
-
9
- import { withTheme } from '@dxos/storybook-utils';
10
-
11
- import { FullscreenDecorator } from '../testing';
12
-
13
- const org = '@dxos-mosaic';
14
-
15
- const data = {
16
- quote: `"I've written a few thousand words on why traditional “semantic class names” are the reason CSS is hard to ' +
17
- 'maintain, but the truth is you’re never going to believe me until you actually try it. If you can suppress the ' +
18
- 'urge to retch long enough to give it a chance, I really think you’ll wonder how you ever worked with CSS any other ' +
19
- 'way." [User]`,
20
- };
21
-
22
- const packages = [
23
- {
24
- name: `${org}/ui`,
25
- description: 'Component primitives.',
26
- },
27
- {
28
- name: `${org}/dnd`,
29
- description: 'Drag-and-drop containers and tiles.',
30
- },
31
- {
32
- name: `${org}/echo`,
33
- description: 'DXOS ECHO bindings.',
34
- },
35
- {
36
- name: `${org}/editor`,
37
- description: 'Rich text editor.',
38
- },
39
- {
40
- name: `${org}/table`,
41
- description: 'Blazingly fast virtualized tables.',
42
- },
43
- {
44
- name: `${org}/stack`,
45
- description: 'Flexible block editor.',
46
- },
47
- {
48
- name: `${org}/grid`,
49
- description: 'Hierarchical and zoomable grid.',
50
- },
51
- ];
52
-
53
- const Home = () => {
54
- return (
55
- <div className='flex flex-col w-[800px] bg-white px-16 py-20 gap-4 text-lg font-light'>
56
- <b className='text-4xl font-medium text-black'>Mosaic</b>
57
- <p>
58
- Mosaic is an extensible user interface framework and component library built using{' '}
59
- <span className='font-mono text-purple-700'>radix</span> and{' '}
60
- <span className='font-mono text-purple-700'>tailwindcss</span>. It enables the rapid development of beautiful
61
- data-driven applications.
62
- </p>
63
- <p>Mosaic is an extensible family of packages, which include:</p>
64
- <table>
65
- <tbody>
66
- {packages.map(({ name, description }) => (
67
- <tr key={name}>
68
- <td className='font-mono text-purple-700 w-[260px]'>{name}</td>
69
- <td>{description}</td>
70
- </tr>
71
- ))}
72
- </tbody>
73
- </table>
74
- <br />
75
- <h1 className='text-lg flex justify-center font-medium text-blue-700'>Data-drive components, done right.</h1>
76
- <p className='px-8'>{data.quote}</p>
77
- </div>
78
- );
79
- };
80
-
81
- export default {
82
- component: Home,
83
- decorators: [withTheme, FullscreenDecorator('flex justify-center bg-[url(/images/bg-mosaic.png)]')],
84
- parameters: {
85
- layout: 'fullscreen',
86
- },
87
- };
88
-
89
- export const Default = {};