@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,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bayonDarkPalette = exports.bayonPalette = exports.bayonSecondary = exports.bayonPrimary = exports.bayonAccent = void 0;
|
|
4
|
+
exports.bayonAccent = {
|
|
5
|
+
teal: '#2DD4BF',
|
|
6
|
+
tealLight: '#5EEAD4',
|
|
7
|
+
tealSoft: '#A7F3D0',
|
|
8
|
+
blue: '#60A5FA',
|
|
9
|
+
yellow: '#FDE047',
|
|
10
|
+
coral: '#FF6B6B',
|
|
11
|
+
night: '#0B1020',
|
|
12
|
+
panel: '#111827',
|
|
13
|
+
ink: '#031B20',
|
|
14
|
+
foreground: '#F8FAFC',
|
|
15
|
+
};
|
|
16
|
+
exports.bayonPrimary = {
|
|
17
|
+
lighter: '#D1E9FC',
|
|
18
|
+
light: '#76B0F1',
|
|
19
|
+
main: '#2065D1',
|
|
20
|
+
dark: '#103996',
|
|
21
|
+
darker: '#061B64',
|
|
22
|
+
contrastText: '#FFFFFF',
|
|
23
|
+
};
|
|
24
|
+
exports.bayonSecondary = {
|
|
25
|
+
lighter: '#D6E4FF',
|
|
26
|
+
light: '#84A9FF',
|
|
27
|
+
main: '#3366FF',
|
|
28
|
+
dark: '#1939B7',
|
|
29
|
+
darker: '#091A7A',
|
|
30
|
+
contrastText: '#FFFFFF',
|
|
31
|
+
};
|
|
32
|
+
exports.bayonPalette = {
|
|
33
|
+
primary: exports.bayonPrimary,
|
|
34
|
+
secondary: exports.bayonSecondary,
|
|
35
|
+
info: {
|
|
36
|
+
lighter: '#D0F2FF',
|
|
37
|
+
light: '#74CAFF',
|
|
38
|
+
main: '#1890FF',
|
|
39
|
+
dark: '#0C53B7',
|
|
40
|
+
darker: '#04297A',
|
|
41
|
+
contrastText: '#FFFFFF',
|
|
42
|
+
},
|
|
43
|
+
success: {
|
|
44
|
+
lighter: '#E9FCD4',
|
|
45
|
+
light: '#AAF27F',
|
|
46
|
+
main: '#54D62C',
|
|
47
|
+
dark: '#229A16',
|
|
48
|
+
darker: '#08660D',
|
|
49
|
+
contrastText: '#FFFFFF',
|
|
50
|
+
},
|
|
51
|
+
warning: {
|
|
52
|
+
lighter: '#FFF7CD',
|
|
53
|
+
light: '#FFE16A',
|
|
54
|
+
main: '#FFC107',
|
|
55
|
+
dark: '#B78103',
|
|
56
|
+
darker: '#7A4F01',
|
|
57
|
+
contrastText: '#212B36',
|
|
58
|
+
},
|
|
59
|
+
error: {
|
|
60
|
+
lighter: '#FFE7D9',
|
|
61
|
+
light: '#FFA48D',
|
|
62
|
+
main: '#FF4842',
|
|
63
|
+
dark: '#B72136',
|
|
64
|
+
darker: '#7A0C2E',
|
|
65
|
+
contrastText: '#FFFFFF',
|
|
66
|
+
},
|
|
67
|
+
grey: {
|
|
68
|
+
0: '#FFFFFF',
|
|
69
|
+
100: '#F9FAFB',
|
|
70
|
+
200: '#F4F6F8',
|
|
71
|
+
300: '#DFE3E8',
|
|
72
|
+
400: '#C4CDD5',
|
|
73
|
+
500: '#919EAB',
|
|
74
|
+
600: '#637381',
|
|
75
|
+
700: '#454F5B',
|
|
76
|
+
800: '#212B36',
|
|
77
|
+
900: '#161C24',
|
|
78
|
+
},
|
|
79
|
+
text: {
|
|
80
|
+
primary: '#212B36',
|
|
81
|
+
secondary: '#637381',
|
|
82
|
+
disabled: '#919EAB',
|
|
83
|
+
},
|
|
84
|
+
background: {
|
|
85
|
+
paper: '#FFFFFF',
|
|
86
|
+
default: '#F9FAFB',
|
|
87
|
+
},
|
|
88
|
+
action: {
|
|
89
|
+
active: '#637381',
|
|
90
|
+
hover: 'rgba(99, 115, 129, 0.08)',
|
|
91
|
+
selected: 'rgba(99, 115, 129, 0.16)',
|
|
92
|
+
disabled: 'rgba(99, 115, 129, 0.8)',
|
|
93
|
+
disabledBackground: 'rgba(99, 115, 129, 0.24)',
|
|
94
|
+
focus: 'rgba(99, 115, 129, 0.24)',
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
exports.bayonDarkPalette = {
|
|
98
|
+
...exports.bayonPalette,
|
|
99
|
+
mode: 'dark',
|
|
100
|
+
background: {
|
|
101
|
+
default: exports.bayonAccent.night,
|
|
102
|
+
paper: exports.bayonAccent.panel,
|
|
103
|
+
},
|
|
104
|
+
text: {
|
|
105
|
+
primary: '#FFFFFF',
|
|
106
|
+
secondary: 'rgba(255, 255, 255, 0.72)',
|
|
107
|
+
disabled: 'rgba(255, 255, 255, 0.5)',
|
|
108
|
+
},
|
|
109
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bayonShadows = void 0;
|
|
4
|
+
const palette_1 = require("./palette");
|
|
5
|
+
exports.bayonShadows = {
|
|
6
|
+
z1: '0px 1px 2px 0px rgba(145, 158, 171, 0.16)',
|
|
7
|
+
z8: '0px 8px 16px 0px rgba(145, 158, 171, 0.16)',
|
|
8
|
+
z12: '0px 12px 24px -4px rgba(145, 158, 171, 0.16)',
|
|
9
|
+
z16: '0px 16px 32px -4px rgba(145, 158, 171, 0.16)',
|
|
10
|
+
z20: '0px 20px 40px -4px rgba(145, 158, 171, 0.16)',
|
|
11
|
+
z24: '0px 20px 48px 0px rgba(145, 158, 171, 0.16)',
|
|
12
|
+
primary: `0 8px 16px 0 ${palette_1.bayonPalette.primary.light}33`,
|
|
13
|
+
secondary: `0 8px 16px 0 ${palette_1.bayonPalette.secondary.light}33`,
|
|
14
|
+
info: `0 8px 16px 0 ${palette_1.bayonPalette.info.light}33`,
|
|
15
|
+
success: `0 8px 16px 0 ${palette_1.bayonPalette.success.light}33`,
|
|
16
|
+
warning: `0 8px 16px 0 ${palette_1.bayonPalette.warning.light}33`,
|
|
17
|
+
error: `0 8px 16px 0 ${palette_1.bayonPalette.error.light}33`,
|
|
18
|
+
card: '0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12)',
|
|
19
|
+
dialog: '-40px 40px 80px -8px rgba(145, 158, 171, 0.24)',
|
|
20
|
+
dropdown: '0 8px 16px 0 rgba(145, 158, 171, 0.16)',
|
|
21
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bayonTypography = void 0;
|
|
4
|
+
exports.bayonTypography = {
|
|
5
|
+
fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
|
|
6
|
+
h1: {
|
|
7
|
+
fontWeight: 700,
|
|
8
|
+
fontSize: '2.5rem',
|
|
9
|
+
lineHeight: 1.2,
|
|
10
|
+
},
|
|
11
|
+
h2: {
|
|
12
|
+
fontWeight: 700,
|
|
13
|
+
fontSize: '2rem',
|
|
14
|
+
lineHeight: 1.3,
|
|
15
|
+
},
|
|
16
|
+
h3: {
|
|
17
|
+
fontWeight: 700,
|
|
18
|
+
fontSize: '1.75rem',
|
|
19
|
+
lineHeight: 1.4,
|
|
20
|
+
},
|
|
21
|
+
h4: {
|
|
22
|
+
fontWeight: 600,
|
|
23
|
+
fontSize: '1.5rem',
|
|
24
|
+
lineHeight: 1.5,
|
|
25
|
+
},
|
|
26
|
+
h5: {
|
|
27
|
+
fontWeight: 600,
|
|
28
|
+
fontSize: '1.25rem',
|
|
29
|
+
lineHeight: 1.5,
|
|
30
|
+
},
|
|
31
|
+
h6: {
|
|
32
|
+
fontWeight: 600,
|
|
33
|
+
fontSize: '1.125rem',
|
|
34
|
+
lineHeight: 1.6,
|
|
35
|
+
},
|
|
36
|
+
body1: {
|
|
37
|
+
fontSize: '1rem',
|
|
38
|
+
lineHeight: 1.7,
|
|
39
|
+
},
|
|
40
|
+
body2: {
|
|
41
|
+
fontSize: '0.875rem',
|
|
42
|
+
lineHeight: 1.7,
|
|
43
|
+
},
|
|
44
|
+
subtitle1: {
|
|
45
|
+
fontSize: '1rem',
|
|
46
|
+
fontWeight: 500,
|
|
47
|
+
lineHeight: 1.7,
|
|
48
|
+
},
|
|
49
|
+
subtitle2: {
|
|
50
|
+
fontSize: '0.875rem',
|
|
51
|
+
fontWeight: 500,
|
|
52
|
+
lineHeight: 1.7,
|
|
53
|
+
},
|
|
54
|
+
button: {
|
|
55
|
+
textTransform: 'none',
|
|
56
|
+
fontWeight: 500,
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createBayonEmotionCache = createBayonEmotionCache;
|
|
7
|
+
const cache_1 = __importDefault(require("@emotion/cache"));
|
|
8
|
+
const isBrowser = typeof document !== 'undefined';
|
|
9
|
+
function createBayonEmotionCache(key = 'css') {
|
|
10
|
+
let insertionPoint;
|
|
11
|
+
if (isBrowser) {
|
|
12
|
+
const emotionInsertionPoint = document.querySelector('meta[name="emotion-insertion-point"]');
|
|
13
|
+
insertionPoint = emotionInsertionPoint !== null && emotionInsertionPoint !== void 0 ? emotionInsertionPoint : undefined;
|
|
14
|
+
}
|
|
15
|
+
return (0, cache_1.default)({
|
|
16
|
+
key,
|
|
17
|
+
prepend: true,
|
|
18
|
+
insertionPoint,
|
|
19
|
+
speedy: typeof process !== 'undefined' && process.env.NODE_ENV === 'production',
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { keyframes } from '@emotion/react';
|
|
3
|
+
import { Box, Stack, Typography } from '@mui/material';
|
|
4
|
+
const drift = keyframes `
|
|
5
|
+
0% { transform: translate3d(0, 0, 0); }
|
|
6
|
+
50% { transform: translate3d(0, -10px, 0); }
|
|
7
|
+
100% { transform: translate3d(0, 0, 0); }
|
|
8
|
+
`;
|
|
9
|
+
const flow = keyframes `
|
|
10
|
+
0% { transform: translateX(-36%); opacity: 0.28; }
|
|
11
|
+
50% { opacity: 0.8; }
|
|
12
|
+
100% { transform: translateX(36%); opacity: 0.28; }
|
|
13
|
+
`;
|
|
14
|
+
const tilePulse = keyframes `
|
|
15
|
+
0%, 100% { transform: scale(1); filter: brightness(1); }
|
|
16
|
+
50% { transform: scale(1.04); filter: brightness(1.18); }
|
|
17
|
+
`;
|
|
18
|
+
function mergeSx(...items) {
|
|
19
|
+
return items.filter(Boolean);
|
|
20
|
+
}
|
|
21
|
+
const defaultItems = [
|
|
22
|
+
{ label: 'Prompt', value: 'Design brief', color: '#2DD4BF' },
|
|
23
|
+
{ label: 'Model', value: 'Context map', color: '#60A5FA' },
|
|
24
|
+
{ label: 'Build', value: 'App surface', color: '#FDE047' },
|
|
25
|
+
{ label: 'Ship', value: 'Live product', color: '#FF6B6B' },
|
|
26
|
+
];
|
|
27
|
+
export function BayonFlowVisual({ items = defaultItems, caption = 'idea -> AI system design -> production app', sx, ...props }) {
|
|
28
|
+
return (_jsxs(Box, { "aria-hidden": "true", sx: mergeSx({
|
|
29
|
+
minHeight: { xs: 320, md: 520 },
|
|
30
|
+
border: '1px solid rgba(248, 250, 252, 0.22)',
|
|
31
|
+
borderRadius: 2,
|
|
32
|
+
bgcolor: 'rgba(15, 23, 42, 0.78)',
|
|
33
|
+
boxShadow: '0 34px 110px rgba(2, 6, 23, 0.48), inset 0 1px 0 rgba(248, 250, 252, 0.12)',
|
|
34
|
+
p: { xs: 3, md: 4 },
|
|
35
|
+
display: 'grid',
|
|
36
|
+
gridTemplateRows: 'auto 1fr auto',
|
|
37
|
+
gap: 3,
|
|
38
|
+
animation: `${drift} 8s ease-in-out infinite`,
|
|
39
|
+
position: 'relative',
|
|
40
|
+
overflow: 'hidden',
|
|
41
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
42
|
+
animation: 'none',
|
|
43
|
+
},
|
|
44
|
+
}, sx), ...props, children: [_jsx(Stack, { direction: "row", spacing: 1.2, children: ['#2DD4BF', '#FF6B6B', '#FDE047'].map((color) => (_jsx(Box, { sx: { width: 10, height: 10, borderRadius: '50%', bgcolor: color } }, color))) }), _jsx(Box, { sx: {
|
|
45
|
+
display: 'grid',
|
|
46
|
+
gridTemplateColumns: '1fr 1.1fr',
|
|
47
|
+
gridTemplateRows: '1fr 1fr',
|
|
48
|
+
gap: 2,
|
|
49
|
+
position: 'relative',
|
|
50
|
+
'&::before': {
|
|
51
|
+
content: '""',
|
|
52
|
+
position: 'absolute',
|
|
53
|
+
left: '10%',
|
|
54
|
+
right: '10%',
|
|
55
|
+
top: '50%',
|
|
56
|
+
height: 2,
|
|
57
|
+
background: 'linear-gradient(90deg, transparent, #2DD4BF, #FDE047, #FF6B6B, transparent)',
|
|
58
|
+
animation: `${flow} 5s ease-in-out infinite`,
|
|
59
|
+
},
|
|
60
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
61
|
+
'&::before': {
|
|
62
|
+
animation: 'none',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
}, children: items.map((item, index) => (_jsxs(Box, { sx: {
|
|
66
|
+
borderRadius: 2,
|
|
67
|
+
border: '1px solid rgba(248, 250, 252, 0.16)',
|
|
68
|
+
bgcolor: index === 2 ? 'rgba(253, 224, 71, 0.12)' : 'rgba(248, 250, 252, 0.08)',
|
|
69
|
+
p: 2.5,
|
|
70
|
+
display: 'flex',
|
|
71
|
+
flexDirection: 'column',
|
|
72
|
+
justifyContent: 'space-between',
|
|
73
|
+
minHeight: 128,
|
|
74
|
+
animation: `${tilePulse} ${5 + index}s ease-in-out infinite`,
|
|
75
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
76
|
+
animation: 'none',
|
|
77
|
+
},
|
|
78
|
+
}, children: [_jsx(Typography, { sx: { color: item.color, fontWeight: 800, fontSize: '0.8rem', textTransform: 'uppercase' }, children: item.label }), _jsx(Typography, { sx: { color: '#F8FAFC', fontWeight: 700, fontSize: { xs: '1rem', md: '1.18rem' } }, children: item.value })] }, `${String(item.label)}-${index}`))) }), _jsx(Typography, { sx: { color: 'rgba(248, 250, 252, 0.72)', fontSize: '0.95rem' }, children: caption })] }));
|
|
79
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { IconButton, Tooltip } from '@mui/material';
|
|
5
|
+
export const IconTooltipButton = React.forwardRef(function IconTooltipButton({ label, tooltipProps, children, ...props }, ref) {
|
|
6
|
+
return (_jsx(Tooltip, { title: label, ...tooltipProps, children: _jsx(IconButton, { ref: ref, "aria-label": label, ...props, children: children }) }));
|
|
7
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Stack, Typography } from '@mui/material';
|
|
3
|
+
import { accentPanelSx, darkCtaSx, darkPanelHoverSx, darkPanelSx, gradientHeroSx, pageShellSx, } from '../styles/pageStyles';
|
|
4
|
+
function mergeSx(...items) {
|
|
5
|
+
return items.filter(Boolean);
|
|
6
|
+
}
|
|
7
|
+
export function BayonPageShell({ sx, ...props }) {
|
|
8
|
+
return _jsx(Box, { sx: mergeSx(pageShellSx, sx), ...props });
|
|
9
|
+
}
|
|
10
|
+
export function BayonGradientHero({ sx, ...props }) {
|
|
11
|
+
return _jsx(Box, { component: "section", sx: mergeSx(gradientHeroSx, sx), ...props });
|
|
12
|
+
}
|
|
13
|
+
export function BayonDarkPanel({ hover = false, sx, ...props }) {
|
|
14
|
+
return _jsx(Box, { sx: mergeSx(darkPanelSx, hover ? darkPanelHoverSx : undefined, sx), ...props });
|
|
15
|
+
}
|
|
16
|
+
export function BayonAccentPanel({ hover = false, sx, ...props }) {
|
|
17
|
+
return _jsx(Box, { sx: mergeSx(accentPanelSx, hover ? darkPanelHoverSx : undefined, sx), ...props });
|
|
18
|
+
}
|
|
19
|
+
export function BayonCtaPanel({ sx, ...props }) {
|
|
20
|
+
return _jsx(Box, { sx: mergeSx(darkCtaSx, sx), ...props });
|
|
21
|
+
}
|
|
22
|
+
export function BayonContentBox({ sx, ...props }) {
|
|
23
|
+
return (_jsx(Box, { sx: mergeSx({
|
|
24
|
+
p: { xs: 3, md: 4 },
|
|
25
|
+
border: '1px solid rgba(248, 250, 252, 0.14)',
|
|
26
|
+
borderRadius: 2,
|
|
27
|
+
bgcolor: 'rgba(248, 250, 252, 0.06)',
|
|
28
|
+
}, sx), ...props }));
|
|
29
|
+
}
|
|
30
|
+
export function BayonMethodBox({ accentColor = '#2DD4BF', sx, ...props }) {
|
|
31
|
+
return (_jsx(BayonCtaPanel, { sx: mergeSx({
|
|
32
|
+
p: 3,
|
|
33
|
+
borderLeft: `3px solid ${accentColor}`,
|
|
34
|
+
}, sx), ...props }));
|
|
35
|
+
}
|
|
36
|
+
export function BayonProjectCard({ category, status, title, body, actions, children, hover = true, sx, ...props }) {
|
|
37
|
+
return (_jsxs(BayonAccentPanel, { hover: hover, sx: mergeSx({
|
|
38
|
+
p: 4,
|
|
39
|
+
minHeight: 290,
|
|
40
|
+
display: 'flex',
|
|
41
|
+
flexDirection: 'column',
|
|
42
|
+
}, sx), ...props, children: [category && (_jsx(Typography, { sx: { color: '#2DD4BF', fontWeight: 800, fontSize: '0.82rem', textTransform: 'uppercase', mb: 1.5 }, children: category })), title && (_jsx(Typography, { variant: "h5", sx: { color: '#FFFFFF', mb: 2 }, children: title })), body && _jsx(Typography, { sx: { color: 'rgba(248, 250, 252, 0.74)', lineHeight: 1.75, mb: 3 }, children: body }), children, status && _jsx(Typography, { sx: { color: '#FDE047', fontWeight: 700, mt: 'auto' }, children: status }), actions] }));
|
|
43
|
+
}
|
|
44
|
+
export function BayonPillarCard({ accentColor = '#2DD4BF', eyebrow, title, body, actions, children, sx, ...props }) {
|
|
45
|
+
return (_jsxs(Box, { sx: mergeSx({
|
|
46
|
+
p: { xs: 3, md: 5 },
|
|
47
|
+
border: '1px solid rgba(248, 250, 252, 0.14)',
|
|
48
|
+
borderRadius: 2,
|
|
49
|
+
bgcolor: 'rgba(248, 250, 252, 0.06)',
|
|
50
|
+
boxShadow: '0 28px 80px rgba(2, 6, 23, 0.24)',
|
|
51
|
+
transition: 'transform 180ms ease, border-color 180ms ease',
|
|
52
|
+
'&:hover': {
|
|
53
|
+
transform: 'translateY(-5px)',
|
|
54
|
+
borderColor: accentColor,
|
|
55
|
+
},
|
|
56
|
+
}, sx), ...props, children: [eyebrow && (_jsx(Typography, { sx: { color: accentColor, fontSize: '0.82rem', fontWeight: 800, textTransform: 'uppercase', mb: 1.5 }, children: eyebrow })), title && (_jsx(Typography, { variant: "h3", sx: { color: '#FFFFFF', mb: 2 }, children: title })), body && _jsx(Typography, { sx: { color: 'rgba(248, 250, 252, 0.74)', lineHeight: 1.75 }, children: body }), children, actions] }));
|
|
57
|
+
}
|
|
58
|
+
export function BayonTechChip({ label, children, sx, ...props }) {
|
|
59
|
+
return (_jsx(Box, { sx: mergeSx({
|
|
60
|
+
px: 1.5,
|
|
61
|
+
py: 0.75,
|
|
62
|
+
borderRadius: 1,
|
|
63
|
+
bgcolor: 'rgba(45, 212, 191, 0.12)',
|
|
64
|
+
color: '#A7F3D0',
|
|
65
|
+
border: '1px solid rgba(45, 212, 191, 0.24)',
|
|
66
|
+
fontSize: '0.9rem',
|
|
67
|
+
fontWeight: 600,
|
|
68
|
+
}, sx), ...props, children: label !== null && label !== void 0 ? label : children }));
|
|
69
|
+
}
|
|
70
|
+
export function BayonPanelStack({ sx, ...props }) {
|
|
71
|
+
return _jsx(Stack, { spacing: 3, sx: sx, ...props });
|
|
72
|
+
}
|
|
@@ -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,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { CacheProvider } from '@emotion/react';
|
|
5
|
+
import { Box } from '@mui/material';
|
|
6
|
+
import CssBaseline from '@mui/material/CssBaseline';
|
|
7
|
+
import { ThemeProvider } from '@mui/material/styles';
|
|
8
|
+
import { bayonDarkTheme } from '../theme/createBayonTheme';
|
|
9
|
+
import { createBayonEmotionCache } from '../utils/createBayonEmotionCache';
|
|
10
|
+
const clientSideEmotionCache = createBayonEmotionCache();
|
|
11
|
+
class BayonThemeErrorBoundary extends React.Component {
|
|
12
|
+
constructor(props) {
|
|
13
|
+
super(props);
|
|
14
|
+
this.state = { hasError: false };
|
|
15
|
+
}
|
|
16
|
+
static getDerivedStateFromError() {
|
|
17
|
+
return { hasError: true };
|
|
18
|
+
}
|
|
19
|
+
componentDidCatch(error, errorInfo) {
|
|
20
|
+
console.error('Bayon theme error:', error, errorInfo);
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
if (this.state.hasError) {
|
|
24
|
+
return (_jsx(Box, { display: "flex", justifyContent: "center", alignItems: "center", minHeight: "100vh", bgcolor: "background.default", children: _jsxs(Box, { textAlign: "center", children: [_jsx("h1", { children: "Something went wrong with the theme." }), _jsx("p", { children: "Please try refreshing the page or contact support if the problem persists." })] }) }));
|
|
25
|
+
}
|
|
26
|
+
return this.props.children;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export function BayonThemeProvider({ children, emotionCache = clientSideEmotionCache, theme = bayonDarkTheme, enableErrorBoundary = true, }) {
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
|
32
|
+
}, []);
|
|
33
|
+
const content = enableErrorBoundary ? (_jsx(BayonThemeErrorBoundary, { children: children })) : (children);
|
|
34
|
+
return (_jsx(CacheProvider, { value: emotionCache, children: _jsxs(ThemeProvider, { theme: theme, children: [_jsx(CssBaseline, { enableColorScheme: true }), content] }) }));
|
|
35
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { bayonAccent } from '../theme/palette';
|
|
2
|
+
export const pageShellSx = {
|
|
3
|
+
bgcolor: bayonAccent.night,
|
|
4
|
+
color: bayonAccent.foreground,
|
|
5
|
+
};
|
|
6
|
+
export const gradientHeroSx = {
|
|
7
|
+
bgcolor: bayonAccent.night,
|
|
8
|
+
color: bayonAccent.foreground,
|
|
9
|
+
py: { xs: 8, md: 11 },
|
|
10
|
+
position: 'relative',
|
|
11
|
+
overflow: 'hidden',
|
|
12
|
+
'&::before': {
|
|
13
|
+
content: '""',
|
|
14
|
+
position: 'absolute',
|
|
15
|
+
inset: 0,
|
|
16
|
+
background: 'linear-gradient(120deg, rgba(45, 212, 191, 0.2), transparent 34%), linear-gradient(55deg, transparent 48%, rgba(253, 224, 71, 0.14), transparent 70%), linear-gradient(150deg, transparent 40%, rgba(255, 107, 107, 0.16))',
|
|
17
|
+
pointerEvents: 'none',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
export const heroContainerSx = {
|
|
21
|
+
position: 'relative',
|
|
22
|
+
};
|
|
23
|
+
export const heroStackSx = {
|
|
24
|
+
maxWidth: 880,
|
|
25
|
+
position: 'relative',
|
|
26
|
+
};
|
|
27
|
+
export const heroTitleSx = {
|
|
28
|
+
color: '#FFFFFF',
|
|
29
|
+
fontSize: { xs: '2.75rem', md: '4.75rem' },
|
|
30
|
+
lineHeight: 1,
|
|
31
|
+
};
|
|
32
|
+
export const heroBodySx = {
|
|
33
|
+
color: 'rgba(248, 250, 252, 0.78)',
|
|
34
|
+
fontSize: { xs: '1.1rem', md: '1.3rem' },
|
|
35
|
+
lineHeight: 1.65,
|
|
36
|
+
};
|
|
37
|
+
export const darkPanelSx = {
|
|
38
|
+
bgcolor: 'rgba(248, 250, 252, 0.06)',
|
|
39
|
+
border: '1px solid rgba(248, 250, 252, 0.14)',
|
|
40
|
+
borderRadius: 2,
|
|
41
|
+
boxShadow: '0 28px 80px rgba(2, 6, 23, 0.24)',
|
|
42
|
+
};
|
|
43
|
+
export const accentPanelSx = {
|
|
44
|
+
...darkPanelSx,
|
|
45
|
+
position: 'relative',
|
|
46
|
+
overflow: 'hidden',
|
|
47
|
+
'&::before': {
|
|
48
|
+
content: '""',
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
left: 0,
|
|
51
|
+
top: 0,
|
|
52
|
+
bottom: 0,
|
|
53
|
+
width: 6,
|
|
54
|
+
background: 'linear-gradient(180deg, #2DD4BF, #60A5FA 38%, #FDE047 68%, #FF6B6B)',
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
export const darkPanelHoverSx = {
|
|
58
|
+
transition: 'transform 180ms ease, border-color 180ms ease, background-color 180ms ease',
|
|
59
|
+
'&:hover': {
|
|
60
|
+
transform: 'translateY(-5px)',
|
|
61
|
+
borderColor: 'rgba(45, 212, 191, 0.65)',
|
|
62
|
+
bgcolor: 'rgba(248, 250, 252, 0.08)',
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
export const darkCtaSx = {
|
|
66
|
+
bgcolor: bayonAccent.panel,
|
|
67
|
+
color: bayonAccent.foreground,
|
|
68
|
+
border: '1px solid rgba(248, 250, 252, 0.14)',
|
|
69
|
+
borderRadius: 2,
|
|
70
|
+
};
|
|
71
|
+
export const eyebrowSx = {
|
|
72
|
+
color: bayonAccent.teal,
|
|
73
|
+
fontSize: '0.82rem',
|
|
74
|
+
fontWeight: 800,
|
|
75
|
+
textTransform: 'uppercase',
|
|
76
|
+
};
|
|
77
|
+
export const mutedTextSx = {
|
|
78
|
+
color: 'rgba(248, 250, 252, 0.74)',
|
|
79
|
+
lineHeight: 1.75,
|
|
80
|
+
};
|
|
81
|
+
export const tealButtonSx = {
|
|
82
|
+
bgcolor: bayonAccent.teal,
|
|
83
|
+
color: bayonAccent.ink,
|
|
84
|
+
'&:hover': { bgcolor: bayonAccent.tealLight },
|
|
85
|
+
};
|
|
86
|
+
export const outlineButtonSx = {
|
|
87
|
+
borderColor: 'rgba(248, 250, 252, 0.28)',
|
|
88
|
+
color: bayonAccent.foreground,
|
|
89
|
+
'&:hover': {
|
|
90
|
+
borderColor: bayonAccent.teal,
|
|
91
|
+
bgcolor: 'rgba(45, 212, 191, 0.1)',
|
|
92
|
+
},
|
|
93
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { bayonShadows } from './shadows';
|
|
2
|
+
export const bayonComponents = {
|
|
3
|
+
MuiButtonBase: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
disableRipple: true,
|
|
6
|
+
},
|
|
7
|
+
},
|
|
8
|
+
MuiButton: {
|
|
9
|
+
styleOverrides: {
|
|
10
|
+
root: {
|
|
11
|
+
borderRadius: 8,
|
|
12
|
+
padding: '8px 22px',
|
|
13
|
+
fontWeight: 600,
|
|
14
|
+
textTransform: 'none',
|
|
15
|
+
boxShadow: 'none',
|
|
16
|
+
'&:hover': {
|
|
17
|
+
boxShadow: 'none',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
sizeLarge: {
|
|
21
|
+
padding: '10px 24px',
|
|
22
|
+
fontSize: '1rem',
|
|
23
|
+
},
|
|
24
|
+
sizeSmall: {
|
|
25
|
+
padding: '6px 16px',
|
|
26
|
+
fontSize: '0.875rem',
|
|
27
|
+
},
|
|
28
|
+
contained: {
|
|
29
|
+
boxShadow: 'none',
|
|
30
|
+
'&:hover': {
|
|
31
|
+
boxShadow: 'none',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
MuiCard: {
|
|
37
|
+
styleOverrides: {
|
|
38
|
+
root: {
|
|
39
|
+
borderRadius: 16,
|
|
40
|
+
boxShadow: bayonShadows.z8,
|
|
41
|
+
'&:hover': {
|
|
42
|
+
boxShadow: bayonShadows.z16,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
MuiTextField: {
|
|
48
|
+
defaultProps: {
|
|
49
|
+
fullWidth: true,
|
|
50
|
+
variant: 'outlined',
|
|
51
|
+
},
|
|
52
|
+
styleOverrides: {
|
|
53
|
+
root: {
|
|
54
|
+
'& .MuiOutlinedInput-root': {
|
|
55
|
+
borderRadius: 8,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createTheme, responsiveFontSizes } from '@mui/material/styles';
|
|
2
|
+
import { bayonComponents } from './components';
|
|
3
|
+
import { bayonDarkPalette, bayonPalette } from './palette';
|
|
4
|
+
import { bayonShadows } from './shadows';
|
|
5
|
+
import { bayonTypography } from './typography';
|
|
6
|
+
export function createBayonTheme(options = {}) {
|
|
7
|
+
const { mode = 'light', overrides = {} } = options;
|
|
8
|
+
const baseTheme = {
|
|
9
|
+
palette: mode === 'dark' ? bayonDarkPalette : bayonPalette,
|
|
10
|
+
shape: {
|
|
11
|
+
borderRadius: 8,
|
|
12
|
+
},
|
|
13
|
+
typography: bayonTypography,
|
|
14
|
+
components: bayonComponents,
|
|
15
|
+
customShadows: bayonShadows,
|
|
16
|
+
};
|
|
17
|
+
return responsiveFontSizes(createTheme(baseTheme, overrides));
|
|
18
|
+
}
|
|
19
|
+
export const bayonTheme = createBayonTheme();
|
|
20
|
+
export const bayonDarkTheme = createBayonTheme({ mode: 'dark' });
|