@bayonai/mui-design 1.10.0 → 1.10.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 +4 -0
- package/dist/cjs/actions/ActionMenu.d.ts +24 -0
- package/dist/cjs/actions/ActionMenu.js +36 -0
- package/dist/cjs/actions/DialogActionButtons.d.ts +23 -0
- package/dist/cjs/actions/DialogActionButtons.js +33 -0
- package/dist/cjs/actions/LoadingIconButton.d.ts +11 -0
- package/dist/cjs/actions/LoadingIconButton.js +10 -0
- package/dist/cjs/actions/StickyActionFooter.d.ts +14 -0
- package/dist/cjs/actions/StickyActionFooter.js +27 -0
- package/dist/cjs/actions/StickySubmitButton.d.ts +10 -0
- package/dist/cjs/actions/StickySubmitButton.js +10 -0
- package/dist/cjs/actions/index.d.ts +5 -0
- package/dist/cjs/actions/index.js +18 -0
- package/dist/cjs/client.d.ts +4 -0
- package/dist/cjs/client.js +21 -0
- package/dist/cjs/components/BayonFlowVisual.d.ts +12 -0
- package/dist/cjs/components/BayonFlowVisual.js +87 -0
- package/dist/cjs/components/BayonThemeModeToggle.d.ts +6 -0
- package/dist/cjs/components/BayonThemeModeToggle.js +34 -0
- package/dist/cjs/components/IconTooltipButton.d.ts +10 -0
- package/dist/cjs/components/IconTooltipButton.js +50 -0
- package/dist/cjs/components/panels.d.ts +37 -0
- package/dist/cjs/components/panels.js +92 -0
- package/dist/cjs/drawers/BottomDrawer.d.ts +16 -0
- package/dist/cjs/drawers/BottomDrawer.js +43 -0
- package/dist/cjs/drawers/MobileBottomDrawer.d.ts +20 -0
- package/dist/cjs/drawers/MobileBottomDrawer.js +102 -0
- package/dist/cjs/drawers/MobileBottomDrawerHeader.d.ts +11 -0
- package/dist/cjs/drawers/MobileBottomDrawerHeader.js +36 -0
- package/dist/cjs/drawers/ResponsiveDrawer.d.ts +25 -0
- package/dist/cjs/drawers/ResponsiveDrawer.js +22 -0
- package/dist/cjs/drawers/WorkspaceSidePane.d.ts +31 -0
- package/dist/cjs/drawers/WorkspaceSidePane.js +228 -0
- package/dist/cjs/drawers/WorkspaceSidePaneRoot.d.ts +1 -0
- package/dist/cjs/drawers/WorkspaceSidePaneRoot.js +93 -0
- package/dist/cjs/drawers/drawerAppearance.d.ts +8 -0
- package/dist/cjs/drawers/drawerAppearance.js +10 -0
- package/dist/cjs/drawers/index.d.ts +7 -0
- package/dist/cjs/drawers/index.js +19 -0
- package/dist/cjs/drawers/useVisualViewportBottomInset.d.ts +6 -0
- package/dist/cjs/drawers/useVisualViewportBottomInset.js +33 -0
- package/dist/cjs/drawers/workspaceSidePaneGeometry.d.ts +11 -0
- package/dist/cjs/drawers/workspaceSidePaneGeometry.js +15 -0
- package/dist/cjs/feedback/StatusNotice.d.ts +13 -0
- package/dist/cjs/feedback/StatusNotice.js +62 -0
- package/dist/cjs/feedback/index.d.ts +1 -0
- package/dist/cjs/feedback/index.js +7 -0
- package/dist/cjs/index.d.ts +9 -0
- package/dist/cjs/index.js +25 -0
- package/dist/cjs/internal/DialogChoiceTile.d.ts +20 -0
- package/dist/cjs/internal/DialogChoiceTile.js +60 -0
- package/dist/cjs/links/LinkAddressPreview.d.ts +21 -0
- package/dist/cjs/links/LinkAddressPreview.js +130 -0
- package/dist/cjs/links/index.d.ts +3 -0
- package/dist/cjs/links/index.js +9 -0
- package/dist/cjs/links/useLinkAddressPreview.d.ts +26 -0
- package/dist/cjs/links/useLinkAddressPreview.js +171 -0
- package/dist/cjs/location/GeographicLocationField.d.ts +26 -0
- package/dist/cjs/location/GeographicLocationField.js +49 -0
- package/dist/cjs/location/GoogleMapsAttribution.d.ts +1 -0
- package/dist/cjs/location/GoogleMapsAttribution.js +12 -0
- package/dist/cjs/location/MetadataFieldGroup.d.ts +5 -0
- package/dist/cjs/location/MetadataFieldGroup.js +13 -0
- package/dist/cjs/location/MetadataValueField.d.ts +23 -0
- package/dist/cjs/location/MetadataValueField.js +27 -0
- package/dist/cjs/location/SearchInputAction.d.ts +9 -0
- package/dist/cjs/location/SearchInputAction.js +14 -0
- package/dist/cjs/location/TemplateBadge.d.ts +5 -0
- package/dist/cjs/location/TemplateBadge.js +9 -0
- package/dist/cjs/location/VenueSearchDialog.d.ts +33 -0
- package/dist/cjs/location/VenueSearchDialog.js +112 -0
- package/dist/cjs/location/index.d.ts +6 -0
- package/dist/cjs/location/index.js +20 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/pending/PendingChangesDialogShell.d.ts +2 -0
- package/dist/cjs/pending/PendingChangesDialogShell.js +16 -0
- package/dist/cjs/pending/PendingChangesDialogView.d.ts +2 -0
- package/dist/cjs/pending/PendingChangesDialogView.js +140 -0
- package/dist/cjs/pending/PendingChangesIndicatorView.d.ts +10 -0
- package/dist/cjs/pending/PendingChangesIndicatorView.js +27 -0
- package/dist/cjs/pending/index.d.ts +3 -0
- package/dist/cjs/pending/index.js +9 -0
- package/dist/cjs/pending/types.d.ts +55 -0
- package/dist/cjs/pending/types.js +2 -0
- package/dist/cjs/pricing/PlanUpgradeDialog.d.ts +17 -0
- package/dist/cjs/pricing/PlanUpgradeDialog.js +22 -0
- package/dist/cjs/pricing/PricingTable.d.ts +28 -0
- package/dist/cjs/pricing/PricingTable.js +60 -0
- package/dist/cjs/pricing/index.d.ts +3 -0
- package/dist/cjs/pricing/index.js +8 -0
- package/dist/cjs/providers/BayonThemeProvider.d.ts +20 -0
- package/dist/cjs/providers/BayonThemeProvider.js +163 -0
- package/dist/cjs/sections/ExpandableSectionToggle.d.ts +12 -0
- package/dist/cjs/sections/ExpandableSectionToggle.js +32 -0
- package/dist/cjs/sections/index.d.ts +2 -0
- package/dist/cjs/sections/index.js +7 -0
- package/dist/cjs/styles/pageStyles.d.ts +15 -0
- package/dist/cjs/styles/pageStyles.js +103 -0
- package/dist/cjs/swipe/SwipeActionRow.d.ts +8 -0
- package/dist/cjs/swipe/SwipeActionRow.js +123 -0
- package/dist/cjs/swipe/index.d.ts +1 -0
- package/dist/cjs/swipe/index.js +8 -0
- package/dist/cjs/theme/components.d.ts +2 -0
- package/dist/cjs/theme/components.js +123 -0
- package/dist/cjs/theme/createBayonTheme.d.ts +4 -0
- package/dist/cjs/theme/createBayonTheme.js +45 -0
- package/dist/cjs/theme/palette.d.ts +146 -0
- package/dist/cjs/theme/palette.js +109 -0
- package/dist/cjs/theme/shadows.d.ts +2 -0
- package/dist/cjs/theme/shadows.js +21 -0
- package/dist/cjs/theme/types.d.ts +47 -0
- package/dist/cjs/theme/types.js +2 -0
- package/dist/cjs/theme/typography.d.ts +2 -0
- package/dist/cjs/theme/typography.js +58 -0
- package/dist/cjs/toasts/ActionToast.d.ts +11 -0
- package/dist/cjs/toasts/ActionToast.js +12 -0
- package/dist/cjs/toasts/Toast.d.ts +16 -0
- package/dist/cjs/toasts/Toast.js +55 -0
- package/dist/cjs/toasts/index.d.ts +5 -0
- package/dist/cjs/toasts/index.js +12 -0
- package/dist/cjs/toasts/useUpwardToastDismiss.d.ts +15 -0
- package/dist/cjs/toasts/useUpwardToastDismiss.js +73 -0
- package/dist/cjs/uploads/CameraCaptureDialog.d.ts +22 -0
- package/dist/cjs/uploads/CameraCaptureDialog.js +187 -0
- package/dist/cjs/uploads/FileRow.d.ts +10 -0
- package/dist/cjs/uploads/FileRow.js +23 -0
- package/dist/cjs/uploads/FileSwipeActionRow.d.ts +1 -0
- package/dist/cjs/uploads/FileSwipeActionRow.js +11 -0
- package/dist/cjs/uploads/FileThumbnail.d.ts +5 -0
- package/dist/cjs/uploads/FileThumbnail.js +104 -0
- package/dist/cjs/uploads/FileUpload.d.ts +26 -0
- package/dist/cjs/uploads/FileUpload.js +98 -0
- package/dist/cjs/uploads/FileViewer.d.ts +9 -0
- package/dist/cjs/uploads/FileViewer.js +155 -0
- package/dist/cjs/uploads/ImageCropDialog.d.ts +26 -0
- package/dist/cjs/uploads/ImageCropDialog.js +215 -0
- package/dist/cjs/uploads/ImageInfoPanel.d.ts +24 -0
- package/dist/cjs/uploads/ImageInfoPanel.js +41 -0
- package/dist/cjs/uploads/ImageUploadQualityDialog.d.ts +13 -0
- package/dist/cjs/uploads/ImageUploadQualityDialog.js +57 -0
- package/dist/cjs/uploads/UploadProgressRing.d.ts +24 -0
- package/dist/cjs/uploads/UploadProgressRing.js +32 -0
- package/dist/cjs/uploads/cameraCropPresentation.d.ts +2 -0
- package/dist/cjs/uploads/cameraCropPresentation.js +12 -0
- package/dist/cjs/uploads/index.d.ts +12 -0
- package/dist/cjs/uploads/index.js +24 -0
- package/dist/cjs/utils/createBayonEmotionCache.d.ts +1 -0
- package/dist/cjs/utils/createBayonEmotionCache.js +21 -0
- package/dist/esm/actions/ActionMenu.js +30 -0
- package/dist/esm/actions/DialogActionButtons.js +24 -0
- package/dist/esm/actions/LoadingIconButton.js +7 -0
- package/dist/esm/actions/StickyActionFooter.js +24 -0
- package/dist/esm/actions/StickySubmitButton.js +7 -0
- package/dist/esm/actions/index.js +7 -0
- package/dist/esm/client.js +5 -0
- package/dist/esm/components/BayonFlowVisual.js +81 -0
- package/dist/esm/components/BayonThemeModeToggle.js +28 -0
- package/dist/esm/components/IconTooltipButton.js +11 -0
- package/dist/esm/components/panels.js +76 -0
- package/dist/esm/drawers/BottomDrawer.js +37 -0
- package/dist/esm/drawers/MobileBottomDrawer.js +95 -0
- package/dist/esm/drawers/MobileBottomDrawerHeader.js +30 -0
- package/dist/esm/drawers/ResponsiveDrawer.js +19 -0
- package/dist/esm/drawers/WorkspaceSidePane.js +222 -0
- package/dist/esm/drawers/WorkspaceSidePaneRoot.js +90 -0
- package/dist/esm/drawers/drawerAppearance.js +7 -0
- package/dist/esm/drawers/index.js +8 -0
- package/dist/esm/drawers/useVisualViewportBottomInset.js +29 -0
- package/dist/esm/drawers/workspaceSidePaneGeometry.js +11 -0
- package/dist/esm/feedback/StatusNotice.js +56 -0
- package/dist/esm/feedback/index.js +3 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/internal/DialogChoiceTile.js +54 -0
- package/dist/esm/links/LinkAddressPreview.js +91 -0
- package/dist/esm/links/index.js +4 -0
- package/dist/esm/links/useLinkAddressPreview.js +168 -0
- package/dist/esm/location/GeographicLocationField.js +43 -0
- package/dist/esm/location/GoogleMapsAttribution.js +9 -0
- package/dist/esm/location/MetadataFieldGroup.js +9 -0
- package/dist/esm/location/MetadataValueField.js +23 -0
- package/dist/esm/location/SearchInputAction.js +8 -0
- package/dist/esm/location/TemplateBadge.js +6 -0
- package/dist/esm/location/VenueSearchDialog.js +109 -0
- package/dist/esm/location/index.js +7 -0
- package/dist/esm/pending/PendingChangesDialogShell.js +10 -0
- package/dist/esm/pending/PendingChangesDialogView.js +134 -0
- package/dist/esm/pending/PendingChangesIndicatorView.js +21 -0
- package/dist/esm/pending/index.js +4 -0
- package/dist/esm/pending/types.js +1 -0
- package/dist/esm/pricing/PlanUpgradeDialog.js +19 -0
- package/dist/esm/pricing/PricingTable.js +54 -0
- package/dist/esm/pricing/index.js +3 -0
- package/dist/esm/providers/BayonThemeProvider.js +123 -0
- package/dist/esm/sections/ExpandableSectionToggle.js +26 -0
- package/dist/esm/sections/index.js +3 -0
- package/dist/esm/styles/pageStyles.js +100 -0
- package/dist/esm/swipe/SwipeActionRow.js +116 -0
- package/dist/esm/swipe/index.js +3 -0
- package/dist/esm/theme/components.js +120 -0
- package/dist/esm/theme/createBayonTheme.js +41 -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/toasts/ActionToast.js +9 -0
- package/dist/esm/toasts/Toast.js +52 -0
- package/dist/esm/toasts/index.js +5 -0
- package/dist/esm/toasts/useUpwardToastDismiss.js +69 -0
- package/dist/esm/uploads/CameraCaptureDialog.js +181 -0
- package/dist/esm/uploads/FileRow.js +17 -0
- package/dist/esm/uploads/FileSwipeActionRow.js +7 -0
- package/dist/esm/uploads/FileThumbnail.js +98 -0
- package/dist/esm/uploads/FileUpload.js +92 -0
- package/dist/esm/uploads/FileViewer.js +149 -0
- package/dist/esm/uploads/ImageCropDialog.js +212 -0
- package/dist/esm/uploads/ImageInfoPanel.js +35 -0
- package/dist/esm/uploads/ImageUploadQualityDialog.js +51 -0
- package/dist/esm/uploads/UploadProgressRing.js +29 -0
- package/dist/esm/uploads/cameraCropPresentation.js +5 -0
- package/dist/esm/uploads/index.js +11 -0
- package/dist/esm/utils/createBayonEmotionCache.js +15 -0
- package/dist/types/actions/ActionMenu.d.ts +24 -0
- package/dist/types/actions/DialogActionButtons.d.ts +23 -0
- package/dist/types/actions/LoadingIconButton.d.ts +11 -0
- package/dist/types/actions/StickyActionFooter.d.ts +14 -0
- package/dist/types/actions/StickySubmitButton.d.ts +10 -0
- package/dist/types/actions/index.d.ts +5 -0
- package/dist/types/client.d.ts +4 -0
- package/dist/types/components/BayonFlowVisual.d.ts +12 -0
- package/dist/types/components/BayonThemeModeToggle.d.ts +6 -0
- package/dist/types/components/IconTooltipButton.d.ts +10 -0
- package/dist/types/components/panels.d.ts +37 -0
- package/dist/types/drawers/BottomDrawer.d.ts +16 -0
- package/dist/types/drawers/MobileBottomDrawer.d.ts +20 -0
- package/dist/types/drawers/MobileBottomDrawerHeader.d.ts +11 -0
- package/dist/types/drawers/ResponsiveDrawer.d.ts +25 -0
- package/dist/types/drawers/WorkspaceSidePane.d.ts +31 -0
- package/dist/types/drawers/WorkspaceSidePaneRoot.d.ts +1 -0
- package/dist/types/drawers/drawerAppearance.d.ts +8 -0
- package/dist/types/drawers/index.d.ts +7 -0
- package/dist/types/drawers/useVisualViewportBottomInset.d.ts +6 -0
- package/dist/types/drawers/workspaceSidePaneGeometry.d.ts +11 -0
- package/dist/types/feedback/StatusNotice.d.ts +13 -0
- package/dist/types/feedback/index.d.ts +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/internal/DialogChoiceTile.d.ts +20 -0
- package/dist/types/links/LinkAddressPreview.d.ts +21 -0
- package/dist/types/links/index.d.ts +3 -0
- package/dist/types/links/useLinkAddressPreview.d.ts +26 -0
- package/dist/types/location/GeographicLocationField.d.ts +26 -0
- package/dist/types/location/GoogleMapsAttribution.d.ts +1 -0
- package/dist/types/location/MetadataFieldGroup.d.ts +5 -0
- package/dist/types/location/MetadataValueField.d.ts +23 -0
- package/dist/types/location/SearchInputAction.d.ts +9 -0
- package/dist/types/location/TemplateBadge.d.ts +5 -0
- package/dist/types/location/VenueSearchDialog.d.ts +33 -0
- package/dist/types/location/index.d.ts +6 -0
- package/dist/types/pending/PendingChangesDialogShell.d.ts +2 -0
- package/dist/types/pending/PendingChangesDialogView.d.ts +2 -0
- package/dist/types/pending/PendingChangesIndicatorView.d.ts +10 -0
- package/dist/types/pending/index.d.ts +3 -0
- package/dist/types/pending/types.d.ts +55 -0
- package/dist/types/pricing/PlanUpgradeDialog.d.ts +17 -0
- package/dist/types/pricing/PricingTable.d.ts +28 -0
- package/dist/types/pricing/index.d.ts +3 -0
- package/dist/types/providers/BayonThemeProvider.d.ts +20 -0
- package/dist/types/sections/ExpandableSectionToggle.d.ts +12 -0
- package/dist/types/sections/index.d.ts +2 -0
- package/dist/types/styles/pageStyles.d.ts +15 -0
- package/dist/types/swipe/SwipeActionRow.d.ts +8 -0
- package/dist/types/swipe/index.d.ts +1 -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/toasts/ActionToast.d.ts +11 -0
- package/dist/types/toasts/Toast.d.ts +16 -0
- package/dist/types/toasts/index.d.ts +5 -0
- package/dist/types/toasts/useUpwardToastDismiss.d.ts +15 -0
- package/dist/types/uploads/CameraCaptureDialog.d.ts +22 -0
- package/dist/types/uploads/FileRow.d.ts +10 -0
- package/dist/types/uploads/FileSwipeActionRow.d.ts +1 -0
- package/dist/types/uploads/FileThumbnail.d.ts +5 -0
- package/dist/types/uploads/FileUpload.d.ts +26 -0
- package/dist/types/uploads/FileViewer.d.ts +9 -0
- package/dist/types/uploads/ImageCropDialog.d.ts +26 -0
- package/dist/types/uploads/ImageInfoPanel.d.ts +24 -0
- package/dist/types/uploads/ImageUploadQualityDialog.d.ts +13 -0
- package/dist/types/uploads/UploadProgressRing.d.ts +24 -0
- package/dist/types/uploads/cameraCropPresentation.d.ts +2 -0
- package/dist/types/uploads/index.d.ts +12 -0
- package/dist/types/utils/createBayonEmotionCache.d.ts +1 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.10.1 — 2026-11-27
|
|
4
|
+
|
|
5
|
+
- Build the ESM, CommonJS, and TypeScript declaration files automatically before packing. This restores the runtime files missing from the published 1.10.0 archive.
|
|
6
|
+
|
|
3
7
|
## 1.10.0 — 2026-11-27
|
|
4
8
|
|
|
5
9
|
- Load the URL preview's optional icons and tooltip on demand through the existing `/links` entry. The destination is usable while they load.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type SxProps, type Theme } from "@mui/material";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export type ActionMenuColor = "default" | "primary" | "secondary" | "error";
|
|
4
|
+
export type ActionMenuItem = {
|
|
5
|
+
color?: ActionMenuColor;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
label: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
section?: string;
|
|
11
|
+
};
|
|
12
|
+
export type ActionMenuProps = {
|
|
13
|
+
actionColorSx?: Partial<Record<ActionMenuColor, SxProps<Theme>>>;
|
|
14
|
+
actions: ActionMenuItem[];
|
|
15
|
+
buttonSx?: SxProps<Theme>;
|
|
16
|
+
containerSx?: SxProps<Theme>;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
label?: string;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
loadingLabel?: string;
|
|
21
|
+
size?: "small" | "medium" | "large";
|
|
22
|
+
};
|
|
23
|
+
/** A compact, grouped action menu with an optional in-flight trigger state. */
|
|
24
|
+
export declare function ActionMenu({ actionColorSx, actions, buttonSx, containerSx, disabled, label, loading, loadingLabel, size, }: ActionMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ActionMenu = ActionMenu;
|
|
8
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
const MoreHoriz_1 = __importDefault(require("@mui/icons-material/MoreHoriz"));
|
|
10
|
+
const material_1 = require("@mui/material");
|
|
11
|
+
const react_1 = require("react");
|
|
12
|
+
const LoadingIconButton_js_1 = require("./LoadingIconButton.js");
|
|
13
|
+
/** A compact, grouped action menu with an optional in-flight trigger state. */
|
|
14
|
+
function ActionMenu({ actionColorSx, actions, buttonSx, containerSx, disabled = false, label = "Actions", loading = false, loadingLabel = `${label} loading`, size = "small", }) {
|
|
15
|
+
const menuId = (0, react_1.useId)();
|
|
16
|
+
const [anchorElement, setAnchorElement] = (0, react_1.useState)(null);
|
|
17
|
+
const open = Boolean(anchorElement);
|
|
18
|
+
function handleAction(action) {
|
|
19
|
+
setAnchorElement(null);
|
|
20
|
+
action.onClick();
|
|
21
|
+
}
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: loading ? loadingLabel : label, children: (0, jsx_runtime_1.jsx)(material_1.Box, { component: "span", sx: containerSx, children: (0, jsx_runtime_1.jsx)(LoadingIconButton_js_1.LoadingIconButton, { "aria-controls": open ? menuId : undefined, "aria-expanded": open ? "true" : undefined, "aria-haspopup": "menu", "aria-label": label, disabled: disabled, loading: loading, loadingLabel: loadingLabel, onClick: (event) => setAnchorElement(event.currentTarget), size: size, sx: buttonSx, children: (0, jsx_runtime_1.jsx)(MoreHoriz_1.default, { fontSize: size === "large" ? "medium" : "small" }) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Menu, { anchorEl: anchorElement, anchorOrigin: { horizontal: "right", vertical: "bottom" }, disableScrollLock: true, id: menuId, onClose: () => setAnchorElement(null), open: open, transformOrigin: { horizontal: "right", vertical: "top" }, children: actions.map((action, index) => {
|
|
23
|
+
var _a, _b, _c, _d;
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [action.section &&
|
|
25
|
+
action.section !== ((_a = actions[index - 1]) === null || _a === void 0 ? void 0 : _a.section) ? ((0, jsx_runtime_1.jsx)(material_1.ListSubheader, { children: action.section })) : null, (0, jsx_runtime_1.jsxs)(material_1.MenuItem, { disabled: action.disabled, onClick: () => handleAction(action), sx: (_c = actionColorSx === null || actionColorSx === void 0 ? void 0 : actionColorSx[(_b = action.color) !== null && _b !== void 0 ? _b : "default"]) !== null && _c !== void 0 ? _c : getDefaultActionColorSx(action.color), children: [action.icon ? (0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: action.icon }) : null, action.label] })] }, `${(_d = action.section) !== null && _d !== void 0 ? _d : "default"}:${action.label}`));
|
|
26
|
+
}) })] }));
|
|
27
|
+
}
|
|
28
|
+
function getDefaultActionColorSx(color) {
|
|
29
|
+
if (color === "primary")
|
|
30
|
+
return { color: "primary.main" };
|
|
31
|
+
if (color === "secondary")
|
|
32
|
+
return { color: "secondary.main" };
|
|
33
|
+
if (color === "error")
|
|
34
|
+
return { color: "error.main" };
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { SxProps, Theme } from "@mui/material/styles";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export declare const compactDialogPaperSx: SxProps<Theme>;
|
|
4
|
+
export type DialogActionButtonsProps = {
|
|
5
|
+
confirmLabel: string;
|
|
6
|
+
confirmText?: string;
|
|
7
|
+
confirmDisabled?: boolean;
|
|
8
|
+
confirmColor?: "error" | "primary" | "secondary" | "success" | "warning";
|
|
9
|
+
confirmIcon?: ReactNode;
|
|
10
|
+
confirmType?: "button" | "submit";
|
|
11
|
+
onConfirm?: () => void;
|
|
12
|
+
sx?: SxProps<Theme>;
|
|
13
|
+
};
|
|
14
|
+
/** Keeps the modal's primary decision compact and explicitly labelled. */
|
|
15
|
+
export declare function DialogActionButtons({ confirmColor, confirmDisabled, confirmIcon, confirmLabel, confirmText, confirmType, onConfirm, sx, }: DialogActionButtonsProps): import("react").JSX.Element;
|
|
16
|
+
export declare function DialogActionProgress(): import("react").JSX.Element;
|
|
17
|
+
export type DialogCloseButtonProps = {
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
label?: string;
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
sx?: SxProps<Theme>;
|
|
22
|
+
};
|
|
23
|
+
export declare function DialogCloseButton({ disabled, label, onClose, sx, }: DialogCloseButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.compactDialogPaperSx = void 0;
|
|
8
|
+
exports.DialogActionButtons = DialogActionButtons;
|
|
9
|
+
exports.DialogActionProgress = DialogActionProgress;
|
|
10
|
+
exports.DialogCloseButton = DialogCloseButton;
|
|
11
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
|
+
const Check_1 = __importDefault(require("@mui/icons-material/Check"));
|
|
13
|
+
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
14
|
+
const material_1 = require("@mui/material");
|
|
15
|
+
// Product decision: concise decisions/info fit content above a readable 320px floor.
|
|
16
|
+
// Keep MUI's readable maxWidth/viewport cap; forms and previews own their sizing.
|
|
17
|
+
exports.compactDialogPaperSx = {
|
|
18
|
+
width: "fit-content",
|
|
19
|
+
// Preserve MUI's 32px margins even when the viewport is narrower than the floor.
|
|
20
|
+
minWidth: "min(320px, calc(100% - 64px))",
|
|
21
|
+
overflowWrap: "anywhere",
|
|
22
|
+
};
|
|
23
|
+
/** Keeps the modal's primary decision compact and explicitly labelled. */
|
|
24
|
+
function DialogActionButtons({ confirmColor = "success", confirmDisabled = false, confirmIcon, confirmLabel, confirmText, confirmType = "button", onConfirm, sx, }) {
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(material_1.DialogActions, { sx: sx, children: confirmText ? ((0, jsx_runtime_1.jsx)(material_1.Button, { "aria-label": confirmLabel, color: confirmColor, disabled: confirmDisabled, onClick: confirmType === "submit" ? undefined : onConfirm, startIcon: confirmIcon, type: confirmType, variant: "contained", children: confirmText })) : ((0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", spacing: 1, children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: confirmLabel, children: (0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { "aria-label": confirmLabel, color: confirmColor, disabled: confirmDisabled, onClick: confirmType === "submit" ? undefined : onConfirm, type: confirmType, children: confirmIcon !== null && confirmIcon !== void 0 ? confirmIcon : (0, jsx_runtime_1.jsx)(Check_1.default, {}) }) }) }) })) }));
|
|
26
|
+
}
|
|
27
|
+
function DialogActionProgress() {
|
|
28
|
+
return (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "inherit", size: 20 });
|
|
29
|
+
}
|
|
30
|
+
function DialogCloseButton({ disabled = false, label = "Close", onClose, sx, }) {
|
|
31
|
+
// Product decision: dismissible dialogs have one close action in the title's top-right corner.
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Stack, { sx: { position: "absolute", right: 16, top: 16, ...sx }, children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: label, children: (0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { "aria-label": label, disabled: disabled, onClick: onClose, size: "small", type: "button", children: (0, jsx_runtime_1.jsx)(Close_1.default, { fontSize: "small" }) }) }) }) }));
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type IconButtonProps } from "@mui/material";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export type LoadingIconButtonProps = Omit<IconButtonProps, "aria-label" | "children"> & {
|
|
4
|
+
"aria-label": string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
loadingLabel: string;
|
|
8
|
+
spinnerSize?: number;
|
|
9
|
+
};
|
|
10
|
+
/** Keeps an icon action's footprint while making an in-flight request visible. */
|
|
11
|
+
export declare function LoadingIconButton({ "aria-label": ariaLabel, children, disabled, loading, loadingLabel, spinnerSize, ...props }: LoadingIconButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.LoadingIconButton = LoadingIconButton;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
|
+
/** Keeps an icon action's footprint while making an in-flight request visible. */
|
|
8
|
+
function LoadingIconButton({ "aria-label": ariaLabel, children, disabled, loading = false, loadingLabel, spinnerSize = 20, ...props }) {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, "aria-busy": loading || undefined, "aria-label": loading ? loadingLabel : ariaLabel, disabled: disabled || loading, children: loading ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { "aria-label": loadingLabel, color: "inherit", size: spinnerSize })) : (children) }));
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type SxProps, type Theme } from "@mui/material";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export type StickyActionFooterProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
sx?: SxProps<Theme>;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Keeps the final actions of a long, scrollable form in view.
|
|
9
|
+
*
|
|
10
|
+
* Product decision: this component owns local sticky positioning and neutral
|
|
11
|
+
* footer chrome only. The host owns its scroll container, any edge-to-edge
|
|
12
|
+
* bleed required by a padded surface, action layout, and form submission.
|
|
13
|
+
*/
|
|
14
|
+
export declare function StickyActionFooter({ children, sx }: StickyActionFooterProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.StickyActionFooter = StickyActionFooter;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
|
+
/**
|
|
8
|
+
* Keeps the final actions of a long, scrollable form in view.
|
|
9
|
+
*
|
|
10
|
+
* Product decision: this component owns local sticky positioning and neutral
|
|
11
|
+
* footer chrome only. The host owns its scroll container, any edge-to-edge
|
|
12
|
+
* bleed required by a padded surface, action layout, and form submission.
|
|
13
|
+
*/
|
|
14
|
+
function StickyActionFooter({ children, sx }) {
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { component: "footer", "data-component": "sticky-action-footer", sx: {
|
|
16
|
+
backgroundColor: "background.paper",
|
|
17
|
+
borderColor: "divider",
|
|
18
|
+
borderTop: 1,
|
|
19
|
+
bottom: 0,
|
|
20
|
+
mt: 1,
|
|
21
|
+
p: 2,
|
|
22
|
+
position: "sticky",
|
|
23
|
+
// Local stacking keeps the footer above fields without escaping its form.
|
|
24
|
+
zIndex: 1,
|
|
25
|
+
...sx,
|
|
26
|
+
}, children: children }));
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ButtonProps, type SxProps, type Theme } from "@mui/material";
|
|
2
|
+
export type StickySubmitButtonProps = {
|
|
3
|
+
buttonSx?: SxProps<Theme>;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
footerSx?: SxProps<Theme>;
|
|
6
|
+
label?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
variant?: ButtonProps["variant"];
|
|
9
|
+
};
|
|
10
|
+
export declare function StickySubmitButton({ buttonSx, disabled, footerSx, label, loading, variant, }: StickySubmitButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.StickySubmitButton = StickySubmitButton;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
|
+
const StickyActionFooter_js_1 = require("./StickyActionFooter.js");
|
|
8
|
+
function StickySubmitButton({ buttonSx, disabled = false, footerSx, label = "Save", loading = false, variant = "contained", }) {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(StickyActionFooter_js_1.StickyActionFooter, { sx: footerSx, children: (0, jsx_runtime_1.jsx)(material_1.Button, { color: "secondary", disabled: disabled, fullWidth: true, loading: loading, sx: { minHeight: 44, ...buttonSx }, type: "submit", variant: variant, children: label }) }));
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ActionMenu, type ActionMenuColor, type ActionMenuItem, type ActionMenuProps, } from "./ActionMenu.js";
|
|
2
|
+
export { LoadingIconButton, type LoadingIconButtonProps, } from "./LoadingIconButton.js";
|
|
3
|
+
export { StickyActionFooter, type StickyActionFooterProps, } from "./StickyActionFooter.js";
|
|
4
|
+
export { StickySubmitButton, type StickySubmitButtonProps, } from "./StickySubmitButton.js";
|
|
5
|
+
export { compactDialogPaperSx, DialogActionButtons, DialogActionProgress, DialogCloseButton, type DialogActionButtonsProps, type DialogCloseButtonProps, } from "./DialogActionButtons.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DialogCloseButton = exports.DialogActionProgress = exports.DialogActionButtons = exports.compactDialogPaperSx = exports.StickySubmitButton = exports.StickyActionFooter = exports.LoadingIconButton = exports.ActionMenu = void 0;
|
|
5
|
+
// TL-M249: preserve the established MUI presentation under its owning package.
|
|
6
|
+
var ActionMenu_js_1 = require("./ActionMenu.js");
|
|
7
|
+
Object.defineProperty(exports, "ActionMenu", { enumerable: true, get: function () { return ActionMenu_js_1.ActionMenu; } });
|
|
8
|
+
var LoadingIconButton_js_1 = require("./LoadingIconButton.js");
|
|
9
|
+
Object.defineProperty(exports, "LoadingIconButton", { enumerable: true, get: function () { return LoadingIconButton_js_1.LoadingIconButton; } });
|
|
10
|
+
var StickyActionFooter_js_1 = require("./StickyActionFooter.js");
|
|
11
|
+
Object.defineProperty(exports, "StickyActionFooter", { enumerable: true, get: function () { return StickyActionFooter_js_1.StickyActionFooter; } });
|
|
12
|
+
var StickySubmitButton_js_1 = require("./StickySubmitButton.js");
|
|
13
|
+
Object.defineProperty(exports, "StickySubmitButton", { enumerable: true, get: function () { return StickySubmitButton_js_1.StickySubmitButton; } });
|
|
14
|
+
var DialogActionButtons_js_1 = require("./DialogActionButtons.js");
|
|
15
|
+
Object.defineProperty(exports, "compactDialogPaperSx", { enumerable: true, get: function () { return DialogActionButtons_js_1.compactDialogPaperSx; } });
|
|
16
|
+
Object.defineProperty(exports, "DialogActionButtons", { enumerable: true, get: function () { return DialogActionButtons_js_1.DialogActionButtons; } });
|
|
17
|
+
Object.defineProperty(exports, "DialogActionProgress", { enumerable: true, get: function () { return DialogActionButtons_js_1.DialogActionProgress; } });
|
|
18
|
+
Object.defineProperty(exports, "DialogCloseButton", { enumerable: true, get: function () { return DialogActionButtons_js_1.DialogCloseButton; } });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./components/IconTooltipButton.js"), exports);
|
|
19
|
+
__exportStar(require("./components/BayonFlowVisual.js"), exports);
|
|
20
|
+
__exportStar(require("./components/BayonThemeModeToggle.js"), exports);
|
|
21
|
+
__exportStar(require("./providers/BayonThemeProvider.js"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type BoxProps } from '@mui/material/Box';
|
|
3
|
+
export type BayonFlowItem = {
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
value: React.ReactNode;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
export interface BayonFlowVisualProps extends BoxProps {
|
|
9
|
+
items?: BayonFlowItem[];
|
|
10
|
+
caption?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function BayonFlowVisual({ items, caption, sx, ...props }: BayonFlowVisualProps): React.JSX.Element;
|
|
@@ -0,0 +1,87 @@
|
|
|
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.BayonFlowVisual = BayonFlowVisual;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("@emotion/react");
|
|
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"));
|
|
12
|
+
const drift = (0, react_1.keyframes) `
|
|
13
|
+
0% { transform: translate3d(0, 0, 0); }
|
|
14
|
+
50% { transform: translate3d(0, -10px, 0); }
|
|
15
|
+
100% { transform: translate3d(0, 0, 0); }
|
|
16
|
+
`;
|
|
17
|
+
const flow = (0, react_1.keyframes) `
|
|
18
|
+
0% { transform: translateX(-36%); opacity: 0.28; }
|
|
19
|
+
50% { opacity: 0.8; }
|
|
20
|
+
100% { transform: translateX(36%); opacity: 0.28; }
|
|
21
|
+
`;
|
|
22
|
+
const tilePulse = (0, react_1.keyframes) `
|
|
23
|
+
0%, 100% { transform: scale(1); filter: brightness(1); }
|
|
24
|
+
50% { transform: scale(1.04); filter: brightness(1.18); }
|
|
25
|
+
`;
|
|
26
|
+
function mergeSx(...items) {
|
|
27
|
+
return items.filter(Boolean);
|
|
28
|
+
}
|
|
29
|
+
const defaultItems = [
|
|
30
|
+
{ label: 'Prompt', value: 'Design brief', color: '#2DD4BF' },
|
|
31
|
+
{ label: 'Model', value: 'Context map', color: '#60A5FA' },
|
|
32
|
+
{ label: 'Build', value: 'App surface', color: '#FDE047' },
|
|
33
|
+
{ label: 'Ship', value: 'Live product', color: '#FF6B6B' },
|
|
34
|
+
];
|
|
35
|
+
function BayonFlowVisual({ items = defaultItems, caption = 'idea -> AI system design -> production app', sx, ...props }) {
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { "aria-hidden": "true", sx: mergeSx({
|
|
37
|
+
minHeight: { xs: 320, md: 520 },
|
|
38
|
+
border: '1px solid var(--bayon-border-strong)',
|
|
39
|
+
borderRadius: 2,
|
|
40
|
+
bgcolor: 'var(--bayon-panel-solid)',
|
|
41
|
+
boxShadow: '0 34px 110px rgba(2, 6, 23, 0.48), inset 0 1px 0 var(--bayon-border)',
|
|
42
|
+
p: { xs: 3, md: 4 },
|
|
43
|
+
display: 'grid',
|
|
44
|
+
gridTemplateRows: 'auto 1fr auto',
|
|
45
|
+
gap: 3,
|
|
46
|
+
animation: `${drift} 8s ease-in-out infinite`,
|
|
47
|
+
position: 'relative',
|
|
48
|
+
overflow: 'hidden',
|
|
49
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
50
|
+
animation: 'none',
|
|
51
|
+
},
|
|
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: {
|
|
53
|
+
display: 'grid',
|
|
54
|
+
gridTemplateColumns: '1fr 1.1fr',
|
|
55
|
+
gridTemplateRows: '1fr 1fr',
|
|
56
|
+
gap: 2,
|
|
57
|
+
position: 'relative',
|
|
58
|
+
'&::before': {
|
|
59
|
+
content: '""',
|
|
60
|
+
position: 'absolute',
|
|
61
|
+
left: '10%',
|
|
62
|
+
right: '10%',
|
|
63
|
+
top: '50%',
|
|
64
|
+
height: 2,
|
|
65
|
+
background: 'linear-gradient(90deg, transparent, #2DD4BF, #FDE047, #FF6B6B, transparent)',
|
|
66
|
+
animation: `${flow} 5s ease-in-out infinite`,
|
|
67
|
+
},
|
|
68
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
69
|
+
'&::before': {
|
|
70
|
+
animation: 'none',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
}, children: items.map((item, index) => ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: {
|
|
74
|
+
borderRadius: 2,
|
|
75
|
+
border: '1px solid var(--bayon-border)',
|
|
76
|
+
bgcolor: index === 2 ? 'rgba(253, 224, 71, 0.12)' : 'var(--bayon-grid-line)',
|
|
77
|
+
p: 2.5,
|
|
78
|
+
display: 'flex',
|
|
79
|
+
flexDirection: 'column',
|
|
80
|
+
justifyContent: 'space-between',
|
|
81
|
+
minHeight: 128,
|
|
82
|
+
animation: `${tilePulse} ${5 + index}s ease-in-out infinite`,
|
|
83
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
84
|
+
animation: 'none',
|
|
85
|
+
},
|
|
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: 'var(--bayon-fg)', 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: 'var(--bayon-muted)', fontSize: '0.95rem' }, children: caption })] }));
|
|
87
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.BayonThemeModeToggle = BayonThemeModeToggle;
|
|
8
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
const DarkMode_1 = __importDefault(require("@mui/icons-material/DarkMode"));
|
|
10
|
+
const LightMode_1 = __importDefault(require("@mui/icons-material/LightMode"));
|
|
11
|
+
const BayonThemeProvider_js_1 = require("../providers/BayonThemeProvider.js");
|
|
12
|
+
const IconTooltipButton_js_1 = require("./IconTooltipButton.js");
|
|
13
|
+
function mergeSx(...items) {
|
|
14
|
+
return items.flat().filter(Boolean);
|
|
15
|
+
}
|
|
16
|
+
function BayonThemeModeToggle({ sx }) {
|
|
17
|
+
const { mode, toggleMode } = (0, BayonThemeProvider_js_1.useBayonThemeMode)();
|
|
18
|
+
const nextMode = mode === 'dark' ? 'light' : 'dark';
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(IconTooltipButton_js_1.IconTooltipButton, { label: `Switch to ${nextMode} mode`, onClick: toggleMode, sx: mergeSx({
|
|
20
|
+
color: 'var(--bayon-fg)',
|
|
21
|
+
border: '1px solid var(--bayon-border)',
|
|
22
|
+
bgcolor: 'var(--bayon-panel)',
|
|
23
|
+
transition: 'border-color 180ms ease, background-color 180ms ease, color 180ms ease',
|
|
24
|
+
'&:hover': {
|
|
25
|
+
bgcolor: 'rgba(45, 212, 191, 0.12)',
|
|
26
|
+
borderColor: 'var(--bayon-link-hover)',
|
|
27
|
+
color: 'var(--bayon-link-hover)',
|
|
28
|
+
},
|
|
29
|
+
'&:focus-visible': {
|
|
30
|
+
outline: '2px solid rgba(45, 212, 191, 0.52)',
|
|
31
|
+
outlineOffset: 3,
|
|
32
|
+
},
|
|
33
|
+
}, sx), children: mode === 'dark' ? (0, jsx_runtime_1.jsx)(LightMode_1.default, { fontSize: "small" }) : (0, jsx_runtime_1.jsx)(DarkMode_1.default, { fontSize: "small" }) }));
|
|
34
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
|
3
|
+
import type { TooltipProps } from '@mui/material/Tooltip';
|
|
4
|
+
export interface IconTooltipButtonProps extends Omit<IconButtonProps, 'aria-label'> {
|
|
5
|
+
component?: React.ElementType;
|
|
6
|
+
href?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
tooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
9
|
+
}
|
|
10
|
+
export declare const IconTooltipButton: React.ForwardRefExoticComponent<Omit<IconTooltipButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.IconTooltipButton = void 0;
|
|
41
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
const React = __importStar(require("react"));
|
|
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
|
+
}));
|
|
47
|
+
exports.IconTooltipButton = React.forwardRef(function IconTooltipButton({ label, tooltipProps, children, ...props }, ref) {
|
|
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 }) }));
|
|
50
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type BoxProps } from '@mui/material/Box';
|
|
3
|
+
import { type StackProps } from '@mui/material/Stack';
|
|
4
|
+
export interface BayonPanelProps extends BoxProps {
|
|
5
|
+
hover?: boolean;
|
|
6
|
+
}
|
|
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;
|
|
13
|
+
export interface BayonMethodBoxProps extends BoxProps {
|
|
14
|
+
accentColor?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function BayonMethodBox({ accentColor, sx, ...props }: BayonMethodBoxProps): React.JSX.Element;
|
|
17
|
+
export interface BayonProjectCardProps extends Omit<BayonPanelProps, 'title'> {
|
|
18
|
+
category?: React.ReactNode;
|
|
19
|
+
status?: React.ReactNode;
|
|
20
|
+
title?: React.ReactNode;
|
|
21
|
+
body?: React.ReactNode;
|
|
22
|
+
actions?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare function BayonProjectCard({ category, status, title, body, actions, children, hover, sx, ...props }: BayonProjectCardProps): React.JSX.Element;
|
|
25
|
+
export interface BayonPillarCardProps extends Omit<BoxProps, 'title'> {
|
|
26
|
+
accentColor?: string;
|
|
27
|
+
eyebrow?: React.ReactNode;
|
|
28
|
+
title?: React.ReactNode;
|
|
29
|
+
body?: React.ReactNode;
|
|
30
|
+
actions?: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export declare function BayonPillarCard({ accentColor, eyebrow, title, body, actions, children, sx, ...props }: BayonPillarCardProps): React.JSX.Element;
|
|
33
|
+
export interface BayonTechChipProps extends BoxProps {
|
|
34
|
+
label?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export declare function BayonTechChip({ label, children, sx, ...props }: BayonTechChipProps): React.JSX.Element;
|
|
37
|
+
export declare function BayonPanelStack({ sx, ...props }: StackProps): React.JSX.Element;
|
|
@@ -0,0 +1,92 @@
|
|
|
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.BayonPageShell = BayonPageShell;
|
|
7
|
+
exports.BayonGradientHero = BayonGradientHero;
|
|
8
|
+
exports.BayonDarkPanel = BayonDarkPanel;
|
|
9
|
+
exports.BayonAccentPanel = BayonAccentPanel;
|
|
10
|
+
exports.BayonCtaPanel = BayonCtaPanel;
|
|
11
|
+
exports.BayonContentBox = BayonContentBox;
|
|
12
|
+
exports.BayonMethodBox = BayonMethodBox;
|
|
13
|
+
exports.BayonProjectCard = BayonProjectCard;
|
|
14
|
+
exports.BayonPillarCard = BayonPillarCard;
|
|
15
|
+
exports.BayonTechChip = BayonTechChip;
|
|
16
|
+
exports.BayonPanelStack = BayonPanelStack;
|
|
17
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
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");
|
|
22
|
+
function mergeSx(...items) {
|
|
23
|
+
return items.flat().filter(Boolean);
|
|
24
|
+
}
|
|
25
|
+
function BayonPageShell({ sx, ...props }) {
|
|
26
|
+
return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_js_1.pageShellSx, sx), ...props });
|
|
27
|
+
}
|
|
28
|
+
function BayonGradientHero({ sx, ...props }) {
|
|
29
|
+
return (0, jsx_runtime_1.jsx)(Box_1.default, { component: "section", sx: mergeSx(pageStyles_js_1.gradientHeroSx, sx), ...props });
|
|
30
|
+
}
|
|
31
|
+
function BayonDarkPanel({ hover = false, 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 });
|
|
33
|
+
}
|
|
34
|
+
function BayonAccentPanel({ hover = false, 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 });
|
|
36
|
+
}
|
|
37
|
+
function BayonCtaPanel({ sx, ...props }) {
|
|
38
|
+
return (0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx(pageStyles_js_1.darkCtaSx, sx), ...props });
|
|
39
|
+
}
|
|
40
|
+
function BayonContentBox({ sx, ...props }) {
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx({
|
|
42
|
+
p: { xs: 3, md: 4 },
|
|
43
|
+
border: '1px solid var(--bayon-border)',
|
|
44
|
+
borderRadius: 2,
|
|
45
|
+
bgcolor: 'var(--bayon-panel)',
|
|
46
|
+
}, sx), ...props }));
|
|
47
|
+
}
|
|
48
|
+
function BayonMethodBox({ accentColor = '#2DD4BF', sx, ...props }) {
|
|
49
|
+
return ((0, jsx_runtime_1.jsx)(BayonCtaPanel, { sx: mergeSx({
|
|
50
|
+
p: 3,
|
|
51
|
+
borderLeft: `3px solid ${accentColor}`,
|
|
52
|
+
}, sx), ...props }));
|
|
53
|
+
}
|
|
54
|
+
function BayonProjectCard({ category, status, title, body, actions, children, hover = true, sx, ...props }) {
|
|
55
|
+
return ((0, jsx_runtime_1.jsxs)(BayonAccentPanel, { hover: hover, sx: mergeSx({
|
|
56
|
+
p: 4,
|
|
57
|
+
minHeight: 290,
|
|
58
|
+
display: 'flex',
|
|
59
|
+
flexDirection: 'column',
|
|
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: 'var(--bayon-heading)', mb: 2 }, children: title })), body && (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: 'var(--bayon-muted)', 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] }));
|
|
61
|
+
}
|
|
62
|
+
function BayonPillarCard({ accentColor = '#2DD4BF', eyebrow, title, body, actions, children, sx, ...props }) {
|
|
63
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: mergeSx({
|
|
64
|
+
p: { xs: 3, md: 5 },
|
|
65
|
+
border: '1px solid var(--bayon-border)',
|
|
66
|
+
borderRadius: 2,
|
|
67
|
+
bgcolor: 'var(--bayon-panel)',
|
|
68
|
+
boxShadow: 'var(--bayon-panel-shadow)',
|
|
69
|
+
transition: 'transform 180ms ease, border-color 180ms ease',
|
|
70
|
+
'&:hover': {
|
|
71
|
+
transform: 'translateY(-5px)',
|
|
72
|
+
borderColor: accentColor,
|
|
73
|
+
},
|
|
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: 'var(--bayon-heading)', mb: 2 }, children: title })), body && (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: 'var(--bayon-muted)', lineHeight: 1.75 }, children: body }), children, actions] }));
|
|
75
|
+
}
|
|
76
|
+
function BayonTechChip({ label, children, sx, ...props }) {
|
|
77
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: mergeSx({
|
|
78
|
+
px: 1.5,
|
|
79
|
+
py: 0.75,
|
|
80
|
+
borderRadius: 1,
|
|
81
|
+
bgcolor: 'rgba(45, 212, 191, 0.12)',
|
|
82
|
+
color: '#A7F3D0',
|
|
83
|
+
border: '1px solid rgba(45, 212, 191, 0.24)',
|
|
84
|
+
fontSize: '0.9rem',
|
|
85
|
+
fontWeight: 600,
|
|
86
|
+
maxWidth: '100%',
|
|
87
|
+
overflowWrap: 'anywhere',
|
|
88
|
+
}, sx), ...props, children: label !== null && label !== void 0 ? label : children }));
|
|
89
|
+
}
|
|
90
|
+
function BayonPanelStack({ sx, ...props }) {
|
|
91
|
+
return (0, jsx_runtime_1.jsx)(Stack_1.default, { spacing: 3, sx: sx, ...props });
|
|
92
|
+
}
|