@dxos/brand 0.8.3 → 0.8.4-main.03d5cd7b56
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/README.md +15 -0
- package/dist/lib/browser/index.mjs +147 -304
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/experimental/ComposerLogo.d.ts +7 -0
- package/dist/types/src/components/experimental/ComposerLogo.d.ts.map +1 -0
- package/dist/types/src/components/experimental/Logo.stories.d.ts +15 -0
- package/dist/types/src/components/experimental/Logo.stories.d.ts.map +1 -0
- package/dist/types/src/components/{ComposerLogo/ComposerLogo.d.ts → experimental/experimental.d.ts} +3 -3
- package/dist/types/src/components/experimental/experimental.d.ts.map +1 -0
- package/dist/types/src/components/experimental/rive.stories.d.ts +14 -0
- package/dist/types/src/components/experimental/rive.stories.d.ts.map +1 -0
- package/dist/types/src/components/icons/Composer.d.ts +3 -0
- package/dist/types/src/components/icons/Composer.d.ts.map +1 -0
- package/dist/types/src/components/icons/DXNS.d.ts.map +1 -0
- package/dist/types/src/components/icons/DXOS.d.ts.map +1 -0
- package/dist/types/src/components/icons/ECHO.d.ts.map +1 -0
- package/dist/types/src/components/icons/HALO.d.ts.map +1 -0
- package/dist/types/src/components/icons/Icons.stories.d.ts +13 -0
- package/dist/types/src/components/icons/Icons.stories.d.ts.map +1 -0
- package/dist/types/src/components/icons/KUBE.d.ts.map +1 -0
- package/dist/types/src/components/icons/MESH.d.ts.map +1 -0
- package/dist/types/src/components/icons/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +2 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/logotypes/DXOSHorizontalType.d.ts.map +1 -0
- package/dist/types/src/components/logotypes/DXOSType.d.ts.map +1 -0
- package/dist/types/src/components/logotypes/DXOSVerticalType.d.ts.map +1 -0
- package/dist/types/src/components/logotypes/Logotypes.stories.d.ts +10 -0
- package/dist/types/src/components/logotypes/Logotypes.stories.d.ts.map +1 -0
- package/dist/types/src/components/logotypes/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +0 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -16
- package/src/components/experimental/ComposerLogo.tsx +66 -0
- package/src/components/experimental/Logo.stories.tsx +279 -0
- package/src/components/{ComposerLogo/ComposerLogo.tsx → experimental/experimental.tsx} +29 -27
- package/src/components/experimental/rive.stories.tsx +103 -0
- package/src/{icons → components/icons}/Composer.tsx +19 -5
- package/src/{icons → components/icons}/DXNS.tsx +3 -2
- package/src/{icons → components/icons}/DXOS.tsx +3 -2
- package/src/{icons → components/icons}/ECHO.tsx +3 -2
- package/src/{icons → components/icons}/HALO.tsx +3 -2
- package/src/components/icons/Icons.stories.tsx +68 -0
- package/src/{icons → components/icons}/KUBE.tsx +3 -2
- package/src/{icons → components/icons}/MESH.tsx +3 -2
- package/src/components/index.ts +3 -2
- package/src/{Logotypes.stories.tsx → components/logotypes/Logotypes.stories.tsx} +19 -14
- package/src/index.ts +0 -2
- package/src/types.d.ts +9 -0
- package/dist/types/src/Icons.stories.d.ts +0 -12
- package/dist/types/src/Icons.stories.d.ts.map +0 -1
- package/dist/types/src/Logotypes.stories.d.ts +0 -12
- package/dist/types/src/Logotypes.stories.d.ts.map +0 -1
- package/dist/types/src/components/ComposerLogo/ComposerLogo.d.ts.map +0 -1
- package/dist/types/src/components/ComposerLogo/ComposerLogo.stories.d.ts +0 -30
- package/dist/types/src/components/ComposerLogo/ComposerLogo.stories.d.ts.map +0 -1
- package/dist/types/src/components/ComposerLogo/index.d.ts +0 -2
- package/dist/types/src/components/ComposerLogo/index.d.ts.map +0 -1
- package/dist/types/src/components/rive.stories.d.ts +0 -9
- package/dist/types/src/components/rive.stories.d.ts.map +0 -1
- package/dist/types/src/icons/Composer.d.ts +0 -4
- package/dist/types/src/icons/Composer.d.ts.map +0 -1
- package/dist/types/src/icons/DXNS.d.ts.map +0 -1
- package/dist/types/src/icons/DXOS.d.ts.map +0 -1
- package/dist/types/src/icons/ECHO.d.ts.map +0 -1
- package/dist/types/src/icons/HALO.d.ts.map +0 -1
- package/dist/types/src/icons/KUBE.d.ts.map +0 -1
- package/dist/types/src/icons/MESH.d.ts.map +0 -1
- package/dist/types/src/icons/index.d.ts.map +0 -1
- package/dist/types/src/logotypes/DXOSHorizontalType.d.ts.map +0 -1
- package/dist/types/src/logotypes/DXOSType.d.ts.map +0 -1
- package/dist/types/src/logotypes/DXOSVerticalType.d.ts.map +0 -1
- package/dist/types/src/logotypes/index.d.ts.map +0 -1
- package/src/Icons.stories.tsx +0 -47
- package/src/components/ComposerLogo/ComposerLogo.stories.tsx +0 -207
- package/src/components/ComposerLogo/index.ts +0 -5
- package/src/components/rive.stories.tsx +0 -84
- /package/dist/types/src/{icons → components/icons}/DXNS.d.ts +0 -0
- /package/dist/types/src/{icons → components/icons}/DXOS.d.ts +0 -0
- /package/dist/types/src/{icons → components/icons}/ECHO.d.ts +0 -0
- /package/dist/types/src/{icons → components/icons}/HALO.d.ts +0 -0
- /package/dist/types/src/{icons → components/icons}/KUBE.d.ts +0 -0
- /package/dist/types/src/{icons → components/icons}/MESH.d.ts +0 -0
- /package/dist/types/src/{icons → components/icons}/index.d.ts +0 -0
- /package/dist/types/src/{logotypes → components/logotypes}/DXOSHorizontalType.d.ts +0 -0
- /package/dist/types/src/{logotypes → components/logotypes}/DXOSType.d.ts +0 -0
- /package/dist/types/src/{logotypes → components/logotypes}/DXOSVerticalType.d.ts +0 -0
- /package/dist/types/src/{logotypes → components/logotypes}/index.d.ts +0 -0
- /package/src/{icons → components/icons}/index.ts +0 -0
- /package/src/{logotypes → components/logotypes}/DXOSHorizontalType.tsx +0 -0
- /package/src/{logotypes → components/logotypes}/DXOSType.tsx +0 -0
- /package/src/{logotypes → components/logotypes}/DXOSVerticalType.tsx +0 -0
- /package/src/{logotypes → components/logotypes}/index.ts +0 -0
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { type IconProps, type IconWeight } from '@phosphor-icons/react';
|
|
6
|
+
import IconBase from '@phosphor-icons/react/dist/lib/IconBase';
|
|
7
|
+
import React, { type ReactElement, forwardRef } from 'react';
|
|
7
8
|
|
|
8
9
|
const weights = new Map<IconWeight, ReactElement>([
|
|
9
10
|
[
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { type IconProps, type IconWeight } from '@phosphor-icons/react';
|
|
6
|
+
import IconBase from '@phosphor-icons/react/dist/lib/IconBase';
|
|
7
|
+
import React, { type ReactElement, forwardRef } from 'react';
|
|
7
8
|
|
|
8
9
|
const weights = new Map<IconWeight, ReactElement>([
|
|
9
10
|
[
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { type IconProps, type IconWeight } from '@phosphor-icons/react';
|
|
6
|
+
import IconBase from '@phosphor-icons/react/dist/lib/IconBase';
|
|
7
|
+
import React, { type ReactElement, forwardRef } from 'react';
|
|
7
8
|
|
|
8
9
|
const weights = new Map<IconWeight, ReactElement>([
|
|
9
10
|
[
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2022 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
|
|
8
|
+
import { withTheme } from '@dxos/react-ui/testing';
|
|
9
|
+
import { mx } from '@dxos/ui-theme';
|
|
10
|
+
|
|
11
|
+
import { Composer } from './Composer';
|
|
12
|
+
import { DXNS } from './DXNS';
|
|
13
|
+
import { DXOS } from './DXOS';
|
|
14
|
+
import { ECHO } from './ECHO';
|
|
15
|
+
import { HALO } from './HALO';
|
|
16
|
+
import { KUBE } from './KUBE';
|
|
17
|
+
import { MESH } from './MESH';
|
|
18
|
+
|
|
19
|
+
const Icon = () => null;
|
|
20
|
+
|
|
21
|
+
const meta = {
|
|
22
|
+
title: 'ui/brand/components/Icons',
|
|
23
|
+
component: Icon,
|
|
24
|
+
decorators: [withTheme()],
|
|
25
|
+
parameters: {
|
|
26
|
+
layout: 'centered',
|
|
27
|
+
},
|
|
28
|
+
} satisfies Meta<typeof Icon>;
|
|
29
|
+
|
|
30
|
+
export default meta;
|
|
31
|
+
|
|
32
|
+
type Story = StoryObj<typeof meta>;
|
|
33
|
+
|
|
34
|
+
export const Default: Story = {
|
|
35
|
+
render: () => {
|
|
36
|
+
const size = 'w-[192px] h-[192px]';
|
|
37
|
+
return (
|
|
38
|
+
<div className='grid grid-cols-3 gap-16'>
|
|
39
|
+
<>
|
|
40
|
+
<div className='col-span-full flex justify-center'>
|
|
41
|
+
<Composer className={mx(size)} />
|
|
42
|
+
</div>
|
|
43
|
+
</>
|
|
44
|
+
<>
|
|
45
|
+
<ECHO className={mx(size, 'fill-sky-700')} />
|
|
46
|
+
<HALO className={mx(size, 'fill-violet-700')} />
|
|
47
|
+
<MESH className={mx(size, 'fill-green-700')} />
|
|
48
|
+
</>
|
|
49
|
+
<>
|
|
50
|
+
<DXNS className={mx(size, 'fill-neutral-700')} />
|
|
51
|
+
<DXOS className={mx(size, 'fill-neutral-700')} />
|
|
52
|
+
<KUBE className={mx(size, 'fill-neutral-700')} />
|
|
53
|
+
</>
|
|
54
|
+
<>
|
|
55
|
+
<div className='flex justify-center'>
|
|
56
|
+
<DXOS className={mx('w-[40px] h-[40px] fill-sky-700')} />
|
|
57
|
+
</div>
|
|
58
|
+
<div className='flex justify-center'>
|
|
59
|
+
<DXOS className={mx('w-[24px] h-[24px] fill-sky-700')} />
|
|
60
|
+
</div>
|
|
61
|
+
<div className='flex justify-center'>
|
|
62
|
+
<DXOS className={mx('w-[16px] h-[16px] fill-sky-700')} />
|
|
63
|
+
</div>
|
|
64
|
+
</>
|
|
65
|
+
</div>
|
|
66
|
+
);
|
|
67
|
+
},
|
|
68
|
+
};
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { type IconProps, type IconWeight } from '@phosphor-icons/react';
|
|
6
|
+
import IconBase from '@phosphor-icons/react/dist/lib/IconBase';
|
|
7
|
+
import React, { type ReactElement, forwardRef } from 'react';
|
|
7
8
|
|
|
8
9
|
const weights = new Map<IconWeight, ReactElement>([
|
|
9
10
|
[
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { type IconProps, type IconWeight } from '@phosphor-icons/react';
|
|
6
|
+
import IconBase from '@phosphor-icons/react/dist/lib/IconBase';
|
|
7
|
+
import React, { type ReactElement, forwardRef } from 'react';
|
|
7
8
|
|
|
8
9
|
const weights = new Map<IconWeight, ReactElement>([
|
|
9
10
|
[
|
package/src/components/index.ts
CHANGED
|
@@ -2,33 +2,38 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import '@
|
|
5
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
|
+
import React, { type PropsWithChildren } from 'react';
|
|
6
7
|
|
|
7
|
-
import
|
|
8
|
+
import { withTheme } from '@dxos/react-ui/testing';
|
|
9
|
+
import { mx } from '@dxos/ui-theme';
|
|
8
10
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import { DXOSType, DXOSHorizontalType, DXOSVerticalType } from './logotypes';
|
|
11
|
+
import { DXOSHorizontalType } from './DXOSHorizontalType';
|
|
12
|
+
import { DXOSType } from './DXOSType';
|
|
13
|
+
import { DXOSVerticalType } from './DXOSVerticalType';
|
|
13
14
|
|
|
14
15
|
const Icon = () => null;
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
title: 'ui/brand/LogoTypes',
|
|
17
|
+
const meta = {
|
|
18
|
+
title: 'ui/brand/components/LogoTypes',
|
|
18
19
|
component: Icon,
|
|
19
|
-
decorators: [withTheme],
|
|
20
|
-
}
|
|
20
|
+
decorators: [withTheme()],
|
|
21
|
+
} satisfies Meta<typeof Icon>;
|
|
22
|
+
|
|
23
|
+
export default meta;
|
|
24
|
+
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
21
26
|
|
|
22
|
-
const Cell
|
|
23
|
-
<div className={mx('flex p-4 justify-center rounded-md', dark ? 'bg-zinc-800 fill-zinc-50' : 'bg-
|
|
27
|
+
const Cell = ({ children, dark }: PropsWithChildren<{ dark?: boolean }>) => (
|
|
28
|
+
<div className={mx('flex p-4 justify-center rounded-md', dark ? 'bg-zinc-800 fill-zinc-50' : 'bg-zinc-100')}>
|
|
24
29
|
{children}
|
|
25
30
|
</div>
|
|
26
31
|
);
|
|
27
32
|
|
|
28
|
-
export const Default = {
|
|
33
|
+
export const Default: Story = {
|
|
29
34
|
render: () => {
|
|
30
35
|
return (
|
|
31
|
-
<div className='absolute flex
|
|
36
|
+
<div className='absolute flex h-full w-full items-center justify-center'>
|
|
32
37
|
<div className='flex grid grid-cols-2 gap-16'>
|
|
33
38
|
<Cell>
|
|
34
39
|
<DXOSType className='w-[256px]' />
|
package/src/index.ts
CHANGED
package/src/types.d.ts
ADDED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: () => null;
|
|
6
|
-
decorators: import("@storybook/react").Decorator[];
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: {
|
|
10
|
-
render: () => React.JSX.Element;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=Icons.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icons.stories.d.ts","sourceRoot":"","sources":["../../../src/Icons.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAS1B,wBAIE;AAEF,eAAO,MAAM,OAAO;;CAyBnB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: () => null;
|
|
6
|
-
decorators: import("@storybook/react").Decorator[];
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: {
|
|
10
|
-
render: () => React.JSX.Element;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=Logotypes.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Logotypes.stories.d.ts","sourceRoot":"","sources":["../../../src/Logotypes.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAkC,MAAM,OAAO,CAAC;;;;;;AASvD,wBAIE;AAQF,eAAO,MAAM,OAAO;;CA6BnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerLogo.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComposerLogo/ComposerLogo.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAEZ,KAAK,EAAE,EASR,MAAM,OAAO,CAAC;AAiBf,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAyCD,eAAO,MAAM,YAAY;cALY,OAAO;WAAS,MAAM;iBAAe,MAAM,EAAE;uGAuCjF,CAAC;AAmDF;;GAEG;AAEH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAkGA,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
|
-
import '@fontsource/k2d/100-italic.css';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { type AnimationController } from './ComposerLogo';
|
|
5
|
-
declare const _default: {
|
|
6
|
-
title: string;
|
|
7
|
-
component: React.ForwardRefExoticComponent<{
|
|
8
|
-
animate?: boolean;
|
|
9
|
-
size?: number;
|
|
10
|
-
classNames?: string[];
|
|
11
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & React.RefAttributes<AnimationController>>;
|
|
12
|
-
decorators: import("@storybook/react").Decorator[];
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
15
|
-
export declare const Default: {
|
|
16
|
-
render: () => React.JSX.Element;
|
|
17
|
-
};
|
|
18
|
-
export declare const Colors: {
|
|
19
|
-
render: () => React.JSX.Element;
|
|
20
|
-
};
|
|
21
|
-
export declare const Pacman: {
|
|
22
|
-
render: () => React.JSX.Element;
|
|
23
|
-
};
|
|
24
|
-
export declare const Spinner: {
|
|
25
|
-
render: () => React.JSX.Element;
|
|
26
|
-
};
|
|
27
|
-
export declare const Linear: {
|
|
28
|
-
render: () => React.JSX.Element;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=ComposerLogo.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ComposerLogo.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComposerLogo/ComposerLogo.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,gCAAgC,CAAC;AAGxC,OAAO,KAA2B,MAAM,OAAO,CAAC;AAMhD,OAAO,EAAE,KAAK,mBAAmB,EAAiC,MAAM,gBAAgB,CAAC;;;;;;;;;;AAOzF,wBAIE;AAWF,eAAO,MAAM,OAAO;;CAsCnB,CAAC;AAGF,eAAO,MAAM,MAAM;;CA0BlB,CAAC;AAEF,eAAO,MAAM,MAAM;;CAoClB,CAAC;AAuCF,eAAO,MAAM,OAAO;;CAQnB,CAAC;AAGF,eAAO,MAAM,MAAM;;CAclB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComposerLogo/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
decorators: import("@storybook/react").Decorator[];
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Default: () => React.JSX.Element | null;
|
|
9
|
-
//# sourceMappingURL=rive.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rive.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/rive.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAoB,MAAM,OAAO,CAAC;;;;;AAMzC,wBAGE;AA+BF,eAAO,MAAM,OAAO,gCAoCnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../../src/icons/Composer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAmB,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAwC,MAAM,OAAO,CAAC;AAiC7D,eAAO,MAAM,QAAQ,8FAEnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DXNS.d.ts","sourceRoot":"","sources":["../../../../src/icons/DXNS.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAmB,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAwC,MAAM,OAAO,CAAC;AAoC7D,eAAO,MAAM,IAAI,8FAEf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DXOS.d.ts","sourceRoot":"","sources":["../../../../src/icons/DXOS.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAmB,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAwC,MAAM,OAAO,CAAC;AAa7D,eAAO,MAAM,IAAI,8FAEf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ECHO.d.ts","sourceRoot":"","sources":["../../../../src/icons/ECHO.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAmB,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAwC,MAAM,OAAO,CAAC;AAa7D,eAAO,MAAM,IAAI,8FAEf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HALO.d.ts","sourceRoot":"","sources":["../../../../src/icons/HALO.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAmB,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAwC,MAAM,OAAO,CAAC;AAiB7D,eAAO,MAAM,IAAI,8FAEf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KUBE.d.ts","sourceRoot":"","sources":["../../../../src/icons/KUBE.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAmB,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAwC,MAAM,OAAO,CAAC;AA6C7D,eAAO,MAAM,IAAI,8FAEf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MESH.d.ts","sourceRoot":"","sources":["../../../../src/icons/MESH.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAmB,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAwC,MAAM,OAAO,CAAC;AAc7D,eAAO,MAAM,IAAI,8FAEf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DXOSHorizontalType.d.ts","sourceRoot":"","sources":["../../../../src/logotypes/DXOSHorizontalType.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAgCzD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DXOSType.d.ts","sourceRoot":"","sources":["../../../../src/logotypes/DXOSType.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CA6B/C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DXOSVerticalType.d.ts","sourceRoot":"","sources":["../../../../src/logotypes/DXOSVerticalType.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAgCvD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/logotypes/index.ts"],"names":[],"mappings":"AAIA,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
|
package/src/Icons.stories.tsx
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2022 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import '@dxos-theme';
|
|
6
|
-
|
|
7
|
-
import React from 'react';
|
|
8
|
-
|
|
9
|
-
import { mx } from '@dxos/react-ui-theme';
|
|
10
|
-
import { withTheme } from '@dxos/storybook-utils';
|
|
11
|
-
|
|
12
|
-
import { DXNS, DXOS, ECHO, HALO, KUBE, MESH, Composer } from './icons';
|
|
13
|
-
|
|
14
|
-
const Icon = () => null;
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
title: 'ui/brand/Icons',
|
|
18
|
-
component: Icon,
|
|
19
|
-
decorators: [withTheme],
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export const Default = {
|
|
23
|
-
render: () => {
|
|
24
|
-
const size = 'w-[128px] h-[128px]';
|
|
25
|
-
return (
|
|
26
|
-
<div className='absolute flex w-full h-full items-center justify-center'>
|
|
27
|
-
<div className='grid grid-cols-3 gap-16'>
|
|
28
|
-
<>
|
|
29
|
-
<div />
|
|
30
|
-
<Composer className={mx(size)} />
|
|
31
|
-
<div />
|
|
32
|
-
</>
|
|
33
|
-
<>
|
|
34
|
-
<DXNS className={mx(size, 'fill-orange-700')} />
|
|
35
|
-
<DXOS className={mx(size, 'fill-teal-700')} />
|
|
36
|
-
<ECHO className={mx(size, 'fill-violet-700')} />
|
|
37
|
-
</>
|
|
38
|
-
<>
|
|
39
|
-
<HALO className={mx(size, 'fill-purple-700')} />
|
|
40
|
-
<KUBE className={mx(size, 'fill-sky-700')} />
|
|
41
|
-
<MESH className={mx(size, 'fill-green-700')} />
|
|
42
|
-
</>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
);
|
|
46
|
-
},
|
|
47
|
-
};
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2022 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import '@dxos-theme';
|
|
6
|
-
|
|
7
|
-
import '@fontsource/k2d/100-italic.css';
|
|
8
|
-
|
|
9
|
-
import { Ghost, Square } from '@phosphor-icons/react';
|
|
10
|
-
import React, { useRef, useState } from 'react';
|
|
11
|
-
|
|
12
|
-
import { Button } from '@dxos/react-ui';
|
|
13
|
-
import { mx } from '@dxos/react-ui-theme';
|
|
14
|
-
import { withTheme } from '@dxos/storybook-utils';
|
|
15
|
-
|
|
16
|
-
import { type AnimationController, ComposerLogo, ComposerSpinner } from './ComposerLogo';
|
|
17
|
-
import { DXOS } from '../../icons';
|
|
18
|
-
|
|
19
|
-
// import ident from '../../../assets/sounds/ident-1.mp3';
|
|
20
|
-
|
|
21
|
-
// https://pixabay.com/sound-effects/search/logo/?pagi=2
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
title: 'ui/brand/Logo',
|
|
25
|
-
component: ComposerLogo,
|
|
26
|
-
decorators: [withTheme],
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
// TODO(burdon): Get from theme?
|
|
30
|
-
const colors = {
|
|
31
|
-
gray: '#888888',
|
|
32
|
-
purple: '#AA23D3',
|
|
33
|
-
orange: '#CA6346',
|
|
34
|
-
green: '#4DA676',
|
|
35
|
-
blue: '#539ACD',
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const Default = {
|
|
39
|
-
render: () => {
|
|
40
|
-
const controller = useRef<AnimationController>(null);
|
|
41
|
-
const [logo, setLogo] = useState(false);
|
|
42
|
-
const handleSpin = async () => {
|
|
43
|
-
// const audio = new Audio(ident);
|
|
44
|
-
// await audio.play();
|
|
45
|
-
setTimeout(() => {
|
|
46
|
-
setLogo(true);
|
|
47
|
-
}, 1_500);
|
|
48
|
-
|
|
49
|
-
controller.current?.spin();
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
return (
|
|
53
|
-
<div className='absolute flex inset-0 items-center justify-center'>
|
|
54
|
-
<div className='absolute left-4 top-4'>
|
|
55
|
-
<Button onClick={handleSpin}>Spin</Button>
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<div>
|
|
59
|
-
<div className='flex justify-center'>
|
|
60
|
-
<ComposerLogo ref={controller} size={256} />
|
|
61
|
-
</div>
|
|
62
|
-
|
|
63
|
-
<div className={mx('transition opacity-0 duration-1000', logo && 'opacity-100')}>
|
|
64
|
-
<div className={mx('text-[100px] text-teal-400 font-[k2d] italic')}>composer</div>
|
|
65
|
-
<div className={mx('flex items-center -mt-[20px] text-neutral-700')}>
|
|
66
|
-
<span className='ml-[210px] mt-[2px] mr-2'>Powered by DXOS</span>
|
|
67
|
-
<div>
|
|
68
|
-
<DXOS className='w-[32px] h-[32px]' />
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
);
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
// TODO(burdon): Camo.
|
|
79
|
-
export const Colors = {
|
|
80
|
-
render: () => {
|
|
81
|
-
const colors = [
|
|
82
|
-
['fill-teal-400', 'fill-teal-500', 'fill-teal-600'],
|
|
83
|
-
['fill-orange-400', 'fill-orange-500', 'fill-orange-600'],
|
|
84
|
-
['fill-cyan-400', 'fill-cyan-500', 'fill-cyan-600'],
|
|
85
|
-
['fill-purple-400', 'fill-purple-500', 'fill-purple-600'],
|
|
86
|
-
['fill-blue-500', 'fill-blue-600', 'fill-blue-700'],
|
|
87
|
-
['fill-slate-500', 'fill-slate-600', 'fill-slate-700'],
|
|
88
|
-
['fill-blue-500', 'fill-neutral-100', 'fill-red-500'],
|
|
89
|
-
['fill-stone-400', 'fill-stone-500', 'fill-stone-600'],
|
|
90
|
-
['fill-neutral-500', 'fill-neutral-600', 'fill-neutral-700'],
|
|
91
|
-
];
|
|
92
|
-
|
|
93
|
-
return (
|
|
94
|
-
<div className='absolute inset-0 flex justify-center items-center'>
|
|
95
|
-
<div className='grid grid-cols-3 gap-20 w-[800px]'>
|
|
96
|
-
{colors.map((classNames, i) => (
|
|
97
|
-
<div key={i} className='flex justify-center items-center'>
|
|
98
|
-
<ComposerLogo animate={false} size={160} classNames={classNames} />
|
|
99
|
-
</div>
|
|
100
|
-
))}
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
);
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export const Pacman = {
|
|
108
|
-
render: () => {
|
|
109
|
-
return (
|
|
110
|
-
<div className='absolute inset-0 flex flex-col justify-center'>
|
|
111
|
-
<div className='flex flex-col'>
|
|
112
|
-
<div className='flex items-center p-4'>
|
|
113
|
-
<div className='flex ml-8 mr-[100px]'>
|
|
114
|
-
<div>
|
|
115
|
-
<Ghost weight='duotone' className='w-[180px] h-[180px] text-blue-500' />
|
|
116
|
-
</div>
|
|
117
|
-
<div>
|
|
118
|
-
<Ghost weight='duotone' className='w-[180px] h-[180px] text-purple-500' />
|
|
119
|
-
</div>
|
|
120
|
-
<div>
|
|
121
|
-
<Ghost weight='duotone' className='w-[180px] h-[180px] text-red-500' />
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
|
|
125
|
-
<ComposerLogo size={145} classNames={['fill-yellow-200', 'fill-yellow-300', 'fill-yellow-400']} />
|
|
126
|
-
|
|
127
|
-
<div className='flex -ml-10'>
|
|
128
|
-
{Array.from({ length: 6 }).map((_, i) => (
|
|
129
|
-
<div key={i} className='p-4'>
|
|
130
|
-
<Square weight='duotone' className='w-6 h-6 text-yellow-200' />
|
|
131
|
-
</div>
|
|
132
|
-
))}
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
|
|
136
|
-
<div className='flex justify-center font-mono font-light text-[60px] mt-8 text-neutral-200'>
|
|
137
|
-
<div>Ready Player 1</div>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
);
|
|
142
|
-
},
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
const SpinnerContainer = () => {
|
|
146
|
-
const [spinning, setSpinning] = useState(false);
|
|
147
|
-
return (
|
|
148
|
-
<div>
|
|
149
|
-
<div className='absolute left-4 top-4'>
|
|
150
|
-
{(spinning && <Button onClick={() => setSpinning(false)}>Stop</Button>) || (
|
|
151
|
-
<Button onClick={() => setSpinning(true)}>Start</Button>
|
|
152
|
-
)}
|
|
153
|
-
</div>
|
|
154
|
-
<div className='grid grid-cols-3 gap-20'>
|
|
155
|
-
<>
|
|
156
|
-
<div className='flex justify-center items-center'>
|
|
157
|
-
<ComposerSpinner animate={spinning} gap={1} size={200} color={colors.blue} />
|
|
158
|
-
</div>
|
|
159
|
-
<div className='flex justify-center items-center'>
|
|
160
|
-
<ComposerSpinner animate={spinning} gap={1} size={200} color={colors.green} />
|
|
161
|
-
</div>
|
|
162
|
-
<div className='flex justify-center items-center'>
|
|
163
|
-
<ComposerSpinner animate={spinning} gap={1} size={200} color={colors.orange} />
|
|
164
|
-
</div>
|
|
165
|
-
</>
|
|
166
|
-
<>
|
|
167
|
-
<div className='flex justify-center items-center'>
|
|
168
|
-
<ComposerSpinner animate={spinning} gap={1} size={200} color={colors.blue} />
|
|
169
|
-
</div>
|
|
170
|
-
<div className='flex justify-center items-center'>
|
|
171
|
-
<ComposerSpinner animate={spinning} gap={1} size={100} color={colors.green} />
|
|
172
|
-
</div>
|
|
173
|
-
<div className='flex justify-center items-center'>
|
|
174
|
-
<ComposerSpinner animate={spinning} gap={1} size={40} color={colors.orange} />
|
|
175
|
-
</div>
|
|
176
|
-
</>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
);
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
export const Spinner = {
|
|
183
|
-
render: () => {
|
|
184
|
-
return (
|
|
185
|
-
<div className='absolute inset-0 flex items-center justify-center'>
|
|
186
|
-
<SpinnerContainer />
|
|
187
|
-
</div>
|
|
188
|
-
);
|
|
189
|
-
},
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
// https://github.com/grafana/grafana/blob/main/packages/grafana-ui/src/components/LoadingBar/LoadingBar.tsx
|
|
193
|
-
export const Linear = {
|
|
194
|
-
render: () => {
|
|
195
|
-
return (
|
|
196
|
-
<div className='absolute flex flex-col inset-0 bg-black'>
|
|
197
|
-
<div
|
|
198
|
-
className={'h-[1px] translateX(-100%) animate-progress-linear'}
|
|
199
|
-
style={{
|
|
200
|
-
background:
|
|
201
|
-
'linear-gradient(90deg, rgba(110, 159, 255, 0) 0%, #6E9FFF 80.75%, rgba(110, 159, 255, 0) 100%)',
|
|
202
|
-
}}
|
|
203
|
-
/>
|
|
204
|
-
</div>
|
|
205
|
-
);
|
|
206
|
-
},
|
|
207
|
-
};
|