@bayonai/mui-design 0.1.0
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 +56 -0
- package/dist/cjs/client.js +20 -0
- package/dist/cjs/components/BayonFlowVisual.js +82 -0
- package/dist/cjs/components/IconTooltipButton.js +43 -0
- package/dist/cjs/components/panels.js +85 -0
- package/dist/cjs/index.js +25 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/providers/BayonThemeProvider.js +74 -0
- package/dist/cjs/styles/pageStyles.js +96 -0
- package/dist/cjs/theme/components.js +63 -0
- package/dist/cjs/theme/createBayonTheme.js +24 -0
- package/dist/cjs/theme/palette.js +109 -0
- package/dist/cjs/theme/shadows.js +21 -0
- package/dist/cjs/theme/types.js +2 -0
- package/dist/cjs/theme/typography.js +58 -0
- package/dist/cjs/utils/createBayonEmotionCache.js +21 -0
- package/dist/esm/client.js +4 -0
- package/dist/esm/components/BayonFlowVisual.js +79 -0
- package/dist/esm/components/IconTooltipButton.js +7 -0
- package/dist/esm/components/panels.js +72 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/providers/BayonThemeProvider.js +35 -0
- package/dist/esm/styles/pageStyles.js +93 -0
- package/dist/esm/theme/components.js +60 -0
- package/dist/esm/theme/createBayonTheme.js +20 -0
- package/dist/esm/theme/palette.js +106 -0
- package/dist/esm/theme/shadows.js +18 -0
- package/dist/esm/theme/types.js +1 -0
- package/dist/esm/theme/typography.js +55 -0
- package/dist/esm/utils/createBayonEmotionCache.js +15 -0
- package/dist/types/client.d.ts +3 -0
- package/dist/types/components/BayonFlowVisual.d.ts +12 -0
- package/dist/types/components/IconTooltipButton.d.ts +9 -0
- package/dist/types/components/panels.d.ts +36 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/providers/BayonThemeProvider.d.ts +10 -0
- package/dist/types/styles/pageStyles.d.ts +15 -0
- package/dist/types/theme/components.d.ts +2 -0
- package/dist/types/theme/createBayonTheme.d.ts +4 -0
- package/dist/types/theme/palette.d.ts +146 -0
- package/dist/types/theme/shadows.d.ts +2 -0
- package/dist/types/theme/types.d.ts +47 -0
- package/dist/types/theme/typography.d.ts +2 -0
- package/dist/types/utils/createBayonEmotionCache.d.ts +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export const bayonAccent = {
|
|
2
|
+
teal: '#2DD4BF',
|
|
3
|
+
tealLight: '#5EEAD4',
|
|
4
|
+
tealSoft: '#A7F3D0',
|
|
5
|
+
blue: '#60A5FA',
|
|
6
|
+
yellow: '#FDE047',
|
|
7
|
+
coral: '#FF6B6B',
|
|
8
|
+
night: '#0B1020',
|
|
9
|
+
panel: '#111827',
|
|
10
|
+
ink: '#031B20',
|
|
11
|
+
foreground: '#F8FAFC',
|
|
12
|
+
};
|
|
13
|
+
export const bayonPrimary = {
|
|
14
|
+
lighter: '#D1E9FC',
|
|
15
|
+
light: '#76B0F1',
|
|
16
|
+
main: '#2065D1',
|
|
17
|
+
dark: '#103996',
|
|
18
|
+
darker: '#061B64',
|
|
19
|
+
contrastText: '#FFFFFF',
|
|
20
|
+
};
|
|
21
|
+
export const bayonSecondary = {
|
|
22
|
+
lighter: '#D6E4FF',
|
|
23
|
+
light: '#84A9FF',
|
|
24
|
+
main: '#3366FF',
|
|
25
|
+
dark: '#1939B7',
|
|
26
|
+
darker: '#091A7A',
|
|
27
|
+
contrastText: '#FFFFFF',
|
|
28
|
+
};
|
|
29
|
+
export const bayonPalette = {
|
|
30
|
+
primary: bayonPrimary,
|
|
31
|
+
secondary: bayonSecondary,
|
|
32
|
+
info: {
|
|
33
|
+
lighter: '#D0F2FF',
|
|
34
|
+
light: '#74CAFF',
|
|
35
|
+
main: '#1890FF',
|
|
36
|
+
dark: '#0C53B7',
|
|
37
|
+
darker: '#04297A',
|
|
38
|
+
contrastText: '#FFFFFF',
|
|
39
|
+
},
|
|
40
|
+
success: {
|
|
41
|
+
lighter: '#E9FCD4',
|
|
42
|
+
light: '#AAF27F',
|
|
43
|
+
main: '#54D62C',
|
|
44
|
+
dark: '#229A16',
|
|
45
|
+
darker: '#08660D',
|
|
46
|
+
contrastText: '#FFFFFF',
|
|
47
|
+
},
|
|
48
|
+
warning: {
|
|
49
|
+
lighter: '#FFF7CD',
|
|
50
|
+
light: '#FFE16A',
|
|
51
|
+
main: '#FFC107',
|
|
52
|
+
dark: '#B78103',
|
|
53
|
+
darker: '#7A4F01',
|
|
54
|
+
contrastText: '#212B36',
|
|
55
|
+
},
|
|
56
|
+
error: {
|
|
57
|
+
lighter: '#FFE7D9',
|
|
58
|
+
light: '#FFA48D',
|
|
59
|
+
main: '#FF4842',
|
|
60
|
+
dark: '#B72136',
|
|
61
|
+
darker: '#7A0C2E',
|
|
62
|
+
contrastText: '#FFFFFF',
|
|
63
|
+
},
|
|
64
|
+
grey: {
|
|
65
|
+
0: '#FFFFFF',
|
|
66
|
+
100: '#F9FAFB',
|
|
67
|
+
200: '#F4F6F8',
|
|
68
|
+
300: '#DFE3E8',
|
|
69
|
+
400: '#C4CDD5',
|
|
70
|
+
500: '#919EAB',
|
|
71
|
+
600: '#637381',
|
|
72
|
+
700: '#454F5B',
|
|
73
|
+
800: '#212B36',
|
|
74
|
+
900: '#161C24',
|
|
75
|
+
},
|
|
76
|
+
text: {
|
|
77
|
+
primary: '#212B36',
|
|
78
|
+
secondary: '#637381',
|
|
79
|
+
disabled: '#919EAB',
|
|
80
|
+
},
|
|
81
|
+
background: {
|
|
82
|
+
paper: '#FFFFFF',
|
|
83
|
+
default: '#F9FAFB',
|
|
84
|
+
},
|
|
85
|
+
action: {
|
|
86
|
+
active: '#637381',
|
|
87
|
+
hover: 'rgba(99, 115, 129, 0.08)',
|
|
88
|
+
selected: 'rgba(99, 115, 129, 0.16)',
|
|
89
|
+
disabled: 'rgba(99, 115, 129, 0.8)',
|
|
90
|
+
disabledBackground: 'rgba(99, 115, 129, 0.24)',
|
|
91
|
+
focus: 'rgba(99, 115, 129, 0.24)',
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
export const bayonDarkPalette = {
|
|
95
|
+
...bayonPalette,
|
|
96
|
+
mode: 'dark',
|
|
97
|
+
background: {
|
|
98
|
+
default: bayonAccent.night,
|
|
99
|
+
paper: bayonAccent.panel,
|
|
100
|
+
},
|
|
101
|
+
text: {
|
|
102
|
+
primary: '#FFFFFF',
|
|
103
|
+
secondary: 'rgba(255, 255, 255, 0.72)',
|
|
104
|
+
disabled: 'rgba(255, 255, 255, 0.5)',
|
|
105
|
+
},
|
|
106
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { bayonPalette } from './palette';
|
|
2
|
+
export const bayonShadows = {
|
|
3
|
+
z1: '0px 1px 2px 0px rgba(145, 158, 171, 0.16)',
|
|
4
|
+
z8: '0px 8px 16px 0px rgba(145, 158, 171, 0.16)',
|
|
5
|
+
z12: '0px 12px 24px -4px rgba(145, 158, 171, 0.16)',
|
|
6
|
+
z16: '0px 16px 32px -4px rgba(145, 158, 171, 0.16)',
|
|
7
|
+
z20: '0px 20px 40px -4px rgba(145, 158, 171, 0.16)',
|
|
8
|
+
z24: '0px 20px 48px 0px rgba(145, 158, 171, 0.16)',
|
|
9
|
+
primary: `0 8px 16px 0 ${bayonPalette.primary.light}33`,
|
|
10
|
+
secondary: `0 8px 16px 0 ${bayonPalette.secondary.light}33`,
|
|
11
|
+
info: `0 8px 16px 0 ${bayonPalette.info.light}33`,
|
|
12
|
+
success: `0 8px 16px 0 ${bayonPalette.success.light}33`,
|
|
13
|
+
warning: `0 8px 16px 0 ${bayonPalette.warning.light}33`,
|
|
14
|
+
error: `0 8px 16px 0 ${bayonPalette.error.light}33`,
|
|
15
|
+
card: '0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12)',
|
|
16
|
+
dialog: '-40px 40px 80px -8px rgba(145, 158, 171, 0.24)',
|
|
17
|
+
dropdown: '0 8px 16px 0 rgba(145, 158, 171, 0.16)',
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export const bayonTypography = {
|
|
2
|
+
fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
|
|
3
|
+
h1: {
|
|
4
|
+
fontWeight: 700,
|
|
5
|
+
fontSize: '2.5rem',
|
|
6
|
+
lineHeight: 1.2,
|
|
7
|
+
},
|
|
8
|
+
h2: {
|
|
9
|
+
fontWeight: 700,
|
|
10
|
+
fontSize: '2rem',
|
|
11
|
+
lineHeight: 1.3,
|
|
12
|
+
},
|
|
13
|
+
h3: {
|
|
14
|
+
fontWeight: 700,
|
|
15
|
+
fontSize: '1.75rem',
|
|
16
|
+
lineHeight: 1.4,
|
|
17
|
+
},
|
|
18
|
+
h4: {
|
|
19
|
+
fontWeight: 600,
|
|
20
|
+
fontSize: '1.5rem',
|
|
21
|
+
lineHeight: 1.5,
|
|
22
|
+
},
|
|
23
|
+
h5: {
|
|
24
|
+
fontWeight: 600,
|
|
25
|
+
fontSize: '1.25rem',
|
|
26
|
+
lineHeight: 1.5,
|
|
27
|
+
},
|
|
28
|
+
h6: {
|
|
29
|
+
fontWeight: 600,
|
|
30
|
+
fontSize: '1.125rem',
|
|
31
|
+
lineHeight: 1.6,
|
|
32
|
+
},
|
|
33
|
+
body1: {
|
|
34
|
+
fontSize: '1rem',
|
|
35
|
+
lineHeight: 1.7,
|
|
36
|
+
},
|
|
37
|
+
body2: {
|
|
38
|
+
fontSize: '0.875rem',
|
|
39
|
+
lineHeight: 1.7,
|
|
40
|
+
},
|
|
41
|
+
subtitle1: {
|
|
42
|
+
fontSize: '1rem',
|
|
43
|
+
fontWeight: 500,
|
|
44
|
+
lineHeight: 1.7,
|
|
45
|
+
},
|
|
46
|
+
subtitle2: {
|
|
47
|
+
fontSize: '0.875rem',
|
|
48
|
+
fontWeight: 500,
|
|
49
|
+
lineHeight: 1.7,
|
|
50
|
+
},
|
|
51
|
+
button: {
|
|
52
|
+
textTransform: 'none',
|
|
53
|
+
fontWeight: 500,
|
|
54
|
+
},
|
|
55
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import createCache from '@emotion/cache';
|
|
2
|
+
const isBrowser = typeof document !== 'undefined';
|
|
3
|
+
export function createBayonEmotionCache(key = 'css') {
|
|
4
|
+
let insertionPoint;
|
|
5
|
+
if (isBrowser) {
|
|
6
|
+
const emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
|
|
7
|
+
insertionPoint = emotionInsertionPoint !== null && emotionInsertionPoint !== void 0 ? emotionInsertionPoint : undefined;
|
|
8
|
+
}
|
|
9
|
+
return createCache({
|
|
10
|
+
key,
|
|
11
|
+
prepend: true,
|
|
12
|
+
insertionPoint,
|
|
13
|
+
speedy: typeof process !== 'undefined' && process.env.NODE_ENV === 'production',
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type BoxProps } from '@mui/material';
|
|
3
|
+
export type BayonFlowItem = {
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
value: React.ReactNode;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
export interface BayonFlowVisualProps extends BoxProps {
|
|
9
|
+
items?: BayonFlowItem[];
|
|
10
|
+
caption?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function BayonFlowVisual({ items, caption, sx, ...props }: BayonFlowVisualProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type IconButtonProps, type TooltipProps } from '@mui/material';
|
|
3
|
+
export interface IconTooltipButtonProps extends Omit<IconButtonProps, 'aria-label'> {
|
|
4
|
+
component?: React.ElementType;
|
|
5
|
+
href?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
tooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
8
|
+
}
|
|
9
|
+
export declare const IconTooltipButton: React.ForwardRefExoticComponent<Omit<IconTooltipButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type BoxProps, type StackProps } from '@mui/material';
|
|
3
|
+
export interface BayonPanelProps extends BoxProps {
|
|
4
|
+
hover?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function BayonPageShell({ sx, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function BayonGradientHero({ sx, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function BayonDarkPanel({ hover, sx, ...props }: BayonPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function BayonAccentPanel({ hover, sx, ...props }: BayonPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function BayonCtaPanel({ sx, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function BayonContentBox({ sx, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export interface BayonMethodBoxProps extends BoxProps {
|
|
13
|
+
accentColor?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function BayonMethodBox({ accentColor, sx, ...props }: BayonMethodBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface BayonProjectCardProps extends Omit<BayonPanelProps, 'title'> {
|
|
17
|
+
category?: React.ReactNode;
|
|
18
|
+
status?: React.ReactNode;
|
|
19
|
+
title?: React.ReactNode;
|
|
20
|
+
body?: React.ReactNode;
|
|
21
|
+
actions?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare function BayonProjectCard({ category, status, title, body, actions, children, hover, sx, ...props }: BayonProjectCardProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export interface BayonPillarCardProps extends Omit<BoxProps, 'title'> {
|
|
25
|
+
accentColor?: string;
|
|
26
|
+
eyebrow?: React.ReactNode;
|
|
27
|
+
title?: React.ReactNode;
|
|
28
|
+
body?: React.ReactNode;
|
|
29
|
+
actions?: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export declare function BayonPillarCard({ accentColor, eyebrow, title, body, actions, children, sx, ...props }: BayonPillarCardProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export interface BayonTechChipProps extends BoxProps {
|
|
33
|
+
label?: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare function BayonTechChip({ label, children, sx, ...props }: BayonTechChipProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function BayonPanelStack({ sx, ...props }: StackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './components/panels';
|
|
2
|
+
export * from './styles/pageStyles';
|
|
3
|
+
export * from './theme/components';
|
|
4
|
+
export * from './theme/createBayonTheme';
|
|
5
|
+
export * from './theme/palette';
|
|
6
|
+
export * from './theme/shadows';
|
|
7
|
+
export * from './theme/typography';
|
|
8
|
+
export * from './theme/types';
|
|
9
|
+
export * from './utils/createBayonEmotionCache';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type EmotionCache } from '@emotion/react';
|
|
3
|
+
import { ThemeProvider } from '@mui/material/styles';
|
|
4
|
+
export interface BayonThemeProviderProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
emotionCache?: EmotionCache;
|
|
7
|
+
theme?: Parameters<typeof ThemeProvider>[0]['theme'];
|
|
8
|
+
enableErrorBoundary?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function BayonThemeProvider({ children, emotionCache, theme, enableErrorBoundary, }: BayonThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export declare const pageShellSx: SxProps<Theme>;
|
|
3
|
+
export declare const gradientHeroSx: SxProps<Theme>;
|
|
4
|
+
export declare const heroContainerSx: SxProps<Theme>;
|
|
5
|
+
export declare const heroStackSx: SxProps<Theme>;
|
|
6
|
+
export declare const heroTitleSx: SxProps<Theme>;
|
|
7
|
+
export declare const heroBodySx: SxProps<Theme>;
|
|
8
|
+
export declare const darkPanelSx: SxProps<Theme>;
|
|
9
|
+
export declare const accentPanelSx: SxProps<Theme>;
|
|
10
|
+
export declare const darkPanelHoverSx: SxProps<Theme>;
|
|
11
|
+
export declare const darkCtaSx: SxProps<Theme>;
|
|
12
|
+
export declare const eyebrowSx: SxProps<Theme>;
|
|
13
|
+
export declare const mutedTextSx: SxProps<Theme>;
|
|
14
|
+
export declare const tealButtonSx: SxProps<Theme>;
|
|
15
|
+
export declare const outlineButtonSx: SxProps<Theme>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CreateBayonThemeOptions } from './types';
|
|
2
|
+
export declare function createBayonTheme(options?: CreateBayonThemeOptions): import("@mui/material/styles").Theme;
|
|
3
|
+
export declare const bayonTheme: import("@mui/material/styles").Theme;
|
|
4
|
+
export declare const bayonDarkTheme: import("@mui/material/styles").Theme;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { BayonColorScale } from './types';
|
|
2
|
+
export declare const bayonAccent: {
|
|
3
|
+
readonly teal: "#2DD4BF";
|
|
4
|
+
readonly tealLight: "#5EEAD4";
|
|
5
|
+
readonly tealSoft: "#A7F3D0";
|
|
6
|
+
readonly blue: "#60A5FA";
|
|
7
|
+
readonly yellow: "#FDE047";
|
|
8
|
+
readonly coral: "#FF6B6B";
|
|
9
|
+
readonly night: "#0B1020";
|
|
10
|
+
readonly panel: "#111827";
|
|
11
|
+
readonly ink: "#031B20";
|
|
12
|
+
readonly foreground: "#F8FAFC";
|
|
13
|
+
};
|
|
14
|
+
export declare const bayonPrimary: BayonColorScale;
|
|
15
|
+
export declare const bayonSecondary: BayonColorScale;
|
|
16
|
+
export declare const bayonPalette: {
|
|
17
|
+
readonly primary: BayonColorScale;
|
|
18
|
+
readonly secondary: BayonColorScale;
|
|
19
|
+
readonly info: {
|
|
20
|
+
readonly lighter: "#D0F2FF";
|
|
21
|
+
readonly light: "#74CAFF";
|
|
22
|
+
readonly main: "#1890FF";
|
|
23
|
+
readonly dark: "#0C53B7";
|
|
24
|
+
readonly darker: "#04297A";
|
|
25
|
+
readonly contrastText: "#FFFFFF";
|
|
26
|
+
};
|
|
27
|
+
readonly success: {
|
|
28
|
+
readonly lighter: "#E9FCD4";
|
|
29
|
+
readonly light: "#AAF27F";
|
|
30
|
+
readonly main: "#54D62C";
|
|
31
|
+
readonly dark: "#229A16";
|
|
32
|
+
readonly darker: "#08660D";
|
|
33
|
+
readonly contrastText: "#FFFFFF";
|
|
34
|
+
};
|
|
35
|
+
readonly warning: {
|
|
36
|
+
readonly lighter: "#FFF7CD";
|
|
37
|
+
readonly light: "#FFE16A";
|
|
38
|
+
readonly main: "#FFC107";
|
|
39
|
+
readonly dark: "#B78103";
|
|
40
|
+
readonly darker: "#7A4F01";
|
|
41
|
+
readonly contrastText: "#212B36";
|
|
42
|
+
};
|
|
43
|
+
readonly error: {
|
|
44
|
+
readonly lighter: "#FFE7D9";
|
|
45
|
+
readonly light: "#FFA48D";
|
|
46
|
+
readonly main: "#FF4842";
|
|
47
|
+
readonly dark: "#B72136";
|
|
48
|
+
readonly darker: "#7A0C2E";
|
|
49
|
+
readonly contrastText: "#FFFFFF";
|
|
50
|
+
};
|
|
51
|
+
readonly grey: {
|
|
52
|
+
readonly 0: "#FFFFFF";
|
|
53
|
+
readonly 100: "#F9FAFB";
|
|
54
|
+
readonly 200: "#F4F6F8";
|
|
55
|
+
readonly 300: "#DFE3E8";
|
|
56
|
+
readonly 400: "#C4CDD5";
|
|
57
|
+
readonly 500: "#919EAB";
|
|
58
|
+
readonly 600: "#637381";
|
|
59
|
+
readonly 700: "#454F5B";
|
|
60
|
+
readonly 800: "#212B36";
|
|
61
|
+
readonly 900: "#161C24";
|
|
62
|
+
};
|
|
63
|
+
readonly text: {
|
|
64
|
+
readonly primary: "#212B36";
|
|
65
|
+
readonly secondary: "#637381";
|
|
66
|
+
readonly disabled: "#919EAB";
|
|
67
|
+
};
|
|
68
|
+
readonly background: {
|
|
69
|
+
readonly paper: "#FFFFFF";
|
|
70
|
+
readonly default: "#F9FAFB";
|
|
71
|
+
};
|
|
72
|
+
readonly action: {
|
|
73
|
+
readonly active: "#637381";
|
|
74
|
+
readonly hover: "rgba(99, 115, 129, 0.08)";
|
|
75
|
+
readonly selected: "rgba(99, 115, 129, 0.16)";
|
|
76
|
+
readonly disabled: "rgba(99, 115, 129, 0.8)";
|
|
77
|
+
readonly disabledBackground: "rgba(99, 115, 129, 0.24)";
|
|
78
|
+
readonly focus: "rgba(99, 115, 129, 0.24)";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export declare const bayonDarkPalette: {
|
|
82
|
+
readonly mode: "dark";
|
|
83
|
+
readonly background: {
|
|
84
|
+
readonly default: "#0B1020";
|
|
85
|
+
readonly paper: "#111827";
|
|
86
|
+
};
|
|
87
|
+
readonly text: {
|
|
88
|
+
readonly primary: "#FFFFFF";
|
|
89
|
+
readonly secondary: "rgba(255, 255, 255, 0.72)";
|
|
90
|
+
readonly disabled: "rgba(255, 255, 255, 0.5)";
|
|
91
|
+
};
|
|
92
|
+
readonly primary: BayonColorScale;
|
|
93
|
+
readonly secondary: BayonColorScale;
|
|
94
|
+
readonly info: {
|
|
95
|
+
readonly lighter: "#D0F2FF";
|
|
96
|
+
readonly light: "#74CAFF";
|
|
97
|
+
readonly main: "#1890FF";
|
|
98
|
+
readonly dark: "#0C53B7";
|
|
99
|
+
readonly darker: "#04297A";
|
|
100
|
+
readonly contrastText: "#FFFFFF";
|
|
101
|
+
};
|
|
102
|
+
readonly success: {
|
|
103
|
+
readonly lighter: "#E9FCD4";
|
|
104
|
+
readonly light: "#AAF27F";
|
|
105
|
+
readonly main: "#54D62C";
|
|
106
|
+
readonly dark: "#229A16";
|
|
107
|
+
readonly darker: "#08660D";
|
|
108
|
+
readonly contrastText: "#FFFFFF";
|
|
109
|
+
};
|
|
110
|
+
readonly warning: {
|
|
111
|
+
readonly lighter: "#FFF7CD";
|
|
112
|
+
readonly light: "#FFE16A";
|
|
113
|
+
readonly main: "#FFC107";
|
|
114
|
+
readonly dark: "#B78103";
|
|
115
|
+
readonly darker: "#7A4F01";
|
|
116
|
+
readonly contrastText: "#212B36";
|
|
117
|
+
};
|
|
118
|
+
readonly error: {
|
|
119
|
+
readonly lighter: "#FFE7D9";
|
|
120
|
+
readonly light: "#FFA48D";
|
|
121
|
+
readonly main: "#FF4842";
|
|
122
|
+
readonly dark: "#B72136";
|
|
123
|
+
readonly darker: "#7A0C2E";
|
|
124
|
+
readonly contrastText: "#FFFFFF";
|
|
125
|
+
};
|
|
126
|
+
readonly grey: {
|
|
127
|
+
readonly 0: "#FFFFFF";
|
|
128
|
+
readonly 100: "#F9FAFB";
|
|
129
|
+
readonly 200: "#F4F6F8";
|
|
130
|
+
readonly 300: "#DFE3E8";
|
|
131
|
+
readonly 400: "#C4CDD5";
|
|
132
|
+
readonly 500: "#919EAB";
|
|
133
|
+
readonly 600: "#637381";
|
|
134
|
+
readonly 700: "#454F5B";
|
|
135
|
+
readonly 800: "#212B36";
|
|
136
|
+
readonly 900: "#161C24";
|
|
137
|
+
};
|
|
138
|
+
readonly action: {
|
|
139
|
+
readonly active: "#637381";
|
|
140
|
+
readonly hover: "rgba(99, 115, 129, 0.08)";
|
|
141
|
+
readonly selected: "rgba(99, 115, 129, 0.16)";
|
|
142
|
+
readonly disabled: "rgba(99, 115, 129, 0.8)";
|
|
143
|
+
readonly disabledBackground: "rgba(99, 115, 129, 0.24)";
|
|
144
|
+
readonly focus: "rgba(99, 115, 129, 0.24)";
|
|
145
|
+
};
|
|
146
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ThemeOptions } from '@mui/material/styles';
|
|
2
|
+
export type BayonColorScale = {
|
|
3
|
+
lighter: string;
|
|
4
|
+
light: string;
|
|
5
|
+
main: string;
|
|
6
|
+
dark: string;
|
|
7
|
+
darker: string;
|
|
8
|
+
contrastText: string;
|
|
9
|
+
};
|
|
10
|
+
export type BayonCustomShadows = {
|
|
11
|
+
z1: string;
|
|
12
|
+
z8: string;
|
|
13
|
+
z12: string;
|
|
14
|
+
z16: string;
|
|
15
|
+
z20: string;
|
|
16
|
+
z24: string;
|
|
17
|
+
primary: string;
|
|
18
|
+
secondary: string;
|
|
19
|
+
info: string;
|
|
20
|
+
success: string;
|
|
21
|
+
warning: string;
|
|
22
|
+
error: string;
|
|
23
|
+
card: string;
|
|
24
|
+
dialog: string;
|
|
25
|
+
dropdown: string;
|
|
26
|
+
};
|
|
27
|
+
export type BayonThemeMode = 'light' | 'dark';
|
|
28
|
+
export type CreateBayonThemeOptions = {
|
|
29
|
+
mode?: BayonThemeMode;
|
|
30
|
+
overrides?: ThemeOptions;
|
|
31
|
+
};
|
|
32
|
+
declare module '@mui/material/styles' {
|
|
33
|
+
interface PaletteColor {
|
|
34
|
+
lighter?: string;
|
|
35
|
+
darker?: string;
|
|
36
|
+
}
|
|
37
|
+
interface SimplePaletteColorOptions {
|
|
38
|
+
lighter?: string;
|
|
39
|
+
darker?: string;
|
|
40
|
+
}
|
|
41
|
+
interface Theme {
|
|
42
|
+
customShadows: BayonCustomShadows;
|
|
43
|
+
}
|
|
44
|
+
interface ThemeOptions {
|
|
45
|
+
customShadows?: Partial<BayonCustomShadows>;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createBayonEmotionCache(key?: string): import("@emotion/cache").EmotionCache;
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bayonai/mui-design",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared Bayon AI Material UI theme, style recipes, and reusable design components.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/cjs/index.js",
|
|
8
|
+
"module": "./dist/esm/index.js",
|
|
9
|
+
"types": "./dist/types/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"import": "./dist/esm/index.js",
|
|
14
|
+
"require": "./dist/cjs/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./client": {
|
|
17
|
+
"types": "./dist/types/client.d.ts",
|
|
18
|
+
"import": "./dist/esm/client.js",
|
|
19
|
+
"require": "./dist/cjs/client.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
31
|
+
"build": "npm run clean && tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && tsc -p tsconfig.types.json && node scripts/rename-cjs.cjs",
|
|
32
|
+
"typecheck": "tsc -p tsconfig.types.json --noEmit"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@emotion/cache": "^11.14.0",
|
|
36
|
+
"@emotion/react": "^11.14.0",
|
|
37
|
+
"@emotion/styled": "^11.14.0",
|
|
38
|
+
"@mui/icons-material": "^7.1.2",
|
|
39
|
+
"@mui/material": "^7.1.2",
|
|
40
|
+
"react": "^19.0.0",
|
|
41
|
+
"react-dom": "^19.0.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"typescript": "^5"
|
|
45
|
+
}
|
|
46
|
+
}
|