@bayonai/mui-design 0.1.0 → 0.2.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/CHANGELOG.md +29 -0
- package/README.md +32 -1
- package/dist/cjs/components/BayonFlowVisual.js +10 -5
- package/dist/cjs/components/IconTooltipButton.js +6 -2
- package/dist/cjs/components/panels.js +19 -12
- package/dist/cjs/providers/BayonThemeProvider.js +8 -2
- package/dist/esm/components/BayonFlowVisual.js +3 -1
- package/dist/esm/components/IconTooltipButton.js +2 -1
- package/dist/esm/components/panels.js +5 -1
- package/dist/esm/providers/BayonThemeProvider.js +8 -2
- package/dist/types/components/BayonFlowVisual.d.ts +1 -1
- package/dist/types/components/IconTooltipButton.d.ts +2 -1
- package/dist/types/components/panels.d.ts +2 -1
- package/package.json +6 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@bayonai/mui-design` will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## 0.2.0 - 2026-06-09
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Migrated peer dependencies to Material UI 9.1.0.
|
|
10
|
+
- Added `@mui/material-pigment-css` as a peer dependency for MUI 9 compatibility.
|
|
11
|
+
- Replaced MUI barrel imports with component-level imports to keep Next.js server rendering stable.
|
|
12
|
+
- Moved deprecated MUI system props into `sx` for MUI 9 type compatibility.
|
|
13
|
+
- Rebuilt ESM, CommonJS, and TypeScript declaration outputs for the MUI 9 release.
|
|
14
|
+
|
|
15
|
+
### Notes
|
|
16
|
+
|
|
17
|
+
- This release keeps the public package API stable.
|
|
18
|
+
- The package still uses the existing Emotion-based provider and theme path; it does not migrate Bayon websites to Pigment CSS styling yet.
|
|
19
|
+
|
|
20
|
+
## 0.1.0 - 2026-06-09
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Published the initial shared Bayon Material UI design package.
|
|
25
|
+
- Added Bayon theme creation helpers, dark theme, palette, typography, shadows, and component overrides.
|
|
26
|
+
- Added shared page style recipes for shells, heroes, panels, text, and buttons.
|
|
27
|
+
- Added reusable Bayon surfaces: `BayonPageShell`, `BayonGradientHero`, `BayonDarkPanel`, `BayonAccentPanel`, `BayonCtaPanel`, `BayonContentBox`, `BayonProjectCard`, `BayonPillarCard`, `BayonMethodBox`, `BayonFlowVisual`, and `BayonTechChip`.
|
|
28
|
+
- Added client-only helpers through `@bayonai/mui-design/client`: `BayonThemeProvider`, `IconTooltipButton`, and client visual exports.
|
|
29
|
+
- Added ESM, CommonJS, and TypeScript declaration builds for consumption across Bayon websites.
|
package/README.md
CHANGED
|
@@ -2,14 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Shared Bayon AI Material UI design package for React websites.
|
|
4
4
|
|
|
5
|
+
Published package: [@bayonai/mui-design on npm](https://www.npmjs.com/package/@bayonai/mui-design)
|
|
6
|
+
|
|
5
7
|
## Install
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
npm install @bayonai/mui-design @mui/material @mui/icons-material @emotion/react @emotion/styled @emotion/cache react react-dom
|
|
10
|
+
npm install @bayonai/mui-design @mui/material @mui/icons-material @mui/material-pigment-css @emotion/react @emotion/styled @emotion/cache react react-dom
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
The MUI 9, Pigment CSS, Emotion, React, and React DOM packages are peer dependencies so each consuming website controls its own app runtime.
|
|
14
|
+
|
|
11
15
|
## Provider
|
|
12
16
|
|
|
17
|
+
Provider and icon-button helpers are client-only exports:
|
|
18
|
+
|
|
13
19
|
```tsx
|
|
14
20
|
import { BayonThemeProvider } from '@bayonai/mui-design/client';
|
|
15
21
|
|
|
@@ -20,6 +26,8 @@ export function App({ children }: { children: React.ReactNode }) {
|
|
|
20
26
|
|
|
21
27
|
## Theme And Styles
|
|
22
28
|
|
|
29
|
+
Theme, token, style recipe, and box/card component exports are safe to import from server-rendered React code:
|
|
30
|
+
|
|
23
31
|
```tsx
|
|
24
32
|
import {
|
|
25
33
|
bayonDarkTheme,
|
|
@@ -44,6 +52,8 @@ Use the exported theme tokens and `sx` recipes as the single source of truth for
|
|
|
44
52
|
</BayonCtaPanel>
|
|
45
53
|
```
|
|
46
54
|
|
|
55
|
+
Available shared surfaces include `BayonPageShell`, `BayonGradientHero`, `BayonDarkPanel`, `BayonAccentPanel`, `BayonCtaPanel`, `BayonContentBox`, `BayonProjectCard`, `BayonPillarCard`, `BayonMethodBox`, `BayonFlowVisual`, and `BayonTechChip`.
|
|
56
|
+
|
|
47
57
|
## Icon Buttons
|
|
48
58
|
|
|
49
59
|
```tsx
|
|
@@ -54,3 +64,24 @@ import { IconTooltipButton } from '@bayonai/mui-design/client';
|
|
|
54
64
|
<SearchIcon />
|
|
55
65
|
</IconTooltipButton>
|
|
56
66
|
```
|
|
67
|
+
|
|
68
|
+
## Local Development
|
|
69
|
+
|
|
70
|
+
From the repository root:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npm run build -w @bayonai/mui-design
|
|
74
|
+
npm run typecheck -w @bayonai/mui-design
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The main website consumes this package through the local npm workspace while the same package is available to other websites through npm.
|
|
78
|
+
|
|
79
|
+
## Publishing
|
|
80
|
+
|
|
81
|
+
1. Update the version in `packages/mui-design/package.json`.
|
|
82
|
+
2. Build and typecheck the package.
|
|
83
|
+
3. Publish from the repo root:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm publish --workspace @bayonai/mui-design
|
|
87
|
+
```
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.BayonFlowVisual = BayonFlowVisual;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
8
|
const react_1 = require("@emotion/react");
|
|
6
|
-
const
|
|
9
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
10
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
11
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
7
12
|
const drift = (0, react_1.keyframes) `
|
|
8
13
|
0% { transform: translate3d(0, 0, 0); }
|
|
9
14
|
50% { transform: translate3d(0, -10px, 0); }
|
|
@@ -28,7 +33,7 @@ const defaultItems = [
|
|
|
28
33
|
{ label: 'Ship', value: 'Live product', color: '#FF6B6B' },
|
|
29
34
|
];
|
|
30
35
|
function BayonFlowVisual({ items = defaultItems, caption = 'idea -> AI system design -> production app', sx, ...props }) {
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { "aria-hidden": "true", sx: mergeSx({
|
|
32
37
|
minHeight: { xs: 320, md: 520 },
|
|
33
38
|
border: '1px solid rgba(248, 250, 252, 0.22)',
|
|
34
39
|
borderRadius: 2,
|
|
@@ -44,7 +49,7 @@ function BayonFlowVisual({ items = defaultItems, caption = 'idea -> AI system de
|
|
|
44
49
|
'@media (prefers-reduced-motion: reduce)': {
|
|
45
50
|
animation: 'none',
|
|
46
51
|
},
|
|
47
|
-
}, sx), ...props, children: [(0, jsx_runtime_1.jsx)(
|
|
52
|
+
}, sx), ...props, children: [(0, jsx_runtime_1.jsx)(Stack_1.default, { direction: "row", spacing: 1.2, children: ['#2DD4BF', '#FF6B6B', '#FDE047'].map((color) => ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: { width: 10, height: 10, borderRadius: '50%', bgcolor: color } }, color))) }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: {
|
|
48
53
|
display: 'grid',
|
|
49
54
|
gridTemplateColumns: '1fr 1.1fr',
|
|
50
55
|
gridTemplateRows: '1fr 1fr',
|
|
@@ -65,7 +70,7 @@ function BayonFlowVisual({ items = defaultItems, caption = 'idea -> AI system de
|
|
|
65
70
|
animation: 'none',
|
|
66
71
|
},
|
|
67
72
|
},
|
|
68
|
-
}, children: items.map((item, index) => ((0, jsx_runtime_1.jsxs)(
|
|
73
|
+
}, children: items.map((item, index) => ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: {
|
|
69
74
|
borderRadius: 2,
|
|
70
75
|
border: '1px solid rgba(248, 250, 252, 0.16)',
|
|
71
76
|
bgcolor: index === 2 ? 'rgba(253, 224, 71, 0.12)' : 'rgba(248, 250, 252, 0.08)',
|
|
@@ -78,5 +83,5 @@ function BayonFlowVisual({ items = defaultItems, caption = 'idea -> AI system de
|
|
|
78
83
|
'@media (prefers-reduced-motion: reduce)': {
|
|
79
84
|
animation: 'none',
|
|
80
85
|
},
|
|
81
|
-
}, children: [(0, jsx_runtime_1.jsx)(
|
|
86
|
+
}, children: [(0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: item.color, fontWeight: 800, fontSize: '0.8rem', textTransform: 'uppercase' }, children: item.label }), (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: '#F8FAFC', fontWeight: 700, fontSize: { xs: '1rem', md: '1.18rem' } }, children: item.value })] }, `${String(item.label)}-${index}`))) }), (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: 'rgba(248, 250, 252, 0.72)', fontSize: '0.95rem' }, children: caption })] }));
|
|
82
87
|
}
|
|
@@ -33,11 +33,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
return result;
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
36
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
40
|
exports.IconTooltipButton = void 0;
|
|
38
41
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
42
|
const React = __importStar(require("react"));
|
|
40
|
-
const
|
|
43
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
44
|
+
const Tooltip_1 = __importDefault(require("@mui/material/Tooltip"));
|
|
41
45
|
exports.IconTooltipButton = React.forwardRef(function IconTooltipButton({ label, tooltipProps, children, ...props }, ref) {
|
|
42
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
46
|
+
return ((0, jsx_runtime_1.jsx)(Tooltip_1.default, { title: label, ...tooltipProps, children: (0, jsx_runtime_1.jsx)(IconButton_1.default, { ref: ref, "aria-label": label, ...props, children: children }) }));
|
|
43
47
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.BayonPageShell = BayonPageShell;
|
|
4
7
|
exports.BayonGradientHero = BayonGradientHero;
|
|
@@ -12,28 +15,30 @@ exports.BayonPillarCard = BayonPillarCard;
|
|
|
12
15
|
exports.BayonTechChip = BayonTechChip;
|
|
13
16
|
exports.BayonPanelStack = BayonPanelStack;
|
|
14
17
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
-
const
|
|
18
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
19
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
20
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
16
21
|
const pageStyles_1 = require("../styles/pageStyles");
|
|
17
22
|
function mergeSx(...items) {
|
|
18
23
|
return items.filter(Boolean);
|
|
19
24
|
}
|
|
20
25
|
function BayonPageShell({ sx, ...props }) {
|
|
21
|
-
return (0, jsx_runtime_1.jsx)(
|
|
26
|
+
return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_1.pageShellSx, sx), ...props });
|
|
22
27
|
}
|
|
23
28
|
function BayonGradientHero({ sx, ...props }) {
|
|
24
|
-
return (0, jsx_runtime_1.jsx)(
|
|
29
|
+
return (0, jsx_runtime_1.jsx)(Box_1.default, { component: "section", sx: mergeSx(pageStyles_1.gradientHeroSx, sx), ...props });
|
|
25
30
|
}
|
|
26
31
|
function BayonDarkPanel({ hover = false, sx, ...props }) {
|
|
27
|
-
return (0, jsx_runtime_1.jsx)(
|
|
32
|
+
return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_1.darkPanelSx, hover ? pageStyles_1.darkPanelHoverSx : undefined, sx), ...props });
|
|
28
33
|
}
|
|
29
34
|
function BayonAccentPanel({ hover = false, sx, ...props }) {
|
|
30
|
-
return (0, jsx_runtime_1.jsx)(
|
|
35
|
+
return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_1.accentPanelSx, hover ? pageStyles_1.darkPanelHoverSx : undefined, sx), ...props });
|
|
31
36
|
}
|
|
32
37
|
function BayonCtaPanel({ sx, ...props }) {
|
|
33
|
-
return (0, jsx_runtime_1.jsx)(
|
|
38
|
+
return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_1.darkCtaSx, sx), ...props });
|
|
34
39
|
}
|
|
35
40
|
function BayonContentBox({ sx, ...props }) {
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx({
|
|
37
42
|
p: { xs: 3, md: 4 },
|
|
38
43
|
border: '1px solid rgba(248, 250, 252, 0.14)',
|
|
39
44
|
borderRadius: 2,
|
|
@@ -52,10 +57,10 @@ function BayonProjectCard({ category, status, title, body, actions, children, ho
|
|
|
52
57
|
minHeight: 290,
|
|
53
58
|
display: 'flex',
|
|
54
59
|
flexDirection: 'column',
|
|
55
|
-
}, sx), ...props, children: [category && ((0, jsx_runtime_1.jsx)(
|
|
60
|
+
}, sx), ...props, children: [category && ((0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: '#2DD4BF', fontWeight: 800, fontSize: '0.82rem', textTransform: 'uppercase', mb: 1.5 }, children: category })), title && ((0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "h5", sx: { color: '#FFFFFF', mb: 2 }, children: title })), body && (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: 'rgba(248, 250, 252, 0.74)', lineHeight: 1.75, mb: 3 }, children: body }), children, status && (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: '#FDE047', fontWeight: 700, mt: 'auto' }, children: status }), actions] }));
|
|
56
61
|
}
|
|
57
62
|
function BayonPillarCard({ accentColor = '#2DD4BF', eyebrow, title, body, actions, children, sx, ...props }) {
|
|
58
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
63
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: mergeSx({
|
|
59
64
|
p: { xs: 3, md: 5 },
|
|
60
65
|
border: '1px solid rgba(248, 250, 252, 0.14)',
|
|
61
66
|
borderRadius: 2,
|
|
@@ -66,10 +71,10 @@ function BayonPillarCard({ accentColor = '#2DD4BF', eyebrow, title, body, action
|
|
|
66
71
|
transform: 'translateY(-5px)',
|
|
67
72
|
borderColor: accentColor,
|
|
68
73
|
},
|
|
69
|
-
}, sx), ...props, children: [eyebrow && ((0, jsx_runtime_1.jsx)(
|
|
74
|
+
}, sx), ...props, children: [eyebrow && ((0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: accentColor, fontSize: '0.82rem', fontWeight: 800, textTransform: 'uppercase', mb: 1.5 }, children: eyebrow })), title && ((0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "h3", sx: { color: '#FFFFFF', mb: 2 }, children: title })), body && (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: 'rgba(248, 250, 252, 0.74)', lineHeight: 1.75 }, children: body }), children, actions] }));
|
|
70
75
|
}
|
|
71
76
|
function BayonTechChip({ label, children, sx, ...props }) {
|
|
72
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
77
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx({
|
|
73
78
|
px: 1.5,
|
|
74
79
|
py: 0.75,
|
|
75
80
|
borderRadius: 1,
|
|
@@ -78,8 +83,10 @@ function BayonTechChip({ label, children, sx, ...props }) {
|
|
|
78
83
|
border: '1px solid rgba(45, 212, 191, 0.24)',
|
|
79
84
|
fontSize: '0.9rem',
|
|
80
85
|
fontWeight: 600,
|
|
86
|
+
maxWidth: '100%',
|
|
87
|
+
overflowWrap: 'anywhere',
|
|
81
88
|
}, sx), ...props, children: label !== null && label !== void 0 ? label : children }));
|
|
82
89
|
}
|
|
83
90
|
function BayonPanelStack({ sx, ...props }) {
|
|
84
|
-
return (0, jsx_runtime_1.jsx)(
|
|
91
|
+
return (0, jsx_runtime_1.jsx)(Stack_1.default, { spacing: 3, sx: sx, ...props });
|
|
85
92
|
}
|
|
@@ -41,7 +41,7 @@ exports.BayonThemeProvider = BayonThemeProvider;
|
|
|
41
41
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
42
|
const React = __importStar(require("react"));
|
|
43
43
|
const react_1 = require("@emotion/react");
|
|
44
|
-
const
|
|
44
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
45
45
|
const CssBaseline_1 = __importDefault(require("@mui/material/CssBaseline"));
|
|
46
46
|
const styles_1 = require("@mui/material/styles");
|
|
47
47
|
const createBayonTheme_1 = require("../theme/createBayonTheme");
|
|
@@ -60,7 +60,13 @@ class BayonThemeErrorBoundary extends React.Component {
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
if (this.state.hasError) {
|
|
63
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
63
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: {
|
|
64
|
+
display: 'flex',
|
|
65
|
+
justifyContent: 'center',
|
|
66
|
+
alignItems: 'center',
|
|
67
|
+
minHeight: '100vh',
|
|
68
|
+
bgcolor: 'background.default',
|
|
69
|
+
}, children: (0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { textAlign: 'center' }, children: [(0, jsx_runtime_1.jsx)("h1", { children: "Something went wrong with the theme." }), (0, jsx_runtime_1.jsx)("p", { children: "Please try refreshing the page or contact support if the problem persists." })] }) }));
|
|
64
70
|
}
|
|
65
71
|
return this.props.children;
|
|
66
72
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { keyframes } from '@emotion/react';
|
|
3
|
-
import
|
|
3
|
+
import Box from '@mui/material/Box';
|
|
4
|
+
import Stack from '@mui/material/Stack';
|
|
5
|
+
import Typography from '@mui/material/Typography';
|
|
4
6
|
const drift = keyframes `
|
|
5
7
|
0% { transform: translate3d(0, 0, 0); }
|
|
6
8
|
50% { transform: translate3d(0, -10px, 0); }
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import
|
|
4
|
+
import IconButton from '@mui/material/IconButton';
|
|
5
|
+
import Tooltip from '@mui/material/Tooltip';
|
|
5
6
|
export const IconTooltipButton = React.forwardRef(function IconTooltipButton({ label, tooltipProps, children, ...props }, ref) {
|
|
6
7
|
return (_jsx(Tooltip, { title: label, ...tooltipProps, children: _jsx(IconButton, { ref: ref, "aria-label": label, ...props, children: children }) }));
|
|
7
8
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import Box from '@mui/material/Box';
|
|
3
|
+
import Stack from '@mui/material/Stack';
|
|
4
|
+
import Typography from '@mui/material/Typography';
|
|
3
5
|
import { accentPanelSx, darkCtaSx, darkPanelHoverSx, darkPanelSx, gradientHeroSx, pageShellSx, } from '../styles/pageStyles';
|
|
4
6
|
function mergeSx(...items) {
|
|
5
7
|
return items.filter(Boolean);
|
|
@@ -65,6 +67,8 @@ export function BayonTechChip({ label, children, sx, ...props }) {
|
|
|
65
67
|
border: '1px solid rgba(45, 212, 191, 0.24)',
|
|
66
68
|
fontSize: '0.9rem',
|
|
67
69
|
fontWeight: 600,
|
|
70
|
+
maxWidth: '100%',
|
|
71
|
+
overflowWrap: 'anywhere',
|
|
68
72
|
}, sx), ...props, children: label !== null && label !== void 0 ? label : children }));
|
|
69
73
|
}
|
|
70
74
|
export function BayonPanelStack({ sx, ...props }) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { CacheProvider } from '@emotion/react';
|
|
5
|
-
import
|
|
5
|
+
import Box from '@mui/material/Box';
|
|
6
6
|
import CssBaseline from '@mui/material/CssBaseline';
|
|
7
7
|
import { ThemeProvider } from '@mui/material/styles';
|
|
8
8
|
import { bayonDarkTheme } from '../theme/createBayonTheme';
|
|
@@ -21,7 +21,13 @@ class BayonThemeErrorBoundary extends React.Component {
|
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
23
|
if (this.state.hasError) {
|
|
24
|
-
return (_jsx(Box, {
|
|
24
|
+
return (_jsx(Box, { sx: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
justifyContent: 'center',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
minHeight: '100vh',
|
|
29
|
+
bgcolor: 'background.default',
|
|
30
|
+
}, children: _jsxs(Box, { sx: { 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
31
|
}
|
|
26
32
|
return this.props.children;
|
|
27
33
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type IconButtonProps
|
|
2
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
3
|
+
import { type TooltipProps } from '@mui/material/Tooltip';
|
|
3
4
|
export interface IconTooltipButtonProps extends Omit<IconButtonProps, 'aria-label'> {
|
|
4
5
|
component?: React.ElementType;
|
|
5
6
|
href?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type BoxProps
|
|
2
|
+
import { type BoxProps } from '@mui/material/Box';
|
|
3
|
+
import { type StackProps } from '@mui/material/Stack';
|
|
3
4
|
export interface BayonPanelProps extends BoxProps {
|
|
4
5
|
hover?: boolean;
|
|
5
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bayonai/mui-design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Shared Bayon AI Material UI theme, style recipes, and reusable design components.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
-
"README.md"
|
|
24
|
+
"README.md",
|
|
25
|
+
"CHANGELOG.md"
|
|
25
26
|
],
|
|
26
27
|
"publishConfig": {
|
|
27
28
|
"access": "public"
|
|
@@ -35,8 +36,9 @@
|
|
|
35
36
|
"@emotion/cache": "^11.14.0",
|
|
36
37
|
"@emotion/react": "^11.14.0",
|
|
37
38
|
"@emotion/styled": "^11.14.0",
|
|
38
|
-
"@mui/icons-material": "^
|
|
39
|
-
"@mui/material": "^
|
|
39
|
+
"@mui/icons-material": "^9.1.0",
|
|
40
|
+
"@mui/material": "^9.1.0",
|
|
41
|
+
"@mui/material-pigment-css": "^9.1.0",
|
|
40
42
|
"react": "^19.0.0",
|
|
41
43
|
"react-dom": "^19.0.0"
|
|
42
44
|
},
|