@bayonai/mui-design 0.1.0 → 0.2.1

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 ADDED
@@ -0,0 +1,37 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@bayonai/mui-design` will be documented in this file.
4
+
5
+ ## 0.2.1 - 2026-06-09
6
+
7
+ ### Fixed
8
+
9
+ - Added explicit `.js` specifiers to package-local ESM imports and exports so Node and Next.js can resolve the published package directly.
10
+ - Deferred the MUI Tooltip import in `IconTooltipButton` so importing `@bayonai/mui-design/client` does not force Node to evaluate MUI's transition module.
11
+ - Kept accent-panel decorative layers behind panel content to preserve readable, clickable children.
12
+
13
+ ## 0.2.0 - 2026-06-09
14
+
15
+ ### Changed
16
+
17
+ - Migrated peer dependencies to Material UI 9.1.0.
18
+ - Added `@mui/material-pigment-css` as a peer dependency for MUI 9 compatibility.
19
+ - Replaced MUI barrel imports with component-level imports to keep Next.js server rendering stable.
20
+ - Moved deprecated MUI system props into `sx` for MUI 9 type compatibility.
21
+ - Rebuilt ESM, CommonJS, and TypeScript declaration outputs for the MUI 9 release.
22
+
23
+ ### Notes
24
+
25
+ - This release keeps the public package API stable.
26
+ - The package still uses the existing Emotion-based provider and theme path; it does not migrate Bayon websites to Pigment CSS styling yet.
27
+
28
+ ## 0.1.0 - 2026-06-09
29
+
30
+ ### Added
31
+
32
+ - Published the initial shared Bayon Material UI design package.
33
+ - Added Bayon theme creation helpers, dark theme, palette, typography, shadows, and component overrides.
34
+ - Added shared page style recipes for shells, heroes, panels, text, and buttons.
35
+ - Added reusable Bayon surfaces: `BayonPageShell`, `BayonGradientHero`, `BayonDarkPanel`, `BayonAccentPanel`, `BayonCtaPanel`, `BayonContentBox`, `BayonProjectCard`, `BayonPillarCard`, `BayonMethodBox`, `BayonFlowVisual`, and `BayonTechChip`.
36
+ - Added client-only helpers through `@bayonai/mui-design/client`: `BayonThemeProvider`, `IconTooltipButton`, and client visual exports.
37
+ - 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
+ ```
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- __exportStar(require("./components/IconTooltipButton"), exports);
19
- __exportStar(require("./components/BayonFlowVisual"), exports);
20
- __exportStar(require("./providers/BayonThemeProvider"), exports);
18
+ __exportStar(require("./components/IconTooltipButton.js"), exports);
19
+ __exportStar(require("./components/BayonFlowVisual.js"), exports);
20
+ __exportStar(require("./providers/BayonThemeProvider.js"), exports);
@@ -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 material_1 = require("@mui/material");
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)(material_1.Box, { "aria-hidden": "true", sx: mergeSx({
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)(material_1.Stack, { direction: "row", spacing: 1.2, children: ['#2DD4BF', '#FF6B6B', '#FDE047'].map((color) => ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: 10, height: 10, borderRadius: '50%', bgcolor: color } }, color))) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
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)(material_1.Box, { sx: {
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)(material_1.Typography, { sx: { color: item.color, fontWeight: 800, fontSize: '0.8rem', textTransform: 'uppercase' }, children: item.label }), (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { color: '#F8FAFC', fontWeight: 700, fontSize: { xs: '1rem', md: '1.18rem' } }, children: item.value })] }, `${String(item.label)}-${index}`))) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { color: 'rgba(248, 250, 252, 0.72)', fontSize: '0.95rem' }, children: caption })] }));
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,18 @@ 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 material_1 = require("@mui/material");
43
+ const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
44
+ const LazyTooltip = React.lazy(async () => ({
45
+ default: (await Promise.resolve().then(() => __importStar(require('@mui/material/Tooltip')))).default,
46
+ }));
41
47
  exports.IconTooltipButton = React.forwardRef(function IconTooltipButton({ label, tooltipProps, children, ...props }, ref) {
42
- return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: label, ...tooltipProps, children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { ref: ref, "aria-label": label, ...props, children: children }) }));
48
+ const button = ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ref: ref, "aria-label": label, ...props, children: children }));
49
+ return ((0, jsx_runtime_1.jsx)(React.Suspense, { fallback: button, children: (0, jsx_runtime_1.jsx)(LazyTooltip, { title: label, ...tooltipProps, children: button }) }));
43
50
  });
@@ -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 material_1 = require("@mui/material");
16
- const pageStyles_1 = require("../styles/pageStyles");
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"));
21
+ const pageStyles_js_1 = require("../styles/pageStyles.js");
17
22
  function mergeSx(...items) {
18
- return items.filter(Boolean);
23
+ return items.flat().filter(Boolean);
19
24
  }
20
25
  function BayonPageShell({ sx, ...props }) {
21
- return (0, jsx_runtime_1.jsx)(material_1.Box, { sx: mergeSx(pageStyles_1.pageShellSx, sx), ...props });
26
+ return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_js_1.pageShellSx, sx), ...props });
22
27
  }
23
28
  function BayonGradientHero({ sx, ...props }) {
24
- return (0, jsx_runtime_1.jsx)(material_1.Box, { component: "section", sx: mergeSx(pageStyles_1.gradientHeroSx, sx), ...props });
29
+ return (0, jsx_runtime_1.jsx)(Box_1.default, { component: "section", sx: mergeSx(pageStyles_js_1.gradientHeroSx, sx), ...props });
25
30
  }
26
31
  function BayonDarkPanel({ hover = false, sx, ...props }) {
27
- return (0, jsx_runtime_1.jsx)(material_1.Box, { sx: mergeSx(pageStyles_1.darkPanelSx, hover ? pageStyles_1.darkPanelHoverSx : undefined, sx), ...props });
32
+ return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_js_1.darkPanelSx, hover ? pageStyles_js_1.darkPanelHoverSx : undefined, sx), ...props });
28
33
  }
29
34
  function BayonAccentPanel({ hover = false, sx, ...props }) {
30
- return (0, jsx_runtime_1.jsx)(material_1.Box, { sx: mergeSx(pageStyles_1.accentPanelSx, hover ? pageStyles_1.darkPanelHoverSx : undefined, sx), ...props });
35
+ return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_js_1.accentPanelSx, hover ? pageStyles_js_1.darkPanelHoverSx : undefined, sx), ...props });
31
36
  }
32
37
  function BayonCtaPanel({ sx, ...props }) {
33
- return (0, jsx_runtime_1.jsx)(material_1.Box, { sx: mergeSx(pageStyles_1.darkCtaSx, sx), ...props });
38
+ return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_js_1.darkCtaSx, sx), ...props });
34
39
  }
35
40
  function BayonContentBox({ sx, ...props }) {
36
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: mergeSx({
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)(material_1.Typography, { sx: { color: '#2DD4BF', fontWeight: 800, fontSize: '0.82rem', textTransform: 'uppercase', mb: 1.5 }, children: category })), title && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5", sx: { color: '#FFFFFF', mb: 2 }, children: title })), body && (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { color: 'rgba(248, 250, 252, 0.74)', lineHeight: 1.75, mb: 3 }, children: body }), children, status && (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { color: '#FDE047', fontWeight: 700, mt: 'auto' }, children: status }), actions] }));
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)(material_1.Box, { sx: mergeSx({
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)(material_1.Typography, { sx: { color: accentColor, fontSize: '0.82rem', fontWeight: 800, textTransform: 'uppercase', mb: 1.5 }, children: eyebrow })), title && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h3", sx: { color: '#FFFFFF', mb: 2 }, children: title })), body && (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { color: 'rgba(248, 250, 252, 0.74)', lineHeight: 1.75 }, children: body }), children, actions] }));
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)(material_1.Box, { sx: mergeSx({
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)(material_1.Stack, { spacing: 3, sx: sx, ...props });
91
+ return (0, jsx_runtime_1.jsx)(Stack_1.default, { spacing: 3, sx: sx, ...props });
85
92
  }
package/dist/cjs/index.js CHANGED
@@ -14,12 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./components/panels"), exports);
18
- __exportStar(require("./styles/pageStyles"), exports);
19
- __exportStar(require("./theme/components"), exports);
20
- __exportStar(require("./theme/createBayonTheme"), exports);
21
- __exportStar(require("./theme/palette"), exports);
22
- __exportStar(require("./theme/shadows"), exports);
23
- __exportStar(require("./theme/typography"), exports);
24
- __exportStar(require("./theme/types"), exports);
25
- __exportStar(require("./utils/createBayonEmotionCache"), exports);
17
+ __exportStar(require("./components/panels.js"), exports);
18
+ __exportStar(require("./styles/pageStyles.js"), exports);
19
+ __exportStar(require("./theme/components.js"), exports);
20
+ __exportStar(require("./theme/createBayonTheme.js"), exports);
21
+ __exportStar(require("./theme/palette.js"), exports);
22
+ __exportStar(require("./theme/shadows.js"), exports);
23
+ __exportStar(require("./theme/typography.js"), exports);
24
+ __exportStar(require("./theme/types.js"), exports);
25
+ __exportStar(require("./utils/createBayonEmotionCache.js"), exports);
@@ -41,12 +41,12 @@ 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 material_1 = require("@mui/material");
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
- const createBayonTheme_1 = require("../theme/createBayonTheme");
48
- const createBayonEmotionCache_1 = require("../utils/createBayonEmotionCache");
49
- const clientSideEmotionCache = (0, createBayonEmotionCache_1.createBayonEmotionCache)();
47
+ const createBayonTheme_js_1 = require("../theme/createBayonTheme.js");
48
+ const createBayonEmotionCache_js_1 = require("../utils/createBayonEmotionCache.js");
49
+ const clientSideEmotionCache = (0, createBayonEmotionCache_js_1.createBayonEmotionCache)();
50
50
  class BayonThemeErrorBoundary extends React.Component {
51
51
  constructor(props) {
52
52
  super(props);
@@ -60,15 +60,25 @@ class BayonThemeErrorBoundary extends React.Component {
60
60
  }
61
61
  render() {
62
62
  if (this.state.hasError) {
63
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", justifyContent: "center", alignItems: "center", minHeight: "100vh", bgcolor: "background.default", children: (0, jsx_runtime_1.jsxs)(material_1.Box, { 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." })] }) }));
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
  }
67
73
  }
68
- function BayonThemeProvider({ children, emotionCache = clientSideEmotionCache, theme = createBayonTheme_1.bayonDarkTheme, enableErrorBoundary = true, }) {
74
+ function BayonThemeProvider({ children, emotionCache = clientSideEmotionCache, disableEmotionCacheProvider = false, theme = createBayonTheme_js_1.bayonDarkTheme, enableErrorBoundary = true, }) {
69
75
  React.useEffect(() => {
70
76
  document.documentElement.setAttribute('data-theme', 'dark');
71
77
  }, []);
72
78
  const content = enableErrorBoundary ? ((0, jsx_runtime_1.jsx)(BayonThemeErrorBoundary, { children: children })) : (children);
73
- return ((0, jsx_runtime_1.jsx)(react_1.CacheProvider, { value: emotionCache, children: (0, jsx_runtime_1.jsxs)(styles_1.ThemeProvider, { theme: theme, children: [(0, jsx_runtime_1.jsx)(CssBaseline_1.default, { enableColorScheme: true }), content] }) }));
79
+ const themedContent = ((0, jsx_runtime_1.jsxs)(styles_1.ThemeProvider, { theme: theme, children: [(0, jsx_runtime_1.jsx)(CssBaseline_1.default, { enableColorScheme: true }), content] }));
80
+ if (disableEmotionCacheProvider) {
81
+ return themedContent;
82
+ }
83
+ return (0, jsx_runtime_1.jsx)(react_1.CacheProvider, { value: emotionCache, children: themedContent });
74
84
  }
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.outlineButtonSx = exports.tealButtonSx = exports.mutedTextSx = exports.eyebrowSx = exports.darkCtaSx = exports.darkPanelHoverSx = exports.accentPanelSx = exports.darkPanelSx = exports.heroBodySx = exports.heroTitleSx = exports.heroStackSx = exports.heroContainerSx = exports.gradientHeroSx = exports.pageShellSx = void 0;
4
- const palette_1 = require("../theme/palette");
4
+ const palette_js_1 = require("../theme/palette.js");
5
5
  exports.pageShellSx = {
6
- bgcolor: palette_1.bayonAccent.night,
7
- color: palette_1.bayonAccent.foreground,
6
+ bgcolor: palette_js_1.bayonAccent.night,
7
+ color: palette_js_1.bayonAccent.foreground,
8
8
  };
9
9
  exports.gradientHeroSx = {
10
- bgcolor: palette_1.bayonAccent.night,
11
- color: palette_1.bayonAccent.foreground,
10
+ bgcolor: palette_js_1.bayonAccent.night,
11
+ color: palette_js_1.bayonAccent.foreground,
12
12
  py: { xs: 8, md: 11 },
13
13
  position: 'relative',
14
14
  overflow: 'hidden',
@@ -46,6 +46,7 @@ exports.darkPanelSx = {
46
46
  exports.accentPanelSx = {
47
47
  ...exports.darkPanelSx,
48
48
  position: 'relative',
49
+ isolation: 'isolate',
49
50
  overflow: 'hidden',
50
51
  '&::before': {
51
52
  content: '""',
@@ -55,6 +56,12 @@ exports.accentPanelSx = {
55
56
  bottom: 0,
56
57
  width: 6,
57
58
  background: 'linear-gradient(180deg, #2DD4BF, #60A5FA 38%, #FDE047 68%, #FF6B6B)',
59
+ pointerEvents: 'none',
60
+ zIndex: 0,
61
+ },
62
+ '& > *': {
63
+ position: 'relative',
64
+ zIndex: 1,
58
65
  },
59
66
  };
60
67
  exports.darkPanelHoverSx = {
@@ -66,13 +73,13 @@ exports.darkPanelHoverSx = {
66
73
  },
67
74
  };
68
75
  exports.darkCtaSx = {
69
- bgcolor: palette_1.bayonAccent.panel,
70
- color: palette_1.bayonAccent.foreground,
76
+ bgcolor: palette_js_1.bayonAccent.panel,
77
+ color: palette_js_1.bayonAccent.foreground,
71
78
  border: '1px solid rgba(248, 250, 252, 0.14)',
72
79
  borderRadius: 2,
73
80
  };
74
81
  exports.eyebrowSx = {
75
- color: palette_1.bayonAccent.teal,
82
+ color: palette_js_1.bayonAccent.teal,
76
83
  fontSize: '0.82rem',
77
84
  fontWeight: 800,
78
85
  textTransform: 'uppercase',
@@ -82,15 +89,15 @@ exports.mutedTextSx = {
82
89
  lineHeight: 1.75,
83
90
  };
84
91
  exports.tealButtonSx = {
85
- bgcolor: palette_1.bayonAccent.teal,
86
- color: palette_1.bayonAccent.ink,
87
- '&:hover': { bgcolor: palette_1.bayonAccent.tealLight },
92
+ bgcolor: palette_js_1.bayonAccent.teal,
93
+ color: palette_js_1.bayonAccent.ink,
94
+ '&:hover': { bgcolor: palette_js_1.bayonAccent.tealLight },
88
95
  };
89
96
  exports.outlineButtonSx = {
90
97
  borderColor: 'rgba(248, 250, 252, 0.28)',
91
- color: palette_1.bayonAccent.foreground,
98
+ color: palette_js_1.bayonAccent.foreground,
92
99
  '&:hover': {
93
- borderColor: palette_1.bayonAccent.teal,
100
+ borderColor: palette_js_1.bayonAccent.teal,
94
101
  bgcolor: 'rgba(45, 212, 191, 0.1)',
95
102
  },
96
103
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bayonComponents = void 0;
4
- const shadows_1 = require("./shadows");
4
+ const shadows_js_1 = require("./shadows.js");
5
5
  exports.bayonComponents = {
6
6
  MuiButtonBase: {
7
7
  defaultProps: {
@@ -40,9 +40,9 @@ exports.bayonComponents = {
40
40
  styleOverrides: {
41
41
  root: {
42
42
  borderRadius: 16,
43
- boxShadow: shadows_1.bayonShadows.z8,
43
+ boxShadow: shadows_js_1.bayonShadows.z8,
44
44
  '&:hover': {
45
- boxShadow: shadows_1.bayonShadows.z16,
45
+ boxShadow: shadows_js_1.bayonShadows.z16,
46
46
  },
47
47
  },
48
48
  },
@@ -3,20 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bayonDarkTheme = exports.bayonTheme = void 0;
4
4
  exports.createBayonTheme = createBayonTheme;
5
5
  const styles_1 = require("@mui/material/styles");
6
- const components_1 = require("./components");
7
- const palette_1 = require("./palette");
8
- const shadows_1 = require("./shadows");
9
- const typography_1 = require("./typography");
6
+ const components_js_1 = require("./components.js");
7
+ const palette_js_1 = require("./palette.js");
8
+ const shadows_js_1 = require("./shadows.js");
9
+ const typography_js_1 = require("./typography.js");
10
10
  function createBayonTheme(options = {}) {
11
11
  const { mode = 'light', overrides = {} } = options;
12
12
  const baseTheme = {
13
- palette: mode === 'dark' ? palette_1.bayonDarkPalette : palette_1.bayonPalette,
13
+ palette: mode === 'dark' ? palette_js_1.bayonDarkPalette : palette_js_1.bayonPalette,
14
14
  shape: {
15
15
  borderRadius: 8,
16
16
  },
17
- typography: typography_1.bayonTypography,
18
- components: components_1.bayonComponents,
19
- customShadows: shadows_1.bayonShadows,
17
+ typography: typography_js_1.bayonTypography,
18
+ components: components_js_1.bayonComponents,
19
+ customShadows: shadows_js_1.bayonShadows,
20
20
  };
21
21
  return (0, styles_1.responsiveFontSizes)((0, styles_1.createTheme)(baseTheme, overrides));
22
22
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bayonShadows = void 0;
4
- const palette_1 = require("./palette");
4
+ const palette_js_1 = require("./palette.js");
5
5
  exports.bayonShadows = {
6
6
  z1: '0px 1px 2px 0px rgba(145, 158, 171, 0.16)',
7
7
  z8: '0px 8px 16px 0px rgba(145, 158, 171, 0.16)',
@@ -9,12 +9,12 @@ exports.bayonShadows = {
9
9
  z16: '0px 16px 32px -4px rgba(145, 158, 171, 0.16)',
10
10
  z20: '0px 20px 40px -4px rgba(145, 158, 171, 0.16)',
11
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`,
12
+ primary: `0 8px 16px 0 ${palette_js_1.bayonPalette.primary.light}33`,
13
+ secondary: `0 8px 16px 0 ${palette_js_1.bayonPalette.secondary.light}33`,
14
+ info: `0 8px 16px 0 ${palette_js_1.bayonPalette.info.light}33`,
15
+ success: `0 8px 16px 0 ${palette_js_1.bayonPalette.success.light}33`,
16
+ warning: `0 8px 16px 0 ${palette_js_1.bayonPalette.warning.light}33`,
17
+ error: `0 8px 16px 0 ${palette_js_1.bayonPalette.error.light}33`,
18
18
  card: '0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12)',
19
19
  dialog: '-40px 40px 80px -8px rgba(145, 158, 171, 0.24)',
20
20
  dropdown: '0 8px 16px 0 rgba(145, 158, 171, 0.16)',
@@ -1,4 +1,4 @@
1
1
  "use client";
2
- export * from './components/IconTooltipButton';
3
- export * from './components/BayonFlowVisual';
4
- export * from './providers/BayonThemeProvider';
2
+ export * from './components/IconTooltipButton.js';
3
+ export * from './components/BayonFlowVisual.js';
4
+ export * from './providers/BayonThemeProvider.js';
@@ -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 { Box, Stack, Typography } from '@mui/material';
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,11 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import * as React from 'react';
4
- import { IconButton, Tooltip } from '@mui/material';
4
+ import IconButton from '@mui/material/IconButton';
5
+ const LazyTooltip = React.lazy(async () => ({
6
+ default: (await import('@mui/material/Tooltip')).default,
7
+ }));
5
8
  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 }) }));
9
+ const button = (_jsx(IconButton, { ref: ref, "aria-label": label, ...props, children: children }));
10
+ return (_jsx(React.Suspense, { fallback: button, children: _jsx(LazyTooltip, { title: label, ...tooltipProps, children: button }) }));
7
11
  });
@@ -1,8 +1,10 @@
1
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';
2
+ import Box from '@mui/material/Box';
3
+ import Stack from '@mui/material/Stack';
4
+ import Typography from '@mui/material/Typography';
5
+ import { accentPanelSx, darkCtaSx, darkPanelHoverSx, darkPanelSx, gradientHeroSx, pageShellSx, } from '../styles/pageStyles.js';
4
6
  function mergeSx(...items) {
5
- return items.filter(Boolean);
7
+ return items.flat().filter(Boolean);
6
8
  }
7
9
  export function BayonPageShell({ sx, ...props }) {
8
10
  return _jsx(Box, { sx: mergeSx(pageShellSx, sx), ...props });
@@ -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 }) {
package/dist/esm/index.js CHANGED
@@ -1,9 +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';
1
+ export * from './components/panels.js';
2
+ export * from './styles/pageStyles.js';
3
+ export * from './theme/components.js';
4
+ export * from './theme/createBayonTheme.js';
5
+ export * from './theme/palette.js';
6
+ export * from './theme/shadows.js';
7
+ export * from './theme/typography.js';
8
+ export * from './theme/types.js';
9
+ export * from './utils/createBayonEmotionCache.js';
@@ -2,11 +2,11 @@
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 { Box } from '@mui/material';
5
+ import Box from '@mui/material/Box';
6
6
  import CssBaseline from '@mui/material/CssBaseline';
7
7
  import { ThemeProvider } from '@mui/material/styles';
8
- import { bayonDarkTheme } from '../theme/createBayonTheme';
9
- import { createBayonEmotionCache } from '../utils/createBayonEmotionCache';
8
+ import { bayonDarkTheme } from '../theme/createBayonTheme.js';
9
+ import { createBayonEmotionCache } from '../utils/createBayonEmotionCache.js';
10
10
  const clientSideEmotionCache = createBayonEmotionCache();
11
11
  class BayonThemeErrorBoundary extends React.Component {
12
12
  constructor(props) {
@@ -21,15 +21,25 @@ class BayonThemeErrorBoundary extends React.Component {
21
21
  }
22
22
  render() {
23
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." })] }) }));
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
  }
28
34
  }
29
- export function BayonThemeProvider({ children, emotionCache = clientSideEmotionCache, theme = bayonDarkTheme, enableErrorBoundary = true, }) {
35
+ export function BayonThemeProvider({ children, emotionCache = clientSideEmotionCache, disableEmotionCacheProvider = false, theme = bayonDarkTheme, enableErrorBoundary = true, }) {
30
36
  React.useEffect(() => {
31
37
  document.documentElement.setAttribute('data-theme', 'dark');
32
38
  }, []);
33
39
  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] }) }));
40
+ const themedContent = (_jsxs(ThemeProvider, { theme: theme, children: [_jsx(CssBaseline, { enableColorScheme: true }), content] }));
41
+ if (disableEmotionCacheProvider) {
42
+ return themedContent;
43
+ }
44
+ return _jsx(CacheProvider, { value: emotionCache, children: themedContent });
35
45
  }
@@ -1,4 +1,4 @@
1
- import { bayonAccent } from '../theme/palette';
1
+ import { bayonAccent } from '../theme/palette.js';
2
2
  export const pageShellSx = {
3
3
  bgcolor: bayonAccent.night,
4
4
  color: bayonAccent.foreground,
@@ -43,6 +43,7 @@ export const darkPanelSx = {
43
43
  export const accentPanelSx = {
44
44
  ...darkPanelSx,
45
45
  position: 'relative',
46
+ isolation: 'isolate',
46
47
  overflow: 'hidden',
47
48
  '&::before': {
48
49
  content: '""',
@@ -52,6 +53,12 @@ export const accentPanelSx = {
52
53
  bottom: 0,
53
54
  width: 6,
54
55
  background: 'linear-gradient(180deg, #2DD4BF, #60A5FA 38%, #FDE047 68%, #FF6B6B)',
56
+ pointerEvents: 'none',
57
+ zIndex: 0,
58
+ },
59
+ '& > *': {
60
+ position: 'relative',
61
+ zIndex: 1,
55
62
  },
56
63
  };
57
64
  export const darkPanelHoverSx = {
@@ -1,4 +1,4 @@
1
- import { bayonShadows } from './shadows';
1
+ import { bayonShadows } from './shadows.js';
2
2
  export const bayonComponents = {
3
3
  MuiButtonBase: {
4
4
  defaultProps: {
@@ -1,8 +1,8 @@
1
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';
2
+ import { bayonComponents } from './components.js';
3
+ import { bayonDarkPalette, bayonPalette } from './palette.js';
4
+ import { bayonShadows } from './shadows.js';
5
+ import { bayonTypography } from './typography.js';
6
6
  export function createBayonTheme(options = {}) {
7
7
  const { mode = 'light', overrides = {} } = options;
8
8
  const baseTheme = {
@@ -1,4 +1,4 @@
1
- import { bayonPalette } from './palette';
1
+ import { bayonPalette } from './palette.js';
2
2
  export const bayonShadows = {
3
3
  z1: '0px 1px 2px 0px rgba(145, 158, 171, 0.16)',
4
4
  z8: '0px 8px 16px 0px rgba(145, 158, 171, 0.16)',
@@ -1,3 +1,3 @@
1
- export * from './components/IconTooltipButton';
2
- export * from './components/BayonFlowVisual';
3
- export * from './providers/BayonThemeProvider';
1
+ export * from './components/IconTooltipButton.js';
2
+ export * from './components/BayonFlowVisual.js';
3
+ export * from './providers/BayonThemeProvider.js';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type BoxProps } from '@mui/material';
2
+ import { type BoxProps } from '@mui/material/Box';
3
3
  export type BayonFlowItem = {
4
4
  label: React.ReactNode;
5
5
  value: React.ReactNode;
@@ -9,4 +9,4 @@ export interface BayonFlowVisualProps extends BoxProps {
9
9
  items?: BayonFlowItem[];
10
10
  caption?: React.ReactNode;
11
11
  }
12
- export declare function BayonFlowVisual({ items, caption, sx, ...props }: BayonFlowVisualProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function BayonFlowVisual({ items, caption, sx, ...props }: BayonFlowVisualProps): React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type IconButtonProps, type TooltipProps } from '@mui/material';
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,18 +1,19 @@
1
1
  import * as React from 'react';
2
- import { type BoxProps, type StackProps } from '@mui/material';
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
  }
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;
7
+ export declare function BayonPageShell({ sx, ...props }: BoxProps): React.JSX.Element;
8
+ export declare function BayonGradientHero({ sx, ...props }: BoxProps): React.JSX.Element;
9
+ export declare function BayonDarkPanel({ hover, sx, ...props }: BayonPanelProps): React.JSX.Element;
10
+ export declare function BayonAccentPanel({ hover, sx, ...props }: BayonPanelProps): React.JSX.Element;
11
+ export declare function BayonCtaPanel({ sx, ...props }: BoxProps): React.JSX.Element;
12
+ export declare function BayonContentBox({ sx, ...props }: BoxProps): React.JSX.Element;
12
13
  export interface BayonMethodBoxProps extends BoxProps {
13
14
  accentColor?: string;
14
15
  }
15
- export declare function BayonMethodBox({ accentColor, sx, ...props }: BayonMethodBoxProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function BayonMethodBox({ accentColor, sx, ...props }: BayonMethodBoxProps): React.JSX.Element;
16
17
  export interface BayonProjectCardProps extends Omit<BayonPanelProps, 'title'> {
17
18
  category?: React.ReactNode;
18
19
  status?: React.ReactNode;
@@ -20,7 +21,7 @@ export interface BayonProjectCardProps extends Omit<BayonPanelProps, 'title'> {
20
21
  body?: React.ReactNode;
21
22
  actions?: React.ReactNode;
22
23
  }
23
- export declare function BayonProjectCard({ category, status, title, body, actions, children, hover, sx, ...props }: BayonProjectCardProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function BayonProjectCard({ category, status, title, body, actions, children, hover, sx, ...props }: BayonProjectCardProps): React.JSX.Element;
24
25
  export interface BayonPillarCardProps extends Omit<BoxProps, 'title'> {
25
26
  accentColor?: string;
26
27
  eyebrow?: React.ReactNode;
@@ -28,9 +29,9 @@ export interface BayonPillarCardProps extends Omit<BoxProps, 'title'> {
28
29
  body?: React.ReactNode;
29
30
  actions?: React.ReactNode;
30
31
  }
31
- export declare function BayonPillarCard({ accentColor, eyebrow, title, body, actions, children, sx, ...props }: BayonPillarCardProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare function BayonPillarCard({ accentColor, eyebrow, title, body, actions, children, sx, ...props }: BayonPillarCardProps): React.JSX.Element;
32
33
  export interface BayonTechChipProps extends BoxProps {
33
34
  label?: React.ReactNode;
34
35
  }
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;
36
+ export declare function BayonTechChip({ label, children, sx, ...props }: BayonTechChipProps): React.JSX.Element;
37
+ export declare function BayonPanelStack({ sx, ...props }: StackProps): React.JSX.Element;
@@ -1,9 +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';
1
+ export * from './components/panels.js';
2
+ export * from './styles/pageStyles.js';
3
+ export * from './theme/components.js';
4
+ export * from './theme/createBayonTheme.js';
5
+ export * from './theme/palette.js';
6
+ export * from './theme/shadows.js';
7
+ export * from './theme/typography.js';
8
+ export * from './theme/types.js';
9
+ export * from './utils/createBayonEmotionCache.js';
@@ -4,7 +4,8 @@ import { ThemeProvider } from '@mui/material/styles';
4
4
  export interface BayonThemeProviderProps {
5
5
  children: React.ReactNode;
6
6
  emotionCache?: EmotionCache;
7
+ disableEmotionCacheProvider?: boolean;
7
8
  theme?: Parameters<typeof ThemeProvider>[0]['theme'];
8
9
  enableErrorBoundary?: boolean;
9
10
  }
10
- export declare function BayonThemeProvider({ children, emotionCache, theme, enableErrorBoundary, }: BayonThemeProviderProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function BayonThemeProvider({ children, emotionCache, disableEmotionCacheProvider, theme, enableErrorBoundary, }: BayonThemeProviderProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { CreateBayonThemeOptions } from './types';
1
+ import type { CreateBayonThemeOptions } from './types.js';
2
2
  export declare function createBayonTheme(options?: CreateBayonThemeOptions): import("@mui/material/styles").Theme;
3
3
  export declare const bayonTheme: import("@mui/material/styles").Theme;
4
4
  export declare const bayonDarkTheme: import("@mui/material/styles").Theme;
@@ -1,4 +1,4 @@
1
- import type { BayonColorScale } from './types';
1
+ import type { BayonColorScale } from './types.js';
2
2
  export declare const bayonAccent: {
3
3
  readonly teal: "#2DD4BF";
4
4
  readonly tealLight: "#5EEAD4";
@@ -1,2 +1,2 @@
1
- import type { BayonCustomShadows } from './types';
1
+ import type { BayonCustomShadows } from './types.js';
2
2
  export declare const bayonShadows: BayonCustomShadows;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bayonai/mui-design",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
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": "^7.1.2",
39
- "@mui/material": "^7.1.2",
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
  },